# Tag Info

1

You can often literally smash the part which fiddles with your desired height :) \documentclass{article} \usepackage{amsmath} \begin{document} $$a\left[\frac{d\cos y}{e} + \smash{\overbrace{\frac{b\sin x}{c}}^{\text{second bit}}}\right]$$ \end{document} This comes closer to the posted intended output than David's answer, ...

4

\documentclass{article} \usepackage{amsmath} \begin{document} $$a\Bigl[\frac{d\cos y}{e} + \overbrace{\frac{b\sin x}{c}}^{\text{second bit}}\Bigr]$$ \end{document}

4

Use align, or if you want only one number use aligned inside an equation. \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} e^{-\lambda T} &= ( 1 - \log S_j^* (T))^{\frac{1}{1-\theta}} \\ - \lambda T &= \dfrac{1}{1-\theta} \log ( 1 - \log S_j^*(t)) \\ T &= \dfrac{1}{\lambda (\theta-1)} \log ( 1 - \log S_j^*(t)) ...

5

Never pile up font package loading. The fourier package uses math fonts with a different encoding from the standard, so it changes several slot positions. On the other hand, the lxfonts use the standard encodings for math symbols, so loading fourier will have strange effects like the one you're describing. By the way, your package loading order is a bit ...

6


9

Extending jlv's very good solution, here's one where the input is simpler, because common elements can be implicit. I also add some macros that help input and make it easier changing the rendering, if needed. So, instead of \to and \leftrightarrow I define \limplies and \liff for uniformity with \lnot, \lor and \land. Also, the justification is hidden in a ...

0

\begin{aligned} a &= 1 & b &= 2 + 3 \\ c &= 4 + 5 & d &= 6 \end{aligned}

6

As @tohecz said, the amsmath package is quite helpful, and learning about it yourself is usually the best solution. The second best solution is seeing what other people have done, taking it, and adjusting it to your needs. Below is a second best solution. \documentclass{article} \usepackage{amsmath,array} \setlength{\tabcolsep}{2pt} ...

2

Please, try to break the beast into smaller pieces, add comments and explain. It as well allows you to simplify the formulas: Two comments: I didn't insert any explanatory text, you will have to do that yourself. If the star * doesn't denote convolution, but rather standard multiplication, simply remove it, it's redundant and it can be even confusing. ...

1

If you use the geometry package and employ that package's default (or even narrower) margin settings, the equations all fit between the margins without having to break lines. Alternatively, you can use the medsize environment (from nccmath, ~80 % of \displaystyle): \documentclass{article} \usepackage[utf8]{inputenc} ...

10

