# Tag Info

## Hot answers tagged formatting

18

KOMA-Script supports several ways to set the font size. First of all, if you want fontsize=<value> it tries to load a font size definition file \@fontsizefilebase<value>.clo. If this is not found, it tries \@fontsizefilebase<value>pt.clo. If this is not found, it tries size<adapted value>.clo. <adapted value> is the font size in pt but with ...

14

KOMA has two different systems to setup the font sizes: A (small) number of fontsize options (8pt, 9pt, 10pt, 11pt, 12pt, 14pt 17pt, 20pt) load a scrsizeXX.clo (from KOMA) or (if found) sizeXX.clo (from the extsize package) where designated fontsizes are declared. You can add more options to this list by writing a suitable sizeXX.clo or scrsizeXX.clo. In ...

5

Here is a suggestion using scrlayer to define an layer page style for these pages: \usepackage{scrlayer} \DeclareNewLayer[ foreground, %textarea,% use only the textarea contents={% \parbox[b][\layerheight][c]{\layerwidth} {\centering The space above and below the message intentionally is left blank.}% } ...

4

Well, class moderncv changed a lot and that is the reason, why it was divided into several files. The main files are moderncv.cls, moderncvbodyX.sty, moderncvheaderX.sty and moderncvfootX.sty. They define the cv and the letter depending of the used style and colour. X can be a roman number between i and v, depending if it is body, header od foot. ...

3

As mentioned in some of the comments, the text editor you use and its configuration are crucial in making text readable or alienating. The stuff you can act on: Font. In my opinion, fixed-width fonts give the best results because the letters are evenly spaced across all lines, which makes it easier on the eyes (there is some kind of vertical symmetry), and ...

3

By default tocloft can't hook into ToCs that are made by other packages, however, it's possible to use \newlistof{...} to redefine the \lstoflistings -- unfortunately, this requires knowledge of the counter being used for listings (its name is lstlisting) and \newlistof... tries to define a new counter for this -- this must fail (and is a design flaw of ...

2

In case that tocloft.sty is not a must, I can offer a solution with titletoc.sty. I think the interface is cleaner. There is also a solution at the end how to get rid of the additional vertical space in LOF. \documentclass[12pt,a4paper,draft,openany]{book} % For french \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} % For ...

2

algorithm2e's \caption has the following format: \AlCapSty{\AlCapFnt Algorithm 1:}\AlCapNameSty{\AlCapNameFnt my algorithm} Taken from the "change log": By default, \AlCapSty is \textbf and \AlCapFnt is nothing. \AlCapNameSty keep text as it is, and \AlCapNameFnt do nothing also. You can redefine \AlCapFnt and \AlCapNameFnt by giving macro to ...

1

Here, using the header mechanism of fancyhdr. For some reason, the header tended to push down text, so I added a corrective \vspace in the header. \documentclass{beamer} \usepackage{lipsum} \usepackage{fancyhdr} \fancyhf{} \pagestyle{fancy} \renewcommand\headrulewidth{0pt} \fancyhead[R]{$\boxed{E=mc^2}$\vspace{-2\baselineskip}} \begin{document} ...

1

In relation to the last two examples, the units should be shown in square brackets, not parenthesis. This is part of the conventions used in the SI and it was discussed in other articles like Unit column in table with square brackets and siunitx.

1

You can redefine \sectionlinesformat (needs KOMA-Script Version 3.19 or newer) and \subsectionformat. \documentclass[a5paper]{scrbook}[2015/10/03] \usepackage{xcolor,soul} \sethlcolor{black} \makeatletter \renewcommand\sectionlinesformat[4]{% \ifstr{#1}{subsection}% only subsections should be changed {\@hangfrom{\hskip#2 #3}{\hl{#4}}}% subsection ...

1

For the second question you might set the hintscolumnwidth(in your document, just after the documentclass): \setlength{\hintscolumnwidth}{0.175\textwidth} to something you think fits better. For example 4cm: \setlength{\hintscolumnwidth}{4cm}

1


1

Well, I think there is not so much space you think. To visualise this I added option showframe to the call of geometry. If you now add some more words to your \cvcomputer the result looks very different (without changings of the layout!). If you insist in changing the layout you need to define a new command, for example \mycvcomputer. Then you can ...

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