Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 16/06/2013, à 10:53

rrazpo

[Résolu][Latex] Problème d'installation de moderncv

Bonjour,

Je suis en train de découvrir Latex et j'aimerais me faire mon cv avec moderncv. Or après avoir installé proprement latex je n'arrive pas à compiler le fichier d'exemple que nous fournit l'auteur de moderncv :

%% start of file `template.tex'.
%% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

% moderncv themes
\moderncvstyle{[color=red][b]SPAM[/b][/color]}                             % style options are '[color=red][b]SPAM[/b][/color]' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue}                               % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
%\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
%\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page

% character encoding
%\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding you are using
%\usepackage{CJKutf8}                              % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

% adjust the page margins
\usepackage[scale=0.75]{geometry}
%\setlength{\hintscolumnwidth}{3cm}                % if you want to change the width of the column with the dates
%\setlength{\makecvtitlenamewidth}{10cm}           % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

% personal data
\name{John}{Doe}
\title{Resumé title}                               % optional, remove / comment the line if not wanted
\address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
\phone[mobile]{+1~(234)~567~890}                   % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{john@doe.org}                               % optional, remove / comment the line if not wanted
\homepage{www.johndoe.com}                         % optional, remove / comment the line if not wanted
\social[linkedin]{john.doe}                        % optional, remove / comment the line if not wanted
\social[twitter]{jdoe}                             % optional, remove / comment the line if not wanted
\social[github]{jdoe}                              % optional, remove / comment the line if not wanted
\extrainfo{additional information}                 % optional, remove / comment the line if not wanted
\photo[64pt][0.4pt]{picture}                       % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
\quote{Some quote}                                 % optional, remove / comment the line if not wanted

% to show numerical labels in the bibliography (default is to show no labels); only useful if you make citations in your resume
%\makeatletter
%\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
%\makeatother
%\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}% CONSIDER REPLACING THE ABOVE BY THIS

% bibliography with mutiple entries
%\usepackage{multibib}
%\newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\begin{document}
%\begin{CJK*}{UTF8}{gbsn}                          % to typeset your resume in Chinese using CJK
%-----       resume       ---------------------------------------------------------
\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}

\section{Master thesis}
\cvitem{title}{\emph{Title}}
\cvitem{supervisors}{Supervisors}
\cvitem{description}{Short thesis abstract}

\section{Experience}
\subsection{Vocational}
\cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.\newline{}%
Detailed achievements:%
\begin{itemize}%
\item Achievement 1;
\item Achievement 2, with sub-achievements:
  \begin{itemize}%
  \item Sub-achievement (a);
  \item Sub-achievement (b), with sub-sub-achievements (don't do this!);
    \begin{itemize}
    \item Sub-sub-achievement i;
    \item Sub-sub-achievement ii;
    \item Sub-sub-achievement iii;
    \end{itemize}
  \item Sub-achievement (c);
  \end{itemize}
\item Achievement 3.
\end{itemize}}
\cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}
\subsection{Miscellaneous}
\cventry{year--year}{Job title}{Employer}{City}{}{Description}

\section{Languages}
\cvitemwithcomment{Language 1}{Skill level}{Comment}
\cvitemwithcomment{Language 2}{Skill level}{Comment}
\cvitemwithcomment{Language 3}{Skill level}{Comment}

\section{Computer skills}
\cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
\cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
\cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

\section{Interests}
\cvitem{hobby 1}{Description}
\cvitem{hobby 2}{Description}
\cvitem{hobby 3}{Description}

\section{Extra 1}
\cvlistitem{Item 1}
\cvlistitem{Item 2}
\cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}

\section{Extra 2}
\cvlistdoubleitem{Item 1}{Item 4}
\cvlistdoubleitem{Item 2}{Item 5\cite{book1}}
\cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

\section{References}
\begin{cvcolumns}
  \cvcolumn{Category 1}{\begin{itemize}\item Person 1\item Person 2\item Person 3\end{itemize}}
  \cvcolumn{Category 2}{Amongst others:\begin{itemize}\item Person 1, and\item Person 2\end{itemize}(more upon request)}
  \cvcolumn[0.5]{All the rest \& some more}{\textit{That} person, and \textbf{those} also (all available upon request).}
\end{cvcolumns}

% Publications from a BibTeX file without multibib
%  for numerical labels: \renewcommand{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART
%  to redefine the heading string ("Publications"): \renewcommand{\refname}{Articles}
\nocite{*}
\bibliographystyle{plain}
\bibliography{publications}                        % 'publications' is the name of a BibTeX file

% Publications from a BibTeX file using the multibib package
%\section{Publications}
%\nocitebook{book1,book2}
%\bibliographystylebook{plain}
%\bibliographybook{publications}                   % 'publications' is the name of a BibTeX file
%\nocitemisc{misc1,misc2,misc3}
%\bibliographystylemisc{plain}
%\bibliographymisc{publications}                   % 'publications' is the name of a BibTeX file

\clearpage
%-----       letter       ---------------------------------------------------------
% recipient data
\recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
\date{January 01, 1984}
\opening{Dear Sir or Madam,}
\closing{Yours faithfully,}
\enclosure[Attached]{curriculum vit\ae{}}          % use an optional argument to use a string other than "Enclosure", or redefine \enclname
\makelettertitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.

Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.

Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.

Albert Einstein discovered that $e=mc^2$ in 1905.

\[ e=\lim_{n \to \infty} \left(1+\frac{1}{n}\right)^n \]

\makeletterclosing

%\clearpage\end{CJK*}                              % if you are typesetting your resume in Chinese using CJK; the \clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making \lastpage undefined
\end{document}


%% end of file `template.tex'.

Texmaker me dit : Undefined control sequence. \modercvcolor .  Je ne sais pas quoi faire, j'ai déja désinstallé et réinstallé latex deux fois.

Merci d'avance !

Dernière modification par rrazpo (Le 22/06/2013, à 18:30)

Hors ligne

#2 Le 16/06/2013, à 13:47

tiramiseb

Re : [Résolu][Latex] Problème d'installation de moderncv

Salut,

Attention, j'ai failli te faire une mavaise réponse car tu as écrit « Undefined control sequence. \modercvcolor ». Dans ta phrase, il y a une faute de frappe. Heureusement que j'ai parcouru le fichier que tu as copié-collé dans les balises "code", ce qui m'a permis de voir que l'erreur n'est pas ça.
(ou alors tu as bien "\modercvcolor" dans le fichier, auquel cas il manque juste un "n").

Pour ma part j'ai utilisé "moderncvtheme" :

\moderncvtheme[[color=red][b]SPAM[/b][/color]]{blue}

ça marche avec la version proposée dans raring.

Hors ligne

#3 Le 16/06/2013, à 13:48

Fly0s

Re : [Résolu][Latex] Problème d'installation de moderncv

Salut !

ModernCV a reçu quelques améliorations depuis sa création et elle sont disponibles dans la distribution 2012 de TeXlive. Or, si tu es sur la Precise 12.04, tu ne possèdes que la version de 2009.

Pour mettre à jour TeXlive, il te faudra ce PPA:
https://launchpad.net/~texlive-backports/+archive/ppa/

En espérant que ça règle ton problème !

Hors ligne

#4 Le 16/06/2013, à 14:05

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

Alors effectivement il y avait une erreur désolé. J'ai installé le ppa et fait "sudo apt-get update" puis "sudo apt-get upgrade" mais après avoir installé plein de nouveau paquets cela ne compile toujours pas.

En remplaçant \moderncvcolor par \moderncvtheme cela semble marcher mais cette fois il me dit : " !Undefined control sequence. \name". D'autres idées ? ^^"

Dernière modification par rrazpo (Le 16/06/2013, à 14:07)

Hors ligne

#5 Le 16/06/2013, à 14:07

tiramiseb

Re : [Résolu][Latex] Problème d'installation de moderncv

" !Undefined control sequence. \name". D'autres idées ? ^^"

Yep.

\firstname{prénom}
\familyname{nom de famille}

smile

Hors ligne

#6 Le 16/06/2013, à 14:54

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

Je ne pense pas que cela soit ça car déja c'est l'exemple de l'auteur de moderncv (donc a priori ça doit être pas mal tongue) et en plus lorsque je remplace \name par \firstname il me dit maintenant : "Undefined control sequence \social" et "Latex Error : missing \begin{document}"  (alors qu'il est là hmm).

Dernière modification par rrazpo (Le 16/06/2013, à 14:55)

Hors ligne

#7 Le 16/06/2013, à 14:58

Fly0s

Re : [Résolu][Latex] Problème d'installation de moderncv

