GeneralBoth parts and chapters in a document?

LaTeX specific issues not fitting into one of the other forums of this category.
pandammonium
Posts: 55
Joined: Thu Oct 30, 2008 4:12 pm

¡Buenas noticias!

Post by pandammonium »

Well, Juanjo, you must be some kind of superstar! That works an absolute treat, and it does exactly what I want it to do, and it does it all automatically! Perfect.

I can't thank you enough for helping me with this! :D
Last edited by pandammonium on Thu Nov 06, 2008 2:55 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

sumpygump
Posts: 6
Joined: Mon Nov 03, 2008 5:19 am

Re: Both parts and chapters in a document?

Post by sumpygump »

Just a side comment... but wouldn't it make more sense to just have "Part III: Conclusion" to indicate to the reader that part II is done and now you are at the conclusion? I can't think of an example where a book shifts from being in parts to not being in parts anymore.

Just a thought.
pandammonium
Posts: 55
Joined: Thu Oct 30, 2008 4:12 pm

Both parts and chapters in a document?

Post by pandammonium »

Yeah, sumpygump, I had that thought too, but it doesn't fit with the flow of my thesis. There's likely to be two chapters following the last part, which don't fit together into one part, so I'd have to put each one in a separate part. Would I also have to put the first two (unrelated) chapters into parts as well? I don't want to get carried away with with parts! It would be like this:

part I Fish
chapter 1 Fish

part II Furniture
chapter 2 Furniture

part III Birds
chapter 3 Aquatic birds
chapter 4 Non-flying birds
chapter 5 other birds

part IV Books
chapter 6 Fiction
chapter 7 Non-fiction

part V Elephants
chapter 8 Elephants

part VI Buildings
chapter 9 Buildings


That's why I'm doing it as described in my earlier post :)
Last edited by pandammonium on Wed Mar 04, 2009 1:03 pm, edited 1 time in total.
monamipierrot
Posts: 31
Joined: Sun Aug 10, 2008 12:01 pm

Re: Both parts and chapters in a document?

Post by monamipierrot »

I need exactly the same thing. And to critics I reply: yes, although it was possible, still we would need to let graphically clear the document structure.
In my case, I want this structure, which implies an unnumbered Introduction chapter (which is not a problem), a independent unnumbered Conclusion chapter, and a completely independent Appendix part/chapters:

- Introduction (unnumbered Chapter or Section)
- Part I
- Chapter 1
- Chapter 2
- ...
- Part II
- Chapter 3
- Chapter ...
- Part III
- Chapter 4
- Chapter 5
- Chapter 6
-Conclusion (unnumbered Chapter or Section)
- [Appendix Part, if can't be avoided]
- Appendix A (Chater)
- Appendix B (Chaoter)

I couldn't even manage to have an Appendix part restartwith "Part I": it always print "PArt IV"!!!
some help?
thanks
Piero

P.S. I yse koma-book with LyX.
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Both parts and chapters in a document?

Post by phi »

Hello,
I don't know if I understand you correctly, but I get exactly the described structure using only LaTeX standard commands:

Code: Select all

\documentclass[oneside, openany]{book}


\begin{document}

\tableofcontents

\chapter*{Introduction (unnumbered Chapter or Section)}

\part{Part I}
\chapter{Chapter 1}
\chapter{Chapter 2}

\part{Part II}
\chapter{Chapter 3}

\part{Part III}
\chapter{Chapter 4}
\chapter{Chapter 5}
\chapter{Chapter 6}

\chapter*{Conclusion (unnumbered Chapter or Section)}

\appendix
\chapter{Appendix A (Chater)}
\chapter{Appendix B (Chaoter)}

\end{document}
monamipierrot
Posts: 31
Joined: Sun Aug 10, 2008 12:01 pm

Both parts and chapters in a document?

Post by monamipierrot »

phi wrote:Hello,
I don't know if I understand you correctly, but I get exactly the described structure using only LaTeX standard commands:
Yes, sorry, this generally works.
It's just that the LyX map of document can't tell those chapters (and the appendixes) are NOT part of PART III. Perhaps is a fault of the LyX algorythm, perhaps is a general rule of LaTeX. In the latter case, this could generate some logical problems in future (for example indexing, labeling and so on).
BUT, you're right, final rendering seems to display everything quite well and quite clear.
I would love to have a \addpart* environment to nest the appendixes, but for Komabook it doesn't exist.
H.
  • Windows XP professional sp3
    LyX 1.6.1
My current docs defaults:
Koma-script Book with package biblatex; LilyPond for music examples
juanpi
Posts: 3
Joined: Tue Sep 13, 2011 5:05 pm

Both parts and chapters in a document?

Post by juanpi »

Hi,
That was clever!
Now, if I were using bibtex. Is there a way to put the bibliography to be at the same level as the parts?

Thanks!

EDIT: solution? You can make the bibliography appear at the same level of the parts in the TOC by adding.

Code: Select all

\cleardoublepage
\phantomsection
\addcontentsline{toc}{part}{Bibliography}
Then add your bibliography. Somehow this changed the header of the bibliography as well.
Post Reply