Search code examples
latexoverleafgeorgian

How can I add new language support in the Overleaf LaTeX editor?


I'm trying to add Georgian text support in Overleaf LaTeX editor but it shows me empty space where the Georgian text is supposed to be. How Georgian text looks: ეს არის ქართული ტექსტი.

enter image description here

I tried adding \usepackage[georgian]{babel} in background.tex as well as in the main file A.K.A. David_Shainidze_CV_GEO.tex, but still facing the same issue.

I've also tried selecting different supported compilers on the platform but nothing has changed. Ex: Tried LuaLaTeX and XeLaTeX: enter image description here

Here's the project structure:

enter image description here

% !TeX TS-program = lualatex

\documentclass[11pt]{article}

\usepackage{../components/commonheader}

\begin{document}

ეს არის ქართული ტექსტი

\end{document}

Please, don't hesitate to ask if you need some additional details for giving a shot to my issue.

Thanks in advance! Appreciate any type of interaction and willingness to help me <3.14


Solution

    • You need to use a font which includes the characters of your language, e.g.

    % !TeX TS-program = lualatex
    
    \documentclass[11pt]{article}
    
    \usepackage{../components/commonheader}
    
    \setsansfont{DejaVu Sans}
    
    \begin{document}
    
    ეს არის ქართული ტექსტი
    
    \end{document}
    

    enter image description here

    • You also must not use & in normal text. You will see an error about this in the log file. You have to escape it with ... Frontend team (2 Engineers) \& the Backend team ...

    • Don't try to compile your document with xelatex. You load packages which exclusively work with lualatex