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 ...

learn more… | top users | synonyms

4
votes
2answers
409 views

Automatically adjusting layout of inparaenum

I am trying to customize an inline list in the following ways: I would like an item that doesn't fit entirely on one line to be moved to the next line. Increase the vertical space between ...
8
votes
1answer
156 views

Change spacing around binary operators

I'd like to change spacing around binary operators and this issue is discussed there: How to change default for spacing around binary relations? Is there way how to change spacing in math and ...
3
votes
1answer
338 views

Package minted: \mint Command Not Working Inside tabularx Environment

The question, How to embed a minted environment inside a tabular environment?, addresses a similar issue, but I am using: the tabularx package, and the inline \mint command Is there a workaround ...
9
votes
2answers
974 views

How to force normal line spacing when inline math in text

I have trouble in writing my latex document : I have a lot of inline short math formulas in my text, and latex keep growing line spacing because of it. I'd like to force latex to keep a normal line ...
5
votes
1answer
163 views

Background color for inline math with linebreaks?

What's the simplest way to achieve coloured background for the inline equation in the following example: \documentclass{article} \begin{document} Completely unimportant text $ABC_{1234} = ABC_{1234} ...
2
votes
1answer
97 views

Is it possible to break the following aligned?

I don't want to use the displayed math environment for which \allowdisplaybreak is designed. Shortly speaking, is it possible to break the following alined by defining something like ...
6
votes
0answers
635 views

How to have inline code and line numbering with minted?

I'm using the code found in this answer to allow minted to provide inline code. But, unfortunately, this breaks line numbering, which is not shown anymore. How can I have both inline code and line ...
3
votes
1answer
1k views

LaTeX - Using commands inside inline code

I want to be able to have inline code (printed in typewriter or something) where I can also use LaTeX commands like \myinlinecode{here comes a backslash: <\textbackslash>}. So it should be ...
2
votes
1answer
228 views

LyX: Vertical spacing only some lines in a paragraph/ only the inline formulas

I have the following problem in LyX: I get many paragraphs with awfully long in-line formulas, which by multi-lining come to be vertically adjacent. The aesthetic effect is quite awful, so I would ...
7
votes
1answer
205 views

Grouping items onto the same line to avoid wrapping

