0% found this document useful (0 votes)
196 views

Display Style in Math Mode - Overleaf, Online LaTeX Editor

The document discusses mathematical display styles in LaTeX. Mathematical elements can be displayed either inline with text or in display style like an equation. The styles can be set manually by using commands like \displaystyle. The document provides examples of adjusting styles for elements like fractions within inline or display equations. It also links to further resources on mathematical typesetting in LaTeX.

Uploaded by

Meh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views

Display Style in Math Mode - Overleaf, Online LaTeX Editor

The document discusses mathematical display styles in LaTeX. Mathematical elements can be displayed either inline with text or in display style like an equation. The styles can be set manually by using commands like \displaystyle. The document provides examples of adjusting styles for elements like fractions within inline or display equations. It also links to further resources on mathematical typesetting in LaTeX.

Uploaded by

Meh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

 Search help library…

Display style in math mode

Some mathematical elements change their style depending on the context, whether they
are in line with the text or in an equation-type environment. This article explains how to
manually adjust the display style.

Introduction
Let's see an example

Depending on the value of $x$ the equation \( f(x) = \sum_{i=0}^{n}


\frac{a_i}{1+x} \) may diverge or converge.

\[ f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \]

Superscripts, subscripts and fractions are formatted differently.

  Open an example in Overleaf (https://www.sharelatex.com/project/new/template?


zipUrl=/project/5324b6561ce5af5a5e000d50/download/zip&templateName=DisplayStyl
e&compiler=pd atex)

Setting mathematical styles


The maths styles can be set explicitly. For instance, if you want an in-line mathematical
element to display as a equation-like element put \displaystyle before that element.
There are some more maths style-related commands that change the size of the text.

In-line maths elements can be set with a different style: \(f(x) =


\displaystyle \frac{1}{1+x}\). The same is true the other way around:

\begin{eqnarray*}
\begin{eqnarray*}
f(x) = \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\textstyle f(x) = \textstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptstyle f(x) = \scriptstyle \sum_{i=0}^{n} \frac{a_i}{1+x} \\
\scriptscriptstyle f(x) = \scriptscriptstyle \sum_{i=0}^{n}
\frac{a_i}{1+x}
\end{eqnarray*}
\end{eqnarray*}

  Open an example in Overleaf (https://www.sharelatex.com/project/new/template?


zipUrl=/project/5324b6561ce5af5a5e000d50/download/zip&templateName=DisplayStyl
e&compiler=pd atex)

Further reading
For more information see

Mathematical expressions (/learn/Mathematical_expressions)


Subscripts and superscripts (/learn/Subscripts_and_superscripts)
Aligning equations with amsmath (/learn/Aligning_equations_with_amsmath)
Spacing in math mode (/learn/Spacing_in_math_mode)
Integrals, sums and limits (/learn/Integrals,_sums_and_limits)
Mathematical fonts (/learn/Mathematical_fonts)
The not so short introduction to LATEX 2ε (http://www.ctan.org/tex-
archive/info/lshort/)

Documentation Home (/learn/Main_Page)


Learn LaTeX in 30 minutes (/learn/Learn_LaTeX_in_30_minutes)

Overleaf guides
Creating a document in Overleaf (/learn/Kb/Creating_a_document_in_Overleaf)
Uploading a project (/learn/Kb/Uploading_a_project)
Copying a project (/learn/Kb/Copying_a_project)
Creating a project from a template (/learn/Kb/Creating_a_project_from_a_template)
Using the Overleaf project menu (/learn/Kb/Using_the_Overleaf_project_menu)
Including images in Overleaf (/learn/Kb/Including_images_in_ShareLaTeX)
Exporting your work from Overleaf (/learn/Kb/Exporting_your_work_from_ShareLaTeX)
Working of ine in Overleaf (/learn/Kb/Working_Of ine_in_Overleaf_v2)
Using Track Changes in Overleaf (/learn/Kb/Track_Changes_in_Overleaf_v2)
Using bibliographies in Overleaf (/learn/Kb/Using_bibliographies_in_ShareLaTeX)
Sharing your work with others (/learn/Kb/Sharing_your_work_with_others)
Using the History feature (/learn/Using_the_History_feature)
Debugging Compilation timeout errors (/learn/Kb/Debugging_Compilation_timeout_errors)
How-to guides (/learn/Kb/Knowledge_Base)

LaTeX Basics
Creating your rst LaTeX document (/learn/Creating_a_document_in_LaTeX)
Choosing a LaTeX Compiler (/learn/Choosing_a_LaTeX_Compiler)
Paragraphs and new lines (/learn/Paragraphs_and_new_lines)
Bold, italics and underlining (/learn/Bold,_italics_and_underlining)
Lists (/learn/Lists)
Errors (/learn/Errors)

Mathematics
Mathematical expressions (/learn/Mathematical_expressions)
Subscripts and superscripts (/learn/Subscripts_and_superscripts)
Brackets and Parentheses (/learn/Brackets_and_Parentheses)
Matrices (/learn/Matrices)
Fractions and Binomials (/learn/Fractions_and_Binomials)
Aligning Equations (/learn/Aligning_equations)
Operators (/learn/Operators)
Spacing in math mode (/learn/Spacing_in_math_mode)
Integrals, sums and limits (/learn/Integrals,_sums_and_limits)
Display style in math mode (/learn/Display_style_in_math_mode)
List of Greek letters and math symbols (/learn/List_of_Greek_letters_and_math_symbols)
Mathematical fonts (/learn/Mathematical_fonts)

Figures and tables


Inserting Images (/learn/Inserting_Images)
Tables (/learn/Tables)
Positioning Images and Tables (/learn/Positioning_images_and_tables)
Lists of Tables and Figures (/learn/Lists_of_tables_and_ gures)
Drawing Diagrams Directly in LaTeX (/learn/Picture_environment)
TikZ package (/learn/TikZ_package)

References and Citations


Bibliography management in LaTeX (/learn/Bibliography_management_in_LaTeX)
Bibliography management with biblatex (/learn/Bibliography_management_in_LaTeX)
Biblatex bibliography styles (/learn/Biblatex_bibliography_styles)
Biblatex citation styles (/learn/Biblatex_citation_styles)
Bibliography management with natbib (/learn/Bibliography_management_with_natbib)
Natbib bibliography styles (/learn/Natbib_bibliography_styles)
Natbib citation styles (/learn/Natbib_citation_styles)
Bibliography management with bibtex (/learn/Bibliography_management_with_bibtex)
Bibtex bibliography styles (/learn/Bibtex_bibliography_styles)

Languages
Multilingual typesetting on Overleaf using polyglossia and fontspec
(/learn/Multilingual_typesetting_on_Overleaf_using_polyglossia_and_fontspec)
Multilingual typesetting on Overleaf using babel and fontspec
(/learn/Multilingual_typesetting_on_Overleaf_using_babel_and_fontspec)
International language support (/learn/International_language_support)
Quotations and quotation marks (/learn/Typesetting_quotations)
Arabic (/learn/Arabic)
Chinese (/learn/Chinese)
French (/learn/French)
German (/learn/German)
Greek (/learn/Greek)
Italian (/learn/Italian)
Japanese (/learn/Japanese)
Korean (/learn/Korean)
Portuguese (/learn/Portuguese)
Russian (/learn/Russian)
Spanish (/learn/Spanish)

Document structure
Sections and chapters (/learn/Sections_and_chapters)
Table of contents (/learn/Table_of_contents)
Cross referencing sections and equations (/learn/Cross_referencing_sections_and_equations)
Indices (/learn/Indices)
Glossaries (/learn/Glossaries)
Nomenclatures (/learn/Nomenclatures)
Management in a large project (/learn/Management_in_a_large_project)
Multi- le LaTeX projects (/learn/Multi- le_LaTeX_projects)
Hyperlinks (/learn/Hyperlinks)

Formatting
Lengths in LATEX (/learn/Lengths_in_LaTeX)
Headers and footers (/learn/Headers_and_footers)
Page numbering (/learn/Page_numbering)
Paragraph formatting (/learn/Paragraph_formatting)
Line breaks and blank spaces (/learn/Line_breaks_and_blank_spaces)
Text alignment (/learn/Text_alignment)
Page size and margins (/learn/Page_size_and_margins)
Single sided and double sided documents (/learn/Single_sided_and_double_sided_documents)
Multiple columns (/learn/Multiple_columns)
Counters (/learn/Counters)
Code listing (/learn/Code_listing)
Code Highlighting with minted (/learn/Code_Highlighting_with_minted)
Using colours in LaTeX (/learn/Using_colours_in_LaTeX)
Footnotes (/learn/Footnotes)
Margin notes (/learn/Margin_notes)

Fonts
Font sizes, families, and styles (/learn/Font_sizes,_families,_and_styles)
Font typefaces (/learn/Font_typefaces)
Supporting modern fonts with XƎLATEX (/learn/XeLaTeX)

Presentations
Beamer (/learn/Beamer)
Powerdot (/learn/Powerdot)
Posters (/learn/Posters)

Commands
Commands (/learn/Commands)
Environments (/learn/Environments)

Field speci c
Theorems and proofs (/learn/Theorems_and_proofs)
Chemistry formulae (/learn/Chemistry_formulae)
Feynman diagrams (/learn/Feynman_diagrams)
Molecular orbital diagrams (/learn/Molecular_orbital_diagrams)
Chess notation (/learn/Chess_notation)
Knitting patterns (/learn/Knitting_patterns)
CircuiTikz package (/learn/CircuiTikz_package)
Pgfplots package (/learn/Pgfplots_package)
Typing exams in LaTeX (/learn/Typing_exams_in_LaTeX)
Knitr (/learn/Knitr)
Attribute Value Matrices (/learn/Attribute_Value_Matrices)

Class les
Understanding packages and class les (/learn/Understanding_packages_and_class_ les)
List of packages and class les (/learn/List_of_packages_and_class_ les)
Writing your own package (/learn/Writing_your_own_package)
Writing your own class (/learn/Writing_your_own_class)
Tips (/learn/Tips)

Advanced TeX/LaTeX
In-depth technical articles on TeX/LaTeX (/learn/Articles)

You might also like