Questions tagged [counters]
{counters} is about macro writing involving counters. For general questions about numbering document elements, use {numbering}.
1,516 questions
2 votes
1 answer
64 views
how to make reference to theorem counter
This is a continuation of my previous question on manually increasing the theorem counter. So I was able to manually increase and then access the theorem counter, but I am not able to make reference ...
0 votes
1 answer
31 views
How to access and modify theorem counter
For various reasons I need to access the theorem counter, increase it by once manually, and then continue with the normal counter. Here is a minimal NON-WORKING example to show what I have in mind: \...
1 vote
0 answers
48 views
I cannot properly reference tcolorbox environments with custom counter
I defined -through trial and error- some tcolorbox environments for my definitions and theorems. I used a "main_counter" because I wanted the same counter for both this custom environments ...
7 votes
2 answers
149 views
How can I use a counter with a dynamically-created name in Latex Expl3?
I am new to Expl3 and would like to be able to use a counter by retrieving its name dynamically, performing this operation within a user command for other stuff. I am unable to display the counter ...
0 votes
1 answer
52 views
How to change numbering depth for amsthm
I want the theorem numbering "depth" to be modifiable during the document. How do I do this? In other words, I want to switch between the effects of \newtheorem{theorem}{Theorem}[section] ...
0 votes
0 answers
42 views
A counter to replace chapters not supported in amsart
Related to question without an answer Defining chapter in LaTeX under amsart, I know that amsart class haven't a \chapter command. To write a chapter I use the enviroment center, like the example ...
2 votes
1 answer
40 views
Create a new environment based on `algorithm2e` with an independent counter and correct `hyperref` links
I'm trying to create a new LaTeX environment, let's call it algprocedure, for typesetting procedures. I want it to look and feel exactly like the algorithm environment from the algorithm2e package, ...
0 votes
1 answer
42 views
Label and cross-reference a dialogue
I am using the dialogue package to write numbered dialogues. I have created a command with counters to automatically increment the numbers of the dialogue. I want to know whether there is any way to ...
0 votes
0 answers
38 views
Why is my LyX local layout not exporting to pdf?
I'm currently pulling together the rules for a boardgame and its expansion modules using Lyx. To be consistent with the actual rule documentation, I've made a local layout to change the font and ...
4 votes
2 answers
319 views
Define counters using a loop
I am preparing a template for a question paper in which the syllabus units are indicated alongside each question. Subsequently, I would like to generate a table showing the number of questions and the ...
2 votes
1 answer
48 views
How do I get framebreak to 'count' slides (1/n), (2/n), etc. instead of I, II, III, ...? [duplicate]
In beamer I am not a fan of how the [allowframebreaks] works. I would like the counter, instead of being in roman numerals, to count (1/n), (2/n), ..., (n/n). Is there a way to impliment this? Here is ...
0 votes
2 answers
134 views
Lecture counter and general layout of lecture notes [closed]
I'm trying to replicate the layout of a script I found nice to read and look at. However, even after extensive research (and asking available AI tools), I just couldn't find any package or MWE to ...
4 votes
2 answers
187 views
Missing \endcsname inside of \edef
I know now that the code I am including here is the wrong way to save the output of a macro because expansion comes before function evaluation (so now I am doing something completely different), but I ...
3 votes
2 answers
203 views
Making two theorem numbers match up
I've got some theorems in my paper that I state, and then later in the paper state a variant of them. I like the variant theorems to have the same numbering as the original, but with a prime after it....
2 votes
1 answer
113 views
\Alph counter doesn't change its value in \paragraph
I'm using \paragraph as a way to have some \subsubsubsection. They should appear as: A) something B) some other thing Instead, each time I use \paragraph I only get an A). Can someone help me ...