GNU bug report logs -
#29401
11.90.2.2017-07-25; Folding displays errors on valid LaTeX
Previous Next
Full log
Message #14 received at 29401 <at> debbugs.gnu.org (full text, mbox):
Hi Arash,
> \begin{frame}
> \begin{itemize}
> \item <1>\textbf{One}
> \item <2>\textbf{Two}
> \end{itemize}
> \end{frame}
This version does fold correctly, but it doesn't produce the same
output as the original example. In particular, here the overlay is
applied to the items themselves, while when writing something like
`\textbf<1>{foo}', the idea is that `foo' will be displayed in bold on
the first slide, and normally for the rest of the slides. Maybe an
example that illustrates the folding problem even better is:
\begin{frame}
\textbf<1>{One} \\
\textbf<2>{Two}
\end{frame}
This is syntactically correct, see section 9.3 of the Beamer user
guide.
I agree that code in the preamble will be extremely hard to fold
correctly. However, maybe it could be an idea to ignore commands that
cannot be folded correctly indstead of displaying an error? I know that
I could just not try to fold the preamble, but right now I have
something like
(add-hook 'LaTeX-mode-hook
(lambda ()
(TeX-fold-mode t)
(add-hook 'find-file-hook 'TeX-fold-buffer t t)))
in my .emacs, every LaTeX buffer I visit gets folder automatically. I
think it would be nicer to just not see the errors.
Have a nice day,
Koen
This bug report was last modified 7 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.