19

I am looking for a solution to produce a two-column(ed) LaTeX-based photobook. Text and comments should go on the outer column (in a two-sided document)--something like a wide outer margin. Photos (along with their optional captions) should be placed in the inner column (which will be wider than the "text"-column).

Very important detail: the idea is to have landscape pages, wide enough to present photos that can be actually seen.

As an extra, the class should be compatible with some kind of a thumb-index for the chapters, placed on the outer side of the page, from top to bottom, counting from the first to the last chapter.

Should I start scratching my own class (or layout for LyX)?

Nikos Alexandris
  • 1,051
  • 1
  • 15
  • 43
  • 1
    Can you have a look at the tufte-latex class? – yannisl Nov 01 '11 at 08:39
  • I've already started my "photobook" project based on the tufte-latex class :-). Two things do not play nice: the thumb-index and my custom definitions of the layout geometry (using the "geometry" package). Moreover, I am a bit sceptical whether the use of "marginal notes" for the text is a clean solution for the question asked here. – Nikos Alexandris Nov 01 '11 at 08:50
  • Then you probably need to start from somewhere and develop your own class. In this case then move away from Tufte as it redefines a lot of stuff and it will be more difficult to modify. I would start from a class like octavo (I know is a bit heretical), but the class is very well documented and is based on the standard book class. Another problem will be floats, for a picture book I would not use them. Have you got a sample scan of what you are after? – yannisl Nov 01 '11 at 09:06
  • If you have one photo per page, or a fixed number of photos of fixed sizes (that you know fits on a single page) then it's ok. But as Yiannis says, floats will turn this project into a nightmare: how to keep comment text with the photos? etc. – Seamus Nov 01 '11 at 09:09
  • Where can I post a left and right layout(.pdf) pages--produced with the layout packge after a lot of trial and error--as a sample? No floats are required! Just one, or two photos max. per page. Also, the very nice solution, for two-page wide photos provided by Martin Scharrer will be honoured. – Nikos Alexandris Nov 01 '11 at 09:10
  • Try crocodoc.com – yannisl Nov 01 '11 at 09:13
  • Uploaded a sample at http://www.scribd.com/doc/71126023/Photobook-Layout. Narrow(er) text, photos are more important, thus a wider inner column. – Nikos Alexandris Nov 01 '11 at 09:32
  • Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. Also, you can directly upload pdf images to this site (the conversion quality isn't great though). While you're a low-reputation user, you'll have to remove the ! and a high-rep user will edit it back in. – doncherry Nov 01 '11 at 09:47
  • @doncherry: All read and understood except for the "you'll have to remove the ! and a high...". What/where is the "!"? – Nikos Alexandris Nov 01 '11 at 10:17
  • It is a so-called priviledge to add pictures that you earn at 10 reputation points. The markdown code for a picture is ![alt text][URL], but you can't save a post containing that while below 10 rep. But if you remove the !, you can save your post and a user with higher reputation can check the picture and edit the ! back in, so that the picture will be displayed. – doncherry Nov 01 '11 at 10:43
  • @doncherry: Got it. – Nikos Alexandris Nov 01 '11 at 11:30
  • Here http://www.lightandmatter.com/books.html#source_code is a totally different, and much more complicated, software setup that I use for textbooks. –  Jan 12 '12 at 01:59

2 Answers2

23

The important issues to handle for such a project would be the handling of floats. Normally photo books or similar documents do not have a large amount of words and if you use floats and marginpars, the text will certainly end up in the wrong place.

enter image description here

I would first choose a few page designs and then use minipages or better TeX vbox and hbox primitives to position them and work macros around them. Martin's adjustbox package might also come handy here, i.e., you need to build the two columns, rather than use the marginpar area or a two-column layout.

The layout above was achieved using such a macro:

\newcommand\addpicture[2]{
  \hskip-2cm\begin{minipage}[b]{17cm}
  \includegraphics[width=17cm]{#1}
  \end{minipage}\hspace{0.3cm}
  \begin{minipage}[b]{3cm}
   #2
   \end{minipage}}

I haven't used your dimensions for the page geometry but you can vary the sizes in the minimal that follows. Add fonts and style to suit your requirements.

\documentclass[11pt]{book}
\usepackage{xcolor}
\usepackage{ifpdf}
\usepackage{graphicx}
\newfont{\HUGE}{cmr17 at 96pt}
\setlength{\textwidth}{8.0in}
\setlength{\textheight}{5.125in}
\setlength{\oddsidemargin}{0.0in}
\setlength{\evensidemargin}{-0.375in}
\setlength{\topmargin}{-0.375in}
\setlength{\headsep}{0.25in}
\setlength{\headheight}{0.125in}
\setlength{\footskip}{0.25in}
\ifpdf
  \pdfpageheight 7.5in 
  \pdfpagewidth 9.625in
\fi
\newcommand{\hstroke}{\rule[0.5ex]{5.0em}{0.2ex}}

\begin{document}

\thispagestyle{empty}
\begin{center}
\setlength{\unitlength}{1.0em}%
\begin{picture}(45,16)(0,0)
\put(-0.625,0){\framebox(6.2,7.25){\HUGE \textcolor{purple}{A}}}
\put(5.875,5.625){\parbox[t]{15em}{\Huge \noindent LITTLE GIFT\linebreak
\raggedright FOR LITTLE\linebreak
FEET\linebreak
}}
\end{picture}
\hspace*{-0.6em}\rule{\textwidth}{0.3ex}\\
{\small \sc by}\\
{\small YIANNIS LAZARIDES}\\
{\footnotesize Author of ``Myths of TeX''}\\
\vspace*{18.5 ex}
\rule{\textwidth}{0.3ex}\\
{\small
DOHA\phantom{ZZZZZ,}\hfill\raisebox{0.5ex}{$\bullet$}\hfill THE CAMEL\linebreak
QATAR\hfill\raisebox{0.5ex}{$\bullet$}\hfill PRESS
}
\end{center}
\newpage
\thispagestyle{empty}
\vspace*{18ex}
\begin{center}
{\em Copyright, $\mit 2011$}\\
{\sc By the Little Girl \& Company}\\
\hstroke\\
{\em All rights reserved}\\
\vspace*{18ex}
{\sc A little story book}\\
{\sc for a little girl}\\
\vspace*{12ex}
Made in the wild.
\end{center}
\newpage
\frontmatter
\thispagestyle{empty}
\vspace*{20ex}
\begin{center}
                           {\scriptsize FOR}\\
                {\large \bf Li, Mary and John}\\
\smallskip
                   {\footnotesize AND THE REST\\
                     OF THE WORLD'S\\
                    CHILDREN}
\end{center}

\mainmatter

\newcommand\addpicture[2]{
\hskip-2cm\begin{minipage}[b]{17cm}
\includegraphics[width=17cm]{#1}
\end{minipage}\hspace{0.3cm}
\begin{minipage}[b]{3cm}
#2
\end{minipage}}

\addpicture{children-03.jpg}{\ldots and on the other side of the world in the Land of the Moon Wi Li was sleeping \ldots}

\end{document}

See also Template for a book for children

Moriambar
  • 11,466
yannisl
  • 117,160
  • The example demonstrated above is close enough to what I want to achieve. I will try it out (using of course my own geometry definitions). To expand a bit on the discussion, I've thought of using minipages (within LyX, to be honest) to get it done. Then again, it would be nice to have a clean(er) solution, a unique class to fulfil this need. I am not convinced that LaTeX is not meant to be used for such a task. How else can I create automatically an index for various cross-references and the like? I imagine this would be a harder work when using a photo or page editing tool. – Nikos Alexandris Nov 01 '11 at 12:04
  • Everything is still available in the example. You can add packages as you like make indices, table of contents and the like. Using LyX might not be the best way to develop special layouts, rather use a good editor and type the commands yourself. It will be also a good idea to do a bit of research on boxes, how to raise them or lower them etc., I have a feeling you will need them. – yannisl Nov 01 '11 at 12:13
  • 1
    In my last comment I wanted to contrast the LaTeX way against other tools (like LibreOffice, GIMP or Scribus). In addition, besides time availability before the deadline to deliver "something", there is one important reason why I consider myself bound to LyX: other people (without any special attachment to LaTeX) might need to work on it later on. For them, I consider LyX as a good compromise between the "good" (=LaTeX) and the "bad" solution (=OfficeLike-YouNameIt-EditingTool). For my very own projects, I will definitely try-out the clean(er) way :-) – Nikos Alexandris Nov 01 '11 at 12:27
  • 1
    Finally, I've made progress and am about to finish up the project. As suggested by Yiannis L., I used minipages (within the KOMA-script) to produce the desired positioning of photos and texts. – Nikos Alexandris Nov 15 '11 at 11:08
0

This answer comes relatively late, I hope that it halps others who want to make such a book. I made a kind of photoook using the KOMA-class scrbook. The page format was landscape DIN A4, and I included double sided photos using \includepdf. The book had a large inner page margin of 12 cm. There I placed photos using the \textbox-command, in which you can place figures and photos using \includegraphics. The \textbox-command is an absolute command, it places the box wherever you position it - whether there is text or not. But this can be an advantage: if the image included is such, that it does not negatively interact with the text (e.g. relatively clear sky), you can print the flowing text in the picture. If you use the \twocolumn option, you can cut the columns by a \newpage (at the end of a sentence or of a paragraph).

Using this, I got a photobook with lots of doublesided photos and also with images of 1 1/3 pages, and images of 1/3 page width. Also 2 images of 1/3 page-width each at the inner border of two adherent pages.

Of course, this needs a lot of manual editing -but a photobook is characterized by much interaction of text and photos. And, of course, the design-options are limeted, but I conssider it less as a bug and more as a feature: the clear and repitive (strict) design is (at my opinion) more serious, more valuable. Please excuse my poor english.

Guest
  • 1