
Ich habe mir also eine Vorlage für einen Lebenslauf heruntergeladen. Sie verwendet XeLaTeX. Ich würde gerne die Schriftart ändern, aber ich habe die Hoffnung aufgegeben, herauszufinden, wie ich das machen soll. Mein Betriebssystem ist Windows 7. Hier ist ein funktionsfähiger Code, der die Originalschriftart Fontin verwendet. Ich habe ihn heruntergeladen, damit er funktioniert, und ich würde gerne etwas anderes verwenden (und etwas, das Akzente verwendet (ich spreche Französisch)!)
\documentclass[a4paper,10pt]{article} % Default font size and paper size
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{textpos}
\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}
\usepackage{xunicode,xltxtra,url,parskip} % Formatting packages
\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors
\usepackage[big]{layaureo}
\usepackage{hyperref} % Required for adding links and customizing them
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document
\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\raggedright}{}{0em}{} % Text formatting of sections
\titlespacing{\section}{0pt}{2pt}{2pt} % Spacing around sections
\usepackage{vmargin}
\usepackage{fullpage}
\begin{document}
\setmarginsrb{25mm}{0mm}{30mm}{0mm}{1cm}{5mm}{1mm}{10mm}
\pagestyle{empty} % Removes page numbering
\font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section
\par{\Huge TacTac \textsc{TicToc} - OncheOnche \bigskip\par}
\par{\Huge \hspace{8mm} huehuehue \bigskip\par}
\section{Données personnelles}
\begin{textblock}{.9}(0,0)
\rule{97mm}{0.09mm}
\end{textblock}
\begin{tabular}{rl}
\textsc{Date de naissance:} & 01 brumeneige 3030 \\
\textsc{Adresse:} & Somewhere, sometimes \\
\textsc{Téléphone:} & +123456789\\
\textsc{Email:} & what about
\end{tabular}
\section{Objectifs}\titlerule
I met a traveler from an antic land who said : Two vast and trunkless legs of stone stand in the desert... \\
%----------------------------------------------------------------------------------------
% EDUCATION
%------------------------------------------------------------------------------- ---------
\end{document}
Ich glaube, das Problem liegt an den Leitungen
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}
Aber ich weiß nicht, was ich ändern muss, wo sucht der Compiler nach den Schriftarten ... Ich habe andere Fragen gesehen, die meinen ähnlich sehen, aber alle unter Linux laufen. Ich habe auch gesehen, dass es Probleme mit Schriftarten geben könnte, die Leerzeichen im Namen haben (ernsthaft ...?) ... Wie auch immer. Hat jemand eine Idee?
Antwort1
Reduzieren Sie Ihr Dokument auf das für diese Frage erforderliche Minimum (sieheminimales Arbeitsbeispiel (MWE)für weitere Details), im Folgenden wird gezeigt, wie Sie die Hauptschriftart Ihres Dokuments mit ändern \setmainfont
:
\documentclass{article}
\usepackage{lipsum} % add nonsense text
\usepackage{fontspec}
\setmainfont{Arial}
\begin{document}
\lipsum[1]
\end{document}
Antwort2
Das funktioniert bei mir:
\documentclass[a4paper,10pt]{article} % Default font size and paper size
\usepackage{fontspec} % For loading fonts
\setmainfont[SmallCapsFont=Fontin SmallCaps]{Fontin-Regular}
\usepackage{url,parskip} % Formatting packages
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{textpos}
\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors
\usepackage[big]{layaureo}
\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\raggedright}{}{0em}{} % Text formatting of sections
\titlespacing{\section}{0pt}{2pt}{2pt} % Spacing around sections
\usepackage{hyperref} % Required for adding links and customizing them
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\usepackage{vmargin}
\usepackage{fullpage}
\begin{document}
\setmarginsrb{25mm}{0mm}{30mm}{0mm}{1cm}{5mm}{1mm}{10mm}
\pagestyle{empty} % Removes page numbering
\par{\Huge TacTac \textsc{TicToc} - OncheOnche \bigskip\par}
\par{\Huge \hspace{8mm} huehuehue \bigskip\par}
\section{Données personnelles}
\begin{textblock}{.9}(0,0)
\rule{97mm}{0.09mm}
\end{textblock}
\begin{tabular}{rl}
\textsc{Date de naissance:} & 01 brumeneige 3030 \\
\textsc{Adresse:} & Somewhere, sometimes \\
\textsc{Téléphone:} & +123456789\\
\textsc{Email:} & what about
\end{tabular}
\section{Objectifs}\titlerule
I met a traveler from an antic land who said : Two vast and trunkless legs of stone stand in the desert... \\
%----------------------------------------------------------------------------------------
% EDUCATION
%------------------------------------------------------------------------------- ---------
\end{document}