Docsity

Latex chapter 1 introduction, Summaries of Information Technology

Toggle sidebar
bg1
Structuring your document in LaTeX
A) Structuring a document
LaTeX allows you to easily separate your document into sections, subsections, etc. using predefined
commands that adapt to the chosen document class and that automatically generate the table of
contents (or summary) of the document. The code for the structures available for the article
document class is as follows (hierarchical classification):
1. \part{Title of the part} (of a fairly rare use for an article type document )
2. \section{Section Title}
3. \subsection{Subsection title}
4. \subsubsection{Title of the sub-subsection}
5. \paragraph{Paragraph title} (of fairly rare use in practice)
6. \subparagraph{Subparagraph title} (of even rarer use in practice)
Remarks :
All these structures are automatically numbered by default.
The report and book classes also include the structure \chapter{Chapter title} which is
hierarchically located between \part{} and \section{} .
By using \section*{} instead of \section{} in the body of the document , the section will no
longer be numbered (and will no longer appear in the table of contents).
Example:
Example code:
\documentclass [10pt,a4paper] {article}
\usepackage [utf8] {inputenc}
\usepackage [T1] {fontenc}
\usepackage [french] {babel}
\begin {document}
\section {A section}
\subsection {A subsection}
Once upon a time in a faraway galaxy... \subsection {A second
subsection}
The Clone Wars were raging... \end {document}
pf2

Partial preview of the text

Download Latex chapter 1 introduction and more Summaries Information Technology in PDF only on Docsity!

Structuring your document in LaTeX

A) Structuring a document LaTeX allows you to easily separate your document into sections, subsections, etc. using predefined commands that adapt to the chosen document class and that automatically generate the table of contents (or summary) of the document. The code for the structures available for the article document class is as follows (hierarchical classification):

  1. \part{Title of the part} (of a fairly rare use for an article type document )
  2. \section{Section Title}
  3. \subsection{Subsection title}
  4. \subsubsection{Title of the sub-subsection}
  5. \paragraph{Paragraph title} (of fairly rare use in practice)
  6. \subparagraph{Subparagraph title} (of even rarer use in practice) Remarks :  All these structures are automatically numbered by default.  The report and book classes also include the structure \chapter{Chapter title} which is hierarchically located between \part{} and \section{}.  By using \section*{} instead of \section{} in the body of the document , the section will no longer be numbered (and will no longer appear in the table of contents). Example: Example code: \documentclass [10pt,a4paper] {article} \usepackage [utf8] {inputenc} \usepackage [T1] {fontenc} \usepackage [french] {babel} \begin {document} \section {A section} \subsection {A subsection} Once upon a time in a faraway galaxy... \subsection {A second subsection} The Clone Wars were raging... \end {document}

With Texmaker:  The section , subsection ... codes can be inserted via the toolbar or via auto-completion:  While typing, Texmaker's "Structure" view is automatically updated: