LaTeX is a free typesetting system. It is valued for many properties such as automated processing (generating bibliographies, links, mathematical equations). It allows you to focus on the text instead of its appearance by using files with styles (e.g. bibliography) suitable for a given journal. Foremostly, it is also available for various Linux distributions.

One of the problems you may encounter while writing an article are the requirements for the use of certain fonts. By default, the following packages are used to provide support for language characters (accents/diacritics):

\usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[your_language]{babel} %e.g. \usepackage[slovak]{babel}
Such configuration usually suffices assuming that the files are encoded in the UTF-8 system. Next choose the font \usepackage{times}. Unfortunately both outdated times and newer mathptmx, pslatex and txfonts (newtxtext/newtxmath) underneath use URW NimbusRomNo9L fonts that are very similar to Times Roman but they are not same. Although language specific characters are displayed correctly, errors may occur during copying. It is worth paying attention to it because in anti-plagiarism programs, words with these letters will be unrecognized.
ÁÄĎÉÍĽĹŇÓÔŔŤÚÝáäďéíľĺňóôŕťúý
ÁÄĎÉÍL’ĹŇÓÔŔŤÚÝáäd’éíl’ĺňóôŕt’úý

To solve this problem, you can use a different font - TeX Gyre Termes: \usepackage{tgtermes}. You can read more about other fonts in the ShareLaTeX knowledge base.

Original Times New Roman font

The easiest way to load fonts on Ubuntu known from Windows consists of three steps:

  1. Install TrueType Microsoft fonts: sudo apt-get install ttf-mscorefonts-installer During the installation process you will be asked to accept Microsoft EULA. The fonts have been made available for free but they are not open-source.
  2. Replace inputenc and fontenc packages with the following commands:
    \usepackage{fontspec}
    \setmainfont{Times New Roman}
    
  3. Swap pdflatex with xelatex:
    xelatex main.tex
    bibtex main
    xelatex main.tex
    xelatex main.tex
    

In practice, the process of generating a pdf file may be slightly longer. For other file endocings use the \XeTeXinputencoding command for the preceding text or \XeTeXdefaultencoding as a standard for all files, e.g. \XeTeXdefaultencoding “cp1250” (coding used by Microsoft Windows for Central European languages).

Custom fonts

If you want to use custom fonts like Arial Narrow, just place them (ttf extension for TrueType fonts) in a directory created under /usr/share/fonts/.