mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
move to inputenx package, remove pdflatex specific configurations to make everything compilable with lualatex
This commit is contained in:
parent
2ea83cda3b
commit
bd43548daf
1 changed files with 28 additions and 23 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
%% moderncv_userguide.tex (compiled with pdfLaTeX)
|
%% moderncv_userguide.tex (compiled with pdfLaTeX)
|
||||||
%% Copyright 2007 Cristina Sambo
|
%% Copyright 2007 Cristina Sambo, 2021 David Seus, cryptointerest@posteo.de
|
||||||
%
|
%
|
||||||
% This work may be distributed and/or modified under the
|
% This work may be distributed and/or modified under the
|
||||||
% conditions of the LaTeX Project Public License version 1.3c,
|
% conditions of the LaTeX Project Public License version 1.3c,
|
||||||
|
|
@ -7,14 +7,29 @@
|
||||||
|
|
||||||
\documentclass[a4paper,11pt,draft]{article}
|
\documentclass[a4paper,11pt,draft]{article}
|
||||||
|
|
||||||
\title{\bfseries Moderncv -- v. 0.6}
|
\title{\bfseries moderncv -- v2.1.0}
|
||||||
\author{Package by Xavier Danaux \\ \begin{small}Documentation by Cristina Sambo \end{small}}
|
\author{Package by Xavier Danaux \\ \begin{small}Documentation by Cristina Sambo, David Seus \end{small}}
|
||||||
\date{}
|
\date{\today}
|
||||||
|
|
||||||
%language and encoding options
|
%language and encoding options
|
||||||
\usepackage[english]{babel}
|
\usepackage[english]{babel}
|
||||||
|
\usepackage{ifluatex}
|
||||||
|
%%%% PDFLaTeX or LUALaTeX %%%%%%%
|
||||||
|
\ifluatex
|
||||||
|
%\usepackage{luatextra}
|
||||||
|
% \usepackage{lualatex-math}
|
||||||
|
\usepackage{shellesc} % fix a bug for lualatex shellescape
|
||||||
|
% \usepackage{unicode-math}
|
||||||
|
% \setmathfont{xits-math.otf}
|
||||||
|
\else
|
||||||
|
%% if pdflatex is used uncomment the following packages. If lualatex is used comment them.
|
||||||
|
\usepackage[utf8]{inputenx}
|
||||||
|
%additions for utf8
|
||||||
|
\input{ix-utf8enc.dfu}
|
||||||
|
%% if pdflatex is used uncomment above packages. If lualatex is used comment them.
|
||||||
|
\fi
|
||||||
|
\PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[utf8]{inputenc}
|
|
||||||
|
|
||||||
%font options
|
%font options
|
||||||
\usepackage{txfonts}
|
\usepackage{txfonts}
|
||||||
|
|
@ -22,30 +37,20 @@
|
||||||
\usepackage{pifont}
|
\usepackage{pifont}
|
||||||
|
|
||||||
%margins, spacing and page layout
|
%margins, spacing and page layout
|
||||||
\usepackage[pdftex,colorlinks=true]{hyperref} %(hyperref must be loaded before geometry)
|
\PassOptionsToPackage{dvipsnames*,svgnames,table}{xcolor}
|
||||||
\usepackage[pdftex]{geometry}
|
\usepackage[colorlinks=true]{hyperref} %(hyperref must be loaded before geometry)
|
||||||
\geometry{top=2.5cm, bottom=3cm}
|
\usepackage{geometry}
|
||||||
\setlength{\parindent}{0pt} %(to soppress indentation when starting a new paragraph)
|
% \geometry{top=2.5cm, bottom=3cm}
|
||||||
\frenchspacing %(to soppress additional space after a full stop)
|
% \setlength{\parindent}{0pt} %(to soppress indentation when starting a new paragraph)
|
||||||
|
% \frenchspacing %(to soppress additional space after a full stop)
|
||||||
|
|
||||||
%packages
|
%packages
|
||||||
\usepackage[pdftex]{graphicx}
|
\usepackage{graphicx}
|
||||||
\usepackage[pdftex]{xcolor}
|
\usepackage{xcolor}
|
||||||
\usepackage[labelfont=sl,font=small,width=0.9\textwidth]{caption}
|
\usepackage[labelfont=sl,font=small,width=0.9\textwidth]{caption}
|
||||||
\usepackage{marvosym}
|
\usepackage{marvosym}
|
||||||
\usepackage{latexsym}
|
\usepackage{latexsym}
|
||||||
|
|
||||||
%pdfLaTeX options
|
|
||||||
\pdfpagewidth=\paperwidth
|
|
||||||
\pdfpageheight=\paperheight
|
|
||||||
\pdfimageresolution=150
|
|
||||||
\pdfinfo{
|
|
||||||
/Title (Moderncv -- v. 0.6)
|
|
||||||
/Author (Cristina Sambo)
|
|
||||||
/Subject (Moderncv package user's guide)
|
|
||||||
/Keywords (curriculum vitae, LaTeX)
|
|
||||||
}
|
|
||||||
|
|
||||||
%my commands
|
%my commands
|
||||||
\definecolor{bluecv}{rgb}{0.25,0.5,0.75}
|
\definecolor{bluecv}{rgb}{0.25,0.5,0.75}
|
||||||
\definecolor{greencv}{rgb}{0.55,0.85,0.35}
|
\definecolor{greencv}{rgb}{0.55,0.85,0.35}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue