TransWikia.com

How to type greek in LaTeX environment?

TeX - LaTeX Asked by Nikos on January 10, 2021

I’m Greek. I want to be able to type various sentences and phrases in greek in TexMaker preferably. Is there a way to do so, by installing additional packages, or configuring those already installed etc?

I had these installed

usepackage{lmodern}
usepackage[utf8]{inputenc}
usepackage[LGR, T1]{fontenc}
usepackage{textgreek}

But i get many errors with the greek letters, such as "textomicron unavailable in encoding T1. See the LaTeX manual..". I’ve tried various things to no avail. Any help would be appreciated. Thanks in advance.

One Answer

Use babel:

documentclass{article}
usepackage[utf8]{inputenc}
usepackage[greek,english]{babel}
usepackage{lmodern}

begin{document}

This is in English, but we also have
textgreek{μια φράση στα ελληνικά}

end{document}

enter image description here

Correct answer by egreg on January 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP