我不知道如何将图像居中。目的是将图像居中,并使它们足够大以延伸到裁剪线上。
可选:是否可以控制图像的接近程度(换句话说,一幅图像的底部边框和另一幅图像的顶部边框之间的间隙有多大)。
\documentclass[12pt]{extbook}
% ############################## geometry
\usepackage%[showframe]
{geometry}
\geometry
{ hmarginratio = 1:1
, vmarginratio = 1:1
, bindingoffset = 0cm
, onecolumn
, a4paper
, layoutwidth = 50 mm
, layoutheight = 180 mm
, layouthoffset=\dimexpr(\paperwidth-\csname Gm@layoutwidth\endcsname)/2\relax
, layoutvoffset=\dimexpr(\paperheight-\csname Gm@layoutheight\endcsname)/2\relax
, showcrop
}
\usepackage{fancyhdr}
\usepackage{mwe}
\usepackage{graphicx}
% ############################### Document
\begin{document}
\pagenumbering{gobble}
\begin{figure}
\centering
\begin{minipage}[c]{\textwidth}
\centering
\noindent\includegraphics[width=5cm]{example-image}
\end{minipage}
\begin{minipage}[c]{\textwidth}
\centering
\noindent\includegraphics[width=5cm]{example-image}
\end{minipage}
\begin{minipage}[c]{\textwidth}
\centering
\noindent\includegraphics[width=5cm]{example-image}
\end{minipage}
\begin{minipage}[c]{\textwidth}
\centering
\noindent\includegraphics[width=5cm]{example-image}
\end{minipage}
\begin{minipage}[c]{\textwidth}
\centering
\noindent\includegraphics[width=5cm]{example-image}
\end{minipage}
\end{figure}
\end{document}
答案1
问题的表述不是很清楚,但是也许这就是你想要的。
\documentclass[12pt]{extbook}
% ############################## geometry
\usepackage{geometry}
\geometry{
hmarginratio = 1:1,
vmarginratio = 1:1,
bindingoffset = 0cm,
onecolumn,
a4paper,
layoutwidth = 50 mm,
layoutheight = 180 mm,
layouthoffset=\dimexpr(\paperwidth-\csname Gm@layoutwidth\endcsname)/2\relax,
layoutvoffset=\dimexpr(\paperheight-\csname Gm@layoutheight\endcsname)/2\relax,
showcrop
}
\usepackage{graphicx}
% ############################### Document
\begin{document}
\thispagestyle{empty}
{\parindent=0pt
\newcommand{\shiftleft}{\hspace*{-0.5\dimexpr\csname Gm@layoutwidth\endcsname-\textwidth\relax}}
\shiftleft\includegraphics[width=5cm]{example-image}\shiftleft\vfill
\shiftleft\includegraphics[width=5cm]{example-image}\shiftleft\vfill
\shiftleft\includegraphics[width=5cm]{example-image}\shiftleft
}
\end{document}