Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using this template in overleaf #13

Closed
arilwan opened this issue Dec 23, 2022 · 1 comment
Closed

Using this template in overleaf #13

arilwan opened this issue Dec 23, 2022 · 1 comment

Comments

@arilwan
Copy link

arilwan commented Dec 23, 2022

I read in the Front/main.tex that the file "Must be compiled with XeLaTex". Considering the fact that overleaf uses pdfLaTeX compiler, changing it to XeLaTeX generates errors and warning.

Can you please explain how this could be used in overleaf? For example, some pages in the first few (preamble) are not required for my programme (MAPi).

@ruilvo
Copy link
Owner

ruilvo commented Dec 24, 2022

Hello,

You can change the compiler in overleaf. Now you have two options:

How to not use the front pages

If you don't want the cover pages as they don't apply to you, you can just comment out L37 to L44 on main.tex.

Something like:

%-------------------------------------------------------------------------
%	DOCUMENT
%-------------------------------------------------------------------------

\begin{document}

% Start counting pages in an unused scheme to fix backref
% \pagenumbering{Alph}

% Includes the front pages (cover and etc.)
% \pagestyle{empty}
% \includepdf[pages={1},pagecommand={},scale=1]{Front/main}
% \cleardoublepage
% \includepdf[pages={2},pagecommand={},scale=1]{Front/main}
\cleardoublepage
\pagestyle{fancy}

Not sure about commenting out the last \cleardoublepage and the \pagestyle{fancy}. Try it like this, if there's something weird, try commenting out the last \cleardoublepage and/or the \pagestyle{fancy}

You can then just delete the /Front directory as you won't ever need it.

How to use the front pages

Now, if you want to use the nice front cover and front matter pages, you need to compile them separately.

What I usually recommend for people that want to use Overleaf and want to use the cover pages as per FCUP's standard is:

  1. Create a new overleaf project and just dump the contents of /Front in there.
  2. Follow the usual instructions: edit vars.tex, change compiler to XeLaTeX (which Overleaf can do), build.
  3. Empty the /Front directory on your "main" thesis project.
  4. Upload the previously built main.pdf from the front-only project into there.

Then you can build your thesis as "normal" with pdfLaTeX. If you need to change anything in the cover, you need to go back to your "cover-only" project, change it there, build, download the main.pdf and reupload it to /Front in the main project.

@ruilvo ruilvo closed this as completed Dec 24, 2022
@ruilvo ruilvo pinned this issue Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants