# Tag Info

0

tl;dr: There is no good solution with Zotero, nor is there an add-on. Long version: There is no way currently to write complex mathematical equations in Zotero. Zotero supports UTF-8 (so greek letters work) as well as simple html mark-up but nothing more complex (like fractions, squareroots, etc). Moreover, Zotero will not preserve LaTeX markup entered in ...

5

I hope, this is what you want: \documentclass{article} \pagestyle{empty}% for cropping \makeatletter \let\c@equation=\c@subsection \let\theequation=\thesubsection \makeatother \begin{document} \section{A} $$1+1=2$$ \subsection{X} $$1+1=2$$ $$1+1=2$$ ...

6

I find that if things are aligned that they are easier to read, especially for the case where there is significant repetition: Notes: I defined macros for \xg, \yg and \IG with \mathrm as per @barbara beeton's suggestion. However as they are macros they are easier to change. To get proper alignment of the \cos and \sin, I define macros to do account for ...

1

4

I've done the following with your equation: I've gotten rid of all \left and \right statements in favor of the following bracketing system: Innermost: square brackets, size default (small); next: round parentheses, size \big; outermost (just one instance): curly braces, size \big. The explicit sizing instructions are needed because the material enclosed in ...

9

this uses multline (not multiline), and changes one pair of parentheses that would have to be split between lines to \bigl( and \bigr). as harish kumar points out, this should use \sin and \cos rather than \text, but i didn't change those. also, \mathrm would be better than \text for "xg" and similar, since \text follows the surrounding text style, which ...

3

Here is one way of doing it: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} &\hphantom{{}<} (\mathrm{xg}\cos[\alpha_{2} + \theta_{1}] + (g + \mathrm{yg})\sin[\alpha_{2} + \theta_{1}]) m_{2} R_{2}\\ &\hphantom{{}<} + (\cos[\alpha_{c} + \theta_{1}] \cos[\theta_{1} + \omega_{c}] d_{c} k_{d}\\ ...

5

I removed all \left and \right as they seem to be un-necessary. Also, \text{Cos} and \text{Sin} looked odd to me and I changed. Further, many parenthesis and brackets may be reduced to make the equation less cluttered (this is an assignment left) \documentclass[draft]{article} \usepackage{amsmath} \begin{document} \begin{align*} &(\text{xg} ...

4

No need for ERTs, go to Document --> Settings --> Document Class, add leqno to the Custom class options.

5

You can change the way the equation numbers are printed by modifying the definition of \tagform@. This one prints the text in the right margin: \makeatletter \renewcommand\tagform@[1]{\maketag@@@{(\ignorespaces#1\unskip\@@italiccorr)\rlap{ some text}}} \makeatother MWE: \documentclass{article} \usepackage{amsmath} \makeatletter ...

2

You can use the subequations environment from amsmath: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align} y & = d \\ y & = cx + d \\ y & = bx ^{2}+ cx + d \\ y & = ax ^{3}+ bx ^{2}+ cx + d \end{align} \end{subequations} \end{document}

1

You should let the align environment handle the numbering for you. Then the numbers will appear close to the right margin and the equations will be centered correctly. \documentclass{article} \usepackage{showframe} \usepackage{mathtools} \begin{document} The equation is \begin{align} 4x &= 3x + 3.\\ \shortintertext{Then we have} 3x+3&\leq 4x ...

3


3

Use of aligned environment \documentclass{article} \usepackage{amsmath} \begin{document} \begin{aligned} &[T] & -1 & = -a \\ &[L] & 1 & = a-3b \\ &[M] & 0 & = b+c \end{aligned} \end{document}

4

Use the alignat* environment from »amsmath« like in this approach. \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} [T] & \quad & -1 & = -a \\ [L] & & 1 & = a-3b \\ [M] & & 0 & = b+c \end{alignat*} \end{document} ...

1

As people have mentioned dgroup is pretty much the only way. However, I found using breqn to be inconvenient. It still requires intervention, because equations are not broken up the way I would like. So, now I'm using gather* with split.

4

\documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} $$Q = \left\lbrace \raisebox{-.5\height}[.5\height]{% \tikz{ \Tree[.E \alpha [.E [.E [.E [.E E \beta ] \gamma_3 ] \gamma_2 ] \gamma_1 ] ] } } \right\rbrace$$ \end{document}

9

You can use baseline=(current bounding box.center) so the center ot the picture is put on the baseline of the surrounding text. \documentclass{article} \usepackage{tikz} \usepackage{tikz-qtree} \begin{document} Q = \left\lbrace \tikz[baseline=(current bounding box.center)]{ \Tree[.E $\alpha$ [.E [.E [.E [.E E $\beta$ ] $\gamma_3$ ...

4

You can use the command \noeqref{<label>}. This ensures that the corresponding equation has a number regardless of the value of showonlyrefs. MWE: \documentclass[a4paper,12pt]{report} \usepackage{mathtools} \mathtoolsset{showonlyrefs=true} \begin{document} $$\label{eq:ab}\noeqref{eq:ab} a=b$$ % Some text follows % ...

5

You can use the hf-tikz package, which was built as a result of Beamer: highlighting aligned math with overlay. Here's a MWE- note that I had to use \tikzmarkin{c}(0.1,-0.4)(-0.1,0.5) to get the boundaries corrected- you might want to adjust them further as you see fit :) % arara: pdflatex % arara: pdflatex % !arara: indent: {overwrite: yes} ...

8

Use \usepackage{color} and \color{red} F(s) &\color{red}= - \frac{1 + sR_F C_F}{R_F}

2

Here is an EDIT based on OP comment. In this case, I still assign the new catcode in advance of the  structure, but demonstrate that I can reassign it to something else within the  structure. Does that assist the OP better? \documentclass[12pt]{book} \usepackage{autonum} \catcodeX\active \def\xact{\catcode`X\active\defX{\times}} ...

4


0

Just add a && at the points where you desire the alignment: Notes The alignat environment produces pairs of right/l alignment, hence the need for a double && to produce left aligment (i.e., skip over the r column). The minimal class should not be used for examples. There is a good question on TeX.SE, but can't find it right now so will ...

3

\left\{ must be balanced by a \right\} in the same line. Since you don't want the right delimiter, and since the closing pair is needed, you have to put a null delimiter by \right. \documentclass{article} \begin{document} o=g(h)=\left\{\begin{array}{rcl} 1 & if & h < 0 \\ 0 & ...

5

Another solution using alignat: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat}{2} &\text{Uniaxial Local Buckling:} &\qquad &MOS=\frac{\sigma_Y}{\sigma}-1 \label{e:failuniaxlocal}\\ &\text{Shear Local Buckling:} & &MOS=\frac{1}{2} \label{e:failshearlocal}\\ ...

5

If you're going to spread out the content with some paragraphs between them, then you could surely use a construction like the one below: \documentclass{article}% \newcommand{\labeleqn}[3][150pt]{% \makebox[0pt]{\makebox[\linewidth][l]{#2}}% Set label \makebox[0pt]{\makebox[\linewidth][l]{\hspace*{#1}$\displaystyle#3$}}}% Set equation ...

0

This should work -- the equation number is given automatically by the align environment. \documentclass{book} \usepackage{amsmath} \begin{document} \chapter{First Equation} \begin{align} E &= m \cdot c^2 \\ f(x) &= \sin(x) \end{align} \end{document}

0

Another option is to use align, and then use \nonumber, as mentioned in http://mirrors.dotsrc.org/ctan/info/math/voss/mathmode/Mathmode.pdf. Example: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} a &=b \nonumber \\ b &=c \label{eq:test} \end{align} Equation \eqref{eq:test} shows that $a=c$. \end{document}

0

Is this what you try to obtain? The first approach is a pure/simple math environment, the second is use of array environment, and the third approach is use of align environment. This solution simplifies the code. Note: There was an extra \hat on the second equation right after = without an ending } and was removed. Also a backslash was missing for delta in ...

14

You probably want that it does nothing whenever it follows another vertical skip: \def\smartmedskip{\par \ifdim\lastskip>0pt \else \medskip\fi } This will be followed by a {\tt\string\medskip}. \smartmedskip This has a displayed formula $$a+b+c+d+e+f+g+h+i+j+k+l+m+n$$ \smartmedskip but the {\tt\string\smartmedskip} does nothing. This has a ...

2

I am also learning Latex. There are basically 3 main ways to go about this. Write raw Latex in an editor, compile to see the result. Repeat as needed. Use a GUI front end to Latex so that you can see the result as you type. Compile the document at the end to generate the PDF. Examples of this are Lyx and Scientific word. A solution between the above two, ...

0

You could use this online latex compiler (this one is specially thought for equations): http://www.codecogs.com/latex/eqneditor.php You can download the images for your equations from there and then add them to your texts.

3

Package resizegather can automatically shrink equations of environment gather of package amsmath to fit the line width. The following example compares the equation using \textstyle of rdhs' answer with resizing the overlarge equation (too large by 148.64104pt): \documentclass[landscape, 12pt]{report} \usepackage[landscape]{geometry} ...

2

I have 3 suggestions for it. Have a look: The first one... \documentclass{article} \usepackage{amsmath}\begin{document} $$\verb!f(x)=ax^2+bx+c! \label{eq:1}$$ In order to typeset $f(x)=ax^2+bx+c$, see~\eqref{eq:1}. \end{document} The second one... \documentclass{article} \usepackage{amsmath} \usepackage{fancyvrb} ...

6

This is the example file from the numberedblock package. It makes the labels slightly different than equation numbering, so that one doesn't confuse them if both are used in the document. However, label placement and style can be changed. The documentation is briefly covered in the .sty file itself, as well as this example file. The parameter defaults, ...

3

Here's a start you can modify to meet other needs. \documentclass{article} \usepackage{amsthm} \newtheorem{VerbatimText}{} \begin{document} \begin{VerbatimText} \label{v:test} \begin{verbatim} This is my numbered verbatim environment \end{verbatim} \end{VerbatimText} I can refer to it with a reference: \ref{v:test}. \end{document}

2

Here I use a tabular stack (I started with the guts of Jesse's answer). Vertical spacing between equations is adjusted with the optional argument to tabularstackanchor, while horizontal gaps between columns can be set with \setstacktabulargap{length}. \documentclass{article} \usepackage{tabstackengine} \usepackage{amsmath} \stackMath \usepackage{scalerel} ...

4

You can remove all those \;\; by using ~ Also \Big{ can be replaced \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{cases} \bullet \left\{1,\theta,\frac{\theta^2}{k}\right\} & \text{if~} m^2\not\equiv 1 \pmod 9 ...

6

A possible solution is use of array Code \documentclass{article} \usepackage{amsmath,amsfonts,amssymb} \begin{document} \left \{ \begin{array}{lll} \bullet& \Bigl \{1,\theta,\frac{\theta^2}{k}\Bigr\}\;\;& \text{if}\;\;m^2\not\equiv 1 \pmod 9 \vspace{3mm}\\ \bullet& \Bigl \{1,\theta,\frac{k^2\pm k^2 ...

4

You can introduce a new counter mysub \newcounter{mysub} \setcounter{mysub}{0} \renewcommand{\themysub}{def\arabic{mysub}} and use this one instead of \theequation inside the subequations. If you also want this counter to be reset after the end of the subequations, also add the following lines \usepackage{etoolbox} ...

0

May be this is what you want but not sure. \begin{align} & \hspace*{-3cm} \bullet \;\; \trans\xbf \Abf\xbf \geq 0 \text{ for any non-zero vector } \xbf\in\Rbb^{n\times 1}.\tag{def1} \label{ok} \\ & \hspace*{-3cm} \bullet \;\; \text{ All the } n\text{ eigenvalues of } \Abf \text{are non-negative}.\tag{def2} \label{ok2} \\ & \hspace*{-3cm} ...

6

You can define a command \seqref that mimics what \eqref does, without using a box; we have to use refcount to allow hyphenation also in the last word. I wouldn't redefine \eqref, because hyphenation of tags should not be used generally. \documentclass[draft,11pt]{article} \usepackage{amsmath,refcount} \newtheorem{thm}{Theorem} \makeatletter ...

Top 50 recent answers are included