我想在标题页底部添加我的大学徽标和公司徽标(如图所示)。对于其余页面,我想保留我的文章格式。你会怎么做?我当前的代码如下:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[super]{natbib}
\usepackage{comment}
\usepackage{graphicx}
\usepackage{float}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{adjustbox}
\usepackage{lipsum}
\captionsetup[figure]{font=small,labelfont=bf}
\captionsetup[table]{font=small,labelfont=bf}
\usepackage[justification=centering]{caption}
\usepackage{eurosym}
\usepackage[table, dvipsnames]{xcolor}
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist
\begin{document}
\begin{titlepage}
\begin{center}
\textbf{\Large\\
Strategic order allocation at } \newline\textit{\Large\\Development of a }
\vspace{2cm}
\begin{Large}
MSc. Thesis\\
Maximo , 4950933\\
\today \\
\vspace{2 cm}\\
\textbf{Delft University of Technology}\\
Faculty of Technology, Policy and Management \\
Complex Systems Engineering \& Management \\
Section Transport \& Logistics
\vspace{1 cm}\\
\textbf{MSc. Committee}\\
Prof.dr.ir. \\
Dr. M.Y. \\
Dr.ir. B. \\
Ir. A.
\end{Large}
\end{center}
\vspace{1cm}
\end{titlepage}
答案1
这里有一个简单的解决方案,使用\vfill
将徽标发送到标题页的底部,然后\hspace{\fill}
在两个徽标之间使用。然后大学徽标将被“推”到左边距,喜力徽标将被“推”到右边距。
如果你更喜欢下面的徽标,只需添加命令
\enlargethispage{<n>\baselineskip}
在页面开头。将其替换<n>
为您喜欢的行数。
\documentclass[draft]{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage[table, dvipsnames]{xcolor}
\begin{document}
\enlargethispage{5\baselineskip} %% <- moves the logos five lines down
\begin{titlepage}
\begin{center}
\textbf{\Large\\
Strategic order allocation at } \newline\textit{\Large\\Development of a }
\vspace{2cm}
\begin{Large}
MSc. Thesis\\
Maximo , 4950933\\
\today \\
\vspace{2 cm}
\textbf{Delft University of Technology}\\
Faculty of Technology, Policy and Management \\
Complex Systems Engineering \& Management \\
Section Transport \& Logistics
\vspace{1 cm}\\
\textbf{MSc. Committee}\\
Prof.dr.ir. \\
Dr. M.Y. \\
Dr.ir. B. \\
Ir. A.
\end{Large}
\end{center}
% \vspace{1cm}
\vfill
\noindent
\includegraphics{TU-logo.png}\hspace{\fill}\includegraphics{Heineken-logo.png}
\end{titlepage}
\end{document}
答案2
您可以使用命令\includegraphics[options]{image}
将两个图像都添加到标题页中。
你的序言中有一些错误,我已更正(见标记<=======
)...
我使用example-image-a
并...-b
作为您的图像的占位符。
请注意,我使用包showframe
来可视化最终的打字区域和边距...删除该包以获取最终版本!
请参阅以下 MWE
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[super]{natbib}
\usepackage{comment}
\usepackage{graphicx}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amssymb}
%\usepackage{caption} % <===============================================
\usepackage[justification=centering]{caption}
\captionsetup[figure]{font=small,labelfont=bf}
\captionsetup[table]{font=small,labelfont=bf}
\usepackage{adjustbox}
\usepackage{lipsum}
\usepackage{eurosym}
\usepackage[table, dvipsnames]{xcolor}
\usepackage{hyperref}% <================================================
\usepackage{showframe} % <========= to visualize typing area and margins
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist
\begin{document}
\begin{titlepage}
\begin{center}
\textbf{\Large\\
Strategic order allocation at } \newline\textit{\Large\\Development of a }
\vspace{2cm}
\begin{Large}
MSc. Thesis\\
Maximo, 4950933\\
\today \\
\vspace{2 cm} % <================================ deleted \\
\textbf{Delft University of Technology}\\
Faculty of Technology, Policy and Management \\
Complex Systems Engineering \& Management \\
Section Transport \& Logistics
\vspace{1 cm} % y============================ deleted \\
\textbf{MSc. Committee}\\
Prof.dr.ir. \\
Dr. M.Y. \\
Dr.ir. B. \\
Ir. A.
\end{Large}
\end{center}
%\vspace{1cm} % <===============================================
\vfill % <======================================================
\includegraphics[width=3cm]{example-image-a} \hfill \includegraphics[width=3cm]{example-image-b} % <=====
\end{titlepage}
\end{document}
及其生成的pdf:
答案3
我在论文中使用 tikz 解决了这个问题。我添加了 tikz 包,然后使用演示图像在标题页末尾添加了一个覆盖层。由于它使用当前页面锚点,因此文档的其余部分应该不受影响。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[super]{natbib}
\usepackage{comment}
\usepackage{graphicx}
\usepackage{float}
\usepackage{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{adjustbox}
\usepackage{lipsum}
\captionsetup[figure]{font=small,labelfont=bf}
\captionsetup[table]{font=small,labelfont=bf}
\usepackage[justification=centering]{caption}
\usepackage{eurosym}
\usepackage[table, dvipsnames]{xcolor}
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]}
\let\endchangemargin=\endlist
\usepackage{tikz}
\begin{document}
\begin{titlepage}
\begin{center}
\textbf{\Large\\
Strategic order allocation at } \newline\textit{\Large\\Development of a }
\vspace{2cm}
\begin{Large}
MSc. Thesis\\
Maximo , 4950933\\
\today \\
\vspace{2cm}
\textbf{Delft University of Technology}\\
Faculty of Technology, Policy and Management \\
Complex Systems Engineering \& Management \\
Section Transport \& Logistics
\vspace{1cm}
\textbf{MSc. Committee}\\
Prof.dr.ir. \\
Dr. M.Y. \\
Dr.ir. B. \\
Ir. A.
\end{Large}
\end{center}
\vspace{1cm}
\begin{tikzpicture}[remember picture,overlay]
\node[xshift=-1.35cm,yshift=1.35cm,anchor=south east] at (current page.south east) {\includegraphics[height=1.6275cm]{example-image-b}};
\end{tikzpicture}
\end{titlepage}
\end{document}
另外,请注意,我是如何删除 \vspace{x cm} 命令后的 \ 的,因为这会导致“此处没有行可以结束”类型的错误。