Theses, Books, Title pages ⇒ Add footnote to provide information about the image
Add footnote to provide information about the image
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Add footnote to provide information about the image
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
Re: Add footnote to provide information about the image
Thank you very much, this works like a charm!
Best regards,
Quentin
Add footnote to provide information about the image
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
Try the following:
Code: Select all
\patchcmd{\theindex}{\thispagestyle{plain}}{\thispagestyle{plain}\picsource{Index}}{}{}Re: Add footnote to provide information about the image
Thank you very much for your time and your quick answer! It works perfectly!
I wish you a great evening.
Best regards,
Quentin