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
0
votes
1answer
29 views

\Verb{} in fvextra: Highlighting \Verb{} text to be able to break at the end of line

Searching through various packages documentation and this site I have found how to write inline verbatim text, that is (when neccessary) broken at the end of line. For this feature, I am using \Verb{} ...
4
votes
3answers
189 views

How can I produce even line spacing in the following paragraph with loads of inline math formulas?

Normally when writing inline math formulas, in a paragraph of text, the line spacing is kept in tact but consider the following example produced with the following code \begin {document} \textbf{$...
0
votes
1answer
39 views

Make not breaking inline math the default

I find myself often converting some inline math like $a < b$ into ${a < b}$ so TeX won't insert a line break after the comparison operator. I would prefer if TeX simply treated my inline math as ...
2
votes
1answer
81 views

LaTeX: Inline image, but preserving line height

I'd like to include an inline image (to typeset hieroglyphic inscriptions) but I don't want it to stretch the line height, even if the image is too tall to fit. I don't mind it colliding with the line ...
1
vote
1answer
59 views

Highlight inline formulas

I need either to add a color background or border around each inline formula. How? I want to ensure every formula is no more wide that about the 1/2 of the width of text, in order to publish them in ...
2
votes
2answers
80 views

Inline math and vertical spacing

I use inline mathematics in a document. But for that I need a wider indentation. Example, now my math looks like this: I need it to be like this: Code: \usepackage{amsmath} 1) $\delta (a_1) = \...
9
votes
2answers
256 views

Define a command differently in inline vs display mode

I would like to have a command \catlim which behaves differently in inline vs in display mode. Namely, in inline mode, it should be equivalent to \lim and in display mode, it should be equivalent to \...
10
votes
3answers
21k views

How do I keep a string of text together without it doing a line break?

I'm writing up a long paper, in which in prose I have various equations. However, I do not want a line break to occur within the equation - I want the equation to stick together. I want to do this ...
1
vote
2answers
613 views

How to modfiy spacing for inline math?

I want to reduce spacing between operators in inline math. If I add the follwing lines to the peamble it affects both inline and display math modes. \thinmuskip=0mu \medmuskip=0mu \thickmuskip=0mu ...
17
votes
4answers
4k views

Preferred method for inline code samples

I tend to use the minted package for including code samples within my documents, which produces very nice output. However, because Pygments always produces a verbatim environment there's no way to ...
0
votes
1answer
74 views

Unsightly space in math prefix

Up until now, I've been formatting the phrase "C*-algebras" in TeX using $C^*$-algebras but this leaves an unsightly space between the star(*) and the hyphen (I suppose because of the switch from ...
0
votes
0answers
22 views

break colorbox in lines for lstset inline code

I use this latex code to define icode commadn with which I can write inline codes: \definecolor{lightgray}{gray}{0.9} \lstset { frame=shadowbox, rulecolor=\color{white!80!black}, ...
2
votes
1answer
590 views

Issue with multiple in-line references by some author using bibtex + natbib + apacite

When I have multiple papers to refer to in the same breath by the same author, the second reference year always prints as 0 and with no space after the comma, even though the full reference is indeed ...
0
votes
0answers
40 views

can I autobreak inline math that runs off?

is there like a way to just have inline math automatically continue to the next line when separated by a comma or some other punctuation that normally keeps it on one line I thought thats what \...
2
votes
1answer
118 views

Decrease the height of the enumerate aligned with the text

Starting from MWE of very good user @Marian G. Pretty enumerate: fontawesome \documentclass{article} \usepackage{fontawesome} \usepackage{xcolor} \newcount\cnt \cnt=1 \newbox\battery \setbox\...
1
vote
1answer
23 views

Extend line spacing for two rows of enumerate items when combined with itemjoin

Problem: I wish to extend the line spacing for an enumerate list that divides over two rows when using itemjoin. Minimal Working Example (MWE): \documentclass{article} \usepackage{amsmath} \...
2
votes
2answers
72 views

Decrease length of spaces in inline math

It is a requirement of the journal I'm submitting to that inline math be formatted as $x\!=\!3$, i.e. that we insert a thin negative space around operators. Is there a way that I can set this ...
0
votes
0answers
35 views

Accessing variable in inline expression (rmd to pdf output)

I'm working on coding a reproducible rmd which will output a pdf document. I know that for an inline expression to work, it requires $ $ to be placed around it but is there a way around this? Client &...
0
votes
0answers
362 views

How to force inline style in displaymath?

In my Latex source file, I put \everymath{\displaystyle} in the preamble. So every formula within $...$ will in displaymath style. In this circumstance, how to get an inline math style?
1
vote
0answers
35 views

Add spacing at the end of inline mathmode $…$

A follow-up question of my question regarding \(...\), how can I add horizontal space (preferably \,) to the end of each inline mathmode triggered by $...$? Since the $ is used to enter and exit math ...
0
votes
0answers
35 views

Alignment inside in-line $$ math environment [duplicate]

I would like to be able to use (equation) alignment inside a simple in-line $...$ environment. Of course, normally nobody does this, when this is properly done with the standalone equation ...
2
votes
1answer
92 views

Error on using “\rl{}” inside “inline math”

I use TeXstudio 2.12.16 and want to write Farsi words in \cancelto{value}{expression}. So I used xepersian package and \rl. What I tried is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
40 views

textbf in mintinline

I am trying to have bold font in a subsection*{} with using \mintinline. Is there anyway to accomplish that? Here is the example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
1answer
37 views

Disable `math text inlined` color in all display math environments (beamer)

I color my inline math in beamer to improve readability. However, when I use array environment, it will include some inline math being put inside array which is display math. I would like inline math ...
12
votes
1answer
576 views

Inline Feynman diagrams, Feynman diagrams in equations, very small Feynman diagrams

I'd like to typeset equations like: I have tried this with the tikz-feynman library, but the diagrams generated by it are just way too large, even with the small option (and also just look awkward). ...
2
votes
1answer
37 views

How to reduce the spacing between labels and text in an inline description?

I'm using the option inline of the enumitem package to create lists inline. The numbered lists are perfects, however, the descriptions produces a lot of withe space between the label and the text. ...
0
votes
0answers
34 views

Citation right next to an inline equation

I have a problem related to placing a citation right after an inline equation. If you look at the second line of text in the following image, the problem should become apparent. The claim is that ...
0
votes
1answer
38 views

How to prevent excess whitespace after line breaks in inline equations using symbols defined in a glossary?

I have several mathematical symbols with definitions in a glossary created using the glossaries package. As an example, \newglossaryentry{real} { sort={r0}, name={\ensuremath{\mathbb{R}}}, ...
1
vote
1answer
130 views

TeXworks script for inserting inline math mode

I've been trying to set up a TeXworks script that would add the in-line math mode symbol '$' around a selection. E.g., if one selected '\omega' and executed the script, the result would be '$\omega$'. ...
0
votes
1answer
108 views

LaTex inline math $…$ problem in WinEdt

In WinEdt10, the inline math is italic, and the subscript "_" is no longer visible. I need to turn off the italic format of the inline mode $...$. Can anyone help with the issue?
3
votes
1answer
272 views

How can I fix the spacing in enumitem inline lists?

I have some spacing troubles using inline lists from the enumitem package. I know that the way this is used in the example is not elegant typesetting, but it is only to demonstrate the problem. If I ...
3
votes
2answers
2k views

writing an enumerated list within a sentence

Can you please help me write an enumerated list which is in the same line and there is no line change between that and the rest of the text. E.g., We use three broad geographical regions, i.e., (i) ...
1
vote
2answers
132 views

Add spacing at the end of inline mathmode \(…\)

The language I use for certain files look much better if there is a small space \, after each inline equation, like this: \(...\) % BAD spacing \(...\,\) % GOOD spacing But it's not quite ...
10
votes
1answer
1k views

Why are there no \dint or \dsum like \dfrac?

This was inspired by How to have nice-looking symbols within an \itemize environment? and Sigur's comment which remind me about the display style of math formulas and the fractions. I know that, in ...
135
votes
8answers
84k views

Stop LaTeX from breaking an inline math equation

I hope this question was not asked before. At least I haven't found it. I have an inline math equation and LaTeX is breaking it into two parts. In this case I'd prefer to have the whole and short ...
2
votes
2answers
85 views

Text within piecewise defined functions

I want to place text within the definition of piece-wise defined function as: I tried this: \begin{equation} F_j(x, y) = \begin{cases} 1 & \text{if pixel (x, y) is a face pixel in I_j} \\ 0, &...
1
vote
1answer
37 views

In LyX, how to get inline custom numbering?

I'am preparing manuscript for my students and i would like to add some numerated homework tasks. For example: 1 section... 2 section... 2.1 subsection... 2.2 subsection... 2.2.1 subsubsection... 2....
98
votes
8answers
67k views

How to make horizontal lists?

This might seem like a very simple question, but what is the easiest way to turn a normal vertical list into a horizontal one?
0
votes
1answer
91 views

How to break an inline equation with text in it by maintaining the correct syllables separation

I'm writing a long inline equation which contains text and citations in it by using the \textit{}, \text{} and \ref{} command. The problem is that both inside the text environment and after a ...
0
votes
0answers
31 views

Inline code with background color without use of escape characters [duplicate]

I need to include some inline code in a text with a background color. I use \lstinline for including code in a text and \colorbox for making a background color for it. \lstinline!$! produces s (...
1
vote
2answers
67 views

inline underneath subscripts

Here is a piece of text I am working on: this is written as $\mathbf{p} \underset{s}{\sim}\mathbf{\bar{p}}$, and associated with the equivalence class $E(\underset{s}{\sim},\mathbf{p})=\{ \mathbf{\...
1
vote
1answer
50 views

How to position a line the whole width of a page on a line of text, but not over text?

I am in the midst of creating my own custom latex class for a CV layout and am wondering how to do so. Here is a picture of what I'm talking about that I created in a word document: Specifically, how ...
2
votes
2answers
572 views

differences when using inline mode and \overline and \sqrt

Can anyone help me make this square root signs in the code below, be of the same size so that they all have the same height? This is the code: \documentclass[]{book} \begin{document} $\overline{\...
2
votes
1answer
52 views

Put braces in in-line math outside or inside of math-mode $?

Is there a consensus on which approach is better: text ($like this$) more text or text $(like this)$ more text if the content is not anything special, i.e. does not require \left(\right)? Thanks.
0
votes
1answer
67 views

Switching back to inline math with “\everymath{\displaystyle}”

I have " \everymath{\displaystyle} in my header (even though I know you all don't recommend this). But the following line won't break at the end of the text part of the margin and instead writes off ...
5
votes
3answers
186 views

Spacing of subscripts for inline math

$\sigma_{ij} = \rho\sigma_{i}\sigma_{j}$ Is it just me, or does the spacing look wrong on the right-hand side? The subscripts seem to be too far to the right. Is there a way to move the subscripts ...
1
vote
1answer
111 views

Loading the breqn package changes appearance of inline maths

Consider this MWE. Why when I load the package breqn does the appearance of the \frac{}{} change? With breqn loaded Without breqn Code \documentclass[12pt,a4paper]{report} \usepackage{amsmath} \...
1
vote
1answer
174 views

Inline \usebox vertical alignment

As I need to pass a verbatim environment into a command, I use \savebox and then render it inline with the rest of the text. \documentclass{article} \usepackage{listings} \usepackage{enumitem} \...
1
vote
1answer
493 views

how to subscript when there is a cap on mathematical expression?

The following equation is typed using MS word: When I tried to type same using LaTeX with subscript _i ended up with this result because there is a cap above subscript "beta". The LaTeX output is ...
1
vote
1answer
280 views

How to justify text that contains inline-style equations?

I am using WinEdt for LaTeX. After compiling the tex file, the output comes out in the following way. Is there any way to justify the text better? It seems quite bad on the right side of the text. I ...

1 2 3 4 5