8000 HTML -> LaTeX -[pdflatex]-> PDF fail due h4 or h5 inside blockquote · Issue #1221 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
HTML -> LaTeX -[pdflatex]-> PDF fail due h4 or h5 inside blockquote #1221
Closed
@rgaiacs

Description

@rgaiacs

Some times, when use pdflatex to compile .tex get using pandoc from .html I got a error when .html has h4 or h5 inside a blockquote.

HTML sample

$ cat h4.html
<html>
<body>
<blockquote>
  <h4>My header</h4>
  <p>Some text.</p>
</blockquote>
</body>
</html>

Steps to reproduce

$ pandoc --version
pandoc 1.12.3.3
$ pdflatex --version
pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013)
$ FILENAME=h4; pandoc --standalone -f html -t latex -o ${FILENAME}.tex ${FILENAME}.html && pdflatex ${FILENAME}.tex

pdflatex error

! LaTeX Error: Something's wrong--perhaps a missing \item.

Tip to solve this issue

As far as I can tell, the cause of this issue is \paragraph (and \subparagraph for the case of h5) inside quote environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0