The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
8
votes
2answers
183 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 \...
0
votes
0answers
15 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}, ...
0
votes
0answers
37 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
114 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
21 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} \...
0
votes
0answers
18 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 &...
2
votes
2answers
63 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
100 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
34 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
26 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
60 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
32 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
30 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
474 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
34 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
31 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
35 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
84 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
87 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?
1
vote
2answers
92 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
930 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 ...
2
votes
2answers
63 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
32 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....
0
votes
1answer
88 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 ...
3
votes
1answer
192 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 ...
0
votes
0answers
22 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
58 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
44 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
509 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
51 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
61 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
159 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
93 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} \...
0
votes
1answer
69 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 ...
1
vote
1answer
221 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 ...
0
votes
1answer
415 views

Custom color for LaTeX output in Sphinx documentation package

I am trying to customize the color of the LaTeX inline formula when using Sphinx documentation package, and html output. The details: I have a file called func.rst, which includes the following line:...
2
votes
1answer
349 views

Vertical Spacing for Table with Equations [duplicate]

So I have a table with equations, below. It's a bit crunched up and I want to add vertical space in the rows. I'm using booktabs package for heavy lifting. \begin{table} \begin{tabular}{lcc} \...
4
votes
4answers
568 views

Asking latex to try harder to not split inline math across multiple lines

I do not like it when my inline math gets broken up over multiple lines. I'll live with it when I have to, but I'd rather it didn't happen, even if this means sometime justification is a bit worse. I ...
4
votes
2answers
761 views

How do I align these inline bullet points?

I have the code \usepackage[inline]{enumitem} \makeatletter % This command ignores the optional argument for itemize and enumerate lists \newcommand{\inlineitem}[1][]{% \ifnum\enit@type=\tw@ {\...
1
vote
1answer
63 views

biblatex adding “i,i” before author citation

I've looked up and down through a bunch of forums and could not for the life of me find why my document might be printing "i,i" before the author both inline and in the bibliography for all citation ...
2
votes
1answer
76 views

Draw on margin of page with tikz

Let me start by saying that I know my design is ridiculous. :) I have the following document. \documentclass{article} \usepackage{tikz} \usepackage{soul} \newcommand{\customhl}[1]{\hl{#1}~\tikz[...
0
votes
1answer
77 views

Horizontal enumitem, with images?

I'd like to make a horizontal list with 4 items, each being a picture of square side and roughly 0.4\linewidth wide. I tried to use inline enumitem, but the image keep going to next rows instead of ...
1
vote
1answer
120 views

D&D item cards won't share lines using TikZ

I'm creating D&D item cards for my players using TikZ and the template given by Tom Bombadil on this question. The code below produces this result: What I really want is this result: I have the ...
2
votes
2answers
108 views

ntheorem's fleqn and thmmarks options break \if@display

The following MCE points out ntheorem's fleqn and thmmarks options break \if@display: e.g., as soon as thmmarks is uncommented, the 1st "equation" contains "Non-display math". Do you see what's going ...
1
vote
1answer
512 views

Inline math within \newcommand using Pandoc

I'm trying to define a new command as a shortcut for typing arrows in textmode. This requires to use inline math within the command's definition, since I'd like this to work with more kinds of arrows ...
1
vote
1answer
148 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} \...
4
votes
1answer
509 views

enumitem: levels with inline option

I have a class file in which I need to set up the enumerate and the inline version enumerate* (as provided by the enumitem package with option inline). As defined, the two environments share labels, ...
1
vote
2answers
2k views

Avoid indentation of new paragraph with sloppypar

I would normally write an equation followed by some text like this: \begin{equation} 2+1 \end{equation} where... In which case the where clause is NOT indented. Now, I need to use ...
2
votes
1answer
876 views

How to set globally the label of enumerate and enumerate*?

in my document I have 2 types of enumerate lists. I use enumerate for lists like: 1. Item 2. Item 3. ... And enumerate* for lists like: (a) Item, (b) Item, (c) ... I set globally the ...
0
votes
0answers
44 views

How to “inherit” style to math inline?

I've been looking for this a while now, but nobody seems to use the word "inherit", so now I'm asking here: How do I make inline math letters inherit the inline text style, like this: In this first ...