2023-02-27 17:27:55 +03:00
|
|
|
photobook
|
|
|
|
|
=========
|
2021-12-06 22:14:46 +03:00
|
|
|
|
2022-02-15 17:09:19 +03:00
|
|
|
[LaTeX](https://www.latex-project.org/) document class for making photo books.
|
2021-12-06 22:14:46 +03:00
|
|
|
|
|
|
|
|
|
2023-04-29 16:32:43 +03:00
|
|
|
Available on:
|
|
|
|
|
- CTAN: https://ctan.org/pkg/photobook
|
|
|
|
|
- GitHub: https://github.com/flynx/photobook
|
|
|
|
|
|
2021-12-06 22:14:46 +03:00
|
|
|
|
2023-04-29 16:26:35 +03:00
|
|
|
## Install / Build
|
2021-12-07 15:19:09 +03:00
|
|
|
|
2023-04-29 16:26:35 +03:00
|
|
|
The simplest way to install is to use either
|
2023-09-15 14:40:29 +03:00
|
|
|
[TeX Live](https://www.tug.org/texlive/)'s or [MiKTeX](https://miktex.org/)'s
|
2023-04-29 16:26:35 +03:00
|
|
|
standard way to install modules.
|
2022-09-15 18:50:12 +03:00
|
|
|
|
2022-09-16 11:55:57 +03:00
|
|
|
|
2023-04-30 02:08:00 +03:00
|
|
|
Installing from source:
|
2021-12-06 22:16:52 +03:00
|
|
|
```shell
|
2021-12-07 15:19:09 +03:00
|
|
|
# get the source...
|
|
|
|
|
$ git clone https://github.com/flynx/photobook.git
|
|
|
|
|
|
|
|
|
|
# if desired, install in the user context...
|
|
|
|
|
$ cd ./photobook
|
2021-12-06 22:16:52 +03:00
|
|
|
$ make install
|
|
|
|
|
```
|
2021-12-06 22:14:46 +03:00
|
|
|
|
2023-04-27 01:46:04 +03:00
|
|
|
The `photobook` document class requires a set of modules to be installed
|
|
|
|
|
for it to function, the full list is included in the docs and can be
|
2023-09-18 22:54:50 +03:00
|
|
|
generated and printed by calling:
|
2023-04-27 01:30:17 +03:00
|
|
|
```shell
|
2023-04-27 01:46:04 +03:00
|
|
|
$ make depends
|
2023-04-27 01:30:17 +03:00
|
|
|
```
|
|
|
|
|
|
2023-04-29 16:31:32 +03:00
|
|
|
For more info on `make` targets see the: [./Makefile](./Makefile)
|
|
|
|
|
|
|
|
|
|
|
2023-04-29 16:26:35 +03:00
|
|
|
|
|
|
|
|
# Documentation
|
|
|
|
|
|
2023-09-18 01:07:01 +03:00
|
|
|
Pre-built documentation can be found in the
|
2023-09-18 01:08:04 +03:00
|
|
|
[Github releases](https://github.com/flynx/photobook/releases/latest) or on
|
2023-09-16 11:15:01 +03:00
|
|
|
[CTAN](http://mirrors.ctan.org/macros/latex/contrib/photobook/photobook.pdf).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A full book (dummy) example is included in [./examples/book/](./examples/book/)
|
|
|
|
|
and can be used as a reference / starting point.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Building documentation
|
|
|
|
|
|
|
|
|
|
Building the reference from source is done by:
|
2021-12-07 15:19:09 +03:00
|
|
|
```shell
|
2021-12-13 01:44:11 +03:00
|
|
|
$ make pdf
|
2021-12-07 15:19:09 +03:00
|
|
|
```
|
2021-12-06 22:14:46 +03:00
|
|
|
|
2023-04-30 02:08:00 +03:00
|
|
|
Build requirements for docs:
|
2023-04-29 16:26:35 +03:00
|
|
|
- LaTeX tool chain (including: `lualatex`, `latexmk`, ..)
|
|
|
|
|
The simplest way to get started is [TeX Live](https://www.tug.org/texlive/),
|
|
|
|
|
either a full install or for specific modules see the _Packages_ section
|
|
|
|
|
in [photobook.cls](./photobook.cls),
|
|
|
|
|
- Un\*x-like environment (`bash`, GNU Make, coreutils, ...),
|
|
|
|
|
on Windows systems, either [Cygwin](https://www.cygwin.com/) or
|
|
|
|
|
[WSL/WSL2](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux)
|
|
|
|
|
should work fine.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-02-27 17:16:15 +03:00
|
|
|
## Notes
|
|
|
|
|
|
2023-11-14 22:46:50 +03:00
|
|
|
- The main reference is maintained inline with the source [photobook.cls](./photobook.cls)
|
2023-04-26 20:56:44 +03:00
|
|
|
thus it is both human-readable next to the code it documents and is
|
|
|
|
|
used to build the `photobook.pdf`.
|
|
|
|
|
Extracting the documentation source (`photobook*.tex`) is done
|
|
|
|
|
by [make](./Makefile) via [cls2tex.sh](scripts/README.md#cls2texsh) when
|
|
|
|
|
building the docs, see them for more info.
|
2023-02-27 17:27:55 +03:00
|
|
|
- There is a bug in default captions not being typeset correctly if too
|
|
|
|
|
long, a workaround is to place them in a `minipage` like this:
|
|
|
|
|
```latex
|
|
|
|
|
\imagecell{%
|
|
|
|
|
\begin{minipage}{\cellwidth}%
|
|
|
|
|
long caption text...
|
|
|
|
|
\end{minipage}%
|
|
|
|
|
}{some-image}
|
|
|
|
|
```
|
|
|
|
|
(still working on a solution for this).
|
2023-02-27 17:16:15 +03:00
|
|
|
- `photobook` is mostly used with `lualatex`, other engines are mostly
|
|
|
|
|
supported but some features may misbehave.
|
|
|
|
|
|
|
|
|
|
|
2022-09-15 18:50:12 +03:00
|
|
|
## Authors
|
|
|
|
|
|
2022-09-15 18:58:45 +03:00
|
|
|
[Alex A. Naanou](https://github.com/flynx)
|
2022-09-15 18:50:12 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
[BSD 3-Clause License](./LICENSE)
|
|
|
|
|
|
2023-01-18 03:34:19 +03:00
|
|
|
Copyright (c) 2021-2023, Alex A. Naanou,
|
2022-09-15 18:50:12 +03:00
|
|
|
All rights reserved.
|
|
|
|
|
|
2021-12-07 15:19:09 +03:00
|
|
|
|
2023-04-26 20:56:44 +03:00
|
|
|
<!-- vim:set ts=4 sw=4 nowrap : -->
|