LaTeX forum ⇒ Theses, Books, Title pagesLegrand Orange Book Template: Appendices & Table of Content

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
User avatar
Thom
Posts: 5
Joined: Mon Jul 31, 2017 9:46 pm

Legrand Orange Book Template: Appendices & Table of Content

Postby Thom » Tue Aug 01, 2017 1:01 pm

Hi everyone,

As a beginner / intermediate user of LateX, working under TeXstudio 2.12.4 with MikTeX 2.9, I have some side issues trying to include appendix using the "appendices package" with the Legrand Orange Book:

1- In the Table of contents, I want to print them as "Appendix A TitleA" instead of "A TitleA",
2- In the main text, I also need their titles this way "Appendix A. TitleA" instead of "A. TitleA",
3- And the same to the part heads,
4- If possible, I would like to do so for subappendices as well.

After some time looking for solutions on this forum and others, I tryed the following things:

- Placing \usepackage[titletoc,title]{appendices} in various places in the structure.tex file, thus trying to avoid compatibility problems with babel (here in english so no problem with that) and href
---> Before href seems mandatory. In any case, package options [titletoc,title] will not work due to the structure.tex file definitions.

- \renecommand{\@chapapp}{Appendix\space\Alph{chapter}} on the appendices environment, on the main.tex file
---> Graphical result is awfull (mixed characters, appearance of the word title, etc...),

- Other way of adding elements to \chapter, \thechapter on the main.tex file, etc
--- >have the same result

- Implementing condition analysis on \chapapp, like : if {appendixname} then ... else ... for TOC, part header, aso., in the structure.tex file, with related graphical modifications
---> Does not recognise the variable as beeing \appendixname, thus the classical graphic rules for chapters applies

- Having no further good ideas
---> Makes me cry and eating ice cream

The MWE is the Legrand Orange book Template (http://www.latextemplates.com/template/the-legrand-orange-book), with \usepackage{appendices} added in the structure.tex file right after the "bibliography and index" section, plus:

\begin{appendices}

\part*{Appendices}
\chapter{TitleA}
\section{TitleSection1}
Contents
\chapter{TitleB}
\section{TitleSection1}
\lipsum[1-4]
\section{TitleSection2}
\lipsum[1-4]

\end{appendices}

Added before the "Bibliography" section of the main.tex file.

Let me know if you need any further info. I would be more than happy to get some help about all this.

It seems I cannot add attachements, as I am new here, I might have missed something ?
"The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom."
== Isaac Asimov - Past, Present & Future - 1987

Tags:

User avatar
Thom
Posts: 5
Joined: Mon Jul 31, 2017 9:46 pm

Postby Thom » Thu Aug 03, 2017 4:01 pm

Hello again,

Does someone have a solution for this matter ?

As a new member of the forum, I was wondering if there were any problems with this post as well ?
"The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom."
== Isaac Asimov - Past, Present & Future - 1987

User avatar
thomasb
Posts: 132
Joined: Thu Aug 03, 2017 10:54 am

Postby thomasb » Fri Aug 04, 2017 12:57 am

Hello,
This is summer time, maybe within a few days you will have plenty of answers... (personally, I never used appendices yet, so I can't help, sorry)
Keep going forward with your work, and the solution might appear to you.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9443
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Aug 04, 2017 6:43 pm

This seems to work I think:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \appendix
  2. \renewcommand{\thechapter}{Appendix\space\Alph{chapter}}
  3. \chapter{Test}


Stefan
Site admin

User avatar
Thom
Posts: 5
Joined: Mon Jul 31, 2017 9:46 pm

Postby Thom » Tue Aug 08, 2017 12:44 pm

Thank you for your answers !

tomasb, I will continue ;)

Stefan, I have tried this possibility before, it works partially indeed. Partially because:
1- The word Appendix does not appear in the table of content, there is still "A. Test" insted ("Appendix A. Test" needed), it appears with appendices package though, but it applies the graphical instructions specified in the structure file, mixing texts because of lack of space between "Appendix A." and "Test",
2- If I add sections to this, "Appendix A.1." appears to the left of its title, which goes out of the page.

For 1, I tried a condition to the structure file in the TOC part but it seems it cannot do the difference between a \chaptertitle and an \appendixtitle, any explanation and ideas ?
For 2, I might try a similar condition in the corresponding part of the structure file,

If you think of anything else, share with us !
"The saddest aspect of life right now is that science gathers knowledge faster than society gathers wisdom."
== Isaac Asimov - Past, Present & Future - 1987


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests
https://latex.org/forum/viewtopic.php?f=59&t=29980&p=101472
latex.org
crawl=CC-MAIN-2019-43
60791
application/http; msgtype=response
sha1:QHZSS2TH43VSPY7KQ2GNPHHZQKD7DXQF
<urn:uuid:bca61b6b-3657-4f88-b6f4-a8198eac244e>
2019-10-14T01:54:24Z
78.46.26.59
text/html
sha1:QOE6LTKXWLADC23LA53QNB4T6XBMF5JD
<urn:uuid:390e238a-2021-4fc9-afb6-72f5cfe25ca5>
https://latex.org/forum/viewtopic.php?f=59&t=29980&p=101472
response
<urn:uuid:8e3cea82-84e8-42db-bfe7-22a004a1540a>
isPartOf: CC-MAIN-2019-43
publisher: Common Crawl
description: Wide crawl of the web for October 2019
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-129.ec2.internal
software: Apache Nutch 1.16 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.1-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/