GuM
  • Member for 7 years
  • Last seen more than 1 year ago
  • Italy
In horizontally aligned minipages, how can I force the last minipage width to extend to the right margin
0 votes

Why do you say that the code in the other answer doesn’t work? \documentclass[a4paper]{book} \usepackage{mathtools} % automatically loads "amsmath" too \begin{document} \noindent ...

View answer
Why does enumitem not start on a new line after a labelled item?
5 votes

You could emulate, in your command, what \item does internally. Edit: The previous version of this code had been written hastily and contained some inconsistencies. I’ve now made the \myparagraph ...

View answer
hyperlink with % in it?
3 votes

Three comments, three viable solutions: all work, at least with the pdftex driver. % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly ...

View answer
How can I write cases with grouping braces on both left and right side, and split the condition into two lines in LaTeX?
8 votes

I liked @Ken’s idea, but, once you have opted for a solution that uses nested “cases-like” environments, there’s an obvious improvement that permits to get rid of the additional unwanted brace, and it ...

View answer
The space between the table and its caption is very small
37 votes

My attention was drawn to this question by another one that had been posted on TeX-LaTeX Meta. In spite of having been asked almost six years ago, not only—IMHO, of course!—is this question still ...

View answer
Split moves my equations to the left. Why?
3 votes

I think that what you really mean is this: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % ...

View answer
How do I prevent large horizontal gaps when aligning?
Accepted answer
5 votes

I’m not sure I’ve understood what you want to do, but I’d go for something like this: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly ...

View answer
Can one customize lstlisting environment?
Accepted answer
6 votes

The following code does the trick for the three keywords; as far as I can remember, the listings package makes no provision for coloring the numbers in the code. \documentclass[a4paper]{article} \...

View answer
Extensible triple-bracket delimiter with a new symbol
Accepted answer
13 votes

Encouraged by David Carlisle, I eventually resolved to post this answer. I had begun to write a comprehensive one that explained how the solution works, but I soon realized that it would have largely ...

View answer
How to Place “-1-“ on the first page in the upper right corner 0.5 inch from the right edge of the paper
Accepted answer
0 votes

Curiously, I’ve not been able to find a question that qualifies as an exact duplicate of this one (but I could be wrong). Well, try to see if the following sample code does what you want: \...

View answer
Understanding Brace Hacks
13 votes

Perhaps I should add some explanation about the \iffalse{\fi\ifnum`}=\z@\fi ... ifnum`{=\z@\fi\iffalse}\fi hack (note that the intended usage is with the “delimiters” in this order: I never meant to ...

View answer
Is it possible to set line spacing to negative values (shrinking)?
Accepted answer
2 votes

Would you please have a look at the following code? % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly ...

View answer
Setting content a length below the top; and \marginpar
Accepted answer
1 votes

The explanation lies in the fact that \marginpar causes the output routine to be invoked and the page-so-far to be subsequently sent back to the page builder; the latter then inserts again the \...

View answer
Change size of selected math alphabets
Accepted answer
5 votes

You could use the following “second-layer” patch: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{mathrsfs,bbm} \makeatletter % taken from the sty file I must use ...

View answer
Bad math operators space after \left. in aligned equations
Accepted answer
3 votes

It seems that I’d better explain what I meant in my comment to Steven’s answer: \documentclass[11pt]{article} \pagestyle{empty} \usepackage{amsmath} \usepackage{xcolor} \newcommand{\redx}{{\color{red}...

View answer
Usage of ampersand
1 votes

I’m not sure I’ve understood what you want: see if this can do. This output is generated by the following code: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid ...

View answer
Can't create linebreak between rows of a cases environment
3 votes

I’ve suggested the following slight variation of @Mico’s answer in a couple of comments, but since my suggestion appears to have been declined, I’m posting it as an alternative answer. The mathtools ...

View answer
Vertical space before an environment only when preceded by text
1 votes

The typical technique for addressing this kind of problem is to use the \everypar hook, which gets executed every time TeX begins a new paragraph. So you can have a switch, say \if@EnvOneHasText@, ...

View answer
Hyperref and clickable link-boxes produced using \ref, \cite in \xLeftrightarrow
2 votes

I still find @barbarabeeton’s answer a bit confusing: first, it claims that the key to the solution is to use \text{\upshape ...} instead of \textup{...}, then, in the final paragraph, it remarks that ...

View answer
Why is my list of figures all on one line?
Accepted answer
2 votes

The second argument of the \addcontentsline macro should be figure. For example, this code % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us ...

View answer
How to stop \label printing a reference number?
0 votes

An obvious modification of the \refstepcounter command will set the current reference to the value of a given counter, without incrementing it; then \label can be issued as usual to capture the ...

View answer
Center line based on part of text while the relative position of the rest doesn't change
Accepted answer
2 votes

The first thing that comes to my mind is % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly % declare ...

View answer
LaTeX: Statistics CDF and PDF
3 votes

I yield to @CarLaTeX’s invite to provide a slightly simplified version of her answer: % My standard header for TeX.SX answers: \documentclass[a4paper]{article} % To avoid confusion, let us explicitly ...

View answer
Macro - How to reuse the n-th argument of the last occurrence of another command?
Accepted answer
2 votes

Why don’t you use \NewDocumentEnvironment instead of \NewDocumentCommand? You can access the arguments also from within the code that ends the environment. Here is an example of what I mean: % My ...

View answer
How can I define a big plus operator that works like \bigcup?
7 votes

You cannot copy LaTeX3 code into your preamble without taking appropriate preliminary actions. I’m showing below how the same idea could be implemented through LaTeX2e code. This solution also ...

View answer
Alignment after equal sign
Accepted answer
1 votes

Like this? Since a \medmuskip (normally 4.0mu plus 2.0mu minus 4.0mu) is inserted both before and after a binary operator (see the table on p. 170 of The TeXbook), and since you want to remove the ...

View answer
when using email id in \url it is showing the local drive path in pdf
Accepted answer
3 votes

I’d suggest to define a command for the purpose of typesetting e-mail addresses: \documentclass{book} \usepackage{hyperref} \DeclareRobustCommand*{\mailto}[1]{\href{mailto:#1}{\nolinkurl{#1}}} \...

View answer
How to set temporary math font?
1 votes

I regret to say that @egreg seems to have taken my criticism, that was meant to be constructive, amiss (I must admit, on the other hand, that I like to tease him by pointing out minor flaws in his ...

View answer
How to insert (left or right) only one figure in a minpage
Accepted answer
3 votes

You do not need to include a second, empty minipage in order to push the first one to the left, all the more so that this trick won’t work if the minipage is truly empty: you need to include at least ...

View answer
What do we call the vertical space between a list item label and the item text?
2 votes

My crystal ball suggests that you might be using the style=nextline key that the enumitem package provides for description environment. If this is the case, the workaround I suggested in a comment is ...

View answer
1 2
3
4 5
11