# Tag Info

4

If you prefer to have any size of the integral sign (you can choose the size that you like), it is possible to use scalerel package with the option \scaleobj{<scale factor>}{...}. \documentclass[a4paper,12pt]{article} \usepackage{mathtools} \usepackage{scalerel} \begin{document} \int^{b}_{a}\frac{1}{x}\,dx, \quad \scaleobj{.5}{\int^{b}_{a}}\frac{... 4 To have the \forall and the \in vertically aligned, I used a 3 columns alignedat (due to the difference in width between t and x). Further, as newtx produced error messages on my system, I replaed them with fourier: \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \usepackage{fourier} %\usepackage{newtxtext} %\usepackage[libertine]{... 5 Here's a solution that employs an array environment to align the elements of the two rows of conditioning information. Note that I use a vertical bar to denote "given that" or "conditional on". If you prefer using a colon, you should input it as :, not as \colon. \documentclass[a4paper,12pt]{article} \usepackage{mathtools,array,newtxtext,newtxmath} \... 10 Writing \eta:=\eta(x,t) has no mathematical meaning whatsoever. Since apparently D is a subset of the plane, functions over D are two-variable by definition; how you call the variables is completely irrelevant. I wouldn't align the two final intervals. Around the colon I would add some additional space because of the split line on the right. \documentclass[... 5 The nccmath package provides a medium-size integral sign , with the \medint\int command. There are also medium-sized fractions (\mfrac), the more general medmath{...} command. and medsize environments. You obtain formulæ with a size of ~80 % \displaystyle, avoiding the discrepancy with \textstyle . The following code provides a demo: \documentclass{article}... 3 I propose 3 other possibilities, using each the medium-size commands from nccmath (ca 80 % of \displaystyle), with the geometry package, which produces by default more decent margins if you don't use marginal notes. \documentclass{article} \usepackage[showframe]{geometry} \usepackage{mathtools, nccmath} \begin{document} \ \begin{flalign*} & g'(x)= &... 6 I would use a \splitfrac macro (provided by the mathtools package) to split the very long numerator term into two parts. Note that I replaced the outermost pair of round parentheses with \big square brackets. This change should make it easier for your readers to find their way around the numerator term. Finally, do also note that there's no point in ... 4 Using my new tokcycle package (https://www.ctan.org/pkg/tokcycle )...I find the result pleasingly legible, when read audibly via the Adobe Reader. This MWE relies on you having a new enough LaTeX installation to support the new \expanded primitive. If not, you can, for the time being, change the \tcremap[x] in the \speakifytext definition to \tcremap[1] ... 2 For a longer comment. I agree with egreg that those \left\right are excessive The alignment is using the recommendations from https://www.ams.org/publications/authors/mit-2.pdf (some of which breqn is also attempting to use) \documentclass[a4paper]{article} \usepackage{mathtools} \DeclareMathOperator\Tr{Tr} \begin{document} \begin{... 4 Use \substack: \[ \bigl\{x_{n,k}\bigr\}_{\substack{n = 1, \ldots, N \\ k = 1, \ldots ,K}}%

2

Use \substack from amsmath: \documentclass{article} \usepackage{amsmath} \begin{document} $\bigl\{x_{n,k}\bigr\}_{\substack{n = 1, \ldots N \\ k = 1 \ldots K}}$ \end{document} Output:

1


4

I would avoid using TeX Gyre Pagella or newpxtext if small caps are to be used. The proportions of some of these small caps are off. This is particularly obvious for o.sc. Here O\textsc{o}o is compared for newpxtext with option largesc, TeX Gyre Pagella and mathpazo with option sc (or osf): Without the largesc option, newpxtext is the same as Pagella. But ...

5

The accents package allows one to define accents. The syntax to define a new accent is \accentset{〈accent〉}{〈symbol〉}. There is no ellipse in the standard math alphabet. You can get one by horizontally stretching a circle: \hstretch{2}{\circ}. Parameter 2 can be modified; it defines the scale factor. hstretch command is provided by the scalerel ...

2

You need to use a linenomath environment around the equation. \documentclass{article} \usepackage[fleqn]{amsmath} \usepackage{lineno} \usepackage{blindtext} \begin{document} \linenumbers \blindtext[2] \begin{linenomath} $$\label{eq:test} a^2+b^2=c^2$$ \end{linenomath} \blindtext[3] \end{document}

6

You can also do this with OpenType fonts using unicode-math. \documentclass[10pt,letterpaper]{memoir} \usepackage{amsmath} \usepackage{unicode-math} \usepackage{microtype} \usepackage{lipsum} \defaultfontfeatures{Scale=MatchLowercase} \setmainfont{TeX Gyre Pagella} \setmathfont{Asana Math} \begin{document} \chapter{Demo} Some regular text. \lipsum[1] ...

10

I suggest that you not load the mathpple, mathpazo, and upgreek packages and, instead, load the newpxtext and newpxmath packages. \documentclass[10pt,letterpaper]{memoir} \usepackage{amsmath,amssymb} %\usepackage{mathpple} %\usepackage{upgreek} %\usepackage{mathpazo} \usepackage{lipsum} \usepackage{newpxtext,newpxmath} \begin{document} Some regular text. \...

7

Currently, I have only set it up for \displaystyle. If you need smaller math styles, let me know. One can change the square size with \sqdim. \documentclass{amsart} \usepackage{stackengine} \def\sqdim{.4ex} \newcommand\perpsq{\mathrel{\ensurestackMath{\stackengine{0pt}{\perp} {\kern\sqdim\rule[\sqdim]{\sqdim}{.4pt}\rule[.4pt]{.4pt}{\sqdim}}{O}{c}{F}{F}{...

3

The spaces are exactly the same -- compare the gaps between the surrounding text, not the distance from the highest/lowest elements of the displayed material. The difference you observe is the fact that there is a large operator with limits in the second display; that is not part of the defined measurement, which is correctly described by @egreg (in a ...

2

You can make these symbols math active by setting their mathcode to 8000 and then define them by the lowercase trick: \documentclass{article} \usepackage{amsmath} \usepackage{mleftright} \makeatletter \def\@mathactive#1#2{\begingroup \lccode~=#1 \lowercase{\endgroup \def~{#2}}% \mathcode#1="8000\relax} \@mathactive({\mleft(} \@...

3

My suggestion is not to use cases, because it increases the interline spaces also inside nested alignments. Using multlined for the long middle equation does the job. \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \begin{equation*} V_{ijk} = \left\{ \begin{aligned} & \dfrac{y_u+y_l}2 - \dfrac{x_u+x_l}2, && \text{if }...

3

Here's a solution that employs a dcases* environment instead of the cases environment. The d in dcases denotes "display style"; this means, among other things, that one can write \frac instead of \dfrac in order to get "large" fraction terms. Note that I've removed unnecessary \left and \right directives. \documentclass{article} \usepackage{mathtools} % ...

7


5

I'm pretty sure it is a duplicate. But it is also easy to solve using aligned \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} V_{ijk}& = \begin{cases} \dfrac{y_u+y_l}2 - \dfrac{x_u+x_l}2,& \text{if }x_u < y_l \\[15pt] \begin{aligned}[b] &\dfrac1C \bigg[\dfrac{x_u^3-y_l^3}{6}+\dfrac{y_l^2+x_u^...

5

Judging from the italic font, the display is inside a theorem statement. I would avoid the parentheses and the repetition of common parts: \documentclass{article} \usepackage{amsmath} \newtheorem{theorem}{Theorem} \DeclareMathOperator{\MSC}{MSC} \begin{document} \begin{theorem} Blah, blah \begin{equation*} \MSC(C_n^2)= \begin{cases} 1, & \text{if ... 2 I don't think using \pmod within parentheses looks so nice, especially if the outer (text) parentheses are italic, so I propose using \bmod instead. I propose two ways: with the cases* environment from mathtools (simpler syntax), and with a standardcases,andeqparbox to align the modulus conditions: \documentclass{article} \usepackage{mathtools} \... 4 Following Writing mod in congruence problems without leading space, use \Mod as defined below: \documentclass{article} \usepackage{amsmath} \newcommand{\Mod}[1]{\ (\mathrm{mod}\ #1)} \begin{document} \begin{align*} MSC(C_n^2) &= \begin{cases} 1, & \text{ifn$is odd and$d$is even ($n \equiv 1 \Mod{4}$)}, \\ 2, & \text{... 3 I suppose you are using algorithm2e to insert algorithms. Also, you have to insert math symbols in math mode, eg,$\Leftarrow\$. Finally, delete the Endif. MWE \documentclass[11pt,a4paper]{report} \usepackage{amsthm,amsmath,amssymb} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{algorithm2e} \begin{document} \begin{algorithm} \caption{...

0

In fact, I found an easy solution. Instead of \mathup or \mathrm, one can use \normalfont to use the text font and keep it upright in any environment. \documentclass[11pt]{article} \usepackage{amsthm,amssymb,amsmath,amsbsy} \usepackage[T1]{fontenc} \usepackage{baskervald} \usepackage[bigdelims]{newtxmath} % math font %\usepackage[bb=px,cal=cm,scr=boondoxo]{...

0

So after some work and looking at different ways to find code that make solve this, I have this partial solution that works well enough for my own purposes. It does require some manual labor and I know that there are probably better solutions. I hope that this helps in the meantime. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \...

Top 50 recent answers are included