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

5
votes
1answer
50 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 ...
0
votes
0answers
27 views

Missing curved bracket in math mode [on hold]

For following: \begin{frame} \frametitle{Typical Process} \begin{block}{Goal} Find $f'(1.0)$ for function $f(x)=e^{x}$. \end{block} \begin{block}{Problem} Don't (want to need to) know $f'(x)$ ...
1
vote
1answer
22 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
30 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} ...
2
votes
1answer
108 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
79 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
24 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
40 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
73 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 + ...
2
votes
5answers
155 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
28 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
66 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 ...
2
votes
0answers
54 views

How to braid a character around other characters

What I want to do is braiding one (or more) letters around one (or more) letters. It should be possible to use it in math as in text mode. This is what I have in mind: But so far nothing worked. ...
6
votes
2answers
86 views

Scaling \ddots in smallmatrix

I'm trying visualize a very large matrix. To do so, I'm trying to use \vdots and \ddots in a bsmallmatrix enviroment. It works but they do not scale properly as \cdots do. Now, in the minimal ...
1
vote
0answers
66 views

Use truetype Comic Sans font in XeTeX

I want to test truetype comic sans fonts in xetex, the following codes are modified from source of free-math-font-survey: \documentclass{article} \usepackage{amsmath,amssymb} ...
2
votes
1answer
50 views

Matrix format in Latex

How can a matrix be written in LaTeX? I have tried to use \begin{matrix} but I need to write the matrix below and I cannot understand how to fill it up exactly as this.
2
votes
2answers
91 views

Labeling equations and math mode

I have to write the equation shown below in Latex and I am using {\textbf{q}=($\mu$ $_1$ $\mu$ $_2$ ... $\mu$ $_{n-2}$ $\mu$ $_n$ )\textsuperscript{T}} and it comes OK. However, I need to ...
5
votes
0answers
46 views

Replace an upright Greek math alphabet in mtpro2

I need to replace the gamma and upright uppercase Gamma alphabets in mtpro2 with their counterparts from newtxmath in both normal and bold styles. I asked a related question, viz., How to replace ...
10
votes
1answer
332 views

Getting superscripts in math mode without the ^ character

Is there a way to get the superscript math mode behavior without using ^? By way of background: I work at a large school that has a large web site that occasionally has math content on pages. I ...
1
vote
0answers
14 views

Symbol at the end of an environment [duplicate]

I'm putting a diamond symbol at the of a remark by use of \usepackage{amsthm} ... \newenvironment{rem}{\begin{remark}}{\hfill$\diamond$\end{remark}} However when the rem environment is ...
0
votes
1answer
36 views

How to type this math symbol? [duplicate]

I've got to type this symbol in my article. I've searched through Internet but haven't seen anything about how to write it in TeX command. It is perhaps rarely seen or used. But I really need to use ...
1
vote
0answers
31 views

Latex Beamer does not compile letters in math mode [closed]

I'm using version 3.33 of the beamer class (this is the first time I'm using this version), Miktex 2.9 and Texniccenter version 2.0 Alpha 3. I have the problem that letters in math mode do not appear ...
2
votes
1answer
34 views

Change default font for math environments

In beamer, is there way to have mathematical expressions put in serif by default, while the rest of the text is in sans-serif?
2
votes
1answer
99 views

How to replace certain Greek letters in mtpro2 with their counterparts from newtxmath

I use mtpro2 package in my article for writing math and Times Roman for text. The question is how to use certain Greek letters (like \gamma which I see better in newtxmath) from newtxmath instead of ...
20
votes
2answers
933 views

$a,\ b$, and $c$ vs. $a$, $b$, and $c$

If I want to list three constants a, b, c, it appears that both lines in the following MWE produce the same visual results, at least in the MWE itself and in all the experiments I have conducted: ...
1
vote
0answers
35 views

Difference between \( \) and $ $ [duplicate]

I read discussion about diferences between \[ \] and $$ $$; but nothing or very little about \( \) and $ $. There are a differences?
14
votes
2answers
168 views

Kerning and ligatures in upright math font with unicode-math

How can I get the kerning and ligatures of text mode in an upright math font with the unicode-math package loaded? 1. Without unicode-math Code: \documentclass{article} \begin{document} ...
0
votes
1answer
80 views

How to represent the following math in LaTeX

I want to know how to express the following (complicated) math equations in LaTeX.
0
votes
0answers
20 views

' and ^t to the left of a letter [duplicate]

There are times where I want, say, a superscript $t$ to the left of another letter to denote, say, the transpose of a matrix. Or, I might want to decorate a letter on the left with a prime, $'$, ...
0
votes
0answers
29 views

Symbol for None/Null/undefined variables that are not sets

I am trying to describe is the "Null" or "None" value commonly found in programming languages. Is there a symbol that is commonly used for this, such as a Null/None symbol? For space reasons I'd ...
0
votes
1answer
77 views

Using “align” instead of “array” in an array of equations [duplicate]

I want to produce big parenthesis like this: Left brace including several lines in eqnarray How do I do this with align instead of array? I do not want to use eqnarray though. Thanks.
6
votes
2answers
177 views

Decimal point in sans serif font

For some reason, when I use \mathsf{}, the decimal point doesn't seem to be affected: \documentclass{article} \begin{document} \textsf{This is an example.} $ \mathsf{\frac{1}{2} = 0.5} $ The rest of ...
2
votes
1answer
49 views

Switch between sans and sans-serif math with MyriadPro and MinionPro

I have a document using MinionPro as serif and MyriadPro as sans-serif font families. Math is set by default with the serif font but for captions I like to switch to the sans-serif font. A minimal ...
10
votes
1answer
188 views

how to display upright letters in math mode without manually creating space?

\documentclass[11pt,a4paper]{article} \title{Title} \author{Author} \begin{document} \maketitle $\{ n \mid n\ \mbox{is\ even} \}$ \end{document} Since it is a relatively rare occasion for me to ...
0
votes
0answers
29 views

Typesetting the arc symbol over three letters [duplicate]

How do I put the arc symbol over three letters to indicate that the three letters together represent an angle? For example, the display from the following code gives five points - A, B, C, D, and E ...
6
votes
3answers
203 views

Align square root symbols in equation

I have the following equation in my tex document: \documentclass{article} \begin{document} \begin{equation} x_{ij} = \frac{ \sum_{t}{e_i(t)e_j(t)} } { ...
3
votes
3answers
68 views

Adjusting the description about an equation in Latex

I have to write the "Where" text about an equation as shown the given picture. The "Where" text appears to the left side which seems a little awkward as per the standards. Please suggest me, how can I ...
2
votes
1answer
34 views

babel's active " making problems in math mode

MWE \documentclass[norsk]{beamer} \usepackage[utf8]{inputenc} \usepackage{babel} \usetheme{Warsaw} \begin{document} \begin{frame} ``forkaster hypotesen om at $P(\text{"mynt"})=0,5$''. \end{frame} ...
0
votes
0answers
24 views

Beamer: control thickness of roman text in math environment (and vice versa)

Problem: I've written the following expression with beamer \begin{exe} \ex $\llbracket \phi\wedge\psi \rrbracket^{\mathcal{M},w,g} = \textsc{alt} \left\{ \alpha\in W ...
3
votes
3answers
94 views

Is there a cleaner way to get the proper spacing in this alignedat?

Here's an excerpt from an equation that I'm typesetting. The output is correct and looks how I want it to look. Here's the MWE that generates this output: \documentclass{article} ...
1
vote
1answer
60 views

Changing middle line to some other symbol. Latex Table

\begin{tabular}{|c|c|} \hline $ \langle R_1.Y \rangle$ & $ \langle \dot{-}R_2.X, \dot{-}R_2.X \rangle$\\ \hline $\langle a \rangle$ & \\ \hline \hline $\langle b ...
13
votes
4answers
753 views

How do I create a bordered Hessian matrix in LaTeX?

I am supposed to use the following matrix in a math problem: But based on my experience with LaTeX's tables and matrices, I know this is beyond me. Can anyone tell me how to make the following ...
7
votes
1answer
81 views

Change font for math functions (sin, log, etc.) in ConTeXt MkIV?

When I’m using the Euler font for math, I notice that since Euler is upright, the font for math functions like sin, cos, and log is identical to variables. Is there a way to change the font for math ...
4
votes
1answer
46 views

Introducing new version of a math symbol from another font

I'm trying to use a "hack" to get around the fact that \mathsf doesn't apply to lower-case Greek letters in math mode, by using the CM Bright font instead. What I'd like to have is a command, for ...
2
votes
1answer
43 views

How do I reduce the space between operators in math mode? [duplicate]

I have these operators +=, -= etc. in Math mode. LaTeX introduces space around single character operators. So I get + = and - = instead. However, in my case I want no space between the + and the =, ...
2
votes
1answer
33 views

newtxmath and breqn problem: Viewing capital Greek math incorrectly

I am writing a document with too many long equations and I adopted the use of breqn package for its simplicity in writing such long equations when alignment is not a big restriction. The problem is ...
4
votes
1answer
64 views

Symbols for left and right limits

I am using lualatex, are there symbols for left and right limits, like small "-" and "+" to put above the numbers? For now I use \documentclass[a4paper,12pt]{book} \usepackage{fontspec} ...
3
votes
2answers
79 views

Dagger symbol in math mode in ConTeXt with Euler font?

I followed this answer to use the Neo Euler font in math mode. I found that the dagger symbol (†) is missing in Euler. Is there a way to use the dagger symbol from the text mode font in math mode? ...
5
votes
2answers
126 views

Using macro with optional argument inside macro with optional argument

I am trying to define a macro that has an optional argument that can take a macro with an optional argument as an argument. A minimal example to explain the problem more clearly: ...
3
votes
0answers
49 views

How to restrict TexStudio macro script to work only in text/normal mode?

I understand that you can write (?highlighted-as:numbers,math-delimiter,math-keyword) before your trigger and TexStudio will execute the macro only in Math mode. I already tested that in "scripts ...