Text Formatting ⇒ section subsections
section subsections
1.0 INTRODUCTION
1.1 sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text
1.2 sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text
2.0 SITE AND SURROUNDINGS
2.1 sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text
Etc…
I can’t do this with \section{} and \subsection{} since it all comes out as bold.
Any Ideas?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
section subsections
Distribution: TexLive
Editor: Kile
section subsections
I've looked for an example useage but have found none.
So far this is my solution:
Code: Select all
\begin{enumerate}
\item{\textbf{Introduction}}
\item[1.1]{Sample text sample text sample text}
\item[1.2]{Sample text sample text sample text}
\item{\textbf{Conclusion}}
\end{enumerate}
%indentation above is only for clarity and does not affect outputsection subsections
Code: Select all
\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}% command to be formatted
{\bfseries}% format applied to both num and title
{\thesection.\arabic{subsection}}% the number format
{0.5em}% space between num. and title
{\MakeUppercase}% formatting for title only
\titleformat{\subsection}% command to be formatted
[runin]% shape -- see documentation
{}% format applied to both num and title
{\thesubsection}% the number format
{0.5em}% space between num. and title
{}% formatting for title only
\begin{document}
\section{Introduction}
\subsection{} sample text sample text sample text sample text sample text
sample text sample text sample text sample text sample text sample text
sample text sample text sample text
\subsection{} sample text sample text sample text sample text sample text
sample text sample text sample text sample text sample text sample text
sample text sample text sample text
\section{Site and Surroundings}
\subsection{} sample text sample text sample text sample text sample text
sample text sample text sample text sample text sample text sample text
sample text sample text sample text
\end{document}