0

The template of my dissertation approval page uses \hspace to put a space between each juror's name and its dotted line. How can I right align the dotted lines in output (without using \hspace)? Adjusting the whitespaces manually to align the dotted lines looks a little bit challenging.

The following is my MWE:

\documentclass[a4paper,12pt]{report}
\usepackage{fbe}

\begin{document}

%% your title will be written here be careful for the capital letters
\title{ABC}

%% write your name here

%% only first letter of name and surname is capital
%% other letters are lower case

\author{X Y}

%% write your department here
\department{Computer Engineering}

% write your 
\supervisor{Prof. A B\hspace{46mm}........................................}

\cosuperii{Prof. C D\hspace{34mm}........................................}

\examineri{Assoc. Prof. E F\hspace{46mm}........................................}

\examinerii{Assist. Prof. G H\hspace{34mm}........................................}

\dateofapproval{..../..../2019}
%\dateofapproval{Day.Month.Year}

%% use for Ph.D theses  otherwise comment it
\makephdtitle      % For Ph.D. theses

%% uncomment if it is a graduate thesis
% \makemsctitle % For Proposals

\pagenumbering{roman}

\makeapprovalpage

\pagenumbering{arabic}

\end{document}

I couldn't add fbe package that I used in my template.

  • 2
    While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that sets up the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. Also, the solution may be dependent on the packages that you are using. – Peter Grill Sep 10 at 16:18
  • 1
    Thank you for posting a working example! At the same time, much of your code does not seem to be relevant to the question you're asking here. Please limit the example to only the code required for your issue to appear. You can have a look at this guide for how to prune your code for this purpose. – Reinstate Monica - M. Schröder Sep 10 at 18:24
  • 1
    @MartinSchröder I updated my MWE. Could you please check? – yildizabdullah Sep 10 at 18:41
  • 1
    @yildizabdullah: Indeed, it should be \dotfill. It didn't work? In what way? Did you play around with different (larger) values of 15em, for example? Can you elaborate? – Werner Sep 10 at 19:12
  • 1
    You can post fbe.sty to Pastebin and post a link here... Without it, this problem doesn't seem solvable if even the easiest of suggestions don't work. – Werner Sep 10 at 19:18
3

Without an indication of what fbe.sty looks like, the simplest suggestion would be to place each of the components in a fixed-width box. This allows you to have control over their width as well as spacing:

\supervisor{\makebox[20em][l]{Prof.\ A B \hfill          \makebox[7em]{\dotfill}}}

\cosuperii {\makebox[20em][l]{Prof.\ C D \hfill          \makebox[7em]{\dotfill}}}

\examineri {\makebox[20em][l]{Assoc.\ Prof.\ E F \hfill  \makebox[7em]{\dotfill}}}

\examinerii{\makebox[20em][l]{Assist.\ Prof.\ G H \hfill \makebox[7em]{\dotfill}}}

In the above example, you need to fiddle with the lengths 20em (increasing if your names/titles are longer) and 7em (to change the length of the signature line).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.