Document Classes ⇒ Write different languages on the same page
Write different languages on the same page
How can I write in different languages (Arabic and french) on the same page ?
thanks
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Write different languages on the same page
welcome to the forum!
Sure, simply write it on the same page. Or was there any issue? If yes, let us know, with a code example.
Regarding language and hyphenation, you can
Code: Select all
\documentclass{article}\usepackage[french,arabic]{babel}\begin{document}\begin{otherlanguage}{french}french text\end{otherlanguage}arabic text\end{document}
Stefan
different languages on the same page!
to write in arabic we must change the language
when I compile to pdf i have this error message
" \documentclass{
article}
The document may only declare one class."
thanks.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Write different languages on the same page
\documentclass
only one time. That's the very basic setup of a document, only done one time. If you use a template (that uses \documentclass
) you cannot change it later. You may post your document code here, to check, if you like.Stefan