Stack Exchange Network

Stack Exchange network consists of 174 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}.

2
votes
1answer
16 views

Formatting of a star in the right upper corner of a product symbol [duplicate]

I'm trying to get a star in the right upper corner of a product symbol: \documentclass{article} \usepackage{amsmath} \begin{document} First variant in equation is bad: \begin{equation}\...
4
votes
1answer
41 views

Mathspec and Dollar Symbols in Math Mode

I'm using mathspec with XeLaTeX to typeset documents in a system font (Fira Sans but I don't think it matters). When I include punctuation and certain other symbols in math mode, they come out in ...
2
votes
1answer
43 views

Reverse an existing big math operator keeping same functionality (such as limits)

I would like to define an operator \rsum which has all the same functionality of \sum with the only difference being that \rsum displays a mirrored image of the sigma glyph. I have found the ...
3
votes
1answer
52 views

Embedding a simple tikz diagram within a tuple equation

I wanted to draw a simple tree using tikz, and embed that tree in an equation: \documentclass{article} \usepackage[a4paper,margin=25mm,showframe]{geometry} \usepackage{graphicx} % <--- For ...
2
votes
1answer
30 views

Symbol similar to \pitchfork for tangent component

I want to define a symbol analogous to \pitchfork from amssymb, which I use meaning "transverse". My new symbol will stand for "tangent" and I want it to be a \cap with a horizontal bar over it, ...
4
votes
2answers
48 views

How to adjust/increase the height of square root?

