Closed syxolk closed 7 years ago
Quick workaround:
# documentclass: beamer
# usepackage: minted
# title: My Title
# date: My Date
# author: My Author
# institute: My Institute
\begin{document}
# frame [fragile]:
# minted {xml}:
<xml></xml>
\end{document}
Indeed I've seen a couple of weird LaTeX corners / packages where indentation matters (although it kind of shouldn't). TBH I personally do not encounter them often, so this is a totally untested territory. I'll take a look into it.
Maybe I should implement a transpilation flag that flattens all indents...
Thanks for the workaround. Seems to compile now.
Regarding the beamer package: https://tex.stackexchange.com/questions/234778/indenting-endframe-in-fragile-slides
Someone mentions that is was fixed in December 2016: https://github.com/josephwright/beamer/commit/0c387deb21263aff6bc4864618e3cb74dcf32357
Maybe I should implement a transpilation flag that flattens all indents...
Some ideas for naming:
--disable-indent
or --no-indent
: disables all indent in output file--disable-document-indent
or --no-document-indent
: disables indent only for \begin{document}
Also possible: --flatten-output
or --trim-indents
.
I'm strongly against --disable-document-indent
. First, I want to deal only with LaTeX syntax, not its semantics. Second, my root files contain only a bunch of \include
s and \input
s, so it wouldn't help that much.
Closed in #10
I got this indentex file
main.inden.tex
:Then try to make a PDF:
But it fails with:
However, for some weird reason it doesn't fail if I manually remove the indentation of
\end{frame}
:I know this is mainly an issue of the beamer package but do you know of any quick workaround?