{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
0answers
86 views

sqrt upright style

I need to change the style of sqrt and should make it a little bit narrower than the standard. second picture shows what I would like to have. any help is appreciated.
0
votes
1answer
44 views

formula with numerator and denominator of a fraction in display mode [duplicate]

I have the following formula and I want the nominator and the denominator to appear in display style. I use \everymath{\displaystyle} so I don't understand why they are not in display mode. How can I ...
11
votes
2answers
278 views

big formula with description

It is possible to make the following thing, helping you Latex...?
4
votes
2answers
80 views

Conflict between animate package and math delimiters?

I've encountered an unusual problem with the animate package and the use of math delimiters, like \left\{. When compiling the MWE, I get the error Missing delimiter (. inserted). on the math line. ...
6
votes
2answers
78 views

Using \mathpalette with macros that take more arguments

As I understand it, \mathpalette takes two arguments; the first must be a macro A that itself takes two arguments. A will be passed as #1 commands to reproduce the math enviroment at the location ...
0
votes
0answers
44 views

Why my lyx math equations are algned to left?

I am using a lyx template to write my thesis, I found that the equation are placed on the left of my page. I do not have "fleqn" option shown in Document->Settings->Custom section. How can I align ...
1
vote
1answer
64 views

Center-justifying first part of multline

Consider the following MWE. With my document setup, the equation has to be broken into two lines. Luckily I can get the entire matrix on one line, so I can break the equation after the equals sign. By ...
3
votes
2answers
111 views

Typesetting ST-traces in LaTeX

An ST-trace is a string with additional back-reference arc or arrows which may cross. An example may be seen at page 13 of http://kilby.stanford.edu/~rvg/pub/STbisimulation.pdf So, basically, this ...
3
votes
1answer
50 views

Math w/italics in normal context, roman when in italic context (ie, caption)

I have not found this question asked previously. I am fine with math using italics for variables when the math appears in a normal context. But our figure captions are in italics, and when math is ...
3
votes
4answers
77 views

How can I change the font of all equations?

I'd like to change my default font style in all equations of one document, not just single equation. I guess I am using \usepackage[utf8]{inputenc} and \usepackage{amsmath}, which may be related to ...
1
vote
1answer
35 views

Upright text in math mode for chemical elements [duplicate]

I have a line as follows: \documentclass[a4paper]{article} \usepackage{siunitx} \begin{document} {$d_{(O_{1}-Zn/Mg)}(\SI{}{\angstrom})$ \end{document} showing: I don't want the letters to be ...
3
votes
1answer
51 views

How to typeset times in regular text

How should I enter in a time of day in latex in order to have it typeset properly, if I am using the amsmath package? I am using pdflatex. say I want to write "12:00". In math mode, this gives a ...
10
votes
4answers
372 views

Changing the behavior of $$ but not of $

I am trying to set things up so that occurrences of $$ are replaced by \] if in math mode, \[ otherwise. My strategy is to make $ active and have it behave differently depending on whether the ...
0
votes
0answers
29 views

Font-independent convention for multi-letter variables in math mode

For several years now, I have always used \mathit to display variables that have more than one letter, to ensure proper kerning: \fbox{$foo = f(jazz)$} vs. \fbox{$\mathit{foo} = f(\mathit{jazz})$} ...
1
vote
1answer
73 views

\texorpdfstring for a full book

I am currently writing a thesis which is full of math equations and I always get the warning Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): I have read that the ...
1
vote
1answer
33 views

Resize characters in figure caption

I frequently use \scalebox from the graphics package in math-environment as $x^{ \scalebox{0.55}{(n)} }_{i}$ which works fine. However, I am not able to use the same sequence in a figure caption: ...
11
votes
2answers
194 views

How do I get filled black < and \leq?

I want to define an order relation where I to distinguish want to fill in with black so that I have a black lying triangle in the first case and a black lying triangle with the suitable line below as ...
1
vote
1answer
36 views

How can I align horizontally matrices of different dimensions?

I'm wondering how can I align two different matrices horizontally. They are: [-1 0 +1] And: [-1 0 +1].T This is my code: \begin{equation} \begin{bmatrix} -1 & 0 & -1 \end{bmatrix} ...
6
votes
4answers
166 views

Line breaks in part of the equation in math mode - how to?

Does anybody know how to do this: Thank you!
5
votes
5answers
157 views

add (a little bit long) comment on the equal sign?

There are posts here explained how to Add a comment on top of "equal" and "approximate" symbols , the idea is to use \stackrel{text}{=}, however, if the text is a bit long, for ...
1
vote
0answers
44 views

no new lines in lyx output from the latex code insertion

\begin{widetext} \begin{displaymath} a+b=c;\\ d+e = f;\\ e+m = n;\\ \end{displaymath} \end{widetext} I am using the above code as an inserted Tex Code in Lyx ...
4
votes
3answers
238 views

How to write two equations as part of one equation?

\begin{equation} \begin{align} \mathbf{x_{t}=f_{t}(x_{t-1},u_{t})}\\ \mathbf{y_{t}=g_{t}(x_{t},v_{t})} \label{eq:state-space&obs-equ} \end{align} \end{equation} I want that y(t) equation should ...
2
votes
0answers
39 views

\max with two arguments below eachother [duplicate]

I am trying to use \max with two arguments like so: \max_{0 \leq k \leq n, 0 \leq l \leq n} But I want to have the 0 \leq l \leq n below the 0 \leq k \leq n not next to it. How do I do this?
6
votes
2answers
54 views

Two vertical lines with expressions spanning a few rows between them (math)

I'm pretty new to Latex, learning it while doing. I mainly use doc and latex wiki, but there are occasions when I can't find something. I am doing some math. I need to have some math formulas followed ...
5
votes
1answer
120 views

why pdf file is empty? Latex generates no output, no error

one of the auto-generated latex code, for some reason, generates no output in pdf. I made a MWE that has this latex code in it, all inside \[....\], and then run pdflatex but the file is empty. ...
0
votes
0answers
31 views

Force \displaystyle throughout document (including subscripts and fractions)

How do I force \displaystyle to all instances inside fractions, superscripts, and subscripts throughout the entire document (including intext)? Basically I am looking for something that effects ...
3
votes
1answer
49 views

Math mode space after id

I need to write idb in math mode. But a space appears after id and I get id b. How can I remove this space? Code example: $idb$
3
votes
2answers
117 views

Using \[ \] in text

I am currently writing out an introduction to LaTeX file for some coworkers. How would I insert \[ \] as regular text and not starting math mode? FYI: The reason why I'm asking this is because I plan ...
1
vote
0answers
25 views

Macro for textinput without any formatting [duplicate]

Is there a LaTeX macro that just compiles whatever I type into it? Something like \text or \textnormal. I want to display a LaTeX code inline without any formatting, but don't want to escape ...
2
votes
2answers
67 views

Latex \kbordermatrix with row labels on the right side

I'm needing to create a matrix enclosed with brackets [], not parentheses (), with row labels on right side. Is this possible using \kbordermatrix? For instance, in the following: ...
1
vote
0answers
31 views

How do you display words, not variables, in equations in LaTeX? [duplicate]

In particular, I need to display the following: P(success) = size of successful region/size of possible region But with a nice divisor line for the fraction. If I just enter this in typical fashion ...
2
votes
0answers
46 views

How to write norm symbol with three line? [duplicate]

I want to have a norm symbol with three line in my equation such as |||x||| but with equal distances.
3
votes
1answer
67 views

Codename for “kp serif” in TeX

mainly i'm aiming at doing the same thing as discussed in this question (How To Change Math Font Only?); except i want to use the "km serif" font and no matter what i search for on the web, i don't ...
3
votes
2answers
141 views

Macro for moving hat symbol up

I use mathpazo font package and I think the hat symbol is too low. Can I make a macro to change behavior of all my hats? This question has a good example, but I don't want to have to retype all of ...
2
votes
4answers
111 views

Alignment in a piecewise function

I would like to have the following two equalities displayed with the = aligned. I use the following code. The = are not aligned, and 2.5pt is typeset before the = in each line! Also, there is an ...
6
votes
3answers
85 views

Is there any global settings to add \limits to evey \sum, \bigcup etc?

I'd like to put the superscripts and the subscripts always above or below the symbols like \sum,\bigcup,\inf etc, even in the inline mode, but I don't want to add \limits everytime. I tried ...
2
votes
0answers
24 views

\dotsc or \dots in this case? [duplicate]

I know that we should use \dotsc with a comma and \dots if there is no comma. But what if I have a comma on the right side and no comma on the left side, for example in Pr[X_i | X_{i+1}, ... ] ...
2
votes
2answers
75 views

overline over no text

Suppose I want to have the function $\bar: A \to B$ where instead of $\bar$ it's a longer bar. What is the proper way to do this? Note that the bar here is floating on top of no text. It's just ...
8
votes
4answers
129 views

How to reduce the space between the hat of overset and the symbol?

I would like to place the \rightharpoonup on r and get them closer. I had tried the \overset and \Rvector package. But the spacing of the former is too much. And the latter performs bad when placing ...
5
votes
2answers
97 views

How can I DeclareMathOperator* with spacing after it, preserving the alignment?

In the context of optimization problems, I'm using \usepackage{amsmath} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} to declare some operators ...
4
votes
1answer
48 views

Arbitrary positioning in math mode without size restriction

In the MWE below, are all general methods, of achieving arbitrarily shifting of symbols up or down or left or right in math mode, represented? If yes, that is the answer. If no, what good methods are ...
1
vote
0answers
91 views

Alternative to \rm

Is there any alternative latex syntax to the defunct \rm? I am using LaTeX2e and so I have a long list of warnings whenever I execute my .tex document.
5
votes
1answer
95 views

Why can't split with curly-brace be inside align but it can be inside gather?

The following code snippet will guide you through the issue chronologically. \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{mathtools} \begin{document} \section*{gather+aligned} ...
3
votes
2answers
65 views

Inserting math equation in text causes '?' to show up and for escaped '/' to not show!

I admit I'm new to LaTeX yet I'm writing my thesis using it. I'm having a hard time trouble shooting as the compiler doesn't give me any meaningful errors which leads me to believe what I'm doing is ...
2
votes
1answer
71 views

How to properly format a proof/explanation with multiple points of alignment?

This answered question addresses how to properly align/format a proof, allowing one to add text commentary alongside equations without ruining the alignment of the equations; however, it only seems ...
0
votes
1answer
38 views

Inequality operators of both directions aligned vertically in one expression? [duplicate]

I would like to put inequality operators of both directions, i.e. < and >, aligned vertically in one expression. Can anyone help?
0
votes
2answers
43 views

Alignment in aligned and aligned[t] environments (2)

The following code almost gives me the alignment that I want. You will see that in the last five lines of the displayed equations, most of the expressions are ridiculously shifted rightward. I want ...
6
votes
2answers
48 views

What Pascal procedure inserts \mathon and \mathoff?

TeX surrounds inline math formulae with \mathon and \mathoff, which appear to be nodes. For instance, running TeX on $ $\showlists\bye gives ### horizontal mode entered at line 0 \hbox(0.0+0.0)x20.0 ...
1
vote
0answers
38 views

Knitr and numbers

I return to a question, which is few months old and then maybe not yet the best practice around. I use the siunitx package in my documents along with knitr to compile my R chunks. As far as I ...
2
votes
2answers
47 views

set section environment to be math only, amsmath's begin{gather}

I want to create a small formulary, and for that virtually every line has to be math formulas. I use the gather-environment from the package amsmath, for example: ...