All Questions
Tagged with automation counters
12
questions
2
votes
1
answer
159
views
How to modify the counter for tikzexternalize file names?
Many journals require the figures of a submission to be handed in separately, using sensible names.
Tikz-external seems like the perfect fit for this job if the majority of figures are based on tikz/...
1
vote
1
answer
84
views
How to number constants based on first use?
Much like the author of this question, I would like to automatically number some constants in my document. A relatively easy way to do this is by creating a new counter, assigning a label to each ...
0
votes
1
answer
405
views
mcexam a custom type question
I'm trying to create an exam using the code provided by him.
Here is the code:
\documentclass[twoside]{article}
\usepackage[english]{babel}
% set fonts
\usepackage[utf8]{inputenc}
\usepackage[T1]{...
3
votes
2
answers
656
views
Properly setting \thecounter when defining \newcounter{counter}[resetwith]
With \newcounter{counter}[resetwith], I can define a counter to be automatically reset when resetwith changes.
However, it seems that \thecounter is defined to just display the value of counter, and ...
1
vote
0
answers
312
views
Use a counter as label [closed]
I want to set the value of a counter as a label.
I have the following structure:
\section{First Section}
Some text
\subsection{First Subsection}
Text again
\subsection{Second Subsection}
...
1
vote
1
answer
290
views
Automatically reset the counter of a custom-defined sectioning block with titlesec
I added a custom sectioning block to my document following the instructions I found on this question: Defining custom sectioning commands. Below is a mvce:
\documentclass[12pt]{article}
\usepackage{...
4
votes
1
answer
246
views
Is there a way to know how often latex has already run? [duplicate]
A few days ago, I have seen an example of a latex file, that did conditional \defs on subsequent runs but I can't find that one again.
I still remember that it was by looking into the \jobname.aux do ...
3
votes
1
answer
106
views
Automatic tabular cell switching
Now I want to automatically switch cols and rows by counting. I have already pinned the issue down to the alignment character &:
\newcounter{myRow}
\newcounter{myCol}[myRow]
\setcounter{myRow}{1}
...
3
votes
1
answer
1k
views
How do I Auto-Label Hyperref Fillable Forms \TextField?
Is there any way to put an automatic label into the hyperref package's \TextField parameters field like this:
\newcounter{lexemeCounter}
\newcommand\lexemeCount{\stepcounter{lexeme}\...
39
votes
6
answers
9k
views
Count and use the number of items in advance
When writing LaTeX code, I often successively make changes like adding or removing items. I'd like to have TeX count and update the number of items in the list automatically, as in
There are \...
7
votes
3
answers
2k
views
Extract document statistics? - How many pages has chapter xy? Count fixmes?
I have a large pdflatex document where each chapter is located in an extra text file and included with \include{chapter3.tex} ...
How can I extract the page numbers of each chapter and write them ...
22
votes
2
answers
2k
views
Automatically numbering constants
I would like to somehow use LaTeX to automatically number constants.
Some background
As a mathematician, in my daily work there are a lot of throw-away constants which are not extremely important ...