Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
LaTeX tips and tricks | ||||||||
Line: 22 to 22 | ||||||||
%% make section headings take up less space ("medium" can be replaced by "tiny", "small" or "big"--tiny is the normal font) \usepackage[medium,compact]{titlesec} | ||||||||
Added: | ||||||||
> > | %% an alternative, which might look better and is more adjustable %% the negative number in beforeskip means that the indent in the following paragraph is suppressed %% a negative afterskip means that there's no linebreak after the heading \makeatletter \renewcommand\section{\@startsection {section}{1}{0mm}%name, level, indent {-2.5ex \@plus -1ex \@minus -.2ex}% beforeskip {1ex \@plus.2ex}% afterskip {\normalfont\large\bfseries}}% style \renewcommand\subsection{\@startsection {subsection}{2}{0mm}%name, level, indent {-2.25ex\@plus -1ex \@minus -.2ex}%beforeskip {.8ex \@plus .2ex}%afterskip {\normalfont\normalsize\bfseries}}% style \makeatother | |||||||
%% a trick that makes the title take up less space for many style files (but not article) \addtolength{\titlebox}{-1.8cm} |