PdfLatex, Template and Greek Language produces compilation errorForeign language quotation marks with babel...

How does Leonard in "Memento" remember reading and writing?

Why do neural networks need so many training examples to perform?

Why avoid shared user accounts?

Midterm in Mathematics Courses

What is the wife of a henpecked husband called?

Does the ditching switch allow an A320 to float indefinitely?

Is `Object` a function in javascript?

How to create a label containing values from different layers in QGIS

Equivalent of "illegal" for violating civil law

Categorical Unification of Jordan Holder Theorems

Find the smallest value of the function

How do I prevent a homebrew Grappling Hook feature from trivializing Tomb of Annihilation?

What's the oldest plausible frozen specimen for a Jurassic Park style story-line?

What is the difference between `"..."`, `'...'`, `$'...'`, and `$"..."` quotes?

The No-Straight Maze

Does Skippy chunky peanut butter contain trans fat?

How to not let the Identify spell spoil everything?

What's after EXPSPACE?

Need help with a circuit diagram where the motor does not seem to have any connection to ground. Error with diagram? Or am i missing something?

Which RAF squadrons and aircraft types took part in the bombing of Berlin on the 25th of August 1940?

Two different monitors with same resolution: text is a lot smaller on one of them

Why is that max-Q doesn't occur in transonic regime?

Article. The word "Respect"

Calculate of total length of edges in Voronoi diagram



PdfLatex, Template and Greek Language produces compilation error


Foreign language quotation marks with babel and csquotes on pdfLaTeXHow to use foreign language in pdflatex?frenchb in babel produces compilation error with NewDocumentCommandmoderncv linkedin symbol and greek languagePdfLatex build error due to the “.bib” file compilation errorLuaLaTeX Problem with Greek languageLaTeX compilation produces unreadable fileChange language to Spanish in templateHyphenation issue with pdfLatex and GreekBeamer - Greek - Change Language inside `author`













0















I am having a serious problem that I do not know how to solve. I am using overleaf and the bristol template to write my thesis. I am mostly writing in english but I need to write an abstract in greek. If i add greek to babel instantly I get compilation error. I attach the log for further insight. Thank you in advance.



Missing endcsname inserted.

<to be read again>
protect
l.341 begin{document}

The control sequence marked <to be read again> should
not appear between csname and endcsname.

memoirthesis.tex, line 341
Extra endcsname.

<recently read> endcsname

l.341 begin{document}

I'm ignoring this, since I wasn't doing a csname.

memoirthesis.tex, line 341
LaTeX Error: Missing begin{document}.

No begin{document} command was found. Make sure you have included begin{document} in your preamble, and that your main document is set correctly.

Learn more
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.341 begin{document}

You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.

memoirthesis.tex, line 341
Undefined control sequence.

The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using usepackage{...}.

Learn more
set@color ...@pdfcolorstack push{current@color
}aftergroup reset@color
l.341 begin{document}

