LuaLaTeX and XeLaTeX support

This commit is contained in:
Krishna Kumar 2015-06-19 22:08:36 +01:00
parent d32bb73ad6
commit 9d18abc2b4
6 changed files with 1759 additions and 2078 deletions

View File

@ -483,7 +483,7 @@ supported!}
citestyle=numeric, sorting=none, natbib=true]{biblatex}
\setBiBLaTeXtrue
\else
\RequirePackage[numbers,sort&compress]{natbib} % numbered citation
\RequirePackage[numbers,compress]{natbib} % numbered citation
\fi
\else
\ifuseCustomBib
@ -503,7 +503,7 @@ supported!}
citestyle=numeric, sorting=none, natbib=true]{biblatex}
\setBiBLaTeXfalse
\else
\RequirePackage[numbers,sort&compress]{natbib}
\RequirePackage[numbers,compress]{natbib}
\fi % default
\setBibfalse
\fi % custombib
@ -705,10 +705,12 @@ supported!}
% option to split urls over multiple lines for latex >> DVIPS >> PDF option
% PDFLaTeX does it automatically.
%\ifsetDVI
%\RequirePackage{breakurl} % to split the url over multiple lines
%\fi
\ifxetex % XeTeX doesn't require breakurl only dvi requires break url
\else
\ifsetDVI
\RequirePackage{breakurl} % to split the url over multiple lines
\fi
\fi
% ******************************************************************************
% **************************** Pre-defined Settings ****************************

View File

@ -17,7 +17,20 @@
\ifsetCustomFont
% Set your custom font here and use `customfont' in options. Leave empty to
% load computer modern font (default LaTeX font).
\RequirePackage{helvet}
%\RequirePackage{helvet}
% For use with XeLaTeX
% \setmainfont[
% Path = ./libertine/opentype/,
% Extension = .otf,
% UprightFont = LinLibertine_R,
% BoldFont = LinLibertine_RZ, % Linux Libertine O Regular Semibold
% ItalicFont = LinLibertine_RI,
% BoldItalicFont = LinLibertine_RZI, % Linux Libertine O Regular Semibold Italic
% ]
% {libertine}
% % load font from system font
% \newfontfamily\libertinesystemfont{Linux Libertine O}
\fi
% *****************************************************************************

View File

@ -1,6 +1,6 @@
CUED PhD thesis template
========================
> A LaTeX PhD thesis template for Cambridge University Engineering Department.
> A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department.
[![Build Status](https://api.travis-ci.org/kks32/phd-thesis-template.svg)](https://travis-ci.org/kks32/phd-thesis-template)
[![License MIT](http://img.shields.io/badge/license-MIT-brightgreen.svg)](license.md)
@ -13,6 +13,8 @@ CUED PhD thesis template
* Conforms to the Student Registry PhD dissertation guidelines and CUED PhD guidelines
* Supports LaTeX, XeLaTeX and LuaLaTeX
* Adaptive Title Page: Title page adapts to title length
* Print / On-line version: Different layout and hyper-referencing styles
@ -35,7 +37,24 @@ CUED PhD thesis template
--------------------------------------------------------------------------------
## Building your thesis
## Building your thesis - XeLaTeX
### Using latexmk (Unix/Linux/Windows)
This template supports `XeLaTeX` compilation chain. To generate PDF run
latexmk -pdf -e '$pdflatex=q/xelatex %O %S/' thesis
## Building your thesis - LuaLaTeX
### Using latexmk (Unix/Linux/Windows)
This template supports `XeLaTeX` compilation chain. To generate PDF run
latexmk -pdflatex=lualatex -pdf thesis.tex
## Building your thesis - LaTeX / PDFLaTeX
### Using latexmk (Unix/Linux/Windows)
@ -44,11 +63,6 @@ This template supports `latexmk`. To generate DVI, PS and PDF run
latexmk -dvi -ps -pdf thesis.tex
### Using ARARA (Unix/Linux/Windows)
This template supports `arara`. You can edit the arara commands in `thesis.tex` to suit your needs. Default is set to LATEX >> DVI >> PS2PDF with nomenclature and make index support.
arara -v thesis.tex
### Using the make file (Unix/Linux)
@ -95,6 +109,7 @@ Usage: `sh ./compile-thesis.sh [OPTIONS] [filename]`
* Alternatively, double click on `compile-thesis-windows.bat`
-------------------------------------------------------------------------------
## Usage details
@ -183,7 +198,7 @@ If `\college` is undefined or blank, the `degreedate` will be centered.
\includeonly{Chapter3/chapter3}
\fi
### Draft
### Draft
`draft` adds a watermark `draft` text with timestamp and version number at the top or
the bottom of the page. Pagewise line numbering is added on every page. `draft` settings can be tweaked in the `preamble.tex`.
@ -327,9 +342,9 @@ The visual style of chapter headings can be modified using the `titlesec` packag
* You can change the Title of Nomenclature to Notations or Symbols in the `preamble.tex` using:
\renewcommand\nomname{Symbols}
TexStudio's default compile option doesn't include `nomenclature`, to compile your document with the nomenclature, do the following:
Options >> Configure TexStudio >> Build >> User Commands >> add user command
In `add user command` type `makenomeclature:makenomenclature` on the left pane and `makeindex %.nlo -s nomencl.ist -o %.nls` on the execution side. Now you can run the user defined command `makenomenclature` from `Tools >> User >> makenomenclature`.
@ -440,6 +455,10 @@ If you are generating a separate abstract for your thesis submission, ignore thi
This is normal for a book class. Usually, a new chapter in a book always starts on the right hand side, which is why you see a blank page. You can remove the extra blank page by passing `openany` option to the documentclass. This works for double sided printing. However, if you are printing on a single side, please pass `oneside` option to the document class.
#### _W7_: My references aren't listed in the ordered in which I cite them
This is controlled by the bibliography style. Please use `\bibliographystyle{unsrt}` in `thesis.tex` instead of `apalike`. This applicable only for numerically sorted references.
--------------------------------------------------------------------------------
## Known issue(s) / Bugs / Feature requests

Binary file not shown.

3768
thesis.ps

File diff suppressed because it is too large Load Diff

View File

@ -157,6 +157,7 @@
% Reference styles: http://sites.stat.psu.edu/~surajit/present/bib.htm
\bibliographystyle{apalike}
%\bibliographystyle{unsrt} % Use for unsorted references
%\bibliographystyle{plainnat} % use this to have URLs listed in References
\cleardoublepage
\bibliography{References/references} % Path to your References.bib file