{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)

1
vote
2answers
48 views

Aligned Equation Resizing? (Above or Below \textwidth)

My input: \begin{equation} \begin{aligned}[t] & \min\limits_{\bm{\Delta(P,Q),u}} & & \sum\limits_i u_i, \\ & \text{s.t.} & & (P_{min_k},Q_{min_k}) \leq (P_k,Q_k) \leq ...
10
votes
4answers
252 views

Indices with German Umlaut ä - \mathrm{} or \text{}?

I'm wondering about the correct use of \mathrm{} and/or \text{} (or similar) in formulas. I've read these topics (and some more): Is there a preference of when to use \text and \mathrm? and ...
0
votes
1answer
38 views

How do I “align” numerator and denominator? [duplicate]

\documentclass{amsart} \begin{document} $\frac{(n+1)!}{(n+1)^{n+1}}$ \end{document} The problem is that I want to make (n+1) on the same line. How do I achieve this?
3
votes
2answers
119 views

Use different math font in inline-style and display-style formulas

I would like to use a different font in inline-style math mode ($...$) and displayed equations (e.g., \begin{equation} ... \end{equation}). Currently, I set my fonts with \setmainfont{Frutiger 45 ...
8
votes
4answers
627 views

Norm of “a” looks different from Norm of “b” in math mode

I run into the following little problem in the LaTeX math mode: $ \left \|\tilde{a} \right \| + \left \| \tilde{b} \right \| $ when trying this in the Latex Equation Editor, it looks a bit weird: ...
1
vote
2answers
84 views

How to italicise a number in a math environment?

When typing 'variable0' in a math mode, only the letters are italicised. How can I force the 0 to be italicised as well?
4
votes
1answer
78 views

Math symbols in text mode

I need to write a text which contains some math symbols. In detail those include \rightarrow, \forall and \exists. I know I can switch into math mode with the $ symbol, but I have quite a lot of text ...
1
vote
1answer
60 views

TeX question about double underlining in math mode [closed]

I am trying to define a macro for double underline in TeX (not LaTeX).
6
votes
3answers
650 views

circled “less than or equal to” symbol

Is there a better way than: \mathlarger{\bigcirc}\hspace{-3mm}\mathsmaller{<} which, though, mathjax does not seem to like (Ignore the last line which caused confusion. Also, instead of < I ...
2
votes
1answer
82 views

When to use Roman and Italic Font in Math

I am wondering when to use roman or italic font in math mode. I found that variables should be italicized and functions like max should be put in roman. I found some sites on the topic, e.g. this or ...
2
votes
1answer
49 views

How can I fine-tune the position of equation numbers (given they are all on the right)?

My equation numbers are all on the right. I have the distance from the margin set to 18mm, but I wish to vary this on any particular page as I progress through the document. I presume it would mean ...
1
vote
2answers
57 views

Box around equations in align environment and no indentation

I have the following code and I want to do two things to it.First, I want to have the output maximally on the left, that is I do not want any indentation of the stuff in the align environment, I want ...
2
votes
1answer
49 views

How do I insert bold words inside math mode?

I want to make write an equation that looks like this: if (x belongs to A) then (B is a subset of C) I tried using \documentclass[]{minimal} \begin{document} \[ if x \in A then B \subseteq C \] ...
1
vote
0answers
57 views

Error: Missing $

I have bla $ H $ bla bla $ 2 \times 2 $ . blabla: \begin{equation} H = \theta \textbf{I} + \textbf{ \tau } \cdot \textbf{a}, \end{equation} Why does it give me the following error: ! Missing $ ...
2
votes
0answers
80 views

I'm getting a “missing $ inserted” error even though it's plaintext. What did I do wrong? [closed]

Here is the text that generates the error. SaaS is een afkorting voor ``Software as a Service". Dit houdt in dat de klant tegen een doorlopende vergoeding online gebruik kan maken van de software ...
4
votes
1answer
325 views

Is it possible to reduce the number of arguments of \frac?

The number of arguments of the command \frac is two. Is it possible to make it only one? For instance, I would like to make $\frac{a}{b}$ as, say $\quot{a,b}$.
3
votes
1answer
95 views

How to use `\texorpdfstring`. Characters disappear

I'm using hyperref, which causes trouble when having math in my section title. MWE: \documentclass{report} \usepackage{hyperref} \usepackage{fixltx2e} \begin{document} \section{Basis for ...
2
votes
1answer
34 views

Increase the size of subscript in math mode

I would like to add the size of the subscript p_i in the math form here: $loc_{p_i}$
1
vote
1answer
99 views

How to write like that picture [duplicate]

I have a problem in latex. I can't write like that picture. how to write like that. Please.
1
vote
2answers
48 views

Resolving this aligning problem?

\documentclass{amsart} \begin{document} \begin{align*} \nabla \varphi (r, \theta) &= \nabla f(x, y)\cdot Dg(r, \theta)\\ &= \nabla f(r\cos \theta, r\sin \theta)\cdot Dg(r, \theta)\\ &= ...
3
votes
0answers
53 views

How to change $$ $$ to \[ \] [duplicate]

I have a long math file where $$ $$ was used for display math. I want to change these to \[ \] to make it look neater. I don't know whether I can use the find/replace function in TeXworks to alternate ...
2
votes
1answer
32 views

Strange alignment issue in subequations

I have the following set of subequations (amsmath): \begin{subequations} \begin{alignat}{3} &\frac{\partial^2 \, (r \, \Pi_{1 \perp}^e)}{\partial r^2}+k^2 \, r \, \Pi_{1 \perp}^e &= E \, ...
5
votes
1answer
76 views

Bad math delimiter in enumerate using enumitem

Please consider the following code: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=\arabic*$\star$] \item ABC \end{enumerate} \end{document} Does anyone know ...
4
votes
2answers
117 views

What is better math or text mode for special utf8 symbols

There are some utf8 symbols (ĉ ĝ ...) in the input for pdflatex and I use in preambula commands like \DeclareUnicodeCharacter{0109}{$\hat{c}$}, \DeclareUnicodeCharacter{011D}{$\hat{g}$} and so on ...
3
votes
2answers
78 views

Regression equation font face for long variable names

I'm writing a paper for a journal that contains several regression equations (a first for me). Some of the models have long variables names (between 2-7 characters in length). I'm wondering what the ...
1
vote
1answer
70 views

What is the command to show the product of two integers or the square root of an integer positivo?

LaTeX has a command that shows the Division Algorithm: $$\opdiv{42}{75}$$ Is there a command to show the product of two integers or the square root of an integer?
3
votes
2answers
75 views

Applying MakeUppercase to non-English characters in math mode

I have some macros to distinguish between two varieties of similar objects. So, for example, I need \psi to come out as expected, but \MakeUppercase{\psi} to come out as \Psi. (Obviously my real ...
3
votes
2answers
38 views

How do I get filled black < and \leq while using the MnSymbol package?

Some time ago I posted the question How do I get filled black < and \leq? and got a very useful answer which I accepted. However, my \bleq only fills 95% with black, and the author of the answer ...
1
vote
0answers
42 views

Error message: “I've inserted a begin-math/end-math symbol…” [duplicate]

In laTeX I have this line: <onEntry>do_something </onEntry> which is giving me this error: $ l.28 <onEntry>do_ something </onEntry> I've inserted a begin-math/end-math ...
3
votes
4answers
182 views

Underset spacing

I've got the following equation \begin{align*} \hat{\boldsymbol{\eta}} = \underset{(\boldsymbol{\beta}_{1}, \ldots, \boldsymbol{\beta}_{d}, \boldsymbol{\theta}) \in B_{1} \times \cdots \times ...
0
votes
0answers
44 views

latex2html: cannot use mathematical formulas

I use latex2html to have my document in HTML format. I have a problem with mathematical formulas. I include the following packages: \usepackage{amssymb} \usepackage{amsmath} And when I write ...
1
vote
1answer
46 views

How do I manually adjust the space between a symbol and the plus sign in amsart? [duplicate]

I found that amsart seems to deliberately create space between a symbol and the plus sign. But sometimes I do not need the space, say \documentclass[12pt]{amsart} \begin{document} \[ f(x) \to l ...
2
votes
2answers
160 views

How to make this simple expression $f(\dfrac{r}{h})$ look nice?

How to make this very simple expression nice? I am not convinced by the parenthesis and the vertical spaces among the fraction. Feel free to share how you would have written it. ...
1
vote
0answers
55 views

Qtxmath package with MiKTeX

I was planning to test the qtxmath package with the tgtermes fonts with MiKTeX 2.9: \usepackage{qtxmath,tgtermes} However, I encounter problems compiling the document: miktex-makemf: The qtmri ...
2
votes
2answers
73 views

Use mathclap as default in limits of integration

I would like to change the default behaviour of limits to include \mathclap. Rather than writing every time \int\limits_{\mathclap{verylonglimit}} x \, dx I would like to simply write ...
1
vote
2answers
43 views

Problem with rcases*

I want to put a right bracket because I need it, but it goes out of the page. \[ \begin{rcases*} \text{Si }f:\left[x_{1}, x_{2}\right]\longrightarrow\mathbb{R}\text{ es continua en } \left[x_{1}, ...
0
votes
0answers
131 views

Symbols do not copy correctly from latex pdf to ms word

I have text containing 3 symbols in pdflatex and produce pdf. It is OK. Then i copy these symbols and paste in MS word 2013 and have another symbols or from one symbols two are produced: Before ...
1
vote
0answers
84 views

How should I write math? [closed]

I'm new to TeX and I would like to use it to write math (on a Mac). I've just downloaded MacTex and I'm wondering what's the recommended workflow. Am I supposed to write math in TeX macros/code and ...
3
votes
0answers
108 views

Drawing Cross Sections of (Contours over) Torus

I have this simple torus \begin{figure} \begin{center} \begin{pspicture}(-6,-4)(6,4) \psset{viewpoint=30 10 25 rtp2xyz,Decran=30,lightsrc=viewpoint} \psSolid[object=tore,r1=2.5,r0=1.0,ngrid=36 ...
6
votes
1answer
65 views

Conditional whitespace in math mode

Clarification \documentclass[fleqn]{article} \def\foo{What do I put here???} \begin{document} \[a \foo b\] \[\foo b\] \[a, \foo b\] \[a, b\] \end{document} I would like the document just ...
1
vote
1answer
35 views

measure width of multi-line math code

I would like to measure the width of multi-line math code. My approach below does not always succeed. In the second example an additional line break is inserted: I believe that it has to do with the ...
2
votes
0answers
31 views

How to put an ending sign within equation for theorem-alike environments? [duplicate]

Thanks to an answer to my question asked here, I used the following codes to generate for each theorem-alike environment exactly one square symbol as the ending sign: \documentclass[12pt]{amsart} ...
4
votes
1answer
156 views

missing $ inserted on code

I am certainly new to latex and have this error in a high frequency in my code. The error is claiming I have a missing $ sign in many places, and I imagine that my syntax usage of $ is off. My ...
1
vote
1answer
139 views

How to write system of differential equations

I need help in writing this system in LaTeX: EDIT: I need more help because I am still unable to use the provided solution. My system is: \begin{empheq}[left=\empheqlbrace]{align} ...
1
vote
2answers
27 views

Sizing of nested expressions in math mode

Consider the following example in math mode: \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} \begin{equation} e^{i\frac{\theta_{\!j}}{2}} ...
0
votes
0answers
47 views

prevent linebreak before $math$

I have several linked documents with lots of $$ equations. Sadly line break happens often before the equations. I know I could prevent this using ~ but adding it everywhere seems quite a lot work. May ...
0
votes
2answers
76 views

How we fix (La)TeX math coding to be left aligned

In display math (employing $$...$$) content normally gets aligned centered. But, I need it to be left aligned. Any suggestions? Example $$f(x) = \frac{{{{\sin }^2}x{\mkern 1mu} \cos x}}{{\sin x + ...
3
votes
5answers
179 views

A symbol in LaTeX [duplicate]

I want to write this symbol in LaTeX. I looked for it on Detexify and some code-lists but found nothing. EDIT: I want the arrows and also the letters (general inputs in that place) Thanks!
0
votes
0answers
35 views

Spacing between subscript and operator

How to change the spacing between operator and its subscipt or superscript I want different spacing for sub and super script
4
votes
1answer
70 views

Is there a parenthesis code that work in all contexts and arguments?

This question is about having the most generic parenthesis code if one doesn't know the contents size of the parenthesis a priori. If I want to write a function or parenthesized equation I write, for ...