
我正在使用\documentclass{article}
,如何創建一個帶有沒有邊距的背景圖像的頁面,以便背景圖像跨越整個頁面?
我正在使用這個:
\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{img0016.png}%
\vfill
}}}
然後對於頁面來說:
\newpage
%\newgeometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2cm}
\AddToShipoutPicture*{\BackgroundPic}
\section*{Something, some text}
%\restoregeometry
結果是這樣的:
上上下邊距都是0,所以沒關係,我要怎麼去掉這一頁的白線呢?
非常感謝
答案1
\includegraphics[width=\paperwidth,keepaspectratio,clip]{img0016.png}
解決了我的問題。