-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LaTeX writer: use
cslreferences
environment for csl bibliographies.
this allows bibliographies to receive special formatting. The template now contains definition of this environment (enabled only when CSL is used). It also defines a `\cslhangindent` length. This is set to 2em by default when the bibliography style specifies a hanging indent. To override the length, you can use e.g. \setlength{\cslhangindent}{7em} in header-includes. Closes jgm/pandoc-citeproc#410.
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0fe635d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In pandoc 2.8. adding
to ones own latex tempaltes would solve the CSLReferences environment not found issues. WIth pandoc
2.11.3.
this no longer works. It first treats the
$if(csl-refs)$
as false even if the is a csl file in the YAML block. But even when removing the if condition. There are complains about the\newlength
command. Replacing this with\def
leads to aUndefined control sequence. l.565 \CSLLeftMargin
0fe635d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ttxtea if you're using 2.11.3, you should be using the default latex template, which already includes the needed definitions for CSL (defined somewhat differently than before). Or, if you want to make changes, use what's in that template as your basis.