Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [math-mode]

{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}.

1
vote
0answers
47 views

Math symbols insertion in AUCTeX

I've been facing some trouble with math symbol insertion in AUCTeX and I'm probably missing something from the available structure and options. But as I'm struggling for a while, I might as well ask. ...
3
votes
1answer
51 views

Error when using breqn and nowidow?

I've been using the nowidow package with the option all loaded like so \usepackage[all]{nowidow} From the package documentation it says "The all option sets the widow and orphan penalties for the ...
1
vote
2answers
30 views

Difficulties in using `gathered`

\documentclass{article} \usepackage{mathtools} \usepackage{mathtools, nccmath} \usepackage{amssymb, amsthm, mathrsfs} \begin{document} We say that a $d$-tuple $\mathbf{T}\in \mathcal{B}(\mathcal{H})...
1
vote
1answer
57 views

Collection of redefined commands

I find myself creating new commands for latex commands that I commonly use in order to cut down on the cognitive load of what I am writing. An example would be writing matrices, instead of writing ...
4
votes
4answers
148 views

Putting Faraday's law formula in LaTeX

Can anyone tell me how to put the formula for faraday's law in LaTeX? This is the formula I want emf=(Delta.Phi)/(Delta.t) thanks
0
votes
0answers
51 views

Math formula deleted: Insufficient extension fonts error

I'm using this simplified friggeri CV in which a the author define a new environnment in a .cls file as follows : \newenvironment{entrylist}{% \...
0
votes
0answers
29 views

Typesetting superscripts and subscripts with system fonts in Xelatex

My document is required to be typeset in a font called DINPro. I need to use both subscripts and superscripts within the text. I would like to use \textsubscript and \textsuperscript, howerver \...
0
votes
0answers
9 views

Array inside an equation: open bracket in a line and close in another line [duplicate]

