GuM
  • Member for 7 years
  • Last seen more than 1 year ago
  • Italy
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
Kerning between $\uptau$ and subscript?
Accepted answer
2 votes

It may perhaps be surprising, but TeX makes no provision at “machine-level” for inserting a negative kern before a subscript if the letter being subscripted has a shape that would make it ...

View answer
Changing above/below display(short)skip with memoir causes bad boxes in head/foot
Accepted answer
2 votes

(It’s very strange that @egreg hasn’t answered this yet, after 4 hours.) You are forgetting to put a % at the end of the lines of the code of your patch, thereby adding four stray spaces. Try this: ...

View answer
revtex split footnotes
2 votes

I’ve not made extensive investigations, but as far as I can presently understand, this looks like a bug in the revtex4-1 class. It turns out that the value of \count\footins is 500, which would be ...

View answer
Adjust vertical space if pagebreak occurs in that place
2 votes

Doesn’t the good ol’ \filbreak command do the trick, here? Or am I missing something? This command is described, along with an explanation of how it works, on page 111 of The TeXbook, third “...

View answer
Problem with align and cases
3 votes

A… well, not-so-slight (:-) improvement on Herbert’s answer: \documentclass[11pt]{article} \usepackage[framemethod=default]{mdframed} \usepackage{mathtools} \usepackage[most]{tcolorbox} \tcbset{...

View answer
Start picture at the absolute top-left edge of the paper
Accepted answer
3 votes

Quick answer: you have forgotten that you have the indentation box at the left of your picture and the \topskip glue above it. Quick fix: \documentclass[a4paper,twoside, openright]{book} \usepackage{...

View answer
How to modify the \relbar?
Accepted answer
10 votes

It happens because the amsmath package says \AtBeginDocument{% \mathchardef\std@minus\mathcode`\-\relax \mathchardef\std@equal\mathcode`\=\relax } and this causes \std@minus to be reset to the ...

View answer
\otimes with upper and lower quadrants "removed"
Accepted answer
8 votes

I too, like @egreg, am inclined toward a solution that draws the required symbol by hand. With the help of the subroutines provided by the halloweenmath package (which is entirely concerned with ...

View answer
Cross-referencing between local files with \href
2 votes

This is simply a proof of concept and needs to be refined, but it works as required and illustrates the relevant methods. You should create a new, empty directory, and then save the following three ...

View answer
Flush matrix entries to Left side
5 votes

If I understand correctly your intent, you are after something like this: The code: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly ...

View answer
Change "chapter" to "Chapter" - How to do this using autoref?
Accepted answer
13 votes

The manual of the hyperref package explains how to achive this on page 17. Edit: This answer assumes that you actually want to use the babel package. If this is not the case, just redefine \...

View answer
Implies arrow in the northeast direction
1 votes

It's not necessary to switch to Times font: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % ...

View answer
\@seccntformat only for section
0 votes

Just another variation of the same basic idea. It has the slight advantage that the \ifx test is purely expandable, should this ever be a concern. \documentclass[a4paper]{article} \makeatletter \...

View answer
Redefining `---`
11 votes

I still owe the answer I (more or less) promised in order to show how this issue could be addressed by means of patches to the font metric data. I have put it off until now because the situation we ...

View answer
Can I draw a box which (dynamically) fills to the bottom of the page?
Accepted answer
3 votes

Maybe I still need to fine-tune some parameters, but here is an idea with vertical \leaders that seems to work: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid ...

View answer
Command \ifcsname not expanding correctly when used in macro
6 votes

Another possibility is to use a LaTeX-style conditional. For example, in the code below we define a command \CustomIfDef, with should be used as follows \CustomIfDef{<cs-name>}{<if-defined-...

View answer
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
Environments with default font, another texts as \textsf
Accepted answer
2 votes

There are at least a couple of issues: the font should be specified as \rmfamily, not as cmr; you must invoke your new style before the \newtheorem statement. Try this: % My standard header for TeX....

View answer
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
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
Parentheses with automatically increasing heights
Accepted answer
2 votes

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

View answer
"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
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
Underarrow with smaller depth, shorter minimum length, and smaller arrow head?
2 votes

This question was bumped up to the home page because it was edited as part of the site’s “\\ bug” cleanup, and I couldn’t refrain from remarking that the halloweenmath package (it’s not a joke, it ...

View answer
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
Execute command at every *end* of a paragraph?
Accepted answer
9 votes

Your first question, “Why can I not reset \par to my custom definition by using \appto\endtrivlist?”, is pretty easy to answer, but your second one, where you ask for advice on what to do instead, ...

View answer
Change Geometry after first page *without* knowing where the second page begins
2 votes

Caveat: Use at Your Own Risk! As D.C. says (and as it is well known), it is basically impossible to have the text width change at a page boundary in an “automatic” fashion, that is, whatever the text ...

View answer
Bad spacing of exponents in denominator
Accepted answer
7 votes

Before reading on, please see this answer. What follows is about modifying TeX’s behavior so to obtain the desired output at the primitive level (in particular, not just for fractions, but for all ...

View answer
Adding vertical space at the start of a page
7 votes

I did try to post this as a comment, but it didn’t fit, not even in a more succint version... :-( I chanced upon this question, and, while reading the answers and the comments, I thought that it ...

View answer
1
3 4
5
6 7
11