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
1 vote
3 answers
58 views

How can I create a new simple symbol, similar to the binomial coefficients?

I was wondering how to make a symbol that looked like $\binom{n}{m}$, except that instead of a bracket, it's a square box around the two symbols. Is this possible? If not, what is the closest I could ...
user avatar
0 votes
2 answers
23 views

How to get a vertical line in math mode in Springer Nature Template

I am trying to get the following equation: To do so, I am using the code as shown below: \documentclass[pdflatex,sn-mathphys]{sn-jnl} \begin{document} $\mathbf{P(W|T)}$ \end{document} However, ...
user avatar
  • 320
2 votes
1 answer
65 views

How do I draw an arrow with a bullet on the line?

Using tikzcd I can (roughly) produce what I want: \begin{tikzcd} [column sep = small] a \ar[r, "\bullet" {description, inner sep=0, outer sep=0}] & b \end{tikzcd}) yielding However ...
user avatar
1 vote
1 answer
61 views

Should I use mathrm for these variables?

I'm wondering if I read use mathrm for these variables below (relating to electrical engineering). They represents input, output or inductor voltages and ground. Reading the link I think I should use ...
user avatar
  • 443
1 vote
2 answers
51 views

Specifying an array columnwise in math mode

I would like to do the same sort of thing as in the question How to create table column wise in LaTeX?, except that I want to do it in math mode. To be precise: I want to enter an array of items of ...
user avatar
  • 3,225
1 vote
1 answer
38 views

Display fractions in normal fonts with subscripts attached to the terms

I would be grateful if someone could help me write a fraction in normal text with subscripts attached. This is the latex code I wrote \begin{equation} v= \frac{ \triangle \text{Z} }{ \text{a\...
user avatar
1 vote
0 answers
23 views

Compilation never ends with modified \pmod after recent update

In this answer, @egreg provided a modified \pmod with a starred variant. However, after some recent update to the TeX distribution this modification no longer works (the last time I used this command ...
user avatar
  • 6,566
0 votes
0 answers
36 views

Weird horizontal spacing after displayed equation [duplicate]

As you can see, this is an excerpt from a submission to a journal. I am using the {\small } command to fit the equation into one line, albeit at the expense of its number falling onto the next line. ...
user avatar
0 votes
1 answer
31 views

Is it possible to have multiple lines in the overset with proper font size?

I'm trying to have multiple lines in the overset but what I could get till now with aligned environment is the wrong the font size. Nestig doesn't give much better resullts. \documentclass[12pt]{...
user avatar
  • 329
2 votes
1 answer
36 views

Spacing around \amalg with KpFonts-otf

The space around the symbol \amalg seems a little bit too big when using the OTF version of KpFonts. Consider the following example: \documentclass{article} \usepackage{kpfonts-otf} \begin{document} ...
user avatar
  • 6,566
0 votes
0 answers
48 views

Tikz - Draw Neural Network MLP diagram

I am a beginner to TikZ. I want to reproduce 2 below diagrams. I was reading many tutorials and blogs about TikZ and was trying to implement but I still can not generate something like this 2 images. ...
user avatar
10 votes
2 answers
584 views

Math: overwrite \int command

I wish I could override the \ int command, so that each integral is rendered this way. Yes, I know the command to display it this way is \int\displaylimits_a^b, but I would like to overwrite the ...
user avatar
8 votes
3 answers
410 views

How to create \in-symbol with underbar that has rounded edges and correct vertical spacing?

The aim is to create a new symbol \ineq. The appearence of \ineq would be to \in as \subseteq is to \subset. Output from attempt at making \ineq: Problems with attempt in decreasing order of ...
user avatar
2 votes
0 answers
35 views

Handle bold/text whether in mathmode or not

I use acro package in a very large (1000+ pages) document. For consistency reasons, it happens an acronym is in a formula. My acro set up \acsetup{ case-sensitive = true, first-style ...
user avatar
  • 2,569
5 votes
3 answers
161 views

Nested align without extra spacing

I am trying to align the + symbols, while also aligning the = symbols, as such As you can see, I managed to align at the ='s but not the +'s, how can I do that? This is the code I used (using quad to ...
user avatar
  • 53
0 votes
1 answer
31 views

Changing the numbers' font in LaTeX is not working

I used a code I found here for changing the numbers' font in LaTeX but it doesn't work :( the name of my font is "MiLetra". I've already tried putting "MiLetra.ttf" and "...
user avatar
1 vote
2 answers
43 views

Math mode: square bracket strange behaviour

Can you see as the content is not aligned with square brackets? \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ \left[ \dfrac{1}{\dfrac{\mathrm{L}^3}{\mathrm{t}}} \right] \] \...
user avatar
4 votes
2 answers
308 views

Greek directly in math mode XeLaTeX instead of PdfLatex

This piece of code \documentclass{article} \usepackage{alphabeta} \usepackage{amsmath} \begin{document} $α+β+γ=\alpha+\beta+\gamma$ \end{document} works perfectly in MiKTeX-TeXworks provided ...
user avatar
2 votes
1 answer
57 views

A macro that takes in a variable that is a number, interprets it as a string, check if it has a plus sign, removes it, then stores it to the variable

I want to create a macro \foo that takes in a \newcommand variable that is a number, e.g., \bar where it's defined as \newcommand{\bar}{<number>} and interprets it as a string, then checks if ...
user avatar
1 vote
1 answer
24 views

Flush some equation lines to the left or right

Is there a way to flush some equation lines to the left and flush other linesto the right? In the following example, I want the first line to be flushed to the left, while the second line to be ...
user avatar
  • 1,609
3 votes
1 answer
39 views

Align multiple equations IEEEeqnarray

I am trying to align multiple equations left in a two column environment. The equal signs are aligned properly, but are more centered in the column, rahter than aligned on the left side of the column. ...
user avatar
0 votes
0 answers
32 views

Disable underscore in text mode causing automatic switch to math mode [duplicate]

Underscores in text mode are common, but these trigger automatic math mode and then I have to go find all the underscores and escape them. Goal: Is there a way to disable underscores in text-mode ...
user avatar
  • 57
0 votes
1 answer
35 views

Include long comments in multi-line equation

I'd like to occasionally describe a multi-line equation with some text next to the relevant line. Sometimes the line is short (with line 10 below). Sometimes it's long (with line 9 below). If the ...
user avatar
  • 3
0 votes
0 answers
19 views

get rid of numeration when listing a matrix

how do I get rid of the extra numeration (1) in the bottom right corner? \begin{itemize} \item[-] when we look at the identity matrix: \begin{equation} \begin{pmatrix} 1 & 0 & 0\\ 0 &...
user avatar
  • 103
0 votes
0 answers
29 views

Archaic Greek sampi and stigma in math mode [duplicate]

How may one have access to \stigma, \Stigma,\varstigma, \sampi and \Sampi from teubner, as in Table 428 of the Comprehensive Latex font catalogue, while in math mode?
user avatar
  • 3,759
0 votes
2 answers
42 views

align values in a matrix

I have a matrix like this: \begin{matrix} value\_list:\quad[a_{1,1}, a_{3,2}, a_{3,3}] \\ start\_positions:\quad[0,2] \\ column\_indexes:\quad[1,2,3] \\ perm\_vector:\quad[2,0] \end{matrix} ...
user avatar
  • 103
0 votes
4 answers
53 views

Problem with align* moving equations off the page

Here is the Math question and answer that I want to typeset into LaTeX: I'm using the align* environment to typeset everything and this is the code I've used: \documentclass{article} \usepackage{...
user avatar
2 votes
0 answers
29 views

Double printed mathematical symbol in error [duplicate]

When I use \widecheck twice, it erroneously double prints the entry in the first \widecheck on top of the entry in the second \widecheck. Here is a minimal working example: \documentclass{article} \...
user avatar
0 votes
1 answer
37 views

Using \dots inside \bm causes an error

I can't figure out why this error keeps happening. I simply use \dots inside \bm as is shown in the following image: The equation of the middle reads: $$\bm{d\omega^i\wedge\omega^1\wedge\dots\wedge\...
user avatar
  • 559
3 votes
2 answers
139 views

Difference between $\star\star$ and $\star\star\star$

The picture above is generated by $\star$, $\star\star$ or $\star\star\star$. Indeed, this phenomenon was mentioned in here. However they didn't give a solution, and I want to know how to get rid of ...
user avatar
  • 221
2 votes
1 answer
33 views

\mathaccent for accents in math mode

I have got a new problem. Namely, I just can't get rid of the error message " Use \mathaccent for accents in math mode". I first thought that it is because of the ö, but the error remains ...
user avatar
  • 21
0 votes
0 answers
36 views

What Latex typing environment is best to use under Windows? [duplicate]

I am sure this question was asked before but please allow me to ask again, or to have an up to date feedback at least. I actually am trying TexWorks editor / TexLive, but it doesn't quite seem ...
user avatar
0 votes
1 answer
49 views

The same brace thickness in scalebox

\documentclass[14pt]{extarticle} \usepackage{graphicx} \begin{document} \begin{equation} \scalebox{0.5}[1]{$\displaystyle \left\{\scalebox{2}[1]{$\displaystyle\begin{array}{ll} P=P(r_+,M)\\ T=T(r_+,P(...
user avatar
0 votes
1 answer
44 views

Equation position equation LaTeX [duplicate]

I'm having trouble with the LaTeX equation numbers. For example, I type: \begin{equation}\label{eq2} A = \begin{pmatrix} a_{11}x_{1} & a_{12}x_{2} &...
user avatar
0 votes
1 answer
39 views

Mathaccent in math mode

I wrote the following line of codes: \documentclass[12pt, a4paper, oneside]{Thesis} % Paper size, default font size and one-sided paper \usepackage{hyperref} \usepackage[printonlyused]{acronym} \...
user avatar
  • 3
3 votes
0 answers
170 views

Using math for listings

I asked a question a while back on how to typeset programs as beautiful math. The suggestion I got was to use listings. But this has been unsatisfactory. Basically my 'programs' are in a gray area ...
user avatar
  • 353
0 votes
1 answer
43 views

Ordered tuples of ordered tuples

The following source includes a definition of \opair for typesetting ordered pairs, or tuples, that use angle-brackets as the initial and terminal delimiters; that definition appears in https://tex....
user avatar
  • 6,661
2 votes
1 answer
35 views

amsmath's align* or gather* followed by \ifmmode = 🗲

Feeding \documentclass{article} \usepackage{mathtools}%%% or amsmath \begin{document} \begin{gather*} \ifmmode Math\else Text\fi \end{gather*} \end{document} to any of the four LaTeX processors (...
user avatar
  • 1,119
0 votes
0 answers
34 views

About LaTeX document preamble

This migh be a silly question but I ask to you LaTeX veterans for help in improving my LaTeX-document preamble. The following is what I usually run as predefinite preamble, but I suspect that I could ...
user avatar
  • 320
0 votes
0 answers
25 views

How to make the template bolder/stronger without \textbf or \mathbf?

Question: How can I make the display on Beamer to be bolder/stronger, at least like from latex2png??? Or should I just look for different Beamer template?? You can see here in my video on Youtube, ...
user avatar
3 votes
1 answer
45 views

Reversed arrow tips for \overleftarrow and \overrightarrow

The post Change arrow tip of \overleftarrow-Command tells me how to change the size of the tips of arrows generated with \overleftarrow and \overrightarrow. But how can I get a different tip all ...
user avatar
  • 31
3 votes
1 answer
55 views

Help to write a formula

I want to write this equation from the image. This is what I tried but I am getting an error about math mode only \begin{equation} v_\pi(s) = \mathbb{E}(G\textsubscript{t}\mid S\textsubscript{t} = s) ...
user avatar
0 votes
0 answers
27 views

Changing the colour of equations produce in LaTeXiT

I am using LaTeXiT on my Mac to produce things like equations (both singular and as align-environments) and matrices as images which I can then copy and paste into a PowerPoint presentation. I want ...
user avatar
4 votes
1 answer
189 views

How to limit scope of microtype's letterspacing command \textls to non-math environment?

Package microtype has the command \textls to manipulate letterspacing in an ad hoc manner. While its use is usually frowned upon by typographists, according to microtype's user manual (p 23 footnote), ...
user avatar
0 votes
1 answer
57 views

Bold headers in math mode

I am working in a scrreprt file and I would like to have two things: in chapter, section and subsection headers to show the math symbol in a bold font like the normal text to still then show those ...
user avatar
4 votes
1 answer
52 views

How can I pull a specific set of characters from another font in ConTeXt?

I'm using ConTeXt to typeset a long document, and I'm using the libertinus font. However, \mathcal{A} produces 𝒜 rather than a calligraphic 'A', like it does with other fonts. I can get a good ...
user avatar
  • 51
2 votes
1 answer
86 views

Who can write a package to call for upright Greek lowercase letters compatible with the computer modern italic ones? [closed]

Update Now some volunteer contacts me and the project begins. Thanks go to all the readers. Sometimes we need to call for upright Greek lowercase letters compatible with the computer modern italic ...
user avatar
  • 3,257
10 votes
2 answers
1k views

How to write correctly $|.|$

I'm sure this question is a duplicate, but I can't find the main question. If I write $|.|$ it doesn't appear with in my textbook, I wonder what is the correct way to do it. I'm using it to try to ...
user avatar
0 votes
0 answers
48 views

Define macro inside \mathchoice

When I'm in mathmode, I want to get whether I'm using displaystyle or textstyle and save it to a macro \mystyle To do so, I use \mathchoice and define \mystyle accordingly as follow: \documentclass{...
user avatar
0 votes
1 answer
26 views

Resize text in mathmode in a bend arrow

I want to change the size of a math text in a curved arrow, but whenever I manage to change the size, the text is no longer curved. My code is \documentclass[tikz, margin=3mm]{standalone} \...
user avatar
  • 237

1
2 3 4 5
181