ucl / ucl-latex-thesis-templates Goto Github PK
View Code? Open in Web Editor NEWUCL LaTeX thesis templates.
License: Other
UCL LaTeX thesis templates.
License: Other
mathptmx
introduces a really terrible font for mathcal
. Consider adding \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
to reset it to the standard alphabet.
baselinestretch stretch double spaces footnotes and tables, which is not necessary and looks bad. Using the setspace package and setting onehalfspacing only spaces the text body.
Hi,
Thanks for providing this great template.
I have noticed that the following results in uneven margins:
\documentclass[11pt,phd,a4paper,oneside]{ucl_thesis}
After some digigng, I think this is because the margin sizes in the cls just dont add up:
\setlength \voffset{-25.4mm}
\setlength \textwidth{140mm}
\setlength \textheight{232mm} % I think you need some extra vertical space for headers and page numbers
\setlength \topmargin{20mm}
\setlength \oddsidemargin {39mm} % Allow a mm for the bleed.
\if@twoside
\setlength \evensidemargin {20mm}
\else
\setlength \evensidemargin {39mm}
\fi
A4 paper is 210mm wide, but the textwidth plus the margins adds up to: 140 + 39 + 39 = 218
I guess this is causing the issue or is this intentional?
I changed the settings to
\if@twoside
\setlength \oddsidemargin {40mm} % Allow a mm for the bleed.
\setlength \evensidemargin {29mm}
\else
\setlength \oddsidemargin {34.5mm} % Allow a mm for the bleed.
\setlength \evensidemargin {34.5mm}
\fi
Doe you see any issues with that?
How do I add an option for Master of Science (msc) please?
I'm getting the following error when running make all
lualatex --halt-on-error Main.tex
This is LuaTeX, Version 0.95.0 (TeX Live 2016)
restricted system commands enabled.
(./Main.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 1 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/nag/nag.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/nag/nag-l2tabu.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/latex/nag/nag-orthodox.cfg))
(./ucl_thesis.cls
Document Class: ucl_thesis 2014/08/12 v1.6 UCL MRes/MPhil/PhD Thesis class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/bk12.clo))
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/times.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/psnfss/mathptmx.sty))
(./MainPackages.tex
(/usr/local/texlive/2016/texmf-dist/tex/latex/blindtext/blindtext.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/tools/xspace.sty))
(/usr/local/texlive/2016/texmf-dist/tex/latex/emptypage/emptypage.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/lualatex/luatex-def/luatex.def
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
! Undefined control sequence.
l.21 \pdfimageresolution
=300
317 words of node memory still in use:
1 hlist, 1 rule, 1 dir, 4 glue, 40 glue_spec, 1 write nodes
avail lists: 2:12,3:1,4:1,5:1,7:2,9:3
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on Main.log.
make: *** [Main.pdf] Error 1
Would you know what might be the cause of it? Maybe related to:
! Undefined control sequence.
l.21 \pdfimageresolution
=300
First of all, thanks for this template. It's great and saved me a lot of time.
I need to use APA citation style but the template that I found is using \documentclass[a4paper,man,natbib]{apa6}
which overwrites the settings from \documentclass[12pt,phd,draft,a4paper,oneside]{ucl_thesis}
.
What would be a correct way to use APA6 style citation in the ucl_thesis template?
Since someone decided that Arial and Helvetica were the officially recommended fonts to set theses in, I should probably add a FAQ entry for how to do that, based on #12.
And find out who that someone is so I can ask them about it.
Hi, when chapter titles exceed a certain character limit, the headers go a bit wild and continue into the margin. Can we change the height of the header? Or preferably remove the chapter/section title from the header, leaving only the page number?
Hi,
First to note I did not found any other means of contacting so my bad for putting this as an issue.
I'm a PhD student at UCL and really appreciate this template. I use a lot sharelatex and wanted to encourage you, or with your consent to share this as an UCL template for thesis there.
All the best!
Hi, \hbar doesn't seem to work with amssymb at the same time.
MWE:
\documentclass[12pt,phd,a4paper,oneside]{ucl_thesis}
\usepackage{amssymb}
\begin{document}
\begin{equation}
\hbar
\end{equation}
$ \hbar $
\end{document}
This fails with the Undefined control sequence error.
Tex version:
latex --version
pdfTeX 3.141592653-2.6-1.40.24 (TeX Live 2022)
kpathsea version 6.3.4
Copyright 2022 Han The Thanh (pdfTeX) et al.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.03
From RC00005675:
There is an issue about the bibliography in the UCL PhD thesis latex template. When I tried to cite a reference in the thesis, it threw out an exception during the compiling : "LaTeX Error: Lonely \item--perhaps a missing list environment."
Apparently the times
package is deprecated (see #12), so it would be a good idea to work out what should be used now instead. (I think it's mathptx
.)
When compiling I was getting errors such as:
pdfTeX warning (dest): name{cite.whatever} has been referenced but does not exist, replaced by a fixed one
meaning that the links in the PDF just went to the first page.
To fix this, I found that adding:
\usepackage{natbib}
before the line \usepackage{bibitem} did the trick.
I haven't found that this causes any other issues, so you might want to make this change on the repo.
Hi! (The template is awesome, thank you so much.)
The guidelines recommend using Arial or Helvetica.
Afraid I'm relatively new to LaTeX and so I'm not sure how to properly implement this.
I tried adding \usepackage{helvet} to MainPackages.tex to no avail.
\documentclass[12pt,phd,a4paper,twoside,twopage,openright]{ucl_thesis}
doesn't produce the proper openright
effect.
Including the ucl_a4.sty
style makes it impossible to use the geometry
package: simply loading it (without any options) makes this apparent. Removing ucl_a4
from the class fixes this with no other noticeable problems.
In fact, I'm not even sure why this style is necessary at all, since all well-behaved packages understand what a4paper
is.
Has anyone else had issues with spaces in references for web page citations?
Attached is an example of what is happening for me.
There are work arounds for this online such as here: https://tex.stackexchange.com/questions/200333/bibliography-in-latex-spaces-between-words however when I try to implement these packages which I believe are already included I get errors whilst compiling.
Does any one else know of a work around for these spaces in references? Perhaps instead of doing them as web links something else?
Regards,
Peter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.