Math Mode - Forward Slash Compiles As Equal To Symbol - TeX - LaTeX Stack Exchange
Math Mode - Forward Slash Compiles As Equal To Symbol - TeX - LaTeX Stack Exchange
TeX - LaTeX Stack Exchange is a question and Anybody can ask a question
answer site for users of TeX, LaTeX, ConTeXt,
and related typesetting systems. It only takes a
minute to sign up. Anybody can answer
Sign up to join this community The best answers are voted up and
rise to the top
\documentclass[24pt]{article}
\usepackage[utf8]{inputenc}
4 \usepackage{amsmath}
\DeclareSymbolFont{letters}{OT1}{cmr}{m}{n} %The Culprit line
\title{sadfasdf}
\author{asdfsdf }
Your privacy
\begin{document}
By clicking “Accept all cookies”, you agree Stack Exchange
can store cookies on your device and disclose information in
accordance with our Cookie Policy.
\maketitle
\section{Introduction}
Accept all cookies
\begin{equation}
Customize
E_{A_{B}\mathbin settings
{/}B_X} \\
E_{A_{B}/B_X} \\
\end{equation}
https://tex.stackexchange.com/questions/371261/forward-slash-compiles-as-equal-to-symbol?rq=1 1/5
22/5/2021 math mode - Forward slash compiles as equal to symbol - TeX - LaTeX Stack Exchange
\end{document}
When I compile the above, "/" becomes "=" ({B}/B compiles as {B}=B) due to the Declaresymbolfont setting. Can someone help?
Thanks.
Share Improve this question Follow edited May 23 '17 at 15:37 asked May 23 '17 at 15:33
David Carlisle gogo
207 2 8
608k 52 1371
2162
If your aim is to have upright letters for math variables, it's better to use mathastext . – egreg May 23 '17 at 15:37
You have not said what you want to do, the DeclareSymbol Font declaration is wrong for a number of reasons, so just deleting it is one option but
presumably there was an intended effect. – David Carlisle May 23 '17 at 15:40
Since I have many math expressions in my document, I didn't want to use "mathrm" everytime I use $"math_experssions"$. So, I used declaresymbol
font to keep all math expressions upright. So, I guess, I'll try mathastext package. But is there a way to do this without any new package? – gogo
May 23 '17 at 15:46
Your privacy
1 Answer
By clicking “Accept all cookies”, you agree Stack Exchange Active Oldest Votes
can store cookies on your device and disclose information in
accordance with our Cookie Policy.
There are good reasons for typesetting letters in math mode in italic shape. However, there's a package for typesetting them upright:
Accept all cookies
6 \documentclass{article}
\usepackage{mathastext}
Customize settings
\begin{document}
Th i bl $ $ i i di ti i h bl f l l tt
https://tex.stackexchange.com/questions/371261/forward-slash-compiles-as-equal-to-symbol?rq=1 2/5
22/5/2021 math mode - Forward slash compiles as equal to symbol - TeX - LaTeX Stack Exchange
The variable $a$ is indistinguishable from a normal letter
\begin{equation}
E_{A_{B}/B_X}
\end{equation}
\end{document}
Without a package:
\documentclass{article}
\DeclareMathSymbol{a}{\mathalpha}{operators}{`a}
\DeclareMathSymbol{b}{\mathalpha}{operators}{`b}
\DeclareMathSymbol{c}{\mathalpha}{operators}{`c}
\DeclareMathSymbol{d}{\mathalpha}{operators}{`d}
\DeclareMathSymbol{e}{\mathalpha}{operators}{`e}
\DeclareMathSymbol{f}{\mathalpha}{operators}{`f}
\DeclareMathSymbol{g}{\mathalpha}{operators}{`g}
\DeclareMathSymbol{h}{\mathalpha}{operators}{`h}
Your\DeclareMathSymbol
privacy {i}{\mathalpha}{operators}{`i}
\DeclareMathSymbol{j}{\mathalpha}{operators}{`j}
By clicking “Accept all cookies”, you agree Stack Exchange
\DeclareMathSymbol{k}{\mathalpha}{operators}{`k}
can store cookies on your device and disclose information in
\DeclareMathSymbol{l}{\mathalpha}{operators}{`l}
accordance with our Cookie Policy.
\DeclareMathSymbol{m}{\mathalpha}{operators}{`m}
\DeclareMathSymbol{n}{\mathalpha}{operators}{`n}
Accept all cookies
\DeclareMathSymbol{o}{\mathalpha}{operators}{`o}
\DeclareMathSymbol{p}{\mathalpha}{operators}{`p}
Customize
\DeclareMathSymbol settings }{operators}{`q}
{q}{\mathalpha
\DeclareMathSymbol{r}{\mathalpha}{operators}{`r}
\DeclareMathSymbol{s}{\mathalpha}{operators}{`s}
\DeclareMathSymbol{t}{\mathalpha}{operators}{`t}
https://tex.stackexchange.com/questions/371261/forward-slash-compiles-as-equal-to-symbol?rq=1 3/5
22/5/2021 math mode - Forward slash compiles as equal to symbol - TeX - LaTeX Stack Exchange
\DeclareMathSymbol{u}{\mathalpha}{operators}{`u}
\DeclareMathSymbol{v}{\mathalpha}{operators}{`v}
\DeclareMathSymbol{w}{\mathalpha}{operators}{`w}
\DeclareMathSymbol{x}{\mathalpha}{operators}{`x}
\DeclareMathSymbol{y}{\mathalpha}{operators}{`y}
\DeclareMathSymbol{z}{\mathalpha}{operators}{`z}
\DeclareMathSymbol{A}{\mathalpha}{operators}{`A}
\DeclareMathSymbol{B}{\mathalpha}{operators}{`B}
\DeclareMathSymbol{C}{\mathalpha}{operators}{`C}
\DeclareMathSymbol{D}{\mathalpha}{operators}{`D}
\DeclareMathSymbol{E}{\mathalpha}{operators}{`E}
\DeclareMathSymbol{F}{\mathalpha}{operators}{`F}
\DeclareMathSymbol{G}{\mathalpha}{operators}{`G}
\DeclareMathSymbol{H}{\mathalpha}{operators}{`H}
\DeclareMathSymbol{I}{\mathalpha}{operators}{`I}
\DeclareMathSymbol{J}{\mathalpha}{operators}{`J}
\DeclareMathSymbol{K}{\mathalpha}{operators}{`K}
\DeclareMathSymbol{L}{\mathalpha}{operators}{`L}
\DeclareMathSymbol{M}{\mathalpha}{operators}{`M}
\DeclareMathSymbol{N}{\mathalpha}{operators}{`N}
\DeclareMathSymbol{O}{\mathalpha}{operators}{`O}
\DeclareMathSymbol{P}{\mathalpha}{operators}{`P}
\DeclareMathSymbol{Q}{\mathalpha}{operators}{`Q}
\DeclareMathSymbol{R}{\mathalpha}{operators}{`R}
\DeclareMathSymbol{S}{\mathalpha}{operators}{`S}
\DeclareMathSymbol{T}{\mathalpha}{operators}{`T}
\DeclareMathSymbol{U}{\mathalpha}{operators}{`U}
Your\DeclareMathSymbol
privacy {V}{\mathalpha}{operators}{`V}
\DeclareMathSymbol
By clicking {W}{\mathalpha
“Accept all cookies”, you agree}{operators}{`W}
Stack Exchange
can store cookies on your{X}{
\DeclareMathSymbol device and disclose
\mathalpha information in
}{operators}{`X}
accordance with our Cookie
\DeclareMathSymbol {Y}{Policy.
\mathalpha }{operators}{`Y}
\DeclareMathSymbol{Z}{\mathalpha}{operators}{`Z}
\begin{document}
Customize settings
The variable $a$ is indistinguishable from a normal letter
\begin{equation}
E {A {B}/B X}
https://tex.stackexchange.com/questions/371261/forward-slash-compiles-as-equal-to-symbol?rq=1 4/5
22/5/2021 math mode - Forward slash compiles as equal to symbol - TeX - LaTeX Stack Exchange
E_{A_{B}/B_X}
\end{equation}
\end{document}
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange
can store cookies on your device and disclose information in
accordance with our Cookie Policy.
Customize settings
https://tex.stackexchange.com/questions/371261/forward-slash-compiles-as-equal-to-symbol?rq=1 5/5