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

0
votes
0answers
14 views

Prevent gather* from creating new line [duplicate]

I've been trying to use the gather* environment for non-aligned centered equations within enumerate but I would like to prevent the new line that gather* inserts at the beginning of each item. Is ...
8
votes
3answers
9k 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 ...
1
vote
1answer
25 views

Change the behavior of subscript \frac in inline math

I am writing a document which contains a lot of half-integer indices. In display mode, x_{i + \frac {1} {2}} looks fine. However, in inline mode, having several x_{i + \frac {1} {2}} messes up the ...
2
votes
3answers
30 views

Odd indentation after \newline, after Math text

So this happens whenever I try to insert a new line in my source code: The center equation is no longer centered! Why does that happen? I can't seem to figure out how to center it. Here's the ...
1
vote
1answer
20 views

How to insert inline images in moderncv?

How could I insert an inline image in the moderncv? to obtain any similar to image panoramic-> http://www.cutudc.com/laborais/images/CONSEL1.PNG I tried with the typical \begin{figure} .... but ...
0
votes
0answers
35 views

Difference between $…$ and \(…\) [duplicate]

I have seen many recommendations to use \[...\] instead of $$...$$ for display math, like at: What are the differences between $$, \[, align, equation and displaymath? I believe this is because the ...
0
votes
0answers
41 views

Line Breaks in Inline Math Mode

Is it possible to put in manual line-breaks in inline math mode? I have tried using '\\' and '\linebreak' but my equation keeps displaying as a single line. :( Sample code: \[ abcd \\ abcd \newline ...
1
vote
2answers
30 views

The same space between three tables

I make a very big data table, but the table don't fit in the page, so I slice the table in three tables. I want the three tables are next to each other separated by the same space or then joined by a ...
-1
votes
2answers
79 views

how do i create a linebreak in an inline math formula?

I tried to make a equation in Latex but the parentheses disappear near the edge of the page. How I put the equation in two lines? $\left(\omega=\frac{d\theta}{dt}=\int_{0}^{\dot{\theta}} ...
1
vote
2answers
38 views

Todonotes, inline with no decorations

I would like to use the todonotes package, but when I do inline todos, I don't want them to look any different. At the end of the document, I will list all the todos with \listoftodos and there they ...
0
votes
0answers
36 views

Babelbib - book citation with author and page numbers

I am using Overleaf to typeset my book using the Memoir class, and Babelbib\usepackage{babelbib}with bibliography style \bibliographystyle{bababbrv} to generate my references. I'm using ...
1
vote
1answer
45 views

Nice line-break in inline math within theorem environment

This is my first question here, I hope it's not bad (please bear with me if it is). I have quite a specific problem concerning inline math and theorem environment. In general, I want to obtain the ...
0
votes
0answers
26 views

Nicer looking underbrace on subscript [duplicate]

\usepackage{graphicx} \usepackage{framed} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{mathrsfs} \usepackage{array} \usepackage{enumitem} \usepackage{amsthm} ...
1
vote
2answers
54 views

how to increase Bracket size in Variance formula?

I want to increase the size of the bracket to display more nicely the output, but I didn't find out how. $$s^2 = \frac{1}{n-1}[\sum\limits_{i=1}^n x_i^2 - \frac{(\sum\limits_{i=1}^n x_i)^2}{n}]$$ ...
1
vote
1answer
44 views

Override the spacing on the right of an in-line equation when followed by a punctuation mark

I set \mathsurround to 2pt in order to have a bit more horizontal spacing between text and in-line equations. Is there a way to set it to 0pt on the right whenever the in-line equation is followed by ...
1
vote
1answer
46 views

Repeating certain signs after linebreak in inline math expressions

I use LaTeX to type my University Maths notes. In that, I often find myself faced with linebreaks in inline math expressions. In such a situation, I usually want to double the sign just before the ...
1
vote
1answer
91 views

Error using inline preview in texstudio

I use texstudio as my editor and on one of my computers (the other one works fine) I get the following error message when doing inline preview (by highlighting text, right clicking and pressing ...
2
votes
1answer
73 views

Inline python code in latex

I am trying to add some inline python code into my report with color in an box like following: As you can see "matrix text is red coloured embedded in a box" I can add inline colour code using the ...
3
votes
1answer
62 views

Use \int\limits by default, except for inline math

How can you instruct latex to use \int\limits as default for \int except when it's in inline math mode? Example: In display math: \int is replaced by \int\limits In inline math: \int should stay ...
2
votes
2answers
130 views

insert code keywords inline

What is the command to insert inline code words into the text like this? I know there are packages for inserting snippets into the code, but I only words within the main text. I was wondering if ...
6
votes
1answer
799 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 ...
30
votes
2answers
32k 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 ...
1
vote
1answer
47 views

Avoid splitting of math expressions in text [duplicate]

I am writing a math expression, $P = \omega \tau$, in the middle of my text, and LaTeX splits it such that "P =" is on one line and "\omega \tau" is on the next line. I would like the whole expression ...
1
vote
1answer
79 views

how to make the in-line math equation as shown in the figure beautifully arranged in text?

When discussing and explaining some math equations, I sometimes prefer to use in-line equations (created by use $ ... $ in the text) in the text environment, as shown ONLY in the last two lines. ...
4
votes
1answer
63 views

Nested enumerate and inlineitem leads to inconsistent label spacing

I've typed an exam up, and my nested enumerates seem to cause a problem with the separation between my label and the actual line item. This happens specifically when using the inlineitem command, ...
2
votes
1answer
28 views

Cross reference of an inline equation

Consider the equation \begin{align*} \dot{x}_i(t)=f_i\left(x_1(t),\ldots,x_N(t)\right) \\ + g_i(x_1(t),\ldots&,x_N(t))u_i(t),\tag{$\Sigma_i(u_i)$}\label{eq:subsystem} \end{align*} ...
75
votes
6answers
33k 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 ...
1
vote
1answer
78 views

Changing inline math symbols throughout a whole document

I have a document at hand that was written by using an old template and now I want to copy it to a new one. However, when I do this and execute the code I am facing the error Missing $ inserted. ...
1
vote
1answer
60 views

how to write centered plus minus 1 in inline math mode in latex

I want to write y belongs to plus minus 1 but i do not know how to write it. My code is as below: \begin{document} $y\in$ +- 1 \end{document but it is not giving centered plus minus 1.
5
votes
2answers
4k 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 ...
5
votes
2answers
120 views

Typesetting inline row vector

I have (another) question on typesetting inline row vectors. I'm using amsmath and mathtools. I'm aware of the smallmatrix environment. Unfortunately, the elements of the vector get scaled. This ...
2
votes
2answers
102 views

How can I suppress the line break before the first item of a list?

Using enumitem, I can typeset inline lists with the following \documentclass{article} \usepackage[inline]{enumitem} \begin{document} % Text before list. \begin{enumerate*} \item My first item. ...
0
votes
1answer
66 views

Font size of inline code-listings too small

I'm using the listings package and am satisfied with how my code listings look. The font in my inline-listings however is too small compared to the rest of the text. How can I only increase the font ...
1
vote
2answers
67 views

Handwrite letter V in Inline Math Mode [duplicate]

What package and command do I have to insert to write letter V in a handwriting style using Inline Math Mode? Below is the result I want to obtain:
2
votes
1answer
74 views

Latex typesetting, continue writing text not in new line [duplicate]

I have a very simple question that how to write SCR_life within text. Not write in the new line. I tried \[SCR_{life} \].
6
votes
1answer
102 views

Can I mark when there is a line break in inline math?

Sometimes a line break inside inline math is acceptable and sometimes it detracts from the message. I'd like to be able to see exactly where such breaks (meaning any line break during inline math ...
0
votes
0answers
37 views

Overfull hbox in lstinline

I have defined new command like this: def\inline#1{\lstinline[breaklines=true, basicstyle=\ttfamily]{#1}} Now I can say something like this in my document: \inline{my_file.cpp} But here is the ...
4
votes
1answer
112 views

remove first label in inline enumitem

I'm using an inline enumitem with bullets, but I would like there to be no bullet before the first item. After reading the manual, I tried the following, but it still leaves an unwanted space before ...
3
votes
2answers
306 views

Printing out a colored play icon inline with text

Problem: I have been trying to figure out how to replicate a button without success. I want to achieve to replicate the following button in LaTex. Control buttons don't seem to be available in the ...
7
votes
3answers
220 views

Display math gets typeset as inline math

When typesetting the below annotated equation my summations are being typeset as inline maths rather than display maths. If I wrap the sum and subscript with \smashoperator{} then they are typeset ...
5
votes
2answers
104 views

Breaking inline math within longtable or tabular

So, I've got the following code: \documentclass{memoir} \usepackage{longtable} \begin{document} \begin{longtable}{p{0.4in}cp{2.75in}p{1.8in}} Symbol & Unit & Describes & Equivalent ...
3
votes
1answer
160 views

How to prevent inline math from entering the margins on the right?

I'm writing a document (double columned, if it matters), and it seems that while normal text wraps just fine to fit the structure, when I use inline math, it tends to violate the page margins. For ...
3
votes
1answer
75 views

Combining different list types to work in one document

I would like to use \usepackage{enumerate} to write lists using both 1., 2., 3., and A., B., C. However, in some of my lists, I would like to save space in my paper and write, say, the first 3 items ...
3
votes
1answer
327 views

writing an enumerated list within a sentence

Can you please help me write an enumerated list which is in the same line and there is no line change between that and the rest of the text. E.g., We use three broad geographical regions, i.e., ...
14
votes
5answers
1k 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} ...
1
vote
1answer
493 views

Horizontal line in the middle (text alignment)

MWE: \documentclass{article} \usepackage{amsmath,amsfonts,amssymb,amsthm} \begin{document} \begin{gather*} y=3x-6 --- {1}\\ y=-x+5 --- {2}\\ \end{gather*} \end{document} Picture: How do I join ...
5
votes
1answer
241 views

Calculations in PGFplots \addplot3 inline table

Plotting a rectangular patch with the code \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} \addplot3[patch,patch ...
5
votes
1answer
975 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
222 views

Can I have a pipe character inside the argument of \lstinline?

I'm using the Listings package and I wanted to ask whether it is possible to use the pipe character | with the \lstinline command as it uses the pipe as beginning and ending character. ...
8
votes
1answer
147 views

Using a backslash and the following by it non-ASCII char

I'm writing a text with a special char of backslash (\), the text requires to containt the char and the following non-ASCII symbol (cyrillic), so for example I type: text \ц other text and I have ...