0

So I can write using Georgian font on my computer's TeX programme (I think MikTex?). For this I needed to write the command "\usepackage [georgian]{babel}" and allow my computer to download something. If I use the sharelatex programme, it says it can't compile "because no Georgian font encoding has been loaded so far. A font encoding should be declared before babel".

How can I solve this? (Am I asking how can I make sharelatex use the package above?)

Thanks!

  • 1
    Maybe compiling with xelatex? – Bernard Jun 19 '21 at 13:29
  • how do i tell sharelatex to do this? i've always just let it play and i can't seem to find now an option to change the compiler? – user208878 Jun 19 '21 at 13:32
  • Unfortunately, I don't use sharelatex. Surely, an user will give an answer. – Bernard Jun 19 '21 at 13:35
  • sharelatex has been overleaf for some years:-) If you said what font you were using you may be able to upload it to overleaf or it may be a proprietary windows font so not available, it all depends. the warning about not having specified a font encoding is specific to your document, so please provide a small but complete document that works in your local miktex but not online. – David Carlisle Jun 19 '21 at 13:37
  • @DavidCarlisle I get the error too, the language seems to look for a T8M encoding. – Ulrike Fischer Jun 19 '21 at 13:42
  • there is an option in the left sidebar menu to choose xelatex – David Carlisle Jun 19 '21 at 13:57
  • found it - thanks. so now it compiles with georgien text :D but at the cost of english text and numbers xD with your example below, are you able to also have english text? the error says something about "combining the english and the georgian" and says it may be fixed using global options? (i can give the whole error if you want) – user208878 Jun 19 '21 at 14:01
  • yes but "how to use babel" is a rather different question to the one you asked, the site works best with one question per post, however I set the main font to the Noto Serif Georgian (which is Ok for English actually) but only specified georgian to babel so that is setting up a single language document. If I used [georgian.english] as teh babel options english would stay the main language and you'd need to use babel commands to switch languages when needed – David Carlisle Jun 19 '21 at 14:08
  • yes, but i don't have the problem on my miktex, only on sharelatex, so i'm not sure if i'm asking how to use babel. anyway the situation is now: if i compile it using xelatex and using your commands below, i get georgian text, but number and english/latin letters don't appear – user208878 Jun 19 '21 at 14:18
  • The packages you would need to install from CTAN to usethe PDFTeX support on your own box are babel-georgian and georgian. However, I don’t think ShareLaTeX allows you to update the font map files you would need to. – Davislor Jul 15 '22 at 01:51

1 Answers1

1

from

\documentclass{article}

\usepackage{fontspec} \setmainfont{Noto Serif Georgian} \usepackage [georgian]{babel}

\begin{document}

გამარჯობა

\end{document}

I get

enter image description here

from xelatex despite a spurious warning about TU encoding.

You should be able to use the Noto fonts on Overleaf

enter image description here

David Carlisle
  • 757,742
  • With this command numbers, latin letters, and punctuation don't appear. (They appear as hollow white squares) – user208878 Jun 19 '21 at 15:24
  • if i change the font in your command to "DejaVu Serif" I get what i want. thanks! – user208878 Jun 19 '21 at 16:47
  • In order to use Noto Serif Georgian only for Georgian, you would use a command like \babelfont{rm}{Noto Serif} followed by \babelfont[georgian]{rm}[Scale=MatchLowercase]{Noto Serif Georgian}. – Davislor Jul 15 '22 at 01:27