Skip to main content

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
3 votes
3 answers
190 views

How to measure height of inline equations

How to measure the height of the below inline equation? Here the equation contains the fraction so its height should be beyond the normal text height so I want to measure the exact height of the ...
Uvaraj's user avatar
  • 63
1 vote
1 answer
26 views

How to force inline math that would overflow, to break linebreak BEFORE the equation

I regularily encounter a situation where I have some piece of inline math that will overflow into the magin whenever it ends up on the right side of the page. Something like this: or I would like ...
Jack's user avatar
  • 125
0 votes
1 answer
28 views

Adjust horizontal space for 'inline' description*

I wanted to add an inline description as shown in the MWE. I noticed a bigger horizontal space between the optional argument and argument of \item. I've tried quite a view things like labelsep etc., ...
Konstantin Weigmann's user avatar
1 vote
1 answer
68 views

Line spacing between lines containing inline math

Honestly I give up on this. I searched for a solution to this for so long, but nothing seemed to work (well) for me. I just want my equations to no longer look squashed together, referring to how ...
Andy3153's user avatar
  • 361
1 vote
0 answers
71 views

Bracket with multiple lines [closed]

The errors of my codes with feedback: Missing $ inserted \documentclass{article} \usepackage{amsmath} \begin{document} $[x_0: x_1: x_2]\mapsto$ \begin{cases} $[x_0: x_1]$ & \text{ ...
Un petit mensonges's user avatar
2 votes
1 answer
117 views

How to align multiline math equations in ConTeXt when they are inline?

Since \eqalign no longer works in ConTeXt, I'm trying to replace it with \startalign/\stopalign as described here. It works just fine in display mode, but it doesn't seem to be designed to work in ...
Sergey Slyusarev's user avatar
2 votes
1 answer
143 views

How to frame inline text with a box?

I am trying to frame a text inline like this: The text above is from the book Differential Geometry of Curves and Surfaces from Kristopher Tapp. As requested by some users, some code to edit: \...
djairo's user avatar
  • 23
0 votes
2 answers
54 views

baselinestretch not functioning with \tikz inline (and generally \tikz inline not taking line spacing)

When using \tikz inline, mwe below say: \documentclass{article} \renewcommand{\baselinestretch}{1.2} \usepackage{tikz} \begin{document} He moonlight difficult engrossed an it sportsmen. Interested ...
Harry's user avatar
  • 938
0 votes
2 answers
71 views

Create a command for inline math, and apply color to math output

I would like to setup a command for adding inline math in text paragraphs. In that command, I want to change some style properties, like change the color of the equation. Fox example: The value of $x =...
Dess's user avatar
  • 103
0 votes
0 answers
32 views

Setting `\lineskiplimit=-\maxdimen` for a single paragraph then resetting to default without breaking lines

I am trying to use \lineskiplimit=-\maxdimen for the same reasons as questions 522530 and 49072 namely I have uneven spacing between lines when including mathematical notation (specifically subscripts/...
Daneel Olivaw's user avatar
0 votes
0 answers
47 views

Set tabular figures for inline math

I have a command to set tabular figures for the equation environment. I want the same tabular figures for inline math, preferably allowing me to keep using $$. \documentclass{report} \usepackage{...
Lucas Paiva's user avatar
1 vote
1 answer
214 views

Why the display style is not working [closed]

I have the following formula that is in display mode \begin{equation*} x_k = \sum\limits_{i=1}^{N_1} \sum_{j=1}^{N_2} T_{i,j,k} u_i v_j, \quad k=1,\dots,N_3. \end{equation*} But it is displayed in ...
RGS's user avatar
  • 11
15 votes
5 answers
1k views

Inline math messes up vertical spacing

Often when I use math inside a paragraph, the spacing becomes ajar. This particularly happens when I use exponents or "choose" notation (for combinations). Minimal working example below. The ...
ABC's user avatar
  • 251
3 votes
1 answer
111 views

Reference request: line breaks in inline math

I find the automatic line breaking in inline math slightly obscure. Is there a comprehensive summary of where and where not automatic line breaks may occur, what are the penalties, etc.? I suppose ...
Bubaya's user avatar
  • 2,331
1 vote
2 answers
52 views

Align inline maths and text

I would like to align my inline equations on the right of the text \documentclass[12pt, A4]{article} \begin{document} Text: $a+b=c$ Longer Text: $x+y=z$ \end{document} Which environment can I ...
numpy's user avatar
  • 71
0 votes
2 answers
54 views

Failure to create "Figure" from an Image, inserted two-column inline

I am attempting to use "in-line" images as LaTeX figures (so that they can be numbered and appear in the Table of Figures), in a two-column document created with the package << ...
Birdman's user avatar
  • 135
1 vote
1 answer
103 views

Use `\(...\)` in `algpseudocode`

Is there a way to use the newer \(...\) math syntax in arguments for any commands from algpseudocode (algorithmicx)? The documentation and virtually any other tutorial uses the TeX-primitive $...$. ...
Gargantuar's user avatar
2 votes
1 answer
43 views

Draw connected boxes with common height around letters/words in text

(There are a few related questions, e.g. this and this.) I want to accomplish the following: enclose some words of the text into boxes, with all those words vertically aligned as they were truly just ...
Enlico's user avatar
  • 2,592
0 votes
1 answer
135 views

Automatically bold math symbols when \bfseries or \textbf is used

There are a lot of questions asking how to get math symbols to appear in bold, which I know that you can do with \mathbf and amsmath's \boldsymbol. But is there a way to automatically bold my inline ...
Ben Zelnick's user avatar
2 votes
2 answers
97 views

Inline math in the table of contents

I use displaystyle for math expressions in all my documents but I want just the inline style just in the table of contents. Is this possible? \documentclass{article} \usepackage{amsmath} \everymath{\...
As soon as possible's user avatar
0 votes
0 answers
52 views

Math in text when using definitions based on intervals and limits

Should intervals/limits that are part of a definition in a text section be written using inline math mode? And in that case, how should it be written, and should the marker (BMI) and unit (kg/m^2) be ...
user14434383's user avatar
1 vote
2 answers
180 views

Writing "lim" on latex [duplicate]

I am trying an inline math expression on latex the graph is almost surely connected ($\lim_{n \to \infty} \mathrm{P}(G(n,p) \text{is connected}) \to 1 $ and it outputs the subscript term next to &...
Deelak22's user avatar
2 votes
2 answers
195 views

Getting math expression on same line as text

I am trying to write a line on latex with a binomial distribution ...is equally likely to be one of the $\begin{pmatrix}\begin{pmatrix} n \\ 2 \end{pmatrix}\\ m\end{pmatrix}$ graphs with $m$ edges, ...
Deelak22's user avatar
0 votes
0 answers
67 views

What is the recommended way to write mathematical notations in inline text?

I want to write a math notation in inline text, example notations: $d$, $i$, $i'$, $i.low$, $i'.high$, $i'high \leq i.low$, example in sentences: ` \documentclass[10pt,journal,compsoc]{IEEEtran} \...
alper's user avatar
  • 1,441
0 votes
1 answer
215 views

\setminted and \setmintedinline commands interfere with each other?

I'm trying to use the package minted to generate documents which contain language-agnostic inline code and language-aware block code (listing). Here's a minimal working example: \documentclass[a4paper,...
user32882's user avatar
  • 1,594
0 votes
0 answers
346 views

How to not wrap equations?

While writing a paragraph of proof containing some (inline) short equations, some of them often wrap: half of the equation stays on the line 1 and the second part of the equation comes to line 2. Is ...
High GPA's user avatar
  • 283
4 votes
2 answers
178 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 ...
JRen's user avatar
  • 89
2 votes
1 answer
59 views

How to skip the item body in an inline description* list?

I am having a simple doc: \documentclass[a4paper,12pt]{article} \usepackage{enumitem} \newlist{inlinedesc}{description*}{1} \setlist[inlinedesc]{itemjoin={{ $\odot$ }}, itemjoin*={{ and }}} \...
stf's user avatar
  • 243
2 votes
0 answers
58 views

How to make inline description* list left-aligned and hyphenated?

I am having a simple doc: \documentclass[a4paper,12pt]{article} \usepackage{enumitem} \newlist{inlinedesc}{description*}{1} \setlist[inlinedesc]{itemjoin={{ $\odot$ }}, itemjoin*={{ and }}} \...
stf's user avatar
  • 243
1 vote
1 answer
214 views

How to allow break in inline equation with `\left` and `\right` in LaTeX?

I use \left and \right in an inline equation in LaTeX. However, I see the inline equation can't be broken. My code: \documentclass{article} \usepackage{mhchem} \usepackage{amsmath} \usepackage{lipsum} ...
Y. zeng's user avatar
  • 1,883
2 votes
2 answers
399 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)...
Rain's user avatar
  • 194
1 vote
1 answer
108 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:
Lluvio Liu's user avatar
0 votes
1 answer
47 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 \...
zz1210's user avatar
  • 103
1 vote
1 answer
188 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 ...
annie's user avatar
  • 11
2 votes
1 answer
262 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?
Adaa Bhardwaj's user avatar
1 vote
3 answers
145 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 ...
Michele De Pascalis's user avatar
0 votes
1 answer
164 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 ...
Devansh Kamra's user avatar
0 votes
0 answers
54 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 ...
Harry's user avatar
  • 938
2 votes
1 answer
70 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} \...
Yai0Phah's user avatar
  • 669
0 votes
0 answers
40 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 ...
Ungar Linski's user avatar
0 votes
0 answers
24 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} \...
user2182284's user avatar
8 votes
4 answers
492 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, ...
user3486184's user avatar
1 vote
1 answer
330 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?
Alberto López's user avatar
2 votes
0 answers
215 views

Put \lstinline inside \item[] description and automatically add \item[] content to a 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 ...
Alberto López's user avatar
0 votes
0 answers
82 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? \...
Varad Kulkarni's user avatar
3 votes
2 answers
232 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 ...
Blaž Petelinkar's user avatar
0 votes
1 answer
502 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, ...
riazufila's user avatar
2 votes
1 answer
281 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 ...
AlanSTACK's user avatar
  • 175
3 votes
1 answer
543 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 ...
Lele99_DD's user avatar
  • 588
0 votes
1 answer
135 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 ...
enzotib's user avatar
  • 467

1
2 3 4 5
7