GuM
  • Member for 7 years
  • Last seen more than 1 year ago
  • Italy
Paragraph break only if insufficient space to end of line
8 votes

This question reminds me of the “Mathematical Reviews example” that you can find on page 106 of The TeXbook (second double dangerous bend paragraph): indeed, rather than the unnecessarily complicated ...

View answer
Keep the word Abstract in the same page as the actual abstract
2 votes

Actually, you are getting exactly what you asked for: an infinitely stretchable vertical space, followed by the titles, followed by the page break that you yourself indicated as the most desirable one ...

View answer
book table of contents: avoid page breaks after parts
1 votes

Something strange is happening here, and I am curious about which document class is being used by the OP. Many of the most common classes for producing books, indeed, automatically take care of ...

View answer
Alignment within tex groups
Accepted answer
3 votes

\centering in LaTeX is obtained by setting \leftskip and \rightskip to infinitely stretchable glue (while, on the other hand, setting \parfillskip to zero). \leftskip and \rightskip specify glue that ...

View answer
Argument name in a macro in another
2 votes

Also, the LaTeX kernel provides \@namedef for this: \makeatletter \newcommand*{\mymacro}[2]{% \@namedef{#1autorefname}{#2}% } \maketatother Indeed, the task you want to accomplish is a pretty ...

View answer
Formatting TOC to ignore section and remove extra spaces
0 votes

The following is a “quick ‘n dirty” solution: see if it satisfies you. \documentclass[a4paper]{book} \usepackage[T1]{fontenc} \usepackage{lipsum} \makeatletter \renewcommand*\l@chapter{\@...

View answer
Scaling \ddots in smallmatrix
3 votes

You are missing one additional$...$ pair: \documentclass{article} \usepackage{mathtools} \newcommand{\svdots}{\raisebox{3pt}{$\scalebox{.75}{\vdots}$}} % <- Works \newcommand{\sddots}{\raisebox{...

View answer
Center a title when left and right margins are not the same
Accepted answer
1 votes

Probably, this is one of those rare cases in which it is preferable to add another answer, rather then editing the one I already gave; indeed, I dislike my previous answer so much that I’ll probably ...

View answer
Textbox of arbitrary shape
Accepted answer
3 votes

The first package I can think of is, obviously, shapepar. You might also want to have a look to the wrapfig package. Addition However, what you request could also be obtained, without loading any ...

View answer
Multiple chapters per page, only if they "fit"
Accepted answer
3 votes

The following is just an example that gives the general idea. It contains a patch of the \chapter command that is suitable for the standard book class; for other document classes, the patch could (...

View answer
How can I check whether two control sequences have the same name?
4 votes

If the restriction that no assignments (in particular, no definitions) must intervene in the test for equality can be partially lifted, as one of the comments seems to permit, in the sense that they ...

View answer
Change description environment indents
Accepted answer
1 votes

The request being made is not at all clear: if one just wants to typeset the labels of a description environment as if they were part of an enumerate environment, why should one use description at all?...

View answer
alignat adds extra spacing
0 votes

Or perhaps this? It's not completely clear, actually. \documentclass{amsart} \begin{document} \begin{alignat*}{2} a &= b&{}+ (c \\ &&{}+ d) \\ & + g \end{alignat*...

View answer
Redefine chapter title appearance with arsclassica
Accepted answer
3 votes

What about \documentclass{scrreprt} \usepackage[T1]{fontenc} \usepackage[italian]{babel} \usepackage{classicthesis,arsclassica} \newcommand*{\Chapter}[2]{% \chapter[#1: \textit{#2}]{#1}% \...

View answer
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
Using reference labels in mathematical calculations
1 votes

Yet another solution: Edit: The first version of this code contained a stupid error that prevented it from working when the number generated by the reference contained more than one digit; I have now ...

View answer
How can I prevent \maketitle to reset the page number dinamically
2 votes

The only thing I can think of is to patch the definition of the titlepage environment: \documentclass[a4paper, twoside, 14pt]{extreport} \usepackage{etoolbox} \makeatletter \patchcmd{\titlepage} ...

View answer
How can I wrap a description term in a macro?
Accepted answer
4 votes

Why doesn’t \documentclass{article} \usepackage[T1]{fontenc} \newcommand\DoSomething[1]{Hello, #1} \begin{document} \begin{description} \renewcommand*{\makelabel}[1]{\textbf{\DoSomething{#1}}} ...

View answer
Center text between horizontal lines extending to the margin on either side
Accepted answer
8 votes

Extensible rules and customizable height: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage{lipsum} \makeatletter \newcommand*\variableheghtrulefill[1][.4\p@]{% \leavevmode ...

View answer
Insert paragraphs and subparagraphs into letter document
1 votes

I too refer you to the answer I gave to a previous similar question: use the articoletteracdp documentclass, that comes with \sections and \paragraphs already defined.

View answer
Right alignment of two left ragged lines
2 votes

The simplest solution is to put a \strut both at the end of the preceding text and inside the \hbox: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lipsum} \begin{document} I was ...

View answer
Change to English, the subject of letteracdp
1 votes

There is actually a better solution, that I plan to include in the next release of the C.D.P. Bundle (btw, I have been promising such a "next release" since 2010, version 0.34 going back to 2006; but ...

View answer
Insert chapters into letter document
1 votes

The C.D.P. Bundle, of which the letteracdp document class is just one of the components (albeit the main one), also provides the articoletteracdp document class, that allows you to use some of the ...

View answer
1
7 8 9 10
11