将虚线改为直线

将虚线改为直线

我有一个标题页模板,我想更改它并使其工作。它可以工作,但在标题页中,我想将以下三个位置的虚线更改为直线。

有什么想法吗?我在网上找到了这种风格,它已经存在了。我无法将其更改为直线。

还提供了代码:

 %\hbox to \hsize{\hfill\hbox to 3in{\leaders\hbox to 1em{.\hss}\hfill}}
 %\smallskip 
 %\hbox to \hsize{\hfill\hbox to 3in{{\@supervisor} (Supervisor)\hfill}}
 %\bigskip
 %\hbox to \hsize{\hfill\hbox to 3in{\leaders\hbox to 1em{.\hss}\hfill}}
 %\smallskip 
 %%%\hbox to \hsize{\hfill\hbox to 3in{{\@external} (External)\hfill}}
 %\hbox to \hsize{\hfill\hbox to 3in{{\@external}\hfill}}
 %\bigskip
 \@for\@examer:=\@examiners\do{
 \hbox to \hsize{\hfill\hbox to 3in{\leaders\hbox to 1em{.\hss}\hfill}}
 \smallskip 
 \hbox to \hsize{\hfill\hbox to 3in{{\@examer}\hfill}}
 %% \hbox to \hsize{\hfill\hbox to 3in{{\@examer} (Examiner)\hfill}}
 \bigskip
 }
 %\bigskip
 %\hbox to \hsize{\hfill\hbox to 3in{{\@chair} (Chair)\hfill}}
 \vfill

 \noindent
 {\bf Date}: \hbox to 1.5in{\leaders\hbox to 1em{\hss.\hss}\hfill}

更新:

我已经弄清楚了这些线条,但是现在我有没有办法在 Chilled Prof1 下放置一个单词:(SUPERVISOR)?

[![在此处输入图片描述][4]][4]

这是我的代码:

\@for\@examer:=\@examiners\do{
    \hbox to \hsize{\hfill \hbox to 18pc{\hrulefill}}
    \smallskip 
    \hbox to \hsize{\hfill\hbox to 3in{{\@examer}\hfill}}
%%  \hbox to \hsize{\hfill\hbox to 3in{{\@examer} (Examiner)\hfill}}
    \bigskip
}
%\bigskip
%\hbox to \hsize{\hfill\hbox to 3in{{\@chair} (Chair)\hrulefill}}
\vfill

\noindent
{\bf Date}: \hbox to 15pc{\hrulefill}

上面的代码给了我这个:

[enter image description here

现在我如何在第一个 Chilled Prof1 下添加一行带有单词 Supervisor 的行?:)

答案1

例如使用dashrule 包

\usepackage{lmodern}
\usepackage[frenchb]{babel}
\usepackage{dashrule}

\pagestyle{empty}
\begin{document}

\parindent=0pt
\parskip=3mm


{\bf Date }: \hdashrule{2cm}{1pt}{1pt}

{\bf Date }: \hdashrule{\fill}{4pt}{5pt}

{\bf Date }: \hdashrule{\fill}{1pt}{1pt}

{\bf Date }: \hrulefill % <---- Don't need dashrule package 

\end{document}

enter image description here

相关内容