GuM
  • Member for 6 years, 11 months
  • Last seen more than a month ago
  • Italy
4 answers
8 votes
1k views
Custom Math Symbol - Two Sigma Sums
5 votes

As usual, I prefer going the good ol’ ways: here is a classical solution with \mathpalette. It has now been updated to improve integration with the amsmath package: it is for me a pleasure to thank @...

View answer
2 answers
3 votes
908 views
How to format a text with different description logic symbols?
5 votes

I’d like to add a remark to @egreg excellent answer: when the line-breaking task becomes really tough, as in this case, you might want to allow breaks at places where you wouldn’t ordinarily do. ...

View answer
1 answers
2 votes
1k views
Numbering claims
Accepted answer
5 votes

You are getting what you have asked for: claims numbered in the same sequence as theorems and propositions. If you want claims to be numbered within them, instead, you must replace \newtheorem{claim}...

View answer
1 answers
6 votes
955 views
Landscape with table adds an extra blank page when setting \topskip
5 votes

This issue has nothing to do with the lscape package: indeed, you can reproduce it with the following simple program \documentclass[a4paper,twoside]{article} \begin{document} A\par \clearpage % \...

View answer
2 answers
2 votes
491 views
How can I use Linux libertine font for math operator?
Accepted answer
5 votes

Something like this? % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % declare the paper format. \...

View answer
1 answers
2 votes
247 views
Why are these boxes not the same height?
Accepted answer
5 votes

Please forgive me if I say that it seems you are not completely understanding how interline glue works: I’ll try to give a simple explanation that avoids TeXnicalities. Interline glue is a device by ...

View answer
1 answers
0 votes
264 views
Remove date in amsppt
5 votes

I haven’t been authoring AMS-TeX documents for almost twenty years, but I can say that the following code is compiled by plain TeX… \input amstex \documentstyle{amsppt} \magnification=\magstep1 \...

View answer
1 answers
6 votes
9k views
Colorize symbols with lstdefinelanguage in latex
Accepted answer
5 votes

