根据问题使用 TikZ 绘制首页,我擅自为学校的报告创建了自己的自定义 LaTeX 标题模板。到目前为止,我创建了这个。
\documentclass[paper=a4,
11pt,
DIV=14,
parskip=half]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{color}
%MEDTADATA ,
\def\myauthor{Author} % Author
\def\mycoauthor{} % co-author
\def\mytitle{Title} % titel van het document
\def\mydate{27 Januari 2010} % datum indien gewenst
\def\typedoc{Lab report} %type of document: lab report, article
\def\mycourse{Course Name} % gives the name of the coure
\begin{document}
\begin{titlepage}.
%Use the tikzpicture for the document banner
\begin{tikzpicture}[remember picture,overlay]
\coordinate [below=2.5cm] (midpoint) at (current page.north);
\node [name=colourbar,
anchor=base,
fill=blue!40,
text = white,
minimum width=\paperwidth,
minimum height=1cm] at (midpoint){\Large{\textsf{Departement Industriële Wetenschappen}}};
% Define the point where the logo will go
\coordinate [right=4cm] (logo) at (colourbar.west);
% Set coordinate system origin
\begin{scope}[shift=(logo)]
% Draw the outline
\filldraw [white,draw=blue!40] (2.3,0.85) -- (-2,0.85) -- (-2.8,-0.85) -- (2.3,-0.85) --cycle;
% Include the logo
\node {\includegraphics[width=4cm]{Logo_Lessius_Mechelen_colour.jpg}};
\end{scope}
\end{tikzpicture}
\vspace{3cm}
\begin{center}
\Huge
\textsf{\mytitle}
\end{center}
\begin{flushright}
\vspace{2cm}
%\LARGE
\Large
\textsf{\typedoc\\
\emph{\textcolor{gray}{door}} \\
\myauthor\\
\mycoauthor}
\vspace{1cm}
\textsf{\mycourse}
\vspace{1cm}
\textsf{\mydate}\\ %%Date - better you write it yourself.
\vspace{1cm}
\textsf{Docent:\\ % meervoud maken door middel van
Prof. Dr..... \\
}
\vspace{1cm}
\textsf{Lessius Mechelen}
\textsf{Schakelprogramma Industrële Wetenschappen}
\end{flushright}
%Fill up the rest off the document
\vfill
%Add horizontal line
\hrule
\end{titlepage}
\end{document}
我对结果非常满意。不过有一件小事让我很困扰。
在 TikZ 图片中,我想在徽标和旁边的文字(Departement Industriële Wetenschappen)之间添加更多空间(1 厘米)。
有人有解决办法吗?
答案1
\node [name=colourbar,
anchor=base,
fill=blue!40,
minimum width=\paperwidth,
minimum height=1cm] at (midpoint){};
\node [
fill=blue!40,
text = white,
xshift=1cm] at (midpoint){\Large{\textsf{Departement Industriële Wetenschappen}}};
不能xshift=1cm
直接使用,因为矩形也被移动了。
答案2
您可以\hspace{1cm}
先添加\Large
- 虽然不是那么漂亮,但是可以起作用。