also ich hab schon einige Threads dazu durchgelesen. Entweder es gab darauf keine gute Antwort oder die Lösung hat bei mir nicht geklappt. Die Umlaute und das "ß" funktionieren leider nicht.
Kurz gefasst: Bin noch recht unerfahren und hab auch den verbotenen Fehler gemacht mir aus einer Vorlage gewisse Dinge rauszukopieren, aber ich käme ansonsten nicht weiter bei meinem Layout..
Habe es mit Polyglossia probiert (siehe % Code) aber das hat nicht funktioniert bzw. clasht mit etwas, was ich noch nicht rausgefunden habe. Natürlich ist das Problem, dass ich meinen Code nun nicht genau kenne, aber deshalb muss ich euch fragen, was falsch ist. (Ich weiß... viele Sachen sollte ich raushauen, wenn ich sie nicht brauche.. hab aber schon viel entfernt)
Benutze TexShop 3.88 (Mac) - Kodierung Westeuropäisch Mac OS Lateinisch
Biber + Biblatex funktioniert alles gut.
Die Schriftart Garamond Pro Regular besitzt übrigens die Umlaute in seiner .otf Datei.
Was mach ich falsch? Wäre euch unendlich dankbar, wenn ihr meine Fehler findet bzw. meinen Code verbessert und mir was beibringt. :/
LG Philipp
%!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode \documentclass{Dissertate} \usepackage[ngerman]{babel} \usepackage[babel,german=quotes]{csquotes} % \usepackage{xltxtra} % \defaultfontfeatures{Mapping=tex-text} % \usepackage{polyglossia} % \setdefaultlanguage[spelling=new]{german} % \XeTeXinputencoding=latin1 \setmainfont{AGaramondPro-Regular} \usepackage[ backend=biber, style=authoryear, natbib=true, url=true, doi=false, eprint=false ]{biblatex} \addbibresource{references.bib} \begin{document} % the front matter % \input{frontmatter/personalize} %\maketitle % \copyrightpage \frontmatter \setstretch{\dnormalspacing} % \abstractpage % \tableofcontents % %\authorlist % \listoffigures % \dedicationpage % \acknowledgments % \doublespacing % include each chapter... \setcounter{chapter}{0} \include{chapters/introduction} \include{chapters/chapter1} %\include{chapters/chapter2} %\include{chapters/chapter3} %\include{chapters/conclusion} \setstretch{\dnormalspacing} % the back matter \clearpage % \bibliography{references} % \addcontentsline{toc}{chapter}{References} % \bibliographystyle{authoryear} \printbibliography \include{endmatter/colophon} \end{document}
% ------------------------------------------------------------------- % @LaTeX-class-file{ % filename = "Dissertate.cls", % version = "2.0", % date = "25 March 2014", % codetable = "ISO/ASCII", % keywords = "LaTeX, Dissertate", % supported = "Send email to suchow@post.harvard.edu.", % docstring = "Class for a dissertation." % -------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} \ProvidesClass{Dissertate}[2014/03/25 v2.0 Dissertate Class] \LoadClass[12pt, oneside, letterpaperpaper]{book} % Options \RequirePackage{etoolbox} % Line spacing: dsingle/ddouble % Whether to use single- or doublespacing. \newtoggle{DissertateSingleSpace} \togglefalse{DissertateSingleSpace} \DeclareOption{dsingle}{ \toggletrue{DissertateSingleSpace} \ClassWarning{Dissertate}{Single-spaced mode on.} } \DeclareOption{ddouble}{\togglefalse{DissertateSingleSpace}} \ProcessOptions\relax % Line Spacing % Define two line spacings: one for the body, and one that is more compressed. \iftoggle{DissertateSingleSpace}{ \newcommand{\dnormalspacing}{1.5} \newcommand{\dcompressedspacing}{1.2} }{ \newcommand{\dnormalspacing}{1.5} \newcommand{\dcompressedspacing}{1.2} } % Block quote with compressed spacing \let\oldquote\quote \let\endoldquote\endquote \renewenvironment{quote} {\begin{spacing}{\dcompressedspacing}\oldquote} {\endoldquote\end{spacing}} % Itemize with compressed spacing \let\olditemize\itemize \let\endolditemize\enditemize \renewenvironment{itemize} {\begin{spacing}{\dcompressedspacing}\olditemize} {\endolditemize\end{spacing}} % Enumerate with compressed spacing \let\oldenumerate\enumerate \let\endoldenumerate\endenumerate \renewenvironment{enumerate} {\begin{spacing}{\dcompressedspacing}\oldenumerate} {\endoldenumerate\end{spacing}} % Text layout \RequirePackage[width=5.8in, height=8.5in, letterpaper]{geometry} \usepackage{ragged2e} \RequirePackage{graphicx} \RequirePackage{fixltx2e} \parindent 15pt \RequirePackage{lettrine} \RequirePackage{setspace} \RequirePackage{verbatim} % Fonts \RequirePackage{color} \RequirePackage{xcolor} \usepackage{hyperref} \RequirePackage{url} \RequirePackage{amssymb} \RequirePackage{mathspec} \setmathsfont(Digits,Latin,Greek)[Numbers={Proportional}]{AGaramondPro-Regular} \setmathrm{AGaramondPro-Regular} \AtBeginEnvironment{tabular}{\addfontfeature{RawFeature=+tnum}} \widowpenalty=300 \clubpenalty=300 \setromanfont[Numbers=OldStyle, Ligatures={Common, TeX}, Scale=1.0]{AGaramondPro-Regular} \newfontfamily{\smallcaps}[RawFeature={+c2sc,+scmp}]{AGaramondPro-Regular} \setsansfont[Scale=MatchLowercase, BoldFont={Lato Bold}]{Lato Regular} \setmonofont[Scale=MatchLowercase]{Source Code Pro} \RequirePackage[labelfont={bf,sf,footnotesize,singlespacing}, textfont={sf,footnotesize,singlespacing}, justification={justified,RaggedRight}, singlelinecheck=false, margin=0pt, figurewithin=chapter, tablewithin=chapter]{caption} \renewcommand{\thefootnote}{\fnsymbol{footnote}} \RequirePackage{microtype} % Headings and headers. \RequirePackage{fancyhdr} \RequirePackage[tiny, md, sc]{titlesec} \setlength{\headheight}{15pt} \pagestyle{plain} \RequirePackage{titling} % Front matter. \setcounter{tocdepth}{2} \usepackage[titles]{tocloft} \usepackage[titletoc]{appendix} \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} \renewcommand{\cftchapfont}{\normalsize \scshape} \renewcommand\listfigurename{Listing of figures} \renewcommand\listtablename{Listing of tables} % Endmatter \renewcommand{\setthesection}{\arabic{chapter}.A\arabic{section}} % References \RequirePackage[palatino]{quotchap} \renewcommand*{\chapterheadstartvskip}{\vspace*{-0.5\baselineskip}} \renewcommand*{\chapterheadendvskip}{\vspace{1.3\baselineskip}} % An environment for paragraph-style section. \providecommand\newthought[1]{ % \addvspace{1.0\baselineskip plus 0.5ex minus 0.2ex} % \noindent\textsc{#1} % } % Align reference numbers so that they do not cause an indent. \newlength\mybibindent \setlength\mybibindent{0pt} \renewenvironment{thebibliography}[1] {\chapter*{\references}% \@mkboth{\MakeUppercase\references}{\MakeUppercase\references}% \list{\@biblabel{\@arabic\c@enumiv}} {\settowidth\labelwidth{\@biblabel{999}} \leftmargin\labelwidth \advance\leftmargin\dimexpr\labelsep+\mybibindent\relax\itemindent-\mybibindent \@openbib@code \usecounter{enumiv} \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}} \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty \widowpenalty4000% \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}} \endlist} % Chapter Color: \definecolor{Color}{rgb}{0.5, 0.5, 0.5} % Crimson \definecolor{chaptergrey}{rgb}{0.5, 0.5, 0.5} \hypersetup{ colorlinks, citecolor=Color, filecolor=black, linkcolor=black, urlcolor=Color, } % Formatting guidelines: \renewcommand{\frontmatter}{ %\input{frontmatter/personalize} \maketitle %\copyrightpage \abstractpage \tableofcontents % \listoffigures \acknowledgments \dedicationpage } \renewcommand{\maketitle}{ \thispagestyle{empty} \input{frontmatter/personalize} } \newcommand{\copyrightpage}{ \newpage \thispagestyle{empty} \vspace*{\fill} \scshape \noindent \small \copyright \small 2014\hspace{3pt}-- \theauthor \\ \noindent all rights reserved. \vspace*{\fill} \newpage \rm } \newcommand{\abstractpage}{ \newpage \pagenumbering{roman} \setcounter{page}{2} \chapter*{Abstract} \noindent \input{frontmatter/abstract} \vspace*{\fill} \newpage } \newcommand{\dedicationpage}{ \newpage \vspace*{\fill} \begin{center}\scshape \noindent \input{frontmatter/dedication}\end{center} \vspace*{\fill} \newpage \rm \setcounter{page}{1} \pagenumbering{arabic} } \newcommand{\acknowledgments}{ \chapter*{Danksagung} \noindent \input{frontmatter/thanks} \vspace*{\fill} \newpage } \renewcommand{\backmatter}{ % \begin{appendices} % \include{chapters/appendixA} % \end{appendices} \input{endmatter/personalize} \clearpage \bibliography{references} \addcontentsline{toc}{chapter}{References} \bibliographystyle{authoryear} \include{endmatter/colophon} }