I defined this equation: \begin{equation} \delta {^s_i\lambda} = \begin{cases} \pm \dfrac{{^s\overline{\Delta T}}}{\sqrt[]{\delta {^s_1\bm{u}_l} \cdot \delta {^s_1\bm{u}_l} + \...
6
votes
2answers
217 views

How do I insert sigma superscript hat and subscript beta 1 hat?

I tried the following code with a badly rendered result: \hat{\sigma_{\hat{\beta_1}}} Is there a better way to render it like the image shown?
0
votes
0answers
21 views

Change the font style of a specific math block

Let's say I have some math block where I specifically want to write pseudocode. \begin{math} \end{math} Is there a way I can change the font so it's not cursive, and maybe a mono type font to look ...
2
votes
0answers
70 views

How can I write this formula?

I wrote this it is the first equation it gives me an error I don't understand why \documentclass[12pt]{report} \usepackage{enumerate} \begin{document} $$ maxdd(t) = max\limits_{0\leq\tau\leqt} dd(\...
1
vote
1answer
39 views

Why can I not put a fraction inside of a pmatrix? [on hold]

So I'm trying to typeset a formula that contains a vector with two values that are fractions. This, unfortunately, is not working. Here is what I wrote: \documentclass{article} \usepackage{amsmath}...
1
vote
2answers
82 views

Why does `\texttt` repeat and shrink my equation?

When I use \texttt with the caret symbol in an amsmath equation environment, I get a very weird result. Specifically, the text repeats itself four times while shrinking. MWE: \documentclass{article} ...
3
votes
0answers
63 views

polynom.sty: How can show only the task and the result of a Polynomial long division?

How can I automatically show only the task and the result of a Polynomial long division, like (without the 'gap', too late seen above) I know, there are possibilities to bunch that together (see MWE)...
3
votes
0answers
68 views

Is there “screen reader” software or a built in method that supports LaTeX equations?

I was asked a question during a LaTeX how-to session which I did not have a good answer for. The person asking is interested in accessibility software which is able to read LaTeX formatted equations ...
2
votes
2answers
196 views

Check if argument is math expression. The case of making the first letter uppercase

In this example: \documentclass{article} \usepackage{xspace} \newcommand{\pt}{\ensuremath{p_{T}}\xspace} \newcommand{\capitalise}[1]{ % if string ...
1
vote
1answer
46 views

Split align over pages in ConTeXt

Consider the following code example: \setuppapersize[A8,landscape][A8,landscape] \starttext \startformula \startalign \NC 1 \NC= 1\NR \NC 2 \NC= 1\NR \NC 3 \NC= 1\NR ...
0
votes
0answers
29 views

Mathtt (typewriter type) all greek letters [closed]

Is it possible to produce all the Greek letters in a typewriter font for use in maths mode? We have access to some of the uppercase letters, but is it possible to get this features for lowercase ...
4
votes
1answer
170 views

tikz or how to do this in LaTex?

I am trying to get this to work in Latex, this is the output I am looking for: This is the code I have so far, but I'm not getting what I want: \documentclass{article} \usepackage{amsmath,mathrsfs} ...
4
votes
1answer
45 views

\mathop applied on colon

I thought I knew when \mathop centers its argument on the math axis and when it does not, but apparently I'm wrong (admittedly, that happens rather often :-)). \documentclass{article} \begin{...
0
votes
0answers
26 views

A Math Relation Symbol in Latex to find [duplicate]

I want to ask about the following symbol, which I want to put in my latex doc but I could not find it. Can you help? Thx
0
votes
0answers
43 views

Difference of the content of the align environments family

I am using MathJax to convert LaTeX math into MathML and svg. Unfortunately MathJax does not support environments like xalignat, xxalignat, subequations and flalign. I am not looking for the accurate ...
7
votes
1answer
126 views

How to use mathcal fonts with charter font from mathdesign?

Here's an example that uses the mathdesign package to implement the Charter fonts: \documentclass{standalone} \usepackage[T1]{fontenc} \usepackage[charter]{mathdesign} \begin{document} $H \quad \...
0
votes
0answers
10 views

Unitalicizing math-mode in a part of the document [duplicate]

How to unitalicize math-mode in just a part of the document? My document will have two parts, one is for maths and the other is for chemistry -- and I want the part for chemistry to have the name of ...
0
votes
1answer
50 views

Drawing multiple graphs side by side in Tikz

I'd like to make a picture of a triangle, a square, and a pentagon (C_3, C_4, C_5 in standard graph theory vocabulary) appearing side by side in Tikz. Drawing them individually I can do but I'm not ...
-1
votes
1answer
30 views

How to write two rows clip [duplicate]

how can I please write this? I can't find the right name to find it in instructions. Thank you.
2
votes
1answer
28 views

Float equals sign left in equation

Trying to have an equals sign flush left with the margin, while centring the rest of the equation, found the best solution here, but it seems like there would be a better way to do it, given that the ...
2
votes
1answer
182 views

How do you write this logarithmic question in LaTeX?

How can I convert the image below into TeX?
2
votes
3answers
30 views

Trouble using flalign for left aligned math equations

I tried to left align some equations, but always get the wrong result Code below \documentclass[a4paper]{article} \usepackage[fleqn]{amsmath} \usepackage{showframe} \begin{document} \section*{Test} ...
5
votes
4answers
484 views

How to place a two-row limit expression below the integral sign?

How do I write multiple lines beneath the integral sign? MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \int \mathcal{D}\phi(x)= \int \mathcal{D}\phi_1(\...
1
vote
0answers
41 views

Using boxed with newline in it [duplicate]

I am new to LaTeX, cant figure out this issue. I want a box around the following equation. \begin{equation} A State S_{t} is Markov if and only if : \newline P [ S_{t+1} | S_{t} ] = P [ S_{...
2
votes
1answer
53 views

longdiv macro without answers

This code (using longiv) produces \documentclass{article} \input{longdiv} \begin{document} \longdiv{52}{2} \end{document} I'd like to replace the answers with _s. Can anyone suggest the right way ...
3
votes
3answers
49 views

Running a loop until x mod 10 =0

I need something like this LaTeX: while x mod 10 != 0: x++ My LaTeX translation which compiles infinitely is this: \newcommand{\lfn}{ \loop \ifnum \pgfmathresult<1 \...
2
votes
0answers
30 views

Hyperref with align inside subequations

\documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \usepackage{cleveref} \begin{document} Some text before the subequations. \begin{subequations}\label{eq:arithmetic} \...
2
votes
1answer
33 views

Default spacing around operators in math inline mode

When writing math expression, the spacing around an operator (like + or =) seems to be the same in math inline-mode or math block-mode. However, I like the spacing in an expression to be smaller in ...
0
votes
1answer
41 views

Array command in Latex

I wonder may I ask about why I received the error note from R-Markdown that ! LaTeX Error: \begin{array} on input line 569 ended by \end{equation*}. #1, Let X = \[ \left(\begin{array}{cc} 1 &...
0
votes
1answer
38 views

Change numbers in math mode to sans serif

I am using pdflatex to create a scientific document and I'd like to know if there is a way to change the font of numbers in math equations to a sans serif type. Right now with the following font ...
2
votes
2answers
335 views

How to Write Math Equation in LaTeX

I am new in LaTex and need your help to write the following math equation in LaTeX.
1
vote
1answer
17 views

Tikz misaligning edge starting point on matrix of math nodes

I just noticed that this commutative diagram had the initial vertex of the edge creep up into my first node. Is there an obvious way to fix this? Here is the code for an MWE: \documentclass{amsart} ...
14
votes
2answers
843 views

Create a Handwriting environment for both text and Math

I would like to create an environment that would allow me to have parts of a document in "Handwriting mode". So the objective would be to be able to type the following in the source code : \begin{...
0
votes
1answer
19 views

Change `\textlnot` to something usable in math mode with `kpfonts`

Consider the following MWE: \documentclass{article} \usepackage{kpfonts} \usepackage[utf8]{inputenc} \begin{document} This is a formula: $¬¬p \implies p$ \end{document} The output does not ...
2
votes
1answer
32 views

Overlapping underbraces in the marginsnote

I am trying to place a number of overlapping underbraces to the left margin. My goal is to create one similar to the following: This is as far as I could get: Basically, my main problem is to place ...
0
votes
2answers
24 views

align break one long formula

I'm using the align environment to create four rows which each contain three formulas. One of them is to long. How do I break this specific formula to two lines? \documentclass{book} \usepackage{...
2
votes
2answers
54 views

Mayan Numerals in math mode

How to use Mayan Numerals from 'BabelStone Mayan Numerals' font in math mode, with LuaLaTeX?
1
vote
2answers
47 views

replicate beamer math font settings

I'm wondering how to replicate beamer math font settings for a non-beamer document class? there was similar question answered, but that solution is not as good as what beamer is actually doing with ...
0
votes
1answer
42 views

Shrink equation in align to fit page width without creating new line

I saw this post about fitting equations to the page width, but it did not really answer my question. I have the following snippet of my code: \documentclass[11pt,a4paper,fleqn]{report} \usepackage{...
0
votes
0answers
20 views

program code typesetting with math in it? [duplicate]

The listings package can be used to typeset code blocks into a latex document. However, I'd like to include standard latex math symbols into the code. (I want to use it to write pseudocode that ...
2
votes
2answers
62 views

To write dot product \cdot is not working

I am trying to write the following equation: But when I write this in the equation: \documentclass[applsci,article,submit,moreauthors,pdftex,10pt,a4paper]{Definitions/mdpi} \begin{document} \begin{...
1
vote
1answer
82 views

Equal line height with Libertinus Math?

This inline formula increases the line height. How to prevent? % !TEX TS-program = lualatex \documentclass[12pt]{scrreprt} \usepackage{amsmath} \usepackage{unicode-math} \usepackage{blindtext} \...
0
votes
0answers
25 views

Forced pagefill by stretching spaces between equations [duplicate]

I am using the KOMA-class scrartcl (I do know that it is outdated, but I don't really have the time to understand a different KOMA-class). When my document arrives at an equation which would be too ...
2
votes
1answer
26 views

Having trouble in matrix creation

I want to write down this algorithm in latex I write down the code in Latex. This is my code: \begin{enumerate} \item Algorithm EIF\_ initialize($ u_{1:t}$): \item \begin{gather}\begin{pmatrix} \...
2
votes
0answers
23 views

Custom size delimters [duplicate]

I am in the situation where I want delimiters that are bigger that \big, but smaller than \Big (see example). \documentclass{article} \usepackage{mathtools} \usepackage[libertine]{newtxmath} \begin{...