This forum has always been a great source of quick and sophisticated help. So I hope you can show me how it's done once again!
I will soon have to write my final thesis at university and up until now I managed to get along with pdfLaTeX quite well and I grew very fond of it. But now the problems I cannot seem to resolve start to pile up, mostly due to different languages I have to use in one text. So everybody keeps suggesting that I should change to XeLaTeX because it handles different fonts/languages better. On the other hand I have an extensive preamble (mostly because I need a quite 'special' kind of bibliography) and I cannot find out which packages are compatible with XeLaTeX and which are not or if there are better options.
I have already read the thread Moving from pdfLaTeX to XeTeX - what do I need to know? and Using XeLaTeX instead of pdfLaTeX but they don't cover everything I need...
%Preamble%
\documentclass[a4paper,12pt,numbers=endperiod]{scrartcl}
\usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2cm,footskip=1cm]{geometry}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{caption}
\usepackage{filecontents}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{yfonts}
\usepackage{hyperref}
\usepackage{pdfpages}
%\usepackage{showframe}
\usepackage{lipsum}
%%Tables%%
\usepackage{array,booktabs,xcolor,colortbl}
\usepackage{multirow}
\usepackage{diagbox}
\newcommand{\specialcell}[2][c]{%
\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}
%%Encoding%%
\usepackage{lmodern}
\usepackage[footnote,printonlyused]{acronym}
\usepackage[utf8]{inputenc}
\usepackage[T2A,T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{tipa}
\usepackage{csquotes}
\usepackage{combelow}
%%Footnotes%%
\usepackage{footnote}
\makesavenoteenv{tabular}
\makesavenoteenv{table}
\setkomafont{disposition}{\mdseries\rmfamily}
\onehalfspacing
\captionsetup[table]{skip=5pt,font=footnotesize}
\deffootnote[1.0em]{1.0em}{1.0em}
{\textsuperscript{\thefootnotemark}\,\enskip}
\renewcommand{\baselinestretch}{1.5}
%%Inhaltverzeichnis%%
\usepackage{tocstyle}
\usetocstyle{allwithdot}
%%Bibliography%%
\usepackage[nottoc,notlot,notlof]{tocbibind}
\usepackage[backend=biber,style=authoryear,sorting=nyt]{biblatex}
\addbibresource{Bibliography.bib}
\DefineBibliographyStrings{ngerman}{references={Bibliographie}}
\DeclareFieldFormat{superedition}{\textsuperscript{#1}}
\DeclareNameAlias{sortname}{last-first}
\renewbibmacro*{date+extrayear}{%
\iffieldundef{\thefield{datelabelsource}year}%
{}{%
\printtext[parens]{%
\iffieldnum{edition}{\printfield[superedition]{edition}\global\clearfield{edition}}{}%
\iffieldsequal{year}{\thefield{datelabelsource}year}%
{\printdateextralabel}{\printfield{labelyear}\printfield{extrayear}}%
}%
}%
}
\renewcommand*{\bibpagespunct}{\addcomma\space}
\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat{editortype}{\mkbibparens{#1}}
\renewbibmacro*{byeditor+others}{%
\ifnameundef{editor}
{}{%
\printnames[byeditor]{editor}%
\setunit{\addspace}%
\usebibmacro{byeditor+othersstrg}%
\clearname{editor}\newunit%
}%
\usebibmacro{byeditorx}%
\usebibmacro{bytranslator+others}%
}
\renewbibmacro*{byeditor+othersstrg}{\usebibmacro{editor+othersstrg}}
\renewbibmacro*{bytranslator+othersstrg}{\usebibmacro{translator+othersstrg}}
\renewbibmacro*{bytypestrg}[2]{%
\iffieldundef{#1type}{\bibstring{#2}}{%
\ifbibxstring{\thefield{#1type}}%
{\bibstring{\thefield{#1type}}}{\printtext{\thefield{#1type}}}%
}%
}
\renewcommand*{\multinamedelim}{/}
\renewcommand*{\finalnamedelim}{/}
\renewcommand*{\postnotedelim}{\addcolon\space}
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
\renewcommand*{\labelnamepunct}{\addcolon\space}
\newcounter{SprachB}
\newcommand{\SprachB}[1]{\refstepcounter{SprachB}\label{#1}}
\usepackage{etoolbox}
\AtBeginEnvironment{quote}{\singlespacing\footnotesize}
\DeclareRobustCommand{\cyrins}[1]{
\begingroup\fontencoding{T2A}%
\begingroup\fontfamily{cmr}%
\foreignlanguage{russian}{#1}%
\endgroup\endgroup
}
\hyphenation{Script-Oralia}
%Document%
\begin{document}
\pagenumbering{arabic}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[R]{\thepage\hspace{.5cm}}
\setcounter{page}{3}
\begin{spacing}{1.3}
\lipsum
\end{spacing}
\end{document}
All in all I want to be able to use:
- mostly German in the main text
- Romanian because that's the language I'm studying (special characters needed!)
- other unproblematic european languages like English, French and Portuguese
- IPA-symbols since the thesis is about phonology
- Cyrillic characters that can be found on a standard keyboard today
- old Cyrillic (and Glagolitic) characters
- Japanese characters (Hiragana, Katakana and Kanji)
I really hope this is not too big a problem because my thesis on writing and phonology will be hard to manage without the list above.
Of course, if you can think of a way to do all that in pdfLaTeX then I'd be happy to try it as well.
Two final pieces of information: I'm using the TexMaker (but I could move to another compiler if that makes anything easier) and OpenSuse is my OS (so I'm not sure if all extensions are available for me to download)
Thank you so much in advance!!
LuaLaTeX, which deals with fonts as well asXeLaTeXbut has additional features. – JPi Aug 07 '17 at 16:22