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

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Positioning of math in Tikz-Feynman

I'm trying to write an equation with a Feynman diagrams inside. My code is \begin{equation*} i\mathcal M_t= \feynmandiagram[inline=(d),vertical= b to d]{ a[particle={$p_1$}] -- [fermion] b -...
user avatar
  • 85
0 votes
1 answer
24 views

Typing math content in beamer

I use WinEdt 10 and I am trying to use Beamer in order to make a presentation. When I use text (author, institution, etc), it works well, but when I add some math environment (equations), it runs and ...
user avatar
0 votes
1 answer
42 views

Get a proper double-struck one while using amsmath

I am using the amssymb package and from time to time I want to print a proper looking double-struck digit 1 as I could get by using the bbold package. However they both are using the \mathbb{} ...
user avatar
  • 25
0 votes
0 answers
38 views

Does vertical math work with complex equations?

Does vertical math work as way to code complex equations like this: { \\\I want to vertically add line one to line two, and then show it is equal to 2(phi-1) on line three, but I can't find the way ...
user avatar
0 votes
1 answer
58 views

How to get cleaner code for the division sum?

\documentclass{article} \usepackage{graphicx} \usepackage{longdivision} \usepackage{cancel} \begin{document} \section {Even Numbers} Even numbers are numbers that can be divided by two without ...
user avatar
  • 1
0 votes
2 answers
58 views

how to write this in latex form

I can't seem to find a code that would give me this format.
user avatar
  • 11
2 votes
1 answer
56 views

split matrices over two lines using array

I was wondering if there is anyway to split across two lines the following eigenvalue , eigenvector pair which I have listed below? I have tried \bigskip, \par, \newline within the array environment, ...
user avatar
0 votes
0 answers
17 views

Latex for limits with 3 different conditions in word [closed]

do you know how to reproduce the results down below in microsoft word? I saw this code but it doesn't properly format it in word. $\lim_{\substack{x\to 0\x>0}}f(x)$ $\lim\limits_{\substack{x\to 0\ ...
user avatar
  • 1
4 votes
3 answers
331 views

How do I align equations along operators within parentheses?

Edit 3: See my own answer if you would like to achieve exactly what I was asking for! Problem When I put the alignment character (ampersand) inside parentheses, it breaks the compiler. % !TEX TS-...
user avatar
0 votes
2 answers
27 views

Fixing vertical subscript offset: one more step

I have overcome the problem related to the positioning of the subscript in mathmode. \documentclass[10pt]{article} \begin{document} $ n_P %before $ $ \fontdimen15\textfont2=4pt \fontdimen16\textfont2=...
user avatar
0 votes
1 answer
31 views

How to automatically linebreak a (small) inline math formula?

I often use small inline math notation such as $\FuncName(a)$ in paragraphs. These math expressions are smaller than some words, so I think it's fine to inline them instead of putting them on their ...
user avatar
  • 111
0 votes
0 answers
31 views

Alternative to mathptmx

In my documents I have always used the mathptmx package. From what I read, however, this is an obsolete package. I tried the newtxtext and newtxmath packages, but the output is different. Could you ...
user avatar
1 vote
1 answer
77 views

Arevmath and letter a

The arevmath package offers two different a, available as \origa and \vara (default value). However, adding \DeclareMathSymbol{a}{\mathalpha}{extraitalic}{50} in the preamble to turn \origa as the ...
user avatar
  • 3,321
0 votes
1 answer
28 views

How can I put new line in between function arguments

I have a function that has plently of arguments. \documentclass[10pt,journal,compsoc]{IEEEtran} \usepackage[table]{xcolor} \usepackage{eulervm} \usepackage{booktabs} \usepackage{tabularx} \begin{...
user avatar
  • 400
0 votes
0 answers
31 views

Template for a solution manual

I want to write a book with solutions to a book I am reading. My first attempt so far was to just use an ad-hoc solution, but I am quite unhappy how it looks. A small excerpt of what I did: \chapter*{...
user avatar
2 votes
2 answers
236 views

Write some text under physic-chemistry formula

How can I write some text under a formula? The effect I would like to achieve is the following I would like the two words, "prodotti" and "reagenti", to be placed under each ...
user avatar
2 votes
1 answer
36 views

How to include the overbrace in the below matrix in LaTeX?

Suppose, the below matrix is a n*n matrix with n-k entries 1 and rest k entries 0. I want to add two overbraces over the first row, one is upto all 1 mentioning n-k and the other one is all 0 ...
user avatar
5 votes
1 answer
444 views

Typesetting functions: italics or non italics?

I've been typesetting all my functions in non-italics (even for $f(x)$), but am not sure if this is the correct convention. This website suggests that generic functions (e.g., $f(x), g(x)$ should be ...
user avatar
  • 215
5 votes
1 answer
93 views

How can I fit a symbol that has superscripts and subscripts in table's row?

I am using mathematical symbols in a table that has superscripts and sunbcripts ex: $B_{D}^{\mathrm{pr}}$, which leads it to cross into upper row's section. I have following code: \documentclass[10pt,...
user avatar
  • 400
1 vote
1 answer
60 views

Can I display a set of eigenvectors across two pages?

I was wondering if its possible to split an array over two pages since I have a huge formula for my array? I already rotated the formula and reduced the size, but I still have to split it over two ...
user avatar
1 vote
0 answers
34 views

Strange behaviour with alert in mathmode

I got this unexpected behaviour when I change colour to alerted text in mathmode. In particular, alerted text.fg seems to change only when \alert is called again. Changing with \colorlet affect only ...
user avatar
0 votes
1 answer
43 views

Displaying matrix with dots

I want to display the following matrix (ignore the red box): But all I can come up with is the following, which is not what I want beacuse of the diagonal and vertical dots: I want the vertical dots ...
user avatar
0 votes
1 answer
49 views

\prime and \land rendering incorrectly

So I'm currently having issues where my latex is rendering incorrectlyly $G^\prime=(v^\prime, e^\prime), v^\prime \subset v \land e^\prime \subset e$ What it should render: What it is rendering: I ...
user avatar
1 vote
1 answer
37 views

Placing symbol over relation without changing where superscripts are placed

I would like to place a symbol over a relation without changing where superscript are placed. \documentclass{article} \usepackage{mathtools} \usepackage{amssymb} \usepackage{accents} \newcommand{\rel}...
user avatar
  • 691
0 votes
1 answer
32 views

How to make wide grave and acute accents accurate also in \smaller when using TeX Gyre Termes Math and lualatex?

Continuing Wide acute and wide grave for TeX Gyre Termes and TeX Gyre Termes Math , we try to make wide grave and accute accents work in \smaller with TeX Gyre Termes (Math) fonts and UTF-8 engines (...
user avatar
0 votes
0 answers
14 views

How to make wide grave and acute accents accurate also in \smaller when using NewTX and pdflatex?

Continuing Steven's http://tex.stackexchange.com/a/611030 (thanks!), we try to make wide grave and accute accents work in \smaller with NewTX fonts and pdflatex (for Tex Gyre Termes and UTF-8 engines, ...
user avatar
0 votes
0 answers
28 views

How can I type this formula in LaTex [duplicate]

![] I'm writing my thesis and I need help on how I can type the following equation in LaTex.
user avatar
6 votes
1 answer
319 views

Why are there two commands \> and \: that do the same thing?

The file latex.ltx says: \DeclareRobustCommand\:{\tmspace+\medmuskip{.2222em}} \let\>=\: Why are there two equally long commands \> and \: doing exactly the same thing? To me, they look ...
user avatar
6 votes
3 answers
255 views

How to create curved arrows from a number to another number above and below a matrix?

My code: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} \pi=\begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8\\ 1 & ...
user avatar
2 votes
2 answers
103 views

How can I have multiple lines for the underbrace label?

How can I have multiple lines for the underbrace label? --\/-- A cost [A] This is a some dummy equation to show what I already have. \documentclass[twocolumn]{article} \usepackage{color, etoolbox, ...
user avatar
  • 400
1 vote
1 answer
39 views

How to set `newpxmath` to use the `pxfonts` integral

I want to know how to set newpxmath to use the pxfonts integral, which is just like the Wolfram fonts. Now I use Asana-Math as a substitute. I want \int like this: But newpxmath default is this: ...
user avatar
0 votes
2 answers
91 views

How to stop \newcommand and \DeclareMathOperator from adding unnecessary spaces?

I'm creating a list with common math commands that I use, but \newcommand and \DeclareMathOperator both add a space after the symbol I just defined. For example, comparing the two commands defined ...
user avatar
1 vote
2 answers
97 views

State of sans serif maths fonts

I'm looking for a comprehensive sample of specimens from current, known to be up and running, sans serif fonts for (displaystyle) maths. In particular, I would like to know how one can know whether a ...
user avatar
0 votes
3 answers
48 views

Some align mistake [duplicate]

A question why I get this error when I use align? My code is the following \documentclass[12pt,a4paper]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \...
user avatar
  • 325
1 vote
2 answers
31 views

xypic and \mathcal math mod issue

I'm curently trying to write a simple commutative diagram through xypic, which works on one of my files, but I can't make it work on a new one : \documentclass{article} \usepackage[french]{babel} \...
user avatar
0 votes
0 answers
32 views

How can I write an arrow on formula of matrix? [duplicate]

I have to make a report for mathematics. I need to show a detail of elementary row operations like the picture below, but I have no idea how to write in tex. It's not necessary to make the arrows red,...
user avatar
0 votes
0 answers
48 views

Wrong assumption that text is in math mode [duplicate]

I am writing a document in text mode and I wish to refer to a variable in some separate software file. But when I try to typeset the document Latex seems to think that the name of the variable is in ...
user avatar
  • 315
2 votes
1 answer
26 views

\cdots in header of matrix is annoyingly shifted by few pixels, compared to column entries below it

That's my code: \begin{equation} P= \begin{blockarray}{*{4}{c} l} \begin{block}{*{4}{>{$\normalsize}c<{$}} l} \text{Zustand 1} & \text{Zustand 2} &$\cdots$& \text{...
user avatar
3 votes
1 answer
110 views

Is it possible to align different lines according to a "waterfall" scheme

Let's say I have multiple lines of math symbols from which I want to create a kind of "waterfall aligning, i.e. At any given line, the proceeding line will start at the (horizontal) position of ...
user avatar
0 votes
1 answer
35 views

How to write L_{1} within a textit{} function

Im trying to write L_{1} in a \textit{} function. \textit{L_{1}} But this just gives me How can I make it (ignore the overline):
user avatar
0 votes
1 answer
19 views

tag on the left in align environment [duplicate]

in align environment, my tags are on the right, and that is fine. but in some paragraphs I'd want to put my tags on the left. How can I do this?
user avatar
  • 1
0 votes
1 answer
40 views

Receiving this error in latex for "missing $ inserted" and that "You need to enclose all mathematical expressions.."

This is latex Overleaf and I'm receiving this error with no idea on how to fix it edit: Here is the code \begin{definition}[Dirichlet Character] Any map $\chi:(\mathbb{Z}/n\mathbb{Z})* \rightarrow \...
user avatar
  • 1
7 votes
1 answer
179 views

Is there a way to add italic correction at the end of inline math?

I would like to add italic correction at the end of inline math, depending on the italic correction of the last math character. Here is a MWE showing why I would like to have that: %! TEX program = ...
user avatar
1 vote
2 answers
63 views

How to put a "=>" symbol of one line just below "=" of another one?

I am writing LaTeX in Google Colab using the code below, $$mean \ of \ apples = \frac{sum \ of \ apples}{number \ of \ children}$$ \ $$\Rightarrow \frac{1725}{6} = 287.5$$ And I get this output - ...
user avatar
  • 135
0 votes
1 answer
53 views

How to make a heavier math font?

I want to make a heavier math font by using the command \hm which is from bm package. But it doesn't work well and give a same font like the one made by \bm. Could you help me find out where the wrong ...
user avatar
  • 3
4 votes
3 answers
187 views

How to make ellipses in latex with the same size

I hope someone can help me. How can I make both ellipses have the same size? I attach the code and an image of how I want it to look \begin{tikzpicture} \node (1) at (0,0) {1};\filldraw(1.east) ...
user avatar
1 vote
1 answer
50 views

Cannot compile Tabularray with a math environment in it and a \NewColumnType

I have this code \documentclass{report} \usepackage{tabularray} \usepackage{mathtools} \NewColumnType{C}{>{$}c<{$}} \def\myformula{Area = side \times side \\ Perimeter = side \times 4} \begin{...
user avatar
  • 51
1 vote
1 answer
45 views

How can I "indent a full row" in a table

I don't even know how to ask this. I've been using longtable in order to create invisible tables so that I can do the following explanation of formula parameters(if there's a better way of doing this ...
user avatar
2 votes
2 answers
52 views

Knowledge package coloring

I am having a somewhat complex issue with the knowledge package. A MWE is the following: \documentclass{article} \usepackage{xcolor} \usepackage{hyperref} \usepackage{cleveref} \usepackage{knowledge}...
user avatar
0 votes
1 answer
50 views

How can I have straight quote inside math-mode?

I have following piece of code: \documentclass{article} \usepackage{textcomp} \begin{document} \begin{equation} \Upsilon\textquotesingle^{hr} \end{equation} \end{document} its output, where both ...
user avatar
  • 400

1
2 3 4 5
178