mirror of
				https://github.com/flynx/photobook.git
				synced 2025-10-31 19:30:08 +00:00 
			
		
		
		
	fixed caption cell alignment issues...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									ac785f146c
								
							
						
					
					
						commit
						353500d64d
					
				| @ -1388,9 +1388,7 @@ | ||||
| 			% XXX the \ifx here does not work... | ||||
| 			\ifx #2 \empty \else% | ||||
| 				\begingroup% | ||||
| 					% XXX broken for fill... | ||||
| 					% XXX test for portrait images... | ||||
| 					\vspace{-1em}% | ||||
| 					\hspace{-\mindim{% | ||||
| 								\wd\photobook@imagebox | ||||
| 							}{% | ||||
| @ -1405,12 +1403,17 @@ | ||||
| 						\setlength\cellheight{% | ||||
| 							\mindim{\ht\photobook@imagebox}{\cellheight}}%  | ||||
| 						\setlength\fboxsep{0pt}% | ||||
| 						\fbox{% | ||||
| 						% | ||||
| 						% adjust top if image is taller than cell... | ||||
| 						\raisebox{-\mindim{% | ||||
| 									0pt | ||||
| 								}{% | ||||
| 									0.5\dimexpr  | ||||
| 										\cellheight  | ||||
| 										-\ht\photobook@imagebox \relax}}{% | ||||
| 							\begin{minipage}[b][\cellheight][\photobook@imagecell@captionalign]{\cellwidth}% | ||||
| 							%\fbox{clearance: \the\photobook@imagecell@clearance \space offset top: \the\photobook@imagecell@top}\newline\newline% | ||||
| 								#2% | ||||
| 						\end{minipage}}% | ||||
| 						}%\fbox | ||||
| 							\end{minipage}}} | ||||
| 				\endgroup\fi}% | ||||
| 	\endgroup} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user