This code: \documentclass[12pt]{article} \begin{document} \begin{equation}\label{eq:test} \begin{array}{l} \left[ \displaystyle \frac{e^{ix}}{2} = \\ = \sin (x) + \cos (x) \right] \end{array} \end{...
0
votes
0answers
14 views

Default state space representation matrix in latex [duplicate]

In system theory it is very common to represent a system in state space form, which consists of 4 matrices, A, B, C and D. The professors have a nice way of representing these in a general form. Now I ...
0
votes
1answer
62 views

Math mode character spacing

I am writing a solution to a geometry exercise. I use $AB$ for the length of the line, or arc, from A to B. This results in a larger than desired spacing between the two characters. I can 'fix' it ...
7
votes
1answer
155 views

How to write NAND resp. NOR operators?

I'm trying to define Boolean operators NAND and NOR, using a tilde that overlaps either a \wedge or a \vee. I can't find these in the comprehensive list of LaTeX symbols. I tried using \llap, but I'm ...
4
votes
2answers
236 views

Stretching a curly bracket to get better vertical symmetry

As can be seen in the following MWE, \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \left\{ \begin{aligned} a&=\frac{b}{c} \\ a&=e ...
2
votes
2answers
126 views

Writing mathematical symbol with bold

I want to write \gamma with bold, for this I use \mathbf{\gamma} but the result that I have is not with bold. How can I fix this problem. someone can help me? Thank you in advance. \documentclass[...
3
votes
1answer
48 views

Size of large symbols with sansmathfonts

I'm having some issues with the sansmathfonts large operators. The code \documentclass{article} % \usepackage{amsmath} % \usepackage{sansmathfonts} \begin{document} abc $\displaystyle\int$ \...
104
votes
2answers
211k views

What is the difference between \dfrac and \frac?

The title says it all, both \dfrac{a}{b} and \frac{a}{b} make fractions, so what is the difference between the two?
0
votes
0answers
17 views

How to redefine a csc function to display cosec? [duplicate]

I need help to define the csc function to display as cosec. I've tried \textrm{cosec} \theta, but this does not give the same output as \sin \theta, because the space between the theta and the ...
0
votes
1answer
42 views

How to turn vector

\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.5cm,y=0.5cm] \clip(-0.07329043126526,-0.796492988559363) rectangle (9.967791037095613,9.97807138066155); \draw [->,line width=...
1
vote
1answer
42 views

Difference in horizontal space taken by align* and aligned

\begin{align} A && B \end{align} and \[\begin{aligned} A && B \end{aligned}\] result in different alignments. align seems to use all available space to split two columns, but aligned ...
121
votes
2answers
160k views

How to color math symbols?

One can use the command such as \textcolor[rgb]{1.00,0.00,0.00}{boundary} to color the word "boundary" in a document. Here is my question: How to color the math symbols in $$? For example, can one ...
5
votes
2answers
4k views

How to achieve two levels of indentation inside align environment?

I'm trying to indent an equation further away - basically to achieve two levels of indentation. Let me explain a little bit more... I have the following: \documentclass{article} \usepackage{...
1
vote
1answer
29 views

Possible to use$ \C$ for complex numbers with T2A encoding?

In using pdflatex on a document in English that will include some Cyrillic text. For math, I'd like to use $\C$ for the set of complex numbers. But the T2A encoding needed for babel with its russian ...
1
vote
1answer
35 views

Add vertical braces to lists

I want to add vertical braces to a list of group axioms, in order to determine which of the following axioms need to hold for monoids, groups and abelian groups. I'm not really sure how to achieve ...
0
votes
1answer
32 views

Aligning with more than one & [duplicate]

I want to align my equations in such a way that every + and - are written in one row. I want to do it like this: \begin{align*} &+ \left( \gamma^{r}_{y} \gammabar^{v}_{u} \gammabar^{x}_{s} &...
2
votes
2answers
33 views

Appearance of subequations

When I do \documentclass[12pt]{article} \usepackage{amsmath} \begin{document}\setcounter{equation}{10} \begin{subequations} \begin{align} a = b,\\ a = c,\\ a = d,\\ a = e. \end{align} \end{...
3
votes
1answer
94 views

Create a claim environment for nested claims inside theorem proofs using thmtools

Consider the following declarations: \usepackage{amsmath, amsthm, amssymb, thmtools} \declaretheorem[numberwithin = section]{theorem} \declaretheorem[sibling = theorem, style = definition]{...
1
vote
1answer
476 views

How do I use Arial in math mode alongside the default font settings?

I want some symbols/text in math mode to be Arial? This cannot ve done by changing the settings for various kinds of text in math mode like the default italic text or the default bold text. Put ...
0
votes
0answers
32 views

Glossaries list of symbols unit column/indexing issue

My report features Abbreviations and List of symbols in the following format: The list of symbols has been customized to have the unit column instead of the index column. When I compile everything ...
2
votes
1answer
48 views
4
votes
4answers
38 views

How to overline only part of the text in subscript format

I can format h_y using the command $\overline{h_y}$, but I want to type h_y,max where y,max is subscript but the horizontal line of overline only cover h_y. Thank you
1
vote
2answers
47 views

Creating mathXxxx type macros for Unicode private use area

I have a custom font with a dozen or so scripts 0-9,A-Z,a-z in the private use area. I need to create macros like symcal() and mathcal() for those scripts. I have something that works -- but it is ...
1
vote
1answer
115 views

How to convert a C ++ code to the math notation in Latex

I have a question about whether I'm doing it right. I have a C ++ code that checks if a certain item is in the radius of another item, whenever a counter is incremented. This counter is used for a ...
0
votes
2answers
34 views

{flalign} not working with function and summations

I'm a newcomer to Latex and have been relying on lots of examples to learn how to format a math proof. I have been really stuck on this particular part of the proof and was unable to find resources or ...
3
votes
1answer
28 views

Latex Compile error with mathematical mode

I'm trying to have the following output Using the following latex syntax NS = \left\{t\middle|t\in{\rm tw}_{i\ }:\ t.s\ =\ -1\right\} but there is an error any help ?!
0
votes
1answer
20 views

Upper and lower indices postponed

I have a question regarding upper and lower indices. If I write something like $A = \hat{\tau}^1_2$ the upper and lower indices are postponed in such a way that the lower index is a bit more left ...
2
votes
2answers
29 views

How to use \sexpr{} with variable that has “_” in it (i.e. avoid “math mode” error)

I am using knitr in R to write up a document in LaTex. Below a certain of code, I would like to refer to a variable I used in R. <<chunk>> var <- "ENSEMBL_MART_ENSEMBL" @ In this ...
85
votes
2answers
273k views

Displaying the binomial coefficient symbol in math mode

The problem is caused by the symbol of binomial coefficient (symbol of Newton), often used in math: {N}\choose{k} In my document I have formula: $$ P(A) = \sum P(\{ (e_1,...,e_N) \}) = {N}\choose{...
2
votes
1answer
43 views

SVG with TeX mathematics causing unnecessary whitespace

I am trying to include a svg file using the \includesvg command. The svg file looks like this when opened in Illustrator as it includes some math mode text: Now, I would like the image to use the ...
2
votes
2answers
33k 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
16
votes
2answers
801 views

Fixing mathit spacing with unicode-math

I am using lhs2TeX to convert code into LaTeX. It typesets code into math mode. As I am also writing math formulas in the same document, I use unicode-math to switch between different math mode fonts ...
2
votes
2answers
1k views

Make non-operator version of symbol \equiv

In my thesis, I am using the \equiv symbol as a variable in several places. For this use, the operator spacing is actually unwanted. What is a good way of defining a second command giving the same ...
70
votes
1answer
8k views

Which OpenType Math fonts are available?

What OpenType math fonts are there available for usage in TeX/LaTeX, e.g. with the unicode-math package? Here is a MWE which you can use to show off the font. \documentclass{article} \pagestyle{...
3
votes
2answers
37 views

Missing $ inserted in nested tabular or array, math mode

Following multirow array insertion in a tabular cell (code below) produces the error: Missing $ inserted \begin{tabular}{ | c || c | c| c |} \hline A & B & C & D \\ \hline conv1 & ...
2
votes
2answers
60 views

Shrink exponential fraction argument

Since the argument becomes too small when using \frac, is there an alternative way to reduce the size of the \exp argument? \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
0
votes
0answers
15 views

Math mode in tabularx [duplicate]

I would like to write a sum in my tabularx environment. Usually I would go into the full math mode with $$\sum_i ...$$ and the "i" would be right below the sigma symbol. However, this doesn't work ...
3
votes
1answer
59 views

Combining mathcal and mathbb with thin lines

I am actually looking for tweak to this post Composition of \mathbb and \mathcal In particular would it be possible to get the same letters but with thin lines instead of think lines featured in the ...
0
votes
2answers
27 views

Change numbering in MD Framed

I want to change the numbering using mdframed. The code is: \mdfdefinestyle{theoremstyle}{% linecolor=black, linewidth=1pt, frametitlerule=true, frametitlefont=\sffamily\bfseries, ...
6
votes
1answer
139 views

Avoid that star symbol is searchable with questionmark “?”

Given the following minimal example: \documentclass{article} \begin{document} $a \star b$. \end{document} This produces the desired output in the PDF file. However, my problem is that if I search ...
0
votes
4answers
82 views

How do I write an aligned function with η and arrows?

I would like to know how to write the following function. Which command should I use?
5
votes
1answer
295 views

Problems with using numbers and italic greek of Alegreya font in math mode

I started to set up a template document with Alegreya as font which is supposed to be compilable on all three engines, PDFLaTeX, XeLaTeX, and LuaLaTeX. To also set Alegreya as the math font, I have ...
0
votes
0answers
23 views

Alignment inside in-line $$ math environment [duplicate]

I would like to be able to use (equation) alignment inside a simple in-line $...$ environment. Of course, normally nobody does this, when this is properly done with the standalone equation ...