Latex Part

Latex Part




🔞 ALL INFORMATION CLICK HERE 👈🏻👈🏻👈🏻

































Latex Part

Sign up or log in to customize your list.

more stack exchange communities

company blog


The best answers are voted up and rise to the top


Stack Overflow for Teams
– Start collaborating and sharing organizational knowledge.



Create a free Team
Why Teams?



Asked
10 years, 9 months ago


Modified
10 years, 9 months ago


240k 68 68 gold badges 699 699 silver badges 776 776 bronze badges


473 1 1 gold badge 4 4 silver badges 4 4 bronze badges



Sorted by:


Reset to default





Highest score (default)


Date modified (newest first)


Date created (oldest first)




571k 123 123 gold badges 1344 1344 silver badges 2184 2184 bronze badges


TeX - LaTeX

Tour
Help
Chat
Contact
Feedback



Company

Stack Overflow
Teams
Advertising
Collectives
Talent
About
Press
Legal
Privacy Policy
Terms of Service
Cookie Settings
Cookie Policy



Stack Exchange Network



Technology




Culture & recreation




Life & arts




Science




Professional




Business





API





Data






Accept all cookies



Customize settings



Stack Exchange network consists of 182 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Connect and share knowledge within a single location that is structured and easy to search.
I'm trying to make a PDF document, using the book class, divided like this:
How do I do this without the break in page numbers?
There is nothing fancy about creating such a document in LaTeX. You can use either the report or book document class (or another, like memoir ). The example below uses the book document class.
The \tableofcontents shows the document structure. In order to have this structure accurately represent the document contents, you need to compile your code at least twice. Similar counter-resetting functionality is provided by the cnhgcntr package via \counterwithin*{chapter}{part} , although LaTeX provides its own \@addtoreset{}{} . Here is some information on counter resetting: Master and slave counters
If you want to have the numbering continue through the parts (rather than having it numbered on a per-part basis), you can comment the 3rd line of code.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!

By clicking “Post Your Answer”, you agree to our terms of service , privacy policy and cookie policy

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2022 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2022.9.9.42970


By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .


\documentclass { article }
\usepackage { blindtext }

\title { Sections and Chapters }
\author { Overleaf }
\date { \today }

\begin { document }
\maketitle
\section { Introduction }

This is the first section.

\blindtext

\section { Second Section }
This is the second section

\blindtext
\end { document }

\documentclass { article }
\usepackage { blindtext }

\title { Sections and Chapters }
\author { Overleaf }
\date { \today }

\begin { document }
\maketitle
\section* { Introduction }

This is the first section.

\blindtext

\section* { Second Section }
This is the second section

\blindtext
\end { document }

\addcontentsline { toc }{ section }{ Title of the section }

\documentclass { article }
\title { Sections and Chapters }
\author { Overleaf }
\date { \today }

\begin { document }
\maketitle
\tableofcontents

\newcommand\shortlorem { Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. }

\section { Introduction }
This is the first section (numbered).

\shortlorem
\addcontentsline { toc }{ section }{ Unnumbered Section }
\section* { Unnumbered Section }
An unnumbered section

\shortlorem

\section { Second section }
The second numbered section.

\shortlorem
\end { document }

\documentclass { report }
\title { Sections and Chapters }
\author { Overleaf }
\date { \today }
\begin { document }
\maketitle
\tableofcontents
\chapter { An Introduction to Lua \TeX }

\section { What is it—and what makes it so different? }
Lua \TeX {} is a \textit { toolkit } —it contains sophisticated software tools and components with which you can construct (typeset) a wide range of documents. The sub-title of this article also poses two questions about Lua \TeX : What is it—and what makes it so different? The answer to “What is it?” may seem obvious: “It’s a \TeX {} typesetting engine!” Indeed it is, but a broader view, and one to which this author subscribes, is that Lua \TeX {} is an extremely versatile \TeX -based document construction and engineering system.

\subsection { Explaining Lua \TeX : Where to start? }
The goal of this first article on Lua \TeX {} is to offer a context for understanding what this TeX engine provides and why/how its design enables users to build/design/create a wide range of solutions to complex typesetting and design problems—perhaps also offering some degree of “future proofing”

\chapter { Lua \TeX : Background and history }
\section { Introduction }
Lua \TeX {} is, in \TeX {} terms, “the new kid on the block” despite having been in active development for over 10 years.

