mirror of
				https://github.com/flynx/photobook.git
				synced 2025-10-31 19:30:08 +00:00 
			
		
		
		
	cleanup and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									1f938b151f
								
							
						
					
					
						commit
						df345e5f60
					
				| @ -95,13 +95,13 @@ | |||||||
| %% | %% | ||||||
| %%   + - - - - - - - - - - - - - - - - - - - - - + - +   ^ | %%   + - - - - - - - - - - - - - - - - - - - - - + - +   ^ | ||||||
| %%   .                                           .   .   | bleed | %%   .                                           .   .   | bleed | ||||||
| %%   .   +---------------------------------------+-----  v   .   .  --- | %%   .   +--------------------------------------+-----  v   .   .  --- | ||||||
| %%   .   |                           ^       .   =   . | %%   .   |                           ^       .   =   . | ||||||
| %%   .   |   .   .   .   .   .   .   |   .   .   =   .               ^ | %%   .   |   .   .   .   .   .   .   |   .   .   =   .               ^ | ||||||
| %%   .   |<-- blockwidth ----------------------->=   .               | | %%   .   |<-- blockwidth ----------------------->=   .               | | ||||||
| %%   .   |   .                       |   .   .   =   .               | | %%   .   |   .                       |   .   .   =   .               | | ||||||
| %%   .   |                           |       .   =   .       textheight | %%   .   |                           |       .   =   .       textheight | ||||||
| %%   .   |   .                       |   .   .   =   .               | | %%   .   |   .             Page      |   .   .   =   .               | | ||||||
| %%   .   |                      blockheight  .   =   .               | | %%   .   |                      blockheight  .   =   .               | | ||||||
| %%   .   |   .                       |   .   .   =   .               | | %%   .   |   .                       |   .   .   =   .               | | ||||||
| %%   .   |                           |       <---> bindingoffset     | | %%   .   |                           |       <---> bindingoffset     | | ||||||
| @ -151,7 +151,7 @@ | |||||||
| %%   +---------------+ | %%   +---------------+ | ||||||
| %%   |               | | %%   |               | | ||||||
| %%   |               | | %%   |               | | ||||||
| %%   |               | | %%   |     page      | | ||||||
| %%   |               | | %%   |               | | ||||||
| %%   |               | | %%   |               | | ||||||
| %%   +---------------+ | %%   +---------------+ | ||||||
| @ -173,7 +173,7 @@ | |||||||
| %%   +---------------+---------------+ | %%   +---------------+---------------+ | ||||||
| %%   |               .               | | %%   |               .               | | ||||||
| %%   |               .               | | %%   |               .               | | ||||||
| %%   |               .               | | %%   |           endpaper            | | ||||||
| %%   |               .               | | %%   |               .               | | ||||||
| %%   |               .               | | %%   |               .               | | ||||||
| %%   +---------------+---------------+ | %%   +---------------+---------------+ | ||||||
| @ -1596,19 +1596,19 @@ | |||||||
| %% \begin{minipage}{\textwidth} | %% \begin{minipage}{\textwidth} | ||||||
| %% \begin{verbatim} | %% \begin{verbatim} | ||||||
| %% | %% | ||||||
| %%    [ over          ] | %%     over             | ||||||
| %%   +-----------------+ | %%   +-----------------+ | ||||||
| %%   |[ top           ]| | %%   | top             | | ||||||
| %%   |                 | | %%   |                 | | ||||||
| %%   |                 | | %%   |                 | | ||||||
| %%   |                 | | %%   |                 | | ||||||
| %%   |[ center        ]| | %%   | center          | | ||||||
| %%   |                 | | %%   |                 | | ||||||
| %%   |                 | | %%   |                 | | ||||||
| %%   |                 | | %%   |                 | | ||||||
| %%   |[ bottom        ]| | %%   | bottom          | | ||||||
| %%   +-----------------+ | %%   +-----------------+ | ||||||
| %%    [ under         ] | %%     under            | ||||||
| %% | %% | ||||||
| %% \end{verbatim} | %% \end{verbatim} | ||||||
| %% \end{minipage} | %% \end{minipage} | ||||||
| @ -1701,11 +1701,7 @@ | |||||||
| 	\def\photobook@captioncell@margin{#1}} | 	\def\photobook@captioncell@margin{#1}} | ||||||
| 
 | 
 | ||||||
| \newcommand\captioncell[2][]{% | \newcommand\captioncell[2][]{% | ||||||
| 	\setkeys{captioncell@args}{ | 	\setkeys{captioncell@args}{top, align=flushright, margin=1pt, #1}% | ||||||
| 		top,  |  | ||||||
| 		align=flushright, |  | ||||||
| 		margin=1pt, |  | ||||||
| 		#1}% |  | ||||||
| 	% | 	% | ||||||
| 	\photobook@captioncell@format{% | 	\photobook@captioncell@format{% | ||||||
| 		\adjustbox{margin=\photobook@captioncell@margin}{#2}}} | 		\adjustbox{margin=\photobook@captioncell@margin}{#2}}} | ||||||
| @ -1716,6 +1712,27 @@ | |||||||
| % | % | ||||||
| %% Vertical caption cell | %% Vertical caption cell | ||||||
| %% | %% | ||||||
|  | %% \begin{minipage}{\textwidth} | ||||||
|  | %% \begin{verbatim} | ||||||
|  | %% | ||||||
|  | %%   (topdown)                   (bottomup) | ||||||
|  | %%     +-----------------+         +-----------------+ | ||||||
|  | %%   b | l      c      r | a       |                 | | ||||||
|  | %%   e | e      e      i | f       |                 | | ||||||
|  | %%   f | f      n      g | t       |                 | | ||||||
|  | %%   o | t      t      h | e     e |        r        | | ||||||
|  | %%   r |        e      t | r     r |        e      t | r | ||||||
|  | %%   e |        r        |       o | t      t      h | e | ||||||
|  | %%     |                 |       f | f      n      g | t | ||||||
|  | %%     |                 |       e | e      e      i | f | ||||||
|  | %%     |                 |       b | l      c      r | a | ||||||
|  | %%     +-----------------+         +-----------------+ | ||||||
|  | %% | ||||||
|  | %% \end{verbatim} | ||||||
|  | %% \end{minipage} | ||||||
|  | %% | ||||||
|  | %% See samples for better illustration. | ||||||
|  | %% | ||||||
| \def\photobook@vcaptioncell@position{top} | \def\photobook@vcaptioncell@position{top} | ||||||
| \define@boolkey{vcaptioncell@args}{before}[true]{% | \define@boolkey{vcaptioncell@args}{before}[true]{% | ||||||
| 	\def\photobook@vcaptioncell@position{% | 	\def\photobook@vcaptioncell@position{% | ||||||
| @ -1771,12 +1788,7 @@ | |||||||
| 			margin=\photobook@vcaptioncell@margin]{#1}} | 			margin=\photobook@vcaptioncell@margin]{#1}} | ||||||
| 
 | 
 | ||||||
| \newcommand\vcaptioncell[2][]{% | \newcommand\vcaptioncell[2][]{% | ||||||
| 	\setkeys{vcaptioncell@args}{ | 	\setkeys{vcaptioncell@args}{left, bottomup, align=flushleft, margin=1pt, #1}% | ||||||
| 		left, |  | ||||||
| 		bottomup,  |  | ||||||
| 		align=flushleft, |  | ||||||
| 		margin=1pt, |  | ||||||
| 		#1}% |  | ||||||
| 	% | 	% | ||||||
| 	%% XXX for some reason this errs with: | 	%% XXX for some reason this errs with: | ||||||
| 	%%			"LaTeX Error: \begin{bottomup} on input line 432 ended by \end{bottomup}" | 	%%			"LaTeX Error: \begin{bottomup} on input line 432 ended by \end{bottomup}" | ||||||
| @ -1797,6 +1809,10 @@ | |||||||
| 	\fi} | 	\fi} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | % XXX need to do a caption block -- a cell to one side of an image to the  | ||||||
|  | % 		end of the page... | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
| %%%%% Paper cells | %%%%% Paper cells | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user