Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.0.1 #3

Merged
merged 14 commits into from
Nov 2, 2023
Merged

V1.0.1 #3

merged 14 commits into from
Nov 2, 2023

Conversation

mps9506
Copy link
Owner

@mps9506 mps9506 commented Oct 31, 2023

  • uses embedded pandoc-ext multibib.
  • add github actions for CI on pull requests.

@mps9506
Copy link
Owner Author

mps9506 commented Nov 1, 2023

  1. Update multibib references in README
  2. Include note about validate_yaml: false
  3. Latex error from pandoc/citeproc still persists

@mps9506
Copy link
Owner Author

mps9506 commented Nov 1, 2023

Broke backwards compatibility with previous quarto/pandoc releases. Need logic to check pandoc version I think.

$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}
\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
   \setlength{\leftmargin}{\cslhangindent}
   \setlength{\itemindent}{-1\cslhangindent}
  \fi
  % set entry spacing
  \setlength{\itemsep}{#2\baselineskip}}}
 {\end{list}}
\usepackage{calc}
\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$

@mps9506
Copy link
Owner Author

mps9506 commented Nov 2, 2023

fixes #2

@mps9506 mps9506 merged commit 4014c96 into main Nov 2, 2023
1 check passed
@mps9506 mps9506 deleted the v1.0.1 branch February 9, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant