# Tag Info

8

You have a possibility, with the mathtools package (that loads amsmath, so it's useless to load the latter): write \mathtoolsset{showonlyrefs,showmanualtags} in your preamble, and only the referenced equations will be numbered (use \eqref). It's not exactly what you ask (number labelled equations), but you can try to make ‘fake references’ at the very ...

4

No warranty. ;-) \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \makeatletter \newif\ifdavid@number \preto\equation{\david@numberfalse} \preto\endequation{\ifdavid@number\else\notag\fi} \patchcmd\label@in@display{\@empty}{\@empty\david@numbertrue}{}{} \makeatother \begin{document} Text \text{this has a ...

4

Since you are using the IEEEtran document class with no special options, you need to redefine the family of commands with a dis suffix, since in that case the class has \else% not compsoc \def\thesectiondis{\thesection.} % I. \def\thesubsectiondis{\Alph{subsection}.} % B. \def\thesubsubsectiondis{\arabic{subsubsection})} % ...

4

There are no chapter, section or subsection environments. Don't use \begin{chapter} and similar constructions, even if they appear to work. You can make the decision about the numbering automatic: if the section counter is zero, as it is after \chapter, the theorems will be numbered “chapter.theorem”, otherwise “chapter.section.theorem”. No manual resetting ...

3

You need to put your addition to the subfigure counter inside the first subfigure: \documentclass[]{article} \usepackage{subcaption} \begin{document} \begin{figure}[h] \caption{new} \end{figure} \begin{figure}[ht] \begin{subfigure}[t]{.45\linewidth} \caption{subfigure A} \end{subfigure} ...

3

If there is no section used, the section counter is 0, therefore the theorem enviroment prints 0.1 etc. Since the OP has the remark as a sibling of theorem environment, it will just increment the theorem counter and the number of the 1st remark will be 0.2, not 1. If \thetheorem and \theremark commands are redefined such that the section counter value ...

2

When you do \newtheorem{theorem}{Theorem}[section] you're telling LaTeX that theorem environments should be numbered as <section number>.<theorem number> and that the theorem number must be reset when a new section comes along. The [section] part is optional, as the syntax suggests, so you just have to do \newtheorem{theorem}{Theorem} ...

2

A solution suggestion, since lacking a MWE, \mychap is unknown and not used in here. \documentclass[12pt]{report} \usepackage{hyperref}% \begin{document} \tableofcontents \chapter{The last one} \renewcommand{\appendixname}{Annex}% \chapter*{\appendixname} \phantomsection \addcontentsline{toc}{chapter}{\appendixname}% % Eventually a \cleardoublepage ...

2


2

algorithms is based on the package float, so one really simple fix would be to just declare a new float for subroutines in the preamble. To make sure they show up in the List of Algorithms you should probably make sure they go to file with a loa extension. You should also probably make sure you have a ToC sectioning command for subroutines, since I don't ...

2

Use the chngcntr package and a manual reset before the 2nd chapter, via \setcounter{thm}{0}. There might be some resetting afterwards necessary! \documentclass{scrreprt} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{chngcntr}% \theoremstyle{plain}% default \newtheorem{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} ...

2

This solution redefines the thm environment and adds the proof argument to it, which is later on written to the appendix section automatically. It will also write a \section{Proof of Number...} to the appendix, which has to be included with \CollectProofs It is not restatable at the moment! \documentclass{article}% \usepackage{blindtext}% ...

2

Like this? \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} (x-x_1)^2 + (y-y_1)^2 & = r_1^2 \notag\\ (x-x_2)^2 + (y-y_2)^2 & = r_2^2 \label{label a}\\ (x-x_3)^2 + (y-y_3)^2 & = r_3^2 \notag \shortintertext{Additional lines:} (x-x_k)^2 + (y-y_k)^2 & = r_k^2 \label{label b} \end{align} ...

1

What you want (section counter subordinated to chapter counter) is the default in the report document class but you are overriding this with this line in your code: \renewcommand{\thesection}{\arabic{section}} simply delete that line from your code.

1

You are mixing non-floating tables (longtable) with floating tables and this can lead to wrong numbers. Beside \clearpage you could try \Floatbarrier from the placeins package to prevent that floats go behind a non-float. Theortically it should be also possible to reset the numbering with automatical labels and comparision of the \pageref but someone would ...

1


1

A proposition: Don't use floating figures, remove \begin{figure}...\end{figure} around the graphics and caption Use caption package and \captionof{figure}{foo text} instead of standard \caption command Redefine the figure output command \thefigure to obtain the \thetheorem.\arabic{figure} output (Optional) Use a resetting of figure counter by theorem, i.e. ...

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