Background: I used LaTeX around 18 years ago to write my Master's Thesis, and not since then except one project a long time ago. I wasn't sure whether my question should be posted here, or in XeTeX since I need to use .otf fonts, but the question is mainly about formatting...
I would like to figure out how to significantly alter all the Section, Subsection, Subsubsection and Paragraph titles, as well as the actual paragraph text which is under each title. I want it to look like the following pdf:
http://grauman.com/sample.pdf
So the short question is: how can I use xelatex to generate something very similar to that pdf?
I imagine the .tex would look something like the following, but then I would redefine \section, \subsection, \subsubsection, \paragraph and add new attributes for sectiontext, subsectiontext, subsubsectiontext, paragraphtext. For each of these 8 parts of the document, I would like to be able to change: font, font size, bold, italic, underline, margins left, right, before, and after, and indent.
Code: Select all
\section{Section Title}
\begin{sectiontext}
Section paragraph text.
\end{sectiontext}
\subsection{Subsection Title}
\begin{subsectiontext}
Subsection paragraph text.
\end{subsectiontext}
\subsection{Subsubsection Title}
\begin{subsubsectiontext}
Subsubsection paragraph text.
\end{subsubsectiontext}
\begin{paragraphtext}
Subsubsection paragraph text.
\end{paragraphtext}
Code: Select all
\font\1="Gentium" at 16pt
\font\2="HK Grotesk" at 14pt
\font\3="HK Grotesk Light" at 12pt
\font\4="Gentium" at 10pt
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\1\itshape}}%
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\2\bfseries}}%
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\3\bfseries}}%
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus 1ex \@minus .2ex}%
{-1em}%
{\4\uline}}
\makeatother