I am working on a book project that has a large number of photos and captions in the margins. I need to give proper attribution (credit) for each photo. I do not want the citations to appear in the margins. Instead I would like to include a Photo Credits section in the backmatter, along with the Bibliography, Index and Glossary sections.
I am using Bibtex to include a bibliography. How would I add the photo credits in the backmatter. The \cite command or footnoting places the photo credits on the same page as the photos. The margins are already quite full with the photos and captions, so I do not want them to appear in the margins of the main text.
Can someone suggest a way to do this?
Text Formatting ⇒ Photo Citations in Tufte class
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Photo Citations in Tufte class
This can easily be done with the modern package biblatex along with the bibtex-successor biber.
Have a look at the minimal example i once posted at the german site TeXwelt.de
The example is in german, but i guess you get the drift.
Maybe psot a complete but compilable example. I guess this can be done with the old system, but it will be much harder to achieve.
Have a look at the minimal example i once posted at the german site TeXwelt.de
The example is in german, but i guess you get the drift.
Maybe psot a complete but compilable example. I guess this can be done with the old system, but it will be much harder to achieve.
Code: Select all
\begin{filecontents}{\jobname-bib.bib}
@online{texwelt,
author = {Die TeXwelt Gemeinschaft},
title = {Fragen und Antworten},
url = {www.texwelt.de/wissen}
}
@online{texwelt:biblatex,
author = {\texttt{biblatex}-Nutzer},
title = {topic \texttt{biblatex}},
url = {www.texwelt.de/wissen/topic/biblatex}
}
@book{knuth:ct:a,
author = {Knuth, Donald E.},
title = {The \TeX book},
date = 1984,
maintitle = {Computers \& Typesetting},
volume = {A},
publisher = {Addison-Wesley},
langid = {english},
keywords = {sekundaer},
annotation = {Viel Interessantes zu den
Grundlagen}
}
@report{norm,
author = {{NA 009-00-09 AA - Beschreibung
und Identifizierung von Dokumenten}},
title = {Information and documentation
-- Guidelines for bibliographic references and citations to information resources},
institution = {Internationale Organisation für Normung},
keywords = {Norm},
year = {2013}
}
@manual{biblatex:Doku,
author = {Lehman, Philipp and Kime, Philip and Boruvka, Audrey and Wright, Joseph},
title = {The Biblatex Package},
date = {2014-06-24},
version = {2.9a}
}
\end{filecontents}
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber,defernumbers=false]{biblatex}
\addbibresource{\jobname-bib.bib}
\begin{document}
Das Erscheinungsbild von Literaturverzeichnissen ist meist
vorgegeben (beispielsweise in~\cite{norm}).
Die Informationsquelle für das technische Erstellen von
Literaturverzeichnissen ist die
\texttt{biblatex}-Dokumentation~\cite{biblatex:Doku}. Jedoch
finden sich auch im Internet Anlaufstellen für
Hilfesuchende~\cite{texwelt}.
\nocite{*}
\printbibheading%[title=Blub]
\printbibliography[heading=subbibliography,keyword=Norm, title={Normen und Standards}]
\printbibliography[type=online, heading=subbibliography, title={Aus dem Netz}]
\printbibliography[heading=subbibliography,keyword=sekundaer, title={Zum weiterlesen}]
\printbibliography[heading=subbibliography,title={Der ganze
Rest},nottype=online,notkeyword=Norm,notkeyword=sekundaer]
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Re: Photo Citations in Tufte class
Thank you. This is very helpful. From your code, it looks like I can sub-divide the bibliography into subbibliographies, and separate them with different keywords that I use in biblatex citation. I could use a key word for the photo citations, like keyword=photo and notkeyword=photo for all other bibliographic entries. The order of the \printbibliography entries would then be the order that these two separate bibliographies would be printed.
Does this seem like I have the right idea? If so, thanks very much. I did not know I could separate a bibliography into sections this way.
Does this seem like I have the right idea? If so, thanks very much. I did not know I could separate a bibliography into sections this way.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Photo Citations in Tufte class
Yes, you are on the right track. That is exactly the point. 
package biblatex is very powerful, skimming the documentation for a few minutes will reveal some of it.

package biblatex is very powerful, skimming the documentation for a few minutes will reveal some of it.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Photo Citations in Tufte class
I am still experiencing difficulty with getting multiple bibliographies in the Tuft class. Glossaries are also causing some problems. Please have a look at the front end code to see if you could recommend any changes that would make this work properly.
I am creating my bibliographic database using BibDesk. When I try uncommenting the commented code shown that should enable me to use biblatex, I run into problems. Ant help would be appreciated.
I am creating my bibliographic database using BibDesk. When I try uncommenting the commented code shown that should enable me to use biblatex, I run into problems. Ant help would be appreciated.
Code: Select all
\documentclass[justified, notoc, symmetric,openany]{tufte-book}
\hypersetup{colorlinks}
\usepackage{microtype}
\usepackage{lipsum}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage[backend=biber, defernumbers=false]{biblatex}
%\addbibresource{\bib_mybib}
\graphicspath{{graphics/}}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\usepackage{fancyvrb}
\fvset{fontsize=\normalsize}
\usepackage{xspace}
\newcommand{\monthyear}{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi\space\number\year}
\newcommand{\openepigraph}[2]{
\begin{fullwidth}
\sffamily\large
\begin{doublespace}
\noindent\allcaps{#1}\\ %quote
\noindent\allcaps{#2} %author
\end{doublespace}
\end{fullwidth}
}
\hypersetup{colorlinks,linktocpage,urlcolor=blue}
\newcommand{\blankpage}{\newpage\hbox{}\thispagestyle{empty}\newpage}
\usepackage{units}
\newcommand{\doccmdnoindex}[2][]{\texttt{\tuftebs#2}} % Command to print a command in texttt with a backslash of tt type without inserting the command into the index
\makeatletter
\renewenvironment{theindex}
{
\small
\ifthenelse{\equal{\@tufte@class}{book}}
{\chapter{\indexname}}
{\section*{\indexname}}
\parskip0pt
\parindent0pt
\let\item\@idxitem
\begin{multicols}{3}
}
{\end{multicols}%
}
\makeatother
\newcommand{\doccmddef}[2][]{\hlred{\texttt{\tuftebs#2}}\label{cmd:#2}\ifthenelse{\isempty{#1}} % Command to define a command in red and add it to the index
{ % If no package is specified, add the command to the index
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2}}% Command name
}
{ % If a package is also specified as a second argument, add the command and package to the index
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2} (\texttt{#1} package)}% Command name
\index{#1 package@\texttt{#1} package}\index{packages!#1@\texttt{#1}}% Package name
}}
\newcommand{\doccmd}[2][]{% Command to define a command and add it to the index
\texttt{\tuftebs#2}%
\ifthenelse{\isempty{#1}}% If no package is specified, add the command to the index
{%
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2}}% Command name
}
{%
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2} (\texttt{#1} package)}% Command name
\index{#1 package@\texttt{#1} package}\index{packages!#1@\texttt{#1}}% Package name
}}
\usepackage{makeidx}
\makeindex % Generate the index
\usepackage[toc,nonumberlist]{glossaries}
\makeglossaries
%\usepackage[utf8]{inputenc}
%\usepackage[T1]{fontenc}
%\usepackage[backend=biber,defernumbers=false]{biblatex}
%\addbibresource{\bib_Living_Planet.bib}
\title{Book Title}
\author[my_name]{Author}
\begin{document}
\makeatletter
%\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
%\makeatother
\frontmatter
\maketitle
\thispagestyle{empty}
\newpage
\begin{fullwidth}
~\vfill
\thispagestyle{empty}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
Copyright \copyright\ \the\year\ \thanklessauthor
\par\textit{Second printing, \monthyear}
\end{fullwidth}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\tableofcontents
\thispagestyle{empty}
\listoffigures % Print a list of figures
\thispagestyle{empty}
\cleardoublepage
%\include{introduction}
\mainmatter
%------------------------------------------------------------------------------
% CHAPTERS
%------------------------------------------------------------------------------
%\input{chapter_1}
%\input{chapter_2_etc.}
\backmatter
\include{glossary} %Prints twice
% If I leave the above line out glossaries do not print
\glsaddall
\printglossaries
%\bibliography{bib_mybib}
\bibliographystyle{plainnat}
%\bibliography[heading=subbibliography,notkeyword=photo, title={Books}]
%\bibliography[heading=subbibliography,keyword=photo, title={Photo Credits}]
\printindex
\end{document}
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Photo Citations in Tufte class
I cannot test your example, i don't have the bib file and there are no citations in the document.
Always test on a small document, later try to implement it on your working project. With biblatex, you don't need
You tell LaTeX what bib-database to use by
Running into problems is a rather vague expression, giving the exact error message is smart. Remember, error messages are our friends.
Always test on a small document, later try to implement it on your working project. With biblatex, you don't need
bibliographystyle
anymore, worse, issuing the command will get you into trouble. You tell LaTeX what bib-database to use by
\addbibresource{nameOfYourBibFile.bib}
. Be sure to give the ending as well. There was a backslash in my example. \jobname
is a macro that makes testing easier, but should not be used in real documents. Running into problems is a rather vague expression, giving the exact error message is smart. Remember, error messages are our friends.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.