Questions tagged [displaystyle]

{displaystyle} is about the `\displaystyle` and `\textstyle` commands for switching the style of math in LaTeX. For questions about display math in general, use {math-mode}.

Filter by
Sorted by
Tagged with
3 votes
4 answers
224 views

Render display math properly in Standalone environment

I am attempting to use latex to generate images of mathematical equations using the standalone environment. I wish to force the subscript and superscript to appear below and above the sum respectively ...
user avatar
  • 133
4 votes
2 answers
150 views

`\left` `\right` not working properly with `\mathchoice`

I try to define \norm which gives \left\|#1\right\| in display math, while \|#1\| in inline math. I then use \mathchoice to implement this, but the final command doesn't work properly: the position of ...
user avatar
  • 89
3 votes
2 answers
241 views

How can I renew the macro "\log" (from "log" to "\ell og")?

How can I renew the macro "\log" (from "log" to "\ell og")? Default function \log in line 1 I use renewcommand for \log: \renewcommand{\log}{\ell\text{og }} That shows ...
user avatar
1 vote
2 answers
104 views

State of sans serif maths fonts

I'm looking for a comprehensive sample of specimens from current, known to be up and running, sans serif fonts for (displaystyle) maths. In particular, I would like to know how one can know whether a ...
user avatar
1 vote
1 answer
62 views

How to make displaystyle unions, intersections, sums products, etc. less obnoxious [closed]

When one tries to display, for example, a large union using ‘bigcup’ one issue is that text above and below gets pushed up and down, respectively. The below image shows that it is possible to correct ...
user avatar
0 votes
0 answers
38 views

How to get the "literat.sty" file?

In Overleaf, after compiling the Lobachevskii Journal of Mathematics template file, an error with the comment "literat.sty not found" occurs. So I think I need to first download the literat....
user avatar
0 votes
1 answer
64 views

Rescale integral in display math with nccmath's `\medint`

I want to make the integral symbol in displayed equations smaller by using the nccmath's \medint command, which looks quite suitable. Is there a way to always have \medint prepend \int only in ...
user avatar
0 votes
0 answers
22 views

Move footnotes in an appendix

I created a document to which, over time, I had to add MANY footnotes. Now, to make things more practical I would like to have two versions of the doc: i) the current one with many footnotes at the ...
user avatar
  • 1
3 votes
1 answer
105 views

Is it possible to customize an "int" symbol with three index notation?

like this I need an extra index notation for the integral symbol . I know the /displaylimits could modify the position of index notation, but I wonder how to add three index notation to an integral ...
user avatar
  • 45
0 votes
1 answer
45 views

Figure structuring made easy?

Is there any online tool or an easy way of structuring figures in LaTeX? For example, imagine I want to do something like labelled like that. It somehow seems unnecessarily tricky to get something ...
user avatar
  • 165
0 votes
0 answers
39 views

How to display inline math display-style document-wide [duplicate]

I have a document where I want to display both inline and display math in the larger display-style. I know that for inline math I can add \displaystyle between the dollar signs, but I want to do this ...
user avatar
2 votes
1 answer
66 views

Use different math font in inline-style and display-style formulas for \int symbol

I have seen Use different math font in inline-style and display-style formulas, but here I just want one symbol to be different inline vs display. In Borrowing the integral and summation signs from ...
user avatar
  • 525
7 votes
1 answer
221 views

Does $$...$$ produces wrong spacing in plain TeX?

In the ConTeXt FAQ, one can read Does $$...$$ work for display math, like in (La)TeX? No; the spacing above and below the equation will be wrong, and maybe other aspects too. Moreover in LaTeX, a ...
user avatar
-1 votes
2 answers
78 views

(Done!) Table and text styles error in this book project [closed]

(Resolved) I'm in trouble again on this project. It is a book, with standard dimensions of A5 paper (14x21 cm). And I need help. The project is here: https://www.overleaf.com/1332517788tpyfvfrnnsqd (...
user avatar
0 votes
1 answer
70 views

How do I prevent the numerator of my fractions not exceed the height of the summation signs?

I used the technique presented by @Qrrbrbirlbel at making a big summation sign to make my summation symbols big enough. \documentclass[11pt,oneside,openany]{book} \usepackage[a4paper, left=1.5cm, ...
user avatar
  • 149
1 vote
1 answer
74 views

Vertical representation of Euclid's algorithm

I want to show how to find the gcd(greatest common divisor) of 299 and 247 : But how can I get this ?tabular?Thx for your kind reply.....
user avatar
2 votes
0 answers
35 views

Displaystyle for oplus [duplicate]

I would like the following behaviour: If I use an \oplus in a displayed math environment, I would like it to look like what happens with \bigoplus, i.e., I'd like the counters going directly below and ...
user avatar
0 votes
0 answers
31 views

Sum limits not underneath but next to sum [duplicate]

I wanted to know how I can not have the limits under a sum but next to it, that is I want to obtain the same format as in the text mode but in the math mode. Whenever I am inside an align environment \...
user avatar
  • 43
3 votes
0 answers
101 views

Toggle button (and functionality) to change between light and dark mode of pdf

I would like to have both light and dark mode style in the same pdf. The light mode would be used when the reader wants to print the document while the dark mode will be used for reading the document ...
user avatar
3 votes
2 answers
157 views

Brackets too large when using displaystyle and \left and \right in a fraction

I am trying to display a function of a fraction where I am using displaystyle in the numerator. Here is the markup: \[ \text{Var}(\overline{x}) = \text{Var}\left(\frac{\displaystyle \sum_{i=1}^{n} X_{...
user avatar
  • 159
1 vote
1 answer
81 views

How can I make this equation look more aesthetic and balanced?

I have a mathematical equation $$ K = \sum_{i \in \mathcal{V}} \left\lvert i^p - \mathbbm{1}_{\{i \in \mathcal{J}\}} \cdot k^p \right\rvert $$ that when compiled, looks like: Is there a way I could ...
user avatar
1 vote
1 answer
36 views

On the Use of Vstretch in a Minipage Environment

Consider the code: \documentclass[12pt]{book} \usepackage{scalefnt} \usepackage{scalerel} % For Vertical Stretch of Letters \usepackage{xcolor} \begin{document} \thispagestyle{empty} \begin{center} \...
user avatar
  • 5,285
0 votes
1 answer
79 views

How to make footnote for framed theorem appear at bottom of page?

I recently learned how to put a frame around display-math expressions, and now I'd like to add a footnote to the text in the frame. When I try this, however, the footnote appears at the bottom of the ...
user avatar
  • 123
2 votes
1 answer
97 views

Macro for a math map f:A\to B

I want to write a macro for a math map f:A\to B when it is in inline math mode and f:A\longrightarrow B for displayed math. But I don't know how to check that it is in inline mode or displayed style. ...
user avatar
  • 179
0 votes
1 answer
33 views

Change Display of Subscripts and Superscripts of Summations in a left bracket

By using the following code from the amsmath package: \documentclass{article} \usepackage{mathptmx,mathtools} \DeclareSymbolFont{Xlargesymbols}{OMX}{cmex}{m}{n} \DeclareMathSymbol{\Xsum}{\mathop}{...
user avatar
3 votes
1 answer
64 views

In Lyx, is there a way to force global use of \cfrac instead of \frac?

I'm currently typing a document with a lot of equations with complex fractions. Is it possible to set the document to use \cfrac instead of \frac everywhere? I'm using Lyx's equation editor so it ...
user avatar
1 vote
0 answers
43 views

Displaymath with name?

In the displaymath environment the mathematical equation is usually placed in a separate line in the document. Is there a way to give the equation a left aligned name, as A1, on the same line, while ...
user avatar
  • 3,675
1 vote
1 answer
60 views

How to get all maths in displaystyle except in figure captions and footnotes?

I would like to tell LaTeX to typeset all inline math expressions in displaystyle, except in footnotes and captions. Is there a way to do that? I know that using \displaystyle everywhere isn't ...
user avatar
  • 2,034
3 votes
2 answers
373 views

Is there a vertical bar as long as the integral sign?

I'm looking for a big vertical bar that puts the lower and upper elements at the same height as on the default integral sign. Currently, using \Big| (or \Bigr|), and \bigg| (or \biggr|) gives an ugly ...
user avatar
  • 2,034
0 votes
0 answers
49 views

How to fix inline math spacings as in a normal math display? [duplicate]

I would like to fix the horizontal math spacings, when any math expression is shown inside a block of text, without acting on the text itself. The maths spacings should be exactly the same as in a ...
user avatar
  • 2,034
0 votes
1 answer
476 views

How to use displaystyle for all maths expressions in text? [duplicate]

I would like to display all inline maths expressions in displaystyle, but without typing \displaystyle{...} everytime I insert a math expression into a block of text. How can we do that at the ...
user avatar
  • 2,034
5 votes
4 answers
361 views

How to define a math command depending on its mode (display or inline)?

I want to define a math command which behaves differently in display mode and inline mode. For example, I want to define a \myfrac#1#2,which equals $\frac{#1}{#2}$, but equals $#1/#2$ in inline mode. ...
user avatar
  • 436
1 vote
1 answer
68 views

font, text style etc [duplicate]

This might be awkward to ask but just wonder if by any chance one could inform me: I just like very much the font and the text style used in this report here https://mast.queensu.ca/~math472/NaciSaldi....
user avatar
  • 247
0 votes
1 answer
64 views

Put last polynomdivision at the end

I'm trying to explain the polynom division step whise so I'm using the polynom package for that. Now if I just want to show the beginning of the polynom division this pops up: And here's the code: \...
user avatar
  • 248
0 votes
0 answers
73 views

How to create product operator for arbitrary binary operator

I have defined a couple of different mathmode binary operators in my paper, but I realized I need to apply them to arbitrary finite sets of objects. Is there a standard way to make a related product-...
user avatar
  • 338
5 votes
1 answer
152 views

LuaTeX/TeX-core: Where is my display math? (sequence of execution, display math insertion, etc)

This is a LuaTeX/TeX-core internal node representation question, not a question concerned with output in PDF. While trying to visualize the contents of paragraphs, "display math" contents ...
user avatar
  • 1,248
1 vote
1 answer
65 views

How do I use display style in running text?

I'm writing my thesis. Problem is that when I type the following mathematical expressions inside the equation environment and outside it, I get a different style of the same mathematical expressions: ...
user avatar
1 vote
0 answers
81 views

Integrals with fractions as limits and display modes

I would like to learn how auto-program my document to display integrals with fractions nicely. My MWE: \documentclass{article} \usepackage{amsmath} \begin{document} $\int_{\frac{1}{2}}^{\frac{\pi}{10}...
user avatar
1 vote
0 answers
70 views

Using `\everydisplay` crashes split environment

I use TeX Live 2020 on Debian Testing; version of amsmath is 2.17e. I have noticed that I get the error Package amsmath Error: \begin{split} won't work here. \end{split} whenever there is an \...
user avatar
  • 1,359
1 vote
1 answer
116 views

Missing parenthesis in display math within text within display math

I'm trying to work out how to recursively nest text and math mode. The following example seems to fail to compile, and does not render the \right): % "text, {$$\int$$}, text" is an arbitrary ...
user avatar
  • 415
3 votes
1 answer
54 views

Mimicking the spacing of `\shortintertext`

I am trying to have two align*-environments with some text between them. As the text is very short, I'd usually use \shortintertext. But I don't want the two environments to share the tab stops -- ...
user avatar
  • 1,486
2 votes
1 answer
79 views

Decimal number and \sqrt radical height

I just saw a post on a french Facebook LaTeX group saying this: When using the french decimal separator (comma), the space between the number inside the radical is reduced. The proposed MWE is (...
user avatar
  • 459
3 votes
1 answer
2k views

How can I ignore empty lines before, after, and inside an equation environment?

I would like an equation environment that doesn't care about empty lines. Normally, empty lines before and after equation start a new paragraph, resulting in additional vertical spacing around the ...
user avatar
  • 861
0 votes
2 answers
98 views

Align itemize in multicol with fraction in displaymode

I'm doing a cheat sheet to try to practice with LaTeX. My problem is that after I use itemize + multicols, it shows as below, must be due to that the fraction is in displaystyle. I want the bullet in ...
user avatar
0 votes
0 answers
511 views

TeX source code is just black instead of including red/blue/green elements

I have a simple question. I am writing a document in the Overleaf editor with multiple chapters in different .tex files, and in one of the chapters the source code looks like this: However, in my ...
user avatar
  • 1
2 votes
1 answer
88 views

Wrapping a displaymath equation in surrounding text

I don't really understand the behaviour of the indentation/paragraph building/whatever is going on (my understanding is limited...) with displaymath equations in paragraphs. When placing an equation ...
user avatar
  • 1,329
0 votes
1 answer
434 views

Resizing hyperref box

I've included two boxes in the attached screenshot. The first one has normal size. The second one, however, has a larger height because I used \displaystyle for the \prod command later that line. I ...
user avatar
  • 227
3 votes
2 answers
185 views

How to achieve correctly the typesetting of $\bigwedge^\prime$ in display style?

I want to achieve \bigwedge' in display style. However, \[\bigwedge'\] gives me naturally The first approach I tried is to convert it in text style, but it becomes smaller than it was in display ...
user avatar
0 votes
1 answer
125 views

How to show all margins frames and spacings in the text/equation?

The MWE below is showing the margins frame. This is cool, but not enough for me. I would like to show the text lines and the spacings around equations (above and below skips, etc). Is this possible?...
user avatar
  • 2,034
1 vote
1 answer
258 views

\everymath{\displaystyle} in ConTeXt

In LaTeX I can use \everymath{\displaystyle} to use display style as default and \textstyle to switch back to inline mode. However, when I try this on ConTeXt, the compiling crashes. How do I get ...
user avatar