答案1
你可以簡單地適應我的程式碼從如何在頁面左下角插入圖像。您只需將\includegaphics
這些範例中的程式碼替換為相應的picture
環境程式碼或蒂克茲代碼。例如:
\documentclass{article}
\usepackage{lipsum}
\usepackage{adjustbox}
\usepackage{xcolor}% color would also be sufficient
\usepackage{calc}% For not needing \dimexpr in my \put and \line commands.
\usepackage{scrlayer-scrpage}
\pagestyle{plain}
\DeclareNewLayer[%
background,%
mode=picture,%
page,
contents={%
\color{red}\thicklines
\put(0,\paperheight-5cm){\line(2,3){5cm*2/3}}%
\put(\paperwidth,\paperheight-5cm){\line(-2,3){5cm*2/3}}%
\put(0,5cm){\line(2,-3){5cm*2/3}}%
\put(\paperwidth,5cm){\line(-2,-3){5cm*2/3}}%
}%
]
{cornerimages}
\AddLayersToPageStyle{plain.scrheadings}{cornerimages}
\begin{document}
\lipsum
\end{document}
會導致: