Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tags]

{tags} is for questions specifically about the tagging of mathematical equations in LaTeX (with numbers, letters etc.).

0
votes
1answer
35 views

How can I write a long equation in two lines and name it?

\begin{eqnarray} \tag{A8} 2x+3y+4z+2u+7o+8k+90l+43+56+45p+33h \nonumber \\ &+& 89n+90m+34j+23a+45b+56f \end{eqnarray} But I am not getting the required equation with name A8. If anyone ...
1
vote
2answers
21 views

Append text to equation tags

I want to append the current section to equation tags, even if I use the \tag command to override it. I would guess this entails creating some custom command like \appendtag. I know I can use \...
2
votes
1answer
21 views

Label or tag for questions

I am making mini question banks on different chapters of physics. For this, I am using the 'exam' class. what I need is the following: I want to put some information for my own use against each of ...
0
votes
1answer
28 views

Changing the displayed word of a reference

In the following: \documentclass{article} \usepackage{cleveref} \begin{document} The proof of \cref{th:fermat} may be found in the \ref{sec:appendix-omittedproofs} \section*{Appendix: omitted proofs}...
1
vote
1answer
25 views

How to tag an enumerated list?

I want to tag the mark value of the question right to it as follows Here is my MWE \documentclass{article} \usepackage{amsthm,multicol,enumerate} \begin{document} \begin{enumerate} \item \...
0
votes
1answer
55 views

How to get equations in align environment to have numbers

If I have the following situation \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align*} y &= 2x+3 y &= 7x+4 \end{align*} \end{document} The equations in the align ...
5
votes
1answer
52 views

adding explanations to equations

How can we type equations and add explanations like below? The options that I can think of are: (1) using tags which I don't know how to break them into two lines (2) using minipage, which might not ...
1
vote
1answer
31 views

Aligning tags at the end of the line

Is there any special reason why using the $$ won't produce the tags, like it does using \[ \] ? \documentclass[12pt]{article} \usepackage{mathtools} \usepackage{amsmath} \begin{document} \[\lim_{\...
0
votes
1answer
78 views

How to use multiple \label across multiple \align* environments?

For long calculations, I have two align* environments for two equations. I have as an example \documentclass{article} \usepackage{amsmath} \usepackage{nccmath} \begin{document} \begin{align*} \...
2
votes
1answer
36 views

Can't show equation tag properly

\begin{align*} \sum_{j=1}^{m_0-1}\,(-1)^{j-1}\hspace{-3ex} \sum_{\substack{ k_{m_0 +1} \leq k_{m_0} \leq \cdots \leq k_{j+2} \leq k_1 \leq \boldsymbol{\ell} \\ k_2 < \cdots < k_j < k_{j+1} \...
0
votes
0answers
46 views

How to use main file combined other two files with tags?

\begin{filecontents}{a.tex} \tag{1.1}{this is 1.1 from file a.} \tag{1.2}{this is 1.2 from file a.} \end{filecontents} \begin{filecontents}{b.tex} \tag{0.1}{this is 0.1 from file b.} \tag{1.1}{this ...
2
votes
1answer
111 views

How to combine two files like this?

I have these codes a.tex \tag{1.1}{this is 1.1 from file a.} \tag{1.2}{this is 1.2 from file a.} b.tex \tag{1.1}{this is 1.1 from file b.} \tag{1.2}{this is 1.2 from file b.} main.tex \...
4
votes
4answers
63 views

how to put equation number at the bottom

i want my eq number 11.72 to appear at the last line.how can i do that? After a wick rotation we obtain \begin{equation} \begin{split} \int \frac{d^4 \mathnormal{k}}{(2\pi)^4}\text{log}(-k^2+m^2)=&...
3
votes
2answers
41 views

How can I temporarily replace 'and' with 'or' when using `\cref` command?

The code below generates correct output. However, I would like to know how I can temporarily replace every instance of 'and' with 'or' just for specific instances of \cref usage. I included xcolor and ...
1
vote
1answer
46 views

Multiline math environment that allows for individually tagged equations grouped by brace as rhs

I'm looking for a math environment that would allow me to write two lines/equations, that needn't be aligned per se, but in which one of the lines looks like this: a = {a(x), where a(x) is a system of ...
1
vote
1answer
29 views

Problem with side by side equation tag and custom tag style

Consider the following MWE: \documentclass{article} \usepackage{mathtools} \usepackage{amsmath} \newtagform{brackets}{[}{]} \usetagform{brackets} \AtBeginDocument{\let\latexlabel\label} \...
3
votes
2answers
117 views

(1), (2)… at the end of a line

Thank you very much, K. Paul and Ignasi ❤ You have provided me solutions that suit my document perfectly! However -- well -- which answer should I mark to be 'accepted' when both are correct?😂 ~~~~~~...
2
votes
1answer
47 views

Use external file for database equation

I created an external reference file with many mathematical formulas. very similar to this: foonotes in external page the equations.tex is so structured : \documentclass[10pt]{article} \usepackage{...
2
votes
1answer
68 views

Aligned within align: Why are they right-aligned?

I want to align multiple equations. Some of them span multiple lines, some of them don't. I'd like for the equation tag of the multiple-line equations to be aligned with both lines, not just one of ...
1
vote
1answer
60 views

Why does not cross-referencing of exercises work with `exsheets`?

I am trying to use cleveref package to create custom referencing scheme for exercises created using exsheets. I customize cross-referencing of floats and equations very well using codes similar to the ...
0
votes
1answer
35 views

Why does the equation tag moves when using `\hspace`?

I am using align environment and sometimes can see that there is an unwated space in some parts of the aligned equations. Hence, I use \hspace with negative length to get the desired spacing. Even ...
0
votes
1answer
67 views

How can I vertically center a tag in flalign environment?

I am trying to use flalign environment, but the tag is not centered. I know that each entry after \\ is taken as an independent equation in flalign, but is there a way to produce the same result below ...
0
votes
0answers
37 views

catchfilebetweentags and lstlisting [duplicate]

I would like to use the catchfilebetweentags package together with the lstlisting one. The output is a fatal error. Let us consider below the following minimal example. \documentclass{article} \...
1
vote
1answer
34 views

Labels and tags with parametric dependence

Suppose there is an equation with a parameter, and the parameter is represented in equation's tag: I'm looking for a way how to refer to this equation using two different \lambda, say, \lambda_1 and \...
0
votes
1answer
26 views

Having a part of the \tag not show up when using \eqref

In a document, I have equation numbers like (3.4)=(2.1) to show that the equation was already used previously. When I then reference this equation with \eqref, it shows up exactly like this. How can I ...
4
votes
1answer
62 views

Displaying tag for listing environment like math environments

I'm using listings to better typeset code that was originally placed in an undesirable environment (verbatims inside eqnarray with negative space for each line) due to journal submission requirements. ...
1
vote
2answers
267 views

How to Align Lines with Comments with other Lines in Math-mode

When I use the \tag command to add a comment in line in math-mode, sometimes that line becomes off-centre and doesn't align with the rest of the equations. Here is example of a code and its output: \...
2
votes
1answer
61 views

How to number a group of equations together and align them with others

I'm currently using this: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{hyperref} \begin{...
0
votes
2answers
82 views

Align/Aligned/etc Tags without Parenthesis?

I am using pdfLaTeX. I am trying to use an align-like environment, and I wish to place a \blacksquare on the last line where a \tag would be. The problem is that \tag automatically comes with ...
5
votes
2answers
533 views

Put an equation next to an image next to an equation tag

I am not sure I express my question correctly, but my objective is to reproduce this kind of presentation. And add an equation tag to the right of the image. I am somewhat able to reproduce the ...
0
votes
0answers
54 views

tag in front of an equation [duplicate]

In a math display, I want to have the tag of an equation at the beginning of the equation. Something, like: (Tag) ax=b. It is not sufficient to just use a text{} or a mbox{} environment, since I ...
6
votes
3answers
291 views

Tag equation in ConTeXt with arbitrary text

Question: Is it possible to tag displayed equations (inside \startformula and \stopformula with an arbitrary tag in ConTeXt? With LaTeX I can do \documentclass[preview]{standalone} \usepackage{...
1
vote
2answers
378 views

Including both equation numbering and remarks in align environment

I'm trying to write sequent proofs with aligned formulae in the center, equation numbers aligned left, and remarks aligned right. Example of what I want below: But from what I've seen around ...
1
vote
1answer
71 views

LaTeX issues warning about a Reference being undefined even though a \label statement was issued

I want to show a few equations in a row as I solve an integration, then number the final unsimplified equation and use the number in the next line. \newcommand\numberthis{\addtocounter{equation}{1}\...
2
votes
1answer
115 views

Displaying Counter Value from Equation Tag

I am trying to create the following, but haven't been able to find anything here or elsewhere online... I want to create an equation with a custom counter and then call the value of the counter when ...
1
vote
0answers
90 views

Labelling inside subnumcases enviroment

I am writing some equations using subnumcases enviroment as the following: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{cases} \numberwithin{equation}{section} \begin{document} \...
3
votes
2answers
335 views

Adjust horizontal position of the tag of an equation

Both LaTeX and amsmath put tags aligned at right margin (in reqno mode by default), or aligned at left margin (in leqno mode). I'd like a document where is posible that tags are separated of the ...
3
votes
1answer
43 views

Is it posible to have different tags in the text linking to one label?

When I write parameterized or otherwise indexed equations I often would like to be able to refer to eqn:f_i (i.e. producing a clickable link in the document) using: the given tag $f_i$ for general ...
0
votes
1answer
583 views

Labels in subequations

I have the following system of equations \begin{subequations}\label{eq} \begin{align} &\alpha_x = \dots\label{eqa}\\ &\beta_x = \dots\label{eqb}\\ &\gamma_x = \dots\...
3
votes
2answers
123 views

How to reference a tag into an equation so that it looks like an argument

what I am trying to do is referencing each part of the equation in a neat way, so that whenever the symbol is used one can know exactly what it stands for. I would like to reference for use an ...
0
votes
0answers
308 views

alignat: Centering, multicolumn

How can I center all columns in a multicolumn, multiline equation? The array environment: Does not allow for multiple float numbers. Does incorporate space between columns. Does allow centering ...
2
votes
1answer
206 views

Sorting items according to tags

what I basically want is writing a single list, e.g. itemize, tagging each item with one or more tags and then generating an output that creates multiple lists based on the tags, i.e. each tag should ...
3
votes
1answer
209 views

Combining equation number with tag, and referencing both independently

In this previous question, we defined a new command \owntag to combine the equation number with a user-defined tag: \documentclass{article} \usepackage{amsmath} \newcommand{\owntag}[1]{\stepcounter{...
1
vote
1answer
74 views

how do I customize equation index without losing/hiding it

to some of my equations, I wish to add a extra word within the index, without losing the main, automatic indexing. Something like: aaa = aaa (1, word) bbb = bbb (2) ccc = ccc (3, otherword) I know ...
2
votes
1answer
207 views

Italic equation numbers for \IEEEeqnarray within theorem

Edit: I have changed the question to use a minimal example. When I use an \IEEEeqnarray inside of an italicized theorem environment, the equation numbers (tags) also become italicized. The same thing ...
12
votes
2answers
1k views

Braces inside or outside?

Some tags work inside their braces: {\scriptsize lorem}. Others, outside: \flushright{lorem} (and they stay in force for a while). Edit: Others outside, lasting only within the braces: {\textbf ...
1
vote
1answer
46 views

Hiding tag in a subequations and align environment also centring

I need to hide tags inside subequations and align environments. I do not want to use \tag{}, the tag should be placed automatically when I typeset. Here it is, \begin{subequations} \begin{align} H(x,...
3
votes
0answers
64 views

Put tags over several parts of an equation, that are consistent with eq numbering and can be referenced in text [closed]

Is it possible to put a tag (and a corresponding label) for a part of an equation over a brace, and another tag for a different part of the same equation over another brace? Something like this: The ...
7
votes
1answer
123 views

Defining a second type of tags for equations

I have been using LaTeX for a couple of years now but couldn't find any useful answers related to the following problem that recently came up: I have several equations in my thesis for which I give ...
3
votes
2answers
165 views

Format keywords inside section and subsection

Problem: Google is not being helpful so I turn to those better than Google. The problem is that I want to create a "function" that reads all \section and \subsection and if the function finds a ...