I would like to create a document with numbering like this:
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?
Text Formatting ⇒ section subsections
section subsections
Last edited by coast on Tue Jul 26, 2011 5:08 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

section subsections
OS: Kubuntu
Distribution: TexLive
Editor: Kile
Distribution: TexLive
Editor: Kile
section subsections
Thanks achim. I didn't get exactly how the startsection markup works.
I've looked for an example useage but have found none.
So far this is my solution:
The problem is the item 1.1 and 1.2 are not indented properly. I've tried \begin{align} and \end{align}, but it produces errors.
I've looked for an example useage but have found none.
So far this is my solution:
Code: Select all
Code, edit and compile here:
\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
I wouldn't use an enumerate environment -- that's not going to work well unless each section is less than a paragraph. Try the titlesec package. Here's something to get you started, but you'll want to read the documentation.
The output looks like this:
Code: Select all
Code, edit and compile here:
\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 textsample text sample text sample text sample text sample text sample textsample text sample text sample text\subsection{} sample text sample text sample text sample text sample textsample text sample text sample text sample text sample text sample textsample text sample text sample text\section{Site and Surroundings}\subsection{} sample text sample text sample text sample text sample textsample text sample text sample text sample text sample text sample textsample text sample text sample text\end{document}
Re: section subsections
Thanks frabjous. Thats exacly what I was looking for.