\subsection { Lua \TeX : Opening up \TeX ’s “black box” }
Knuth’s original \TeX {} program is the common ancestor of all modern \TeX {} engines in use today and Lua \TeX {} is, in effect, the latest evolutionary step: derived from the pdf \TeX {} program but with the addition of some powerful software components which bring a great deal of extra functionality.
\end { document }

\documentclass { book }
\title { Sections and Chapters }
\author { Overleaf }
\date { \today }
\begin { document }
\maketitle
\tableofcontents
\part { History of Lua \TeX }

\chapter { An Introduction to Lua \TeX }

\section { What is it—and what makes it so different? }
Lua \TeX {} is a \textit { toolkit } —it contains sophisticated software tools and components with which you can construct (typeset) a wide range of documents. The sub-title of this article also poses two questions about Lua \TeX : What is it—and what makes it so different? The answer to “What is it?” may seem obvious: “It’s a \TeX {} typesetting engine!” Indeed it is, but a broader view, and one to which this author subscribes, is that Lua \TeX {} is an extremely versatile \TeX -based document construction and engineering system.

\subsection { Explaining Lua \TeX : Where to start? }
The goal of this first article on Lua \TeX {} is to offer a context for understanding what this TeX engine provides and why/how its design enables users to build/design/create a wide range of solutions to complex typesetting and design problems—perhaps also offering some degree of “future proofing”

\chapter { Lua \TeX : Background and history }
\section { Introduction }
Lua \TeX {} is, in \TeX {} terms, “the new kid on the block” despite having been in active development for over 10 years.

\subsection { Lua \TeX : Opening up \TeX ’s “black box” }
Knuth’s original \TeX {} program is the common ancestor of all modern \TeX {} engines in use today and Lua \TeX {} is, in effect, the latest evolutionary step: derived from the pdf \TeX {} program but with the addition of some powerful software components which bring a great deal of extra functionality.

\subsubsection { How Lua \TeX {} processes \texttt { \string\directlua } : A first look }
The ⟨code⟩ provided to \verb | \directlua { } | is first converted to tokens using the processes and calculations discussed above; that sequence of tokens is stored in a token list.
\end { document }

\documentclass [a4paper,12pt] { book }
\usepackage [T1] { fontenc }
\usepackage { titlesec }

\titleformat
{ \chapter } % command
[display] % shape
{ \bfseries\Large\itshape } % format
{ Story No. \ \thechapter } % label
{ 0.5ex } % sep
{
\rule { \textwidth }{ 1pt }
\vspace { 1ex }
\centering
} % before-code
[
\vspace { -0.5ex } %
\rule { \textwidth }{ 0.3pt }
] % after-code


\titleformat { \section } [wrap]
{ \normalfont\bfseries }
{ \thesection . }{ 0.5em }{}

\titlespacing { \section }{ 12pc }{ 1.5ex plus .1ex minus .2ex }{ 1pc }

