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

kaobiblio: fix \sideparencite command (was not printing in margin) #212

Merged
merged 1 commit into from
Mar 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
kaobiblio: fix \sideparencite command (was not printing in margin)
  • Loading branch information
Dettorer committed Feb 11, 2022
commit cc72e594ce611a5526392caf800f6da0118820f5
16 changes: 8 additions & 8 deletions kaobiblio.sty
Original file line number Diff line number Diff line change
Expand Up @@ -282,23 +282,23 @@
% With this we print the marker in the text and add the item to the bibliography at the end
\IfBooleanTF#1%
{\IfNoValueOrEmptyTF{#3}%
{\parencite*{#5}}%
{\parencite*{#5}\kaobiblio@sidecite{#5}}%
{\IfNoValueOrEmptyTF{#4}%
{\IfNoValueTF{#4}%
{\def\@tempa{\parencite*[#3]{#5}}}%
{\def\@tempa{\parencite*[#3][]{#5}}}% postnote is empty, so pass empty postnote
{\def\@tempa{\parencite*[#3]{#5}\kaobiblio@sidecite{#5}}}%
{\def\@tempa{\parencite*[#3][]{#5}\kaobiblio@sidecite{#5}}}% postnote is empty, so pass empty postnote
}%
{\def\@tempa{\parencite*[#3][#4]{#5}}}%
{\def\@tempa{\parencite*[#3][#4]{#5}\kaobiblio@sidecite{#5}}}%
}%
}%
{\IfNoValueOrEmptyTF{#3}%
{\def\@tempa{\parencite{#5}}}%
{\def\@tempa{\parencite{#5}\kaobiblio@sidecite{#5}}}%
{\IfNoValueOrEmptyTF{#4}%
{\IfNoValueTF{#4}%
{\def\@tempa{\parencite[#3]{#5}}}%
{\def\@tempa{\parencite[#3][]{#5}}}% postnote is empty, so pass empty postnote
{\def\@tempa{\parencite[#3]{#5}\kaobiblio@sidecite{#5}}}%
{\def\@tempa{\parencite[#3][]{#5}\kaobiblio@sidecite{#5}}}% postnote is empty, so pass empty postnote
}%
{\def\@tempa{\parencite[#3][#4]{#5}}}%
{\def\@tempa{\parencite[#3][#4]{#5}\kaobiblio@sidecite{#5}}}%
}%
}%
\ifkaobiblio@addspace%
Expand Down