
eso-pic
페이지 오른쪽 상단에 오른쪽 정렬로 인쇄하는 방법은 무엇입니까 ?
설명서는 여기에서 찾을 수 있습니다: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/eso-pic/eso-pic.pdf
답변1
다음은 원하는 내용을 배치합니다. 내용을 조금 이동하려면 0pt
원하는 대로 변경하면 됩니다.
\documentclass[]{article}
\usepackage{eso-pic}
\AddToShipoutPictureBG
{%
\put(\LenToUnit{\paperwidth-0pt},\LenToUnit{\paperheight-0pt})
{%
\llap % make it overlap to the left from this point
{%
\raisebox{-\height} % move it down a bit to make it top-aligned
{\parbox{5cm}{\blindduck}}% contents
}%
}%
}
\usepackage{duckuments} % dummy text
\begin{document}
\mbox{}% produces one empty page
\end{document}
답변2
변형 코드:
\documentclass{article}
\usepackage{graphicx}
\usepackage{eso-pic}
\usepackage{lipsum}
\begin{document}
\AddToShipoutPictureBG{\AtPageUpperLeft{\hspace*{\paperwidth\llap{\raisebox{-\height}{\includegraphics{pepe-le-pew2}}}}}}
\lipsum[1]
\begin{figure}[!h]
\centering
\includegraphics{pepe-le-pew2}
\caption{Pepe le Pew in action}
\end{figure}
\end{document}