Parts, chapters, sections and subsections in LaTeX
The next step in fixing up your TEX file is to replace \section tags with either \chapter or \part, depending on if your book is divided up into Books or Parts or just has chapters.
You then need to replace \subsection with either \chapter or \section, depending on what the second level headings of your book represent.
\part headings create a page that has the Part title centered vertically on the page. The Part begins on a right hand page and is followed by a blank page. Neither page has headings or footers. The word "Part" followed by a number is the first line of the heading, which means that this same content should not be in the Part heading.
\chapter headings create a right hand page with no page headings or footers and the chapter title begins some distance below the top of the page. The word "Chapter" followed by a number is on a line above the actual chapter heading, so it should not be repeated in that heading.
If your book is divided into Parts or Books you might expect the chapters to be numbered within each Part, like this:
Part 1
Chapter 1
Chapter 2
Part 2
Chapter 1
Chapter 2
In fact that will not happen. The chapters will be numbered like this:
Part 1
Chapter 1
Chapter 2
Part 2
Chapter 3
Chapter 4
It is best to just leave this alone.
\section and \subsection do not cause page breaks.
If you have a table of contents or a list of figures you'll need to run the xelatex command twice to get the page numbers for each put in correctly. You need to delete some files created during the first run of the command before doing another first run of the command or these files will cause errors. I created a script (like a .BAT file) to delete these files then run xelatex twice:
#/bin/sh
rm *.log
rm *.aux
rm *.pdf
rm *.toc
xelatex TheCurtissAviationBook.tex
xelatex TheCurtissAviationBook.tex
Once you do these steps your PDF should start looking like a real book interior.
Next step: dealing with illustrations. Stay tuned.
You then need to replace \subsection with either \chapter or \section, depending on what the second level headings of your book represent.
\part headings create a page that has the Part title centered vertically on the page. The Part begins on a right hand page and is followed by a blank page. Neither page has headings or footers. The word "Part" followed by a number is the first line of the heading, which means that this same content should not be in the Part heading.
\chapter headings create a right hand page with no page headings or footers and the chapter title begins some distance below the top of the page. The word "Chapter" followed by a number is on a line above the actual chapter heading, so it should not be repeated in that heading.
If your book is divided into Parts or Books you might expect the chapters to be numbered within each Part, like this:
Part 1
Chapter 1
Chapter 2
Part 2
Chapter 1
Chapter 2
In fact that will not happen. The chapters will be numbered like this:
Part 1
Chapter 1
Chapter 2
Part 2
Chapter 3
Chapter 4
It is best to just leave this alone.
\section and \subsection do not cause page breaks.
If you have a table of contents or a list of figures you'll need to run the xelatex command twice to get the page numbers for each put in correctly. You need to delete some files created during the first run of the command before doing another first run of the command or these files will cause errors. I created a script (like a .BAT file) to delete these files then run xelatex twice:
#/bin/sh
rm *.log
rm *.aux
rm *.pdf
rm *.toc
xelatex TheCurtissAviationBook.tex
xelatex TheCurtissAviationBook.tex
Once you do these steps your PDF should start looking like a real book interior.
Next step: dealing with illustrations. Stay tuned.
Published on October 23, 2021 19:08
No comments have been added yet.
Bhakta Jim's Bhagavatam Class
If I have any regrets about leaving the Hare Krishna movement it might be that I never got to give a morning Bhagavatam class. You need to be an initiated devotee to do that and I got out before that
If I have any regrets about leaving the Hare Krishna movement it might be that I never got to give a morning Bhagavatam class. You need to be an initiated devotee to do that and I got out before that could happen.
I enjoy public speaking and I'm not too bad at it. Unfortunately I picked a career that gives me few opportunities to do it. So this blog will be my bully pulpit (or bully vyasasana if you like). I will give classes on verses from the Bhagavata Purana (Srimad Bhagavatam). The text I will use is one I am transcribing for Project Gutenberg:
A STUDY OF THE BHÂGAVATA PURÂNA
OR ESOTERIC HINDUISM
BY PURNENDU NARAYANA SINHA, M. A., B. L.
This is the only public domain English translation that exists.
Classes will be posted when I feel like it and you won't need to wake up at 3Am to hear them.
...more
I enjoy public speaking and I'm not too bad at it. Unfortunately I picked a career that gives me few opportunities to do it. So this blog will be my bully pulpit (or bully vyasasana if you like). I will give classes on verses from the Bhagavata Purana (Srimad Bhagavatam). The text I will use is one I am transcribing for Project Gutenberg:
A STUDY OF THE BHÂGAVATA PURÂNA
OR ESOTERIC HINDUISM
BY PURNENDU NARAYANA SINHA, M. A., B. L.
This is the only public domain English translation that exists.
Classes will be posted when I feel like it and you won't need to wake up at 3Am to hear them.
...more
- Bhakta Jim's profile
- 15 followers