Two options; the first one using the empheq package, and the second one using the interaction between empheq and tcolorbox for fancyer designs: The code: \documentclass{article} \usepackage{amsmath} \usepackage[many]{tcolorbox} \usepackage{empheq} \usetikzlibrary{shadows} \tcbset{ highlight math style={ enhanced, colframe=red!60!black, ...

2

I suggest you make the following adjustments: Most importantly, use an align* environment instead of consecutive $...$ constructs. Use \qquad to indent the subsidiary lines of each equation. You have some redundant parentheses in several of the equations. Keep things as visually uncluttered as possible -- you only need one large pair, not two. The ...

0

Other option would be put the pages with extreme long equations/matrices in landscape. So the required example would become \documentclass[a4paper,12pt]{article} \usepackage{pdflscape} \begin{document} \begin{landscape} \begin{array}{lcc} \frac{1}{z^p}\left[ f(z)*\left( \frac{z^p - D z^{p+1}}{(1-z)^{2}} + \frac{\beta ... 6 Another amsmath possibility: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{split} \frac{1}{z^p}&\Bigl[ f(z)*\Bigl( \frac{z^p - D z^{p+1}}{(1-z)^{2}} + \frac{\beta e^{i\theta}(D-1)z^{p+1}}{(1-z)^{2}}\Bigr) \Bigr]\\[\jot] &{}=\frac{1}{z^p}\Bigl[ f(z)*\Bigl( z^p + \sum _{k=p+1}^{\infty} (k-p+1) z^k ... 4 You should use align here or align*, if you do not want to get the lines numbered. These environments are part of the package amsmath. You could load the package mathtools instead in order to move the first row to the left. Looks nicer in my eyes. Just adapt the [number] of \MoveEqLeft to your needs: % arara: pdflatex \documentclass{article} ... 1 \documentclass{article} \usepackage{stackengine} \stackMath \begin{document} \[ \{ \stackunder{1,}{\stackunder{\downarrow\,}{\scriptscriptstyle x_1}}\, \stackunder{2,}{\stackunder{\downarrow\,}{\scriptscriptstyle x_2}}\, \stackunder{3,}{\stackunder{\downarrow\,}{\scriptscriptstyle x_3}}\, \ldots \} \end{document} If one does not like the look of ...

4

I hope that one of the following interpretations is close to your expectations. \documentclass{article} \begin{document} $\begin{array}{*5{c}} 1&2&3&\ldots&n\\[-2pt] \downarrow&\downarrow&\downarrow& &\downarrow\\[-2pt] x_1&x_2&x_3&\ldots&x_n \end{array}$ \[ \begin{array}{*5{l}} ...

6

This is pretty well answered but I'll try and make it simpler: like others have said, you want to add \usepackage{amsmath} to your preamble, and then put the equations in an align environment. \documentclass{article} \usepackage{amsmath} \begin{document}\noindent Equations with numbers: align \begin{align} 2 + 2 &= 4\\ ...

9

Using align and friends from amsmath: \documentclass{article} \usepackage{amsmath,mathpazo} \newcommand{\deriv}[2][x]{\frac{\mathrm{d}#2}{\mathrm{d}#1}} \begin{document} \begin{align*} q u^{q-1} \deriv{u} &= p x^{p-1} \\ \deriv{u} &= \frac{p x^{-1}}{q u^{-1}} \\ \deriv{u} &= n x^{n-1} \end{align*} \end{document}

1

Another solution with the aligned environment and the \mathllap command from mathtools: \documentclass{beamer} \hypersetup{pdfpagemode=FullScreen} \usefonttheme[onlymath]{serif} %\usefonttheme{professionalfonts}% font de LaTeX \usetheme{Berlin} %\usecolortheme{miniframes} %\usepackage{listings} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} ...

6

You can use the option aspectratio=169 as percusse says in \documentclass[aspectratio=169]{beamer} to get Or use the symbol for Laplacian \begin{align} \frac{-\hbar²}{2m}∇^{2}ψ(x,y,z)+V(x,y,z)ψ(x,y,z) = Eψ(x,y,z)\label{ecu-gen} \end{align} to get Or try to split the equation into two lines using amsmath (split/align/multline) \begin{multline} ...

3

The command \refeq, besides typesetting the reference, writes an \MT@newlabel entry in the .aux file, so defining a \silentrefeq that does this will suffice. \documentclass{article} \usepackage{mathtools} \mathtoolsset{showonlyrefs,showmanualtags} \makeatletter \MHInternalSyntaxOn \newcommand{\silentrefeq}[1]{ \@bsphack \MH_if_boolean:nT ...

1

In order to do what the empheq environment does, (I suspect) they are collect all of the material between \begin{empheq} and \end{empheq} into a box. If the delimiter that terminates the box collection is hidden in unexpanded macros, the collection continues until the end of the document. This new environment works for me: \newenvironment{empheqbox}{% ...

5

Synposis: %put a longer paragraph of text in a box \newsavebox\lipsumbox \begin{lrbox}{\lipsumbox}% \begin{minipage}{\textwidth}% \strut \lipsum \strut \end{minipage} \end{lrbox} %scroll the box content within a viewport of limited height \smoothscroll[autoplay]{\lipsumbox}{0.93\textheight}{400}{25} Usage: \smoothscroll[autoplay] ...

4

You could try: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \begin{document} $$\begin{array}[t]{c @{\,} c @{{}={}} c} AAAAAA & yyyyy & bbbbbb \\ A & y & b \\ \end{array}$$ \end{document} Addendum, to address the OP's follow-up query: To typeset the two versions of ...

3


Top 50 recent answers are included