Questions tagged [inline]

In typesetting math in LaTeX, there is inline mode (math inside text) and display mode (separate equations outside text). This tag is used for inline mode. It should also be used for other structures that provide a similar distinction between its usage, like the {listings} package's environment and inline form.

Filter by
Sorted by
Tagged with
2 votes
2 answers
198 views

Is there a way to automatically smash all inline maths (but only vertically)?

What it says on the tin. In case it isn't clear enough, what I would like is for $...$ to be typeset as \smash{$...$}, except \smash also affects horizontal spacing (see the question I linked to below)...
user avatar
  • 182
1 vote
1 answer
49 views

Is it possible to write organic chemical substance in inline math mode?

Is it possible to write organic chemical substance in inline math mode? For example:
user avatar
0 votes
1 answer
37 views

emulating line space of displayed multiline math in non-math mode

I want to use displayed style for inline math, i.e. \everymath{\displaystyle}, but the line space is too tight when, for example, fractions appear in consecutive lines. I want to change this via \...
user avatar
  • 103
1 vote
1 answer
22 views

Error "Package pgf Error: No shape named `abstractse' is known." in baposter

I'm trying to construct a poster using a baposter template, it was working fine until I added some inline maths equations and labels, then I started getting this error in addition to: "! Argument ...
user avatar
  • 11
2 votes
1 answer
50 views

How do I write "text as fractions" without moving to the next line in the O/P?

I used this command to get (a+b+c)/2 x=\[\frac{\textrm{a+b+c}}{2}\] However, the output has shifted it to the next line, as shown Is there a way I can have this in-line with the text?
user avatar
1 vote
2 answers
37 views

Line not breaking when combining inline math and \texttt

Sadly, I am not able to recreate a MWE since I'm working on a fairly complex template. I cannot understand how LaTeX decides to break lines, I googled but I couldn't find a clear cut answer. This is ...
user avatar
0 votes
1 answer
54 views

Help required regarding using inline R commands in overleaf

I am using overleaf to compile my R codes into a pdf file. For a chunk of code, we use for example: <<>>= mean(reading) max(reading) min(reading) @ But now I want to use these commands ...
user avatar
0 votes
0 answers
22 views

Increase line spacing around inline maths (opposite of smash/strut) / Add padding around inline maths

Very simply, inline maths (particularly display style) doesn't offer much padding between lines. I know that there has been a lot of commentary on using commands such as \smash and \strut to do the ...
user avatar
2 votes
1 answer
37 views

tex4ht and tex4ebook: problems when tikzcd is put in the inline math

MWE: \documentclass[oneside]{amsart} \usepackage{amsmath,amssymb,amsfonts, accents} % Include the following code before \usepackage{tikz} \ifdefined\HCode \def\pgfsysdriver{pgfsys-dvisvgm4ht.def} \...
user avatar
  • 669
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
0 votes
0 answers
22 views

hyphenating inline verbatim text at underscore [duplicate]

I can hyphenate inline verbatim text at a ':'; however, I want to hyphenate inline verbatim text at an underscore '_', but I can not find a solution. The MWE is as follows. \documentclass{article} \...
user avatar
8 votes
4 answers
242 views

Rounded corners, dotted lines and shadow inline but without TikZ

I'm trying to draw rounded rectangles with solid or dotted lines and a shadow around arbitrary text in LaTeX. I was hopeful that my answer was in How to draw rounded corners around box with shadow, ...
user avatar
0 votes
1 answer
87 views

Put \lstinline inside \chapter, \section, etc. commands

How can I place \lstinline code inside commands like \chapter, \section, \subsection, etc.? Or it's a bad or tasteless practice?
user avatar
2 votes
0 answers
65 views

Put \lstinline inside a \item and automatically add \item content to glossary

I've implemented this solution to allow placing \lstinline code inside description \item command. I also want to automatically add the entire \item content as a glossary entry by placing it into name ...
user avatar
0 votes
0 answers
34 views

Exclude inline math from \DeclareMathSizes

I am using \DeclareMathsizes to display equations with a larger font than the rest of the text. But this is also applicable to inline math. Is there a way to exclude inline math from this command? \...
user avatar
2 votes
1 answer
87 views

Is there a way to define color directly without using named colors

I am trying to use a background color on longtblr of tabularray package within \SetCell command and it seems I only can used named colors. E.g. the ones defined before with \definecolor. I am buidling ...
user avatar
0 votes
1 answer
72 views

How to fix overfull in inline math?

How do I fix this overfull warning that is caused by the inline math equation? When I used \sloppy on the paragraph related, underfull warning appeared instead. I've included a MWE below. If it helps, ...
user avatar
2 votes
1 answer
134 views

How do I adjust top margin of inline graphic to align with rest of text?

What is my problem? Here is the latex markdown I have for rendering my phone number \textbf{(\includegraphics[width=3.0mm]{call.png})}\ 123-456-7890 My phone number shows up like this - the icon is ...
user avatar
  • 145
3 votes
1 answer
427 views

Automatically smash all inline math

Is there some trick to automatically apply the \smash command to all inline math? I've found questions about the \smash command, but nobody is asking how to get the \smash effect both vertically and ...
user avatar
  • 568
0 votes
1 answer
49 views

Punctuation after an inline formula [duplicate]

I always wonder if I should put the punctuation after an inline formula inside the formula, like in \(x = 1.\) or outside \(x = 1\). Which is the correct choice, and why? The related question is ...
user avatar
  • 435
1 vote
0 answers
68 views

TexStudio inline preview problem

I use texstudio as my editor and on one of my computer where I have reinstalled miketex and Texstudio, with the attached preview settings. But I get the following error message when doing inline ...
user avatar
6 votes
3 answers
139 views

Forbidding line breaks after specific symbols in inline math?

I'm writing a text in which order relations (e.g. <, \prec, \ll) often appear as arguments of functions rather than binary operators (e.g. $O(P,<)$). Every so often this leads to an inline ...
user avatar
  • 247
0 votes
3 answers
40 views

Putting numbered equations in the remaining space of the line

I would like to define a new equation environment that displays the equation inline, but with its number being displayed at the end of the line (without text between them). More concretely, the ...
user avatar
  • 585
2 votes
2 answers
118 views

how to put a cite in the same line of a section

i can't put in the same line the title of the section with the number of a reference. input: \section{Introduzione} \cite{135431} output: 1 Introduzione [8] desired output: 1 Introduzione [8] i don'...
user avatar
4 votes
1 answer
105 views

What is the opposite of an inline formula?

What is the technical term to refer to a "regular" equation in the center of a page in latex? I know that a formula in the middle of a sentence is called "inline" Would it be ...
user avatar
3 votes
1 answer
94 views

Inline mode vs equation* environment

I want to create For this, I write \begin{equation*} \sum^* =\sum^0 \cup\sum^1 \cup \sum^2 \cup\ldots \end{equation*} But this creates Again if I write this in inline mode like $\sum^* =\sum^0 \...
user avatar
1 vote
1 answer
70 views

How to add variable arguments to \newcommand inside \SetBreakableRel from the package rmathbr? (inline math-break with repetition)

rmathbr is a package enabling another convention of breaking inline equations if they run too long. Specifically, symbols are repeated on the new line (and kept on previous line). So, for instance, a =...
user avatar
2 votes
2 answers
280 views

Nested inline math for new command with argument

There exists some consensus on the fact that one shouldn't use $...$, \(...\) or \ensuremath inside of newcommand (or NewDocumentCommand, ...) definitions to wrap passed macro arguments that are to ...
user avatar
0 votes
1 answer
58 views

Beamer - Pause within inline math mode

In the next MWE I created, there are 4 itemize texts associated with four components of an inline math mode equation. I would like that the math items are paused and appear exactly synchronously with ...
user avatar
  • 433
2 votes
1 answer
122 views

How to insert Greek pi in siunitx environment?

I wrote the following equation: $T = \SI{2}{\second}$ I need Greek Pi after the number 2. Is it possible to insert it?
user avatar
  • 491
2 votes
2 answers
82 views

Float text around a figure

I need some help from anyone of you who knows how to code in LaTex. I want to include an image in the left side of the paper and in the right remaining part I want to write some text. I actually ...
user avatar
1 vote
1 answer
32 views

Inline citation with author year style in self defined bibliographystyle{myplain}

I need the abbreviation for the first name of authors in reference, so I did what people suggested here Bibliography style with only the initials of the first names. But I also want to keep the author ...
user avatar
  • 11
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,024
5 votes
4 answers
325 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
0 votes
1 answer
104 views

Can anyone produce a minimal working example of listings in Beamer?

I'm trying out the solution in : Lstlisting Python but in Beamer. And no matter what I write, it throws me like a thousand errors: I thoroughly checked. There is no missing } My code is literally (...
user avatar
  • 313
1 vote
2 answers
3k views

Insert inline code block in Latex document

Hi i am trying to add an inline code block in a Latex document. I know how to add a separate code block using lstlisting but i want to instead add an inline code block. I am attaching the screenshot ...
user avatar
4 votes
4 answers
301 views

Arrays with non-inline style formulas in rows in KaTeX

I'm having a hard time trying to get a properly aligned inequations involving fractions in KaTeX. The best output I have got is with the array environment: \begin{array}{crccclc} z\in\Bbb R^+, & 0 ...
user avatar
  • 1,575
1 vote
1 answer
58 views

How to begin an align environment with an inline equation?

I want to write the following in LaTeX (without the horizontal ruled lines): where the equals signs are vertically aligned with each other. I found this question and this one which both suggest using ...
user avatar
  • 133
8 votes
4 answers
1k views

Inline chess symbols

I want to put chess symbols inline in my document. I know that, using skak, I can produce nice looking inline symbols with commands like \symking, etc. However, these are only white, and I need white ...
user avatar
  • 191
0 votes
1 answer
42 views

Prevent automatic resizing of equation elements [duplicate]

I have the following equation: \begin{equation} E(W) = \frac{\frac{(c\rho)^c}{c!}}{(1-\rho)\sum_{n=0}^{c-1}(\frac{(c\rho)^n}{n!})+\frac{(c\rho)^c}{c!}} \cdot \frac{1}{1-\rho} \cdot \frac{1}{c\mu} \end{...
user avatar
  • 123
0 votes
0 answers
46 views

LaTex \(...\) escape sequence meaning [duplicate]

I'm trying to insert some inline mathematical expressions inside a sentence. I've read that in-order to do that you should do: $$expression$$ I've also read it's not recommended but as for the ...
user avatar
  • 181
2 votes
1 answer
124 views

In LyX, tikz-cd appears inline. How to make it display as in Display Formula?

I am typing an article in LyX. I use ERT to input tikz-cd. The diagram is faithfully shown in the output, but always inline. I would like to make it display, precisely like a Display Formula in LyX, ...
user avatar
  • 41
1 vote
1 answer
28 views

How can I fit a table in a page with an long inline math expression inside?

I have the problem of making this table fit inside a list in such a way that the long inline math expression can be nicely broken. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{...
user avatar
3 votes
1 answer
109 views

Converting TeX into a plaintext format?

I'm trying to find a tool to convert TeX into something like the following: {\frac{-x}{y}} to ((-x)/(y)) or {\frac{1}{x\ln(b)}} to ((1)/(xln(b))) I built a very simple converter for it but it has ...
user avatar
  • 33
0 votes
1 answer
537 views

How can I set the default font size of inline math mode?

is there any way to set the default size of inline math mode to \LARGE? I don't want to type \LARGE$x$ every time I want to enter math mode I want \LARGE to be the default
user avatar
  • 25
4 votes
3 answers
841 views

How to automatically linebreak an inline math formula?

Here is an example of a parbox that produces both an underfull and an overfull warning: \parbox{100pt}{A set of comparison triplets \(T = \{ (i,j,l) | z_i \;is\; more\; similar\; to\; z_j\; than\; z_l\...
user avatar
  • 175
1 vote
1 answer
170 views

lstinline with special characters breaks some environments (runaway argument)

I am trying to enclose an inline listing with some environment like \fbox or \centerline. My MWE below illustrates how \lstinline normally escapes the % and { characters but inside the above-mentioned ...
user avatar
  • 298
0 votes
1 answer
173 views

Align summation with capital letters inline

I imagine this has been asked, but everything I can find when searching is about aligning with line breaks, or messing with limits. Also searching for centering summation, naturally has its own ...
user avatar
  • 125
0 votes
2 answers
89 views

Integral sign in exponential is too small

I have e^{\int_t^{\bar t}2\lambda(s)ds} and I want the integral sign to be somewhat larger. I've tried \big, \large,.. and none of these has any effect. I've rejected \exp{\int_t^{\bar t}\lambda(s)ds} ...
user avatar
1 vote
1 answer
125 views

Inline enumerate: Two lines are not aligned

I tried to make a horizontal list using \usepackage[inline]{enumitem}. However, when it breaks into new line, the second line is not aligned the same as the first one. \documentclass[12pt,a4paper]{...
user avatar

1
2 3 4 5 6