# Tag Info

## New answers tagged labels

0

Here is a suggestion using the package scrlayer-scrpage \documentclass{scrbook} \usepackage{lipsum} \usepackage[manualmark]{scrlayer-scrpage} \clearpairofpagestyles %%% alternatively: %\usepackage[manualmark]{scrpage2} %\clearscrheadfoot %\pagestyle{scrheadings} \chead{\pagemark} \lehead[\rightmark]{\rightmark}\rohead[\leftmark]{\leftmark} ...

1

As far as I can see, the cause of the original error message was the auto option, which seems to be incompatible with the way currents are typeset in circuitikz. I ran into the same problem and had to debug for quite some time before I found out that the culprit was a \tikzset{auto} that I had in the file header, that I needed for a number of other tikz ...

4

You can use \dtlexpandnewvalue to expand the \ref in \sortitem. However, this can only be done once \ref has been defined and which is only after the .aux file has been created. Hence, the following is the output after the second run: During the first run this will be displayed as: Notes: To allow for use with hyperref I now check to see if ...

2

I suggest you insert the instruction \phantomsection between \newpage and \begin{minted}. The purpose of this instruction is to provide an "anchor" of sorts for hyperref, so that a cross-reference to an object that doesn't have an automatic counter associated with it will still take you to the intended location within the document.

3

You can use the \tag command -- it supplies the () brackets for you: Here's the full MWE: \documentclass{amsart} \begin{document} \begin{align} \mathcal{L}_{\lambda} = u_{1}(h) - u_{1}(h^{*}) + T \geq 0, \tag{\text{foc$\lambda$}} \label{eqn:foca1}\\ \mathcal{L}_{T} = -1 + \lambda = 0 \Leftrightarrow \lambda = 1, ...

1

Just 4 fun with PSTricks. \documentclass[pstricks,border=12pt,12pt]{standalone} \begin{document} \begin{pspicture}[dimen=m](11,1.5) \foreach \i in {0,...,10}{\rput(\i,.5){\psframe(1,1)\rput(.5,.5){0}\uput[-90](.5,0){\i}}} \end{pspicture} \end{document}

6

You can use decorations.text library: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture}[scale=5] \coordinate [label=above right:ut] (ut) at (2,0); \coordinate [label=above right:fa'] (fa') at (4,0); \coordinate [label=above:C] (C) at (2, 2.4); \coordinate ...

3

I know it's more tedious for this simple example, but for educational purposes it might be interesting to see how to add proper TikZ styles to the label: \node[cell,label={[font=\small, red, rotate=20]below:\i}] Note that the braces around the value in label={[]stuff} are necessary.

6

Rather than give special meaning to items based on the labels' "prefixes" (a:, b:, ...), I'd use a feature that's already provided by the cleveref package: use the optional argument of the \label command to override an item's default cross-referencing name. In the following example, I first inform cleveref about the singular and plural forms of items called ...

2

Based on my answer at new command for including a custom string into \cref, one can change the labels of cleveref (and also work with hyperref). In this answer, I extend that to look at the first character of the label to help decide what the reference should look like. Here, I create a new macro, \crefX to do the job, but it could be made to replace the ...

3

A PSTricks solution: \documentclass{article} \usepackage{multido,pstricks} \psset{dimen = m} \begin{document} \def\cells{11} % number of cells \begin{pspicture}(\cells,1.4) \multido{\r = 0.5+1, \i = 0+1}{\cells}{% \psframe(!\r\space 0.5 sub 0.4)(!\r\space 0.5 add 1.4) \rput(\r,0.9){$0$} \rput(\r,0.1){\scriptsize $\i$}} \end{pspicture} ...

5

try (using TikZ for red arrow with text): \documentclass[12pt,tikz,border=3mm]{standalone} \usepackage{circuitikz} %---------------------------------------------------------------% \begin{document} \begin{circuitikz}[american, scale = 0.7, transform shape]%\shorthandoff{<>} \draw (0,0) to[R, l = $R_1$] (0,3) to [short] (2,3) to ...

3

Just add \scriptsize: \node[cell,label=below:{\scriptsize \i}] You can change the font or whatever in the same way.

3

Trick cleveref into thinking that “name” is the number. \documentclass{article} \usepackage{array,booktabs,cleveref} \newcounter{typerule} %%% standard format %\crefname{typerule}{rule}{rules} %%% more complex form \crefformat{typerule}{#2rule~\textit{#1}#3} \Crefformat{typerule}{#2Rule~\textit{#1}#3} \newcommand{\typerule}[4]{% \def\thetyperule{#1}% ...

7

It's a timing problem between afterpage and the end of \include. After the .tex file is read, \include calls \clearpage, which is redefined by afterpage. First the page is output, then the stuff inside \afterpage is executed. The stuff are float objects, thus they are not yet set, waiting for the next call of the output routine. In the meantime, \include ...

1

One way, with tikz: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw (1.5,0) rectangle (0,1.5) node[above right] {$\beta$}; \end{tikzpicture} \end{document}

2

The labels seem to be placed with the auto option enabled, which places the node/label on the side of the line, in your MWE above it. As such you can add the swap option to move the label to the other side. \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphdrawing,positioning,graphs} \usegdlibrary{layered, trees} \begin{document} ...

8


8

Here's one way, by stuffing the repeated figure content in a saved\vbox. However, in this case, the repeated figure will not be a float. EDITED to resolve List of Figures issue. \documentclass{article} \newsavebox\savefigure \begin{document} \listoffigures \begin{figure}[ht] \centering \framebox{first figure} \caption{First caption} \end{figure} ...

Top 50 recent answers are included