Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentclass: report --> undefined control sequence \frontmatter #5348

Closed
habamax opened this issue Mar 4, 2019 · 5 comments
Closed

documentclass: report --> undefined control sequence \frontmatter #5348

habamax opened this issue Mar 4, 2019 · 5 comments

Comments

@habamax
Copy link

habamax commented Mar 4, 2019

pandoc version: 2.7

test.md

---
title: Check Report Class
subtitle: LaTeX и pandoc
author: Maxim Kim
lang: en
toc: true
documentclass: report
---

# This has to be a report

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Maecenas feugiat fermentum pretium. Cras eu dolor imperdiet justo mattis
pulvinar. Cras nec lectus ligula. Proin elementum luctus elit, a tincidunt quam
facilisis non. Nunc quis mauris non turpis finibus luctus. Maecenas ante
sapien, sagittis quis accumsan in, feugiat quis sem. Praesent et auctor libero.

Result

pandoc test.md -o test.pdf -s --pdf-engine=xelatex
Error producing PDF.
! Undefined control sequence.
l.83 \frontmatter
@jgm
Copy link
Owner

jgm commented Mar 4, 2019

Workaround for now: add

-Mbook-class=false

or put

book-class: flase

in metadata.

@yopox
Copy link

yopox commented Mar 13, 2019

Is there a reason for book-class to be true by default ? This breaks the compatibility with old .md files.

@jgm
Copy link
Owner

jgm commented Mar 13, 2019

Don't worry about this; it's all fixed in the latest release.
This was just a workaround for the last one.

@noraj
Copy link

noraj commented Feb 2, 2020

@jgm

pandoc test.mkd \
--from commonmark \
--to pdf \
-o test.pdf \
--pdf-engine=lualatex \ 
--table-of-contents \
--toc-depth 6 \
--number-sections \
--top-level-division=chapter \
--highlight-style breezedark \
--template eisvogel

Error producing PDF.
! Undefined control sequence.
l.330 \frontmatter

With last version of pandoc and texlive.

Switching those in frontmatters don't change anything:

book: false
book-class: false

@noraj
Copy link

noraj commented Feb 2, 2020

That's --top-level-division=chapter generating the issue with commonmark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants