Skip to main content
5 votes

Automatic table row numbers

The tabularray package has the rownum counter to access the row number: \documentclass{article} \usepackage{tabularray} \begin{document} \begin{table}[htbp] \centering \begin{tblr}{c|c} \...
samcarter_is_at_topanswers.xyz's user avatar
5 votes

conditional enumerate labels

You can use “properties” and properly named environments, rather than the generic enumerate. I define a new property that records the value of the counter subquestion at the end of an exercise ...
egreg's user avatar
  • 1.1m
5 votes

conditional enumerate labels

If it's fine to use an environment for the individual exercises, the following can be used (it'll detect if you use either \begin{enumerate} or \begin {enumerate} inside it): \documentclass{article} \...
Skillmon's user avatar
  • 61.6k
5 votes
Accepted

add an apostrophe to equation number having a distant scope

Something like this? \documentclass{article} % or some other suitable document class \usepackage{amsmath}. % for 'align' environment and '\tag' macro \usepackage{bm} % for '\bm' macro; don'...
Mico's user avatar
  • 514k
5 votes

Building a Table by Enumerating Rows

An anternative using tabularray and functional packages. It is not very lightweight, but the programation is, imho, easier to follow. \documentclass{article} \usepackage{xcolor} \usepackage{tabularray}...
Mane32's user avatar
  • 2,319
4 votes

Building a Table by Enumerating Rows

With a very simple user level syntax (the code is admittedly not so simple): \documentclass{article} \ExplSyntaxOn \NewDocumentEnvironment{enumtabular}{ob} {% #1 = optional column specifications %...
egreg's user avatar
  • 1.1m
4 votes

add an apostrophe to equation number having a distant scope

I'd make a few fixes to your code, besides adding the “variant equation numbers”. Don't rely on current equation numbers when defining a \label \left(\begin{array}{l}...\end{array}\right) is more ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

Numbering inside restated theorem

Since the problemstellung and equation counters are siblings, the value of the equation counter stored at the end of the restatable environment is one more than the problem counter. This is why the ...
mbert's user avatar
  • 4,531
1 vote
Accepted

How to color only the chapter, section and subsection numbers in Table of Contents?

To elaborate on daleif's comment, you should replace each occurrence of \textcolor{red} in your original source code with \color{red}. This will result in the following output:
guemax's user avatar
  • 170
1 vote

How to color only the chapter, section and subsection numbers in Table of Contents?

You cannot always expect that the macros is executed in a manner where they are given an argument. Here, say, \cftsecpresnum is used like this ...\cftsecpresnum #1... where #1 is the numbering. So if ...
daleif's user avatar
  • 55.2k
1 vote

align* but show one equation number at the end

The environment {DispWithArrows} of witharrows, which is similar to {align} provides a key tagged-lines to control which lines will be tagged. With tagged-lines=last, only the last line is tagged. \...
F. Pantigny's user avatar
  • 43.2k

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