# Tag Info

7

Set the enumi counter and do it through a command for easiness (for a more general answer, see below): \documentclass{article} \newcommand\setItemnumber[1]{\setcounter{enumi}{\numexpr#1-1\relax}} \begin{document} \begin{enumerate} \setItemnumber{5} \item The fifth item \setItemnumber{7} \item The seventh item \end{enumerate} \end{document} ...

6

The report class uses chapter.equation numbering, enclosed by parentheses. If the equation number should be used alone without referring to the chapter number, then \counterwithout{equation}{chapter} can be used. It requires chngcntr package, however. \documentclass{report} \usepackage{amsmath} \usepackage{chngcntr} \begin{document} \chapter{First} ...

6

Here's a semiautomatic version, where you have to add the suffix by hand. \documentclass{article} \makeatletter \newcommand{\numpar}[1][]{% \par\addvspace{\medskipamount}% \if\relax\detokenize{#1}\relax \refstepcounter{numpar}% \def\thisnumpar{\thenumpar}% \else \edef\@currentlabel{\thenumpar\noexpand~#1}% ...

6

Use cleveref together with fmtcount: \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage{csquotes} \usepackage{fmtcount} \usepackage{hyperref} \usepackage{cleveref} \crefformat{chapter}{\chaptername~#2\numberstringnum{#1}#3} \begin{document} \chapter{Referenzieren} \label{cha:referencing} ...

6

The resetting of the table counter and the formatting like 2.1 can be switched off with \counterwithout{table}{chapter}. If the resetting should be kept, but not the formatting, use \renewcommand{\thetable}{\arabic{table}} rather! \documentclass{book} \usepackage{xpatch} \usepackage{chngcntr} \counterwithout{table}{chapter} % Append some code to the ...

5

Yes, this is possible, but it's necessary to extract the chapter number first before it can be used. \ref... does not provide a number at all, so refcount and its getrefnumber comes into action. This will produce 1 here. To get a verbal expression of 1 as Eins here, use \Numberstringnum or \numberstringnum for eins from fmtcount package. ...

4

Original solution Here is a solution using enumitem and enumerate environments. Not sure wether it's really wath you asked for, since you mentioned a numbering of sections. However, with this solution, all your regularly numbered items must be in a (first level) enumerate environment, and when you need bis, ter, etc, then you can use a nested enumerate ...

4

Perhaps the following set of commands might be something you're interested in: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} \usepackage{mathtools,refcount,xparse} % http://tex.stackexchange.com/a/254255/5764 \ExplSyntaxOn \seq_new:N \bislist \seq_set_split:Nnn \bislist {;} ...

3

Here is one option: Using a special (robust) macro \bodyonlynewline as your manual line-breaking technique. This macro will only break the line inside the body text, but not the ToC. \documentclass{book} \usepackage{xparse} \usepackage[explicit]{titlesec} \usepackage{lipsum} \ExplSyntaxOn \seq_new:N \bislist \seq_set_split:Nnn \bislist {;} ...

3

You can use the same advice given by @touhami in a previous answer to a similar question. Since you didn't provide a MWE, I assumed you are using the babel package. Here is an example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english,arabic]{babel} \begin{document} \selectlanguage{Arabic} بسم الله الرحمن الرحيم نحن نستخدم الآن ...

3

The greek option to babel modifies the \roman and \@roman commands so that they're independent of the current language; doing so, however, breaks the usage with endnote. Here's a possible solution: \documentclass{article} \usepackage[greek,frenchb]{babel} \usepackage{endnotes}% http://ctan.org/pkg/endnotes \usepackage{etoolbox} \robustify{\textlatin} % ...

3

Seems slightly strange numbering scheme but I added subsection to chapter's reset list and removed it from section's. \documentclass{report} \usepackage[explicit]{titlesec} \usepackage{etoolbox,remreset} \makeatletter \patchcmd{\@makechapterhead}% <cmd> {\thechapter}% <search> ...

2

It's a feature of the subcaption package. When subfigure is used, the figure counter is stepped independently on whether \caption is used. More precisely, this is done if the caption is expected to be at the bottom, which is usual for figures. The reason is simple: the caption to a subfigure needs to know the number of the main figure caption, which however ...

2

The empheq package provides clever means to create nice equations. Using wrappers for some other setup requires some work to do (see section 6 Creating something new for examples and descriptions) I've decided to use a special reactempheq environment which uses the common equation counter but applies the (R1) format. The usual empheq environment is not ...

2

Here I use my numberedblock package, that allows labeled code blocks that can be referenced. I use brackets instead of parens, so as not to confuse with equation numbering. With its built-in macros and environments, one can only do code blocks of fixed indent. However, by employing some additional code, centering can be achieved. \documentclass{article} ...

2

Here's a way: \documentclass{beamer} \usepackage[persian]{babel} \usepackage[compatibility=false]{caption} \setbeamertemplate{caption}[numbered] \DeclareCaptionLabelFormat{rlnumber}{#1 \LR{#2}} \captionsetup{labelformat=rlnumber} \setmainfont[Script=Arabic]{XB Zar} \setsansfont[Script=Arabic,Numbers=Arabic]{XB Zar} \begin{document} \begin{frame} ...

2

Without expl3, you can convert integers to whatever you want with: \ifcase#1\or\or bis\or ter\or quater\or quinquies\or sexies\or septies\or octies\or novies\or decies\fi By substituting #1 by the number you want. In this case, we can create a macro, and pass \value{equation} as argument. In any case, I don't know what's the way the arabic numbers in ...

2

You want it centered and using the counter for equations, so the easiest thing would be to use an equation and write it inside \hbox with the desired format: \documentclass{article} \usepackage{amsmath} \usepackage{listings} \lstset{basicstyle=\ttfamily} \begin{document} some test text and some more text and some more text and some more text and some ...

2

Math tools allows to define ‘tag styles’: load mathtools and define in the preamble: \newtagform{reaction}[r.]() and in the body of your document: \usetagform{reaction} at the point from which you want to use this tag style. If at a later point, you want to go back to the standard tag, use: \usetagform{default}

2

First note: I don't recommend the omittance of \section!!!! But here's a way to get the counting and counter resetting as the O.P. requests. Use the \usepackage{chngcntr} package and \counterwithin*{subsection}{chapter} -- this will reset the subsection counter each time chapter is changed and preserves the predefined \thesubsection counter format, that's ...

2

This doesn't happen in a new system (with a latex from 2015). In older systems load the fixltx2e package: \RequirePackage{fixltx2e} \documentclass{report} \begin{document} \chapter{1} \subsection{should be 1.0.1} \chapter{2} \subsection{should be 2.0.1} \end{document}

2

use \titleformat{\chapter}[display]{\normalfont\bfseries}{\thechapter}{0pt}{\Large} ^^^^^^^^^^^^ or \titleformat{\chapter}[block]{\normalfont\bfseries}{\thechapter}{1em}{\Large} ^^^^^^^^ ^^^^^^^^^^^^ ^^^^ for " 1 title"

1

More of a comment, but I wanted to include the picture: Have you at least tried my suggestion? (I really cant tell if thats your problem, but it sounds like it), consider the following near to minimal example \documentclass{article} \begin{document} \setcounter{secnumdepth}{1} \section{section} \subsection{subsection} \subsubsection{subsubsection} ...

1

As Christian Hupfer has already commented, there must be something in your code -- somewhere between the ninth and tenth \section command in the appendix portion of your document -- that changes the section numbering style from \Alph (A, B, C, etc) to \arabic (1, 2, 3 , etc). If you cannot spot and fix the offending piece of code, I suggest you insert the ...

1

At the beginning of the document: \usepackage{float} Right at the place in the code (after a specific paragraph), put it like this: \begin{table}[H] ... \end{table} Click here for more information on the floating options (H, h, etc...).

1

I suppose, the question environment has a counter named question, if this is different, change the name. It's possible to prepend code before \section is started either with \pretocmd (etoolbox) or \xpretocmd (xpatch) commands. The later works in more sophisticated cases, but xpatch calls etoolbox anyway. \documentclass{scrartcl} ...

1

It's easiest to \let the defcounter to that of equation within your environment(s). That way defcounter is stepped whenever equation would be: \documentclass{article} \usepackage{amsmath} \newcounter{defcounter} \makeatletter \newenvironment{defeq}{% \let\c@equation\c@defcounter% equation is equivalent to defcounter ...

1

Use the escapeinside option: \documentclass{article} \usepackage{listings} \lstset{basicstyle=\ttfamily,escapeinside='} \newcounter{cnt} \newcommand\Label[1]{\hfill\refstepcounter{cnt}(\thecnt)\label{#1}} \begin{document} \begin{lstlisting} solve(UEqn == - fvc::grad(p)); \Label{foo}' \end{lstlisting} \begin{lstlisting} solve(UEqn == - fvc::grad(p)); ...

1

Had the same Problem once. The important thing is that you label your equation inside the equation environment. Otherwise \ref{eqn:x}, \autoref{eqn:x}, \eqref{eqn:x} will give you something else. 1.1 This works: $$\label{eqn:x} v=\frac{s}{t}$$ 1.2 This too: $$v=\frac{s}{t}\label{eqn:x}$$ 2. This ...

1

You have to repeat the resetting at every \section in the appendix. \documentclass{article} \usepackage[demo]{graphicx} \usepackage[nofiglist,notablist]{endfloat} \usepackage{etoolbox} \begin{document} \section{Section one} The main figure is Figure~\ref{Figure-1}, and the main table is Table~\ref{Table-1}. Supplemental material includes ...

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