As you can see from the minimal working examples below \MakeUppercase
command when compiled with pdfLatex keeps accents for converted Uppercase words, although it shouldn't. When compiled with Lualatex or Xelatex works fine. How can I fix it when working with pdfLatex?
MWE1: pdfLaTeX
\documentclass[12pt]{article} \usepackage{calc} \usepackage[a4paper, total={180mm,247mm},left=15mm,top=20mm]{geometry} \usepackage{gfsartemisia} \usepackage[T1,LGR]{fontenc} \usepackage[english, greek]{babel} \begin{document} Πρότασηγιαέλεγχοτωντόνωνστακεφαλαία\MakeUppercase{Πρότασηγιαέλεγχοτωντόνωνστακεφαλαία} \end{document}
output from pdfLatex:
But "almost" the same code if compiled with LuaLatex (or XeLatex) works just fine: the accents are not present on uppercase words:
MWE2: LuaLaTeX
% !TeX program = lualatex \documentclass[12pt]{article} \usepackage{calc} \usepackage[a4paper, total={180mm,247mm},left=15mm,top=20mm]{geometry} \usepackage[no-math]{fontspec} \defaultfontfeatures{Scale=MatchLowercase, Script=Greek}\defaultfontfeatures[\rmfamily]{Scale=1.1} \setmainfont{GFS Artemisia} \usepackage[english, greek]{babel} \begin{document} Πρότασηγιαέλεγχοτωντόνωνστακεφαλαία\MakeUppercase{Πρότασηγιαέλεγχοτωντόνωνστακεφαλαία} \end{document}
output from LuaLatex: