We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [counters]

{counters} is about macro writing involving counters. For general questions about numbering document elements, use {numbering}.

Filter by
Sorted by
Tagged with
0
votes
0answers
54 views

How to get pagecount dynamically in LaTeX? [duplicate]

I would like to get the page count in my LaTeX document such that I do not need to do manaually do it. Pseudocode \documentclass{article} \usepackage{hyperref} \begin{document} Page count: % TODO ...
0
votes
1answer
124 views

Increase counter in caption with caption.sty

It seems that caption.sty expands the argument of \caption twice, which leads to incorrect or at least unexpected values of counters that are increased within the caption: \documentclass{article} \...
0
votes
0answers
23 views

Use two letters for counter [duplicate]

I use letters to indicate footnotes, so I use the \alph command to output the footnote number. The problem is that \alph can only handle numbers up to 26 (corresponding to the letter z). Is there any ...
0
votes
0answers
18 views

Theorem does not work after MikTeX update; no counter defined [duplicate]

The following stopped working after I updated MikTeX today: \documentclass{article} \usepackage{amsthm} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{definition_}[equation]{...
0
votes
0answers
26 views

How can I avoid a longtable to be counted? [duplicate]

I use longtables to add Notes to my document. These notes shall not be counted. Can I tell longtable this (similar to \chapter* instead of \chapter)?
0
votes
1answer
220 views

Theorem numbering as subsections and automatic solutions

I have a problem environment where the counter is coupled to the subsection counter. However this doesn't work with automatic solutions. I tried to couple the solutions counter to the subsections as ...
0
votes
0answers
21 views

How to add the total marks using probsoln [duplicate]

I am trying to add the total marks at the end of an exam paper using probsoln. All the questions are in a seperate file and I just use \loadallproblems to add them to the exam paper. I add the number ...
0
votes
0answers
35 views

Conditional on counter definition (TeX) [duplicate]

Is there a way to make a conditional where the test is the definition of a counter with a specific name, i.e. "if there exists a counter named foo, then do [bar], otherwise do [baz]"? If so, how do I ...
0
votes
0answers
40 views

Chemmacros is not resetting the reactions counter in the new chapter [duplicate]

I have a problem with chemmacros counter. When I type the reaction in different chapter, the counter of the equation doesn't restart. See the example \documentclass[twoside]{ecsthesis} \...
0
votes
0answers
35 views

Listings: total line number count [duplicate]

Is there a way to determine how many lines a listings-environment has (included via \lstinputlisting) and display it in a text or caption? I found the counter \thelstnumber. But if it is used before a ...
0
votes
0answers
75 views

Figure counter and figure label issues [duplicate]

i ve got an issue with Figure counting and, i think, labeling. Though I set the counter for figures at 0, my first figure, that I d like to have counted as 'Fig.1' and that is labeled as \label{graf1}...
-1
votes
2answers
82 views

Package for adding to start time to make an event “running sheet”? [duplicate]

I'd like to form a "running sheet" for an event that is likely to change, so I'd like LaTeX to keep track of the calculations for me if the programme changes. I imagined storing a "start" time, ...
-1
votes
1answer
82 views

add counter to tcbset beamer

I have defined a tcbset as follows: \tcbset{% left=6mm, right=6mm, top=6mm, bottom=6mm, middle=4mm, } \tcbset{% outerlayer/.style={% enhanced, sharpish corners=all, colbacktitle=dcol,...
-1
votes
1answer
209 views

Counter - Examples [duplicate]

People. Sorry about the English language. I created an environment with some help here, and now I need help with the counter. \newcounter{examplecounter} \newenvironment{exemplo}{\begin{framed}\...