Text Formattingchapters number

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
lorenapomodoro
Posts: 6
Joined: Tue Jul 27, 2010 12:47 pm

chapters number

Post by lorenapomodoro »

Hello!
I am new with Lyx and I am actually struggling a bit.
Is there any way to start in a new document with a chapter which will be numbered as chapter 2? and so all the sections as 2.1, 2.2 etc...

Please let me know!

thanks a lot

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

chapters number

Post by Stefan Kottwitz »

Hi lorenapomodoro,

welcome to the board!
You could add to your document preamble:

Code: Select all

\setcounter{chapter}{1}
The following chapter will then have the number 2.

Stefan
LaTeX.org admin
lorenapomodoro
Posts: 6
Joined: Tue Jul 27, 2010 12:47 pm

Re: chapters number

Post by lorenapomodoro »

What does that mean? If i type those words, they just appear as a normal text, not as a command...

Sorry for the silly questions, I am absolutely at my first steps! :)

thanks a lot!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

chapters number

Post by Stefan Kottwitz »

Go to the LyX main menu: Document/ Settings, choose the point on the lower left (Document preamble), copy that \setcounter-line there.

Stefan
LaTeX.org admin
lorenapomodoro
Posts: 6
Joined: Tue Jul 27, 2010 12:47 pm

Re: chapters number

Post by lorenapomodoro »

OK I have done, I managed to insert the command, but what happens is: the chapter still is called "chapter 1"; the following sections are 2.1, 2.2 etc which is good, but i still want the chapter to be called Chapter 2. Have a look at a sample file.

Thanksssss!
Attachments
trial2.pdf
(73.63 KiB) Downloaded 173 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Re: chapters number

Post by Stefan Kottwitz »

It works for me, writing chapter 2. There may be something different in your code. You could post your LyX document (a copy without text) here as attachment.

Stefan
LaTeX.org admin
lorenapomodoro
Posts: 6
Joined: Tue Jul 27, 2010 12:47 pm

Re: chapters number

Post by lorenapomodoro »

it doesn't let me upload a .lyx file!

i'm working on a Mac, does it make any difference?
Post Reply