Mastering latex fraction styles for precise mathematical

Table of Contents
- Foundational LaTeX Fraction Commands and Structural Representation
- Basic Fraction Commands and Their Structural Differences
- Comparison Table: Syntax, Use Cases, and Visual Output
- Nesting Fractions and Handling Mixed Operators
- Common Pitfalls and Best Practices
- Advanced Fraction Styling and Customization in LaTeX
- Modifying Fraction Line Thickness and Style
- Dynamic Fraction Scaling with `\mathchoice`
- Fine-Tuning Fraction Spacing with `\setlength` and `\renewcommand`
- Using `\sfrac` for Small Inline Fractions
- Fraction Display in Mathematical Equations
- Visual Comparison: Inline (`\frac`) vs. Display (`\dfrac`) Fractions
- Vertical Alignment of Fractions in Multi-Line Equations
- Formatting Fractions in Numbered Equations
- Readability Guidelines for Fractions in Complex Expressions
- Fraction Handling in Specialized Contexts
- Fractions in Matrices and Array Environments
- Stacked Fractions with Custom Delimiters
- Enhanced Fraction Display with Specialized Packages
- Fractions in Verbatim and Code Environments
- Handling Radicals and Mixed Fractions
- Fraction Accessibility and Export Considerations in LaTeX
- Semantic Markup and ARIA Attributes for Screen Reader Compatibility
- Compiler Settings for Fraction Rendering in Exported Formats
- Comparative Analysis of Fraction Clarity Across Mathematical Fonts
- Generating High-Resolution Fraction Previews
- Troubleshooting and Optimization Techniques for LaTeX Fractions
- Common LaTeX Errors in Fraction Handling and Corrected Snippets
- Optimizing Fraction Rendering Performance in Large Documents
- Debugging Fraction Misalignment or Scaling Issues in Custom Environments
- Critical LaTeX Log Warnings for Fraction-Related Layout Shifts
LaTeX remains the gold standard for mathematical documentation, where fractions serve as fundamental building blocks in equations, proofs, and technical writing. From basic `\frac` constructs to advanced customizations like `\sfrac` or `\genfrac`, understanding fraction styles ensures clarity and professionalism in output. This guide dissects syntax, styling techniques, and contextual applications—from inline equations to matrices—while addressing accessibility and troubleshooting for seamless integration across formats.
The precision of LaTeX fraction rendering extends beyond aesthetics, influencing readability in complex expressions and compatibility with screen readers or exported media. By exploring foundational commands alongside niche packages (e.g., `nccmath`, `mathtools`), users gain control over alignment, scaling, and visual hierarchy. Whether optimizing for performance in large documents or adapting to specialized environments like verbatim code, this resource equips practitioners with actionable insights to elevate mathematical communication.

Foundational LaTeX Fraction Commands and Structural Representation
LaTeX provides specialized commands for rendering mathematical fractions, each optimized for distinct use cases—ranging from inline text to display-style equations. Understanding these commands ensures precision in typesetting, particularly in academic, technical, and scientific documents. The core distinction lies in their scaling behavior, output context (inline vs. display), and compatibility with nested structures. Below, a structured breakdown of the primary fraction commands (`\frac`, `\dfrac`, `\tfrac`) and their applications is provided, alongside practical guidelines for nesting and avoiding common errors.
Basic Fraction Commands and Their Structural Differences
The three primary LaTeX fraction commands differ fundamentally in their scaling and rendering behavior:
- `\frac{num}{den}`: The default fraction command, designed for display-style fractions (e.g., in standalone equations). It scales the numerator and denominator proportionally to the current font size, ensuring visual consistency with surrounding mathematical expressions.
Key Structural Difference:
The `\frac` command adheres to the display math paradigm, where fractions are scaled to match the surrounding environment (e.g., `\displaystyle`). In contrast, `\dfrac` and `\tfrac` enforce text math scaling (`\textstyle`), ideal for inline usage to avoid visual disruption.
Comparison Table: Syntax, Use Cases, and Visual Output
| Command | Syntax | Use Case | Scaling Behavior | Example Output |
|---|---|---|---|---|
| `\frac{num}{den}` | `\frac{a}{b}` | Display math (e.g., standalone equations, large fractions). | Proportional to `\displaystyle` (larger, centered bars). |
|
| `\dfrac{num}{den}` | `\dfrac{a}{b}` (requires `mathtools`) | Inline text fractions (e.g., within paragraphs). | Proportional to `\textstyle` (smaller, compact). |
|
| `\tfrac{num}{den}` | `\tfrac{a}{b}` (requires `mathtools`) | Inline text fractions (alternative to `\dfrac`). | Identical to `\dfrac` but with package-specific optimizations. |
|
Nesting Fractions and Handling Mixed Operators
Fractions can be nested to represent complex rational expressions, though improper nesting may degrade readability or introduce compilation errors. LaTeX handles nested fractions via recursive application of the `\frac` command, provided each fraction is enclosed in braces `{}`.Example of Proper Nesting:
```latex
\frac{a}{\frac{b}{c}} \quad \text{or} \quad \frac{\frac{a}{b}}{c}
```
Output:
Edge Cases and Solutions:\( \frac{a}{\frac{b}{c}} \)
\( \frac{\frac{a}{b}}{c} \)
1. Mixed Operators:
When fractions include operators (e.g., `+`, `-`, `x`), enclose the entire numerator/denominator in braces to avoid ambiguity:
```latex
\frac{a + b}{\frac{c - d}{e}} \quad \text{(Correct)}
\frac{a + b}{\frac{c - d}/e} \quad \text{(Error: Missing braces)}
```
2. Horizontal Spacing:
Use `\quad` or `\qquad` to separate nested fractions for clarity:
```latex
\frac{a}{\frac{b}{c}} \quad \text{vs.} \quad \frac{a}{\frac{b}{c}} \quad \text{(overlapping bars)}
```
3. Vertical Alignment:
For deep nesting (e.g., three levels), consider rewriting the expression using parentheses or `\left`/`\right` to improve alignment:
```latex
\frac{a}{\left(\frac{b}{\frac{c}{d}}\right)}
```
Common Pitfalls and Best Practices
Incorrect usage of fraction commands often stems from misunderstandings of LaTeX’s parsing rules or scaling expectations. Below are critical errors and their resolutions:Best Practice Summary:1. Missing Braces: Omitting braces around multi-term numerators/denominators leads to syntax errors or unintended grouping. For example, `\frac{a + b}{c}` compiles, but `\frac{a + b}{c + d}` requires braces to group terms correctly.
2. Improper Scaling: Using `\frac` in inline text forces display-style scaling, creating visual dissonance. Always prefer `\dfrac` or `\tfrac` in paragraphs.
3. Package Dependency Oversights: `\dfrac` and `\tfrac` require the `mathtools` package (an extension of `amsmath`). Failing to include `\usepackage{mathtools}` results in undefined command errors.
4. Overlapping Fraction Bars: Deeply nested fractions (e.g., `\frac{a}{\frac{b}{\frac{c}{d}}}`) may produce overlapping bars. Mitigate this by adding explicit spacing (`\quad`) or restructuring the expression.
5. Mixed Math Modes: Placing fractions in environments like `align*` or `gather` without explicit scaling (e.g., `\displaystyle`) can yield inconsistent sizing. Use `\dfrac` within these environments to enforce uniformity.
Advanced Fraction Styling and Customization in LaTeX
LaTeX’s default fraction formatting (`\frac`) adheres to a standardized mathematical presentation, but advanced customization allows for typographic refinement tailored to specific document requirements. This section explores techniques to modify fraction line thickness, style, and alignment using specialized packages, while also addressing dynamic scaling for subscripts and inline contexts. Customization extends beyond aesthetics to improve readability in complex equations or specialized publications, such as physics journals or engineering manuals.The `amsmath` and `nccmath` packages provide robust tools for overriding default behaviors, enabling precise control over spacing, line styles, and size scaling. Below, structured procedures detail how to implement these modifications systematically, ensuring consistency across document classes.
Modifying Fraction Line Thickness and Style
The default fraction bar in LaTeX is a thin solid line, but customization is achievable through package-specific commands. The `nccmath` package introduces `\medmath` and `\thinmath` environments, which adjust the thickness of mathematical symbols, including fraction bars. For explicit control, the `\setlength` command modifies the `\thinmuskip` and `\thickmuskip` parameters, which influence the visual weight of the bar.To create dashed or solid fraction lines, the `amsmath` package does not natively support this feature, but the `tikz` package can overlay a custom line. Below is a LaTeX snippet demonstrating both approaches:
\documentclass{article}
\usepackage{amsmath, nccmath, tikz}
% Custom dashed fraction line using tikz (requires manual placement)
\newcommand{\dashedfrac}[2]{\mathchoice
{\tikz[baseline={([yshift=-0.7ex]current bounding box.center)}]{%
\node[inner sep=0pt, outer sep=0pt] (a) {$\scriptstyle#1$};%
\node[inner sep=0pt, outer sep=0pt, right=0.5em of a] (b) {$\scriptstyle#2$};%
\draw[dashed, thick] (a.south west) -- (b.south east);}}
{\tikz[baseline={([yshift=-0.7ex]current bounding box.center)}]{%
\node[inner sep=0pt, outer sep=0pt] (a) {$\scriptstyle#1$};%
\node[inner sep=0pt, outer sep=0pt, right=0.5em of a] (b) {$\scriptstyle#2$};%
\draw[dashed, thick] (a.south west) -- (b.south east);}}
{\tikz[baseline={([yshift=-0.7ex]current bounding box.center)}]{%
\node[inner sep=0pt, outer sep=0pt] (a) {$\scriptscriptstyle#1$};%
\node[inner sep=0pt, outer sep=0pt, right=0.5em of a] (b) {$\scriptscriptstyle#2$};%
\draw[dashed, thick] (a.south west) -- (b.south east);}}
{\tikz[baseline={([yshift=-0.7ex]current bounding box.center)}]{%
\node[inner sep=0pt, outer sep=0pt] (a) {$\scriptscriptstyle#1$};%
\node[inner sep=0pt, outer sep=0pt, right=0.5em of a] (b) {$\scriptscriptstyle#2$};%
\draw[dashed, thick] (a.south west) -- (b.south east);}}
}
% Adjust fraction bar thickness via nccmath
\setlength{\thinmuskip}{0.4em} % Reduces spacing around fraction bar
\setlength{\thickmuskip}{0.6em} % Increases spacing for bold fractions
\begin{document}
Standard fraction: $\frac{a}{b}$
Custom dashed fraction: $\dashedfrac{a}{b}$
Thicker fraction bar: $\mathchoice{\thickfrac{a}{b}}{\thickfrac{a}{b}}{\thickfrac{a}{b}}{\thickfrac{a}{b}}$
\end{document}
Key Considerations:
Dynamic Fraction Scaling with `\mathchoice`
The `\frac` command scales its numerator and denominator based on the surrounding context (e.g., subscripts, superscripts, or display math). However, this scaling can lead to inconsistencies in complex expressions. The `\mathchoice` construct allows explicit control over fraction rendering across four text sizes:1. Display style (e.g., in `\[ ... \]`).
2. Text style (default inline math).
3. Script style (subscripts/superscripts).
4. Scriptscript style (nested subscripts/superscripts).
Example: Custom `\dfrac`-like Command for Subscripts
The `\dfrac` command from `amsmath` fixes fractions in display style, but subscripts often require a smaller, manually scaled version. Below is a `\mathchoice`-based implementation:
\newcommand{\subfrac}[2]{%
\mathchoice
{\displaystyle\frac{#1}{#2}} % Display style
{\textstyle\frac{#1}{#2}} % Text style
{\scriptstyle\frac{#1}{#2}} % Script style (subscripts)
{\scriptscriptstyle\frac{#1}{#2}} % Scriptscript style
}
% Usage in subscripts:
$E = mc^2 \left( \subfrac{1}{\sqrt{1 - \frac{v^2}{c^2}}} \right)$
Advantages of `\mathchoice`:
Fine-Tuning Fraction Spacing with `\setlength` and `\renewcommand`
Default LaTeX spacing around fraction bars may not suit all document designs. The `\setlength` command modifies internal parameters, while `\renewcommand` redefines spacing-related macros. Critical parameters include:- `\thinmuskip`: Horizontal space around thin symbols (e.g., fraction bars in `\frac`).
Step-by-Step Procedure for Spacing Adjustment:
1. Identify Target Parameters:
Use `\showthe\thinmuskip` in a test document to measure current values (default: `3mu` for `\thinmuskip`).
2. Modify Spacing Globally:
\setlength{\thinmuskip}{0.3em} % Reduces space around fraction bars
\setlength{\thickmuskip}{0.5em} % Increases space for bold fractions
3. Override Specific Commands:
Redefine `\frac` to include custom spacing:
\renewcommand{\frac}[2]{\mathchoice
{\displaystyle\kern0.1em#1\kern0.1em}{\textstyle#1}{#1}{#1}%
\kern0.05em/\kern0.05em%
{\displaystyle\kern0.1em#2\kern0.1em}{\textstyle#2}{#2}{#2}}
4. Test in Contexts:
Verify adjustments in inline, display, and script modes:
$f(x) = \frac{a}{b} \quad \text{vs.} \quad f(x) = \frac{a}{b}_{\text{subscript}}$
Caveats:
Using `\sfrac` for Small Inline Fractions
The `\sfrac` command from `amsmath` produces small fractions optimized for inline math mode, particularly in running text or subscripts. Unlike `\frac`, which scales dynamically, `\sfrac` fixes the fraction size to a compact, script-style format.Advantages Over `\frac`:

Fraction Display in Mathematical Equations
Mathematical fractions in LaTeX serve as fundamental components in equations, where their presentation—whether inline or in display mode—directly impacts readability and formal correctness. The choice between `\frac` (inline) and `\dfrac` (display-style) affects scaling, alignment, and visual hierarchy, particularly in multi-line expressions or complex derivations. Proper alignment and grouping further enhance clarity, ensuring fractions are interpreted unambiguously in structured environments like `aligned` or `cases`. Below, the visual distinctions, alignment techniques, and best practices for integrating fractions into numbered equations are examined.Visual Comparison: Inline (`\frac`) vs. Display (`\dfrac`) Fractions
The primary distinction between `\frac` and `\dfrac` lies in their scaling and use context:The following table contrasts their visual rendering in a sample equation:
| Inline (`\frac`) | Display (`\dfrac`) |
|---|---|
| `$\frac{a}{b} + \frac{c}{d}$` renders as: $\frac{a}{b} + \frac{c}{d}$ | `$$\dfrac{a}{b} + \dfrac{c}{d}$$` renders as: $$\dfrac{a}{b} + \dfrac{c}{d}$$ |
| Observations: Fractions appear smaller; alignment with surrounding terms may require manual adjustment. | Observations: Uniform scaling; vertical spacing enhances separation from adjacent terms. |
Vertical Alignment of Fractions in Multi-Line Equations
Fractions in multi-line equations must align vertically to maintain structural integrity. LaTeX provides environments like `aligned` (from `amsmath`) and `cases` to achieve this:- `aligned` Environment: Ideal for aligning fractions with other mathematical symbols (e.g., `=`, `+`) across lines. Each line begins with `&` for alignment points, followed by `\\` for line breaks.
```latex
\begin{aligned}
\dfrac{dx}{dy} &= \dfrac{f'(x)}{g'(x)} \\
\int \dfrac{1}{x} \, dx &= \ln|x| + C
\end{aligned}
```
Result:
```
\dfrac{dx}{dy} &= \dfrac{f'(x)}{g'(x)}
\int \dfrac{1}{x} \, dx &= \ln|x| + C
```
- `cases` Environment: Useful for piecewise functions or systems where fractions appear in distinct cases. Alignment is implicit at the `&` marker.
```latex
\begin{cases}
f(x) = \dfrac{1}{x} & \text{for } x > 0 \\
f(x) = \dfrac{-1}{x} & \text{for } x < 0
\end{cases}
```
Result:
```
\begin{cases}
f(x) = \dfrac{1}{x} & \text{for } x > 0 \\
f(x) = \dfrac{-1}{x} & \text{for } x < 0
\end{cases}
```
Key Consideration: In both environments, fractions should be enclosed in `\dfrac` to ensure consistent scaling, especially when mixed with other operators or variables.
Formatting Fractions in Numbered Equations
Numbered equations (via `equation` environment) require fractions to be clearly distinguished from surrounding terms. The following example demonstrates integration of fractions with subscripts, superscripts, and alignment:```latex
\begin{equation}
E = \dfrac{1}{2}mv^2 + \dfrac{GMm}{r} + \dfrac{k}{2}x^2
\end{equation}
```
Rendered Output:
```
E = \dfrac{1}{2}mv^2 + \dfrac{GMm}{r} + \dfrac{k}{2}x^2
```
For equations with subscripts or superscripts, ensure fractions are grouped with parentheses to avoid ambiguity:
```latex
\begin{equation}
\left( \dfrac{\partial f}{\partial x} \right)_y = \dfrac{1}{x} \ln\left( \dfrac{y}{x} \right)
\end{equation}
```
Rendered Output:
```
\left( \dfrac{\partial f}{\partial x} \right)_y = \dfrac{1}{x} \ln\left( \dfrac{y}{x} \right)
```
Best Practices for Grouping:
Readability Guidelines for Fractions in Complex Expressions
Best Practices for Fraction Readability:Example of Poor vs. Improved Readability:
1. Consistent Styling: Use `\dfrac` in display equations and `\frac` only in inline text to maintain visual hierarchy.
2. Parenthetical Grouping: Enclose fractions in parentheses or delimiters (e.g., `\left[ \dfrac{a}{b} \right]`) when they appear as subscripts/superscripts or within larger operators (e.g., `\sum`, `\int`).
3. Vertical Spacing: In multi-line equations, separate fractions from adjacent terms with `\\[0.5em]` or `\vspace` if alignment environments (e.g., `aligned`) are insufficient.
4. Avoid Nested Fractions: Simplify expressions like `\dfrac{a}{\dfrac{b}{c}}` to `\dfrac{a \cdot c}{b}` unless the nested form is semantically meaningful (e.g., in probability distributions).
5. Alignment with Operators: Ensure the numerator/denominator of fractions align vertically with other operators (e.g., `+`, `=`), using `aligned` or `split` environments for fine-tuned control.
\begin{aligned}
a &= \dfrac{b}{c} + \dfrac{d}{e} \\
&= \dfrac{be + cd}{ce}
\end{aligned}
```
(aligned for clarity in multi-step derivations).
Fraction Handling in Specialized Contexts
Fractions in LaTeX extend beyond basic mathematical expressions and often require precise rendering within complex structures such as matrices, integrals, or code environments. Proper alignment, scaling, and contextual adaptation ensure clarity and professionalism in technical documents. This section explores advanced techniques for integrating fractions into specialized contexts, including matrices, stacked fractions, and verbatim environments, while leveraging auxiliary packages to enhance typographic control.The effective use of fractions in specialized contexts demands attention to structural integrity, visual consistency, and compatibility with surrounding elements. Whether aligning fractions within matrices, customizing delimiters for stacked fractions, or preserving LaTeX parsing in code listings, these methods ensure fractions remain mathematically accurate and aesthetically coherent.
Fractions in Matrices and Array Environments
Matrices (`\begin{pmatrix}`, `\begin{bmatrix}`) and arrays (`\begin{array}`) frequently incorporate fractions, requiring careful scaling and alignment to maintain readability. Fractions in matrices should scale proportionally to avoid disproportionate vertical or horizontal spacing, which can disrupt the matrix’s symmetry.To achieve this, use the `\scalebox` command from the `graphicx` package to adjust the size of fractions uniformly:
\usepackage{graphicx}
\begin{pmatrix}
\scalebox{0.8}{\frac{a}{b}} & \frac{c}{d} \\
\frac{e}{f} & \scalebox{0.8}{\frac{g}{h}}
\end{pmatrix}
For mixed fractions (e.g., `1 \frac{1}{2}`), employ the `\dfrac` command from `mathtools` to ensure proper scaling within matrix entries:
\begin{pmatrix}
1 \dfrac{1}{2} & \dfrac{x}{y} \\
\sqrt{\dfrac{a}{b}} & \dfrac{\partial f}{\partial x}
\end{pmatrix}
Key Considerations:
\begin{array}{ccc}
\dfrac{a}{b} & \dfrac{c}{d} & \dfrac{e}{f} \\
\dfrac{g}{h} & \dfrac{i}{j} & \dfrac{k}{l}
\end{array}
Stacked Fractions with Custom Delimiters
Stacked fractions (e.g., complex fractions or continued fractions) require precise vertical alignment and customizable delimiters. The `\genfrac` command from `amsmath` provides fine-grained control over fraction styling, including delimiters, rule thickness, and spacing.Basic Stacked Fraction:
\genfrac{}{}{0pt}{}{a}{b+c} \quad \text{over} \quad \genfrac{}{}{0pt}{}{d}{e}
Custom Delimiters:
To replace default parentheses with brackets or vertical bars, specify delimiters as the first argument:
\genfrac{[}{]}{0pt}{}{a}{b+c} \quad \text{or} \quad \genfrac{|}{|}{0pt}{}{d}{e}
Advanced Stacking with `\tfrac`:
For display-style fractions within text (e.g., in limits or integrals), use `\tfrac` to avoid excessive scaling:
\lim_{x \to \tfrac{a}{b}} f(x)
Example with Radicals:
Stacked fractions often appear with radicals. Use `\sqrt` in conjunction with `\genfrac`:
\genfrac{}{}{0pt}{}{\sqrt{a + b}}{\sqrt{c - d}}
Enhanced Fraction Display with Specialized Packages
Certain LaTeX packages optimize fraction rendering in integrals, sums, and limits, ensuring clarity and adherence to mathematical conventions.Relevant Packages:
-
mathtools: Extends `amsmath` with commands like `\dfrac` (display-style) and `\tfrac` (text-style) for consistent scaling. Also provides `\sfrac` for small fractions in text.\usepackage{mathtools}enables\dfrac{a}{b}in display math and\tfrac{a}{b}in inline math. -
esint: Customizes integral symbols (e.g., `\iint`, `\iiint`) and improves fraction alignment within limits:\iint\limits_{x \to \tfrac{a}{b}} f(x,y) \,dx\,dyensures proper spacing around stacked fractions. -
physics: Simplifies notation for partial derivatives and fractions in physics contexts, e.g.,\pdv{f}{x}with implicit fractions. -
bm(bold math): Bold fractions in matrices or vectors:\bm{\begin{pmatrix} \frac{a}{\mathbf{b}} & \frac{\mathbf{c}}{d} \end{pmatrix}}
For sums or limits containing fractions, use `\limits` to control placement:
\sum_{\substack{1 \leq i \leq n \\ \frac{a_i}{b_i} > 0}} x_i
The `nccmath` package further refines this with `\medmath` for medium-sized fractions in sums.
Fractions in Verbatim and Code Environments
Fractions in verbatim environments (e.g., `\texttt`, `\lstinline`) or code listings must be escaped to prevent LaTeX parsing errors. Use `\verb` or `\lstset` to preserve literal fractions while maintaining readability.Escaping Fractions in `\texttt`:
\texttt{\textbackslash frac\{a\}\{b\}} \quad \text{or} \quad \verb|\frac{a}{b}|
Custom Listings with `listings` Package:
Configure the `listings` package to treat fractions as literal text:
\usepackage{listings}
\lstset{basicstyle=\ttfamily, escapechar=@}
\begin{lstlisting}
@\frac{a}{b}@ + @\frac{c}{d}@ = @\frac{ad + bc}{bd}@
\end{lstlisting}
Alternative: `\lstinline` with Manual Escaping:
\lstinline|frac{a}{b}| \quad \text{or} \quad \verb|\frac{a}{b}|
Key Strategies:
\verb|\string\frac{a}{b}|
- For complex expressions, preprocess code to replace fractions with placeholders (e.g., `\frac` → `\frac_placeholder`) and restore them post-compilation.
Handling Radicals and Mixed Fractions
Radicals combined with fractions require careful alignment to avoid visual misalignment. The `\dfrac` command ensures radicals scale appropriately within fractions, while `\sqrt` can be nested for clarity.Nested Radicals and Fractions:
\sqrt{\dfrac{a + \sqrt{b}}{c - \sqrt{d}}}
Mixed Fractions in Radicals:
For expressions like `1 \frac{1}{2}\sqrt{x}`, use `\dfrac` to maintain consistency:
1 \dfrac{1}{2} \sqrt{x} \quad \text{or} \quad \dfrac{3}{2} \sqrt{x}
Custom Spacing with `\mathclap`:
To reduce overfull boxes in complex fractions, use `\mathclap` from `mathtools`:
\dfrac{\mathclap{\sqrt{a + b}}}{\mathclap{c - d}}
Table of Common Scaling Issues and Solutions:
| Issue | Solution | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Fractions too large in matrices | \scalebox{0.8}{...} or \dfrac with mathtools |
||||||||||||||||||||||||||||||||||||||||||||||
| Misaligned stacked fractions | \genfrac{}{}{0pt}{}{numerator}{denominator} |
||||||||||||||||||||||||||||||||||||||||||||||
| Radicals clashing with fractions | \sqrt{\dfrac{...}{...}} or \dfrac{\sqrt{...}}{...} |
||||||||||||||||||||||||||||||||||||||||||||||
| Fractions in verbatim breaking parsing | \verb|\ |
Leave a Comment
Comments are moderated before appearing. The data you submit is processed according to the Privacy Policy of www.linuxunplugged.com.