En tout cas, chez moi non plus \social n'est pas reconnu.... Peut-être que ton exemple est un peu vieillot vis-à-vis des nouvelles modifications du paquet ?

Hors ligne

#8 Le 16/06/2013, à 15:16

gigiair

Re : [Résolu][Latex] Problème d'installation de moderncv

Exact, voici la nouvelle version qui compile avec
Document Class: moderncv 2013/02/09 v1.3.0 modern curriculum vitae and letter document class

%% start of file `template.tex'.
%% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


\documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

% moderncv themes
\moderncvstyle{[color=red][b]SPAM[/b][/color]}                             % style options are '[color=red][b]SPAM[/b][/color]' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue}                               % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
%\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
%\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page

% character encoding
\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding you are using
%\usepackage{CJKutf8}                              % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

% adjust the page margins
\usepackage[scale=0.75]{geometry}
%\setlength{\hintscolumnwidth}{3cm}                % if you want to change the width of the column with the dates
%\setlength{\makecvtitlenamewidth}{10cm}           % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

% personal data
\firstname{John}
\familyname{Doe}
\title{Resumé title}                               % optional, remove / comment the line if not wanted
\address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty
\mobile{+1~(234)~567~890}                          % optional, remove / comment the line if not wanted
\phone{+2~(345)~678~901}                           % optional, remove / comment the line if not wanted
\fax{+3~(456)~789~012}                             % optional, remove / comment the line if not wanted
\email{john@doe.org}                               % optional, remove / comment the line if not wanted
\homepage{www.johndoe.com}                         % optional, remove / comment the line if not wanted
\extrainfo{additional information}                 % optional, remove / comment the line if not wanted
\photo[64pt][0.4pt]{picture}                       % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file
\quote{Some quote}                                 % optional, remove / comment the line if not wanted

% to show numerical labels in the bibliography (default is to show no labels); only useful if you make citations in your resume
%\makeatletter
%\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
%\makeatother
%\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}% CONSIDER REPLACING THE ABOVE BY THIS

% bibliography with mutiple entries
%\usepackage{multibib}
%\newcites{book,misc}{{Books},{Others}}
%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\begin{document}
%\begin{CJK*}{UTF8}{gbsn}                          % to typeset your resume in Chinese using CJK
%-----       resume       ---------------------------------------------------------
\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}

\section{Master thesis}
\cvitem{title}{\emph{Title}}
\cvitem{supervisors}{Supervisors}
\cvitem{description}{Short thesis abstract}

\section{Experience}
\subsection{Vocational}
\cventry{year--year}{Job title}{Employer}{City}{}{General description no longer than 1--2 lines.\newline{}%
Detailed achievements:%
\begin{itemize}%
\item Achievement 1;
\item Achievement 2, with sub-achievements:
  \begin{itemize}%
  \item Sub-achievement (a);
  \item Sub-achievement (b), with sub-sub-achievements (don't do this!);
    \begin{itemize}
    \item Sub-sub-achievement i;
    \item Sub-sub-achievement ii;
    \item Sub-sub-achievement iii;
    \end{itemize}
  \item Sub-achievement (c);
  \end{itemize}
\item Achievement 3.
\end{itemize}}
\cventry{year--year}{Job title}{Employer}{City}{}{Description line 1\newline{}Description line 2}
\subsection{Miscellaneous}
\cventry{year--year}{Job title}{Employer}{City}{}{Description}

\section{Languages}
\cvitemwithcomment{Language 1}{Skill level}{Comment}
\cvitemwithcomment{Language 2}{Skill level}{Comment}
\cvitemwithcomment{Language 3}{Skill level}{Comment}

\section{Computer skills}
\cvdoubleitem{category 1}{XXX, YYY, ZZZ}{category 4}{XXX, YYY, ZZZ}
\cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
\cvdoubleitem{category 3}{XXX, YYY, ZZZ}{category 6}{XXX, YYY, ZZZ}

\section{Interests}
\cvitem{hobby 1}{Description}
\cvitem{hobby 2}{Description}
\cvitem{hobby 3}{Description}

\section{Extra 1}
\cvlistitem{Item 1}
\cvlistitem{Item 2}
\cvlistitem{Item 3. This item is particularly long and therefore normally spans over several lines. Did you notice the indentation when the line wraps?}

\section{Extra 2}
\cvlistdoubleitem{Item 1}{Item 4}
\cvlistdoubleitem{Item 2}{Item 5\cite{book1}}
\cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

\section{References}
\begin{cvcolumns}
  \cvcolumn{Category 1}{\begin{itemize}\item Person 1\item Person 2\item Person 3\end{itemize}}
  \cvcolumn{Category 2}{Amongst others:\begin{itemize}\item Person 1, and\item Person 2\end{itemize}(more upon request)}
  \cvcolumn[0.5]{All the rest \& some more}{\textit{That} person, and \textbf{those} also (all available upon request).}
\end{cvcolumns}

% Publications from a BibTeX file without multibib
%  for numerical labels: \renewcommand{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}% CONSIDER MERGING WITH PREAMBLE PART
%  to redefine the heading string ("Publications"): \renewcommand{\refname}{Articles}
\nocite{*}
\bibliographystyle{plain}
\bibliography{publications}                        % 'publications' is the name of a BibTeX file

% Publications from a BibTeX file using the multibib package
%\section{Publications}
%\nocitebook{book1,book2}
%\bibliographystylebook{plain}
%\bibliographybook{publications}                   % 'publications' is the name of a BibTeX file
%\nocitemisc{misc1,misc2,misc3}
%\bibliographystylemisc{plain}
%\bibliographymisc{publications}                   % 'publications' is the name of a BibTeX file

\clearpage
%-----       letter       ---------------------------------------------------------
% recipient data
\recipient{Company Recruitment team}{Company, Inc.\\123 somestreet\\some city}
\date{January 01, 1984}
\opening{Dear Sir or Madam,}
\closing{Yours faithfully,}
\enclosure[Attached]{curriculum vit\ae{}}          % use an optional argument to use a string other than "Enclosure", or redefine \enclname
\makelettertitle

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.

Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.

Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.

Albert Einstein discovered that $e=mc^2$ in 1905.

\[ e=\lim_{n \to \infty} \left(1+\frac{1}{n}\right)^n \]

\makeletterclosing

%\clearpage\end{CJK*}                              % if you are typesetting your resume in Chinese using CJK; the \clearpage is required for fancyhdr to work correctly with CJK, though it kills the page numbering by making \lastpage undefined
\end{document}


%% end of file `template.tex'.