The control sequence at the end of the top line
of your error message was never def'ed. If you have
misspelled it (e.g., `hobx'), type `I' and the correct
spelling (e.g., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

memoirthesis.tex, line 341
Extra endcsname.

declare@robustcommand ...e string #1 endcsname

l.341 begin{document}

I'm ignoring this, since I wasn't doing a csname.

memoirthesis.tex, line 341
Missing number, treated as zero.

<to be read again>
csname
l.341 begin{document}

A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

memoirthesis.tex, line 341
Extra endcsname.

font@name ... csname T1/cmtt/m/n/12endcsname

l.341 begin{document}

I'm ignoring this, since I wasn't doing a csname.

memoirthesis.tex, line 341
Extra endcsname.

GenericError ...iffirstchoice@ else 6fi endcsname
protect GenericError
l.341 begin{document}

I'm ignoring this, since I wasn't doing a csname.

memoirthesis.tex, line 341
LaTeX Error: Font csname csname T1/cmtt/m/n/12endcsname not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.341 begin{document}

Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.

memoirthesis.tex, line 341
Extra endcsname.

GenericError ...iffirstchoice@ else 6fi endcsname
protect GenericError
l.341 begin{document}

(That makes 100 errors; please try again.)
Here is how much of TeX's memory you used:
32104 strings out of 493013
595925 string characters out of 6135683
888394 words of memory out of 5000000
35034 multiletter control sequences out of 15000+600000
15494 words of font info for 26 fonts, out of 8000000 for 9000
1146 hyphenation exceptions out of 8191
55i,3n,92p,1012b,152s stack positions out of 5000i,500n,10000p,200000b,80000s

memoirthesis.tex
==> Fatal error occurred, no output PDF file produced!


While the main tex is:



%title{University of Bristol Thesis Template}
RequirePackage[l2tabu]{nag} % Warns for incorrect (obsolete) LaTeX usage
%
%
% File: memoirthesis.tex
% Author: Victor Brena
% Description: Contains the thesis template using memoir class,
% which is mainly based on book class but permits better control of
% chapter styles for example. This template is an adaptation and
% modification of Oscar's.
%
% Memoir is a flexible class for typesetting poetry, fiction,
% non-fiction and mathematical works as books, reports, articles or
% manuscripts. CTAN repository is found at:
% http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/
%
%
% UoB guidelines for thesis presentation were found at:
% http://www.bris.ac.uk/esu/pg/pgrcop11-12topic.pdf#page=49
%
% UoB guidelines:
%
% The dissertation must be printed on A4 white paper. Paper up to A3 may be used
% for maps, plans, diagrams and illustrative material. Pages (apart from the
% preliminary pages) should normally be double-sided.
%
% Memoir class loads useful packages by default (see manual).

documentclass[a4paper,12pt,lenqo,openbib,oldfontcommands,twoside]{memoir} %add 'draft' to turn draft option on (see below)

%
%
% Adding metadata:

usepackage{datetime}
usepackage{ifpdf}
ifpdf
pdfinfo{
/CreationDate (D:pdfdate)
}
fi
% When draft option is on.
ifdraftdoc
usepackage{draftwatermark} %Sets watermarks up.
SetWatermarkScale{0.3}
SetWatermarkText{bf Draft: today}
fi
%
% Declare figure/table as a subfloat.
newsubfloat{figure}
newsubfloat{table}
% Better page layout for A4 paper, see memoir manual.
settrimmedsize{297mm}{210mm}{*}
setlength{trimtop}{0pt}
setlength{trimedge}{stockwidth}
addtolength{trimedge}{-paperwidth}
settypeblocksize{634pt}{448.13pt}{*}
setulmargins{4cm}{*}{*}
setlrmargins{*}{*}{1}
setmarginnotes{17pt}{51pt}{onelineskip}
setheadfoot{onelineskip}{2onelineskip}
setheaderspaces{*}{2onelineskip}{*}
checkandfixthelayout
%
frenchspacing
% Font with math support: New Century Schoolbook
usepackage{fouriernc}
usepackage[T1]{fontenc}
%
% UoB guidelines:
%
% Text should be in double or 1.5 line spacing, and font size should be
% chosen to ensure clarity and legibility for the main text and for any
% quotations and footnotes. Margins should allow for eventual hard binding.
%
% Note: This is automatically set by memoir class. Nevertheless OnehalfSpacing
% enables double spacing but leaves single spaced for captions for instance.
OnehalfSpacing
%
% Sets numbering division level
setsecnumdepth{subsection}
maxsecnumdepth{subsubsection}
%
% Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
% Styles document
usepackage{calc,soul,fourier}
makeatletter
newlengthdlf@normtxtw
setlengthdlf@normtxtw{textwidth}
newsavebox{feline@chapter}
newcommandfeline@chapter@marker[1][4cm]{%
sboxfeline@chapter{%
resizebox{!}{#1}{fboxsep=1pt%
colorbox{gray}{color{white}thechapter}%
}}%
rotatebox{90}{%
resizebox{%
heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
{!}{scshapeso@chapapp}}quad%
raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
}
newcommandfeline@chm[1][4cm]{%
sboxfeline@chapter{feline@chapter@marker[#1]}%
makebox[0pt][c]{% aka rlap
makebox[1cm][r]{useboxfeline@chapter}%
}}
makechapterstyle{daleifmodif}{
renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
renewcommandchaptitlefont{normalfontLargebfseriesscshape}
renewcommandchapternamenum{} renewcommandprintchaptername{}
renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
renewcommandafterchapternum{parvskipmidchapskip}
renewcommandprintchaptertitle[1]{color{gray}chaptitlefontraggedleft ##1par}
}
makeatother
chapterstyle{daleifmodif}
%
% UoB guidelines:
%
% The pages should be numbered consecutively at the bottom centre of the
% page.
makepagestyle{myvf}
makeoddfoot{myvf}{}{thepage}{}
makeevenfoot{myvf}{}{thepage}{}
makeheadrule{myvf}{textwidth}{normalrulethickness}
makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
pagestyle{myvf}
%
% Oscar's command (it works):
% Fills blank pages until next odd-numbered page. Used to emulate single-sided
% frontmatter. This will work for title, abstract and declaration. Though the
% contents sections will each start on an odd-numbered page they will
% spill over onto the even-numbered pages if extending beyond one page
% (hopefully, this is ok).
newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
%
%
% Creates indexes for Table of Contents, List of Figures, List of Tables and Index
makeindex
% printglossaries below creates a list of abbreviations. gls and related
% commands are then used throughout the text, so that latex can automatically
% keep track of which abbreviations have already been defined in the text.
%
% The import command enables each chapter tex file to use relative paths when
% accessing supplementary files. For example, to include
% chapters/brewing/images/figure1.png from chapters/brewing/brewing.tex we can
% use
% includegraphics{images/figure1}
% instead of
% includegraphics{chapters/brewing/images/figure1}
usepackage{import}

% Add other packages needed for chapters here. For example:

usepackage{lipsum} %Needed to create dummy text
usepackage{amsfonts} %Calls Amer. Math. Soc. (AMS) fonts
usepackage[centertags]{amsmath} %Writes maths centred down
% usepackage{algorithm}
usepackage[noend]{algpseudocode}
usepackage[ruled,vlined,linesnumbered]{algorithm2e}
usepackage{stmaryrd} %New AMS symbols
usepackage{amssymb} %Calls AMS symbols
usepackage{amsthm} %Calls AMS theorem environment
usepackage{newlfont} %Helpful package for fonts and symbols
usepackage{layouts} %Layout diagrams
usepackage{graphicx} %Calls figure environment
usepackage{longtable,rotating} %Long tab environments including rotation.
usepackage{pdflscape}
usepackage[greek,english]{babel} %For languages characters and hyphenation
usepackage[utf8x]{inputenc}
usepackage{mathtools}
usepackage{adjustbox}
usepackage{caption}



%directly for mac
usepackage{colortbl} %Makes coloured tables
usepackage{wasysym} %More math symbols
usepackage{mathrsfs} %Even more math symbols
usepackage{float} %Helps to place figures, tables, etc.
usepackage{verbatim} %Permits pre-formated text insertion
usepackage{upgreek} %Calls other kind of greek alphabet
usepackage{latexsym} %Extra symbols
usepackage[square,numbers,
sort&compress]{natbib} %Calls bibliography commands
usepackage{url} %Supports url commands
% usepackage{etex} %eTeXÕs extended support for counters
% usepackage{fixltx2e} %Eliminates some in felicities of the
%original LaTeX kernel


usepackage{color} %Creates coloured text and background
usepackage[colorlinks=true,
allcolors=black]{hyperref} %Creates hyperlinks in cross references
usepackage{memhfixc} %Must be used on memoir document
%class after hyperref
usepackage{enumerate} %For enumeration counter
usepackage{footnote} %For footnotes
usepackage{microtype} %Makes pdf look better.
usepackage{rotfloat} %For rotating and float environments as tables,
%figures, etc.
usepackage{alltt} %LaTeX commands are not disabled in
%verbatim-like environment
usepackage[version=0.96]{pgf} %PGF/TikZ is a tandem of languages for producing vector graphics from a
usepackage{tikz} %geometric/algebraic description.
usetikzlibrary{arrows,shapes,snakes,
automata,backgrounds,
petri,topaths} %To use diverse features from tikz




%
%Reduce widows (the last line of a paragraph at the start of a page) and orphans
% (the first line of paragraph at the end of a page)
widowpenalty=1000
clubpenalty=1000
%
% New command definitions for my thesis
%
newcommand{keywords}[1]{parnoindent{small{bf Keywords:} #1}} %Defines keywords small section
newcommand{parcial}[2]{frac{partial#1}{partial#2}} %Defines a partial operator
newcommand{vectorr}[1]{mathbf{#1}} %Defines a bold vector
newcommand{vecol}[2]{left( %Defines a column vector
begin{array}{c}
displaystyle#1 \
displaystyle#2
end{array}right)}
newcommand{mados}[4]{left( %Defines a 2x2 matrix
begin{array}{cc}
displaystyle#1 &displaystyle #2 \
displaystyle#3 & displaystyle#4
end{array}right)}
newcommand{pgftextcircled}[1]{ %Defines encircled text
setbox0=hbox{#1}%
dimen0wd0%
dividedimen0 by 2%
begin{tikzpicture}[baseline=(a.base)]%
useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
end{tikzpicture}
}
newcommand{range}[1]{textnormal{range }#1} %Defines range operator
newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
newcommand{prom}[1]{leftlangle#1rightrangle} %Defines average operator
newcommand{tra}[1]{textnormal{tra} : #1} %Defines trace operator
newcommand{sign}[1]{textnormal{sign,}#1} %Defines sign operator
newcommand{sech}[1]{textnormal{sech} #1} %Defines sech
newcommand{diag}[1]{textnormal{diag} #1} %Defines diag operator
newcommand{arcsech}[1]{textnormal{arcsech} #1} %Defines arcsech
newcommand{arctanh}[1]{textnormal{arctanh} #1} %Defines arctanh
%Change tombstone symbol
newcommand{blackged}{hfill$blacksquare$}
newcommand{whiteged}{hfill$square$}
newcounter{proofcount}
renewenvironment{proof}[1][proofname.]{par
ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
refstepcounter{proofcount}
normalfont
trivlist
item[hskiplabelsep
itshape
{bfem #1}]ignorespaces
}{%
addtocounter{proofcount}{-1}
popQEDendtrivlist
}
%
%
% New definition of square root:
% it renames sqrt as oldsqrt
letoldsqrtsqrt
% it defines the new sqrt in terms of the old one
defsqrt{mathpaletteDHLhksqrt}
defDHLhksqrt#1#2{%
setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
advancedimen0-0.2ht0
setbox2=hbox{vrule heightht0 depth -dimen0}%
{box0lower0.4ptbox2}}
%
% My caption style
newcommand{mycaption}[2][@empty]{
captionnamefont{scshape}
changecaptionwidth
captionwidth{0.9linewidth}
captiondelim{.:}
indentcaption{0.75cm}
captionstyle[centering]{}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 caption{#2}else caption[#1]{#2}
}
%
% My subcaption style
newcommand{mysubcaption}[2][@empty]{
subcaptionsize{small}
hangsubcaption
subcaptionlabelfont{rmfamily}
sidecapstyle{raggedright}
setlength{belowcaptionskip}{10pt}
ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
}
%
%An initial of the very first character of the content
usepackage{lettrine}
newcommand{initial}[1]{%
lettrine[lines=3,lhang=0.33,nindent=0em]{
color{gray}
{textsc{#1}}}{}}
%
% Theorem styles used in my thesis
%
theoremstyle{plain}
newtheorem{theo}{Theorem}[chapter]
theoremstyle{plain}
newtheorem{prop}{Proposition}[chapter]
theoremstyle{plain}
theoremstyle{definition}
newtheorem{dfn}{Definition}[chapter]
theoremstyle{plain}
newtheorem{lema}{Lemma}[chapter]
theoremstyle{plain}
newtheorem{cor}{Corollary}[chapter]
theoremstyle{plain}
newtheorem{resu}{Result}[chapter]
%
% Hyphenation for some words
%
hyphenation{res-pec-tively}
hyphenation{mono-ti-ca-lly}
hyphenation{hypo-the-sis}
hyphenation{para-me-ters}
hyphenation{sol-va-bi-li-ty}
%
%

begin{document}
% UoB guidlines:
%
% Preliminary pages
%
% The five preliminary pages must be the Title Page, Abstract, Dedication
% and Acknowledgements, Author's Declaration and Table of Contents.
% These should be single-sided.
%
% Table of contents, list of tables and illustrative material
%
% The table of contents must list, with page numbers, all chapters,
% sections and subsections, the list of references, bibliography, list of
% abbreviations and appendices. The list of tables and illustrations
% should follow the table of contents, listing with page numbers the
% tables, photographs, diagrams, etc., in the order in which they appear
% in the text.
%
frontmatter
pagenumbering{roman}
%
input{frontmatter/title}
clearemptydoublepage
%
input{frontmatter/title_greek}
clearemptydoublepage
%
input{frontmatter/abstract}
clearemptydoublepage
%
input{frontmatter/dedication}
clearemptydoublepage
%
%input{frontmatter/declaration}
%clearemptydoublepage
%
renewcommand{contentsname}{Table of Contents}
maxtocdepth{subsection}
setcounter{tocdepth}{3}
tableofcontents*
addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
clearemptydoublepage
%
listoftables
addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
clearemptydoublepage
%
listoffigures
addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
clearemptydoublepage
%
listofalgorithms
addtocontents{loa}{parnobreaktextbf{{scshape Algorithm} hfill Page}parnobreak}
clearemptydoublepage
%
%
% The bulk of the document is delegated to these chapter files in
% subdirectories.
mainmatter
%
import{chapters/notations/}{notations.tex}
import{chapters/chapter01/}{chap01.tex}
import{chapters/chapter02/}{chap02.tex}
import{chapters/chapter03/}{chap03.tex}
import{chapters/chapter04/}{chap04.tex}
import{chapters/chapter05/}{chap05.tex}
import{chapters/chapter06/}{chap06.tex}
clearemptydoublepage
%
%
% And the appendix goes here
% appendix
% import{chapters/appendices/}{app0A.tex}
% clearemptydoublepage
%
% Apparently the guidelines don't say anything about citations or
% bibliography styles so I guess we can use anything.
backmatter
nocite{*}
bibliographystyle{ieeetr}
refstepcounter{chapter}
bibliography{thesisbiblio}
clearemptydoublepage
%
% Add index
%printindex
%
end{document}









share|improve this question







New contributor




Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I am having a serious problem that I do not know how to solve. I am using overleaf and the bristol template to write my thesis. I am mostly writing in english but I need to write an abstract in greek. If i add greek to babel instantly I get compilation error. I attach the log for further insight. Thank you in advance.



    Missing endcsname inserted.

    <to be read again>
    protect
    l.341 begin{document}

    The control sequence marked <to be read again> should
    not appear between csname and endcsname.

    memoirthesis.tex, line 341
    Extra endcsname.

    <recently read> endcsname

    l.341 begin{document}

    I'm ignoring this, since I wasn't doing a csname.

    memoirthesis.tex, line 341
    LaTeX Error: Missing begin{document}.

    No begin{document} command was found. Make sure you have included begin{document} in your preamble, and that your main document is set correctly.

    Learn more
    See the LaTeX manual or LaTeX Companion for explanation.
    Type H <return> for immediate help.
    ...

    l.341 begin{document}

    You're in trouble here. Try typing <return> to proceed.
    If that doesn't work, type X <return> to quit.

    memoirthesis.tex, line 341
    Undefined control sequence.

    The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using usepackage{...}.

    Learn more
    set@color ...@pdfcolorstack push{current@color
    }aftergroup reset@color
    l.341 begin{document}

    The control sequence at the end of the top line
    of your error message was never def'ed. If you have
    misspelled it (e.g., `hobx'), type `I' and the correct
    spelling (e.g., `Ihbox'). Otherwise just continue,
    and I'll forget about whatever was undefined.

    memoirthesis.tex, line 341
    Extra endcsname.

    declare@robustcommand ...e string #1 endcsname

    l.341 begin{document}

    I'm ignoring this, since I wasn't doing a csname.

    memoirthesis.tex, line 341
    Missing number, treated as zero.

    <to be read again>
    csname
    l.341 begin{document}

    A number should have been here; I inserted `0'.
    (If you can't figure out why I needed to see a number,
    look up `weird error' in the index to The TeXbook.)

    memoirthesis.tex, line 341
    Extra endcsname.

    font@name ... csname T1/cmtt/m/n/12endcsname

    l.341 begin{document}

    I'm ignoring this, since I wasn't doing a csname.

    memoirthesis.tex, line 341
    Extra endcsname.

    GenericError ...iffirstchoice@ else 6fi endcsname
    protect GenericError
    l.341 begin{document}

    I'm ignoring this, since I wasn't doing a csname.

    memoirthesis.tex, line 341
    LaTeX Error: Font csname csname T1/cmtt/m/n/12endcsname not found.

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H <return> for immediate help.
    ...

    l.341 begin{document}

    Your command was ignored.
    Type I <command> <return> to replace it with another command,
    or <return> to continue without it.

    memoirthesis.tex, line 341
    Extra endcsname.

    GenericError ...iffirstchoice@ else 6fi endcsname
    protect GenericError
    l.341 begin{document}

    (That makes 100 errors; please try again.)
    Here is how much of TeX's memory you used:
    32104 strings out of 493013
    595925 string characters out of 6135683
    888394 words of memory out of 5000000
    35034 multiletter control sequences out of 15000+600000
    15494 words of font info for 26 fonts, out of 8000000 for 9000
    1146 hyphenation exceptions out of 8191
    55i,3n,92p,1012b,152s stack positions out of 5000i,500n,10000p,200000b,80000s

    memoirthesis.tex
    ==> Fatal error occurred, no output PDF file produced!


    While the main tex is:



    %title{University of Bristol Thesis Template}
    RequirePackage[l2tabu]{nag} % Warns for incorrect (obsolete) LaTeX usage
    %
    %
    % File: memoirthesis.tex
    % Author: Victor Brena
    % Description: Contains the thesis template using memoir class,
    % which is mainly based on book class but permits better control of
    % chapter styles for example. This template is an adaptation and
    % modification of Oscar's.
    %
    % Memoir is a flexible class for typesetting poetry, fiction,
    % non-fiction and mathematical works as books, reports, articles or
    % manuscripts. CTAN repository is found at:
    % http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/
    %
    %
    % UoB guidelines for thesis presentation were found at:
    % http://www.bris.ac.uk/esu/pg/pgrcop11-12topic.pdf#page=49
    %
    % UoB guidelines:
    %
    % The dissertation must be printed on A4 white paper. Paper up to A3 may be used
    % for maps, plans, diagrams and illustrative material. Pages (apart from the
    % preliminary pages) should normally be double-sided.
    %
    % Memoir class loads useful packages by default (see manual).

    documentclass[a4paper,12pt,lenqo,openbib,oldfontcommands,twoside]{memoir} %add 'draft' to turn draft option on (see below)

    %
    %
    % Adding metadata:

    usepackage{datetime}
    usepackage{ifpdf}
    ifpdf
    pdfinfo{
    /CreationDate (D:pdfdate)
    }
    fi
    % When draft option is on.
    ifdraftdoc
    usepackage{draftwatermark} %Sets watermarks up.
    SetWatermarkScale{0.3}
    SetWatermarkText{bf Draft: today}
    fi
    %
    % Declare figure/table as a subfloat.
    newsubfloat{figure}
    newsubfloat{table}
    % Better page layout for A4 paper, see memoir manual.
    settrimmedsize{297mm}{210mm}{*}
    setlength{trimtop}{0pt}
    setlength{trimedge}{stockwidth}
    addtolength{trimedge}{-paperwidth}
    settypeblocksize{634pt}{448.13pt}{*}
    setulmargins{4cm}{*}{*}
    setlrmargins{*}{*}{1}
    setmarginnotes{17pt}{51pt}{onelineskip}
    setheadfoot{onelineskip}{2onelineskip}
    setheaderspaces{*}{2onelineskip}{*}
    checkandfixthelayout
    %
    frenchspacing
    % Font with math support: New Century Schoolbook
    usepackage{fouriernc}
    usepackage[T1]{fontenc}
    %
    % UoB guidelines:
    %
    % Text should be in double or 1.5 line spacing, and font size should be
    % chosen to ensure clarity and legibility for the main text and for any
    % quotations and footnotes. Margins should allow for eventual hard binding.
    %
    % Note: This is automatically set by memoir class. Nevertheless OnehalfSpacing
    % enables double spacing but leaves single spaced for captions for instance.
    OnehalfSpacing
    %
    % Sets numbering division level
    setsecnumdepth{subsection}
    maxsecnumdepth{subsubsection}
    %
    % Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
    % Styles document
    usepackage{calc,soul,fourier}
    makeatletter
    newlengthdlf@normtxtw
    setlengthdlf@normtxtw{textwidth}
    newsavebox{feline@chapter}
    newcommandfeline@chapter@marker[1][4cm]{%
    sboxfeline@chapter{%
    resizebox{!}{#1}{fboxsep=1pt%
    colorbox{gray}{color{white}thechapter}%
    }}%
    rotatebox{90}{%
    resizebox{%
    heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
    {!}{scshapeso@chapapp}}quad%
    raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
    }
    newcommandfeline@chm[1][4cm]{%
    sboxfeline@chapter{feline@chapter@marker[#1]}%
    makebox[0pt][c]{% aka rlap
    makebox[1cm][r]{useboxfeline@chapter}%
    }}
    makechapterstyle{daleifmodif}{
    renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
    renewcommandchaptitlefont{normalfontLargebfseriesscshape}
    renewcommandchapternamenum{} renewcommandprintchaptername{}
    renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
    renewcommandafterchapternum{parvskipmidchapskip}
    renewcommandprintchaptertitle[1]{color{gray}chaptitlefontraggedleft ##1par}
    }
    makeatother
    chapterstyle{daleifmodif}
    %
    % UoB guidelines:
    %
    % The pages should be numbered consecutively at the bottom centre of the
    % page.
    makepagestyle{myvf}
    makeoddfoot{myvf}{}{thepage}{}
    makeevenfoot{myvf}{}{thepage}{}
    makeheadrule{myvf}{textwidth}{normalrulethickness}
    makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
    makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
    pagestyle{myvf}
    %
    % Oscar's command (it works):
    % Fills blank pages until next odd-numbered page. Used to emulate single-sided
    % frontmatter. This will work for title, abstract and declaration. Though the
    % contents sections will each start on an odd-numbered page they will
    % spill over onto the even-numbered pages if extending beyond one page
    % (hopefully, this is ok).
    newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
    %
    %
    % Creates indexes for Table of Contents, List of Figures, List of Tables and Index
    makeindex
    % printglossaries below creates a list of abbreviations. gls and related
    % commands are then used throughout the text, so that latex can automatically
    % keep track of which abbreviations have already been defined in the text.
    %
    % The import command enables each chapter tex file to use relative paths when
    % accessing supplementary files. For example, to include
    % chapters/brewing/images/figure1.png from chapters/brewing/brewing.tex we can
    % use
    % includegraphics{images/figure1}
    % instead of
    % includegraphics{chapters/brewing/images/figure1}
    usepackage{import}

    % Add other packages needed for chapters here. For example:

    usepackage{lipsum} %Needed to create dummy text
    usepackage{amsfonts} %Calls Amer. Math. Soc. (AMS) fonts
    usepackage[centertags]{amsmath} %Writes maths centred down
    % usepackage{algorithm}
    usepackage[noend]{algpseudocode}
    usepackage[ruled,vlined,linesnumbered]{algorithm2e}
    usepackage{stmaryrd} %New AMS symbols
    usepackage{amssymb} %Calls AMS symbols
    usepackage{amsthm} %Calls AMS theorem environment
    usepackage{newlfont} %Helpful package for fonts and symbols
    usepackage{layouts} %Layout diagrams
    usepackage{graphicx} %Calls figure environment
    usepackage{longtable,rotating} %Long tab environments including rotation.
    usepackage{pdflscape}
    usepackage[greek,english]{babel} %For languages characters and hyphenation
    usepackage[utf8x]{inputenc}
    usepackage{mathtools}
    usepackage{adjustbox}
    usepackage{caption}



    %directly for mac
    usepackage{colortbl} %Makes coloured tables
    usepackage{wasysym} %More math symbols
    usepackage{mathrsfs} %Even more math symbols
    usepackage{float} %Helps to place figures, tables, etc.
    usepackage{verbatim} %Permits pre-formated text insertion
    usepackage{upgreek} %Calls other kind of greek alphabet
    usepackage{latexsym} %Extra symbols
    usepackage[square,numbers,
    sort&compress]{natbib} %Calls bibliography commands
    usepackage{url} %Supports url commands
    % usepackage{etex} %eTeXÕs extended support for counters
    % usepackage{fixltx2e} %Eliminates some in felicities of the
    %original LaTeX kernel


    usepackage{color} %Creates coloured text and background
    usepackage[colorlinks=true,
    allcolors=black]{hyperref} %Creates hyperlinks in cross references
    usepackage{memhfixc} %Must be used on memoir document
    %class after hyperref
    usepackage{enumerate} %For enumeration counter
    usepackage{footnote} %For footnotes
    usepackage{microtype} %Makes pdf look better.
    usepackage{rotfloat} %For rotating and float environments as tables,
    %figures, etc.
    usepackage{alltt} %LaTeX commands are not disabled in
    %verbatim-like environment
    usepackage[version=0.96]{pgf} %PGF/TikZ is a tandem of languages for producing vector graphics from a
    usepackage{tikz} %geometric/algebraic description.
    usetikzlibrary{arrows,shapes,snakes,
    automata,backgrounds,
    petri,topaths} %To use diverse features from tikz




    %
    %Reduce widows (the last line of a paragraph at the start of a page) and orphans
    % (the first line of paragraph at the end of a page)
    widowpenalty=1000
    clubpenalty=1000
    %
    % New command definitions for my thesis
    %
    newcommand{keywords}[1]{parnoindent{small{bf Keywords:} #1}} %Defines keywords small section
    newcommand{parcial}[2]{frac{partial#1}{partial#2}} %Defines a partial operator
    newcommand{vectorr}[1]{mathbf{#1}} %Defines a bold vector
    newcommand{vecol}[2]{left( %Defines a column vector
    begin{array}{c}
    displaystyle#1 \
    displaystyle#2
    end{array}right)}
    newcommand{mados}[4]{left( %Defines a 2x2 matrix
    begin{array}{cc}
    displaystyle#1 &displaystyle #2 \
    displaystyle#3 & displaystyle#4
    end{array}right)}
    newcommand{pgftextcircled}[1]{ %Defines encircled text
    setbox0=hbox{#1}%
    dimen0wd0%
    dividedimen0 by 2%
    begin{tikzpicture}[baseline=(a.base)]%
    useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
    node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
    end{tikzpicture}
    }
    newcommand{range}[1]{textnormal{range }#1} %Defines range operator
    newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
    newcommand{prom}[1]{leftlangle#1rightrangle} %Defines average operator
    newcommand{tra}[1]{textnormal{tra} : #1} %Defines trace operator
    newcommand{sign}[1]{textnormal{sign,}#1} %Defines sign operator
    newcommand{sech}[1]{textnormal{sech} #1} %Defines sech
    newcommand{diag}[1]{textnormal{diag} #1} %Defines diag operator
    newcommand{arcsech}[1]{textnormal{arcsech} #1} %Defines arcsech
    newcommand{arctanh}[1]{textnormal{arctanh} #1} %Defines arctanh
    %Change tombstone symbol
    newcommand{blackged}{hfill$blacksquare$}
    newcommand{whiteged}{hfill$square$}
    newcounter{proofcount}
    renewenvironment{proof}[1][proofname.]{par
    ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
    refstepcounter{proofcount}
    normalfont
    trivlist
    item[hskiplabelsep
    itshape
    {bfem #1}]ignorespaces
    }{%
    addtocounter{proofcount}{-1}
    popQEDendtrivlist
    }
    %
    %
    % New definition of square root:
    % it renames sqrt as oldsqrt
    letoldsqrtsqrt
    % it defines the new sqrt in terms of the old one
    defsqrt{mathpaletteDHLhksqrt}
    defDHLhksqrt#1#2{%
    setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
    advancedimen0-0.2ht0
    setbox2=hbox{vrule heightht0 depth -dimen0}%
    {box0lower0.4ptbox2}}
    %
    % My caption style
    newcommand{mycaption}[2][@empty]{
    captionnamefont{scshape}
    changecaptionwidth
    captionwidth{0.9linewidth}
    captiondelim{.:}
    indentcaption{0.75cm}
    captionstyle[centering]{}
    setlength{belowcaptionskip}{10pt}
    ifx @empty#1 caption{#2}else caption[#1]{#2}
    }
    %
    % My subcaption style
    newcommand{mysubcaption}[2][@empty]{
    subcaptionsize{small}
    hangsubcaption
    subcaptionlabelfont{rmfamily}
    sidecapstyle{raggedright}
    setlength{belowcaptionskip}{10pt}
    ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
    }
    %
    %An initial of the very first character of the content
    usepackage{lettrine}
    newcommand{initial}[1]{%
    lettrine[lines=3,lhang=0.33,nindent=0em]{
    color{gray}
    {textsc{#1}}}{}}
    %
    % Theorem styles used in my thesis
    %
    theoremstyle{plain}
    newtheorem{theo}{Theorem}[chapter]
    theoremstyle{plain}
    newtheorem{prop}{Proposition}[chapter]
    theoremstyle{plain}
    theoremstyle{definition}
    newtheorem{dfn}{Definition}[chapter]
    theoremstyle{plain}
    newtheorem{lema}{Lemma}[chapter]
    theoremstyle{plain}
    newtheorem{cor}{Corollary}[chapter]
    theoremstyle{plain}
    newtheorem{resu}{Result}[chapter]
    %
    % Hyphenation for some words
    %
    hyphenation{res-pec-tively}
    hyphenation{mono-ti-ca-lly}
    hyphenation{hypo-the-sis}
    hyphenation{para-me-ters}
    hyphenation{sol-va-bi-li-ty}
    %
    %

    begin{document}
    % UoB guidlines:
    %
    % Preliminary pages
    %
    % The five preliminary pages must be the Title Page, Abstract, Dedication
    % and Acknowledgements, Author's Declaration and Table of Contents.
    % These should be single-sided.
    %
    % Table of contents, list of tables and illustrative material
    %
    % The table of contents must list, with page numbers, all chapters,
    % sections and subsections, the list of references, bibliography, list of
    % abbreviations and appendices. The list of tables and illustrations
    % should follow the table of contents, listing with page numbers the
    % tables, photographs, diagrams, etc., in the order in which they appear
    % in the text.
    %
    frontmatter
    pagenumbering{roman}
    %
    input{frontmatter/title}
    clearemptydoublepage
    %
    input{frontmatter/title_greek}
    clearemptydoublepage
    %
    input{frontmatter/abstract}
    clearemptydoublepage
    %
    input{frontmatter/dedication}
    clearemptydoublepage
    %
    %input{frontmatter/declaration}
    %clearemptydoublepage
    %
    renewcommand{contentsname}{Table of Contents}
    maxtocdepth{subsection}
    setcounter{tocdepth}{3}
    tableofcontents*
    addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
    clearemptydoublepage
    %
    listoftables
    addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
    clearemptydoublepage
    %
    listoffigures
    addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
    clearemptydoublepage
    %
    listofalgorithms
    addtocontents{loa}{parnobreaktextbf{{scshape Algorithm} hfill Page}parnobreak}
    clearemptydoublepage
    %
    %
    % The bulk of the document is delegated to these chapter files in
    % subdirectories.
    mainmatter
    %
    import{chapters/notations/}{notations.tex}
    import{chapters/chapter01/}{chap01.tex}
    import{chapters/chapter02/}{chap02.tex}
    import{chapters/chapter03/}{chap03.tex}
    import{chapters/chapter04/}{chap04.tex}
    import{chapters/chapter05/}{chap05.tex}
    import{chapters/chapter06/}{chap06.tex}
    clearemptydoublepage
    %
    %
    % And the appendix goes here
    % appendix
    % import{chapters/appendices/}{app0A.tex}
    % clearemptydoublepage
    %
    % Apparently the guidelines don't say anything about citations or
    % bibliography styles so I guess we can use anything.
    backmatter
    nocite{*}
    bibliographystyle{ieeetr}
    refstepcounter{chapter}
    bibliography{thesisbiblio}
    clearemptydoublepage
    %
    % Add index
    %printindex
    %
    end{document}









    share|improve this question







    New contributor




    Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I am having a serious problem that I do not know how to solve. I am using overleaf and the bristol template to write my thesis. I am mostly writing in english but I need to write an abstract in greek. If i add greek to babel instantly I get compilation error. I attach the log for further insight. Thank you in advance.



      Missing endcsname inserted.

      <to be read again>
      protect
      l.341 begin{document}

      The control sequence marked <to be read again> should
      not appear between csname and endcsname.

      memoirthesis.tex, line 341
      Extra endcsname.

      <recently read> endcsname

      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      LaTeX Error: Missing begin{document}.

      No begin{document} command was found. Make sure you have included begin{document} in your preamble, and that your main document is set correctly.

      Learn more
      See the LaTeX manual or LaTeX Companion for explanation.
      Type H <return> for immediate help.
      ...

      l.341 begin{document}

      You're in trouble here. Try typing <return> to proceed.
      If that doesn't work, type X <return> to quit.

      memoirthesis.tex, line 341
      Undefined control sequence.

      The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using usepackage{...}.

      Learn more
      set@color ...@pdfcolorstack push{current@color
      }aftergroup reset@color
      l.341 begin{document}

      The control sequence at the end of the top line
      of your error message was never def'ed. If you have
      misspelled it (e.g., `hobx'), type `I' and the correct
      spelling (e.g., `Ihbox'). Otherwise just continue,
      and I'll forget about whatever was undefined.

      memoirthesis.tex, line 341
      Extra endcsname.

      declare@robustcommand ...e string #1 endcsname

      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      Missing number, treated as zero.

      <to be read again>
      csname
      l.341 begin{document}

      A number should have been here; I inserted `0'.
      (If you can't figure out why I needed to see a number,
      look up `weird error' in the index to The TeXbook.)

      memoirthesis.tex, line 341
      Extra endcsname.

      font@name ... csname T1/cmtt/m/n/12endcsname

      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      Extra endcsname.

      GenericError ...iffirstchoice@ else 6fi endcsname
      protect GenericError
      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      LaTeX Error: Font csname csname T1/cmtt/m/n/12endcsname not found.

      See the LaTeX manual or LaTeX Companion for explanation.
      Type H <return> for immediate help.
      ...

      l.341 begin{document}

      Your command was ignored.
      Type I <command> <return> to replace it with another command,
      or <return> to continue without it.

      memoirthesis.tex, line 341
      Extra endcsname.

      GenericError ...iffirstchoice@ else 6fi endcsname
      protect GenericError
      l.341 begin{document}

      (That makes 100 errors; please try again.)
      Here is how much of TeX's memory you used:
      32104 strings out of 493013
      595925 string characters out of 6135683
      888394 words of memory out of 5000000
      35034 multiletter control sequences out of 15000+600000
      15494 words of font info for 26 fonts, out of 8000000 for 9000
      1146 hyphenation exceptions out of 8191
      55i,3n,92p,1012b,152s stack positions out of 5000i,500n,10000p,200000b,80000s

      memoirthesis.tex
      ==> Fatal error occurred, no output PDF file produced!


      While the main tex is:



      %title{University of Bristol Thesis Template}
      RequirePackage[l2tabu]{nag} % Warns for incorrect (obsolete) LaTeX usage
      %
      %
      % File: memoirthesis.tex
      % Author: Victor Brena
      % Description: Contains the thesis template using memoir class,
      % which is mainly based on book class but permits better control of
      % chapter styles for example. This template is an adaptation and
      % modification of Oscar's.
      %
      % Memoir is a flexible class for typesetting poetry, fiction,
      % non-fiction and mathematical works as books, reports, articles or
      % manuscripts. CTAN repository is found at:
      % http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/
      %
      %
      % UoB guidelines for thesis presentation were found at:
      % http://www.bris.ac.uk/esu/pg/pgrcop11-12topic.pdf#page=49
      %
      % UoB guidelines:
      %
      % The dissertation must be printed on A4 white paper. Paper up to A3 may be used
      % for maps, plans, diagrams and illustrative material. Pages (apart from the
      % preliminary pages) should normally be double-sided.
      %
      % Memoir class loads useful packages by default (see manual).

      documentclass[a4paper,12pt,lenqo,openbib,oldfontcommands,twoside]{memoir} %add 'draft' to turn draft option on (see below)

      %
      %
      % Adding metadata:

      usepackage{datetime}
      usepackage{ifpdf}
      ifpdf
      pdfinfo{
      /CreationDate (D:pdfdate)
      }
      fi
      % When draft option is on.
      ifdraftdoc
      usepackage{draftwatermark} %Sets watermarks up.
      SetWatermarkScale{0.3}
      SetWatermarkText{bf Draft: today}
      fi
      %
      % Declare figure/table as a subfloat.
      newsubfloat{figure}
      newsubfloat{table}
      % Better page layout for A4 paper, see memoir manual.
      settrimmedsize{297mm}{210mm}{*}
      setlength{trimtop}{0pt}
      setlength{trimedge}{stockwidth}
      addtolength{trimedge}{-paperwidth}
      settypeblocksize{634pt}{448.13pt}{*}
      setulmargins{4cm}{*}{*}
      setlrmargins{*}{*}{1}
      setmarginnotes{17pt}{51pt}{onelineskip}
      setheadfoot{onelineskip}{2onelineskip}
      setheaderspaces{*}{2onelineskip}{*}
      checkandfixthelayout
      %
      frenchspacing
      % Font with math support: New Century Schoolbook
      usepackage{fouriernc}
      usepackage[T1]{fontenc}
      %
      % UoB guidelines:
      %
      % Text should be in double or 1.5 line spacing, and font size should be
      % chosen to ensure clarity and legibility for the main text and for any
      % quotations and footnotes. Margins should allow for eventual hard binding.
      %
      % Note: This is automatically set by memoir class. Nevertheless OnehalfSpacing
      % enables double spacing but leaves single spaced for captions for instance.
      OnehalfSpacing
      %
      % Sets numbering division level
      setsecnumdepth{subsection}
      maxsecnumdepth{subsubsection}
      %
      % Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
      % Styles document
      usepackage{calc,soul,fourier}
      makeatletter
      newlengthdlf@normtxtw
      setlengthdlf@normtxtw{textwidth}
      newsavebox{feline@chapter}
      newcommandfeline@chapter@marker[1][4cm]{%
      sboxfeline@chapter{%
      resizebox{!}{#1}{fboxsep=1pt%
      colorbox{gray}{color{white}thechapter}%
      }}%
      rotatebox{90}{%
      resizebox{%
      heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
      {!}{scshapeso@chapapp}}quad%
      raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
      }
      newcommandfeline@chm[1][4cm]{%
      sboxfeline@chapter{feline@chapter@marker[#1]}%
      makebox[0pt][c]{% aka rlap
      makebox[1cm][r]{useboxfeline@chapter}%
      }}
      makechapterstyle{daleifmodif}{
      renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
      renewcommandchaptitlefont{normalfontLargebfseriesscshape}
      renewcommandchapternamenum{} renewcommandprintchaptername{}
      renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
      renewcommandafterchapternum{parvskipmidchapskip}
      renewcommandprintchaptertitle[1]{color{gray}chaptitlefontraggedleft ##1par}
      }
      makeatother
      chapterstyle{daleifmodif}
      %
      % UoB guidelines:
      %
      % The pages should be numbered consecutively at the bottom centre of the
      % page.
      makepagestyle{myvf}
      makeoddfoot{myvf}{}{thepage}{}
      makeevenfoot{myvf}{}{thepage}{}
      makeheadrule{myvf}{textwidth}{normalrulethickness}
      makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
      makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
      pagestyle{myvf}
      %
      % Oscar's command (it works):
      % Fills blank pages until next odd-numbered page. Used to emulate single-sided
      % frontmatter. This will work for title, abstract and declaration. Though the
      % contents sections will each start on an odd-numbered page they will
      % spill over onto the even-numbered pages if extending beyond one page
      % (hopefully, this is ok).
      newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
      %
      %
      % Creates indexes for Table of Contents, List of Figures, List of Tables and Index
      makeindex
      % printglossaries below creates a list of abbreviations. gls and related
      % commands are then used throughout the text, so that latex can automatically
      % keep track of which abbreviations have already been defined in the text.
      %
      % The import command enables each chapter tex file to use relative paths when
      % accessing supplementary files. For example, to include
      % chapters/brewing/images/figure1.png from chapters/brewing/brewing.tex we can
      % use
      % includegraphics{images/figure1}
      % instead of
      % includegraphics{chapters/brewing/images/figure1}
      usepackage{import}

      % Add other packages needed for chapters here. For example:

      usepackage{lipsum} %Needed to create dummy text
      usepackage{amsfonts} %Calls Amer. Math. Soc. (AMS) fonts
      usepackage[centertags]{amsmath} %Writes maths centred down
      % usepackage{algorithm}
      usepackage[noend]{algpseudocode}
      usepackage[ruled,vlined,linesnumbered]{algorithm2e}
      usepackage{stmaryrd} %New AMS symbols
      usepackage{amssymb} %Calls AMS symbols
      usepackage{amsthm} %Calls AMS theorem environment
      usepackage{newlfont} %Helpful package for fonts and symbols
      usepackage{layouts} %Layout diagrams
      usepackage{graphicx} %Calls figure environment
      usepackage{longtable,rotating} %Long tab environments including rotation.
      usepackage{pdflscape}
      usepackage[greek,english]{babel} %For languages characters and hyphenation
      usepackage[utf8x]{inputenc}
      usepackage{mathtools}
      usepackage{adjustbox}
      usepackage{caption}



      %directly for mac
      usepackage{colortbl} %Makes coloured tables
      usepackage{wasysym} %More math symbols
      usepackage{mathrsfs} %Even more math symbols
      usepackage{float} %Helps to place figures, tables, etc.
      usepackage{verbatim} %Permits pre-formated text insertion
      usepackage{upgreek} %Calls other kind of greek alphabet
      usepackage{latexsym} %Extra symbols
      usepackage[square,numbers,
      sort&compress]{natbib} %Calls bibliography commands
      usepackage{url} %Supports url commands
      % usepackage{etex} %eTeXÕs extended support for counters
      % usepackage{fixltx2e} %Eliminates some in felicities of the
      %original LaTeX kernel


      usepackage{color} %Creates coloured text and background
      usepackage[colorlinks=true,
      allcolors=black]{hyperref} %Creates hyperlinks in cross references
      usepackage{memhfixc} %Must be used on memoir document
      %class after hyperref
      usepackage{enumerate} %For enumeration counter
      usepackage{footnote} %For footnotes
      usepackage{microtype} %Makes pdf look better.
      usepackage{rotfloat} %For rotating and float environments as tables,
      %figures, etc.
      usepackage{alltt} %LaTeX commands are not disabled in
      %verbatim-like environment
      usepackage[version=0.96]{pgf} %PGF/TikZ is a tandem of languages for producing vector graphics from a
      usepackage{tikz} %geometric/algebraic description.
      usetikzlibrary{arrows,shapes,snakes,
      automata,backgrounds,
      petri,topaths} %To use diverse features from tikz




      %
      %Reduce widows (the last line of a paragraph at the start of a page) and orphans
      % (the first line of paragraph at the end of a page)
      widowpenalty=1000
      clubpenalty=1000
      %
      % New command definitions for my thesis
      %
      newcommand{keywords}[1]{parnoindent{small{bf Keywords:} #1}} %Defines keywords small section
      newcommand{parcial}[2]{frac{partial#1}{partial#2}} %Defines a partial operator
      newcommand{vectorr}[1]{mathbf{#1}} %Defines a bold vector
      newcommand{vecol}[2]{left( %Defines a column vector
      begin{array}{c}
      displaystyle#1 \
      displaystyle#2
      end{array}right)}
      newcommand{mados}[4]{left( %Defines a 2x2 matrix
      begin{array}{cc}
      displaystyle#1 &displaystyle #2 \
      displaystyle#3 & displaystyle#4
      end{array}right)}
      newcommand{pgftextcircled}[1]{ %Defines encircled text
      setbox0=hbox{#1}%
      dimen0wd0%
      dividedimen0 by 2%
      begin{tikzpicture}[baseline=(a.base)]%
      useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
      node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
      end{tikzpicture}
      }
      newcommand{range}[1]{textnormal{range }#1} %Defines range operator
      newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
      newcommand{prom}[1]{leftlangle#1rightrangle} %Defines average operator
      newcommand{tra}[1]{textnormal{tra} : #1} %Defines trace operator
      newcommand{sign}[1]{textnormal{sign,}#1} %Defines sign operator
      newcommand{sech}[1]{textnormal{sech} #1} %Defines sech
      newcommand{diag}[1]{textnormal{diag} #1} %Defines diag operator
      newcommand{arcsech}[1]{textnormal{arcsech} #1} %Defines arcsech
      newcommand{arctanh}[1]{textnormal{arctanh} #1} %Defines arctanh
      %Change tombstone symbol
      newcommand{blackged}{hfill$blacksquare$}
      newcommand{whiteged}{hfill$square$}
      newcounter{proofcount}
      renewenvironment{proof}[1][proofname.]{par
      ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
      refstepcounter{proofcount}
      normalfont
      trivlist
      item[hskiplabelsep
      itshape
      {bfem #1}]ignorespaces
      }{%
      addtocounter{proofcount}{-1}
      popQEDendtrivlist
      }
      %
      %
      % New definition of square root:
      % it renames sqrt as oldsqrt
      letoldsqrtsqrt
      % it defines the new sqrt in terms of the old one
      defsqrt{mathpaletteDHLhksqrt}
      defDHLhksqrt#1#2{%
      setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
      advancedimen0-0.2ht0
      setbox2=hbox{vrule heightht0 depth -dimen0}%
      {box0lower0.4ptbox2}}
      %
      % My caption style
      newcommand{mycaption}[2][@empty]{
      captionnamefont{scshape}
      changecaptionwidth
      captionwidth{0.9linewidth}
      captiondelim{.:}
      indentcaption{0.75cm}
      captionstyle[centering]{}
      setlength{belowcaptionskip}{10pt}
      ifx @empty#1 caption{#2}else caption[#1]{#2}
      }
      %
      % My subcaption style
      newcommand{mysubcaption}[2][@empty]{
      subcaptionsize{small}
      hangsubcaption
      subcaptionlabelfont{rmfamily}
      sidecapstyle{raggedright}
      setlength{belowcaptionskip}{10pt}
      ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
      }
      %
      %An initial of the very first character of the content
      usepackage{lettrine}
      newcommand{initial}[1]{%
      lettrine[lines=3,lhang=0.33,nindent=0em]{
      color{gray}
      {textsc{#1}}}{}}
      %
      % Theorem styles used in my thesis
      %
      theoremstyle{plain}
      newtheorem{theo}{Theorem}[chapter]
      theoremstyle{plain}
      newtheorem{prop}{Proposition}[chapter]
      theoremstyle{plain}
      theoremstyle{definition}
      newtheorem{dfn}{Definition}[chapter]
      theoremstyle{plain}
      newtheorem{lema}{Lemma}[chapter]
      theoremstyle{plain}
      newtheorem{cor}{Corollary}[chapter]
      theoremstyle{plain}
      newtheorem{resu}{Result}[chapter]
      %
      % Hyphenation for some words
      %
      hyphenation{res-pec-tively}
      hyphenation{mono-ti-ca-lly}
      hyphenation{hypo-the-sis}
      hyphenation{para-me-ters}
      hyphenation{sol-va-bi-li-ty}
      %
      %

      begin{document}
      % UoB guidlines:
      %
      % Preliminary pages
      %
      % The five preliminary pages must be the Title Page, Abstract, Dedication
      % and Acknowledgements, Author's Declaration and Table of Contents.
      % These should be single-sided.
      %
      % Table of contents, list of tables and illustrative material
      %
      % The table of contents must list, with page numbers, all chapters,
      % sections and subsections, the list of references, bibliography, list of
      % abbreviations and appendices. The list of tables and illustrations
      % should follow the table of contents, listing with page numbers the
      % tables, photographs, diagrams, etc., in the order in which they appear
      % in the text.
      %
      frontmatter
      pagenumbering{roman}
      %
      input{frontmatter/title}
      clearemptydoublepage
      %
      input{frontmatter/title_greek}
      clearemptydoublepage
      %
      input{frontmatter/abstract}
      clearemptydoublepage
      %
      input{frontmatter/dedication}
      clearemptydoublepage
      %
      %input{frontmatter/declaration}
      %clearemptydoublepage
      %
      renewcommand{contentsname}{Table of Contents}
      maxtocdepth{subsection}
      setcounter{tocdepth}{3}
      tableofcontents*
      addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
      clearemptydoublepage
      %
      listoftables
      addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
      clearemptydoublepage
      %
      listoffigures
      addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
      clearemptydoublepage
      %
      listofalgorithms
      addtocontents{loa}{parnobreaktextbf{{scshape Algorithm} hfill Page}parnobreak}
      clearemptydoublepage
      %
      %
      % The bulk of the document is delegated to these chapter files in
      % subdirectories.
      mainmatter
      %
      import{chapters/notations/}{notations.tex}
      import{chapters/chapter01/}{chap01.tex}
      import{chapters/chapter02/}{chap02.tex}
      import{chapters/chapter03/}{chap03.tex}
      import{chapters/chapter04/}{chap04.tex}
      import{chapters/chapter05/}{chap05.tex}
      import{chapters/chapter06/}{chap06.tex}
      clearemptydoublepage
      %
      %
      % And the appendix goes here
      % appendix
      % import{chapters/appendices/}{app0A.tex}
      % clearemptydoublepage
      %
      % Apparently the guidelines don't say anything about citations or
      % bibliography styles so I guess we can use anything.
      backmatter
      nocite{*}
      bibliographystyle{ieeetr}
      refstepcounter{chapter}
      bibliography{thesisbiblio}
      clearemptydoublepage
      %
      % Add index
      %printindex
      %
      end{document}









      share|improve this question







      New contributor




      Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am having a serious problem that I do not know how to solve. I am using overleaf and the bristol template to write my thesis. I am mostly writing in english but I need to write an abstract in greek. If i add greek to babel instantly I get compilation error. I attach the log for further insight. Thank you in advance.



      Missing endcsname inserted.

      <to be read again>
      protect
      l.341 begin{document}

      The control sequence marked <to be read again> should
      not appear between csname and endcsname.

      memoirthesis.tex, line 341
      Extra endcsname.

      <recently read> endcsname

      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      LaTeX Error: Missing begin{document}.

      No begin{document} command was found. Make sure you have included begin{document} in your preamble, and that your main document is set correctly.

      Learn more
      See the LaTeX manual or LaTeX Companion for explanation.
      Type H <return> for immediate help.
      ...

      l.341 begin{document}

      You're in trouble here. Try typing <return> to proceed.
      If that doesn't work, type X <return> to quit.

      memoirthesis.tex, line 341
      Undefined control sequence.

      The compiler is having trouble understanding a command you have used. Check that the command is spelled correctly. If the command is part of a package, make sure you have included the package in your preamble using usepackage{...}.

      Learn more
      set@color ...@pdfcolorstack push{current@color
      }aftergroup reset@color
      l.341 begin{document}

      The control sequence at the end of the top line
      of your error message was never def'ed. If you have
      misspelled it (e.g., `hobx'), type `I' and the correct
      spelling (e.g., `Ihbox'). Otherwise just continue,
      and I'll forget about whatever was undefined.

      memoirthesis.tex, line 341
      Extra endcsname.

      declare@robustcommand ...e string #1 endcsname

      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      Missing number, treated as zero.

      <to be read again>
      csname
      l.341 begin{document}

      A number should have been here; I inserted `0'.
      (If you can't figure out why I needed to see a number,
      look up `weird error' in the index to The TeXbook.)

      memoirthesis.tex, line 341
      Extra endcsname.

      font@name ... csname T1/cmtt/m/n/12endcsname

      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      Extra endcsname.

      GenericError ...iffirstchoice@ else 6fi endcsname
      protect GenericError
      l.341 begin{document}

      I'm ignoring this, since I wasn't doing a csname.

      memoirthesis.tex, line 341
      LaTeX Error: Font csname csname T1/cmtt/m/n/12endcsname not found.

      See the LaTeX manual or LaTeX Companion for explanation.
      Type H <return> for immediate help.
      ...

      l.341 begin{document}

      Your command was ignored.
      Type I <command> <return> to replace it with another command,
      or <return> to continue without it.

      memoirthesis.tex, line 341
      Extra endcsname.

      GenericError ...iffirstchoice@ else 6fi endcsname
      protect GenericError
      l.341 begin{document}

      (That makes 100 errors; please try again.)
      Here is how much of TeX's memory you used:
      32104 strings out of 493013
      595925 string characters out of 6135683
      888394 words of memory out of 5000000
      35034 multiletter control sequences out of 15000+600000
      15494 words of font info for 26 fonts, out of 8000000 for 9000
      1146 hyphenation exceptions out of 8191
      55i,3n,92p,1012b,152s stack positions out of 5000i,500n,10000p,200000b,80000s

      memoirthesis.tex
      ==> Fatal error occurred, no output PDF file produced!


      While the main tex is:



      %title{University of Bristol Thesis Template}
      RequirePackage[l2tabu]{nag} % Warns for incorrect (obsolete) LaTeX usage
      %
      %
      % File: memoirthesis.tex
      % Author: Victor Brena
      % Description: Contains the thesis template using memoir class,
      % which is mainly based on book class but permits better control of
      % chapter styles for example. This template is an adaptation and
      % modification of Oscar's.
      %
      % Memoir is a flexible class for typesetting poetry, fiction,
      % non-fiction and mathematical works as books, reports, articles or
      % manuscripts. CTAN repository is found at:
      % http://www.ctan.org/tex-archive/macros/latex/contrib/memoir/
      %
      %
      % UoB guidelines for thesis presentation were found at:
      % http://www.bris.ac.uk/esu/pg/pgrcop11-12topic.pdf#page=49
      %
      % UoB guidelines:
      %
      % The dissertation must be printed on A4 white paper. Paper up to A3 may be used
      % for maps, plans, diagrams and illustrative material. Pages (apart from the
      % preliminary pages) should normally be double-sided.
      %
      % Memoir class loads useful packages by default (see manual).

      documentclass[a4paper,12pt,lenqo,openbib,oldfontcommands,twoside]{memoir} %add 'draft' to turn draft option on (see below)

      %
      %
      % Adding metadata:

      usepackage{datetime}
      usepackage{ifpdf}
      ifpdf
      pdfinfo{
      /CreationDate (D:pdfdate)
      }
      fi
      % When draft option is on.
      ifdraftdoc
      usepackage{draftwatermark} %Sets watermarks up.
      SetWatermarkScale{0.3}
      SetWatermarkText{bf Draft: today}
      fi
      %
      % Declare figure/table as a subfloat.
      newsubfloat{figure}
      newsubfloat{table}
      % Better page layout for A4 paper, see memoir manual.
      settrimmedsize{297mm}{210mm}{*}
      setlength{trimtop}{0pt}
      setlength{trimedge}{stockwidth}
      addtolength{trimedge}{-paperwidth}
      settypeblocksize{634pt}{448.13pt}{*}
      setulmargins{4cm}{*}{*}
      setlrmargins{*}{*}{1}
      setmarginnotes{17pt}{51pt}{onelineskip}
      setheadfoot{onelineskip}{2onelineskip}
      setheaderspaces{*}{2onelineskip}{*}
      checkandfixthelayout
      %
      frenchspacing
      % Font with math support: New Century Schoolbook
      usepackage{fouriernc}
      usepackage[T1]{fontenc}
      %
      % UoB guidelines:
      %
      % Text should be in double or 1.5 line spacing, and font size should be
      % chosen to ensure clarity and legibility for the main text and for any
      % quotations and footnotes. Margins should allow for eventual hard binding.
      %
      % Note: This is automatically set by memoir class. Nevertheless OnehalfSpacing
      % enables double spacing but leaves single spaced for captions for instance.
      OnehalfSpacing
      %
      % Sets numbering division level
      setsecnumdepth{subsection}
      maxsecnumdepth{subsubsection}
      %
      % Chapter style (taken and slightly modified from Lars Madsen Memoir Chapter
      % Styles document
      usepackage{calc,soul,fourier}
      makeatletter
      newlengthdlf@normtxtw
      setlengthdlf@normtxtw{textwidth}
      newsavebox{feline@chapter}
      newcommandfeline@chapter@marker[1][4cm]{%
      sboxfeline@chapter{%
      resizebox{!}{#1}{fboxsep=1pt%
      colorbox{gray}{color{white}thechapter}%
      }}%
      rotatebox{90}{%
      resizebox{%
      heightof{usebox{feline@chapter}}+depthof{usebox{feline@chapter}}}%
      {!}{scshapeso@chapapp}}quad%
      raisebox{depthof{usebox{feline@chapter}}}{usebox{feline@chapter}}%
      }
      newcommandfeline@chm[1][4cm]{%
      sboxfeline@chapter{feline@chapter@marker[#1]}%
      makebox[0pt][c]{% aka rlap
      makebox[1cm][r]{useboxfeline@chapter}%
      }}
      makechapterstyle{daleifmodif}{
      renewcommandchapnamefont{normalfontLargescshaperaggedleftso}
      renewcommandchaptitlefont{normalfontLargebfseriesscshape}
      renewcommandchapternamenum{} renewcommandprintchaptername{}
      renewcommandprintchapternum{nullhfillfeline@chm[2.5cm]par}
      renewcommandafterchapternum{parvskipmidchapskip}
      renewcommandprintchaptertitle[1]{color{gray}chaptitlefontraggedleft ##1par}
      }
      makeatother
      chapterstyle{daleifmodif}
      %
      % UoB guidelines:
      %
      % The pages should be numbered consecutively at the bottom centre of the
      % page.
      makepagestyle{myvf}
      makeoddfoot{myvf}{}{thepage}{}
      makeevenfoot{myvf}{}{thepage}{}
      makeheadrule{myvf}{textwidth}{normalrulethickness}
      makeevenhead{myvf}{smalltextsc{leftmark}}{}{}
      makeoddhead{myvf}{}{}{smalltextsc{rightmark}}
      pagestyle{myvf}
      %
      % Oscar's command (it works):
      % Fills blank pages until next odd-numbered page. Used to emulate single-sided
      % frontmatter. This will work for title, abstract and declaration. Though the
      % contents sections will each start on an odd-numbered page they will
      % spill over onto the even-numbered pages if extending beyond one page
      % (hopefully, this is ok).
      newcommand{clearemptydoublepage}{newpage{thispagestyle{empty}cleardoublepage}}
      %
      %
      % Creates indexes for Table of Contents, List of Figures, List of Tables and Index
      makeindex
      % printglossaries below creates a list of abbreviations. gls and related
      % commands are then used throughout the text, so that latex can automatically
      % keep track of which abbreviations have already been defined in the text.
      %
      % The import command enables each chapter tex file to use relative paths when
      % accessing supplementary files. For example, to include
      % chapters/brewing/images/figure1.png from chapters/brewing/brewing.tex we can
      % use
      % includegraphics{images/figure1}
      % instead of
      % includegraphics{chapters/brewing/images/figure1}
      usepackage{import}

      % Add other packages needed for chapters here. For example:

      usepackage{lipsum} %Needed to create dummy text
      usepackage{amsfonts} %Calls Amer. Math. Soc. (AMS) fonts
      usepackage[centertags]{amsmath} %Writes maths centred down
      % usepackage{algorithm}
      usepackage[noend]{algpseudocode}
      usepackage[ruled,vlined,linesnumbered]{algorithm2e}
      usepackage{stmaryrd} %New AMS symbols
      usepackage{amssymb} %Calls AMS symbols
      usepackage{amsthm} %Calls AMS theorem environment
      usepackage{newlfont} %Helpful package for fonts and symbols
      usepackage{layouts} %Layout diagrams
      usepackage{graphicx} %Calls figure environment
      usepackage{longtable,rotating} %Long tab environments including rotation.
      usepackage{pdflscape}
      usepackage[greek,english]{babel} %For languages characters and hyphenation
      usepackage[utf8x]{inputenc}
      usepackage{mathtools}
      usepackage{adjustbox}
      usepackage{caption}



      %directly for mac
      usepackage{colortbl} %Makes coloured tables
      usepackage{wasysym} %More math symbols
      usepackage{mathrsfs} %Even more math symbols
      usepackage{float} %Helps to place figures, tables, etc.
      usepackage{verbatim} %Permits pre-formated text insertion
      usepackage{upgreek} %Calls other kind of greek alphabet
      usepackage{latexsym} %Extra symbols
      usepackage[square,numbers,
      sort&compress]{natbib} %Calls bibliography commands
      usepackage{url} %Supports url commands
      % usepackage{etex} %eTeXÕs extended support for counters
      % usepackage{fixltx2e} %Eliminates some in felicities of the
      %original LaTeX kernel


      usepackage{color} %Creates coloured text and background
      usepackage[colorlinks=true,
      allcolors=black]{hyperref} %Creates hyperlinks in cross references
      usepackage{memhfixc} %Must be used on memoir document
      %class after hyperref
      usepackage{enumerate} %For enumeration counter
      usepackage{footnote} %For footnotes
      usepackage{microtype} %Makes pdf look better.
      usepackage{rotfloat} %For rotating and float environments as tables,
      %figures, etc.
      usepackage{alltt} %LaTeX commands are not disabled in
      %verbatim-like environment
      usepackage[version=0.96]{pgf} %PGF/TikZ is a tandem of languages for producing vector graphics from a
      usepackage{tikz} %geometric/algebraic description.
      usetikzlibrary{arrows,shapes,snakes,
      automata,backgrounds,
      petri,topaths} %To use diverse features from tikz




      %
      %Reduce widows (the last line of a paragraph at the start of a page) and orphans
      % (the first line of paragraph at the end of a page)
      widowpenalty=1000
      clubpenalty=1000
      %
      % New command definitions for my thesis
      %
      newcommand{keywords}[1]{parnoindent{small{bf Keywords:} #1}} %Defines keywords small section
      newcommand{parcial}[2]{frac{partial#1}{partial#2}} %Defines a partial operator
      newcommand{vectorr}[1]{mathbf{#1}} %Defines a bold vector
      newcommand{vecol}[2]{left( %Defines a column vector
      begin{array}{c}
      displaystyle#1 \
      displaystyle#2
      end{array}right)}
      newcommand{mados}[4]{left( %Defines a 2x2 matrix
      begin{array}{cc}
      displaystyle#1 &displaystyle #2 \
      displaystyle#3 & displaystyle#4
      end{array}right)}
      newcommand{pgftextcircled}[1]{ %Defines encircled text
      setbox0=hbox{#1}%
      dimen0wd0%
      dividedimen0 by 2%
      begin{tikzpicture}[baseline=(a.base)]%
      useasboundingbox (-thedimen0,0pt) rectangle (thedimen0,1pt);
      node[circle,draw,outer sep=0pt,inner sep=0.1ex] (a) {#1};
      end{tikzpicture}
      }
      newcommand{range}[1]{textnormal{range }#1} %Defines range operator
      newcommand{innerp}[2]{leftlangle#1,#2rightrangle} %Defines inner product
      newcommand{prom}[1]{leftlangle#1rightrangle} %Defines average operator
      newcommand{tra}[1]{textnormal{tra} : #1} %Defines trace operator
      newcommand{sign}[1]{textnormal{sign,}#1} %Defines sign operator
      newcommand{sech}[1]{textnormal{sech} #1} %Defines sech
      newcommand{diag}[1]{textnormal{diag} #1} %Defines diag operator
      newcommand{arcsech}[1]{textnormal{arcsech} #1} %Defines arcsech
      newcommand{arctanh}[1]{textnormal{arctanh} #1} %Defines arctanh
      %Change tombstone symbol
      newcommand{blackged}{hfill$blacksquare$}
      newcommand{whiteged}{hfill$square$}
      newcounter{proofcount}
      renewenvironment{proof}[1][proofname.]{par
      ifnum theproofcount>0 pushQED{whiteged} else pushQED{blackged} fi%
      refstepcounter{proofcount}
      normalfont
      trivlist
      item[hskiplabelsep
      itshape
      {bfem #1}]ignorespaces
      }{%
      addtocounter{proofcount}{-1}
      popQEDendtrivlist
      }
      %
      %
      % New definition of square root:
      % it renames sqrt as oldsqrt
      letoldsqrtsqrt
      % it defines the new sqrt in terms of the old one
      defsqrt{mathpaletteDHLhksqrt}
      defDHLhksqrt#1#2{%
      setbox0=hbox{$#1oldsqrt{#2,}$}dimen0=ht0
      advancedimen0-0.2ht0
      setbox2=hbox{vrule heightht0 depth -dimen0}%
      {box0lower0.4ptbox2}}
      %
      % My caption style
      newcommand{mycaption}[2][@empty]{
      captionnamefont{scshape}
      changecaptionwidth
      captionwidth{0.9linewidth}
      captiondelim{.:}
      indentcaption{0.75cm}
      captionstyle[centering]{}
      setlength{belowcaptionskip}{10pt}
      ifx @empty#1 caption{#2}else caption[#1]{#2}
      }
      %
      % My subcaption style
      newcommand{mysubcaption}[2][@empty]{
      subcaptionsize{small}
      hangsubcaption
      subcaptionlabelfont{rmfamily}
      sidecapstyle{raggedright}
      setlength{belowcaptionskip}{10pt}
      ifx @empty#1 subcaption{#2}else subcaption[#1]{#2}
      }
      %
      %An initial of the very first character of the content
      usepackage{lettrine}
      newcommand{initial}[1]{%
      lettrine[lines=3,lhang=0.33,nindent=0em]{
      color{gray}
      {textsc{#1}}}{}}
      %
      % Theorem styles used in my thesis
      %
      theoremstyle{plain}
      newtheorem{theo}{Theorem}[chapter]
      theoremstyle{plain}
      newtheorem{prop}{Proposition}[chapter]
      theoremstyle{plain}
      theoremstyle{definition}
      newtheorem{dfn}{Definition}[chapter]
      theoremstyle{plain}
      newtheorem{lema}{Lemma}[chapter]
      theoremstyle{plain}
      newtheorem{cor}{Corollary}[chapter]
      theoremstyle{plain}
      newtheorem{resu}{Result}[chapter]
      %
      % Hyphenation for some words
      %
      hyphenation{res-pec-tively}
      hyphenation{mono-ti-ca-lly}
      hyphenation{hypo-the-sis}
      hyphenation{para-me-ters}
      hyphenation{sol-va-bi-li-ty}
      %
      %

      begin{document}
      % UoB guidlines:
      %
      % Preliminary pages
      %
      % The five preliminary pages must be the Title Page, Abstract, Dedication
      % and Acknowledgements, Author's Declaration and Table of Contents.
      % These should be single-sided.
      %
      % Table of contents, list of tables and illustrative material
      %
      % The table of contents must list, with page numbers, all chapters,
      % sections and subsections, the list of references, bibliography, list of
      % abbreviations and appendices. The list of tables and illustrations
      % should follow the table of contents, listing with page numbers the
      % tables, photographs, diagrams, etc., in the order in which they appear
      % in the text.
      %
      frontmatter
      pagenumbering{roman}
      %
      input{frontmatter/title}
      clearemptydoublepage
      %
      input{frontmatter/title_greek}
      clearemptydoublepage
      %
      input{frontmatter/abstract}
      clearemptydoublepage
      %
      input{frontmatter/dedication}
      clearemptydoublepage
      %
      %input{frontmatter/declaration}
      %clearemptydoublepage
      %
      renewcommand{contentsname}{Table of Contents}
      maxtocdepth{subsection}
      setcounter{tocdepth}{3}
      tableofcontents*
      addtocontents{toc}{parnobreak mbox{}hfill{bf Page}parnobreak}
      clearemptydoublepage
      %
      listoftables
      addtocontents{lot}{parnobreaktextbf{{scshape Table} hfill Page}parnobreak}
      clearemptydoublepage
      %
      listoffigures
      addtocontents{lof}{parnobreaktextbf{{scshape Figure} hfill Page}parnobreak}
      clearemptydoublepage
      %
      listofalgorithms
      addtocontents{loa}{parnobreaktextbf{{scshape Algorithm} hfill Page}parnobreak}
      clearemptydoublepage
      %
      %
      % The bulk of the document is delegated to these chapter files in
      % subdirectories.
      mainmatter
      %
      import{chapters/notations/}{notations.tex}
      import{chapters/chapter01/}{chap01.tex}
      import{chapters/chapter02/}{chap02.tex}
      import{chapters/chapter03/}{chap03.tex}
      import{chapters/chapter04/}{chap04.tex}
      import{chapters/chapter05/}{chap05.tex}
      import{chapters/chapter06/}{chap06.tex}
      clearemptydoublepage
      %
      %
      % And the appendix goes here
      % appendix
      % import{chapters/appendices/}{app0A.tex}
      % clearemptydoublepage
      %
      % Apparently the guidelines don't say anything about citations or
      % bibliography styles so I guess we can use anything.
      backmatter
      nocite{*}
      bibliographystyle{ieeetr}
      refstepcounter{chapter}
      bibliography{thesisbiblio}
      clearemptydoublepage
      %
      % Add index
      %printindex
      %
      end{document}






      pdftex babel






      share|improve this question







      New contributor




      Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 14 mins ago









      Marinos ZagkotsisMarinos Zagkotsis

      1




      1




      New contributor




      Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Marinos Zagkotsis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Marinos Zagkotsis is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476680%2fpdflatex-template-and-greek-language-produces-compilation-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Marinos Zagkotsis is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Marinos Zagkotsis is a new contributor. Be nice, and check out our Code of Conduct.













          Marinos Zagkotsis is a new contributor. Be nice, and check out our Code of Conduct.












          Marinos Zagkotsis is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476680%2fpdflatex-template-and-greek-language-produces-compilation-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

          Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

          Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...