Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Aug 20, 2024
1 parent 6dcaa12 commit aafc2d4
Showing 1 changed file with 39 additions and 23 deletions.
62 changes: 39 additions & 23 deletions tests/latex/support/csl-citation-tests.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
\cite{ITEM-1, ITEM-2}
}

\TEST{Citation with page locator}{
\cite[page = 6]{ITEM-1}
}

\TEST{Citation with section locator}{
\cite[section = 2.3]{ITEM-1}
}
Expand All @@ -20,49 +16,69 @@
}

\TEST{Citation with prefix and suffix}{
\cite[prefix = {prefix }, suffix = { suffix}]{ITEM-1}
\cite[prefix=see, suffix={and other works}]{ITEM-1}
}

\TEST{Citation with implicit prefix and suffix}{
\cite[prefix][suffix]{ITEM-1}
\cite[see][and other works]{ITEM-1}
}

\TEST{Citation with implicit suffix}{
\cite[suffix]{ITEM-1}
\cite[and other works]{ITEM-1}
}

\TEST{Citation with implicit prefix}{
\cite[prefix][]{ITEM-1}
\cite[see][]{ITEM-1}
}

\TEST{Narrative citation}{
\textcite{ITEM-1}
\TEST{Citation with prefix, suffix, and multiple items}{
\cite[prefix=see, suffix={and other works}]{ITEM-1, ITEM-2, ITEM-3}
}

\TEST{Narrative citation}{
\textcite[infix='s early work]{ITEM-1}
\TEST{\string\cite*}{
\cite*[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{Multiple cite items with options}{
\cites[See][page = 6]{ITEM-1}[figure = 2]{ITEM-2}
\TEST{\string\parencite}{
\parencite[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{\string\parencite*}{
\parencite*[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{\string\citep}{
\citep[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{Cite only author}{
\citeauthor{ITEM-1}
\TEST{\string\textcite}{
\textcite[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{\parencite*}{
\parencite*{ITEM-1}
\TEST{\string\citet}{
\citet[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{\citeyearpar}{
\citeyearpar{ITEM-1}
\TEST{\string\footcite}{
\footcite[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{Full cite}{
\fullcite{ITEM-1}
\TEST{\string\citeauthor}{
\citeauthor[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{\string\citeyearpar}{
\citeyearpar[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{\string\fullcite}{
\fullcite[prefix=see, page=6, suffix={and other works}]{ITEM-1}
}

\TEST{Multiple cite items with options}{
\cites[See][page = 6]{ITEM-1}[figure = 2]{ITEM-2}
}

\TEST{Uncited entry}{
\TEST{\string\nocite}{
\nocite{ITEM-3}
}

0 comments on commit aafc2d4

Please sign in to comment.