# Tag Info

8

The \newtheorem command has an optional argument in which you can specify an already existing counter to be used for numbering the theorems. This counter can be any LaTeX counter, including equation. So, for instance, \numberwithin{equation}{section} % or whatever you prefer \swapnumbers % I prefer this \theoremstyle{plain} ...

7

Drop the dreadful table environment outside of longtable (the table is meant to break across pages, not to float away) and use \caption{...}\label{...}\endfirsthead if your caption is meant to be at the top, e.g. \begin{longtable}{ p{1,5cm} | p{11cm} } \caption{Semantic roles and their definition for the verb \textit{sa\Alif ala} `ask (for)' } ...

5

You can use alignat (in which the rows get numbered by default) instead of array. \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{graphicx} \begin{document} \begin{alignat}{10} 1 & \longrightarrow & A & \longrightarrow & B \times C & \overset{\pi}\longrightarrow & D & \longrightarrow & 1 \phantom{\, ,} ...

3

Here's a way if para means \section etc. (In this case, \thesection does not need to be changed). The (aa) numbering can be obtained by \alphalph and increasing the subparagraph number by 26 only virtually. I've provided a enumitem way in case a list is actually meant. In case of the \section - version -- I don't recommend this numbering/labelling style ...

3

Using \newtheorem{theorem}{Theorem}[chapter] (for example) will reset the theorem counter each time a new chapter is started. Omitting [chapter] should provide continuous numbers. If this doesn't help, use \counterwithout{theorem}{chapter} (requires chngcntr package) \documentclass[a4paper]{report} \usepackage{chngcntr} ...

3

You can use enumitem package and its label={...} option, adding the \prime. Or define a separate list for this, like primenumerate: It's even possible to resume the list and start again this list, this time as a primenumerate: \documentclass{article} \usepackage{enumitem} \newlist{primenumerate}{enumerate}{1} ...

2

Use a single column array: \documentclass[]{article} \usepackage{amsmath} \usepackage{multicol} \newcommand{\tsub}[1]{_{\mathrm{#1}}} \begin{document} \begin{multicols*}{2} Using Poisson's equation for gravity, \label{eq: phi} \Phi(r) = \left\{ \begin{array}{@{}r@{}} \dfrac{GM\tsub{tot}}{R\tsub{vir}} ...

2

So, thanks to the help of @John Kormylo I was able to solve my problem with: \renewcommand{\subsubsection}{\par\bigskip\underline} Which outputs:

2

Do you mean this? \documentclass[11pt,openright,oneside,letterpaper,onecolumn]{report} \usepackage[toc,page]{appendix} \begin{document} \setcounter{tocdepth}{2} \renewcommand{\contentsname}{Table of Contents} \tableofcontents \cleardoublepage \listoffigures \cleardoublepage \listoftables \cleardoublepage \clearpage \chapter{Section 1} \begin{table} ...

2

Unfortunately ltablex makes all tabularx into longtable this means that the form you use doubles up the counting, however it also means that ypu can use longtable caption directly so: \documentclass{article} \usepackage{ltablex} \usepackage{capt-of} \usepackage{chngcntr} \begin{document} \renewcommand{\thetable}{A.\arabic{table}} ...

2

You could load the alphalph package. Then, \alphalph{\value{section}} generates a lowercase-latin "numeral" to represent the value of the counter named section. A full MWE: \documentclass{standalone} \usepackage{polyglossia} \setdefaultlanguage{hebrew} \newfontfamily\hebrewfont[Scale=MatchLowercase]{Ezra SIL} \usepackage{alphalph} \begin{document} ...

2

In my point of view this is best achieved with a SubAlgoLine counter and an conditional within \theAlgoLine (which prints the line number) \documentclass{article} \usepackage{amsmath, amsfonts, amssymb, amsthm, bm} \usepackage{commath} \usepackage{xcolor} \usepackage[most]{tcolorbox} \usepackage{tikz} \usetikzlibrary{backgrounds} ...

2

Actually I have tried the solution of egreg's, and then find out that you don't need to create the command \spnewtheorem{xx}{XX}[section] It is the option envcountsect in the svjour3 class that really helps. \documentclass[envcountsect]{svjour3} If you look into the file svjour.cls, and seach \spnewtheorem{theorem}{Theorem}, around line 888, you would ...

1

Multiple usages of the \appendix command is really designed in book.cls, since each time use of \appendix will reset both chapter and section counters and does also change the output of \thechapter from arabic numbers to \Alph - style. I've decided to use \sectionappendix, that does not reset the chapter counter, but uses \Alph for \thechapter and restoring ...

1

This works out of the box with the appendix package: \documentclass{book} \usepackage{appendix} \begin{document} \frontmatter \tableofcontents \mainmatter \chapter{First Chapter} \section{First Chapter Section} \begin{subappendices} \section{First Chapter Appendix} \section{Second Chapter Appendix} \end{subappendices} \chapter{Second Chapter} ...

1

In the article class the hierarchy of levels is \section -> \subsection -> \subsubsection -> \paragraph. Paragraphs don't get numbers. In the book class the hierarchy of levels is \chapter -> \section -> \subsection -> \subsubsection -> \paragraph If you want to use custom numbering for paragraphs, call their values and edit their ...

1

Here's an enumitem way instead of \paragraph. The paragraphlisti counter is reset by each subsubsection step (if such levels are used at all) David Carlisle's comment about \renewcommand{\theparagraph}{\arabic{paragraph}} is of course the easiest way! \documentclass{article} \usepackage{chngcntr} \usepackage{enumitem} ...

1

Here are two versions: One with \DeclareCaptionLabelFormat and the other one by redefining the figure counter, but this will also change the appearance of figure in List of Figures, as such I don't recommend this. \documentclass{article} \usepackage{caption} \newcommand{\specialformattingstuff}{*} % or use \textasteriskcentered ...

1

Here's an example that 'automatically' redefines the subsubsection header number format and numbering and restores it with the next \section. I also used \cleveref so refer to the subsubsection as a Solution and not as a subsubsection. \documentclass[10pt]{article} \usepackage{amsmath, amsthm, amssymb, amsfonts} \usepackage{fancyhdr, graphicx} ...

1

This is the solution I found using Christian Hupfer's suggestion in one of his comments. \documentclass[10pt]{article} \usepackage{amsmath, amsthm, amssymb, amsfonts} \usepackage[width=5.5in, height=8in]{geometry} \theoremstyle{definition} \newtheorem{solution}{Solution} \begin{document} \section{Exact Solutions of the Navier-Stokes Equations} Intro. ...

1

This is why subfigure provides the option figtopcap which assumes that you'll use a figure caption at the top of the figure: \documentclass{article} \usepackage[figtopcap]{subfigure} \begin{document} \begin{figure}[ht] \centering \caption[Optional caption for list of figures]{Caption of subfigures \subref{fig:subfig1}, \subref{fig:subfig2} and ...

1


1

Something like this? \documentclass{report} % document class that features 'chapter' sectioning level \usepackage{amsthm} \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] \renewcommand\thethm{\thechapter-\arabic{section}-\arabic{thm}} \begin{document} \setcounter{chapter}{2} \setcounter{section}{3} \begin{thm} aaa \label{thm:aaa} \end{thm} A ...

1

You could achieve universal numbering by defining a new counter and use that for your captions in listings and figure environments. \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[demo]{graphicx} \usepackage{listings} % Define new counter for listings and figures. \newcounter{eikona} ...

1

Here's a xassoccnt version of sharing/coupling counters that does not require more setup than defining a group of coupled counters, here figure and lstlisting. (This requires xassoccnt v0.6) After that, the figure / listings counter step together. \documentclass{book} \usepackage[T1]{fontenc} \usepackage{textgreek} \usepackage[utf8]{inputenc} ...

1

I'm not sure why you'd want to underline the titles. But it's your document. \documentclass{article} \usepackage{sectsty} \subsubsectionfont{\normalfont\underline} \setcounter{secnumdepth}{2} \begin{document} \section{section example} \subsection{subsection example} \subsubsection{subsubsection example} \end{document}

1

You can just enclose it an equation environment: \documentclass{article} \begin{document} \label{eq:tab} \begin{tabular}{ | l | c | c |} \hline & \multicolumn{2}{|c|}{\textbf{Signaler strategy}} \\ \hline \textbf{Chooser strategy} & TFT & ALLD \\ \hline TFT (Accept) & ...

1

I'd simply use a macro \exercise. There you can also internally step a counter for referencing. The numbers are put in the margin as requested. \documentclass{article} \newcounter{exercise} \setcounter{exercise}{0} \newcounter{subexercise} \setcounter{subexercise}{-1} \renewcommand\thesubexercise{\arabic{exercise}\alph{subexercise}}% ...

1

I think, your footline disappeared, because it was overwritten with \setbeamertemplate{footline}[page number] \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \setcounter{subsection}{1} \usetheme{Berkeley} \usecolortheme{seahorse} \usefonttheme{serif} \useinnertheme{rounded} %%Make desired footline \makeatletter ...

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