\begin { document }
\chapter { Let's begin }
\section { First Attempt }

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris...

\section { Second attempt }

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris...

\end { document }

\titleformat { } [] { }{ }{ }{ } []

\titlespacing { }{ }{ }{ }

We only use cookies for essential purposes and to improve your experience on our site. You can find out more in our cookie policy .
Essential cookies only Accept all cookies
Documents usually have some form of “logical structure”: division into chapters, sections, sub-sections etc. to organize their content. LaTeX supports the creation of a document structure and also enables customization of sectioning and numbering. The commands available to organize a document depend on the document class being used, although the simplest form of organization, sectioning, is available in all formats.

Let’s begin with a basic example to demonstrate the \section{ section title } command, which marks the beginning of a new section called section title . Section numbering is automatic and can be customized, or disabled.


This example produces the following output:

LaTeX can organize, number, and index chapters and sections of document. There are up to 7 levels of depth for defining sections depending on the document class:

Usually, \section is the top-level document command in most documents. However, in reports or books, and similar long documents, this would be \chapter or \part .

To get an unnumbered chapter, section, subsection, etc. add an asterisk ( * ) at the end of the command, before the opening curly brace. These will not go into the table of contents. Here is our first example (above) but this time using \section* instead of \section :


This example produces the following output:

To add an unnumbered section to the table of contents, use the \addcontentsline command like this:

Here is an example using \addcontentsline but see the article Table of contents for further information and examples.


This example produces the following output:

As mentioned before, \chapter can be used in books and reports.

Below you can see an example report using text taken the Overleaf article An Introduction to LuaTeX (Part 1): What is it—and what makes it so different?

This example produces the following output—here we show pages 2–4, where the page images have been overlapped to ease presentation:

The following example reproduces text from the report example but with \documentclass{book} , containing parts, chapters, sections, subsections and sub-subsections. If you open the example in Overleaf you should see that sub-subsections produced by \subsubsection are not numbered. That is by design of the book class: if you want to change this behavior, add the following command to your document preamble:

You can use the titlesec package to customize chapters, sections and subsections style in an easy way.

This example produces the following output:

where [] and [] are optional parameters, and:

The starred version of this command ( \titlespacing* ) kills the indentation of the paragraph following the title.

Have you checked our knowledge base ?
Message sent! Our team will review it and reply by email.

\documentclass { article }
\usepackage { blindtext }

\title { Sections and Chapters }
\author { Overleaf }
\date { \today }

\begin { document }
\maketitle
\section { Introduction }

This is the first section.

\blindtext

\section { Second Section }
This is the second section

\blindtext
\end { document }

\documentclass { article }
\usepackage { blindtext }

\title { Sections and Chapters }
\author { Overleaf }
\date { \today }

\begin { document }
\maketitle
\section* { Introduction }

This is the first section.

\blindtext

\section* { Second Section }
This is the second section

\blindtext
\end { document }

\addcontentsline { toc }{ section }{ Title of the section }

\documentclass { article }
\title { Sections and Chapters }
\author { Overleaf }
\date { \today }

\begin { document }
\maketitle
\tableofcontents

\newcommand\shortlorem { Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. }

\section { Introduction }
This is the first section (numbered).

\shortlorem
\addcontentsline { toc }{ section }{ Unnumbered Section }
\section* { Unnumbered Section }
An unnumbered section

\shortlorem

\section { Second section }
The second numbered section.

\shortlorem
\end { document }

\documentclass { report }
\title { Sections and Chapters }
\author { Overleaf }
\date { \today }
\begin { document }
\maketitle
\tableofcontents
\chapter { An Introduction to Lua \TeX }

\section { What is it—and what makes it so different? }
Lua \TeX {} is a \textit { toolkit } —it contains sophisticated software tools and components with which you can construct (typeset) a wide range of documents. The sub-title of this article also poses two questions about Lua \TeX : What is it—and what makes it so different? The answer to “What is it?” may seem obvious: “It’s a \TeX {} typesetting engine!” Indeed it is, but a broader view, and one to which this author subscribes, is that Lua \TeX {} is an extremely versatile \TeX -based document construction and engineering system.

\subsection { Explaining Lua \TeX : Where to start? }
The goal of this first article on Lua \TeX {} is to offer a context for understanding what this TeX engine provides and why/how its design enables users to build/design/create a wide range of solutions to complex typesetting and design problems—perhaps also offering some degree of “future proofing”

\chapter { Lua \TeX : Background and history }
\section { Introduction }
Lua \TeX {} is, in \TeX {} terms, “the new kid on the block” despite having been in active development for over 10 years.

\subsection { Lua \TeX : Opening up \TeX ’s “black box” }
Knuth’s original \TeX {} program is the common ancestor of all modern \TeX {} engines in use today and Lua \TeX {} is, in effect, the latest evolutionary step: derived from the pdf \TeX {} program but with the addition of some powerful software components which bring a great deal of extra functionality.
\end { document }

\documentclass { book }
\title { Sections and Chapters }
\author { Overleaf }
\date { \today }
\begin { document }
\maketitle
\tableofcontents
\part { History of Lua \TeX }

\chapter { An Introduction to Lua \TeX }

\section { What is it—and what makes it so different? }
Lua \TeX {} is a \textit { toolkit } —it contains sophisticated software tools and components with which you can construct (typeset) a wide range of documents. The sub-title of this article also poses two questions about Lua \TeX : What is it—and what makes it so different? The answer to “What is it?” may seem obvious: “It’s a \TeX {} typesetting
Photoshop Vintage
Erotica Russian Beautiful Women Xxx
Free Incest Com

Report Page