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

3
votes
2answers
52 views

auto-resizing parenthesis in math formulas

I am looking for a way to have auto-resizing parenthesis on math mode. In a formula like (a * (b + c)), I'd like the external parenthesis to be a little bigger. Ideally, this would be done without ...
1
vote
1answer
352 views

Why is the following LaTeX code invalid?

I am trying to compile a document using lyx and the following line: $Encrypted(k_\left\{subcontractor,airplane\right\}, softwareBytes | HMAC(softwareBytes))$ gives an error as if the first and ...
2
votes
1answer
46 views

Mathematical fraction of text descriptions

I know exactly how to generate it, but I want a more efficient way. Anybody can help? \begin{equation} \nonumber n=\frac{\mathrm{maximum \ fraction \ of \ the \ river \ that \ a \ boat \ can ...
5
votes
2answers
60 views

Straight quotes in math equation?

How can I put straight quotes inside a math equation? I would like to use straight quotes to surround a string-like piece of data that is displayed using \mathtt. Single or double quotes are both ...
6
votes
2answers
80 views

How to prevent uneven spacing between words

In the following example, I get awkward spacing in a multicol environment in the second question. Notice that the words "Which of the following" are not spaced as they are in the first question. I'd ...
2
votes
2answers
35 views

How to center an index or variable under an expression or word in math-mode

How can I get the the term shown in the picture: $\underline{x_a}$ should be centered under max. What I know is the structure below, but this is not what I am looking for: $max_{\atop ...
2
votes
1answer
34 views

Doing case analysis on an argument of a macro

Background: As has been discussed here, there appears to be no widely accepted typographical standard for logical quantifiers. To address this I defined in my paper the following macro: ...
3
votes
1answer
125 views

Math command that works in text and math mode

The command \newcommand{\rsim}{\text{$\overset{r}{\sim}$ }} works in text and math mode. That said, the workaround looks somewhat ugly, as text mode and math mode are summoned for a single ...
13
votes
1answer
506 views

Symbol for m by n matrix

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because ...
2
votes
1answer
28 views

Hphantom of minus sign in math mode

I would like to align the parenthesis in following two equations using \hphantom \documentclass[varwidth]{standalone} \begin{document} \noindent $d\cdot i\hphantom{j}\qquad\hphantom{-}\;(\ldots)$\\ ...
1
vote
0answers
25 views

Adding vertical padding to characters in math

This is my first post here, so please bear with me. I'm writing a dissertation with a heavily modified version of the book cls. This dissertation is very equation-heavy. I'm writing vectors in ...
2
votes
1answer
42 views

How to put subscript on a letter

How can I write a letter with a character above and under it?For example a V with 1 above and 0 under? Thank you!
4
votes
2answers
74 views

Graph theory notation

I am writing a TeX document with some graph theory notation and there is some notation I couldn't get: I checked in Word and it's Cambria Math font, but when I used the {unicode-math} package it ...
2
votes
1answer
23 views

Using struktex unintentionally changes math font

I'm using the struktogram environment from the struktex package to draw structograms in my report. The problem is that the package apparently changes some font definitions, so the formulae in equation ...
4
votes
1answer
66 views

How do I get the “normal” theta with ebgaramond-maths in pdfLaTeX?

With ebgaramond-maths in pdfLaTeX, I'm getting a theta (with $\theta$) that's sort of a sparse, cursive, loopy thing. I want the normal theta. Looking at ...
8
votes
4answers
348 views

Nice display of proof steps without eqnarray

This is a follow-up question to: Is eqnarray really obsolete? The background is that I want to follow the general advice to avoid eqnarray. However, while working on old documents still containing ...
3
votes
1answer
200 views

Writing functions and LaTeX

How do I write a function in LaTeX? I tried writing f(...), but it just appears as a normal f. Do I have to add a math package or is it already in LaTeX
2
votes
2answers
48 views

Conditional equations with with one curly bracket in LaTex?

How would I code something like this I've got the code \begin{equation} L = \begin{cases} 1 & \text{if $i = j$ and $deg_j \neq 0 $} \\ stuff & ...
0
votes
1answer
24 views

Alignment issue with \overline{x} [duplicate]

I used LaTeX to write a document, and I was writing complex conjugates, so I had to make line a line on top of each number like this \overline X\cdot\overline y But there's an alignment ...
4
votes
1answer
44 views

Breaking equations with different alignments

Suppose I have an equation which is too long for one line and I would like to split it over two lines. However, I would like the first line to be left-aligned and the second to be right-aligned w.r.t. ...
4
votes
2answers
65 views

Parallel resistance command

I've been looking for a way to typeset the parallel of two resistances. I'm aware of the \parallel symbol, but it has the limitation that it won't adapt its size; i.e., the following MWE won't ...
1
vote
1answer
54 views

Bold row in table with first column in math mode

In my LaTeX document I have quite a few large tables where I would like to set the first row in bold font as well as the first column. This works nicely with some well-known tricks. However, when my ...
2
votes
2answers
69 views

Insert unicode character in auctex math mode

I use emacs with auctex to run lualatex. Is there a way to modify the math input of auctex, e.g. modify LaTeX-math-zeta, bound to the keystroke <`z>, so the unicode character ζ instead of \zeta is ...
0
votes
2answers
31 views

Making bold subsection-headings in math, but not bold in ToC

I am writing in the document type article, and I wish to have my subsection appear in bold itself, but appear normal in the ToC. I am trying to write a chemical formula, which automatically converts ...
0
votes
1answer
31 views

Avoiding sans serif characters when using \text in mathmode

I'm writing a Physics dissertation. The body text is in sans serif font. However, I'd like the font to remain serif in math mode. For example, typing $V_\text{NL}$ in mathmode gives a sans serif ...
20
votes
5answers
961 views

Using LaTeX to generate .png images of an equation

I am familiar with using LaTeX on online websites (like MathOverflow or Physicsforums). My input is rendered using MathJax. However, I do not understand the LaTeX environment in its native OS form. ...
6
votes
2answers
180 views

double sqrt (surd) symbol

I want to define a macro that prints two adjacent sqrt symbols. (Notation from Cauchy's analysis book). I get something close but the spacing is changing depending if there is a number before it. ...
2
votes
2answers
121 views

Auto-linebreaking in underset

I often find myself writing explanations to passages in (in)equality chains directly under the (in)equality signs, by putting an underset which puts a vertical line starting from the sign and going ...
2
votes
1answer
33 views

Horizontal spacing for function arguments in fractions

I'm writing with collegues on a document that heavily uses one kind of custom operator (here: a probability density function). We have not decided finally what symbols to use. Consequently, we use a ...
1
vote
2answers
68 views

Typesetting horizontal line used in logic

I am trying to typeset a set of rules of a calculs which should look as the examples in the attached pictured. In the example rules are written in classical notation of logic. I especially wonder ...
1
vote
0answers
36 views

Online math TeX files not rendering equal sign correctly [closed]

I have recently noticed that when I try to visualize a .pdf file with math through my browser (FireFox 43.0.4 on Windows XP), the equal sign in math mode is not rendered correctly. It is instead ...
3
votes
3answers
105 views

Mathematical optimization problem doesn't look good

I was trying to write an optimization problem in which "subject to" part is a vector statement. however it doesn't look good. \[ \begin{array}{clcll} \textrm{min} & \|k_i\|^2 ...
2
votes
1answer
33 views

\limits for \oiint with mathdesign

I'd like limits for \oiint shown the same way as for \iint. How can I do? \documentclass{standalone} \usepackage{mathtools} \usepackage[utopia]{mathdesign} \begin{document} ...
1
vote
1answer
35 views

Cache math content in savebox and account for math style

I am using Create a \savebox in a Group and have it available outside of group to cache some math content. However, I realized that there may be a case where the same math content needs to be cached ...
2
votes
1answer
59 views

How to “globally” reduce space in equation to get compact or narrow formed equations?

The above one is done by Word, the below equation is done by LaTeX. How can I get the compact form like Word "globally"? Here's my code: Please take a look at and give me some advice .... thank ...
2
votes
2answers
47 views

math: \textstyle won't work

I'm trying to reproduce this math thingy in LaTeX: What I've currently done is this: \documentclass[oneside,12pt,pointednumbers]{scrartcl} \usepackage[ngerman]{babel} %Deutsche Sprachunterstützung ...
1
vote
1answer
27 views

How to expand \cases in Lyx when using \sum?

I need to write a case differentiation in LyX which contains sums but here is the problem. This A=\begin{cases} -\sum_{j\text{=1}}^{N}a_{j}^{(1)} & \text{}\\ -\sum_{j\text{=1}}^{N}a_{j}^{(2)} ...
2
votes
2answers
35 views

Inserting hat and subscript

! Missing $ inserted. <inserted text> $ l.121 \^{p_{ijk}} = \^{\pi}_{ijk} = \fract{y_{ijk}}{n}
3
votes
1answer
58 views

How can I set normal text and math labels to Helvetica in a diagram?

I need to know why the characters in this diagram are not all set in the same font. I would like all the text to be set in Helvetica as "cm" is. \documentclass[margin=10pt]{standalone} ...
5
votes
3answers
87 views

Rotated math with correct font size

I would like a macro that takes a single argument, makes the argument bold, rotates it by -90 degrees around its center, and automatically scales it to the correct font size depending on where it is ...
2
votes
1answer
27 views

Macro with different font for subscript and superscript text

I need to define a macro, lets call it DifferentFontMacro, that takes a single string x as input. This string x is of the form {string1}^{string2}\_{string3}. Now, I want the output of this macro to ...
5
votes
3answers
162 views

List numbers with bullet

How can I write numbers with empty bullet on top of them for a list: I am trying to write $1^{\bullet}$. Thank you!
2
votes
2answers
39 views

Double subscript issue

How can I write (Jx)x∈A in LaTeX? (the second subscript is for parentheses.) I am trying to write like this, but it's not working: (J}_x)_{x_\in_\textit{A} Thank you!
1
vote
1answer
36 views

How to draw an arrow with letter above it to denote a path in graph? [duplicate]

I would like to draw an arrow with letter above it using latex just like below: Thank you for your help.
0
votes
1answer
43 views

! Missing } inserted. Error with newcommand

I get a Missing } error with the following \newcommands : \newcommand{\bt}[1]{$\mathbf{#1}$} \newcommand{\beq}[1]{\mathbf{#1}} \newcommand{\btF}[1]{$\mathbf{$\mathfrak{e}_{#1}$}$} ...
12
votes
4answers
270 views

How to implement \ifxcase: case equivalent of \ifx

I am looking for a case equivalent of \ifx. So, when I have nested uses of \ifx it would be cleaner to specify it in some sort of syntax similar to: \newcommand*{\ColorSymbol}[1]{% \ifxcase#1{% ...
5
votes
3answers
224 views

Cannot split equation

I do not seem to be able to split this very long equation. I've tried multline, align, dmath, split and a few other possibilities but none of them have worked; it might be a stupid mistake, but I ...
3
votes
1answer
67 views

How to test if two macros have identical definition

I want to test if two macro have identical definition. My naive attempt to use \detokenize does not seem to work in this simple case. However, I have used a similar approach before and it seems to ...
0
votes
1answer
65 views

Is this statement wrong? [closed]

\begin{equation} \label{eq3} T = (1-\alpha )I+\alpha S,  \end{equation} \begin{equation} \langle x-\mbox{ }\mbox{ }z,P_c x-P_c z\rangle \mbox{ }\ge\mbox{ } 0 \forall x\in C   ...
10
votes
2answers
198 views

{\phantom{X}} sometimes higher than X

Why is {\vphantom{X}}^2 (%8) higher than any of the other options? In particular, why is it higher than %5, %6, and %7. The behavior is normal if I use a lower-case character instead of the X. ...