Fw: error with CV

Udicoudco udifoglle at gmail.com
Sat Sep 10 08:28:02 UTC 2022


Hello Patrick,

It seems that moderncv is loading the inputenc package with the option
utf8, while you are loading this package with the option latin9.

 In latex it is only possible to load a package several times if all
the calls after the first one, is with a list of options that is a
subset of the options of the first call.

You can fix this issue in two ways. The firs way, as suggested by the
error message, you can add both options globally through the
\documentclass declaration. The way to do that in lyx, is to write the
options "utf8,latin9" (without the quotation marks)  in the text filed
called custom in Settings->Document Class. This will make lyx put
\documentclass[utf8,latin9,...]{moderncv} in the first line of the
output latex file. Note that any option written in the \documentclass
declaration will pass to all packages loaded after the declaration
(see the file attached).

The other solution is to change your language encoding to utf8 as
well. This can be done in Settings->Language, then check the radio
button called other, and select utf8 from the list. This will change
the call of \usepackage[latin9]{inputenc} to
\usepackage[utf8]{inputenc}, which will not produce an option clash.

As a final note, i would also write in the preamble

\firstname{}
\familyname{}

since moderncv expects these macros to be defined (you can also define
it as your name).

Regards,
Udi

On Sat, Sep 10, 2022 at 10:22 AM Patrick Dupre <pdupre at gmx.com> wrote:
>
> Hello,
>
> I would appreciate if you could help me in solving this issue
> due to moderncv
> What would be the alternative?
>
> Thank
>
> >
> > Hello,
> >
> > Could you tell me what is wrong with this file?
> > I get
> >  \usepackage
> >                [a4paper]{geometry}
> > The package inputenc has already been loaded with options:
> >   [utf8]
> > There has now been an attempt to load it with options
> >   [latin9]
> > Adding the global options:
> >   utf8,latin9
> > to your \documentclass declaration may fix this.
> > Try typing  <return>  to proceed.
> >
> >
> >
> > #LyX 2.3 created this file. For more info see http://www.lyx.org/
> > \lyxformat 544
> > \begin_document
> > \begin_header
> > \save_transient_properties true
> > \origin unavailable
> > \textclass moderncv
> > \begin_preamble
> >
> > \end_preamble
> > \use_default_options true
> > \maintain_unincluded_children false
> > \language english
> > \language_package default
> > \inputencoding auto
> > \fontencoding global
> > \font_roman "default" "default"
> > \font_sans "default" "default"
> > \font_typewriter "default" "default"
> > \font_math "auto" "auto"
> > \font_default_family default
> > \use_non_tex_fonts false
> > \font_sc false
> > \font_osf false
> > \font_sf_scale 100 100
> > \font_tt_scale 100 100
> > \use_microtype false
> > \use_dash_ligatures false
> > \graphics default
> > \default_output_format default
> > \output_sync 0
> > \bibtex_command default
> > \index_command default
> > \paperfontsize 10
> > \spacing single
> > \use_hyperref false
> > \papersize a4paper
> > \use_geometry true
> > \use_package amsmath 1
> > \use_package amssymb 1
> > \use_package cancel 0
> > \use_package esint 1
> > \use_package mathdots 1
> > \use_package mathtools 0
> > \use_package mhchem 1
> > \use_package stackrel 0
> > \use_package stmaryrd 0
> > \use_package undertilde 0
> > \cite_engine basic
> > \cite_engine_type default
> > \biblio_style plain
> > \use_bibtopic false
> > \use_indices false
> > \paperorientation portrait
> > \suppress_date false
> > \justification true
> > \use_refstyle 0
> > \use_minted 0
> > \index Index
> > \shortcut idx
> > \color #008000
> > \end_index
> > \leftmargin 2.2cm
> > \topmargin 2.2cm
> > \rightmargin 2.2cm
> > \bottommargin 2.2cm
> > \secnumdepth 0
> > \tocdepth -1
> > \paragraph_separation skip
> > \defskip medskip
> > \is_math_indent 0
> > \math_numbering_side default
> > \quotes_style english
> > \dynamic_quotes 0
> > \papercolumns 1
> > \papersides 1
> > \paperpagestyle default
> > \tracking_changes false
> > \output_changes false
> > \html_math_output 0
> > \html_css_as_file 0
> > \html_be_strict false
> > \end_header
> >
> > \begin_body
> >
> > \begin_layout Standard
> > p
> > \end_layout
> >
> > \end_body
> > \end_document
> >
> >
> > ===========================================================================
> >  Patrick DUPRÉ                                 | | email: pdupre at gmx.com
> >  Laboratoire interdisciplinaire Carnot de Bourgogne
> >  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
> >  Tel: +33 (0)380395988                    | | Room# D114A
> > ===========================================================================
> >
> > --
> > lyx-users mailing list
> > lyx-users at lists.lyx.org
> > http://lists.lyx.org/mailman/listinfo/lyx-users
> >
> --
> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwe-moderncv.lyx
Type: application/lyx
Size: 1982 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220910/9eb7cea7/attachment-0001.bin>


More information about the lyx-users mailing list