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

Pandoc silently drops \dedication{} environments from LaTeX input #1845

Closed
klausman opened this issue Dec 29, 2014 · 5 comments
Closed

Pandoc silently drops \dedication{} environments from LaTeX input #1845

klausman opened this issue Dec 29, 2014 · 5 comments

Comments

@klausman
Copy link

Simple example:

$ echo '\dedication{To my nonexistent readers}'| pandoc -f latex -t plain
[no output]

Basically, \dedication is like an unnumbered, unlisted \section that is between the title page and the TOC (and even before the \frontmatter, but after \lowertitleback)

\lowertitleback is similarly dropped:

$ echo '\lowertitleback{To my nonexistent readers}'| pandoc -f latex -t plain
[no output]

This is with:

pandoc 1.13.1
Compiled with texmath 0.8.0.1, highlighting-kate 0.5.11.1.
Syntax highlighting is supported for the following languages:
    abc, actionscript, ada, agda, apache, asn1, asp, awk, bash, bibtex, boo, c,
    changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css,
    curry, d, diff, djangotemplate, dockerfile, dot, doxygen, doxygenlua, dtd,
    eiffel, email, erlang, fasm, fortran, fsharp, gcc, glsl, gnuassembler, go,
    haskell, haxe, html, ini, isocpp, java, javadoc, javascript, json, jsp,
    julia, latex, lex, lilypond, literatecurry, literatehaskell, lua, m4,
    makefile, mandoc, markdown, mathematica, matlab, maxima, mediawiki,
    metafont, mips, modelines, modula2, modula3, monobasic, nasm, noweb,
    objectivec, objectivecpp, ocaml, octave, opencl, pascal, perl, php, pike,
    postscript, prolog, pure, python, r, relaxng, relaxngcompact, rest, rhtml,
    roff, ruby, rust, scala, scheme, sci, sed, sgml, sql, sqlmysql,
    sqlpostgresql, tcl, tcsh, texinfo, verilog, vhdl, xml, xorg, xslt, xul,
    yacc, yaml, zsh
@mpickering
Copy link
Collaborator

Are these standard command sequences?

If you use the -R flag then the commands are in fact parsed. Then it is the plain writer which throws the information away.

~:echo '\dedication{To my nonexistent readers}'| pandoc -R -f latex -t native
[Para [RawInline (Format "latex") "\\dedication{To my nonexistent readers}"]]
``

@klausman
Copy link
Author

Near as I can tell, \dedication is a standard environment for the book and article classes, both plain LaTeX and when using KomaScript classes. The \lowertitleback is Koma-specific, but very handy when writing Ebooks: it's where all the fine print goes (ISBN, copyright notices, disclaimer etc.)

@klausman
Copy link
Author

My actual target is EPUB, but the effect is easier to show with -t plain. In EPUB, the same effect as with -t plain happens: the text just disappears.

In either case, the text should just be there. For \lowertitleback should be just behind the title page/file, for \dedication, somwhere between that and the TOC.

@jgm
Copy link
Owner

jgm commented Feb 27, 2017

\dedication isn't part of the standard book or article class. It seems to be koma specific. Also, it seems to work like \author and \title -- you use it in the preamble and it affects the output of \maketitle. I will add code to handle it, though.

Note that in the present dev version of pandoc you will get an informational message about the skipped content if you specify --verbose.

@jgm jgm closed this as completed in 1d17dbd Feb 27, 2017
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