# Tag Info

11

The problem ist that biblatex doesn't expand fully the argument of prefixnumbers, and so \thechapter gets written literally to the aux file. You could add this to your preamble: \makeatletter \def\blx@addprefixnumber{% \nottoggle{blx@skiplab} {\ifdef\blx@prefixnumbers {\ifundef\abx@field@shorthand ...

11

Not the core aim of the package, but siunitx does have lots of number-processing code built in: \documentclass{article} \usepackage{siunitx} \begin{document} $\num{123456789} = \num[round-precision = 3, round-mode = figures, scientific-notation = true] {123456789}$. \end{document} Note at present some of the internals of siunitx are limited to ...

9

If you want your three types of theorem to share the same counter you have to use: \newtheorem{uncertainty}{Hypothesis} \newtheorem{svo}[uncertainty]{Hypothesis} \newtheorem{uncertaintytype}[uncertainty]{Hypothesis} Note the optional argument that contains the counter uncertainty MWE: \documentclass[12pt]{article} \usepackage{amsthm} ...

8

The PGF math engine can do it. In addition, the pgfplotstable package is quite powerful when it comes to rounding, formatting, and perhaps even postprocessing/generating numerical content. \documentclass{standalone} \usepackage{pgf} \usepackage{pgfplotstable} \begin{document} \pgfmathprintnumber{123456789123456789123456789} \pgfplotstabletypeset{ A B ...

8

Short answer Put \setcounter{section}{3} just before the second \section. Long answer The numbering of sectioning commands is governed by counters that have the same name as the command, e.g. for the \section command we have the counter section, for the \subsection command we have the counter subsection, and so on. Each time a sectioning command is ...

8

Here's a solution that uses only low-level LaTeX macros. (Copy the material starting with \makeatletter and ending with \makeatother to your document's preamble.) The example below employs the llncs document class, but works equally well with the article document class. The trick, such as it is, consists of telling LaTeX to prefix the String "Appendix" to ...

7

Here's one option The idea is create a counter, and then increment (and \label) it every time you call \bulletlabel. % arara: pdflatex \documentclass{article} % set up a counter for bullets \newcounter{bullet} % define a command to increment the bullet counter, and label it in one go ...

6

In article that's the default behaviour, so you don't have to do anything special. In your case you experienced an odd result because you were misplacing \label. Always put \label after \caption in floats (or, inside \caption, but never before it.): \documentclass{article} \usepackage[demo]{graphicx} \begin{document} \section{section} ...

6

This is the example file from the numberedblock package. It makes the labels slightly different than equation numbering, so that one doesn't confuse them if both are used in the document. However, label placement and style can be changed. The documentation is briefly covered in the .sty file itself, as well as this example file. The parameter defaults, ...

6

Load the package titlesec and add this line to your preamble: \titleformat{\section}{\normalfont\Large\bfseries}{\S\thesection}{1em}{}[] MWE: \documentclass{article} \usepackage{titlesec} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{defn}[theorem]{Definition} ...

6

The immediate problem is that you need the counter for paragraphs to be reset when you start a new subsubsubsection. To do this, all you need to do is add: \@addtoreset{paragraph}{subsubsubsection} Note, though, that you probably will also find you want to add some further resets depending on the structure of your document. More generally, I have to say ...

6

Footnotes to the title or authors are treated differently than those in the body, because they're usually meant for acknowledgments or data relative to the author. You can redefine \maketitle not to do that and use the standard \footnote mechanism. For the footnote rule to use the whole text width, another command must be redefined. ...

5

You can simply reset the exx counter just after the \appendix command: \appendix \setcounter{exx}{0} MWE (borrowed from linked answer) \documentclass{book} \usepackage{gb4e} \begin{document} \chapter{} \begin{exe} \ex \gll born be?ettef\={a}q.e yek.i ?az aqv\={a}m.a\v{s} be \v{s}ahr.e per\={a}g moh\={a}jerat kard\\ Born with.EZ one.INDEF from ...

5


5

I hope, this is what you want: \documentclass{article} \pagestyle{empty}% for cropping \makeatletter \let\c@equation=\c@subsection \let\theequation=\thesubsection \makeatother \begin{document} \section{A} $$1+1=2$$ \subsection{X} $$1+1=2$$ $$1+1=2$$ ...

5

The macro as you requested using again pgfmath \documentclass[border=10pt]{standalone} \usepackage{pgf} \pgfkeys{/pgf/number format/.cd ,precision=2,sci generic={exponent={\times 10^{#1}}}} \newcommand\convert[1]{\pgfmathprintnumber{#1}} \begin{document} \convert{123456789123456789123456789123456789123456789123456789} \end{document}

5

You can change the way the equation numbers are printed by modifying the definition of \tagform@. This one prints the text in the right margin: \makeatletter \renewcommand\tagform@[1]{\maketag@@@{(\ignorespaces#1\unskip\@@italiccorr)\rlap{ some text}}} \makeatother MWE: \documentclass{article} \usepackage{amsmath} \makeatletter ...

5

One way to achieve your objective would be to (i) make sure that the definition and theorem environments share the same counter and (ii) redefine the \section command in a way that resets this counter to 0, regardless of whether the sections are numbered or not. The example below does these things, while using the amsthm package. \documentclass{article} ...

5


5

Short answer: Switch to the subcaption package. Long answer: The problem comes from a bad interaction between the H placement specifier from the float package and subfig, as the following reduced example shows: \documentclass[a4paper]{scrreprt} \usepackage[demo]{graphicx} \usepackage{float} \usepackage{subfig} \begin{document} \begin{figure}[H] ...

4

You can introduce a new counter mysub \newcounter{mysub} \setcounter{mysub}{0} \renewcommand{\themysub}{def\arabic{mysub}} and use this one instead of \theequation inside the subequations. If you also want this counter to be reset after the end of the subequations, also add the following lines \usepackage{etoolbox} ...

4

If you would like to have the \S as a feature of the section number everywhere else that it occurs (such as cross-references), then you can define \thesection to contain a \S symbol first, and then define \thetheorem, etc. to remove this symbol as a part of creating the theorem number. Preamble. Consider the following minimal preamble: ...

4


4

You can use \tag: \documentclass{article} \usepackage{amsmath} \begin{document} $$\log \mu_{ijk}= \lambda + \lambda_i ^I + \lambda_j ^J+\lambda_k ^K+\lambda_{ij} ^{IJ}+\lambda_{ik} ^{IK}+\lambda_{jk} ^{JK}+\lambda_{ijk} ^{IJK} \tag{3.1}\label{eq:3.1}$$ \end{document}

4

An automatic way would (probably) mean to redefine the \chapter* command. Perhaps, this will work also for you. \documentclass{amsbook} \begin{document} \newcounter{otherfigure} \setcounter{otherfigure}{0} \let\originalthefigure\thefigure \renewcommand{\thefigure}{\Alph{figure}} \chapter*{Introduction} \begin{figure} \caption{There should be a figure ...

4

A simple way (for the \chapter* figures) is to just redefine \thefigure within the figure environments that need to be changed. \begin{figure} \renewcommand\thefigure{A} % Make this Figure A ... A working example: \documentclass[]{amsbook} \usepackage[demo]{graphicx} % Set counter to include Chapter \usepackage{chngcntr} ...

3

Two solutions: one with the empheq package and an align environment, another with the subnumcases environment from the cases package. I had to adjust spacing for the brace in both, as I found the default was not so good (too small in the first case, too large in the second): \documentclass{article} \usepackage[utf8]{inputenc} ...

3

As chemstyle loads chemscheme automatically, I have commented chemscheme. chemscheme uses a counter scheme for the schemes. You can do this \chapter{Experimental part} \renewcommand*{\thescheme}{E.\arabic{scheme}}% \setcounter{scheme}{0} right where the experimental part starts. \documentclass[a4paper]{report} \usepackage{a4wide} ...

3

Here's a solution that employs LuaLaTeX. There's a TeX-side macro called \tosci and a Lua-side function called tosci. The number of digits shown can be set by modifying the first argument of the function string.format that's employed by tosci. The output of \tosci can be used either by itself, if you want the 1.234e+09 look, or it can be fed to the \num ...

3

You can achieve this with a definition of the section in toc and subsection in toc templates: \documentclass{beamer} \usepackage[utf8]{inputenc} \defbeamertemplate{subsection in toc}{bullets}{% \leavevmode \parbox[t]{1em}{\textbullet\hfill}% \parbox[t]{\dimexpr\textwidth-1em\relax}{\inserttocsubsection}\par} \defbeamertemplate{section in ...

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