Changes

Jump to navigation Jump to search
m
no edit summary
==How to achieve it ==
===Mainlanguage===
If you want to use several languages, you need to ask ConTeXt which language you want to switch to for each of them. In the preamble, write the main language of the text and the languages you want to switch to. For example, our text is written mainly in English. We want to comment on a text in Ancient Greek, but in the course of the commentary we want to make references to texts in Arabic and Chinese. So, as a basic preamble, we would have something like this:
ConTeXt now understands that you will be using English and Ancient Greek. But you need to give it the right fonts to achieve this goal, bearing in mind that English and Ancient Greek do not use the same glyphs, even though some font families, such as TeX Gyre Pagella, are very versatile. So now you need to place the command for the Ancient Greek text. You will need to check that these fonts are available on your system. Refer to the Wiki page on installing and checking fonts, bearing in mind that installing them on your system from the Internet is not enough: they must also be supported by \ConTeXt. You can pass the following command in a console, in order to list all the installed fonts on your system :
{{cmd|mtxrun}} --script fonts --list --all
{{cmd|mtxrun}} --script fonts --list --all
Or, in order to find a particular font, say GFS Didot :
Or, in order to find a particular font, say GFS Didot : {{cmd|mtxrun}} --script fonts --list --pattern=gfsdidot --all
If you are sure to have previously installed some police, but you can see it, as a reminder, two commands are useful:
There is below an example of 5 pages printed mainly in English, where you can find Ancient Greek, Traditional Chinese and Arabic. This text is more than a MWE (Minimum Working Example), because it also contains footnotes, a header and a footer, as well as boxed text. But even if at first glance this page seems difficult for a beginner, you can practise with the code on this page. Details: the Arabic text is printed correctly, i.e. from right to left. You can adjust the size of the text with a number of commands concerning the number of lines per page, the font size, etc.
>Note : for some reason, each command here begin with 2 anti-slash : one is enough ...
48

edits

Navigation menu