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

TOC jump to subsections does not work, can only jump to numbered lines in amsart #255

Open
arjunkc opened this issue Sep 3, 2015 · 1 comment · May be fixed by #261
Open

TOC jump to subsections does not work, can only jump to numbered lines in amsart #255

arjunkc opened this issue Sep 3, 2015 · 1 comment · May be fixed by #261

Comments

@arjunkc
Copy link

arjunkc commented Sep 3, 2015

Here is a working minimal example

\documentclass{amsart}
\input{/home/arjun/Templates/preamble.tex}
\usepackage{natbib}
\usepackage{todonotes}
\usepackage[normalem]{ulem}
%% some custom commands
\newcommand{\K}{\mathbb{K}}
\newcommand{\lions}{Lions and Souganides}
\newcommand{\SET}{subadditive ergodic theorem}
\newcommand{\FPP}{first-passage percolation}
\newcommand{\FPT}{first-passage time}
%\newcommand{\tr}{\textrm{tr}} % for writing trace inside equations
\renewcommand{\limsup}{\overline{\lim}}
\renewcommand{\liminf}{\underline{\lim}}
\newcommand{\deltaapprox}{$\delta$-approximation}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Working Document for FPP Limit Shape}
\usepackage[urlcolor=blue,colorlinks=true,linkcolor=red]{hyperref}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\tableofcontents

\section{To do}
This section is in my notes document.
%%%%%%%%%%%%%%%%%%%%%
\subsection*{Notes}
\subsection*{Problem Definition}
\begin{enumerate} 
  \item Wed 01/02/2013 \label{item:generalized-discrete-problem} Write down the version of the problem that you want to deal with. It needs to have a natural subadditive structure at the core of the problem.   
  \begin{itemize}
    \item What are the assumptions on the weights $l(x,\alpha)$. It seems that one needs to have weights bounded below (not necessarily nonnegative). 
    \item Penalization should work. The assumptions might not be uniform in delta, in this case.
  \end{itemize}
\end{enumerate}
\end{document}

The TOC window shows

1   \tocsection{To do
    \tocsubsection{}{Notes
    \tocsubsection{}{Problem Definition

<Esc>/q: close
<Space>: jump
<Enter>: jump and close
s:       hide numbering

But it cannot jump to any of the subsections. It gives the following error:

Error detected while processing function <SNR>47_TOCActivate..<SNR>47_TOCFindMatch..<SNR>47_TOCFindMatch
..<SNR>47_TOCFindMatch:
line    2:
Could not find: \\subsection\_\s*{.*{Notes}

Is it the amsart class that's giving these issues? I saw a similar issue with beamer

The issue is fixed completely by using \documentclass{article} and recompiling.

@Garonenur
Copy link

same error here using a koma-report class (\documentclass{scrreprt})

@Garonenur Garonenur linked a pull request Mar 30, 2016 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants