diff options
author | Norbert Preining <norbert@preining.info> | 2024-07-19 03:01:41 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-07-19 03:01:41 +0000 |
commit | fb8f2ca1019d0b788efee13c1ceb5534befa6aad (patch) | |
tree | 4d24bd926ecef6b737d059989a4d3af11febb7a3 /macros/latex/contrib/photobook | |
parent | 3ce3d19f5ec8a431281019a114993df9289cb032 (diff) |
CTAN sync 202407190301
Diffstat (limited to 'macros/latex/contrib/photobook')
-rw-r--r-- | macros/latex/contrib/photobook/Makefile | 22 | ||||
-rw-r--r-- | macros/latex/contrib/photobook/README.md | 7 | ||||
-rw-r--r-- | macros/latex/contrib/photobook/photobook.cls | 46 | ||||
-rw-r--r-- | macros/latex/contrib/photobook/photobook.pdf | bin | 145475 -> 145644 bytes |
4 files changed, 32 insertions, 43 deletions
diff --git a/macros/latex/contrib/photobook/Makefile b/macros/latex/contrib/photobook/Makefile index 59b7ea002c..19edca368e 100644 --- a/macros/latex/contrib/photobook/Makefile +++ b/macros/latex/contrib/photobook/Makefile @@ -85,8 +85,7 @@ endif # markdown dialect... # -# XXX still needs some tweaking... -MD_FORMAT ?= markdown_github +MD_FORMAT ?= gfm # debug output... @@ -173,26 +172,11 @@ LN := cp -l # - |..| - verbatim does not work... # - || - parts of doc omitted... # - verbatim blocks get merged sometimes... +# - does not resolve \jobname in include... # - ... # ...not sure if this can be tweaked... -#%.md: %.tex -# pandoc -t $(MD_FORMAT) -s $< -o $@ - -# XXX EXPERIMENTAL... -# XXX revise: -# ...for this to work we need to replace: -# \documentclass{ltxdoc} -# to: -# \documentclass[markdownextra]{internet} -# XXX install the internet class... -# https://github.com/loopspace/latex-to-internet -# ...needs testing... %.md: %.tex - cat $< \ - | sed 's/documentclass{ltxdoc}/documentclass[markdownextra]{internet}/' \ - > $<.tmp - mv $<{.tmp,} - $(TEX) $< $(STDERR) + pandoc -t $(MD_FORMAT) -s $< -o $@ # meta-section... diff --git a/macros/latex/contrib/photobook/README.md b/macros/latex/contrib/photobook/README.md index 13daa3c373..7055717be0 100644 --- a/macros/latex/contrib/photobook/README.md +++ b/macros/latex/contrib/photobook/README.md @@ -28,7 +28,7 @@ $ make install 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 -printed by calling: +generated and printed by calling: ```shell $ make depends ``` @@ -39,7 +39,8 @@ For more info on `make` targets see the: [./Makefile](./Makefile) # Documentation -Pre-built documentation can be found on +Pre-built documentation can be found in the +[Github releases](https://github.com/flynx/photobook/releases/latest) or on [CTAN](http://mirrors.ctan.org/macros/latex/contrib/photobook/photobook.pdf). @@ -69,7 +70,7 @@ Build requirements for docs: ## Notes -- The main refetence is inline with the source [photobook.cls](./photobook.cls) +- The main reference is maintained inline with the source [photobook.cls](./photobook.cls) 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 diff --git a/macros/latex/contrib/photobook/photobook.cls b/macros/latex/contrib/photobook/photobook.cls index a2a84809e8..9e93d91b00 100644 --- a/macros/latex/contrib/photobook/photobook.cls +++ b/macros/latex/contrib/photobook/photobook.cls @@ -92,8 +92,8 @@ %%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the %%% code and the generated docs... -\edef\photobook@FILEVERSION{v0.1.29} -\edef\photobook@FILEDATE{2023-08-24} +\edef\photobook@FILEVERSION{v0.1.30} +\edef\photobook@FILEDATE{2024-07-18} %% \documentclass{ltxdoc} @@ -248,26 +248,27 @@ %% \begin{minipage}{\textwidth} %% \begin{verbatim} %% +%% <-------------------------------------------------> paperwidth %% <---> bleed <---> bleed -%% -%% + - - - - - - - - - - - - - - - - - - - - - - + - + ^ -%% . . . | bleed -%% . +-----------------------------------------+----- v . . --- -%% . | ^ . . = . -%% . | . . . . . . | . . . = . ^ -%% . |<-- blockwidth ------------------------->= . | -%% . | . | . . . = . | -%% . | | . . = . textheight -%% . | . Page | . . . = . | -%% . | blockheight . . = . | -%% . | . | . . <--> bindingoffset | -%% . | | . . = . | -%% . | . . . . . . | . <--> gutteroffset v -%% . | v . . = . -%% . +-----------------------------------------+----- ^ . . --- -%% . . . . | bleed -%% + - - - - - - - - - - - - - - - - - - - - - - + - + v -%% . . +%% paperheight v +%% + - - - - - - - - - - - - - - - - - - - - - - + - + ^ . . . --- +%% . . . | bleed . +%% . +-----------------------------------------+----- v . . --- +%% . | ^ . . = . . +%% . | . . . . . . | . . . = . ^ +%% . |<-- blockwidth ------------------------->= . | . +%% . | . | . . . = . | +%% . | | . . = . textheight . +%% . | . Page | . . . = . | +%% . | blockheight . . = . | . +%% . | . | . . <--> bindingoffset | +%% . | | . . = . | . +%% . | . . . . . . | . <--> gutteroffset v +%% . | v . . = . . +%% . +-----------------------------------------+----- ^ . . --- +%% . . . . | bleed . +%% + - - - - - - - - - - - - - - - - - - - - - - + - + v . . . --- +%% . . ^ %% | <-- textwidth --------------> . | %% ^ gutter %% @@ -278,6 +279,9 @@ %% account for |\gutteroffset|, namely macros that do not display content %% with bleeds. %% +%% Also note that bleeds are included in \href{https://ctan.org/pkg/geometry}{geometry}'s +%% |\paperwidth| and |\paperheight|. +%% % NOTE: if blockwidth/blockheight are set they will force recalculations % and overriding of the paperwidth/paperheight if they were changed % by the user code anywhere between \documentclass[..]{photobook} diff --git a/macros/latex/contrib/photobook/photobook.pdf b/macros/latex/contrib/photobook/photobook.pdf Binary files differindex 5e785e73cf..3e31d7fedc 100644 --- a/macros/latex/contrib/photobook/photobook.pdf +++ b/macros/latex/contrib/photobook/photobook.pdf |