Giter Site home page Giter Site logo

Helvetica/Arial about ucl-latex-thesis-templates HOT 12 OPEN

ucl avatar ucl commented on May 12, 2024 1
Helvetica/Arial

from ucl-latex-thesis-templates.

Comments (12)

ikirker avatar ikirker commented on May 12, 2024 2

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.

PPPI avatar PPPI commented on May 12, 2024 1

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.

paddyroddy avatar paddyroddy commented on May 12, 2024 1

for reference, these changes now change to Helvetica
image

from ucl-latex-thesis-templates.

ikirker avatar ikirker commented on May 12, 2024

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.

da5nsy avatar da5nsy commented on May 12, 2024

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.

ikirker avatar ikirker commented on May 12, 2024

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.

da5nsy avatar da5nsy commented on May 12, 2024

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.

ikirker avatar ikirker commented on May 12, 2024

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.

da5nsy avatar da5nsy commented on May 12, 2024

I bow to your superior judgement and shall leave it be! :)

from ucl-latex-thesis-templates.

da5nsy avatar da5nsy commented on May 12, 2024

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.

ikirker avatar ikirker commented on May 12, 2024

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.

da5nsy avatar da5nsy commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.