Tagged Questions

{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
1answer
23 views

Missing $ error with matrix

The code below produces the mistake in the picture. Any idea why? % !TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
1answer
34 views

How to prevent an equation from flowing over the end of line?

One of my equations, which is not particularly long, happened to be in the end of a line. LaTeX put it in such a way that it uglily flows over the end of the line. Is there an automatic way to fix it, ...
2
votes
2answers
19 views

Controlling vertical space in displayed math mode

Apparently \hspace works inside displayed math mode to move formulas horizontally, but it seems that \vspace is ignored when I want to moved them vertically. I would like to control the vertical ...
3
votes
1answer
19 views

Subequation labeling inside an “aligned” environment

I can align several equations inside a single brace with the following code. \begin{equation} \left\lbrace \begin{aligned} k \cdot E &= 0 \\ k \cdot B &= 0 ...
1
vote
1answer
48 views

Default spaces between letters in math-mode

Question for TeX-gurus. Sometimes I find that the default spaces between letters in the math TeX-mode is to short. Say, I would prefer to have slightly increased spaces between abc in $abc$. On the ...
0
votes
1answer
47 views

Plus-minus sign in the continued fraction

How to write the plus/minus signs aligned with the bottom of the fraction. I can write the rest of the part of equation (1.1) and (1.2). but can cot write the plus/minus sign at the bottom.
1
vote
1answer
31 views

Problem with tocloft, minitoc and bold math mode

To ensure equations in headings are written bold as well I have added the following command to my document: \makeatletter \g@addto@macro\bfseries{\boldmath} \makeatother This works very well until ...
2
votes
4answers
102 views

Line up equations

I want to line up my two equations by the two first equal signals so I wrote this \begin{align} \left\ \begin{matrix} \Delta l &= \Delta l_1 + \Delta l_2\\ N &= ...
2
votes
2answers
85 views

Enforce continuous math environment when concatenating multiple math environments

I have a non-standard setup for my symbols. Instead of defining them explicitly in every equation, e.g.: \begin{equation} a_i={\bf b}^{(est)}_i \cdot {\bf c}^{(obs)}_i \end{equation} I define ...
0
votes
0answers
30 views

Times new roman in math mode, except for greek letters

I'm using \usepackage{times} to change my font to Times New Roman, but I noticed that some math commands like $\max$ still show up in Computer Modern. So I used \usepackage{mathptmx} to fix this, and ...
1
vote
1answer
240 views

what is the latex command for this notation

could anyone tell me what will be the latex command for this? I am very much confused, I am not even comfortable in matrix writing while typing latex I always copy paste the matrix command to write a ...
3
votes
2answers
96 views

How do I vertical align text?

This is question is related to an extension of an earlier question: How do I display pi in LaTeX like Don? I want to display using LaTeX, the HTML+CSS equivalent of .pi sup { vertical-align: ...
4
votes
2answers
29 views

Align baselines of underset elements in display math equation

I am trying to create a display equation showing the coefficients of an example polynomial for use in the quadratic formula. Basically, I want each coefficient of the polynomial to have an arrow ...
0
votes
0answers
39 views

incompatibility of siunitx with \mathcal and \mathbf [closed]

Not sure why, but siunitx produces 'LaTeX error: too many math alphabets used in version normal'. Past questions on either font don't seem to allude to this incompatibility. Grateful for any help.
0
votes
1answer
37 views

What is \( used for? [duplicate]

I have seen the following syntax in a LaTeX example : \( Inline math formula \) What is the difference between those delimiters and $ ?
8
votes
1answer
95 views

Why do I need an \hbox inside \vcenter to make it work?

I want to vertically center an object in an equation. I thought: "Ok, \vcenter is the way to go." But I don't understand (not even from the TeX primitives reference), why I need an \hbox inside my ...
6
votes
4answers
392 views

Arrows between arrows

Here is a fragment from MacLane's classic book "Categories for the working mathematician": Here is another one that's a bit more complicated: Is there a package that allows to (hopefully easily) ...
2
votes
1answer
85 views

How to write letters with a circumflex? [duplicate]

I want to write a theorem with letter G, which has over ^ it. I tried $G^{\^}$, but that doesn't work.
0
votes
0answers
15 views

Undefined control sequence for $ \left\{ f\in \mathbb{R} :f\neq 0\right\}$ [duplicate]

Undefined control sequence for $ \left\{ f\in \mathbb{R} :f\neq 0\right\}$ and for $\left\{ x\in \mathbb{R} :\neq -1\right\}$.
3
votes
2answers
75 views

how to give some text an equation number

I want to be able to write the following in LaTeX: We make the further assumption that \begin{equation} \label{eqn:assumption} There is a bounded linear operator $B:X\to X^*$ such that ...
-1
votes
2answers
78 views

Confusing missing $ [closed]

Can anyone help with this. I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\ The rest of the text works fine and there are ...
3
votes
1answer
59 views

how to typeset empty inner product

I want to typeset the following in TeX (without the arguments). < , > I know that I can accomplish this by doing \langle , \rangle As an example I want to write something like the follwing: ...
0
votes
0answers
35 views

Help me find limit of sequence [closed]

Given sequence $(x_n)$ defined by $\begin{cases} x_1 = 1, \\ x_{n+1} = \sin (x_n) \end{cases}$ prove that $ lim_{n\to\infty} (\sqrt{n} x_n) = \sqrt{3}$.
0
votes
0answers
24 views

How to use function \newcommand to turn off math mode? [duplicate]

I have a problem. I defined new commands: \newcommand\be{\begin{equation}} \newcommand\ee{\end{equation}}, which works perfectly for math mode. Then I tried with more advanced formulas: ...
0
votes
1answer
29 views

How to use the displaymath environment within a table?

I am trying to use the cases construct within a table. I tried to follow this example. When I copy paste the entire example, it compiles without an error. But when I try to reproduce it, I get ...
44
votes
4answers
2k views

How do I display pi in LaTeX like Don?

Way back in 1979, Donald Knuth, tried to give the feeling that π is irrational using the idea of infinite sequence of smaller and smaller font sizes like what I have tried to do here using HTML and ...
1
vote
2answers
47 views

LaTeX question for \overrightarrow

I'm new to LaTeX and I have a question about the LaTeX code (which I have to do for my essay), for the inner product of vectors on an exponential*,how can I fix the problem that the two vektors k and ...
0
votes
0answers
34 views

Commands for the style/font of numbers in LaTex

In LaTex Letters have different fonts by commands like \mathcal, \mathbb etc.. However, those commands cannot apply to numbers. Are there some styles or fonts for numbers?
0
votes
1answer
42 views

Cant get theorems in an appendix

I get the error \begin{document} ended by \end{theorem}. \end{theorem} and Environment theorem undefined. \begin{theorem} when trying to compile this latex document. Here is the problematic ...
1
vote
0answers
51 views

Cryptic Errors. Probably a quick fix? ( noob )

Completely confused. Tried to run latex script from yesterday on a different computer. Doesn't work now. here are my errors: \AtBegShi@Output ...ipout \box \AtBeginShipoutBox ...
0
votes
1answer
46 views

Several lines in equation

I would like to get in LaTeX what the following code produces on Math.SE: $$\pi(X,Y)\to HoM(X,Y)\\\ [f]\mapsto[RQf]$$ And if I wanted to have an equation number to the right of the two lines, ...
3
votes
1answer
43 views

Formatting an equation environment to fit within the margins

\mathcal{P}^s_{\delta}(F) = sup \Bigg\{ \sum_{i}|B_i|^s : \{B_i\} \text{is a collection of disjoint balls of radii at most $\delta$ with centres in F} \Bigg\} This piece of text wont stay in the ...
5
votes
1answer
91 views

Show integration limits above & below the integral

Well considering this code, the "E" is shown after the integral: \begin{equation} m = \iiint_E \rho \ \mathrm{d}V \end{equation} The limit is shown slightly behind the number, how can I place it in ...
5
votes
1answer
53 views

Poor kerning with adjacent uppercase variables in math mode

I want to lay out a sequence of adjacent variables in math-mode with reasonable spacing between the letters. But LaTeX produces output which (to me) is "obviously wrong": \documentclass{article} ...
2
votes
0answers
25 views

Bold or verb text in mathpar

I'm writing a derivation tree using mathpar but I'm unsure as to how to markup some words. The derivation tree is for a small programming language, so the premise and/or conclusion contain words I ...
4
votes
2answers
30 views

Latex math: indexes not allowed in small matrix

I am using the small matrix in order to represent a matrix in a text, I defined myself a command like: \newcommand{\maText}[2]{\bigl(\begin{smallmatrix}#1\\#2\end{smallmatrix}\bigr)} And it works ...
0
votes
2answers
84 views

I don't know how to remove a strange symbol that appears in front of my equation

In the third line of my equation, a strange Greek letter appears and I would like to remove it. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} ...
0
votes
0answers
55 views

Wolfram Mathematica Functions in Lyx

Can I use all functions of mathematica in Lyx? I want to use functions like Solve[]
6
votes
2answers
59 views

tcolorbox equation and fleqn: not vertically centered

Using tcolorbox with ams equation, there is sometimes additional leading space before the equation comes: \documentclass[fleqn]{article} \usepackage[many]{tcolorbox} \usepackage{amsmath} ...
2
votes
1answer
40 views

Use of the dot in math-mode

I was trying to typesset piecewise functions earlier and I had a problem typesseting only the left brace and not the right as it couldn't accept only \left\{. After that I tried adding \right but ...
5
votes
2answers
77 views

How to correctly typeset subscripts after \varphi?

I'm using $\Delta\varphi_R$ in several locations in my document, but the subscript has almost the same size and vertical position of the variable. Is there a way to make it look more like a subscript? ...
5
votes
2answers
939 views

What is this symbol consisting of a horizontal line crossed by a rotated vertial line?

I'm looking at the following symbol, between W and X, in an old PDF file: and would like to use it in Math mode in my document, but can't figure it out which symbol it is. Is it a standard Math ...
2
votes
1answer
28 views

Calligraphic font for Bitstream font and inter-package error

I try to load and use a calligraphic font but it seems that the combination of siunitx, upgreek and bm causes the error, but for some reasons the error-message ('Too many math alphabets used in ...
2
votes
1answer
116 views

pseudocode - whats wrong?

Its driving me crazy now!!! I want it as shown in image. But getting error! Whats wrong here: \begin{equation} \label{eq4} \textbf{Y} = \left\{\begin{array}{cl} YES & ...
1
vote
0answers
11 views

Multiline equations using IEEEtrantools when also using \left \lbrack and \left \{ [duplicate]

I have a set of code in which I have \begin{IEEEeqnarray*}{rCl} f(y,x) & = & \frac{1}{(2\pi)\left | \Sigma_{xx} \right |^{\frac{1}{2} \cdot \left | (\Sigma_{yy} - ...
1
vote
3answers
44 views

Aligning definition of a function that maps into a function space

I'm writing a proof that the dual of l^p is l^q, and in that process, I define a function from l^q to (l^p)*. My current function definition looks like this: \begin{align*} ...
5
votes
1answer
58 views

Vertically align two horizontally-parallel equations

I am attempting to vertically align two equations at multiple points and I have come up with the following: \begin{array}{rlclcl} \eta(n)&\equiv&\frac{\Lambda(n)}{\log ...
2
votes
1answer
32 views

\hfil in math mode [duplicate]

\documentclass[a4paper]{report} \begin{document} \[\phantom{\ast}\hfil a\hfil\ast\] As you can see, the \verb"\hfil"s get ignored… or at least the one on the right does. But if I swap \verb"\phantom" ...
2
votes
0answers
38 views

Centering \dot in a symbol macro (\listofsymbol)

I was trying to achieve the results of get a variable listed in listofsymbol's generated list, when called with a -dot suffix. If was trying also to find a way to center dot in variables with ...
3
votes
1answer
70 views

Multicolumn vector

How can I create a vector like this one? It is similar to this question, but with additional columns.