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.
331 questions
3
votes
1
answer
107
views
How to make text box in a line with circled number in it?
I want to create a text box with circled number in it, that is aligned in a straight line with the text, as shown in the picture above. I have tried different methods, but the box always appears ...
3
votes
1
answer
421
views
Why does LaTeX convert inline Python code (range(N-2)) into -NoValue-?
I am using Changing the background color of a listing depending on the language to display code with a different background color depending on the language. But with some code, it fails and prints -...
5
votes
1
answer
426
views
When is it appropriate to use inline or display math?
I am new to the stack exchange and to LaTeX itself. I would like to know when it is appropriate to use display mode or text mode. For example, let's say I write
\[ \frac{\mathrm{d}}{\mathrm{d}x}\int_a^...
2
votes
0
answers
131
views
How to diminish the distance between the numerator and denominator of a text-style \frac expression if 'Stix Two Math' is used?
When the Stix Two Math font is in use, I think the inline/text-style fraction has its numerator and denominator too far away from each other, in comparison to other fonts.
The following screenshot ...
2
votes
2
answers
149
views
Readability of inline fractions [closed]
In a markdown document, I need to express a 2nd order partial derivative inline. I have (afaik) two ways:
* $p_{ij}$ stands for $\frac{\partial^2 F}{\partial x_i \partial x_j}$
* $p_{ij}$ stands ...
4
votes
1
answer
160
views
How to make inline textfield appear exactly where specificed inline
I am trying to make a form-fillable pdf that has inline fillable elements within other text. For example:
\usepackage{hyperref}
Text before bla bla bla \TextField[name=date,width=4cm,borderwidth=0,...
3
votes
3
answers
584
views
Best practice for vector in text
what is the best practice for setting vectors inline in a text? Using bmatrix or only []? E.g.
Sample text with vector $[v1, v2, v3]^\mathrm{T}$
or
Sample text with vector $\begin{bmatrix}v1, v2, v3\...
3
votes
1
answer
72
views
How to put two xymatrices on the same line
Here is a minimal working example:
\documentclass{article}
\usepackage{amsmath, amssymb}
\usepackage[all,cmtip]{xy}
\begin{document}
\begin{xymatrix}{
&&\{1,2\}\ar@{-}[dl]\ar@{-}[dr]\\
& ...
1
vote
0
answers
159
views
Is there any known incompatibility between `lwarp` and `standalone` packages? Inline math is not displayed correctly
I am working on a mutlifile LaTex project and I am using standalone package to handle multiple source files. In addition to a pdf, I also want to generate an html file as output. I searched around and ...
1
vote
2
answers
143
views
Enumitem inline list: top margin
How to increase the vertical gap above an enumitem inline list? I tried topsep but it had no effect.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage[inline]{enumitem}
\...
1
vote
0
answers
37
views
implement inline code block with tcb [duplicate]
I want to create an inline code block like what is shown in markdown by using `` looking like this.
Here is my approach by using tcolorbox.
\documentclass[a4paper]{article}
\usepackage{xcolor}
\...
1
vote
2
answers
132
views
A way to indicate Latex it can break lines in inline formulae after commas?
I often use long inline math formulae that contains tuples, such as $(\Operator1, \Operator2, \Operator3, \Operator4, ...)$, and also lists of operators such that $\Operator1, \Operator2, \Operator3, \...
2
votes
2
answers
406
views
Inline math font size significantly smaller (or larger) than surrounding text font size when using uarial
I'm having trouble with the font size of (inline) math compared to the standard text size. The mathematical expressions have a font size that is visibly smaller than the surrounding text's size. Here ...
1
vote
1
answer
593
views
how do I make a short-cut which invokes "insert math inline" (typically for use with selected text)?
I'm using LyX 2.4.2.1 on a MacBook Pro (M1, Sonoma) and find that the function I most frequently need to invoke involves inserting a new inline math formula. Typically I start by selecting a symbol (...
0
votes
2
answers
123
views
Even horizontal spacing in enumitem inline lists
I would like to have an equally (horizontally-)spaced inline list, like
(1) 0.4 (some spaces) (2) 12.372 (some spaces),
so that each [item and its spaces] will take account of the same ...