--
JJR.

Hors ligne

#9 Le 16/06/2013, à 15:29

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

En prenant ce nouvel exemple je dois de nouveau enlever \moderncvcolor (car sinon cela me donne Undefined control sequence \moderncvcolor) et en l'enlevant texmaker me dit : "Latex Error : missing \begin{document}".

Je pense que j'ai dû mal installer latex mais pourtant j'ai tout fait depuis le début donc je comprend pas.

Hors ligne

#10 Le 16/06/2013, à 18:45

tiramiseb

Re : [Résolu][Latex] Problème d'installation de moderncv

Salut,

Moi mon CV utilise la version 2012/03/26 v1.0 livrée avec Raring...
Ne sachant pas ce qu'apporte la nouvelle version, j'utilise celle-ci qui me va très bien.

rrazpo, tu as essayé le modèle de gigiair, mais as-tu installé moderncv 2013/02/09 v1.3.0 ?

Sinon, as-tu essayé d'enlever les lignes "\social" (cf ton message #6) puis réessayé de compiler ?

Hors ligne

#11 Le 16/06/2013, à 22:24

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

Il n'y a plus de \social non. Par contre je pense que j'ai la derniere version de moderncv mais comment le savoir ?

Dernière modification par rrazpo (Le 16/06/2013, à 22:24)

Hors ligne

#12 Le 16/06/2013, à 22:52

gigiair

Re : [Résolu][Latex] Problème d'installation de moderncv

C'est dans le fichier log.
Autrement,

grep ProvidesClass $(kpsewhich moderncv.cls)

--
JJR.

Hors ligne

#13 Le 16/06/2013, à 23:24

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

Ha et bien en effet je n'ai pas la dernière version à jour, je suis à celle de 2008. Pourtant j'ai téléchargé la version 1.5.1 de moderncv et j'ai mis les fichiers .sty dans le dossier où je compile je ne comprend pas.

Est ce qu'il y a une installation particulière ?

Hors ligne

#14 Le 17/06/2013, à 07:08

tiramiseb

Re : [Résolu][Latex] Problème d'installation de moderncv

