Tag Info

Hot answers tagged

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 ...


5

This looks like an issue with the engine that has been reported here and will be fixed in the next release.


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 table has only four real columns; the fifth is always empty and should thus be omitted entirely. If you remove the fifth column, you can also replace all \cline{1-4} instructions with the simpler \hline. The main problem with the table is, though, that it's much too wide for any normal page dimension unless you let the text in all four columns wrap. ...


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

You can do that with the tabularx package. To improve the tavle I also load cellspace , for a less tight vertical spacing of cell contents, and makecell for a common formatting of column heads and the possibility of line breaks in cells. I didn't understand what the empty last column is here for, but if you don't use it, you might as well delete it. That ...


1

Use @{}: \documentclass{article} \usepackage[showframe]{geometry} \begin{document} \noindent\begin{tabular}{@{}*5{l}} 1 & 2 & 3 & 4 & 5\\ A & B & C & D & E\\ \end{tabular} \end{document} For future reference, please make your code compilable and minimal. EDIT As John points out in his comment, you don't even need @{} if ...


1

\documentclass[a4paper, twoside]{memoir} % Packages \usepackage{layout} % Layout frames \usepackage{showframe} % Layout frames % Header \aliaspagestyle{chapter}{empty} % Defining general header \setlength{\headwidth}{\textwidth} \addtolength{\headwidth}{\marginparsep} \addtolength{\headwidth}{\marginparwidth} ...



Only top voted, non community-wiki answers of a minimum length are eligible