{math-mode} is about typesetting mathematical content, e.g. tweaking the appearance of spacing and symbols in a formula, or producing specific mathematical constructs. For questions about "wrapper" environments like equation or align, consider the tag {equations}.

learn more… | top users | synonyms (2)

8
votes
2answers
730 views

Own mathematical function f(x)

I'd like to define an custom function f(x). For example \f{3} should print ln(3) + 3 if the function is set to ln(x) + 3. One should be able change the function: \setfunc{sin(\x}}. This should only ...
2
votes
2answers
58 views

How to split a very long equation (using AMSMATH package)?

I'm trying to split up the following equation so that it fits the margins of my document, so far I have: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} 0 = n_1^3 ...
2
votes
2answers
203 views

Align math to the left

I need to align math to the left. I tried to add [fleqn] option to the \documentclass command - it works but now all equations in the document are aligned to the left which isn't what I want. My ...
0
votes
0answers
37 views

Decimal points interpreted as colons in Adobe Reader but not Chrome, et al

I have a maddening issue wherein the decimal points resulting from the rendering of siunitx's \SI and \num commands display properly in a PDF but are interpreted as colons by Adobe Acrobat Reader DC ...
4
votes
2answers
169 views

How to add overline on top of $\bm B$?

I represent a matrix in bold form throughout my paper, as $\bm B$. I need to add an overline to indicate a subtle transformation to this matrix. However the command $\overline{\bm{B}}$ does not seem ...
2
votes
0answers
27 views

polylongdiv with terms in reverse order

Is there a way to use \polylongdiv in the polynom package to display and calculate polynomials in the reverse order from the way the package is written? For example, \documentclass{article} ...
0
votes
0answers
39 views

Issue with underscore inside a newcommand for math mode

I have this new command as a shortcut for math mode: \newcommand{\m}[1]{$ #1 $} I get the error Missing { inserted error on lines including underscores like \m{f_1(x) = 10} and \m{f^2(x) = ...
1
vote
1answer
55 views

Why does $j=f$ cause error in forest?

\documentclass[oneside,12pt]{article} \usepackage{geometry} \usepackage{microtype} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amssymb} \usepackage{amsmath} ...
4
votes
1answer
42 views

What does `\mathrel{}` do (with the empty parameter group)?

I know basically what \mathrel does when it's given a parameter: it typesets its parameter as though it were a mathematical relation for the purposes of spacing. However, I have seen in several ...
2
votes
1answer
23 views

How to remove the spacing between my modal operators?

I have two modal operators necessary and possible in my document. Since I don't really like the standard \Diamond from the amssymb package, I'm using the fdsymbol package. \documentclass{article} ...
2
votes
1answer
49 views

error: tipa in combination with \DeclarePairedDelimiterXPP

I would like to use phonetic spelling and found the tipa package. Somehow it seems to produce an error combined with a command I use to set conditional probability distributions: ...
3
votes
2answers
64 views

vertical align matrix in table

I am trying to vertical align a matrix to the content of the other cells in a table, and im pretty much stuck. Here is a quick mockup of whats my problem. In fig2 at least the content is aligned ...
4
votes
2answers
128 views

How can I make a square of implication arrows in mathmode?

I have two equivalences A <=> B C <=> D This poses no difficulty in math mode. However, how can I insert implication signs from A to C, and B to D (i.e. A => C, and B =>D) in a nice way?
1
vote
1answer
42 views

arrow between parts of equation and tikzexternalize

In my document, I have an equation where I would like to connect two parts with an arrow, just as the way, as Alan Munn did it here. When I copy his example using \tikzexternalize, I get the error ...
2
votes
1answer
49 views

flush multiline equation to the right

How do I flush the two equations to the right? And keep the eqution number centered between the two lines? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
4
votes
2answers
60 views

Circles at the same height

How do I get the two circles to be on the same height? I tried the following \newcommand{\sss}{\;\;\;\;\;\;\:} \overset{\circ}{R}_{\mu\nu\sigma\lambda}\overset{\circ\sss}{R^{\mu\nu\sigma\lambda}} ...
0
votes
0answers
20 views