Pourtant j'ai téléchargé la version 1.5.1 de moderncv et j'ai mis les fichiers .sty dans le dossier où je compile je ne comprend pas.

Et le fichier .cls ?

Hors ligne

#15 Le 17/06/2013, à 07:26

gigiair

Re : [Résolu][Latex] Problème d'installation de moderncv

Non.
Normalement ta manipulation marche, tu as peut-être fait une erreur, ou tu as lancé la commande que je t'ai indiquée dans un autre répertoire que répertoire courant.
Le mieux est d'installer dans le répertoire tex/latex/ de TEXMFHOME

wget http://mirrors.ctan.org/macros/latex/contrib/moderncv.zip 
mkdir -p $(kpsewhich -var-value TEXMFHOME)/tex/latex/
unzip moderncv.zip -d  $(kpsewhich -var-value TEXMFHOME)/tex/latex/

--
JJR.

Hors ligne

#16 Le 17/06/2013, à 11:57

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

En faisant les dernières lignes de codes cela marche déja beaucoup mieux ! Juste une erreur : File xparse.sty not found. Je l'ai trouvé sur internet et copié dans le répertoire mais cette fois : File expl3.sty not found.

J'imagine qu'il y a des fichiers qui ne sont pas encore téléchargés dans mon installation de latex (pourtant j'ai installé texlive-full et autres...)

En tout cas merci déja pour votre aide, ça avance !

Edit : cela me fait pareil en prenant le .cls

Dernière modification par rrazpo (Le 17/06/2013, à 11:58)

Hors ligne

#17 Le 17/06/2013, à 16:13

gigiair

Re : [Résolu][Latex] Problème d'installation de moderncv

La version de LaTeX fournie par les dépôts de Precise est lamentablement ancienne. xparse.sty et expl3.sty font partie du projet latex3. Même Debian fournit une version de TeXLive plus récente (2012).
Personnellement j'ai abandonné le TeXLive des dépôts Ubuntu pour le TeXLive installé depuis CTAN et je n'ai jamais eu à le regretter. Il y a un installateur qui s'occupe de tout. Le ppa c'est sans doute bien, mais je préfère contrôler les choses par moi même. Le seul inconvénient est que le système n'en est pas averti, et il faut lui demander de ne pas charger les paquets recommandés quand ils font partie de TeXLive.
Pour en revenir à nos moutons expl3.sty fait partie d'un ensemble appelé l3kernel.
Pour le télécharger et l'installer, les commandes suivantes devraient le faire:

wget http://mirrors.ctan.org/macros/latex/contrib/l3kernel.zip
unzip l3kernel.zip -d $(kpsewhich -var-value TEXMFHOME)/tex/latex/
cd $(kpsewhich -var-value TEXMFHOME)/tex/latex/l3kernel/
latex l3.ins
mkdir $(kpsewhich -var-value TEXMFHOME)/doc/l3kernel
mv *.pdf  $(kpsewhich -var-value TEXMFHOME)/doc/l3kernel/

C'est une manipulation qui ne compromet rien. Si ça ne va pas, c'est réversible, il suffit d'effacer tous les fichiers installés.

Juste un ajout pour dire que l'ensemble l3packages dont fait partie xparse s'installe de la même façon :

wget http://mirrors.ctan.org/macros/latex/contrib/l3packages.zip
unzip l3packages.zip -d $(kpsewhich -var-value TEXMFHOME)/tex/latex/
cd  $(kpsewhich -var-value TEXMFHOME)/tex/latex/l3packages
for f in *.ins;do latex $f;done
mkdir $(kpsewhich -var-value TEXMFHOME)/doc/l3packages
mv *.pdf  $(kpsewhich -var-value TEXMFHOME)/doc/l3packages/

Dernière modification par gigiair (Le 17/06/2013, à 16:26)


--
JJR.

Hors ligne

#18 Le 17/06/2013, à 20:56

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

Je crois qu'il y a eu un problème d'installation car j'ai ça dans la console (j'ai coupé le haut) :

Generating file(s) ./l3doc.ist 

Processing file l3doc.dtx (docist) -> l3doc.ist
Lines  processed: 2764
Comments removed: 1206
Comments  passed: 32
Codelines passed: 1505


Generating file(s) ./l3dvipdfmx.def 

