Page LayoutHeader Title in my Acronyms is wrong.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Header Title in my Acronyms is wrong.

Post by ougka »

Hello all,

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!

Recommended reading 2024:

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

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Header Title in my Acronyms is wrong.

Post by Stefan Kottwitz »

Hi ougka,

you could use \markboth right before the glossary, such as

Code: Select all

\clearpage
\markboth{List of Acronyms}{List of Acronyms}
\printglossaries
Stefan
LaTeX.org admin
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Re: Header Title in my Acronyms is wrong.

Post by ougka »

Hello Stefan,

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..?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Header Title in my Acronyms is wrong.

Post by Stefan Kottwitz »

Hi ougka,

perhaps show with some code how you are doing it. If there's something wrong, we might see it.

Stefan
LaTeX.org admin
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Header Title in my Acronyms is wrong.

Post by ougka »

Hello Stefan,

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}
and in my 05_TOC_LoF_LoT_Glossary file i have

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
but it doesn't seem to work... any ideas?
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Header Title in my Acronyms is wrong.

Post by nlct »

Try

Code: Select all

\renewcommand{\glossarytoctitle}{List of Acronyms}
Regards
Nicola Talbot
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Header Title in my Acronyms is wrong.

Post by ougka »

nlct wrote:Try

Code: 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?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Header Title in my Acronyms is wrong.

Post by Stefan Kottwitz »

Hi,
ougka wrote:
nlct wrote:Try

Code: Select all

\renewcommand{\glossarytoctitle}{List of Acronyms}
I get a

Code: Select all

!LaTeX Error : \glossarytoctitel undefined
when i try your suggestion.. any other ideas?
check the spelling, it's \glossarytoctitle.

Stefan
LaTeX.org admin
ougka
Posts: 43
Joined: Wed Jan 19, 2011 5:02 pm

Header Title in my Acronyms is wrong.

Post by ougka »

Stefan_K wrote:Hi,
ougka wrote:
nlct wrote:Try

Code: Select all

\renewcommand{\glossarytoctitle}{List of Acronyms}
I get a

Code: Select all

!LaTeX Error : \glossarytoctitel undefined
when i try your suggestion.. any other ideas?
check the spelling, it's \glossarytoctitle.
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...

where can I find all these \glossary-whatever commands so that I can try and find something that would do the job?
Etiene
Posts: 2
Joined: Fri Jul 29, 2011 11:42 am

Header Title in my Acronyms is wrong.

Post by Etiene »

Hi, I'm having a similar problem.

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]
Then they appear in the correct order but the chapter title before the main glossary is 'Abbreviations' and the title space before the abbreviations is blank. The header displays the correct label, however.

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]}
as I wanted to print a chapter heading page anyway but that now gives "! Argument of \glossarytitle has an extra }." followde by a runaway argument and has to be ignored anyway. I have looked at the .sty file but I'm new to LaTeX and unwilling to mess around in there without instruction.

Any help would be much appreciated.

Regards
S
Last edited by Stefan Kottwitz on Fri Jul 29, 2011 11:09 pm, edited 1 time in total.
Post Reply