New answers tagged

1

The fd file for lmodern gives a fixed size for the extension font, you could allow it to be scaled to the current font size. Although I'd never use the display fraction in the numerator. \documentclass{article} \usepackage{lmodern} \DeclareFontFamily{OMX}{lmex}{} \DeclareFontShape{OMX}{lmex}{m}{n}{% <->lmex10% was <->sfixed*lmex10% }{} \...


0

(rewrote the answer to make is usable with all TeX engines) Here's a solution that redefines \footnote and \caption by locally changing \everymath{\displaystyle} to \everymath{}. \documentclass[11pt,letterpaper,twoside]{book} \usepackage{amsmath} % for '\tfrac' macro \usepackage[vmargin=4.75in]{geometry} % just for this example \everymath{\displaystyle} % &...


0

Your question is not entirely clear. If If you like to have short, multiline equations in paralel, than you can enclose them in paralel minipages or write in table, as is done in MWE (Minimal Working Example) below. In it is considered @Barbara Beeton comment: \documentclass{article} \usepackage[showframe, % in real document delete this option ...


0

I think the minipage environment is what you need: \documentclass[border=5pt]{standalone} \usepackage{amsmath} \begin{document} \begin{minipage}{.5\linewidth} \begin{gather*} \tag{A} v_1 = v_2 = v_3 \\ \qquad = v_4 v_5 \end{gather*} \end{minipage} \begin{minipage}{.5\linewidth} \begin{gather*} \tag{B} ax^5 + bx^4 + cx^3 + \cdots \\ \...


6

When AMS created the three document classes amsart, amsbook and amsproc, there was a strongly held philosophy that they should be as close to the basic LaTeX classes article, book and proc, so that it would be possible for an author to prepare a document using one of those, and simply change the \documentclass line to apply the AMS style. This has proved to ...


1

Perhaps this hack with bigstrut will befit you? \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry} \usepackage{microtype} \usepackage{amsfonts} \usepackage{mathtools} \usepackage{bigstrut} \newcommand{\mybigstrut}[1] {{\setlength{\...


1

A couple of suggestions \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry} \usepackage{microtype} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{mathtools} \usepackage{tensor} \begin{document} TEST \begin{equation} a(t)...


3

Delete the last \\ inside align (the one after \gamma\delta).


4

Combining wipet's answer and a scaled up version of |, I get good results: \documentclass[11pt,letterpaper,twoside]{book} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry} \usepackage{microtype} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{mathtools} \usepackage{tensor}...


7

Define \def\myvert{\biggr|{\vphantom{\int}}} and use \myvert_{..}^{..} instead \biggr|_{..}^{..}. Edit: If you want to have equal size of the bar and the \int then you can define it as \vrule: \def\myvert{{\mkern2mu\vrule\,\vphantom{\int}}}


-1

You are using amsmath, so you can use the command \eqref{foo} instead of \ref{foo}. That will generate the equation number in parentesis non-bolded. Theres also no need for anything in the equation environment besides \label{foo} this way. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} 2 + 2 = 4 \label{foo} \end{equation}...


1

One could change tag forms with the help of mathtools but this wouldn't help here directly since the current tag form would influence also the reference, which is what you do not want. One might change the tag form only in displayed equations and restore it to the default afterwards, but I'm not as comfortable in hacking into mathtools as I am with amsmath. \...


1

I propose these improvements with align* and eqparbox, so that the middle term is centred between the \leq signs: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{amsmath} \usepackage{eqparbox} \newcommand\eqmathbox[2][M]{\eqmakebox[#1]{$\displaystyle#2$}} \begin{document} \textbf{Théoriquement :}\\ On sait que l'...


5

Is this what you want? I used \shortintertext from mathtools: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{gather*} \begin{split} d(x) + e(x) + f(x) < a(x) * b(x) * c(x) \\ {} * d(x) * e(x) * f(x) \end{split} \shortintertext{\raggedleft Explained here} \begin{split} b(x) + c(x) + d(x) + e(x) + f(x) < a(x) * b(x) * c(x) ...


3

\everymath{\displaystyle} will force math mode into display style all the time. To temporarily overcome it, you can reset that in the scope of a group, as in {\everymath{}...}. As I noted in a comment, the reason displaystyle is typically only used for display math is that, when it differs from textstyle, it is because it is too big to fit in one vertical ...


6

It's unfortunately a long-standing bug with nested accents in amsmath. Here's a workaround, but the result is not that pretty, isn't it? \documentclass{article} \usepackage{amsmath} \makeatletter \newsavebox{\fixaccent@box} \newcommand{\fixaccent}[2]{% \mathpalette\fixaccent@{{#1}{#2}}% } \newcommand{\fixaccent@}[2]{\fixaccent@@{#1}#2} \newcommand{\...


0

Try using \underset{belowtext}{text}. Note below that: \mathrm is for using non-italics Roman font in math mode. \, is for adding a thin space z = \underset{x}{\mathrm{argmax}}\, f(x)


3

The root cause of the problem you've encountered is that you're trying to use a text-mode-only command -- \d -- in math mode. Rather than undefine and then redefine \d suitably, I think it's better to create a macro with a new name -- say, \diff -- to denote the "differential operator". E.g., \newcommand{\diff}{\mathop{}\!\mathrm{d}} Observe that ...


5

I am pretty sure this is a scope issue. If I am reading amsmath.sty right: the redefinition of \@currentlabel only happens when printing the tag. To do so \tag sets \df@tag to a command that prints the tag and sets the \@currentlabel. And the way \label works in amsmath.sty is a bit complicated. The \label command is redefined to store the label in \df@label,...


2

I had to modify your code as follows to be able to replicate the screenshot you posted: \documentclass{book} % or: \documentclass{report} \usepackage{amsthm} % or: \usepackage{ntheorem} \newtheorem{theorem}{Theorem}[section] \begin{document} \setcounter{chapter}{5} % just for this example \begin{theorem} Theorem statement. \end{theorem} \end{document} The ...


0

Did you try something like this? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} & & x^2 &= 2x-1 \\ &\iff & x^2-2x+1 &= 0 \\ &\iff & (x-1)^2 &= 0 \\ &\iff & x-1 &= 0 \\ &\iff & ...


2

It's fairly straight forward to put a system of linear equations in an alignat if you consider the following basic setup: Each alignment point & has a right-&-left (or r&l) alignment structure; Keep variables, operators and relations in their own "column"; Add {} around operators/relations to ensure proper spacing (as in {}+{}, {}-{} ...


1

Line 1: letter paper should be letterpaper, but you can omit it altogether, since you're declaring a4paper later. Line 2: with a recent release of LaTeX available, this can be omitted. Line 7: you're missing a trailing {geometry}, which is the cause of the first error you get. In the main part, all those \emph declarations are wrong. And TeX won't split the ...


Top 50 recent answers are included