Anonymous - 2018-01-03

An attempt at the alternative for B, i.e. we leave \fi and \li to
style.cfg.

Problem: if a \bibitem has a second paragraph, its left indent will
not line up with the first if user changes bibitem \fi and \li in
style.cfg

Changes:

In vertical.h:
- introduce PARAGRAPH_BIBITEM

In xrefs.c:

  • CmdThebibliography() does not change parindent

  • It still sets left margin.

    However the amount we should use is not known (maybe it could
    be parsed from style.cfg), so if the bibitem has a second
    paragraph, its left indent will not generally match to the first.

    As a stopgap measure, amount in CmdThebibliography is changed
    to match the value in style.cfg

    Note: the itemize environment has a similar problem (try
    attached bibitem-alternative-test.tex)

  • CmdBibitem() calls startParagraph() with PARAGRAPH_BIBITEM

  • in vertical.c:

startParagraph() now does not emit \fi and \li if called with
PARAGRAPH_BIBITEM

Attachments:

  • bibitem-alternative.diff (patch)

  • bibitem-alternative-test.tex (test file, now includes second
    paragraph for \bibitem and for \item in an itemize environment)