我有一张 8.5 x 11 英寸的横向页面。我需要用四张并排的图片覆盖该页面,每张图片 4.25 x 5.5 英寸,不留边距和重叠。附上图片。
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage[paperwidth=8.5in,paperheight=11in,landscape, margin=0mm,
left=0cm, right=0cm, top=0cm]{geometry}
\usepackage{graphicx}
\begin{document}
\centering
\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}
\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}
\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}
\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}
\end{document}
答案1
由于您已在加载tikz
。
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage[paperwidth=8.5in,paperheight=11in,landscape, margin=0mm,
left=0cm, right=0cm, top=0cm]{geometry}
\usepackage{graphicx}
\begin{document}
\begin{tikzpicture}[overlay,remember picture]
\foreach \anchor in {north west,south west,north east, south east}
{\node[inner sep=0pt,outer sep=0pt,anchor=\anchor]
at (current page.center)
{\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}}; }
\end{tikzpicture}
\end{document}
但你可以不用:
\documentclass[12pt]{article}
\usepackage[paperwidth=8.5in,paperheight=11in,landscape, margin=0mm,
left=0cm, right=0cm, top=0cm]{geometry}
\usepackage{graphicx}
\begin{document}\renewcommand{\arraystretch}{0}
\noindent\begin{tabular}{@{}c@{}c@{}}
\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}
&\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}\\
\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}
&\includegraphics[page=1,width=5.5in,height=4.25in,keepaspectratio]{koala}
\end{tabular}
\end{document}
答案2
无钛钾Z,带点负面\vspace
。
keepaspectratio
请注意两个都 width=...
并且height=...
毫无意义。
(在实际文档中将 example-image-a 更改为 koala。)
\documentclass[12pt]{article}
\usepackage[paperwidth=8.5in,paperheight=11in,landscape, margin=0mm,
left=0cm, right=0cm, top=0cm]{geometry}
\usepackage{graphicx}
\begin{document}
\centering
\includegraphics[page=1,width=5.5in,height=4.25in]{example-image-a}%
\includegraphics[page=1,width=5.5in,height=4.25in]{example-image-a}
\vspace{-.1\baselineskip}\includegraphics[page=1,width=5.5in,height=4.25in]{example-image-a}%
\includegraphics[page=1,width=5.5in,height=4.25in]{example-image-a}
\end{document}