LaTeX forum ⇒ Theses, Books, Title pagesRemoving the "A" in front of "Appendix"

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Removing the "A" in front of "Appendix"

Postby Seanshine » Mon May 14, 2018 12:49 pm

Dear readers,

I am trying to remove the "A" in front of "Appendix". What line of code should I put in the preamble in order to do so?

Furthermore, what is the best position within main.tex for the additional lines of code? This is what I've done thus far:

  1. \documentclass[
  2. 11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside,
  3. chapterinoneline, leqno,
  4. %consistentlayout, change the layout of the declaration, abstract and acknowledgements pages to match the default layout
  5. ]{MastersDoctoralThesis}
  6.  
  7. \usepackage[utf8]{inputenc}
  8. \usepackage[T1]{fontenc}
  9. \usepackage{mathpazo}
  10. \usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
  11. \usepackage{titling}
  12. \usepackage{lipsum}
  13.  
  14. \addbibresource{References.bib}
  15. \usepackage[autostyle=true]{csquotes}
  16.  
  17. %----------------------------------------------------------------------------------------
  18. % ADDITIONAL THESIS FORMATTING
  19. %----------------------------------------------------------------------------------------
  20.  
  21. \AtBeginDocument{
  22. \hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title
  23. \hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
  24. \hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords
  25. }
  26.  
  27. \renewcommand{\chaptermarkformat}{1 }

User avatar
Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon May 14, 2018 1:24 pm

\chaptermarkformat{1 } is just wrong. So wrong. I told you how to get what you want.

Have you tried \addchap{Appendix}, the normal way to achieve an unnumbered chapter with this template.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Seanshine
Posts: 52
Joined: Sat Apr 28, 2018 9:59 pm

Postby Seanshine » Mon May 14, 2018 2:04 pm

Hi Johannes,

I've actually used
  1. \chaptermarkformat{}

which was suggested by you in one of the other posts.

This is what I used in the Appendix section of the main.tex:
  1. \appendix
  2. \include{Appendices/AppendixA}




did not work unfortunately.

User avatar
Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon May 14, 2018 7:05 pm

I've actually used
  1. \chaptermarkformat{}

which was suggested by you in one of the other posts.

Redefining that command is correct, but your redefinition suddenly has one number in it, which is wrong.
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. % Masters/Doctoral Thesis
  3. % LaTeX Template
  4. % Version 2.5 (27/8/17)
  5. %
  6. % This template was downloaded from:
  7. % <!-- m --><a class="postlink" href="http://www.LaTeXTemplates.com">http://www.LaTeXTemplates.com</a><!-- m -->
  8. %
  9. % Version 2.x major modifications by:
  10. % Vel (vel@latextemplates.com)
  11. %
  12. % This template is based on a template by:
  13. % Steve Gunn (http://users.ecs.soton.ac.uk/srg/softwaretools/document/templates/)
  14. % Sunil Patel (http://www.sunilpatel.co.uk/thesis-template/)
  15. %
  16. % Template license:
  17. % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
  18. %
  19. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  20. \documentclass[
  21. english, % ngerman for German
  22. chapterinoneline, % Uncomment to place the chapter title next to the number on one line
  23. ]{MastersDoctoralThesis} % The class file specifying the document structure
  24. \usepackage{blindtext}
  25. \renewcommand{\chaptermarkformat}{\thechapter\space}
  26. \ihead{\headmark Author p X}
  27. \begin{document}
  28. \chapter{Wombat}
  29. \blindtext[10]
  30. \appendix
  31. \addchap{Appendix}
  32. \end{document}

\addchap works for me.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 2 guests