On Monday, August 31, 2015 at 5:28:43 AM UTC-4, nickba...@gmail.com wrote:
For clarity: the hanging indent filter above inserts `\item` in front of every entry, and requires the definition of a `references` environment in a template:
~~~
\newenvironment{references} {\list{}{% hanging indent, src/myfilters/addRefEnvItem.hs
\leftmargin1.5em%
\itemindent-\leftmargin%
\itemsep0.5ex%
\parsep0pt%
}}
{\endlist}
~~~
I wonder whether the latex writer itself shouldn’t insert such a `references` environment by default. Hanging indent is required by many styles anyway but could be redefined as necessary.
Even better, pandoc(-citeproc) could parse the CSL `hanging` and `second-field-align` flags, and inject appropriate formatting instructions into the `references` environment.