mirror of
				https://github.com/flynx/photobook.git
				synced 2025-10-31 19:30:08 +00:00 
			
		
		
		
	docs + demo... need more tweaking/fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									6092c77c97
								
							
						
					
					
						commit
						64ad7bef0e
					
				| @ -2802,6 +2802,23 @@ | |||||||
| %% templates. | %% templates. | ||||||
| %% | %% | ||||||
| 
 | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | %%%%% Generic | ||||||
|  | 
 | ||||||
|  | %% \DescribeMacro{\emptypage\{..\}} | ||||||
|  | % | ||||||
|  | %% Create an empty page. | ||||||
|  | % | ||||||
|  | %%	>> \emptypage | ||||||
|  | %%	>> \emptypage[<style>] | ||||||
|  | %%  | ||||||
|  | \newcommand\emptypage[1][empty]{ | ||||||
|  | 	\begin{page}% | ||||||
|  | 		\ifthenelse{\equal{#1}{}}{}{ | ||||||
|  | 			\thispagestyle{#1}} | ||||||
|  | 	\end{page}} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
| %%%%% Tweaking | %%%%% Tweaking | ||||||
| % | % | ||||||
| @ -3495,7 +3512,7 @@ | |||||||
| % XXX do a better default... | % XXX do a better default... | ||||||
| %		...adaptive??? | %		...adaptive??? | ||||||
| \ResettableMacro{ImageSpreadCaption}[1]{% | \ResettableMacro{ImageSpreadCaption}[1]{% | ||||||
| 	\captioncell[under, align=flushleft]{% | 	\captioncell[under]{% | ||||||
| 		\captionformat{#1}}} | 		\captionformat{#1}}} | ||||||
| 
 | 
 | ||||||
| \ImagePageTemplate{ImageSpread}{% | \ImagePageTemplate{ImageSpread}{% | ||||||
| @ -3550,7 +3567,7 @@ | |||||||
| %% \end{minipage} | %% \end{minipage} | ||||||
| %% | %% | ||||||
| \ResettableMacro{ImageSpreadTCaption}[1]{% | \ResettableMacro{ImageSpreadTCaption}[1]{% | ||||||
| 	\captionblockcell[under]{% | 	\captioncell[under]{% | ||||||
| 		\captionformat{#1}}} | 		\captionformat{#1}}} | ||||||
| \ImagePageTemplate{ImageSpreadT}{% | \ImagePageTemplate{ImageSpreadT}{% | ||||||
| 	\ImageSpread*[% | 	\ImageSpread*[% | ||||||
| @ -3682,7 +3699,7 @@ | |||||||
| 	\ImageSpreadFit*[top, #1]{#2}{#3}} | 	\ImageSpreadFit*[top, #1]{#2}{#3}} | ||||||
| 
 | 
 | ||||||
| \ResettableMacro{ImageSpreadFitBCaption}[1]{% | \ResettableMacro{ImageSpreadFitBCaption}[1]{% | ||||||
| 	\captioncell[above]{% | 	\captioncell[over]{% | ||||||
| 		\captionformat{#1}}} | 		\captionformat{#1}}} | ||||||
| \ImagePageTemplate{ImageSpreadFitB}{% | \ImagePageTemplate{ImageSpreadFitB}{% | ||||||
| 	\ImageSpreadFit*[bottom, #1]{#2}{#3}} | 	\ImageSpreadFit*[bottom, #1]{#2}{#3}} | ||||||
| @ -3758,10 +3775,16 @@ | |||||||
| %% These macros and environments are used internally to help define cells | %% These macros and environments are used internally to help define cells | ||||||
| %% and templates and thus can be useful when extending the functionality  | %% and templates and thus can be useful when extending the functionality  | ||||||
| %% of this class both when authoring styles and when creating user  | %% of this class both when authoring styles and when creating user  | ||||||
| %% macros/templates. | %% macros/templates.\footnote{% | ||||||
|  | %% 		Note that in code the relevant meta-macros are defined in the logical  | ||||||
|  | %% 		locations for each macro, i.e. before first use and at the start of  | ||||||
|  | %% 		the relevant context. This section in the reference is placed near  | ||||||
|  | %% 		the end so as to focus the user's attention on the main class interface, | ||||||
|  | %% 		class internal architecture and extension API being secondary.} | ||||||
| %% | %% | ||||||
| %% \input{\jobname-meta} | %% \input{\jobname-meta} | ||||||
| %% | %% | ||||||
|  | %% | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										133
									
								
								workflow/demo.tex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										133
									
								
								workflow/demo.tex
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,133 @@ | |||||||
|  | %---------------------------------------------------------------------- | ||||||
|  | 
 | ||||||
|  | \documentclass[ | ||||||
|  | 	layoutmode=block, | ||||||
|  | 	% page size... | ||||||
|  | 	blockwidth=240mm, blockheight=220mm, | ||||||
|  | 	bleed=4mm, | ||||||
|  | 	bindingoffset=5mm, | ||||||
|  | 	% image block configuration... | ||||||
|  | 	imageblockwidth=0.98, imageblockheight=0.98, | ||||||
|  | 	imageblockoffsettop=0, | ||||||
|  | 	% misc... | ||||||
|  | 	9pt,final,openany | ||||||
|  | ]{photobook} | ||||||
|  | 
 | ||||||
|  | \usepackage{lipsum} | ||||||
|  | \usepackage{ragged2e} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | \setlength\parindent{0pt} | ||||||
|  | 
 | ||||||
|  | \edef\TestImage{DSC00403-2} | ||||||
|  | \edef\TestImageV{DSC00403-2vert} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | \newcommand\Chapter[1]{ | ||||||
|  | 	\cleartoleftpage% | ||||||
|  | 	\emptypage% | ||||||
|  | 	\chapter{#1}} | ||||||
|  | 
 | ||||||
|  | \newcommand\Section[1]{ | ||||||
|  | 	\cleartoleftpage% | ||||||
|  | 	\emptypage% | ||||||
|  | 	\section{#1}} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | 
 | ||||||
|  | \begin{document} | ||||||
|  | 
 | ||||||
|  | \Chapter{Page templates} | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImagePage} | ||||||
|  | 
 | ||||||
|  | \ImagePage{Caption text}{\TestImage} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImagePageClear} | ||||||
|  | 
 | ||||||
|  | \ImagePageClear{ImagePageClear}{\TestImage} | ||||||
|  | 
 | ||||||
|  | % XXX this is a bit off... | ||||||
|  | \ImagePageClearT{ImagePageClearT}{\TestImage} | ||||||
|  | % XXX caption/image a bit off vertically... | ||||||
|  | \ImagePageClearB{ImagePageClearB}{\TestImage} | ||||||
|  | \ImagePageClearL{ImagePageClearL}{\TestImageV} | ||||||
|  | \ImagePageClearR{ImagePageClearR}{\TestImageV} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImagePageFit} | ||||||
|  | 
 | ||||||
|  | \ImagePageFit{ImagePageFit}{\TestImage} | ||||||
|  | 
 | ||||||
|  | \cleartoleftpage | ||||||
|  | Special case: image that fits vertically will be offset by \verb+\bindingoffset+ | ||||||
|  | \ImagePageFit{ImagePageFit}{\TestImageV} | ||||||
|  | 
 | ||||||
|  | \ImagePageFitT{ImagePageFitT}{\TestImage} | ||||||
|  | % XXX this is a bit too low... | ||||||
|  | \ImagePageFitB{ImagePageFitB}{\TestImage} | ||||||
|  | \ImagePageFitL{ImagePageFitL}{\TestImageV} | ||||||
|  | \ImagePageFitR{ImagePageFitR}{\TestImageV} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImagePageFill} | ||||||
|  | 
 | ||||||
|  | \ImagePageFill{ImagePageFill}{\TestImage} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImageHalfPageL} | ||||||
|  | 
 | ||||||
|  | \ImageHalfPageL{ImageHalfPageL}{\TestImage} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImageHalfPageR} | ||||||
|  | 
 | ||||||
|  | \ImageHalfPageR{ImageHalfPageR}{\TestImage} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | %---------------------------------------------------------------------- | ||||||
|  | \Chapter{Spread templates} | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImageSpread} | ||||||
|  | \ImageSpread{ImageSpread}{\TestImage} | ||||||
|  | 
 | ||||||
|  | % XXX top/bottom have problems... | ||||||
|  | \ImageSpreadT{ImageSpreadR}{\TestImage} | ||||||
|  | \ImageSpreadB{ImageSpreadB}{\TestImage} | ||||||
|  | \ImageSpreadL{ImageSpreadL}{\TestImage} | ||||||
|  | \ImageSpreadR{ImageSpreadR}{\TestImage} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImageSpreadFit} | ||||||
|  | \ImageSpreadFit{ImageSpreadFit}{\TestImage} | ||||||
|  | 
 | ||||||
|  | \ImageSpreadFitT{ImageSpreadFitT}{\TestImage} | ||||||
|  | \ImageSpreadFitB{ImageSpreadFitB}{\TestImage} | ||||||
|  | \ImageSpreadFitL{ImageSpreadFitL}{\TestImage} | ||||||
|  | \ImageSpreadFitR{ImageSpreadFitR}{\TestImage} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  | \Section{ImageSpreadFill} | ||||||
|  | \ImageSpreadFill{ImageSpreadFill}{\TestImage} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | %---------------------------------------------------------------------- | ||||||
|  | \end{document} %                                    vim:set ts=4 sw=4 : | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user