Issue #118 resolved

sub/section number in references is wrong, when using AtBegin

A Mennucci avatarA Mennucci created an issue

hi

in the attached example, the references to labels of sections and subsections are wrong.

The problem is that the LaTeX \section{sec3}\label{sec3} works by writing the content of \@currentlabel into the test.aux file. But if

\AtBeginSection[]{
\begin{frame}<presentation>[plain]
\frametitle{Outline of section}
\tableofcontents[currentsection]
\end{frame}}

is used, the 'frame' environment damages the value of \@currentlabel

The 'frame' environment should store the value of \@currentlabel somewhere and put it back when it ends. (Thats what all other LaTeX environment such as theorems and equations do).

I attach a test case, and a a patch.

a.

ps: this was posted as bug 2089481 in sourceforge, together with a patch, but the patch was never applied; I hope this time it is.

Comments (3)

  1. A Mennucci

    BTW: when I originally wrote the patches (for sourceforge), I solved the issues 117 and 118 alltogether; in presenting them here, I split it in two; but it may be the case that I got it wrong, so that you have to use both patches together to fix the issues. That is, I can guarantee that if you apply both patches in 117 and 118 , then the issues are fixed (I tested it); but I am not so sure that I splitted them right). a.

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.