Comments (12)
If I get around to it, I'll see if I can make it a quickly-settable option for the class.
from ucl-latex-thesis-templates.
As someone using this lovely template currently, and opting to use Helvetica, I reached the solution somewhat similarly to here. Except I replaced the times import from the cls file with helvet.
Specifically, same edit of lines 194 and 195 as above. While on line 159, I changed the times import to:
\RequirePackage{helvet}
This has the added benefit of removing the nag warning :)
Hope this helps others in the future.
from ucl-latex-thesis-templates.
for reference, these changes now change to Helvetica
from ucl-latex-thesis-templates.
That particular guideline is not a good guideline: using a sans-serif typeface for body text of a long document is stylistically highly questionable. I think it used to recommend Times New Roman; I wonder if the branding people in OVPR got to it. (In any case, I used a typeface called Utopia for mine.)
Cf. Serif vs. Sans for Text in Print
Having said that, you can use Helvetica if you want: add the snippet below anywhere in MainPackages.tex
, and re-run your preferred LaTeX command or make
if you're using that.
The extra step you have to do is set the sans-serif family as the default: just loading the helvet
package makes Helvetica the current sans-serif family, but LaTeX is still using the loaded serif family (Times New Roman in our case, set in the times
package loaded in ucl_thesis.cls
) for all text.
% Loads a scaled version of the Helvetica font
\usepackage{helvet}
% Sets the sans-serif family as the default family
\renewcommand{\familydefault}{\sfdefault}
If you really want to use Arial specifically, you'll have to be using LuaLaTeX or XeLaTeX for your build command, because these provide support for native system fonts instead of LaTeX's own format. Then, instead of the snippet above, add the one below to MainPackages.tex
. If you have a native version of the Helvetica typeface installed on your own machine (most common on macOS) you can also replace Arial with Helvetica here to use Helvetica, instead of using the snippet above (you may get a better quality version that way -- I haven't done the comparison).
\usepackage{fontspec}
\setmainfont{Arial}
from ucl-latex-thesis-templates.
Thank you for such an informative answer. I will certainly think twice about whether to follow this guidelines.
The only thing which the above snippet doesn't seem to change is the page headers. Any suggestions?
from ucl-latex-thesis-templates.
Ah, looks like the class file switches explicitly to the serif (a.k.a. 'Roman') family in headers, here in the file ucl_thesis.cls
(lines 194 & 195):
\def \@oddhead{\normalfont \rmfamily \slshape \hfill \rightmark \hfill \thepage}%
\def \@evenhead{\normalfont \rmfamily \slshape \thepage \hfill \leftmark \hfill}%
Change this to:
\def \@oddhead{\normalfont \sffamily \slshape \hfill \rightmark \hfill \thepage}%
\def \@evenhead{\normalfont \sffamily \slshape \thepage \hfill \leftmark \hfill}%
Oh, and, whatever you end up using, if you keep the Colophon section in the appendices, remember to update it.
from ucl-latex-thesis-templates.
It appears as though excluding the specific call to a family, e.g.
\def \@oddhead{\normalfont \slshape \hfill \rightmark \hfill \thepage}%
\def \@evenhead{\normalfont \slshape \thepage \hfill \leftmark \hfill}%
... means that this works for either serif/sans serif. Would it lose anything if the template was updated such?
Oh, and, whatever you end up using, if you keep the Colophon section in the appendices, remember to update it.
Good point. Also, there should definitely be a link to the template in the default colophon.
from ucl-latex-thesis-templates.
I thought about just removing it, but I wasn't 100% sure whether it would cause odd results. You wouldn't want to end up with monospaced page numbers because a code sample has been split over multiple pages.
from ucl-latex-thesis-templates.
I bow to your superior judgement and shall leave it be! :)
from ucl-latex-thesis-templates.
Just noticed - the only error I get when I compile is:
Package nag Warning: Package times is obsolete. Use the mathptmx, helvet (option scaled=.9), courier packages instead.
To my untrained eye, nothing seems to break, and the error goes away, when line 159 of ucl_thesis.cls (\RequirePackage{times}
) is commented out.
from ucl-latex-thesis-templates.
The nag
package doesn't break anything, it just checks for old things and some classes of mistake, I think.
It should be fine, but I'll take a look when I get a chance and update the fonts. (And maybe contact someone over the Arial/Helvetica guideline...)
from ucl-latex-thesis-templates.
The nag
package is working perfectly as intended - it is alerting me to the fact that the times
package is obsolete.
(I'm rather enamored by nag
, great idea)
from ucl-latex-thesis-templates.
Related Issues (17)
- Citation \item Error HOT 1
- Enabling APA citations HOT 2
- Update fonts from times to mathptx
- Add a FAQ entry for Arial/Helvetica font changes
- Use setspace package instead of baselinestretch HOT 2
- Reset mathcal fonts to default HOT 1
- hyperref links broken HOT 25
- Long headers compressed into one line only, exceeds margins
- Onesided setting produces uneven margins HOT 2
- \hbar not working HOT 1
- Spaces in references for web citations
- openright doesn't do anything HOT 3
- Share the UCL Thesis template in sharelatex.com HOT 2
- "ucl_a4.sty" conflicts with "geometry" package HOT 6
- MSc option HOT 3
- make command throws error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ucl-latex-thesis-templates.