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 ...
6
votes
1answer
554 views
How to redefine \lstinline to automatically highlight or draw frames around all inline code snippets?
How to redefine \lstinline to automatically highlight or draw frames around all inline code snippets? E.g. using \bh and \eh commands from Highlight text in code listing while also keeping syntax ...
23
votes
6answers
6k views
Prevent LaTeX to break 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 ...
21
votes
3answers
420 views
maths nested superscripts and subscripts displayed incorrectly inline
I am having a strange bug when using nested superscripts and subscripts in inline math (displaystyle works fine). This behaviour is the same independently of the font used or the compiler (orginally ...
9
votes
2answers
325 views
How do I typeset continued fractions in Pringsheim's concise notation?
I would like to obtain the following formatting so as to write continued fractions in my equations without wasting vertical space.
What I need is one command named \cFrac which writes one fraction ...
6
votes
2answers
216 views
Writing specific versions of an operator for display and inline modes
I'm busy answering a question by constructing a new math operator that uses the sum symbol and some TikZ placed on top. My answer as it stands can be found here. It looks (I think) pretty good in ...
13
votes
1answer
2k views
Vertical alignment of inline images
Images appearing inline aren't always ideally placed relative to the baseline and risers of the text itself, so I frequently find myself doing manual adjustment, by eye, using \raisebox{}{} with a ...
6
votes
2answers
2k 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 ...
15
votes
3answers
2k 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 ...
12
votes
1answer
892 views
Inline TikZ - vertical centering
If I inline a bounded line segment like this:
the distance \tikz{ \draw [|-|] (0,0) -- (5ex,0); } overarching the activities
how can I make the line appear vertically centered on the line ...
8
votes
4answers
1k views
Micro-graphics inline in text
Can I insert a graphic in-line in a sentence?
Use case: I'm writing a manual that involves navigating the Windows Start Menu. I would like to insert a little graphic of the start menu in-line in ...
4
votes
1answer
428 views
How to avoid background / frame break in code listings with math / mathescape?
I have lots of C++ sources with LaTeX formulas in the comments. Ideal for using the listings packages to pretty print the source. However, most of the formulas break either, the background or the ...
8
votes
2answers
166 views
How to create an inline list via a macro
I want to create a macro that yields an inline lists. I can easily do this using enumerate* form the the enumitem package, but when I attempt to wrap this in a macro, I get:
Extra }, or forgotten ...
2
votes
3answers
1k views
Numbering side-by-side equations or inline equations
I am trying to produce a two-column table of math equations, where each cell contains its own left-justified, numbered equation.
I tried using \begin{equation} \end{equation} inside the tabular ...