Skip to content

Commit

Permalink
Handle comments in TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Jan 23, 2024
1 parent c7c07a2 commit 64136da
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions newrevisor.sty
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@
% without star: footnote
{\newrevisor@RevComment[#2]{\MakeUppercase{#1}}{##2}}%
}%%
\patchcmd{\@starttoc}
{\begingroup}
{\begingroup\uppercase{\expandafter\RenewDocumentCommand\csname#1}\endcsname{s+m}{\ignorespaces}}
{}{}

}

\newcommand\hiderevisor[1]{%%
Expand Down
Binary file added test-section-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions test-section.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
\documentclass[class=article,crop=false]{standalone}
\usepackage{newrevisor}
\usepackage[a5paper,paperheight=20cm,left=0cm,right=3.5cm,top=0cm,bottom=0cm,nohead]{geometry}
\newrevisor{manuel}{violet!75}
\begin{document}
\thispagestyle{empty}
\tableofcontents
\listofrevisions%
\section{Main\manuel{document}{section}}
\subsection{Main\manuel{document}{subsection}}
\section{Another\MANUEL{a comment}}
\section{Last\MANUEL{another comment}}
\end{document}


%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

0 comments on commit 64136da

Please sign in to comment.