I am authoring a poker-related document and am using the following commands to allow me to display cards: % Suit image adjustments: \newcommand{\suit}[1]{\includegraphics[width=8pt, height=8pt]{#1}} ...
6
votes
2answers
276 views

Inline math spacing and varying interword spacing

Say I want to reduce the space between two letters in math mode by 2/18 quad. Going all Die Hard 3, I put together 2 -3/18 quad \! and add 4/18 quad with \:. The problem is, though, that apparently ...
2
votes
1answer
165 views

Inline math: Line breaking and stretching only in specified places

Is it possible to have document-wide solution for all inline formulas was breakable and stretchable only in pointed positions? Like $longformula1 \/ longformula2 \/ longformula3$ was able to break ...
1
vote
1answer
95 views

Create commands each of the text aligned horizontally?

I am using exam document class as my guide in creating my own documentclass but i have encountered a problem.How will i create a command for each of the four texts in a line. here is a sample image: ...
4
votes
1answer
220 views

Inlining aligned tabular material in block of text

Edit. Some comments might be outdated. I would like to do the following: The blue parts should be treated as normal paragraph text, with normal automatic hyphenation. The green part is what you ...
3
votes
2answers
323 views

Force paragraph to stay with previous

I am using knitr to create inline sparkline-esque graphics. However, when knitr inserts images that it generates with R, it add a blank line, which forces LaTeX to make a new paragraph. That is, if I ...
2
votes
1answer
209 views

\lstinline break at punctuation

I need listing package (\usepackage{listing}) to break at punctuation namespace::subnamespace::class ^ ^ at either these two locations
2
votes
2answers
2k views

Line spacing with inline formula including fraction

I have a fraction in an inline formula as can be seen in the picture. \dfrac from the amsmath package was used. (This is article class with 14pts and linespread 0.9.) Though the space between the ...
0
votes
1answer
452 views

inlineMath \$…\$ not working but default \(…\) does [closed]

I am having issues getting a custom inlineMath format to work. I have included the MathJax CDN and then using the in-line configuration options. I can get all of the default formats to work $$...$$, ...
4
votes
1answer
155 views

Can LuaTeX do something to alter linebreaks inside math inline automatically?

This is kind of a follow up to this question. Consider the sample code: \documentclass{minimal} \begin{document} A text with an inline equation which is broken in to two parts but is not wanted right ...
13
votes
1answer
1k views

Why do I have overfull \hbox when I use inline math without line breaks

To prevent line break within equation I use following LaTeX command: ${r^2 = x^2 + y^2}$. Unfortunately it gives me Overfull \hbox (12.4459pt too wide) warning. Why LaTeX doesn't move whole ...
21
votes
1answer
20k views

How to rotate text inline?

I used the rotating package to rotate the symbol 90 positive degrees and that worked well. But I also want to rotate it 270 positive degrees and then it ends up hanging down on the line below. How can ...
23
votes
3answers
2k 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 ...
3
votes
1answer
140 views

Aligning a listing environment within a paragraph

I have the following code that displays a listing in a paragraph. However, because there are not so many line of code, I would like to move it to the right and the paragraph be on the left hand side. ...
2
votes
2answers
374 views

inlinelisting adds a space after keywords

I am having problem with lstinline macro. It keeps adding a space after the keyword "Module" - see MWE. How could I convince Latex not to do so? I already tried with including the "." inside the ...
6
votes
1answer
294 views

Include BibTeX contents in a listings block

I am trying to include the literal contents of a BibTeX file in my LaTeX document using the listings package but am running into an issue. As BibTeX does not appear to be natively supported (though ...
1
vote
1answer
742 views

Include a lstlistings keyword in lstlistings caption

I'm writing a small summary for my fellow students about VB in LaTeX. I have to cover the basic loops and found the \lstlistnigs package to be the best for writing colored code. I have already added ...
1
vote
1answer
193 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 ...
4
votes
2answers
645 views

inline equation outside margin

My inline equation falls outside the margin. I was wondering if there is any solution for that? Here is the MWE: \documentclass[12pt,letterpaper]{article} \usepackage[utf8]{inputenc} ...
3
votes
1answer
4k views

How to add vertical space between two lines of tables

\documentclass[11pt]{article} \usepackage{tabu} \usepackage[inline]{enumitem} \begin{document} \section{abc} \begin{enumerate} \item \begin{enumerate*} \item ...
2
votes
1answer
184 views

Insert a photo inline with some text and math environment (align)

I'm trying to get sth like: I've been having problem with the picture-inline-with-text part. A little help please. The wrapfigure package (which is known to be better) doesn't work. Nothing is ...
4
votes
1answer
101 views

Global inline formula breaks configuration

How I can configure inline formula breaks globally without changing original formulas? What package can help me? I saw this post, but the trick with comma does not work. UPDATE The formulas look ...
8
votes
2answers
359 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 ...
10
votes
2answers
1k views

Labelled in-line equation

I searched the internet but I cant find a solution for my problem. I want a numbered and labelled equation inside the text.Something like: The equation a+1=b (2.1) does ... The equation a+1=b ...
8
votes
2answers
3k views

Line-break inside a `\verb'

I have set my text editor to wrap text at 76 columns. When including verbatim text in-line, my text editor did an auto-word-wrap and I ended up with something that looked like: \item Just another ...
6
votes
1answer
141 views

Autofit for inline equations

I am trying to use an inline equation to list bunch o tuples. However, I it does not automatically go to next line. I am doing it manually, but this time it looks ugly. By the way I am writing in a ...
5
votes
2answers
110 views

Tie an inline math environment to be in the same line

How should I put command so that my inline math environment could be together. For example 0<x<1 is break up into two parts, 0< and x<1 in the next line.
7
votes
1answer
254 views

Allow line breaks but not page breaks in inline formulas

It often happens that LaTeX breaks up an inline formula over two lines. However, I find it quite distracting when it breaks an inline formula over multiple pages. For example: ...
9
votes
2answers
499 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 ...
7
votes
1answer
1k views

Avoid line breaks after \lstinline

I'm writing a computer science paper with LaTeX and have a lot of inline code. Now, when this code is followed by a comma and is at the end of line, the line break is inserted before the comma, which ...
4
votes
1answer
3k views

Numbering equations in tabular environment

I wish to number equations in a table, like numbering them in \begin{equation}. ... \end{equation} Since all the equations are written as "inline" equations (for example, $a = b+c$) in ...
0
votes
2answers
313 views

Using hfill to prevent expansion of text in table environment

I am using inline lists (from the enumitem package) within a table (see Comma-separated list environment) Originally, I had an issue where the inline list would expand horizontally to the width of the ...
19
votes
1answer
4k 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 ...
2
votes
2answers
5k views

How to place inline figure

I am trying to create a resume with a picture. So i want the picture to be on the right hand side while the text is written on the left. With a bit of googling, I found wrapfigure package to insert ...
5
votes
1answer
818 views

avoid linebreak in \lstinline if possible

By using \lstinline{mysourcecode} I put some code within my document. I would like to avoid that this code is broken to a new line, if possible. so, if the codeline itself is less long than a full ...
6
votes
1answer
5k views

Embedding sound files into beamer presentation with media9

I'm trying to embed a sound file inline into a beamer so i don't need to carry the sound file around with the pdf. Currently I place sound files into my beamer with the multimedia package and this ...
8
votes
2answers
7k 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 ...
8
votes
2answers
4k views

\lstinline!Foo! vs \lstinline{Foo}

I wonder what is the difference or correct usage of \lstinline!...! and \lstinline{...}? I like better {} because I feel there it's more consistent with other commands but for example in below ...
8
votes
2answers
347 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 ...
10
votes
2answers
190 views

Different symbols in $…$ and align environments

Is there a way to force LaTeX to produce different symbols either in $...$ or \begin{align}...\end{align} environments? For example $ \mymacro $ should lead to A while \begin{align} \mymacro ...
3
votes
3answers
4k 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 ...