我正在尝试复制在 Word 中制作的这个标题页,到目前为止一切顺利,问题是放置垂直线会将所有文本移动到下一页。我尝试用 parbox 和 minipage 包围线条和文本,但没有成功。有什么建议可以解决这个问题吗?
\documentclass[12pt]{report}
\usepackage{fontspec}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{csquotes}
\usepackage[pagestyles]{titlesec}
\usepackage{titletoc}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{ragged2e}
\usepackage{float}
\usepackage[linktocpage=true]{hyperref}
\usepackage{biblatex}
\usepackage[paperheight=27.94cm,paperwidth=21.59cm,left=3.0cm,right=3.0cm,top=2.5cm,bottom=2.5cm]{geometry}
\graphicspath{ {imagenes/} }
\begin{document}
\begin{titlepage}
\vspace*{-2cm}
\begin{figure}[H]
\includegraphics[width=13.25cm,height=1.77cm]{portada/secretaria}
\end{figure}
% \rule{\textwidth}{3pt}
% \rule{\textwidth}{6pt}
% \rule{\textwidth}{3pt}
\hrule height 3pt depth 0pt width \textwidth
\vspace{2pt}
\hrule height 6pt depth 0pt width \textwidth
\vspace{2pt}
\hrule height 3pt depth 0pt width \textwidth
\hspace{12pt}
\vrule height 0.7\textheight depth 0pt width 3pt
\hspace{-1pt}
\vrule height 0.7\textheight depth 0pt width 6pt
\hspace{-1pt}
\vrule height 0.7\textheight depth 0pt width 3pt
\begin{center}
\textbf{DIVISIÓN DE ESTUDIOS asdf POSGRADO}
\end{center}
\vspace{0.2\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont OPCIÓN 1.- TESIS \\
\fontsize{12}{12}\selectfont \textbf{TRABAJO PROFESIONAL}
\end{center}
\vspace{0.5\baselineskip}
\begin{center}
\textbf{``NOMBRE DE LA TESIS''}
\end{center}
\vspace{0.5\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{QUE PARA OBTENER EL GRADO DE:} \\
\fontsize{12}{12}\selectfont \textbf{DOCTOR EN CIENCIAS} \\
\fontsize{12}{12}\selectfont \textbf{DE LA INGENIERÍA}
\end{center}
\vspace{0.5\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{PRESENTA:} \\
\fontsize{12}{12}\selectfont NOMBRE DEL ALUMNO
\end{center}
\vspace{1\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{DIRECTOR DE TESIS:} \\
\fontsize{12}{12}\selectfont NOMBRE DEL DIRECTOR DE TESIS
\end{center}
\vspace{1\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{CODIRECTOR DE TESIS:} \\
\fontsize{12}{12}\selectfont NOMBRE DEL CODIRECTOR DE TESIS
\end{center}
\begin{figure}[H]
\includegraphics[width=2.9cm,height=3.07cm]{portada/ito_logo}
\end{figure}
\vspace{1\baselineskip}
\begin{flushleft}
\fontsize{11}{12}\selectfont \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ORIZABA, VERACRUZ, MÉXICO \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MES AÑO
\end{flushleft}
\end{titlepage}
\end{document}
[
答案1
在文本前面插入一个,\vspace{-15cm}
会产生类似于 Word 文档模板的内容。类似以下内容(您可能需要调整我使用的值):
% header above %
\begin{titlepage}
\vspace*{-2cm}
\begin{figure}[H]
\includegraphics[width=13.25cm,height=1.77cm]{portada/secretaria}
\end{figure}
% \rule{\textwidth}{3pt}
% \rule{\textwidth}{6pt}
% \rule{\textwidth}{3pt}
\hrule height 3pt depth 0pt width \textwidth
\vspace{2pt}
\hrule height 6pt depth 0pt width \textwidth
\vspace{2pt}
\hrule height 3pt depth 0pt width \textwidth
\hspace{12pt}
\vrule height 0.7\textheight depth 0pt width 3pt
\hspace{-1pt}
\vrule height 0.7\textheight depth 0pt width 6pt
\hspace{-1pt}
\vrule height 0.7\textheight depth 0pt width 3pt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Change made here. Possibly adjust vspace value %%
\vspace*{-15cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
\textbf{DIVISIÓN DE ESTUDIOS asdf POSGRADO}
\end{center}
% rest of document %
答案2
您可以使用tcolorbox
包。使用包之前添加新设置\begin{document}
\usepackage[most]{tcolorbox}
\newtcolorbox{siderules}[1][]{blanker, breakable,
left=3mm, right=3mm, top=1mm, bottom=1mm,
borderline west={3pt}{0pt}{black},
borderline west={6pt}{5pt}{black},
borderline west={3pt}{13pt}{black},
before upper=\indent, parbox=false, #1}
然后将整个文本插入\begin{siderules} ... \end{siderules}
标签中。
为了澄清起见,我添加了您的代码:
\begin{siderules}
\begin{center}
\textbf{DIVISIÓN DE ESTUDIOS POSGRADO}
\end{center}
\vspace{0.2\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont OPCIÓN 1.- TESIS \\
\fontsize{12}{12}\selectfont \textbf{TRABAJO PROFESIONAL}
\end{center}
\vspace{0.5\baselineskip}
\begin{center}
\textbf{``NOMBRE DE LA TESIS''}
\end{center}
\vspace{0.5\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{QUE PARA OBTENER EL GRADO DE:} \\
\fontsize{12}{12}\selectfont \textbf{DOCTOR EN CIENCIAS} \\
\fontsize{12}{12}\selectfont \textbf{DE LA INGENIERÍA}
\end{center}
\vspace{0.5\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{PRESENTA:} \\
\fontsize{12}{12}\selectfont NOMBRE DEL ALUMNO
\end{center}
\vspace{1\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{DIRECTOR DE TESIS:} \\
\fontsize{12}{12}\selectfont NOMBRE DEL DIRECTOR DE TESIS
\end{center}
\vspace{1\baselineskip}
\begin{center}
\fontsize{11}{12}\selectfont \textbf{CODIRECTOR DE TESIS:} \\
\fontsize{12}{12}\selectfont NOMBRE DEL CODIRECTOR DE TESIS
\end{center}
\begin{figure}[H]
\includegraphics[width=2.9cm,height=3.07cm]{portada/ito_logo}
\end{figure}
\vspace{1\baselineskip}
\begin{flushleft}
\fontsize{11}{12}\selectfont \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ORIZABA, VERACRUZ, MÉXICO \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ MES AÑO
\end{flushleft}
\end{siderules}