How do I insert a space that is the same width as another element (e.g. a minus sign?) [duplicate]

I have a rotational transform equation that I want to typeset $$\begin{bmatrix}x_d \cr x_q\end{bmatrix} = \begin{bmatrix}+\cos \theta_e & \sin \theta_e \cr -\sin \theta_e & ...
7
votes
0answers
78 views

Why equation Recognizes section Above While aligned Does Not

I am placing equations either right after section headings, right before them or both. I know that this is not advised, but I do believe in my context it looks better. One interesting thing I noticed ...
3
votes
1answer
119 views

Adjunction symbol in commutative diagram

I'm writing about Category theory using tikz-cd and have a pair of adjoint functors, which is usually denoted by $F\dashv G$ I would like to have this \dashv symbol in a commutative diagram like ...
1
vote
0answers
38 views

More space between the lines in cases

I'm using the cases environment in one of my formulas. Each case is a fraction so I'm using \displaystyle to let them appear bigger. However, the result looks quite ugly because there is no space ...
4
votes
1answer
43 views

I need help with LyX math environments. They keep changing typeface after reopening the app

I have recently started using LyX. I am having some issues that none of my classmates nor my instructors could help me with. Essentially whenever I close the application I and I reopen my document ...
0
votes
1answer
37 views

How to write a text under subscript [duplicate]

I know two different ways to write the following: We can either type $(a_{ij})_{\mathop{1\le i\le n}\limits_{1\le j\le n }}$ or, as shown here, $(a_{ij})_{\underset{1 \leq j \leq n}{1\le i\le n}}$. ...
2
votes
1answer
34 views

Spacing and size of my matrix displays

I am displeased with some of my display in the following equation : \begin{frame} \begin{align*} \left[ \begin{array}{l} \dfrac{\partial \log L}{\partial b} \\ ...
6
votes
3answers
150 views

Writing sequence terms

What would be the best way to write out the terms of a sequence, somehow like this, but preferably aligned? Is there a way to automatically generate the terms from an equation i.e. with n² for ...
2
votes
1answer
46 views

siunitx per-mode and math in s-column

I am trying to use an siunitx s-column with per-mode = reciprocal for an units column but want to have my unit multiplied with a power. If there is a native way to do this with siunitx I missed it, so ...
1
vote
1answer
38 views

Center align after horizontal line inside an align environment?

I am trying to add a horizontal line in an align environment using the macro provided in this questiion and Package amsmath . The horziontal line looks okay with the equation but the contents below ...
1
vote
1answer
45 views

Nice line-break in inline math within theorem environment

This is my first question here, I hope it's not bad (please bear with me if it is). I have quite a specific problem concerning inline math and theorem environment. In general, I want to obtain the ...
2
votes
1answer
50 views

Typesetting Sets

I adapted a solution from Typesetting coordinates to typeset sets, but it seems to have difficulty with nested usage. $\coord[\big]{0,1, \coord{A,B,C}, \coord{3,2,1}}$ yields: Code: ...
1
vote
1answer
23 views

You can't use `\eqno' in math mode,Missing } inserted

