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?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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 output
section 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}