Page Layout ⇒ Header Title in my Acronyms is wrong.
Header Title in my Acronyms is wrong.
I am using the glossaries package for my list of Acronyms. I have renamed the Title of Glossary to appear as List of Acronyms in my Contents and also in the actual page where the acronyms appear. However, at the header of the List of Acronyms section, it still reads "Glossary".
How can I change the header from "Glossary" to "List of Acronyms"?
Thanks a lot!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- Joined: Mon Mar 10, 2008 9:44 pm
Header Title in my Acronyms is wrong.
you could use \markboth right before the glossary, such as
Code: Select all
\clearpage
\markboth{List of Acronyms}{List of Acronyms}
\printglossaries
Re: Header Title in my Acronyms is wrong.
thanks a lot for your reply... I am afraid this doesn't work... It builds fine but it seems that \markboth doesn't overwrite the "Glossary" heading to "List of Acronyms"
I'd be grateful if you could have any other ideas..?
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Header Title in my Acronyms is wrong.
perhaps show with some code how you are doing it. If there's something wrong, we might see it.
Stefan
Header Title in my Acronyms is wrong.
Sure, so here is my main file :
Code: Select all
\documentclass[a4paper,oneside,12pt]{book} %twoside,draft,openright]
\usepackage{a4}
\usepackage{anysize}
%{left}{right}{top}{bottom}
\marginsize{38mm}{25mm}{25mm}{25mm
\input{thesis_format}
%%%%%%%% GLOSSARY %%%%%%%%%%
\usepackage[style=super,nonumberlist]{glossaries}
%Remove the dot at the end of glossary descriptions
\renewcommand*{\glspostdescription}{}
%Make the description column of the glossary a bit wider
%default is 0.6\linewidth
\setlength{\glsdescwidth}{0.8\linewidth}
%Make the acronym bold in the TOC
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\makeglossaries
\include{Chapter0-Peripherals/glossaries}
\begin{document}
%% Front pages of the thesis
\input{Chapter0-Peripherals/00_Title_Page}
%this is where i declare about glossaries (snippet below)
\input{Chapter0-Peripherals/05_TOC_LoF_LoT_Glossary}
%% Main text
\include{Chapter1-Intro/Chapter1}
(snip)
\include{Chapter8-Conclusion/Chapter8}
\include{Chapter0-Peripherals/10_References}
\end{document}
Code: Select all
%Add your glossary in the TOC with a different name
\newpage
\addcontentsline{toc}{chapter}{\numberline{}List of Acronyms}
%use List of Acronyms instead of Glossary as a title on the actual page of the Acronyms
\renewcommand{\glossaryname}{List of Acronyms}
\clearpage
%set the heading of the List of Acronyms to "List of Acronyms" instead of Glossary
\markboth{List of Acronyms}{List of Acronyms}
\printglossaries
Header Title in my Acronyms is wrong.
Code: Select all
\renewcommand{\glossarytoctitle}{List of Acronyms}
Nicola Talbot
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Header Title in my Acronyms is wrong.
nlct wrote:TryCode: Select all
\renewcommand{\glossarytoctitle}{List of Acronyms}
Hi Nicola thanks a lot for your reply.
I get a
!LaTeX Error : \glossarytoctitel undefined
when i try your suggestion.. any other ideas?
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- Joined: Mon Mar 10, 2008 9:44 pm
Header Title in my Acronyms is wrong.
check the spelling, it's \glossarytoctitle.ougka wrote:I get anlct wrote:TryCode: Select all
\renewcommand{\glossarytoctitle}{List of Acronyms}
when i try your suggestion.. any other ideas?Code: Select all
!LaTeX Error : \glossarytoctitel undefined
Stefan
Header Title in my Acronyms is wrong.
ha.. I wish it was that Stephan. I wrote it correctly in my tex file, it's just that I didn't copy/paste the error from latex, hence my typo...Stefan_K wrote:Hi,
check the spelling, it's \glossarytoctitle.ougka wrote:I get anlct wrote:TryCode: Select all
\renewcommand{\glossarytoctitle}{List of Acronyms}
when i try your suggestion.. any other ideas?Code: Select all
!LaTeX Error : \glossarytoctitel undefined
where can I find all these \glossary-whatever commands so that I can try and find something that would do the job?
Header Title in my Acronyms is wrong.
I'm trying to include a list of acronyms under the title abbreviations and a main glossary. If I include:
Code: Select all
\printglossary[type=main,title=Glossary]
\printglossary[type=acronym,title=Abbreviations]
Previously I had the two the other way around and the problem was reversed.
There is also a regular error on undefined control sequence for \glossarytitle. I tried defining it with
Code: Select all
\newcommand{\glossarytitle}[1]{\chapter[#1]}
Any help would be much appreciated.
Regards
S