Tag Info

Hot answers tagged

9

You can set the number by hand; since it's a second level list, you have to set enumii. \documentclass[14pt,a4paper,headlines=6,headinclude=true]{scrartcl} \usepackage{amsmath,amssymb,stmaryrd} \usepackage{paralist} \usepackage{tabto} \begin{document} \begin{enumerate} \item \textbf{Working with ...


7

TeX has limited arithmetic capabilities; in this simple case you can say \renewcommand{\theequation}{% \the\numexpr 2*\value{SomeCounter}+1\relax.\arabic{equation}% } More complex functions could be used, with more complex methods.


6

Package alphalph supports this kind of numbering via method wrap. The following example defines a formatting command \twodigitwrap, which wraps the numbering to appear 1 after 99. The footnote value is not changed, just the appearance: \documentclass{article} \usepackage{alphalph} \makeatletter % \@twodigitwrap defines the symbols for \twodigitwrap ...


5

Another version, using my assoccnt package, without the need of remembering the counter value: The contenumii counter is used to store the total value of the enumii counter automatically and stored back after inparaenum. Caveat: It will be incremented each time when another second level enumeration is used Use the \SuspendCounters feature from the ...


5

Define a new theorem style mychange \makeatletter \newtheoremstyle{mychange}% {\item[\hskip\labelsep \theorem@headerfont (##2)\ ##1\theorem@separator]}% {\item[\hskip\labelsep \theorem@headerfont (##2)\ ##1\ (##3)\theorem@separator]} \makeatother and use \theoremstyle{mychange} MWE \documentclass{book} \usepackage{amsmath} ...


4

You can make equation an alias for the subsection counter and the same for subsubsection, but you also need to remove this counter from the reset list of subsection. \documentclass{amsbook} \usepackage{chngcntr} \renewcommand{\thesection}{\thechapter.\arabic{section}} \counterwithout{subsubsection}{subsection} \makeatletter \let\c@equation\c@subsection ...


4

The user answering (How to remove chapter numbering without removing it from tableofcontents) the linked question wants to remove the chapter numbers there, but keep the section numbering 'consistent'. This can be achieved in the way the user did: Use \chapter* to prevent the chapter counter to be displayed, however, this does not increase or set the ...


3

You may want to use split, along with the tbtags option to amsmath. \documentclass{article} \usepackage[tbtags]{amsmath} \begin{document} \begin{equation} \begin{split} x ={} & 22+2 \\ ={} &5+3\\ &-3+4\\ &+15-0 \end{split} \end{equation} \end{document} If you want two numbers, then use split inside align: the alignment ...


3

Set the empty page style - typically called when you issue \maketitle - to be equivalent to the plain page style: \documentclass{report} \title{I want a 1 to appear at the bottom of this page [works fine]} \begin{document} \begingroup \makeatletter \let\ps@empty\ps@plain % 'empty' page style = 'plain' page style \maketitle \endgroup \begin{abstract} ...


3

A quick and dirty trial solution, looping over a list using etoolbox macros and releasing it a specialized enumerate environment Description: \IntelligentEnumerate is a wrapper with three arguments: The first is optional, containing the label and other setups for the enumerate optional argument The first contains the list items as a comma-separated list ...


3

One way is to hijack the section command with something like: \let\realsubsection\subsection% keep a copy \def\subsection{\setcounter{subsection}{\arabic{equation}}% sync the counters \refstepcounter{equation}% \realsubsection% invoke the real \section } What this does is make the subsection counter equal to the current value of the equation counter ...


3

\[ produces an un-numbered math display. you want \begin{equation} ... \end{equation} To get a numbered equation that you can reference with \label/\ref


3

It makes no sense for me to refer to unnumbered equations, anyway this can be done by redefining \tagform@ (which is the command that typesets the equation number) to do nothing. \makeatletter \renewcommand\tagform@[1]{\relax} \makeatother MWE: \documentclass[11pt]{article} \usepackage{caption} \usepackage{lipsum} \usepackage{amsmath} ...


3

Here's a possible scheme: \documentclass[10pt,a4paper]{article} \usepackage{booktabs,fullpage,amsfonts,amssymb,lipsum,tabularx} \usepackage{amsthm} \usepackage[american]{babel} \usepackage[labelsep=endash]{caption} \usepackage[a4paper]{geometry} \usepackage{array,calc} \usepackage{lipsum} \newcounter{assertion}[section] % or chapter ...


2

You can use only enumitem to define your customized list as a paralist's compactenum variation using the nolistsep key: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{enumitem} \newlist{compactenum}{enumerate}{4} \setlist[compactenum,1]{nolistsep} \begin{document} \begin{enumerate}[label=(\alph*)] \item an apple ...


2

This code compiles fine with MiKTeX: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \newtheorem{afnSpace}{Definition}[section] \newtheorem{frameDef}[afnSpace]{Definition} %Actually 5th definition \newtheorem{frameDef s1}{Definition}[afnSpace] \begin{document} \setcounter{section}{1} \section{Affine ...


2

As told in comments, avoid tabu for this and use tasks package. Here is an example. \documentclass{article} \usepackage[more]{tasks} % new list-like environment % \NewTasks[options]{name}[separator](default number of columns) \NewTasks[style=enumerate,counter-format=tsk[1]),label-width=2ex]{myenumerate}[\item](3) \usepackage{kantlipsum}% insert text ...


2

The \setcounter{<counter>} doesn't reset the related counters. For every counter there is an associated list of counters that should be reset when the counter is stepped. Only the \stepcounter{<chapter>} command does the resetting (and \refstepcounter as well, because it calls the basic command). The shown code could be improved by removing one ...


2

When you say, \newtheorem{theorem}{Theorem}[section] the theorem is numbered within section. Since you want it to be numbered within subsection make it \newtheorem{theorem}{Theorem}[subsection] as already commented by egreg. Further, when you write \newtheorem{corollary}[theorem]{Corollary} The corollary and theorem share the same counter i.e., ...


2

The renaming of the Notes name is easily done by \renewcommand{\notesname}{Endnotes}, see the comment by Jon. The numbering is a little bit trickier. The documentation is not very helpful, but the code of endnotes.sty provides some clue. The endnotes marker at the end are typeset using \@makeenmark ...


1

Some workaround as a combination of \marginote and \footnote: \footmarginnote[optional number]{some text}[optional margin text] will print the footnote number in the right margin and the corresponding 'footnote' without marker as a real footnote. If the optional argument is given, that number (no check so far!) is used instead of the current footnote ...


1

You can set the foot note numbering per page or per chapter so that it is not confusing your readers. For per page, you will have to reveal your document class. \documentclass{article} \usepackage[perpage]{footmisc} \begin{document} \footnote{Some footnote} text here \clearpage \footnote{Some footnote} text here \clearpage \footnote{Some ...


1

Solution is to include package chngcntr and to place \counterwithin{lstlisting}{section} after \begin{document}. The complete code is then \documentclass[a4paper]{article} \usepackage{listings,chngcntr} \lstset{frame=Trbl,numbers=left} \usepackage{amsmath} \begin{document} \counterwithin{lstlisting}{section} \section{Introduction} First listing is ...


1

Here is a MWE created according to Using pause without increasing page number. By putting the frame number into the footer it just solves the problem with increasing page numbers. \documentclass{beamer} \usetheme{Warsaw} \setbeamertemplate{navigation symbols}{} \author{Authorname} \date{\today} \title{Biochemistry} \setbeamertemplate{footline}[frame ...


1

This is some code from beamerbasesection.sty, with some annotations There is no distinction between \section and \section* regarding the stepping of the section counter, contrary to the standard classes like article. As such, the section counter is increased even by a \section* command. Is this a bug? No, I think, it's easier to do so for bookkeeping all ...


1

The autonum package seems not to suffer from the problem: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} % UFT8 - danske bogstaver og andet godt fra havet \usepackage[T1]{fontenc} \usepackage{siunitx} \usepackage{amsmath} \usepackage[version=3]{mhchem} \usepackage{autonum} \begin{document} % Seems fine \begin{align} \Delta S &= ...


1

One way is to use a multicol with two columns. \documentclass{article} \usepackage{subfig} \usepackage{multicol} \begin{document} \begin{figure}[!ht] \begin{multicols}{2} \centering \subfloat[]{A}\par \subfloat[]{B}\par \subfloat[]{C}\par \subfloat[]{D}\par \subfloat[]{E}\par \subfloat[]{F} \end{multicols} ...


1

Do you mean like this? % arara: pdflatex \documentclass[fleqn]{article} \usepackage{mathtools} \usepackage[subnum]{cases} \begin{document}‎ \begin{equation} \text{at } r^{*}=1‎: \quad ‎T_{1}^{*}=0 \end{equation} \begin{numcases}{\text{at } r^{*}=\phi:\quad} ‎T_{1}^{*}= T_{2}^{*} \\‎ \frac{\partial T_{1}^{*}}{\partial r^{*}}=\frac {\partial ...


1

I would change the way that you're using aligned: specifically, if there's no equation number on the first line, you should lump in the first line with the rest of the material in the aligned environment, with the [b] option to get the alignment of the equation number with the bottom line, as follows. (Note the usage of ={}& which ensures proper spacing ...


1

Theorem-like environments should be defined, with the svjour3 class, by using \spnewtheorem and not \newtheorem. Here's how you should do: \documentclass[smallextended,referee,envcountsect]{svjour3} \usepackage{amsmath} \usepackage{bm} \smartqed \journalname{foo} % Theorem-like environments are defined with \spnewtheorem % % Usage: % % ...



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