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

3
votes
1answer
22 views

positioning table inline with text

I have following piece of code: \section{Skills} \begin{CV} \item[Computing:] C/C++, Python and Matlab \item[CAD Tools:] GNU Radio, Xilinx ISE, Active HDL, MikroC, Keil uVision, Altium Designer, ...
0
votes
0answers
15 views

Is there a way to change behaviour of a (math)command depending on the display style? [duplicate]

I want to define a command that changes behaviour depending on weather it is written in inline or disply mode. For example I want to define \backlim, such that it prints \lim_\leftarrow when used in ...
5
votes
2answers
82 views

Best way to deal with overfull inline listings

I am typesetting inline code listings using the listings package. Since I'm using C# syntax, oftentimes listings contain long words (type names/variable names). Since words in listings won't be ...
4
votes
2answers
54 views

How to denote adjacent vertices?

Background I'm trying to write a rapport that relies on some rudimentary graph theory and as such I'd like to write a section explaining the basics of it. Trying to do I've run into a bit of a snag ...
0
votes
0answers
18 views

Place figure just as you would a glyph/character [duplicate]

I would like to use a figure inline - and by that I literally mean having it inside the line of text. I want to display it in parentheses to illustrate what symbol I am referring to - these symbols ...
1
vote
1answer
77 views

I can't find/fix the errors in order to be able to compile it

\documentclass{article} \usepackage{amsmath} \begin{document} $These are two truth tables for the following: $\neg (p \vee q)$ is logically equivalent to $(\neg p) \wedge (\neg q)$ ...
13
votes
5answers
586 views

Alignment in inline math

I want to enclose a tabular environment with a bracket, inside an enumerate environment, and be aligned to top. In the following example: \documentclass[a4paper]{article} \begin{document} ...
3
votes
1answer
73 views

How do I make an inline list respect margins without hyphenation?

I'm using the enumitem package to create inline lists in my resume. I currently have a snippet of code that looks like \begin{description} \item[Frameworks/Libraries:] ...
1
vote
0answers
56 views

Using oldstyle numbers in XeLaTeX math mode for ONLY inline math

Is there any way to use OldStyle numbers for text and inline math only, while using Lining in the align and equation environments? Ideally via mathspec, but I'm open to other solutions.
6
votes
1answer
78 views

Spacing around inline equations

What is the parameter determining spacing and stretchability around inline equations? I want to tweak spacing exactly but cannot find where the parameters are.
6
votes
1answer
76 views

Use dimensions \totalheight \depth for inline TikZ drawing

I want to use the current text's dimensional properties for constructing an inline TikZ image, such as an icon. The properties I have in mind for use are \height \depth \totalheight as described ...
6
votes
1answer
115 views

Embed image data (png or pdf) inside tex document [duplicate]

Is there a way to include (or "inline") raw image data or pdf data inside the tex document itself, such that it becomes stand-alone? Something like this: ...
2
votes
1answer
58 views

Using math symbols inside mbox

I am trying to write something like r=1m or r~1m inlined in my text. Currently i am using $\mbox{r=1m}$. However this gives me problems if I use $\mbox{r \approx 1m}$ it is not working and ...
3
votes
1answer
159 views

Fill in the blank: text wrapping & math mode

I am making notes with blanks to fill in and would like to produce an instructor version with blanks filled in and a student version with blanks unfilled. I would like a \fillin{ . . . } command that ...
16
votes
3answers
488 views

How to make horizontal lists?

This might seem like a very simple question, but what is the easiest way to turn a normal vertical list into a horizontal one?
1
vote
1answer
83 views

Avoid inline equations starting on left the margin

I would like to avoid that ANY inline equation starts on left the margin. The solution I have for that right now is to compile the document, check where this happened and add a ~ in front of the ...
4
votes
1answer
149 views

Making Inline Code Printing Pretty

I have to include small code snippets like method and class names within continuous text. I do not want to display those snippets as complete seperated listings, they should be displayed inline, ...
2
votes
1answer
67 views

Can I make lyx produce double dollar signs instead of \[ and \] it currently produces for inline math?

I am using LyX to type answers and questions for Math.SE and many times I need to use use inline math (by writing two dollars signs instead of just the one, i.e $$). After finishing typing I copy the ...
6
votes
3answers
119 views

How to set an Inline figure matching the text height?

I want to put a very small figure inline with text. The figure must have the same height as the line it is positioned in. I have this: Some text... \includegraphics[height=\baselineskip]{picture.png} ...
2
votes
1answer
105 views

$$, \[ \] and equation environment alignment

I'm using scrreprt class and I'm having troubles with different behavior of $$ and \[ \]-written equations and equation environment. The problem is that alignment is not the same: $$ equations are ...
3
votes
2answers
177 views

How to highlight all inline math in document?

As the title says, I would like to highlight all the content of $...$, \(...\), \begin{math}...\end{math} in my document. My last trial, however not really well asked was: Background color for ...
4
votes
2answers
123 views

Inline underset spilling over to next line

The underset of my "xdim" command is touching characters in the line underneath. How to correct? \documentclass[12pt]{minimal} \usepackage{amsmath} ...
0
votes
0answers
52 views

Label of custom inline environment won't appear in Kile's “structure” view

I've defined a custom command to number hypotheses in my document, for ease of explanation, it's broadly similar to the inline equation example given as an answer here. My question is, is there a way ...
6
votes
2answers
138 views

Object Formatting: Graphics as In-line Symbols

I'm trying to create an in-line symbol that is a specific shape. I'm wondering how I can have something like this in my document:
5
votes
1answer
175 views

How can I make \lstinline function normally inside math mode?

\lstinline of the listings package doesn't work in math mode. When I try to use it, I get the error that \ttfamily is invalid in math mode. However, when reasoning about program semantics, it is ...
4
votes
2answers
212 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 ...
6
votes
1answer
82 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 ...
2
votes
1answer
186 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 ...
6
votes
2answers
411 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
136 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
76 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 ...
5
votes
0answers
462 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
708 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 ...
1
vote
1answer
127 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
121 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
186 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
109 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
71 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
171 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
183 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 ...
1
vote
1answer
138 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
689 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
194 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
108 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 ...
12
votes
1answer
618 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 ...
9
votes
1answer
7k 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 ...
22
votes
3answers
1k 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
97 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
219 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
203 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 ...