1

I am trying to create a report using suftesi document class. I write my report using both greek and latin characters.

The problem, however, is that I cannot print greek characters. I tried this and this user guides, but unfortunately I could not solve my problem.

Here is a MWE:

\documentclass[documentstructure=article,
               greekfont=artemisia,
               defaultgreek,
               tocstyle=dotted]{suftesi}

\usepackage[suftesi]{frontespizio}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[variant=modern]{greek}
\setotherlanguage{english}

\begin{document}
        This is only an example,but Αυτό είναι μόνο ένα παράδειγμα
\end{document}

How can I produce both greek and english characters?

Edit I want to compile using PdfLateX (I guess, I have to remove both polyglossia and fontspec package, but after I remove them, I still cannot compile my report).

1

The options greekfont and defaultgreek are for pdflatex, whereas you're apparently using XeLaTeX.

You have to use a font supporting Greek, for instance EBGaramond, as the default font Latin Modern doesn't fully support the Greek alphabet.

\documentclass[
  documentstructure=article,
  tocstyle=dotted,
]{suftesi}

\usepackage[suftesi]{frontespizio}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[variant=modern]{greek}
\setotherlanguage{english}

\setmainfont{EB Garamond}

\begin{document}

\foreignlanguage{english}{This is only an example, but} 
Αυτό είναι μόνο ένα παράδειγμα

\end{document}

There are several other choices. Remember to keep language changes properly segregated.

enter image description here

For pdflatex:

\documentclass[
  documentstructure=article,
  tocstyle=dotted,
  greekfont=artemisia,
  defaultgreek,
]{suftesi}

\usepackage[suftesi]{frontespizio}
\usepackage[utf8]{inputenc}
\usepackage[english,greek]{babel}

\begin{document}

\foreignlanguage{english}{This is only an example, but}
Αυτό είναι μόνο ένα παράδειγμα

\end{document}

enter image description here

  • I have the same problem if simply remove the polyglossia package and try to complile either with XeLatex or PdfLatex. I loaded both polyglossia and fontspec packages because I thought it was necessary for my document class to be compiled. – Yorgos Jan 28 '16 at 8:02
  • 1
    @Yorgos I added an example with pdflatex – egreg Jan 28 '16 at 9:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.