Skip to content

Commit

Permalink
Merge pull request #12 from mps9506/v2.0.0
Browse files Browse the repository at this point in the history
V2.0.0
  • Loading branch information
mps9506 authored Feb 9, 2024
2 parents 2e069ff + df31da9 commit 4de3917
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check-extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:

steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
version: release

- run: |
quarto check
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on [Steven Miller's R Markdown templates](https://github.com/svmiller/stevetempl

## Installing

System Requirements:
- quarto >= 1.4
- latex

```bash
quarto install extension mps9506/quarto-cv
```
Expand All @@ -21,6 +25,11 @@ This will install the template for use with existing Quarto projects or document
quarto use template mps9506/quarto-cv
```

If you need to use an old version of quarto, install a previous quarto-cv release:

```bash
quarto install extension mps9506/[email protected]
```

## Usage

Expand Down
4 changes: 2 additions & 2 deletions _extensions/quarto-cv/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: quarto-cv
author: Michael Schramm
version: 1.0.3
quarto-required: ">=1.3.450"
version: 2.0.0
quarto-required: ">=1.4"
contributes:
formats:
pdf:
Expand Down
39 changes: 23 additions & 16 deletions _extensions/quarto-cv/partials/doc-class.tex
Original file line number Diff line number Diff line change
Expand Up @@ -65,32 +65,39 @@
% this is for pandoc <3.1.8
$if(csl-refs)$
% definitions for citeproc citations
\NewDocumentCommand\citeproctext{}{}
\NewDocumentCommand\citeproc{mm}{%
\begingroup\def\citeproctext{#2}\cite{#1}\endgroup}
\makeatletter
% allow citations to break across lines
\let\@cite@ofmt\@firstofone
% avoid brackets around text for \cite:
\def\@biblabel#1{}
\def\@cite#1#2{{#1\if@tempswa , #2\fi}}
\makeatother
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newlength{\cslentryspacingunit} % times entry-spacing
\setlength{\cslentryspacingunit}{\parskip}
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
{% don't indent paragraphs
\setlength{\parindent}{0pt}
\newenvironment{CSLReferences}[2] % #1 hanging-indent, #2 entry-spacing
{\begin{list}{}{%
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{0pt}
\setlength{\parsep}{0pt}
% turn on hanging indent if param 1 is 1
\ifodd #1
\let\oldpar\par
\def\par{\hangindent=\cslhangindent\oldpar}
\setlength{\leftmargin}{\cslhangindent}
\setlength{\itemindent}{-1\cslhangindent}
\fi
% set entry spacing
\setlength{\parskip}{#2\cslentryspacingunit}
}%
{}
\setlength{\itemsep}{#2\baselineskip}}}
{\end{list}}
\usepackage{calc}
\newcommand{\CSLBlock}[1]{#1\hfill\break}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
\newcommand{\CSLBlock}[1]{\hfill\break#1\hfill\break}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut#1\strut}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
$endif$
Expand Down

0 comments on commit 4de3917

Please sign in to comment.