答案1
以下是您设置的基本模板:
\documentclass{article}
\usepackage{newtxtext}
\usepackage{graphicx,eso-pic}
\usepackage[margin=1in]{geometry}
\usepackage{fancyhdr}
\fancyhf{}% Clear header/footer
\renewcommand{\headrulewidth}{0pt}% Remove header rule
\fancyfoot[R]{\thepage}
\begin{document}
\thispagestyle{fancy}
% Add page border
\AddToShipoutPictureFG*{%
% Left rule
\AtPageLowerLeft{\hspace{2em}\rule[2em]{1.5pt}{\dimexpr\paperheight-4em}}%
% Right rule
\AtPageLowerLeft{\hspace{\dimexpr\paperwidth-2em-1.5pt}\rule[2em]{1.5pt}{\dimexpr\paperheight-4em}}%
% Bottom rule
\AtPageLowerLeft{\hspace{2em}\rule[2em]{\dimexpr\paperwidth-4em}{1.5pt}}%
% Top rule
\AtPageLowerLeft{\hspace{2em}\rule[\dimexpr\paperheight-2em]{\dimexpr\paperwidth-4em}{1.5pt}}%
}
\begin{center}
\large
Univerzitet u Ni\v{s}u
\bigskip
Filozofski fakultet
\bigskip
Departman za psihologiju
\vfill
\includegraphics[height=7\baselineskip]{example-image}
\vspace{3\bigskipamount}
\textbf{\Huge Anamneza}
\bigskip
{\Large Psihopatologija posebni deo\par}
\vfill
Mentor: Nikola \'{C}irovi\'{c}\hfill
Student: Danica Lezi\'{c}, 2256
\vfill
Avgust, 2021, godine
\end{center}
\end{document}
答案2
Tikz 解决方案:
边框是一张单独的图片,位于页脚,因此会出现在每一页上。
平均能量损失
\documentclass{article}
\usepackage{graphicx}
\usepackage[margin=1in]{geometry}
\usepackage{fontspec}
\setmainfont{Noto Serif}
\usepackage{tikz}
\usetikzlibrary {positioning}
\newcommand{\gborder}{\tikz[remember picture,overlay]
\draw [black, line width=0.8mm]
([xshift=2em,yshift=2em]current page.south west)
rectangle
([xshift=-2em,yshift=-2em]current page.north east)
;}
\usepackage{fancyhdr}
\fancyhf{}% Clear header/footer
\renewcommand{\headrulewidth}{0pt}% Remove header rule
\fancyfoot[R]{\gborder\thepage}
\begin{document}
\pagestyle{fancy}
\begin{tikzpicture}[remember picture,overlay]
\node (uniname) at ([yshift={\dimexpr0.5\paperheight-8em}]current page.center) { \large Univerzitet u Nišu};
\node [below=of uniname,yshift=2em] (facname) {\large Filozofski fakultet};
\node [below=of facname,yshift=2em] (deptname) {\large Departman za psihologiju};
\node (cenpage) at (current page.center) {};
\node [above=of cenpage] (image) at (current page.center) {\includegraphics[height=7\baselineskip]{example-image}};
\node [below=of cenpage] (title) {\textbf{\Huge Anamneza}};
\node [below=of title] (subtitle) {\Large Psihopatologija posebni deo};
\node [below=of subtitle,xshift={\dimexpr-0.5\paperwidth+12em},yshift=-5em] (mentor) {\large Mentor: Nikola Ćirović};
\node [below=of subtitle,xshift={\dimexpr0.5\paperwidth-12em},yshift=-5em] (mentor) {\large Student: Danica Lezić, 2256};
\node (dateline) at ([yshift={\dimexpr-0.5\paperheight+8em}]current page.center) {Avgust, 2021, godine};
\end{tikzpicture}
\newpage
x
\newpage
x
\end{document}