# Tag Info

5

I think, you have to adapt the TOC entry format directly. Maybe, there is some nice formatting package for that, but you may use the following hand-made solution: \documentclass[11pt]{book} \RequirePackage[skins,listings,breakable,listingsutf8,theorems,hooks,fitting]{tcolorbox}% \makeatletter \newcommand*\l@myentry{\@mydottedtocline{1}{1.5em}{2.3em}} ...

5

When trying to center something on your page, what TeX essentially does is balancing out spacing on both sides of the object across the horizontal typeset width. When the element you're trying to center is larger than this width, it will align to the left and overflow the margin on the right. In the picture below, I've already added the showframe package ...

4

I've applied the following two modifications to your code Change the R column type so that its contents are centered in the respective column Assign explicit table-format options to the 9 columns of type S. \documentclass{article} \usepackage{rotating} % rotating package loads graphicx package \usepackage{booktabs} \usepackage{array} ...

3

your code should be \documentclass[11pt,a4paper]{article} \usepackage{mathtools} \begin{document} \begin{align*} 3 &=+1+1+1 \\ \intertext{to mean}\\ (+1+1+1) &=+1+1+1, \end{align*} \end{document}

3

Here, I used a right-aligned \Longstack to accomplish it, but there were several quirks (EDITED to handle long and short name conditions): 1) I had to place the stack in a right-aligned box of the same width as \today, to handle cases when the name was either longer than or shorter than the date; 2) I had to explicitly set the \Longstack gap as 12pt, ...

3

Is this what you need? \documentclass{letter} \usepackage{etoolbox} \makeatletter \patchcmd{\opening}{l@}{r@}{}{} \patchcmd{\opening}{\@date\end}{\@date\hfill\mbox{}\end}{}{} \makeatother \signature{My Name} \address{My very long long long name \\address\\phone\\email} \begin{document} \begin{letter}{} \opening{\textbf{Job title goes here}} Dear ...

3

You could also use tabular to defined the address, and to get the date to also be right aligned you can redefined \@date: Code: \documentclass{letter} \signature{My Name} \makeatletter \let\Date\@date \renewcommand{\@date}{\hfill\Date}% \makeatother \address{\begin{tabular}{r@{}}% \textbf{My name is pretty long}\\ address ...

2

Indeed my first option will be also a \makebox (I overuse this command) or \rlap (also overused, good to know that doesn't start a paragraph) or just being imaginative, another sizable box, from \hbox to a \parbox or even a minipage, but just for fun, a complete different approach: adding a equivalent phantom space on the left: \documentclass{article} ...

2

Update: (2014/10/16) A second approach is use of patchcmd from etoolbox to patch the \hfill command embedded in subfigmatrix because the \hfill is used to evenly allocate the figures in a row. Code \PassOptionsToPackage{}{graphicx} \documentclass[]{article} \usepackage[papersize={20cm,25cm}]{geometry} \usepackage{graphicx} \usepackage{subfigmat} ...

2

Try this. \documentclass[11pt,a4paper]{article} \usepackage{mathtools} \begin{document} \begin{flalign*} &3=+1+1+1 & \\ \intertext{to mean} &(+1+1+1)=+1+1+1,& \end{flalign*} \end{document}

1