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 ...
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)$ ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
1
vote
1answer
127 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 ...
2
votes
1answer
143 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 ...
7
votes
1answer
216 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
163 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 ...
4
votes
1answer
695 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 ...
5
votes
1answer
424 views

inline math with \ldots

what should be preferred: $x_1,\, x_2,\ldots,\, x_n$ or $x_1$, $x_2$, ..., $x_n$ I'm hesitating for the \ldots versus ...
2
votes
5answers
528 views

inline bracket, similar to a permutation and binomial, but aligned

I'm often experiencing instances, when I need to define a function on two sets in a domain. I'd like to create a command \newcommand{\func}[4]{...}, which makes an inline bracket, that shows how the ...
1
vote
1answer
136 views

Spacing of characters in a mathematical set, displayed inline in paragraph

I have a mathematical set notation that I want to display inline in a paragraph of text. However, when I write this, the output is not very beautiful: $\{ (w_j,\dots,w_{j+n-1}) | 0 \leq j \leq ...
35
votes
6answers
11k 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 ...
4
votes
1answer
724 views

Is it possible to use \begin{align} in an inline math mode with \displaystyle?

Is it possible to use \begin{align} in an inline math mode with \displaystyle?