TeX - LaTeX Asked by Koul on March 10, 2021
I am using LaTeX to produce texts containing both English and Greek characters, with the aid of the babel
package. My approach up to now, in declaring the use of another language, is to use a shortened self-defined command (e.g. gr{}
). Though effective, this has become quite cumbersome, and I would be interested to be able to switch between the two languages without having to declare this every time. Is there a relatively short solution to this problem?
Using XeTeX and unicode, you can type foreign scripts directly into your LaTeX document. See Why can't my build produce certain Greek symbols?
In that example, I use the textgreek
command, however, that's only necessary to allow automatic font switching.
If you go this path, you will need to switch to polyglossia
, rather than babel
.
Correct answer by Nigel on March 10, 2021
There is auto-greek
, a package which allows this exactly. I have tested some years ago, but I haven't used it; it was difficult in collaboration to use a package that cannot be installed automatically. You can review and download it here
Answered by Theo on March 10, 2021
Try the following:
documentclass[]{article}
usepackage{blindtext}
usepackage[utf8]{inputenc}
usepackage[greek,english]{babel}
usepackage{alphabeta}
begin{document}
This is a text in English. Αυτό είναι ένα κείμενο στα Eλληνικά
end{document}
The result will be:
This is a text in English. Αυτό είναι ένα κείμενο στα Ελληνικά
Answered by Eleni on March 10, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP