GNU bug report logs - #29401
11.90.2.2017-07-25; Folding displays errors on valid LaTeX

Previous Next

Package: auctex;

Reported by: Koen van Greevenbroek <koenvangreevenbroek <at> gmail.com>

Date: Wed, 22 Nov 2017 16:56:02 UTC

Severity: normal

Found in version 11.90.2.2017

Full log


View this message in rfc822 format

From: Koen van Greevenbroek <koenvangreevenbroek <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>
Cc: 29401 <at> debbugs.gnu.org
Subject: bug#29401: 11.90.2.2017-07-25; Folding displays errors on valid LaTeX
Date: Fri, 01 Dec 2017 06:41:02 -0800
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.