Greek in moderncv

Asked by Kostas

Is it possible to type info in moderncv in the Greek language? It seems that moderncv does not support the greektex package.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
moderncv Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Xavier Danaux (xdanaux) said :
#1

Hi Kostas,

To be honest, I have no idea of whether moderncv allows you to typeset in Greek. I also don't really know if it is compatible with greektex, but see no particular reason why it shouldn't.

What I think you can do is:
1) Write your resumé in the UTF8 encoding, which I know for sure is supported by moderncv and does include greek letters;
2) Try to use greektex and, if it doesn't work, send me your .tex file so I can try to understand where the conflict is.

Good luck,

Xavier

Revision history for this message
Kostas (kgemenis) said :
#2

Hello and many thanks for your prompt reply.

Suggestion 1)

When I type something in Greek I get the following error:

gemenis.tex:136:Package inputenc Error: Unicode char \u8:Κ not set up for use with LaTeX.

I had a look and it seems that UTF8 does not support Greek script. There is a variant utf8x which does support Greek script. When I use utf8x I don't get an error, but the Greek letters do not appear in the output (pdf), only the accents do.

Suggestion 2)

When I put \usepackage{greektex} I get:

gemenis.tex:33:Font LG1/ywclr/m/n/10.95=ywclr11 at 11.0pt not loadable: Metric (TFM) file not found.

which looks likes there's a font missing, but I've installed greektex as part of texlive-lag-greek which should contain all the necessary fonts.

Alternative suggestion 3)

Usually, when I want to make bilingual (English/Greek) document I use babel, which does not seem to work properly with moderncv. I don't get an error message, but I cannot use the \selectlanguage and all the characters used in English become Greek.

I hope this will give you a better idea of what might be the problem.

Cheers,
Kostas

Revision history for this message
Kostas (kgemenis) said :
#3

This is an update to the previous message.

I managed to get a partially working solution based on 3) above. By trial and error, I figured out that you can use Babel in moderncv but not with \usepackage[iso-8859-7]{inputenc} which would the regular thing to do, neither with the standard utf8 of moderncv but with utf8x

So by putting

\usepackage[english,greek]{babel}
\usepackage[utf8x]{inputenc}

and by using \selectlanguage{english}

I can get all the English text no problem, but I still have problems when I switch to Greek with \selectlanguage{greek}
I get

gemenis.tex:0:No file LGRlmr.fd. on input line 152.
gemenis.tex:152: Font shape `LGR/lmr/m/n' undefined(Font) using `LGR/cmr/m/n' instead on input line 152. Font shape `LGR/lmr/m/n' undefined(Font) using `LGR/cmr/m/n' instead
gemenis.tex:152: Font shape `LGR/lmr/m/sl' undefined(Font) using `LGR/lmr/m/n' instead on input line 152. Font shape `LGR/lmr/m/sl' undefined(Font) using `LGR/lmr/m/n' instead
gemenis.tex:0: Some font shapes were not available, defaults substituted.

and the Greek words look misplaced/not properly aligned, especially when I use \selectlanguage{greek} within \cvline etc along with English.

It looks like Babel does not have an equivalent Greek font with the one that is used by moderncv

Any ideas?

Revision history for this message
Xavier Danaux (xdanaux) said :
#4

Unfortunately, I have no idea on the top of my mind.

Could you send me your .tex file so I can play with it and try to solve the problem? You can send it to xdanaux AT gmail DOT com.

Cheers,

Xavier

Can you help with this problem?

Provide an answer of your own, or ask Kostas for more information if necessary.

To post a message you must log in.