Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
18 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
20 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
281 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
21 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
22 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
30 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
52 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
66 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
58 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
637 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
42 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
24 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
66 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
121 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
19 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
39 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
25 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
341 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
49 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
50 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 ...
0
votes
0answers
26 views

Adding an expression of C++ code inside a paragraph [duplicate]

I need to write the expression root->left->path_length <= root->right->path_length of C++ inside a paragraph (inline). To use $ $ was a bad idea. I need something as listings to show ...
5
votes
3answers
134 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
65 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
47 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
101 views

Inline math: $ $ vs \(\) [duplicate]

I've been using LaTeX for years now, and in all those years I've always used $ $ to write inline equations. Recently I realized that the environment \[\] has an inline analogous \(\), and so I was ...
1
vote
1answer
146 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
0answers
16 views

LaTeX: How to use inline limits in equation mode [duplicate]

When in equation mode, limits appear below and above operators (\min, \max, \sum, etc.) I would like to make them appear as in inline mode, near the operators. I know the inverse is possible (adding \...
0
votes
1answer
287 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
171 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
555 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
622 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
62 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
65 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
64 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
93 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
101 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
411 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
119 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
390 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
903 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
649 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
40 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 ...
4
votes
2answers
3k views

Inline verbatim

I would like to write something like this inline: This is paragraph element <p> I'm using verbatim for writing the HTML element part, but cannot form everything in one line. I get something ...
1
vote
1answer
336 views

Manual break line of overly long equation in table

How can I get LaTeX to apply line breaks in display math mode for a long equation? I created a table of: % \usepackage{booktabs} \begin{table}[] \centering \caption{My caption} \label{my-label} \...
1
vote
1answer
213 views

Tikz Feynman error in irreducible diagrams

I am trying to create some feynman diagrams with tikz. My problem is, that I want to create some simple diagrams like vacuum diagrams in φ^4 theory, which are reducible though, so I don't know where ...
1
vote
1answer
219 views

How htlatex decides which equations needs to convert as images and math

I have given simple code below: \documentclass{book} \begin{document} This is for test $-3$ inline equation $-z a-3\sqrt[2]{a+b}$ \end{document} Then I run the command htlatex test "xhtml" " -...
4
votes
1answer
88 views

How to typeset numbers and short consecutive math statements in running text

Which version should one use? The numbers $1,2,3$ are natural numbers. The numbers $1,\,2,\,3$ are natural numbers. The numbers $1$, $2$, $3$ are natural numbers. Considering using the last ...
1
vote
0answers
39 views

How do I split an inline-math parenthesized list? [duplicate]

I have some paragraph of text, within which I want to say something like $( foo, bar, baz, and, so, on)$. This overfills the line and doesn't break where (I believe) it should. Questions: Why doesn'...
1
vote
0answers
22 views

Error with Bad Math Delimiter [duplicate]

I am struggling with a Bad Math Delimiter error, could I please ask for some help with this issue? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{setspace} \usepackage{mathrsfs} \...
1
vote
0answers
360 views

inline enumerate in Lyx [closed]

I am trying to get inline enumeration in Lyx. It's pretty handy for things like (i) this, (ii) inline, (iii) list. In plain Latex I use \usepackage[inline]{enumitem} and later simply \begin{...