Quantcast
Channel: Active questions tagged uppercase - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 71

Command \MakeUppercase does not work as expected in pdfLatex, but works fine in LuaLaTeX and XeLaTeX

$
0
0

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:

output1

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:

output2


Viewing all articles
Browse latest Browse all 71

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>