I understand from previous post that this error come when you have extra {,( involved. But in my case i am not able to find any such case. \begin{equation}\overset{\wedge}{\pi}\left(\beta/ A_n\right) ...
6
votes
1answer
539 views

Reproducing Gauss' famous proof

The following appears in a text (in the context of generalizing Gauss' famous proof): I would like to reproduce this, but I cannot figure out how to get the alignment down. I thought of trying to ...
2
votes
1answer
38 views

Align text by numbers in table columns

I need to align the text in columns by decimals in the numbers. However the numbers go together with text so I can not simple use dcolumn package in 5th column as in the 1st one. If I split to more ...
0
votes
0answers
17 views

How to use '\' inside $$ [duplicate]

How can I make \ symbol inside $ $ in latex. As \ is used to start all the commands, so if I want to write some set A which excludes a few elements then usual math way is to write them as $A\ ...
4
votes
1answer
113 views

Equations with italic characters

I would like this equation: \begin{equation}\label{equ3} \textit{E}=\sqrt{p^2c^2+m_0^2c^4}=mc^2 \end{equation} to be shown in a nice way, italic characters, but I cannot. Any idea? it is my ...
2
votes
2answers
47 views

How do I adjust or suppress interletter spaces in math mode

In other words, how do achieve the effect of wrapping an entire equation in \mathit, except without italicizing numbers? More generally, how do I change the amount of whitespace that's added between ...
2
votes
1answer
31 views

Why does combining arrays and \left/\right cause alignment?

The following MWE is rendered as shown below: \documentclass{article} \begin{document} \begin{array}[t]{@{}l@{}} \left[\int abc\right]\\ \left[abc\right] \end{array} \end{document} Why ...
0
votes
1answer
37 views

Place tikzmark at Vertical Center of Math Line

Based on a previous question I asked, I have created the following: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[fleqn]{mathtools} ...
0
votes
1answer
50 views

tufte-latex: math tag into margin

How can I push a \tag of a math environment into the margin when using tufte-latex? I tried to modify the answer in margin note left of an equation? but I didn't understand the command. Here is a MWE ...
8
votes
2answers
337 views

Inconsistent superscript placement in $q_x^{n_x} q_y^{n_y}$

As part of a document, I am typesetting the objects q_x^{n_x} and q_y^{n_y} right next to each other, as \frac{ q_x^{n_x} q_y^{n_y} }{2} It bugs me that the n_y gets displayed at a different ...
1
vote
0answers
73 views

What is the font used by Nature magazine? How can we get the same or similar text font and math font in LaTex? [duplicate]

For example, in this paper: http://www.nature.com/nature/journal/v529/n7587/pdf/nature16961.pdf How can we get the same or similar text font and math font in LaTex?
1
vote
0answers
45 views

\mathcal only allowed in math mode

I am having a couple of errors with this code. With the second line 'missing $ inserted' Then with the third line it says '\mathcal only allowed in math mode'. Would anyone be able to help me with ...
0
votes
1answer
250 views

Why does LaTeX insert space before formulas?

What is the typographic reasoning here? Does it make the text look less crowded?
1
vote
0answers
43 views

Can't make maths equation - possibly Calligraphy? [duplicate]

I have included a picture of a maths equation that I need to convert to LaTeX. However I just can't figure out how to convert the first two symbols or figure out what they are/stand for. The picture ...
2
votes
1answer
59 views

Labeling rows/columns of a matrix with text and braces

I would like to label rows and columns of my matrix with formulas and text. I've started with a version using bordermatrix. \[ \underbrace{ \bordermatrix{ & \underset{\downarrow}{x} & ...
0
votes
0answers
30 views

mathbf related to math in sectionheading problem [duplicate]

I am using the \blacksquare symbol from the amssymb(?) package in my section heading. But this leads my bold math turning into ASCII symbols after a while. Thanks for your help. \boldmath helped. ...
1
vote
1answer
39 views

How to get tilde enclosed in parenthesis

Quick and simple question (actually surprised I couldn't find it on Stackexchange already): How can I typeset (in math mode) quantities with a tilde on top that is enclosed in parentheses? Something ...
3
votes
2answers
114 views

Proper style/use of parenthesis

I'm using 'mathpazo' for text and math. One thing I have noticed is that the style of the parentheses in text and math mode are not alike. What would you use? \documentclass{article} ...
1
vote
1answer
35 views

How to make parentheses under math formulae?

How to make parentheses (with labels J1 and J2) as shown on the picture below?
6
votes
1answer
184 views

How to get limits in integral to the right hand side

I like the integral from mathdesign, but how can I get the limits to the right hand side? \documentclass{article} \DeclareSymbolFont{md}{OMX}{mdput}{m}{n} ...
5
votes
1answer
111 views

Left-justified text with wrapping math

I would like left-justified text with embedded math which wraps in a manner similar to the behaviour with fully justified text. It seems LaTeX will wrap math at "sensible" points (e.g. between certain ...
1
vote
1answer
40 views

Writing Lines and Lines of Math Without Continuation Characters

I've recently converted to using \[ \] instead of $$ $$ as my begin/end math command since I read that is the "correct" method. However, the backslash character is near my pinky on my keyboard and ...