ErickChacon / lancs-thesis

Latex template for postgraduate lancaster university thesis
GNU General Public License v3.0
3 stars 1 forks source link

Support for xelatex/lualatex? #1

Open krishnakumarg1984 opened 6 years ago

krishnakumarg1984 commented 6 years ago

Can I use custom fonts through xelatex or lualatex?

ErickChacon commented 6 years ago

Hi @krishnakumarg1984, I do not use xelatex and lualatex, but I have checked that this class works with xelatex without further changes on the class script LancsThesis.cls. I did not try for lualatex, but I imagine that it works similarly. For example, if you want to use the Ubuntu Mono derivative Powerline font from your system. You only have to add the following code into my-thesis.tex

\usepackage{fontspec}
\setmainfont{Ubuntu Mono derivative Powerline}

and execute with xelatex my-thesis.tex. The pdf created looks like below: ubuntu-font

krishnakumarg1984 commented 6 years ago

Thank you for your quick reply. Much appreciate it. The template rocks.

ErickChacon commented 6 years ago

Thanks. I have just checked with lualatex and the procedure is the same, it works, but probably it needs some customization. For example, the paragraphs are not justified lualatex

Regarding your questions:

In a short term, you will need to add some code for full compatibility.

krishnakumarg1984 commented 6 years ago

Yes. Works. Thank you for your support.