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

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

Removing the "A" in front of "Appendix"

Post by Seanshine »

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:

Code: Select all

\documentclass[
11pt,english, onehalfspacing, nolistspacing, liststotoc, headsepline,oneside, 
chapterinoneline, leqno, 
%consistentlayout, change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{MastersDoctoralThesis}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
\usepackage{titling}
\usepackage{lipsum}

\addbibresource{References.bib}
\usepackage[autostyle=true]{csquotes}

%----------------------------------------------------------------------------------------
%	ADDITIONAL THESIS FORMATTING
%----------------------------------------------------------------------------------------

\AtBeginDocument{
\hypersetup{pdftitle=\ttitle} % Set the PDF's title to your title
\hypersetup{pdfauthor=\authorname} % Set the PDF's author to your name
\hypersetup{pdfkeywords=\keywordnames} % Set the PDF's keywords to your keywords
}

\renewcommand{\chaptermarkformat}{1 }

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Removing the "A" in front of "Appendix"

Post by Johannes_B »

\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

Removing the "A" in front of "Appendix"

Post by Seanshine »

Hi Johannes,

I've actually used

Code: Select all

\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:

Code: Select all

\appendix
    \include{Appendices/AppendixA}

Code: Select all

\addchap
did not work unfortunately.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Removing the "A" in front of "Appendix"

Post by Johannes_B »

I've actually used

Code: Select all

\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.

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Masters/Doctoral Thesis 
% LaTeX Template
% Version 2.5 (27/8/17)
%
% This template was downloaded from:
% http://www.LaTeXTemplates.com
%
% Version 2.x major modifications by:
% Vel (vel@latextemplates.com)
%
% This template is based on a template by:
% Steve Gunn (http://users.ecs.soton.ac.uk/srg/softwaretools/document/templates/)
% Sunil Patel (http://www.sunilpatel.co.uk/thesis-template/)
%
% Template license:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[
english, % ngerman for German
chapterinoneline, % Uncomment to place the chapter title next to the number on one line
]{MastersDoctoralThesis} % The class file specifying the document structure
\usepackage{blindtext}
\renewcommand{\chaptermarkformat}{\thechapter\space}
\ihead{\headmark Author p X}
\begin{document}
\chapter{Wombat}
\blindtext[10]
\appendix
\addchap{Appendix}
\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.
Post Reply