GESIS-Methods-Hub / andrew

Content Aggregation System for tutorials and vignette of reproducible computational methods.
https://gesis-methods-hub.github.io/andrew/
MIT License
2 stars 0 forks source link

LuaLaTeX stop with `\pdfextension endlink cannot be used in vertical mode` #194

Closed rgaiacs closed 1 year ago

rgaiacs commented 1 year ago
! error:  (pdf backend): \pdfextension endlink cannot be used in vertical mode
!  ==> Fatal error occurred, no output PDF file produced!

This blocks https://github.com/GESIS-Methods-Hub/andrew/issues/193

rgaiacs commented 1 year ago

The issue here is a line break inside a link like in minimal DOCX working example. The line break inside the link is impossible to recognise.

Screenshot of minimal DOCX working example

Even with the symbols enabled:

Screenshot of minimal DOCX working example

The line break is visible in the XML:

    <w:p>
      <w:pPr>
        <w:pStyle w:val="FirstParagraph"/>
      </w:pPr>
      <w:hyperlink r:id="rId20">
        <w:r>
          <w:rPr>
            <w:rStyle w:val="Hyperlink"/>
          </w:rPr>
          <w:t xml:space="preserve">DuckDuckGo_Search</w:t>
        </w:r>
        <w:r>
          <w:br/>
        </w:r>
      </w:hyperlink>
      <w:r>
        <w:t xml:space="preserve">(all result types)</w:t>
      </w:r>
    </w:p>

Pandoc will preserve the line break.