# Tag Info

2

You could insert an array environment inside the cases environment to create extremely flexible formatting options. (In the code below, the @{{}={}} particles generate appropriately-spaced = symbols.) \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \begin{cases} \begin{array}{l @{{}={}} l @{{}={}} l} x ...

1

You need a mixture of empheq and some box manipulation. Here are three different options, depending on what kind of equation numbering you're after (more options exist): \documentclass{article} \usepackage{empheq} % Loads mathtools and amsmath \begin{document} \begin{empheq}[left=\empheqlbrace]{align} x &= X/Y/Z = 1 \\ y &= ...

4

From what I can tell, you are using the cases environment to place a french brace on the left side of your expressions. Assuming that this is all you are using cases for, you can use regular delimiters instead of cases, which gives you greater flexibility with alignment environments. As in Stefan Kottwitz's second answer to this question, you can just use ...

0

I see no real problem: \documentclass{article} \usepackage{amsmath} \usepackage{kmath} \usepackage[no-math]{fontspec} \usepackage{polyglossia} \setmainfont[ UprightFont = *, ItalicFont = *Italics, SlantedFont = *Italics, BoldFont = *sb, BoldItalicFont = *sbi, BoldSlantedFont = *sbi, SmallCapsFont = *SmallCaps ]{Kerkis} ...

0

I'd use \rm iv or sometimes people use a prime: $x''', x^{\rm iv}, \hbox{ or } x^{\prime v}$ \bye

15

Use \substack: \documentclass{article} \usepackage{amsmath} \begin{document} $Q_{\substack{a\in A\\b\in B}}$% \end{document}

5

Use the \genfrac command from the amsmath package. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} Q_{\genfrac{}{}{0pt}{}{a\in A}{b\in B}} \end{equation*} \end{document}

1

As suggested in the comments: \documentclass{article} \usepackage{mathtools} \begin{document} \aligned A = \!\aligned[t] \Bigg( &a \\ &b \\ &c \Bigg) dt \endaligned \endaligned \end{document}

3

Another solution. This one uses tcolorbox instead of mdframed. \documentclass{article} \usepackage{lmodern} \usepackage{amsmath} \usepackage[most]{tcolorbox} \tcbset{colback=yellow!20!white,colframe=blue!50!black, highlight math style={enhanced, drop shadow} } \begin{document} \tcbhighmath{r=\frac{n \sum xy - \sum x \sum y} ...

2

The standard LaTeX command for boxing something is \fbox. Its argument is in text mode; to switch to display format mathematics you need to issue \fbox{$\displaystyle ...$} Thus your example becomes \documentclass{article} \begin{document} $\frac{2}{4} =\fbox{\displaystyle \frac{1}{2}}$ \end{document} producing If you are using amsmath ...

1

Well, this is not rounded box ... but for starting point should serve the following example: \documentclass{article} \usepackage[dvipsnames]{xcolor} \usepackage{fancybox} \usepackage{empheq} \usepackage[active,tightpage]{preview}% just to show only equation \setlength\PreviewBorder{1em} \begin{document} ...

-1

You should write $\leq$, instead of just \leq.

3

You need no \begingroup and \endgroup: \documentclass{article} \usepackage[usenames, dvipsnames]{color} \definecolor{myred1}{RGB}{255, 0, 0} \definecolor{myyellow1}{RGB}{255, 255, 219} \definecolor{mygreen1}{RGB}{0, 255, 0} \definecolor{mygreen2}{RGB}{0, 126, 0} \definecolor{myblue1}{RGB}{0, 0, 255} \begin{document} ...

4

You can use the dcases environment provided by mathtools. Note also some improvements to your code. \documentclass{article} \usepackage{amsmath,mathtools} \DeclareMathOperator{\Div}{div} \newcommand{\vect}[1]{\mathbf{#1}} \begin{document} \begin{dcases} p=-\frac{1}{\chi}\Div\vect{u}, \\ \rho\frac{\partial^2}{\partial t^2}=-\nabla p ...

3

Using \dfrac instead of \frac will force the fraction to display at the "usual" size. Hence using this code will work: $$\begin{cases} p = -\dfrac{1}{\chi}\mathrm{div}(\mathbf{u}),\\ \rho \dfrac{\partial^2}{\partial t^2} = - \nabla p. \end{cases}$$ Edit: As suggested by Manuel, using \dcases is a better ...

6

Use \tilde{\jmath}, but one may argue that the j character is not really nice then. \documentclass{article} \begin{document} $\tilde{\jmath}$ \end{document}

5

Update Using your revised code, which incorporates my original answer below, to answer your follow-up question, you can add additional \tikzmark{}s wherever you wish and then annotate the equations in the tikzpicture overlay as desired. For example: \documentclass[11pt,a4paper]{article} \usepackage[margin=1.1in]{geometry} \usepackage{amssymb} ...

1

Made to work in all math styles. \documentclass{article} \usepackage{amsmath,scalerel,stackengine} \def\xyz#1{\ThisStyle{% \setbox0=\hbox{$\SavedStyle#1$}% \stackon[1\LMpt]{$\SavedStyle#1$}{\rule{\wd0}{.5\LMpt}}% \rule[-1\LMpt]{.5\LMpt}{\dimexpr\ht0+2.5\LMpt}}} \begin{document} $P_{30:\xyz{20}}\quad \xyz{1234}\quad \scriptscriptstyle\xyz{567890}$ ...

1

You can use actuarialangle, see the “Comprehensive list of symbols”, Table 251; for the package documentation, texdoc actuarialangle \documentclass{article} \usepackage{actuarialangle} \begin{document} $P_{30{:}\actuarialangle{20}}$ \end{document}

3

The amsmath package is not loaded by default, but it's not the problem. You can just load fontspec with the no-math option: \documentclass{article} %\usepackage{amsmath} % optional \usepackage[no-math]{fontspec} \usepackage{musixtex} \begin{document} No error about \breve is raised with or without amsmath and the definition of \breve in the document is ...

0

This does not affect just the amsmath environments. This minimal example also exhibits the problem: \documentclass[12pt,a4paper]{article} \usepackage{listings} \lstset{mathescape,keepspaces} \newcommand\identity[1]{#1} \begin{document} \lstinline!let $v_1$ = 10 in $v_1$ + $v_2$! \identity{\lstinline!let $v_1$ = 10 in $v_1$ + $v_2$!} \end{document} ...

4

Here's a tcolorbox solution (instead of mdframed) The \tcboxmath command can be used inside of an equation or as a standalone box, the configuration of colors etc. is quite simple with colframe and colback etc, either using tcbset or locally in the optional argument. \documentclass{article} \usepackage{mathtools} \usepackage[most]{tcolorbox} ...

5


4

You're using (wrong) plain TeX markup in LaTeX, which is classified as don't-do-it-and-I'm-really-saying-it. While plain TeX syntax would accept $${\rm x} = \left( \matrix{ {\rm x}_a \cr {\rm x}_b } \right)$$ (I fixed the input, removing useless braces), this is a bad way to go with LaTeX, especially if amsmath is used: \begin{equation*} \mathrm{x} = ...

1

If a roman-like font should be used apply \mathrm{...} then! $$...$$ is plain TeX syntax, use $...$ instead. \left(\matrix{...}\right) is \begin{pmatrix} ... \end{pmatrix} now, the p stands for parenthesis (i.e. ()) Use \\ instead of \cr \documentclass{article} \usepackage{amsmath} \begin{document} \mathrm{x} = \begin{pmatrix} ... 2 Here is a much simpler code with alignedat and cases environments. Use the bm package to have bold Greek letters.You don't need all those pairs of { }. Also note font commands such as \rm,\bf, &c. shouldn't be used as they're plain TeX commands, and they don't work well w.r.t. New Font Selection Scheme (N.F.S.S.) which has been new for more than 20 ... 2 This answer is similar to the one by Enrico, but is using aligned instead of alignedat. \documentclass{article} \usepackage{mathtools} \begin{document} \begin{aligned} & \textrm{Dot product:} && \sigma_{ij} n_j \Leftrightarrow \mathbf{\sigma n} \\ & \textrm{Double dot product:} && \begin{cases} ... 5 MathType is not really doing a good work: it's much simpler to type in LaTeX directly. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignedat}{2} &\text{Dot product:} &\quad& \sigma_{ij}{n_j} = \sigma\mathbf{n} \\ &\text{Double dot product:} &\quad& \begin{cases} ... 0 I use the following: \def\restrict#1{\raise-.5ex\hbox{\ensuremath|}_{#1}} because normally the vertical bar must be lowered (and not centered on the math axis as other symbols). And it doesn't need to be very big, it is the fact that it goes lower than the rest that shows that it is a restriction and not an absolute value or a divides symbol. 6 I don't recommend this really! \left is actually a TeX command and has one argument being the delimiter. In this case, the delimiter should be typeset only,so the effect of \left is to be gobbled. (The same is for \right...) As campa noted in his comment: \left... and \right... are important commands in amsmath and changing their definitions will not ... 5 The font set up in beamer is somewhat non-standard (to get as much as possible in sans serif). If you want a more 'normal' arrangement, do \documentclass[professionalfont]{beamer} which will solve your issue here. 2 There are several ways to do what you ask. One is to use command \intup from boisik package: \documentclass{beamer} \usepackage{tikz} \usepackage{boisik} \begin{document} \begin{frame}{Example} \begin{center} \begin{tikzpicture} \path node { \int f(x) dx } ++(0,-2) ... 0 A bit late probably but, if this was CodeGolf, I would win ;) using numcases environment from cases package: \documentclass{article} \usepackage{amsmath} \usepackage{cases} \begin{document} \begin{numcases} {1+2=3\implies} a+b=c,\\ x=y+z. \end{numcases} \end{document} I kept a aligned with x like in the question, otherwise & can be used to ... 0 Another solution uses the multirow and multicol packages: \documentclass[a4paper]{report} \usepackage{amsmath,multirow,multicol} \begin{document} \[\left(\begin{array}{ccc} \multicolumn{2}{c}{\multirow{2}{*}{\left(\begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array}\right)}} & 0 \\ & & 0 \\ \multicolumn{2}{c}{\begin{array}{cc} 0 & 0 ... 3 You probably want \emptyset, not \O; or \varnothing from amssymb. 2 Another way to show submatrices: \documentclass{article} \usepackage{mathtools} \begin{document} \[ \left( \begin{array}{cc|c} 1 & 0 & 2 \\ 0 & 1 & 1 \\ \hline 4 & 3 & 5 \end{array} \right) \end{document}

2

Matrix in matrix can be nested and using the bracket - less matrix environment to keep the columns or rows aligned. \documentclass{article} \usepackage{mathtools} \begin{document} \[ \begin{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ \end{pmatrix} & \begin{matrix} 2 \\ 1 \end{matrix} \\ \begin{matrix} 4 & 3 \end{matrix} & 5 ...

2

When \pounds is found in math mode, LaTeX executes \mathsterling, otherwise it does \textsterling. If we look at newpxtext.sty in a TeX Live 2014 distribution, we find \re@DeclareMathSymbol{\mathsterling}{\mathord}{operators}{163} The package is version 1.232, released 2015/04/07. This line is commented out in the current version 1.293 released ...

1

Depending on your TeX distribution, the text-mode and math-mode renditions of \pounds may differ. I get the following output from running your code on a system with MacTeX2015 and version 1.293 (2015/08/07) of newpxtext: Since newpxmath isn't loaded, the symbol produced by $\pounds$ is the math-italic glyph from the Computer Modern font family. If the ...

1

You may avoid \right and \left: \documentclass{article} \begin{document} $f ( O ) \rightarrow f ( I )$ \end{document} output: If you use \left( and \right) you should be in math-mode but not recommended: \documentclass{article} \begin{document} $f \left( O \right.) \rightarrow f \left( I \right.)$ \end{document} output:

Top 50 recent answers are included