I'm having some troubles defining the size of the titles, subtitles, sub-subtitles and the text of my document. Basically, I'd like to control the size. As you can see in my example, the "Sub-subsection" is smaller than the actual text, and that doesn't look fine to me.
\documentclass[twoside,parskip=half]{scrartcl}
\usepackage[british]{babel}
\bibliographystyle{nature}
\usepackage[latin1,utf8]{inputenc}
\usepackage{microtype}
\usepackage[hmarginratio=1:1,columnsep=30pt]{geometry}
\usepackage{geometry}
\geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm, headsep=10mm}
\usepackage{multicol}
\usepackage{hyperref}
\usepackage{paralist}
\usepackage{abstract}
\renewcommand{\abstractnamefont}{\normalfont\bfseries}
\usepackage{titlesec}
\renewcommand\thesection{\Roman{section}.}
\renewcommand\thesubsection{\arabic{subsection}}
\titleformat*{\subsection}{\normalfont\bfseries}
\titleformat*{\subsubsection}{\normalfont\selectfont}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[C]{Title $\bullet$ Course $\bullet$ 2014}
\setlength{\skip\footins}{10mm}
\title{\fontsize{24pt}{5pt}\selectfont\textbf{Title}}
\subtitle{\fontsize{16pt}{20pt}\selectfont\textbf{Subtitle}}
\author{
\large
\textsc{Name Surname}\\[3mm]
\normalsize University name \\
\normalsize \href{mailto:name@domain.com}{name@domain.com}
\vspace{-3mm}
}
\date{}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Ut venenatis sodales leo et imperdiet. Pellentesque sagittis volutpat feugiat. Nunc in dictum libero. Sed sed dui leo. Curabitur condimentum laoreet metus vitae tempus. Vestibulum id feugiat risus, ac feugiat libero. Mauris ultricies eget risus et venenatis. Donec gravida mauris sed interdum vulputate. Morbi nunc quam, finibus vitae tincidunt a, vulputate eget sapien.
\end{abstract}
\vspace{7mm}
\begin{tabular}{p{1,5cm}p{12,00cm}p{1,5cm}}
&\textbf{Keywords}: keyword 001 $\cdot$ keyword 002 $\cdot$ keyword 003 $\cdot$ keyword 004\\
\end{tabular}
\vspace{11mm}
\begin{multicols}{2}
\section{Section 1}
Vestibulum vel ipsum vel urna iaculis tincidunt ut eu arcu. Etiam in ante dui. Suspendisse porta lacus et facilisis suscipit. Donec congue egestas nunc, ut ullamcorper felis ultricies ut. Vivamus eu lorem risus. Vivamus sollicitudin bibendum ornare. Duis dignissim metus sed eleifend posuere. In consequat aliquet sapien, at faucibus ipsum.
\section{Section 2}
\subsection{Sub-section 1}
\subsubsection{Sub-subsection}
Aliquam ultricies eleifend bibendum. Pellentesque eu augue orci. Integer ut dolor aliquet enim semper aliquam. Suspendisse sit amet volutpat ex. Pellentesque lacinia dignissim molestie. Cras consectetur efficitur purus, id viverra enim tincidunt quis. Morbi sed blandit nulla, eu sodales purus. Aenean nec semper risus. Sed malesuada finibus tellus vitae eleifend. Etiam ut cursus ipsum, ac faucibus ligula. Morbi non est sed ligula fringilla finibus. Sed interdum euismod ex nec tincidunt. Pellentesque ut ipsum enim. Quisque aliquet dolor ac lectus congue, nec pellentesque metus eleifend. Nullam sit amet lacus nulla.
\subsubsection{Sub-section 2}
Phasellus commodo augue vitae enim interdum, et tincidunt leo consectetur. Sed in mi sit amet velit aliquet dapibus. Phasellus ut massa a arcu aliquam rhoncus ultricies quis mi. Cras a tortor egestas, luctus purus a, mollis lacus. Mauris eget molestie neque, dapibus lobortis ligula. Sed id luctus tortor. Donec elementum lacus vitae tincidunt imperdiet. Praesent in facilisis ligula. Nam venenatis sed eros quis consequat. Maecenas sit amet eros sed purus convallis pretium. Suspendisse potenti. Cras sed ultricies diam. Nullam feugiat scelerisque leo vitae facilisis. Praesent quis felis ante. Aenean in justo magna.
\end{multicols}
\end{document}
Any suggestions to improve my document?
Best Answer
Generally you are best off using the mechanisms offered by the document class and standard size commands for fonts. The subsubsection font in your example is the same size as the normal text, if you want it bigger, trying using
\large
. In the KOMA classes you do this via\setkomafont
, e.g.or if you only want to change the size and not the style
If you wished to set the font size explicitly then it would be
or
Note the arguments to
\fontsize
are just numbers (denoting pointsizes) not dimensions, the second number should be larger than the first, it indicates the line skip to be used for this font. The basic font size for the document is specified by the afontsize
option to the documentclass, e.g.As other have said you should not use
fancyhdr
ortitlesec
. For your purposes the latter is replaced by simple\setkomfont
commands, the former by thescrlayer-scrpage
package.As regards the
geometry
package, in your case you seem to want to specify the margins precisely, in which case using this package is the only option.Here is an implementation of some of these things in your example.
In answer to additional points in the comments
to get a line under the header use
headsepline=true
either as a document option or perhaps better aswhere you are defining the heading style
to increase the space to footnotes, use the
footnotsep
option of thegeometry
package. This is equivalent to setting\skip\footins
, but keeps your page specification in one place.the
title
element has size\huge
by default and the above font changing commands do not affect this.