I have found myself in a similar situation, previously, and I was able to solve the problem in this way: \documentclass{article} \usepackage{graphicx,color} \usepackage{booktabs} \usepackage{...

View answer
2 answers
6 votes
472 views
Exact alignment of caption beside figure
Accepted answer
5 votes

Alas, @egreg’s explanation, although captivating, is incorrect. (But I too was deceived at first, since I upvoted it! :-) Notwithstanding the fallacious diagnosis, however, the cure he suggests is ...

View answer
1 answers
4 votes
483 views
Left-justified text with wrapping math
Accepted answer
5 votes

As a matter of fact, the way \raggedright is implemented in LaTeX (with \@flushglue) will never permit, in practice, that a line be broken in the middle of a formula, because this implementation tells ...

View answer
5 answers
3 votes
635 views
Align equations in enumerate environment
5 votes

I was about to post this other possibility \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{enumitem} \begin{document} \begin{enumerate}[align=left, ...

View answer
3 answers
4 votes
1k views
Optional newpage command
5 votes

It’s a bit sad to see how easily people are inclined to forget the good ol’ ways of doing things… Seriously, this question (like others I have already seen on TeX.SX) looks like a classical problem ...

View answer
2 answers
7 votes
8k views
Long title in table of content doesn't break properly
5 votes

Note: This answer has been thoroughly edited (by its original author) in order to straighten it. As it happens, the way in which the standard book class, or the LaTeX kernel, implement the \l@chapter ...

View answer
2 answers
6 votes
560 views
Cross-referencing enumerate item
4 votes

The key is to redefine the macro \p@enumii, which holds the prefix used in this situation: \documentclass[12pt]{article} \begin{document} \begin{enumerate} \item Solve $x^2=1$. \item Solve $...

View answer
2 answers
4 votes
715 views
Is there a way to write slanted non-italic (especially bold/bb lowercase) letters in math mode?
4 votes

An alternative to Steven’s answer: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % declare the ...

View answer
2 answers
2 votes
1k views
Position figure (left, right, center ) minipage, wrapfigure etc.. and equation
4 votes

Have a look at this (same remarks as Bernard’s): % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % ...

View answer
2 answers
10 votes
299 views
Does \leavevmode leave any tokens in the input stream
4 votes

I’m afraid I don’t fully understand this “question-with-answer”, or better, what its author was aiming to when he posted it. I had initally thought of explaining my doubts in a comment, but I found ...

View answer
2 answers
0 votes
270 views
How to write a basic equation in latex (see picture)
4 votes

I’m sorry, but Sebastiano’s is an awful way of using the align* environment. Let's recap a few basic facts: The source code is: % My standard header for TeX.SX answers: \documentclass[a4paper]{...

View answer
4 answers
7 votes
1k views
Aligning split equations to the left perfectly
4 votes

Here is a possible solution: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % declare the paper ...

View answer
1 answers
3 votes
393 views
How to restore normal flow after \filbreak
Accepted answer
4 votes

I had previously posted, and subsequently deleted, an answer that was completely wrong; now I’m replacing it with the following one, which not only makes at least some sense, but also seems to work as ...

View answer
2 answers
6 votes
5k views
Different Sum signs
4 votes

I’m making this an answer because it doesn’t fit in a comment: the \mathchoice machinery is unnecessary, because the functionality it is aimed to is already built into TeX at “machine level”. See The ...

View answer
2 answers
2 votes
767 views
forcing a page break in the middle of a long footnote in LaTeX
4 votes

In all probability, Ulrike’s answer is what you really want. However, in order to do literally what your question asks for, that is, to force a page break between two paragraphs of a footnote (for ...

View answer
1 answers
3 votes
977 views
How to install new listing language definitions?
4 votes

Quoting from the manual of the listings package, p. 43: Where should I put my language definition? If you need the language for one particular document, put it into the preamble of that ...

View answer
1 answers
4 votes
1k views
Setting same distance between header rule, footer rule and text
Accepted answer
4 votes

The problem is well-known: it’s the “difference between \footSKIP and \headSEP”, as the comments in ltoutput.dtx say. In other words, while \headsep gives the vertical distance between the baseline ...

View answer
4 answers
7 votes
675 views
Disable kerning for math letters / CM fonts incoherent kerning for df and dj
4 votes

I couldn’t resist adding the fussy details, just in case somebody’s interested in them. Kerns, ligatures, and italic correction in math Yes, TeX does execute the ligature programs of a font even when ...

View answer
2 answers
12 votes
678 views
Typeset dots around numbers (old typography)
Accepted answer
4 votes

The order in which you combine the two skips (the \leaders and the non-\leaders one) doesn’t matter: they will always vanish as a unit. % My standard header for TeX.SX answers: \documentclass[a4paper]{...

View answer
2 answers
10 votes
355 views
How do I typeset the name of this site in (La)TeX?
4 votes

I chanced upon this question, and I daringly decided to voice my opinion in favour of \DeclareRobustCommand*{\TeXSXFullName}{% \TeX \kern .13333em --\,\LaTeX\ Stack Exchange% } \...

View answer
1 answers
3 votes
436 views
"Missing { inserted" when using own macro in formula
Accepted answer
4 votes

\substack is an expandable token, hence you need to wrap it up in braces to make it a subscript. Also, I don’t think you need to make each term of your reaction a subformula, by enclosing it in ...

View answer
1 answers
1 votes
914 views
How to align an equation within a \begin align block?
Accepted answer
4 votes

You could used the aligned environment for the nested alignment: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amsmath} \setlength\parindent{0pt} \begin{...

View answer
2 answers
4 votes
229 views
Standard classes - bug wih landscape option?
4 votes

The problem is well known: since they were designed when the only available output format was DVI, the standard classes don’t bother, when PDF output is being generated, to set the PDF page dimension \...

View answer
1 2 3
4
5
11