{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
0answers
96 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 ...
4
votes
0answers
128 views

PGF pretty number printing equivalent in LaTeX

For TikZ and pgfplots I use : \tikzset{/pgf/number format/.cd,use comma,1000 sep={\,}} And all numbers are typeset accordingly, with no other command. Is there a way to have the same convenience ...
3
votes
0answers
70 views

Need to type -4x - 6

I am new to LaTeX. I need to type: -4x - 6 I used following command: $ –4x – 6$ It gave me the output as 4x6: How can I type -4x - 6 instead of 4x6?
3
votes
0answers
55 views

End of proof sign outside table

How to insert an end of proof sign outside a table (on the right on the table, on the same last line)? So far, I only managed to insert the end of proof sign in the bottom-right cell of my table, or ...
3
votes
0answers
112 views

Problem with numbers in equations in latex

I have a problem with numbers in equations! This is an example: ‎\documentclass[openany]{Thesis}‎ ‎\usepackage[top=3cm,right=3cm,bottom=2.5cm,left=2.5cm]{geometry}‎ ‎\usepackage{xepersian}‎ ...
3
votes
0answers
152 views

Drawing Cross Sections of (Contours over) Torus

I have this simple torus \begin{figure} \begin{center} \begin{pspicture}(-6,-4)(6,4) \psset{viewpoint=30 10 25 rtp2xyz,Decran=30,lightsrc=viewpoint} \psSolid[object=tore,r1=2.5,r0=1.0,ngrid=36 ...
3
votes
0answers
93 views

dot2texi: Use latex labels (texlbl) with clusters

I'm using the dot2texi package to include dot graphs in my tex files. With nodes, I can use texlbl="$n_1$" to create a label n1. I want to have tex labels also on clusters: \documentclass{beamer} ...
3
votes
0answers
109 views

Typing Russell's “Sur la Logique des Relations”

I'm having some trouble typing Russell's definitions in TexWorks, mainly because of the spaces and numerations of propositions. Anyway, my output it's a complete disaster. How could I maintain the ...
3
votes
0answers
78 views

Retrieving coordinates of every character in a formula

I'm writing a program that uses LaTeX to display formula's. The user must be allowed to click on different parts of the formula, and the program should know on which part the user clicked. Is there ...
3
votes
0answers
215 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 ...
3
votes
0answers
141 views

AUCTeX folding and square brackets in math mode

I want to use the folding functionality of AUCTeX, mainly to replace math macros with the corresponding symbols. But at the same time I want to continue to use square or curly brackets additionally to ...
3
votes
0answers
67 views

How exactly is spacing in and around a multiline math environment determined?

I've tried reading various sources (in particular Tex By Topic; I don't have a copy of the TeXBook) and experimenting on my own, but I'm still unclear as to how exactly the line spacing in and around ...
3
votes
0answers
306 views

French math style with default font

Edit: Okay, I found it, just needed more focus on the related entry. The package mathastext called with the frenchmath option does the job. The time for my first question to stackexchange could have ...
3
votes
0answers
103 views

Math application/library that uses LaTeX?

I don't want to re-invent the wheel here, and I know that there are a lot of good math libraries out there for all sorts of things; what I'm wondering is if there's one that generates its answers in ...
3
votes
0answers
144 views

How to use a lualatex FeatureFile to adjust sidebearings in math mode?

I am trying to use Linux Libertine as a letter font (and a bit more) in math with unicode-math and luaLaTeX. It should be good to adjust some details, and I hoped to be able to do it with a .fea ...
2
votes
0answers
27 views

texh4ht how NOT to print math as images when math is displayed

Edit: I use an extension of tex4ht, https://github.com/michal-h21/helpers4ht ================================ I define a trivlist2 in order to control the space around \[ and \]. I want tex4ht to ...
2
votes
0answers
29 views

Spacing in displayed equations with a piece of text in the middle

In order to avoid an excess of symbolism, I like to typeset displayed equations with some text replacing some connective, as in (\forall x\in \mathbb{N}: \{1,\dots,x-1\} \subseteq B) ...
2
votes
0answers
47 views

How should I label the differentials (arrows) in sseq for a spectral sequence?

I'm trying to typeset a spectral sequence using the sseq package, which provides a way to place objects on a grid and draw arrows between them. I'd like to put labels on the arrows, as one can do with ...
2
votes
0answers
51 views

Spoilers in Web-Accessible Pdf Documents?

A highly regarded professor of mine is currently writing a graduate mathematics textbook in which he has given the book a theme of ``do it yourself'' mathematics. He has asked me to review the book ...
2
votes
0answers
50 views

Different display styles in math mode?

Code: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} %\usepackage{mathabx} \begin{document} \[\phi(\underbrace{r\cdots r}_{n-\text{veces}}) \qquad a\in A \qquad A\subseteq B ...
2
votes
0answers
37 views

Adding default \skew to math accents

Out of corporate design reasons I should use Helvetica for my documents. I could simply ignore this, as most people do ;-) But out of fun I just combined ideas taken from sfmath and beamer to make ...
2
votes
0answers
94 views

Typesetting a pair of slash symbols to indicate parallel lines

To indicate that two lines - or line segments - I want to typeset two slash characters. I used $\overline{AB} \slash\slash \overline{CD}$. The space between the slash characters is too much, though. ...
2
votes
0answers
470 views

How should I typeset the complex conjugate of a subscripted variable?

I have a variable $z_{2n+1}$ and I want to write the complex conjugate of it. I am not sure which of the following should be preferred: \bar{z}_{2n+1}: The bar is not so large and may be hard to ...
2
votes
0answers
269 views

Square root long division method

I wanted to draw the working column for this method of finding square roots: http://youtu.be/UnshaiwljGY Here is an image example of the process: But I am unable to draw it because I am new to ...
2
votes
0answers
102 views

Longer Cap of \sqrt

I am using ShareLaTeX for assignment. I want to input an equation like: $EOQ=Q^*=\sqrt(\frac{2K\lambda}{h})$ and got output like this: But I really want the square root with longer cap (or ...
2
votes
0answers
135 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})$} ...
2
votes
0answers
98 views

Can I use xymatrix to make a spectral sequence ? meaning how to make the boxes?

Is it possible to use the xymatrix command to make a spectral sequence ? Since xymatrix has all the arrows, what I am really asking is are there commands that will enclose the entries in a lattice of ...
2
votes
0answers
384 views

DejaVu Serif Condensed: Matching math font using PdfLaTeX

I like the DejaVu Serif Condensed font as text font, but I did not find an appropriate math font for it. To overcome this, I thought about two possible solutions: Finding an existing math font ...
1
vote
0answers
24 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 ...
1
vote
0answers
41 views

Right-aligning specific text in math-mode

I got a long code to place a text on the extreme left (by defining a new command \beforetext) in all math modes, could someone please provide similar code to place a text on the extreme right? Also I ...
1
vote
0answers
50 views

Big double integral sign

I'm trying to make a double integral, but, somewhy, the sign appears small compared to regular integral signs, does anybody knows why? And how do I solve this? I am using the 'equation' environment
1
vote
0answers
42 views

math equation tags below empheq box?

I have the following macro: \newcommand{\egan}[1] {\begin{empheq}[box=\mybox]{gather} #1 \end{empheq} } Which make a box around an gather environment. If the box is big (fills the whole ...
1
vote
0answers
21 views

Newcommand within display math mode

I am trying to define a new command in a .sty-file called physics that inserts the definition of a physical quantity in the text. The command looks like this: \newcommand{\defin}[1]{% ...
1
vote
0answers
40 views

Multiline latex equation

I have latex equations within \[ ... \] commands. Some of them doesn't fit page width and they have newline command \\ inside. I tried to surround these equations with gather* environment which works ...
1
vote
0answers
40 views

Formatting latex code in lyx

I have been using lyx and have run into text formatting issues when using math inline formulas. For example, the code bellow: is converted to: How can I make the formula fit the numbered list?
1
vote
0answers
45 views

hfill in math mode redux

This is a followup to an old thread hfill in math mode I'm starting a new one because it's hard to write all this in a comment. In the original thread, @egreg proposed the following commands ...
1
vote
0answers
39 views

breqn giving “Double subscript” error

I have this line: $$\boldsymbol{X_{ijk}=I\{z_i\text{ is compared with }z_j\text{ sometime during the execution of the algorithm to find }z_k\}.}$$ which compiles perfectly. However, the equation is ...
1
vote
0answers
36 views

matrix within aligned equations

I am new to both LaTeX and StackExchange. I am learning LaTeX on the way. Here I have a silly question which might be answered before, but I cannot find the answer online. I am trying to compute ...
1
vote
0answers
47 views

Matrices to convert to compact form from maple to LaTeX

I have this code that I have extracted from maple to a TeX file, I want that in the PDF file that is compiled from this TeX file that it would show all the entries of the matrices $m$ and $M$, without ...
1
vote
0answers
50 views

Very short overbrace

Is there a good-looking way to produce an overbrace for a single letter? The overbrace produced by \[ \overbrace{P}^{some annotation} \] is too wide for the single letter P. Note that the focus ...
1
vote
0answers
89 views

A math prime symbol instead of single quote in text mode

I have an abbreviated name say ABC and I want to write something like ABC', but I prefer the quote to be the math mode prime symbol. Something like ABC$'$ will give me that, but is there a better way ...
1
vote
0answers
40 views

Getting tex4ht to output all math “unprocessed” between html tags

I would like to use tex4ht to convert a LaTeX document to an electronic book format, but rather than MathJaX or MathML, I want all math-mode code to be dumped into the html output between identifying ...
1
vote
0answers
69 views

Change certain characters font in math mode

I recently changed from pdfLaTeX to XeLaTeX to be able to use different fonts when it comes to typesetting math. I am using mathspec package with different fonts for Latin, Numbers and Greek. I have ...
1
vote
0answers
65 views

Change math font size only in one section

I'm trying to modify the math environment font size but only in a defined part of my document. \DeclareMathSizes{a}{b}{c}{d} works fine but affects the whole document. Is there a simple way to change ...
1
vote
0answers
76 views

Error: Missing $

I have bla $ H $ bla bla $ 2 \times 2 $ . blabla: \begin{equation} H = \theta \textbf{I} + \textbf{ \tau } \cdot \textbf{a}, \end{equation} Why does it give me the following error: ! Missing $ ...
1
vote
0answers
88 views

Qtxmath package with MiKTeX

I was planning to test the qtxmath package with the tgtermes fonts with MiKTeX 2.9: \usepackage{qtxmath,tgtermes} However, I encounter problems compiling the document: miktex-makemf: The qtmri ...
1
vote
0answers
238 views

Symbols do not copy correctly from latex pdf to ms word

I have text containing 3 symbols in pdflatex and produce pdf. It is OK. Then i copy these symbols and paste in MS word 2013 and have another symbols or from one symbols two are produced: Before ...
1
vote
0answers
285 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} ...
1
vote
0answers
77 views

Right way for text inside math

I'd like to know (if there is) the better way to punctuate text inside math mode. I mean, when we use , or ;, they are punctuation for the text, not for the math and so I think that they should be ...
1
vote
0answers
163 views

Text font matching CM Math?

I see many people ask about a math font to match their favorite text font. Here I'm asking the inverse question. When I first heard about LaTeX, I was so impressed by its super high quality output, ...