Hot answers tagged

9

Maybe you looking for something like this: \documentclass{article} \usepackage{amsmath} \usepackage[a4paper,showframe]{geometry} \begin{document} We have: \noindent\begin{minipage}{0.4\textwidth} \begin{equation} a = b \label{eqab} \end{equation} \end{minipage}% \begin{minipage}{0.2\textwidth}\centering and \end{minipage}% ...


6

When using subcaption with memoir there is no need to say \newsubfloat{figure}. Remove that line and it's seems to be fine. \documentclass[a4paper, 10pt, openany]{memoir} \usepackage[demo]{graphicx} \usepackage{caption} \usepackage{subcaption} % Enable subfigures %\newsubfloat{figure} %commented % Section numbering depth \maxtocdepth{subsection} ...


6

You should use an equation: \documentclass{article} \usepackage{amsmath} \begin{document} See~\eqref{eq:myeqn} below. \begin{equation} A= \begin{pmatrix} 0.3 & 0.4 & 0.3 & 0.0 \\ 0.4 & 0.3 & 0.0 & 0.3 \\ 0.3 & 0.0 & 0.4 & 0.3 \\ 0.0 & 0.3 & 0.3 & 0.4 \end{pmatrix} \label{eq:myeqn} ...


4

I would avoid using caption with memoir as it provides its own mechanism for setting sub-floats: \documentclass{memoir} \usepackage{graphicx} % Enable subfigures \newsubfloat{figure} \begin{document} \begin{figure} \hfill \subbottom[First subcaption]{% \includegraphics[width=3cm]{example-image-a}} \hfill \subbottom[Second subcaption]{% ...


4

It would be better if you posted a full minimal working example as the answer might (but probably doesn't) depend on the package that you use for theorems etc. In any case, I think you need \renewcommand\thetheorem{\alph{theorem}}` With this you obtain: I am assuming that you only want to make the theorem counter alphabetic, and not the sections. Here ...


4

\documentclass{article} \usepackage{amsmath,tabularx} \begin{document} We have \noindent \begin{tabularx}{\linewidth}{XXX} \begin{equation} a = b \label{eqab} \end{equation} & \[ \text{and} \] & \begin{equation} c = d \label{eqcd} \end{equation} \end{tabularx} and equations \ref{eqab} and \ref{eqcd} are nice. \end{document}


3

Place a \mbox{} before the algorithm environments (after each \item) The itemize environment should be replaced by enumerate which provides the numbering instead of \item[1.] etc. \documentclass{article} %\usepackage{german,t1enc} % Is this needed? \usepackage{enumitem} \usepackage[linesnumbered,ruled,vlined]{algorithm2e} \usepackage{amsmath} ...


3

You can go a simple way with \renewcommand{\theequation}{eqn \arabic{equation}} or with a fancier approach (see How to move amsmath equation label into LHS margin? for motivation) \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \makeatletter % detach \eqref processing from \tag processing \let\tagform@ref\tagform@ ...


3

\counterwithin{equation}{part} does not remove the equation counter from the chapter reset list. It must be kicked out explicitly with \counterwithout{equation}{chapter}. The counter formatting \theequation should be changed afterwards then, since \counterwithout{equation}{chapter}. Or use \counterwithout*{equation}{chapter} Here's the (modified) MWE: ...


3

This uses the \tag command from amsmath. For this to work, you will need to add \mytag to every numbered equation. It will take two runs to relabel the equations, and 3 runs to get \ref right. If you want the chapter number prefixed to the equation number, you will have to reformat the \tag inside \mytag. \documentclass{article} \usepackage{amsmath} ...


2

Something like this? Using an autolabelling way and \Cref or \cref to let LaTeX know it's a limitation label. cleveref needs to know that the limitation counter should be referred to as Limitiation or LIMITATION. \documentclass{article} \usepackage{blindtext} \newcounter{limitation} \usepackage{cleveref} \newcommand{\limitationname}{LIMITATION} ...


2

You can supply a manual label to any example. Remember though that you can no longer refer to an example with such a label with the regular \label and \ref system, since the label is not a counter. Here's an example: \documentclass{article} \usepackage{linguex} \begin{document} \ex. \a. First example. \b.[a.$'$] Modified example. \c.[a.$''$] Modified ...


2

Labels have to be unique within the document but labels should never in any case be based on the equation number. The whole point of the \label / \ref system is that the system can renumber equations and other structures automatically without you needing to edit cross references etc. If you use a label such as \label{eq:2} it works but is confusing when the ...


2

Use the \tag command from the amsmath package. In its ordinary form it puts brackets around your label, with the star form it does not. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} x + y &= 2 \tag{eqn 1} \\ y &= 5 + 4 \tag*{(eqn 2)} \end{align} \end{document} Alternatively, if you want to put 'eqn' before all ...


2

If you want \printsolution[section] to only print the solutions of odd numbered questions you can add \usepackage{exsheets}[2016/01/26]% make sure you have v0.21 available \ExplSyntaxOn \cs_set_protected:Npn \__exsheets_print_solutions_section:nnn #1#2#3 { \exsheets_print_solutions_if:nnn { \int_if_odd_p:n { \l_exsheets_counter_qu_int ...


2

You can make temporary redefitions at the beginning and end of environment with the help of hooks provided by the etoolbox package. So a first attempt is: \documentclass{article} \usepackage{mathtools,amsthm,etoolbox,cleveref} \newtheorem{theorem}{Theorem} \newcounter{equationstore} ...


2

If the label will always be (1) and (2) and if you will refer always both then you can make it a single label. \documentclass{report} \usepackage{amsmath} \begin{document} We have \begin{equation} a=b \quad \text{and} \quad c=d \tag*{(1) and (2)}\label{1and2} \end{equation} and equations \ref{1and2} are nice. \end{document}


2

Amsmath may specifically forbid more than one \label in an equation, but that doesn't mean one can't create another macro to perform the same task. Note: this version is not compatible with hyperref. \documentclass{report} \usepackage{amsmath} \makeatletter \newcommand{\steplabel}[1]% #1 = label name {\refstepcounter{equation}% ...


2

To increase the separation between the number and the text, change \labelsep to the length you prefer. It is assumed that the numbered paragraph ends with a blank line. \documentclass[a4paper,12pt]{report} \usepackage{blindtext} \newcounter{mypar}[chapter] \renewcommand{\themypar}{\thechapter.\arabic{mypar}} \newcommand{\mypar}{% ...


2

\setcounter{enumiv}{9} would work if the the \thebibliography wouldn't apply \usecounter{enumiv} which in turn resets the enumiv counter. From article.cls \newenvironment{thebibliography}[1] {\section*{\refname}% \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}% \list{\@biblabel{\@arabic\c@enumiv}}% ...


1

You can try by removing all list-related spacing, as well as remove the way the \@biblabel is being printed (just make if \@gobble it's argument): \documentclass{scrreprt} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @article{article001, author = {Hans Mustermann}, title = {Einfach nur ein Titel}, number = ...


1

Work-around: replace split with the aligned environment: \documentclass{article} \usepackage{amsmath} \usepackage[amsmath,thref]{ntheorem} \begin{document} \begin{equation} a = b \end{equation} \begin{equation} b = c \end{equation} \begin{equation} \begin{aligned} a & = b\\ &= c \end{aligned} \end{equation} ...


1

You may try this: \documentclass{article} \usepackage{amsmath} \usepackage[amsmath,thref]{ntheorem} \makeatletter \newcommand\forcefirstchoice{\firstchoice@false} \makeatother \begin{document} \begin{equation} a = b \end{equation} \begin{equation} b = c \end{equation} \begin{equation}\forcefirstchoice \begin{split} a & = b\\ ...


1

Here is a solution. \pagestyle{empty} after \begin{document} and than \pagenumbering{arabic} \pagestyle{plain} \chapter*{Preface} Edit It seems this is not the case, but if the included pages are numbered (in original files) one can try a trick \includepdf[pages={1,2}, trim=0 100 0 0, clip, height=\paperheight]{./pdf/information-page-one.pdf, ...


1

This is expected, because it's not \label that generates the equation number. If you really want two numbered equations on the same line, which I'd like to discourage, you can resort to minipages: \documentclass{article} \usepackage{amsmath} \begin{document} We have \begin{center} \begin{minipage}[b]{.3\textwidth} \vspace{-\baselineskip} \begin{equation} a ...


1

The algorithm2e package has a noresetcount option, but this has the effect of numbering all algorithms continuously. You can define a \rememberlines macro that will store the line number that was current at the end of an algorithm environment and a \resumenumbering macro that uses that value. \documentclass[paper=a4,toc=bibliography,parskip=true]{scrreprt} ...


1

It seems that you just want equations numbered per section rather than per chapter \numberwithin{equation}{section} \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{longtable} \usepackage{graphicx} \numberwithin{equation}{section} \title{Equations in chapters} \author{Student NL} ...


1

You have number within=section which numbers the boxes within the section, prepending the section number. Delete number within=section and the boxes should be numbered with a simple counter.


1

This isn't quite what you wanted, but you might warm up to it. It moves all the floats to the end of the document. \documentclass{article} \usepackage[nofiglist,nomarkers]{endfloat} \usepackage{lastpage} \usepackage{mwe} \makeatletter \def\ps@float{\ps@plain \def\@oddfoot{\hfil Float \thepage{ of }\pageref{LastPage}\hfil}% \let\@evenfoot=\@oddfoot} ...


1

I'm not very sure what is your problem. Appearing of references to table in appendix? So see, if this will help you: in preamble add package {chngcntr} and select numbering within section: \usepackage{chngcntr} \counterwithin{table}{section} after \begin{subappendices} add: \counterwithin{table}{section} after each section in appendices reset table ...



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