# Tag Info

5

Like this? \documentclass{article} \usepackage{pgffor} \usepackage{graphicx} \begin{document} \foreach \x in {a,b,c} { \begin{figure}[p] \includegraphics[scale=.5]{example-image-\x} \caption{So, three figures displayed, and this one has the number \x\ of the letter position (or iteration count)} % ie. 1 for a, 2 for b, 3 for c \end{figure} ...

4

If the O.P. uses an older (pre 2015-release) of the LaTeX core, the section number isn't reset. Then fixltx2e should be used. (I've tested with a TeXLive 2014 version still on my computer) With the new kernel this isn't necessary any longer \documentclass{book} \usepackage{fixltx2e} % Does no harm, even in a 2015 release. \begin{document} ...

3

Just use a set of \counterwithin* instructions: \counterwithin*{equation}{section}% Reset equation at \section \counterwithin*{equation}{subsection}% Reset equation at \subsection \counterwithin*{equation}{subsubsection}% Reset equation at \subsubsection \counterwithin*{equation}{paragraph}% Reset equation at \paragraph ...

3

Think twice Are you suggesting inserting the filename at the top of your listing, on a line numbered by 0, as if it were a line of code? I think that's a bad idea: you run the risk of confusing your readers. Typeset the filename as the listing's title A better alternative, in my opinion, is to typeset the filename as the listing's title, by passing the ...

3

This is the expected behavior. \subsubsection{subsub} does not have a number, thus it cannot be referenced. Internally \refstepcounter{subsubsection} is not called, because the default setting of counter secnumdepth excludes \subsubsection and the lower section commands \paragraph and \subparagraph from getting numbers. \label{subsub} therefore references ...

3

Use \setcounterref from the refcount package: \documentclass{exam} \usepackage{lipsum} \usepackage{refcount} \begin{document} \begin{questions} \question [10] \label{e:one} One \end{questions} \lipsum[1] \begin{questions} \question [5] Another \question [5] Yet another \setcounterref{question}{e:one} \question [5] Next \end{questions} \end{document} ...

3

You can use tocbasic from KOMA-Script, like this: \documentclass{scrartcl} \usepackage[framemethod=TikZ]{mdframed} \usepackage{xcolor} % EXAMPLES %% set the counter for your environment \newcounter{example} \renewcommand{\theexample}{\thesection.\arabic{example}} %% define the style \mdfdefinestyle{example}{% backgroundcolor=black!2, ...

3

The problem here is that the class uses symbols to typeset the affiliations through the kernel's \@fnsymbol and the kernel only provides nine definitions for the symbols used; attempting to use more than nine symbols will trigger the error given by \@ctrerr, i.e., ! LaTeX Error: Counter too large. One possible solution would be to modify \@fnsymbol to ...

1

You can use \makeatletter \@addtoreset{section}{part} \makeatother A complete example: \documentclass{amsart} \makeatletter \@addtoreset{section}{part} \makeatother \begin{document} \part{Test part one} \section{Test section} \part{Test part two} \section{Test section} \end{document} The result:

Only top voted, non community-wiki answers of a minimum length are eligible