Processing file l3drivers.dtx (package,dvipdfmx) -> l3dvipdfmx.def
Lines  processed: 570
Comments removed: 280
Comments  passed: 33
Codelines passed: 180


Generating file(s) ./l3dvips.def 

Processing file l3drivers.dtx (package,dvips) -> l3dvips.def
Lines  processed: 570
Comments removed: 280
Comments  passed: 33
Codelines passed: 180


Generating file(s) ./l3pdfmode.def 

Processing file l3drivers.dtx (package,pdfmode) -> l3pdfmode.def
Lines  processed: 570
Comments removed: 280
Comments  passed: 33
Codelines passed: 180


Generating file(s) ./l3xdvipdfmx.def 

Processing file l3drivers.dtx (package,xdvipdfmx) -> l3xdvipdfmx.def
Lines  processed: 570
Comments removed: 280
Comments  passed: 33
Codelines passed: 180


Generating file(s) ./l3docstrip.tex 

Processing file l3docstrip.dtx (program) -> l3docstrip.tex
Lines  processed: 280
Comments removed: 167
Comments  passed: 33
Codelines passed: 68

Overall statistics:
Files  processed: 42
Lines  processed: 56598
Comments removed: 35073
Comments  passed: 1372
Codelines passed: 19195
 )
No pages of output.
Transcript written on l3.log.
lapos@lapos-laptop:~/texmf/tex/latex/l3kernel$ mkdir $(kpsewhich -var-value TEXMFHOME)/doc/l3kernel
mkdir: cannot create directory `/home/lapos/texmf/doc/l3kernel': No such file or directory
lapos@lapos-laptop:~/texmf/tex/latex/l3kernel$ mv *.pdf  $(kpsewhich -var-value TEXMFHOME)/doc/l3kernel/
mv: target `/home/lapos/texmf/doc/l3kernel/' is not a directory

Sinon, je veux bien tenter l'installation directement depuis le ctan mais à part de nombreux fichiers .sty je n'ai pas trouvé d'installateur général. Je suis sur cette page : http://www.ctan.org/tex-archive/macros/ … /moderncv/ c'est bien là qu'il faut chercher ?

Hors ligne

#19 Le 17/06/2013, à 23:07

gigiair

Re : [Résolu][Latex] Problème d'installation de moderncv

les fichiers .dtx sont les fichiers de documentation. Ils n'ont pas de raison d'être traités.
Ce qui serait bien, c'est de savoir quelle commande est à l'origine de ces messages.

Pour installer TeXLive 2012 (2013 est sur le point de sortir) les instructions sont sur cette page : http://www.tug.org/texlive/acquire-netinstall.html
Il faut télécharger l'archive install-tl-unx.tar.gz, puis la décompresser. Ensuite lancer le script perl install-tl se trouvant dans le répertoire de décompression.

wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar xvzf install-tl-unx.tar.gz
sudo perl install-tl-<aaaammjj>/install-tl

aaaammjj c'est la date de l'installateur. En utilisant l'auto-complétion, elle s'écrit toute seule.
Il vaut mieux prévoir un maximum de lignes pour voir toutes les commandes possibles.
On peut ensuite taper une lettre pour activer une commande . Les valeurs par défaut effectuent une installation complète. Si on accepte, une seule commande est à activer : «O» pour choisir les options.
Dans ce menu, taper «L» et accepter les propositions. C'est très important si on ne veut pas avoir à modifier la variable d'environnement PATH.
Revenir au menu principal en tapant «R» puis taper «I» pour lancer l'installation, et patienter... Avec une bonne connexion, ce n'est pas trop long.
Il est possible d'exécuter install-tl en mode graphique, mais il faut installer perl-tk qui ne l'est pas par défaut.

sudo apt-get install perl-tk

--
JJR.

Hors ligne

#20 Le 18/06/2013, à 23:51

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

Je viens d'installer la dernière version de 2013 et cette fois il ne reste "que" le problème du "begin{document]" (je n'ai pas accès à latex je posterais plus tard le message exact).

Pour le message d'erreur de mon post précédent il provenait de la commande mkdir pour installer expl3.

Hors ligne

#21 Le 22/06/2013, à 18:29

rrazpo

Re : [Résolu][Latex] Problème d'installation de moderncv

Bon et bien problème résolu ! Ubuntu m'a finalement proposé une update automatique avec tout les paquets latex et cette fois cela fonctionne.

Merci encore pour votre aide !

Hors ligne