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

2
votes
1answer
54 views

Conflicting multi-line underbrace labels

Sometimes a \makebox gives nice underbrace, sometimes multiline version with \parbox works. But how to combine two multiline-underbrace-equation-labels side by side and make them look good? ...
2
votes
1answer
47 views

Fixing the vertical position of subscripts

When I write $\chi_V$ the subscript outputs too high for my taste. Is there a way I can set the vertical position of subscripts for the whole document? Many thanks
11
votes
3answers
990 views

A symbol above a comma

How can I put a symbol above a comma? For example in
1
vote
1answer
50 views

equation* environment or \[ \]? [duplicate]

So, I'm writing a mathematics paper, and let's say I have the following: \begin{equation*} 2+2=4 \end{equation*} Is this the proper way to do an unnumbered equation, or is it preferred to do the ...
2
votes
2answers
113 views

Unable to typeset LaTeX maths characters in pgfplotstable table header

I am typsetting a simple table with pgfplotstable and attempting to include units in the headers. I've noticed that certain math macros e.g. \circ or \gamma (2 random test cases) fail to typeset. When ...
1
vote
2answers
45 views

Section-level equation numbers follow previous section numbering

I am using \numberwithin{equation}{subsection} to number my equations uniquely for each subsection in my article. For example: Section 1 Title 1.1 Subsection 1.1 Title a=b (1.1.1) a+2=b+2 ...
4
votes
1answer
46 views

How to auto linebreak before/after parenthesis in inline math

I read this answer "Allowing line break at ',' in inline math mode" breaks citations I want to change ('s catcode automatically to avoid breaking some packages. ...
2
votes
1answer
105 views

General guide on how to set up font families for luaLatex

In A Survey of Free Math Fonts for TEX and LATEX are great examples of harmonizing fonts in Latex. For example consider the text fragment for CM Bright: With pdfLatex it was sufficient to just ...
1
vote
0answers
34 views

How to draw change-of-coordinates notation in LaTeX? [duplicate]

For a homework assignment, I'd like to include something like the following image in my document as a single term in an equation: I know I could simply use another variable name, but my professor ...
3
votes
2answers
69 views

Adjust custom made upright greek letters when used in subscripts

I really like how Steven is generating upright greek letters in his answer: \documentclass[a4paper]{article} \newsavebox{\foobox} \newcommand{\slantbox}[2][0]{\mbox{% \sbox{\foobox}{#2}% ...
6
votes
2answers
54 views

Expand arrows within an array

Any ideia of how I can expand the \xrightarrow so that they all have the same size? (for aesthetics) \documentclass{article} \usepackage{amsmath} % \text nas equacoes \usepackage{mathrsfs} ...
5
votes
3answers
187 views

How to make large binomial coefficient?

I have a potentially-repeated question, but I was unable to find anything about this. So, I need to create a giant binomial coefficient in LaTeX (something around 1000pt). When I compile the below, ...
0
votes
0answers
38 views

Why use \[ … \] and not $$ … $$ for displayed math mode? [duplicate]

For displayed math mode, one can use either one of : \[ ... \], or $$ ... $$, or even \begin{displaymath} ... \end{displaymath} But I see many people here saying: never use $$ ... $$ for ...
2
votes
2answers
68 views

\endgroup error when using \makebox and gather

I'm getting this error when I try to use \makebox to center several equations that run longer than the textwidth. If I use $$ .. $$, I don't seem to have the issue. Why? Code that throws ! Missing ...
1
vote
1answer
64 views

add frame to matrix [duplicate]

I want to enclose my matrix by a box. I have followed the instructions in this link but couldnt get the borders correct. Here is how the frame looks like and the code. \begin{frame} ...
0
votes
0answers
34 views

Use $$…$$ or \[…\] to enter math mode in LaTeX? [duplicate]

I read on some sites that [ ... ] (with backslashes before the brackets) should be used, rather that $$...$$ what is the difference between both? If you compare the output, the result is the same.
1
vote
1answer
151 views

Beamer template setbeamerfont bfseries

I have a problem regarding the \setbeamerfont command related to alerted text. The usage is: \setbeamerfont{alerted text}{series=\bfseries} However, bfseries does not work in math mode - what can I ...
1
vote
1answer
43 views

Putting variable constraints on the right of an equation

Suppose I have a formula like y/x, and I want to say that x must be greater than zero. In well-printed literature, you'd see something like y/x ; x > 0 with just the correct amount of spacing ...
1
vote
0answers
90 views

How to obtain a heavier math font?

The current question is a follow-up to some previously asked questions, like this: It is possible to make fonts appear heavier (darker) in pdf output of Latex? and this: Make entire document heavier ...
0
votes
0answers
42 views

Editor text color in align environment

I am using TeXworks to type up very long assignments. For the types of assignment I type up, I usually have many lines of equations of all sorts with interjections of normal text as explanations and ...
5
votes
2answers
166 views

Matrix inside matrix

How I can make a matrix inside a matrix as shown in this picture? Indeed, I want to treat every block as a separate matrix. For example, I want to add braces over and under the second matrix by ...
2
votes
1answer
51 views

\sqrt but with a vertical drop at the end [duplicate]

I have a formula $$\sqrt{t_{i + 1} - t_i }\epsilon_{ij}$$ But when rendered, it looks a little unclear since the epsilon is not adequately separated from the square root. I'm reluctant to reorder ...
1
vote
0answers
114 views

Text font matching CM Math?

I see many people ask about a math font to match their favorite text font. Here I'm asking the inverse question. When I first heard about LaTeX, I was so impressed by its super high quality output, ...
5
votes
2answers
158 views

How to make expectation symbol and max symbol line up

Suppose you prefer the max symbol to be centered (height-wise) compared to a capitol letter that is taller. How would you do that. For example, below \documentclass[14pt]{beamer} \usetheme{Madrid} ...
0
votes
0answers
29 views

How to refer to a result of an equation [duplicate]

I have a question: is it possible to \ref a result of an equation? For example I have something like: A is: A = \frac{B}{10} B is: B = 1 + 2 = \somelabelfunction{B}{3} %I want this to show the ...
1
vote
1answer
90 views

Auto spacing in math mode

I have a long line of math expression, which is as follows: $verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword verylongword ...
0
votes
1answer
85 views

Missing { inserted. <to be read again> error

I'm desperate. I can't figure out why my code won't work. I need an answer as soon as possible. Many thanks in advance. The line of code it is on is: (IC1) $\int_{\underline{v}}^{\bar{v}} ...
2
votes
1answer
63 views

Set all numbers greater than “X” bold

I am looking for a way to set automatically all numbers in mathmode bold (\mathbf) that are greater than a certain value. For example I set the new counter to 1000 in the preamble and every number ...
4
votes
1answer
52 views

Vertical bar in a math mode inside tabular

I cannot get the | line to appear in a fraction in a tabular. Could someone please tell me what I am doing wrong?? \documentclass{article} \usepackage{amssymb, amsmath} \begin{document} ...
5
votes
1answer
115 views

Insert Paragraph within Equation

How to insert a paragraph inside equation. I need to be able to break lines inside the paragraph. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} y ...
11
votes
3answers
138 views

Incorrect spacing after minus sign with combination of amsmath and hyperref

When no packages are loaded, no space is inserted after the minus sign of a negative number: \documentclass{article} \begin{document} \begin{equation} -1 = -1 % output: -1 = -1 \end{equation} ...
4
votes
1answer
65 views

Loops in TikZ: Executing Subtraction in Math Mode

I learned today that I can execute a loop in TikZ, which makes my life a lot easier... but I'm wondering how to evaluate a numerical expression in math mode. MWE: \documentclass[12pt]{article} ...
4
votes
4answers
160 views

Numbers are very small in numerator and denominator using \frac

When I use the \frac command, I notice that the characters used for the fraction terms become smaller than those which are not in the \frac command. Is there a way to correct it?
0
votes
1answer
77 views

Triangle inequality symbol

Does anybody know what symbol to put above an inequality symbol < to indicate that the triangle inequality has been applied? I would like a symbol like this (which is not in The Comprehensive ...
3
votes
2answers
189 views

Editing theorem environments

I have two questions about editing theorem environments on Tex. I did not see concrete answers among answered questions, so I ask here mines, hoping that there are not frequently asked. First, I ...
13
votes
2answers
486 views

How to write these symbols (double vee, wedge and bracket)

I want to know how could I do these three things (in red): For the last one, I'm curious about the brackets. Probably they are not too dificult to "write" in this languege but I've no clue. I hope ...
7
votes
2answers
456 views

Write this equation in latex

I want to write this equation in latex: I need that comments be in right side. I did something like this but it has some flaws. \begin{eqnarray} \label{cons1} % \begin{aligned} ...
4
votes
1answer
174 views

How to write a calligraphic letter with a check hat?

I would like to typeset but $\v{\mathcal{R}}$ or $\mathcal{\v{R}}$ would not work....
3
votes
1answer
48 views

Making an environment with the same text color as the background

I am looking to type up some solutions to math problems. However, I do not want someone who just looks at the document to be able to see the solution; I want the students to be able to see the ...
1
vote
0answers
92 views

Formulas are not displayed correctly (documentclass 'simauth') [closed]

I am supposed to use the document class simauth as described here. However, the formulas and in general anything math related looks not as it is supposed to look, instead of Does anybody know ...
1
vote
1answer
78 views

Centered LaTeX program written

I have a somewhat working LaTeX program written. One thing I would like to be better is the centering of the \begin{align*}...\end{align*}. I tried \begin{gather*}...\end{gather*} but I can not get ...
5
votes
2answers
110 views

Slash resembling “circled division slash”

The package stmaryrd defines two symbols \varoslash and \varobslash which resemble the "circled division slash" ⊘ and an similar backslash. However, when mixing these circled slashes and regular ...
0
votes
0answers
23 views

Correct usage of \mathbf [duplicate]

In my work I have: J_{\mathbf{\lambda}}(f(\mathbf{p},t)) but pdflatex prited Why? Maybe I'm not using mathbf correctly?
3
votes
1answer
171 views

Making a thicker \cdot for dot product (that is thinner than \bullet)

I'm trying to replicate the dot that my professor uses in his notes for the dot product between vectors but I am having a hard time doing so. This is what it looks like: I have tried a couple of ...
3
votes
2answers
51 views

Create \uparrow in math mode with variable length

How to make \uparrow to be as long as the object left to it? Is there a way like for brackets \right] ? How to make this look nice: \documentclass[15pt, a4paper]{scrartcl} ...
1
vote
0answers
35 views

How to construct block matrix with shadowed entries? [duplicate]

Is there a simple way of drawing matrices with shadowed blocks like the ones in the picture? I've tried something like Gonzalo Medina's proposal: %% with these packages loaded %% ...
7
votes
2answers
97 views

boldsymbol badly modifies spacing

In the example below, it is my feeling that \boldsymbol badly increases the horizontal spacing with the index: \documentclass[fleqn,11pt]{book} \usepackage{amsmath} \begin{document} ...
5
votes
2answers
91 views

I want to change the font in math mode for only one letter in an equation

Some has suggested this is a duplicate question, but I do not think so, because I haven't been able to do it by reading the other posts. I have something like \documentclass[a4paper,12pt]{book} ...
5
votes
2answers
62 views

Breaking inline math within longtable or tabular

So, I've got the following code: \documentclass{memoir} \usepackage{longtable} \begin{document} \begin{longtable}{p{0.4in}cp{2.75in}p{1.8in}} Symbol & Unit & Describes & Equivalent ...
4
votes
1answer
224 views

Showing plus or minus error in siunitx

Using the notation we were taught, 0.0010 plus or minus 0.0001, for example, would be: (1.0 +/- 0.1)*10^-3s Is there a way to print this in latex using the siunitx package?