Skip to main content

New answers tagged

2 votes
Accepted

Issue with `tcolorbox` record option together with math delimiters `\( \)` in the title

The code compiles if in the key record, #2 is replaced by \unexpanded{#2}. Then \(x\) can be used. \documentclass[10pt,a4paper,french]{book} \usepackage{babel} \usepackage[most]{tcolorbox} \...
matexmatics's user avatar
  • 5,389
4 votes

Create a new math symbol

Old question, but the given answer has the defect of forcing MnSymbol which is rarely desired. \documentclass{article} \usepackage{amsmath} \usepackage{graphicx} \NewDocumentCommand{\triangleLeft}{}{%...
egreg's user avatar
  • 1.1m
1 vote

Is there a LaTeX symbol for 'order'?

An additional possibility for "order" on this request that is worth disambiguating here is the symbol for the "precedence" relational operator or lexicographic order in formal ...
Eric's user avatar
  • 111
6 votes

How can I break an alignedat/gathered environment between pages?

I'd like to suggest that you reconsider insisting on using a single equation number to denote all rows of the multi-row equation environment. (I can't see a good reason for not numbering each row ...
Mico's user avatar
  • 515k
5 votes

Subscripts in fractions on an exponent look terrible

Bad notation, I'd say. Your readers won't be very happy. \RequirePackage{fix-cm} \documentclass[11pt]{article} \usepackage{amsmath} %\DeclareMathSizes{5}{5}{4}{3}% for 10pt \DeclareMathSizes{6}{6}{5}{...
egreg's user avatar
  • 1.1m
8 votes

Subscripts in fractions on an exponent look terrible

In order for $Q^{\frac{1}{n_K}}$ to have a chance to look decent, TeX would have to provide not just two but, in fact, three subscript depth layers. TeX's two basic subscript and superscript depth ...
Mico's user avatar
  • 515k
0 votes

how to write multiple overlapping underbraces

\begin{displaymath} \rlap{\ensuremath{\underbrace{\phantom{\underbrace{C}_{D}}}_{B}}} A\underbrace{C}_{D} \end{displaymath}
Deepali Kushwaha's user avatar
1 vote
Accepted

what can be the code of this series which takes 3 values

Use the cases environment. \begin{equation} \begin{cases} \binom{n}{k}\binom{D(\alpha-k)+n}{n} & \text{if } \alpha-k\geq0 \\ 0 & \text{if } \frac{-n}{D}\leq\alpha-k<0 \\ ...
invalidsyntax_'s user avatar
7 votes
Accepted

Improve spacing around equality = and other math relation symbols

TeX inserts \thickmuskip (math) glue around relation symbols and LaTeX sets, by default \thickmuskip=5mu plus 5mu If you reduce it, you should also take into account \medmuskip which is inserted ...
egreg's user avatar
  • 1.1m
1 vote

Avoid underset text overlaping

I did it \documentclass{article} \usepackage{amsmath} \usepackage{mathtools} \usepackage{calc} \newcommand{\lunderset}[2] {\underset { \parbox{\widthof{\scriptsize{#1}}}{\scriptsize{#1}}} { \parbox{\...
user3204810's user avatar
  • 1,539
1 vote

Avoid underset text overlaping

The problem is not \underset, it is \mathrlap the only purpose of that command is to make the text overLAP on the Right, which is what you show. If you must do this, I'd give yourself a bit more room ...
David Carlisle's user avatar
1 vote

Avoid underset text overlaping

Just for fun. It still can do nothing about text which is too wide for the box (unless you add hyphenation). \documentclass[14pt]{article} \usepackage{amsmath} \usepackage{mathtools} \usepackage{...
John Kormylo's user avatar
  • 81.2k
3 votes

Avoid underset text overlaping

I suggest you shift the text of the middle \lunderset directive down, by inserting a \substack directive. I can't help but remark that I don't find this setup easily readable. \documentclass[12pt]{...
Mico's user avatar
  • 515k
2 votes

Is there a customizable version of the `\boldmath` command?

I'd prefer to use semantic markup, rather than defaults: say \newcommand{\mm}[1]{\bm{#1}}% matrix \newcommand{\vv}[1]{\bm{#1}}% vector and in the body of the document you type $\mm{A}\vv{v}=\lambda\...
egreg's user avatar
  • 1.1m
3 votes
Accepted

Is there a customizable version of the `\boldmath` command?

You can adjust the mathcode of A and V to use bold italic \documentclass{article} \usepackage[a6paper, margin=0.25in]{geometry} \setlength{\parindent}{0pt} \pagestyle{empty} \DeclareSymbolFont{...
David Carlisle's user avatar
0 votes

How to make \left, \right pairs of delimiter work over multiple lines?

I recently wrote a longmath package that deals with the problem at the Lua level, so it works with lualatex. It allows you to have delimiter groups over multiple lines, or link delimiters in different ...
H-J Matschull's user avatar
1 vote

Types of mathversions in LaTeX

The text font used looks like Roboto, while the math font is the default MathJax TeX math font. I don't think the MathJax TeX .otf fonts can be used in LaTeX as they lack an OpenType Math table. But ...
Apoorv Potnis's user avatar
0 votes

How to make \left, \right pairs of delimiter work over multiple lines?

I came here from this recent question on the same topic, and even if this is an old question, and even if it is likely a LaTeX question, I think it might be useful for some people to have a ConTeXt ...
mickep's user avatar
  • 9,325
1 vote

Types of mathversions in LaTeX

The text font is Arial (see also using word editor) and the math font is Computern Modern. Compiling with XeLaTeX engine you will have: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \...
Sebastiano's user avatar
  • 56.7k
2 votes

Specific calligraphic font for lowercase g

For reference, if you use unicode maths fonts, unicode-aware engines like xetex or lualatex, then unicode-math package provides access to 𝒢 U+1D4A2 and 𝓖 U+1D4D6 with \mscrG and\mbfscrG. Direct ...
Cicada's user avatar
  • 71
1 vote

Specific calligraphic font for lowercase g

You could use free text/math fonts like newtxtext, newtxmath. I have added another option \rsfscr{G} that work under \DeclareMathAlphabet\rsfscr{U}{rsfso}{m}{n}. \documentclass[a4paper,12pt]{article} \...
Sebastiano's user avatar
  • 56.7k
6 votes
Accepted

Specific calligraphic font for lowercase g

It is an alternative glyph for capital Script G, provided by the professional (paid) MathTime Professional II fonts. If you have the complete set of fonts installed, you can get that symbol using \...
Apoorv Potnis's user avatar
0 votes

Problem when combining \widebar and \mathring

I'd not use that complicated code by Hendrik Vogt. \documentclass{article} \usepackage{amsmath} % see https://tex.stackexchange.com/a/364929/4427 \DeclareFontFamily{U}{mathx}{} \...
egreg's user avatar
  • 1.1m
3 votes

How to patch command to work differently in math mode?

I'd simply redefine the commands to yield \text{\stchr<number>} \documentclass{article} \usepackage[amsthm, libertine, varbb]{newtxmath} \usepackage{amsmath} \usepackage{siunitx} \usepackage[...
egreg's user avatar
  • 1.1m
4 votes

How to patch command to work differently in math mode?

The (few) commands that latex defines to work in text and math work by defining separate commands \textfoo and \mathfoo then defining \foo by \NewDocumentCommand\foo{}{\TextOrMath\textfoo\mathfoo} ...
David Carlisle's user avatar
1 vote

How to use a the tt font for mathrm?

You want to redeclare the operators symbol font. \documentclass{article} \usepackage[euler-digits,euler-hat-accent]{eulervm} \usepackage[T1]{fontenc} \renewcommand*\familydefault{\ttdefault} \...
egreg's user avatar
  • 1.1m
2 votes

Nice looking empty set?

You could use the package unicode-math to change a specific math symbol's font without changing other symbols'. Here is how I used: \usepackage{unicode-math} \setmathfont{latinmodern-math.otf} \...
Zoël Li's user avatar
1 vote

Creating a command to display blackboard font

Old LaTeX still kicking. \documentclass{article} \usepackage{amssymb} \makeatletter \@tfor\x:=ABCDEFGHIJKLMNOPQRSTUVWXYZ\do{% \ifcsname \x\x\endcsname \typeout{Not redefining \@...
user691586's user avatar
  • 2,298
4 votes

Creating a command to display blackboard font

An alternative which allows arbitrary lists of letters or ranges. \documentclass{article} \usepackage{pgffor} \usepackage{amsfonts} \def\batchdef#1#2#3{% \def\processletter##1{\expandafter\gdef\...
mxybi's user avatar
  • 41
0 votes

Preventing Ångström symbol being italicised in pythontex

I presume the question is about creating a string for something like a matplotlib label, where there is a latex interpreter so you can use a latex environment by putting text between $$. The suggested ...
Laurence Lurio's user avatar
13 votes

Creating a command to display blackboard font

\documentclass{article} \usepackage{amssymb} \ExplSyntaxOn \int_step_inline:nnn { 1 } { 26 } { \cs_if_exist:cTF { \int_to_Alph:n {#1} \int_to_Alph:n {#1} } { \iow_term:e { Not~redefining~\...
egreg's user avatar
  • 1.1m
1 vote

Defining a functional map

Nest aligned[t] inside aligned inside equation. I provide two realizations; in the bottom one there are a couple of improvements: the arrows are shorter (and nicer); the parentheses around [0,1],\RR ...
egreg's user avatar
  • 1.1m
3 votes

Defining a functional map

Using alignat enviroment and text and math font Cambria with XeLaTeX engine. \documentclass[12pt]{article} \usepackage{fontspec,unicode-math} \setmainfont{Cambria} \setmathfont{Cambria Math} \begin{...
Sebastiano's user avatar
  • 56.7k
7 votes
Accepted

Defining a functional map

Use aligned inside align*: \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{align*} \Psi: C([0,1],\mathbb{R}) &\longrightarrow C([0,1],\mathbb{R}) \\ ...
Stephen's user avatar
  • 4,484

Top 50 recent answers are included