Hello,
First of all thanks for the great work! I'm writing a document using the template "legrand-orange-book" and it is working really nicely!
I just wanted to know if there is an easy way to add a footnote at the bottom of each first chapter page to provide information about the image that is used?
I have tried several solutions, but could not make it work for the table of content and "chapters" that are generated automatically. I could figure it out for regular chapter by using the following command:
\let\thefootnote\relax\footnotetext{}
Thank you in advance for any hint and/or suggestion!
I wish you a very nice day and again, thanks for the great information on your site!
Cheers,
Quentin
Theses, Books, Title pages ⇒ Add footnote to provide information about the image
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Add footnote to provide information about the image
You can do it, but it requires some work.
First we define a new command, because semantics are great. You can use it directly after
To use the command after the chapterhead generated by the automatic toc, we need to patch the originial definition. Similarly for all other generated chapters, find the suitable place for patching ang enter the source.
First we define a new command, because semantics are great. You can use it directly after
\chapter
.To use the command after the chapterhead generated by the automatic toc, we need to patch the originial definition. Similarly for all other generated chapters, find the suitable place for patching ang enter the source.
Code: Select all
\newcommand{\picsource}[1]{\let\thefootnote\relax\footnotetext{#1}}
\tracingpatches
\makeatletter
\patchcmd{\tableofcontents}{\@starttoc}{\picsource{TOC pic
source}\@starttoc}{}{}
\makeatother
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Add footnote to provide information about the image
Dear Johannes,
Thank you very much, this works like a charm!
Best regards,
Quentin
Thank you very much, this works like a charm!
Best regards,
Quentin
Add footnote to provide information about the image
Hello Johannes,
Sorry to bother you again, but everything is working great now for all chapters and the list of figures, but I still have a problem for the index. I have tried to replicate what you have written for the table of content but it is not working...
with
My index section is like this:
I thank you in advance for any suggestion and help!
Best regards,
Quentin
Sorry to bother you again, but everything is working great now for all chapters and the list of figures, but I still have a problem for the index. I have tried to replicate what you have written for the table of content but it is not working...
Code: Select all
\patchcmd{\tableofcontents}{\@starttoc}{\picsource{Illustration: Wall of dry stones, Sierre, Valais, Switzerland}\@starttoc}{}{}
Code: Select all
\patchcmd{\printindex}{\@starttoc}{\picsource{Illustration: Wall of dry stones, Sierre, Valais, Switzerland}\@starttoc}{}{}
Code: Select all
%----------------------------------------------------------------------------------------
% INDEX
%-------------------------
\cleardoublepage
\chapterimage{Alphabet.png}
\phantomsection
\setlength{\columnsep}{0.75cm}
\addcontentsline{toc}{chapter}{\textcolor{ocre}{Index}}
\printindex
\picsource{Illustration: alphabet in tonal strips}
%-------------------------
Best regards,
Quentin
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Add footnote to provide information about the image
That's not really surprising. Patching is done on actual code, but the index works different from auto generated lists (you need an extra tool, remember?).
Try the following:
Try the following:
Code: Select all
\patchcmd{\theindex}{\thispagestyle{plain}}{\thispagestyle{plain}\picsource{Index}}{}{}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Add footnote to provide information about the image
Hello Johannes,
Thank you very much for your time and your quick answer! It works perfectly!
I wish you a great evening.
Best regards,
Quentin
Thank you very much for your time and your quick answer! It works perfectly!
I wish you a great evening.
Best regards,
Quentin