> Would it suffice to use `\begin{hangparas}%`?

No, Latex would still see a paragraph break.

> `\hyperdef{}{ref-...}{}`

Is it safe to assume that the Latex writer always puts this on a line of its own? Should I submit a pull request?

> [Nick Y.'s new filter]

Tried that carefully, but no `\begin{hangparas}`/`\end{hangparas}` pair seems to appear in the output. Am I doing something wrong? Does it work for anyone else here?


Actually, a workaround can be used in Latex to remove the first paragraph break following `\begin{hangparas}`, using \@gobble  (though I'd much prefer an improved filter which would make this superfluous):

\makeatletter
\newcommand\gobblepars{\@ifnextchar\par{\expandafter\gobblepars\@gobble}{}}
\makeatother

\newenvironment{hangparas}[1][1.5em]{%
 
\addmargin[#1]{0pt}\setlength{\parindent}{-#1}\hspace*{-#1}%
 
\ignorespaces\gobblepars%
}{%
 
\endaddmargin
}

I'll also note that the biblatex package itself seems to use latex *lists* to format the bibliography; this might be worth exploring, too, not only for hanging but also for numbered and "block" bibliography formats.

On Saturday, 28 March 2015 03:17:34 UTC, John MacFarlane wrote:
+++ nickba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [Mar 27 15 15:22 ]:
>So, (1) can the filter be modified to remove the empty line after
>`\begin{hangparas}`?

The writer puts blank lines between block elements.  But would it
suffice to use `\begin{hangparas}%`?

>And (2), can the latex writer be patched to insert a `%` after each
>`\hyperdef{}{ref-...}{}%` line?

This comes from line 316 of the LaTeX writer, now that each reference
is enclosed in a Div (this is a new feature and may not even be in
the released version of pandoc-citeproc, btw).
So, yes, this could be changed.

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/08aa7ab5-40b2-45f2-8a86-635c75018bb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.