Search Results
| Search type | Search syntax |
|---|---|
| Tags | [tag] |
| Exact | "words here" |
| Author |
user:1234 user:me (yours) |
| Score |
score:3 (3+) score:0 (none) |
| Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
| Views | views:250 |
| Code | code:"if (foo != bar)" |
| Sections |
title:apples body:"apples oranges" |
| URL | url:"*.example.com" |
| Saves | in:saves |
| Status |
closed:yes duplicate:no migrated:no wiki:no |
| Types |
is:question is:answer |
| Exclude |
-[tag] -apples |
| For more details on advanced search visit our help page | |
Results tagged with math-mode
Search options not deleted
user 202780
{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}.
1
vote
Is there a way to write custom fractions in this format: ½, ⅘, ⅞, etc.?
You can use the nicefrac package to do this.
2
votes
Controlling scope of \displaystyle
There's a flaw in the premise of the question: \displaystyle cannot be used in the preamble of the document (or outside of math mode, for that matter—\displaystyle $\frac12$ will give an error).
That …
2
votes
Accepted
How to write limit exactly below the lim?
The placement of limits for operators is dependent on whether you're in display math or in-line math. The simplest thing is to write, e.g.,
\[
\lim_{(x,y)\to(x_{0},y_{0})} f(x, y) =
\lim_{(x,y)\to …
3
votes
Draw small rounded and colored boxes of same height in math environment
Try creating your own \mybox command as follows:
\NewDocumentCommand{\mybox}{ m } % ❶
{\boxed{\mathstrut#1}} % ❷
(If you get an error with the line marked ❶, you have an old LaTeX. You can either c …
5
votes
0
answers
73
views
Inconsistency between equation and \[ \] [closed]
While answering another question, I noticed that the definition for \begin{equation} is:
\def\equation{$$\refstepcounter{equation}}
Shouldn't \begin{equation} include the following like unnumbered di …
6
votes
How to write the numerator like shown in the image
The simplest approach to this is to use a single-column tabular to stack up the text with \left( and \right) surrounding each of these tabulars:
\[
\mbox{mass \% element}=\frac{
\left(
\be …
2
votes
Mingled math and text in math mode
\{x \in \mathbb Z : \text{$x$ is even}\}
is semantically correct and preferable.
The output of both options will be identical in terms of spacing, but semantically, the x in “x is even” belongs to th …
2
votes
Accepted
How can I determine if a formula is out of margin?
If you put \overfullrule=1pt into your document preamble, LaTeX will put a bar next to any overfull boxes which will make finding your too-wide formulas in the PDF easier. As campa noted in a comment, …
0
votes
Overriding the look of a single character?
You're going to need to descend to some low-level TeX to make this work. The command you care about is \mathcode which is described in chapter 17 of The TeXbook. I don't have my copy handy to give you …
3
votes
Accepted
Can we have a blank line while inside math mode using $$
(a) You should not use $$ in LaTeX. Use \[...\] or \begin{displaymath}...\end{displaymath} instead.
(2) new lines are not a problem in math mode.
(iii) blank lines (e.g., what you use to mark paragrap …
1
vote
Align numerator of fraction to the center
To get a zero-width ², you'll want to define
\newcommand\zwe[1]{\rlap{${}^{#1}$}}
\[
\frac{\pi\zwe{2}}{6}
\]
although this will have the superscript extending beyond the fraction bar. An alternati …
4
votes
Punctuation character following a '\left(...\right)^3' group?
If you’re writing a long number with commas as place separators, you should write those commas using {,} instead of ,. The former gives “ordinary” spacing so you won't have the extra space between th …
1
vote
Add background colour to Theorem Header only
OK, first let’s fix some of the glaring issues here.
The \makeatletter and \makeatother around your \theoremstyle are unnecessary. Delete them. Kill them with fire.
It seems to me a bug that \newthe …
9
votes
Accepted
Backend reasoning on font size in math mode
To expand on David's answer, what \DeclareMathSizes does is define a macro S@XX where XX is the current type size in points, e.g.,
\S@10 = macro: -> {
\gdef\tf@size{10}
\gdef\sf@size{7}
\ …
3
votes
newcommand returns math mode error
With \newcommand, I get
! LaTeX Error: Command \deg already defined.
Or name \end... illegal, see p.192 of the manual.
which I'm assuming you ignored when running with that version of …