TeXLive

Installation from CTAN
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz tar -xzf install-tl-unx.tar.gz cd install-tl-*/ wget https:// raw.githubusercontent.com/musinsky/config/master/TeXLive/texlive.profile ./install-tl --profile=texlive.profile ./install-tl -gui perltk
 * http://www.tug.org/texlive/
 * http://www.tug.org/texlive/doc/texlive-en/texlive-en.html
 * 1) automated (batch)
 * 1) interactive


 * Selected scheme
 * basic scheme (plain and latex)


 * Installation collections
 * 1) Essential programs and files
 * 2) Generic recommended packages
 * 3) LaTeX fundamental packages
 * 4) LaTeX recommended packages
 * Personally would not recommend install Czech/Slovak or Cyrillic collection (many blast, obsolete and no longer needed packages)

export PATH=/opt/texlive//bin/x86_64-linux:$PATH export MANPATH=/opt/texlive//texmf-dist/doc/man:$MANPATH export INFOPATH=/opt/texlive//texmf-dist/doc/info:$INFOPATH
 * add to profile file

Configuration

 * http://www.tug.org/texlive/doc/tlmgr.html
 * http://mirror.ctan.org/systems/texlive/tlnet/archive/


 * http://en.wikibooks.org/wiki/LaTeX/Installation
 * http://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages

$ tlmgr gui $ tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet $ tlmgr paper a4
 * TeX Live Manager (GUI)
 * Commandline interface

$ tlmgr install latexmk epstopdf pdfcrop $ tlmgr install babel-slovak hyphen-slovak ec                         # lm is installed by default $ tlmgr install babel-russian hyphen-russian cyrillic t2 lh cm-super  # lh also installed package ec $ tlmgr install environ trimspaces comment
 * 1) Slovak (Czech) language
 * 1) Russian language
 * 1) JINR Dubna report

$ tlmgr update --list $ tlmgr update --all $ tlmgr update --self $ tlmgr info revtex $ tlmgr remove revtex $ tlmgr search --global revtex $ tlmgr search --global --file il2enc.def $ tlmgr search --global --file ecrm1200  # find missing font (package) $ tlmgr search --file amsmath.sty        # find only from installed packages

mktexlsr           # Update filename database updmap-sys         # Update the font map database fmtutil-sys --all  # Rebuild all formats

User mode
$ tlmgr init-usertree    # set up the user tree $ tlmgr --usermode gui $ tlmgr --usermode search --global revtex $ tlmgr --usermode install revtex
 * WARNING: This is new work (start from TeX Live 2013). Expect breakage, and the need to reinstall your user tree.

mktexlsr ~/texmf   # Update filename database          mktexlsr `kpsewhich -expand-var='$TEXMFHOME'` updmap             # Update the font map database fmtutil --all      # Rebuild all formats

Checking
$ texconfig conf ========== kpathsea variables ========== TEXMFMAIN=/opt/texlive//texmf-dist TEXMFDIST=/opt/texlive//texmf-dist TEXMFLOCAL=/opt/texlive/texmf-local TEXMFSYSVAR=/opt/texlive//texmf-var TEXMFSYSCONFIG=/opt/texlive//texmf-config TEXMFVAR=/home/musinsky/.texlive/texmf-var TEXMFCONFIG=/home/musinsky/.texlive/texmf-config TEXMFHOME=/home/musinsky/texmf
 * http://www.tug.org/texlive/doc/texlive-cz/texlive-cz.html

$ kpsewhich -var-value TEXMFHOME /home/musinsky/texmf $ kpsewhich -var-value TEXMFLOCAL /opt/texlive/texmf-local

PSCyr

 * PSCyr-0.4d (0.4d-beta9) fonts, Alexander Lebedev, 2000-2004
 * tested on TeX Live (from 2008 to, installed from CTAN)


 * 1) install as admin (recommended) to $TEXMFLOCAL  export DEST_DIR=`kpsewhich -expand-var='$TEXMFLOCAL'`
 * 2) or install as user to $TEXMFHOME  export DEST_DIR=`kpsewhich -expand-var='$TEXMFHOME'`

wget ftp://scon155.phys.msu.su/pub/russian/psfonts/0.4d-beta/PSCyr-0.4-beta9-tex.tar.gz wget ftp://scon155.phys.msu.su/pub/russian/psfonts/0.4d-beta/PSCyr-0.4-beta9-type1.tar.gz  wget http:// alice.saske.sk/files/PSCyr-0.4-beta9-tex.tar.gz wget http:// alice.saske.sk/files/PSCyr-0.4-beta9-type1.tar.gz tar -xzf PSCyr-0.4-beta9-type1.tar.gz tar -xzf PSCyr-0.4-beta9-tex.tar.gz mkdir -p $DEST_DIR/fonts/{afm,tfm,type1,vf}/public/pscyr mkdir -p $DEST_DIR/fonts/{enc,map}/dvips/pscyr mkdir -p $DEST_DIR/fonts/map/dvipdfm/pscyr mkdir -p $DEST_DIR/tex/latex/pscyr mkdir -p $DEST_DIR/doc/fonts/pscyr mv PSCyr/fonts/afm/public/pscyr/*  $DEST_DIR/fonts/afm/public/pscyr mv PSCyr/fonts/tfm/public/pscyr/*  $DEST_DIR/fonts/tfm/public/pscyr mv PSCyr/fonts/type1/public/pscyr/* $DEST_DIR/fonts/type1/public/pscyr mv PSCyr/fonts/vf/public/pscyr/*   $DEST_DIR/fonts/vf/public/pscyr mv PSCyr/dvips/pscyr/*.enc      $DEST_DIR/fonts/enc/dvips/pscyr mv PSCyr/dvips/pscyr/*.map      $DEST_DIR/fonts/map/dvips/pscyr mv PSCyr/dvipdfm/base/*.map     $DEST_DIR/fonts/map/dvipdfm/pscyr mv PSCyr/tex/latex/pscyr/*   $DEST_DIR/tex/latex/pscyr mv PSCyr/ChangeLog       $DEST_DIR/doc/fonts/pscyr mv PSCyr/LICENSE         $DEST_DIR/doc/fonts/pscyr mv PSCyr/manifest.txt    $DEST_DIR/doc/fonts/pscyr mv PSCyr/doc/PROBLEMS    $DEST_DIR/doc/fonts/pscyr mv PSCyr/doc/fonts-ex.tex $DEST_DIR/doc/fonts/pscyr iconv -f KOI8-R -t UTF8 < PSCyr/doc/README.koi > $DEST_DIR/doc/fonts/pscyr/README.utf8
 * 1) documentation


 * 1) install as admin (recommended) mktexlsr &#10;updmap-sys --enable Map=pscyr.map file map  used only with (obsolete), no more need to enable
 * 2) or install as user mktexlsr $DEST_DIR&#10;updmap --enable Map=pscyr.map

mkdir test cp $DEST_DIR/doc/fonts/pscyr/fonts-ex.tex test/ cd test latex fonts-ex.tex dvips fonts-ex.dvi pdflatex fonts-ex.tex
 * testing

$ kpsewhich psfonts.map  # for /opt/texlive//texmf-var/fonts/map/dvips/updmap/psfonts.map    # installed as admin /home/musinsky/.texlive/texmf-var/fonts/map/dvips/updmap/psfonts.map    # installed as user $ kpsewhich pdftex.map   # for /opt/texlive//texmf-var/fonts/map/pdftex/updmap/pdftex.map    # installed as admin /home/musinsky/.texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map    # installed as user $ grep faqr6a `kpsewhich psfonts.map` faqr6a AntiquaPSCyr-Regular " T2AEncoding ReEncodeFont " <t2a.enc <antiq6.pfb $ grep faqr6a `kpsewhich pdftex.map` faqr6a AntiquaPSCyr-Regular " T2AEncoding ReEncodeFont " <t2a.enc <antiq6.pfb


 * ftp://scon155.phys.msu.su/pub/russian/psfonts/
 * http://openports.se/fonts/ru-pscyr
 * http://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/ (finding pscyr)
 * http://ru-tex.livejournal.com/101771.html
 * http://welinux.ru/post/3200/

UTF-8
\usepackage[utf8]{inputenc}  % or utf8x if needed
 * The LaTeX support of is fairly specific: it includes only a limited range of unicode input characters. It only defines those symbols that are known to be available with the current font encoding.
 * Extended UTF-8 () input encoding support for LaTeX use the option to define more character combinations, but is not officially supported and is unmaintained ?!
 * With XeTeX and LuaTeX (best way to deal with unicode) the inputenc package is no longer needed. Both engines support UTF-8 directly.

Fonts

 * https://en.wikipedia.org/wiki/Computer_font


 * Bitmap (raster) fonts consist of a matrix of dots or pixels representing the image of each glyph in each face and size, are faster and easier to use in computer code, but non-scalable. Bitmap fonts look best at their native pixel size. At non-native sizes, many text rendering systems perform resampling, more advanced systems perform anti-aliasing.


 * Vector (outline) fonts use Bezier curves, drawing instructions and mathematical formulae to describe each glyph, which make the character outlines scalable to any size, are more complicated to render on screen than bitmap fonts. Vector fonts store instructions in the form of lines and curves of how to draw the image rather than storing the image itself. Most fonts seen and used on computers are Vector (outline) fonts. Examples are PostScript Type 1 and Type 3 fonts, TrueType and OpenType.
 * Type1 fonts were developed by Adobe, which uses PostScript file format to encode font information. The glyphs are outline fonts described with cubic Bezier curves.
 * TrueType is a font system originally developed by Apple. It was intended to replace Type1 fonts, unlike them, glyphs are described with quadratic Bezier curves.
 * OpenType is a smartfont system designed by Adobe and Microsoft. OpenType fonts contain outlines in either the TrueType or Type1 format together with a wide range of metadata.


 * Metafont (stroke fonts) use a series of specified lines and additional information to define the profile, or size and shape of the line in a specific face, which together describe the appearance of the glyph. Metafont font is primarily made up of strokes with finite-width pens, along with filled regions, describes the pen paths. Like Type1, TrueType or OpenType fonts, it is a vector font description system. Fonts are described in terms of curves and lines (source of font ) with associated font metric, but generating the bitmap fonts , that can be embedded into e.g. PostScript. Metafont was devised by Donald Knuth as counterpart to his TeX typesetting system. Today, the role of Metafont is diminishing. Many people choose to use Type1 fonts almost entirely. In fact, with PostScript alternatives to the Computer Modern Math fonts now available, it's possible to use TeX without using MetaFont fonts at all.
 * MetaPost uses a lan­guage based on that of Metafont to pro­duce pre­cise tech­ni­cal, advanced illustrations. Its out­put is vector (scal­able) PostScript or SVG, rather than the bitmaps Metafont cre­ates.


 * The advance of publishing technology (PostScript, PDF, laser printers) has reduced the need for bitmap fonts. The preferred formats are now vector (outline) fonts such as Type1, TrueType, or OpenType, which can be rendered efficiently at arbitrary resolution and using sophisticated anti-aliasing techniques by printer firmware or on-screen document viewers. In LaTeX are available Type1 fonts, modern TeX compilers (such XeTeX and LuaTeX) allow documents to use OpenType or TrueType fonts.

Computer Modern fonts

 * https://en.wikipedia.org/wiki/Computer_Modern


 * Computer Modern (CM) is the family of typefaces used by default by the typesetting program TeX. The base fonts are dis­tributed as Metafont source (generating the bitmap fonts). Best is to use vector (outline) fonts, several projects have ported the CM fonts into such formats.
 * PostScript Type1 ver­sions of Computer Modern are avail­able in the AMS fonts dis­tri­bu­tion (transformed by BlueSky and donated to the AMS under Open Font License). It is found in most standard TeX distributions.
 * Latin Modern implementation is now standard in the TeX community and was made through a Metafont/MetaPost derivative called MetaType1. It was derived from the AMS/BlueSky Type1 fonts, which were converted back into outline-based MetaType1 programs, from which then the extended Type1 and OpenType Latin Modern fonts were developed. On screen display of the Latin Modern fonts can result in a less even display of kerning and character heights than is the case with the AMS/BlueSky fonts (involved roundtrip conversion process). Latin Modern Math fonts is available in OpenType for­mat (XeTeX or LuaTeX).

LaTeX Font encoding

 * http://en.wikibooks.org/wiki/LaTeX/Fonts


 * The default LaTeX font encoding is OT1, the encoding of the original CM (Computer Modern) TeX text fonts. It contains only 128 characters, many from ASCII. The AMS fonts are Type1 ver­sions of Computer Modern. Output looks perfect, but has some limitations for non-English (hyphenation, search in PDF, some Latin letters, not to mention about Greek or Cyrillic).
 * EC (Extended Cork, Extended CM, European CM) fonts in T1 encoding contains 256 characters for most of the west and east European languages based on Latin script. Fonts are avail­able in Type1 format, as part of the CM-Super bun­dle.
 * LH font set contains letters necessary to typeset documents in languages using Cyrillic script. Because of the large number of Cyrillic glyphs, they are arranged into four font encodings: T2A, T2B, T2C, and X2. Fonts, in the stan­dard T2* and X2 en­cod­ings, are avail­able in Type1 format, in the CM-Su­per fam­ily of fonts.


 * CM, EC or LH fonts are bitmaps fonts. It is best to use vector Type1 fonts exclusively to produce documents that display well. Modern TeX installations will be setup (will be trying) so that this happens automatically. Default Computer Modern font does not support T1 or T2. Collection of Type1 fonts with T1 encoding support (most widely used today) is Latin Modern ('). Maybe also to use CM-Super (') family of fonts. Booth fonts family have Latin support, but Cyrillic letters contain only CM-Super, not Latin Modern.

English

 * For only English you do not need a specific font encoding (is uses default OT1) and LaTeX automatically uses AMS (Type1 Computer Modern) fonts.

Slovak

 * Pre slovencinu, cestinu, resp. neanglicke jazyky sa pouziva Multilingual support (') for Plain TeX or LaTeX. Balik CSLaTeX je zastaraly a dalej sa neodporuca pouzivat (toto je samozrejme dost diskutabilne). Balik ' sa postara (okrem ineho) o slovenske popisy v dokumente, t.j. nie "Chapter, Figure" ale "Kapitola, Obrazok" atd.


 * Pouzivanim EC (CM fonty v T1 kodovani) fontov sa situaciu v LaTeX zlepsila. Tieto fonty sa nacitavaju implicitne (ako bitmap) pri pouzivani babel s T1 kodovanim. Typograficka kvalita pre ceske a slovenske dokumenty vsak nie je uspokojiva a preto ich pouzivanie nie je odporucane. Neskor bola vytvorena cela skupina Type1 fontov CM-Su­per, ktora pokryva cele mnoziny EC, LH a inych fontov. Ani CM-Su­per nedosahuje takych kvalit ako AMS (Type1 Computer Modern), napriek tomu su dobre pouzitelne, zrovnatelne. Bez pouzitia v PDF dokumente s EC bitmap fonts (a T1 kodovanim) nefunguje vyhladavanie ani kopirovanie.


 * Nedostupnost Latin (T1 kodovanie) fontov v kvalite podobnej implicitnych Computer Modern fontov vo vektorovom formate Type1 (ktore davaju vyborny vysledok, ale nemaju podporu T1 kodovania) priviedla k vytvoreniu fontov Latin Modern (LM), ktore vyriesili rozne problemy (vid nizsie) a vytvaraju vynikajuci PDF vystup s plnou podporou vsetkych znakov latinskej abecedy. Dosahuju dokonca lepsie vysledky ako Type1 verzia CSfonts (specialne vytvorene CSTeX zdruzenim). Na vyvoji LM fontov sa podiela aj CSTUG a v sucasnosti je to najlepsia volba pre sadzbu ceskych a slovenskych textov do vektoroveho (PDF) formatu. ConTeXt dokonca pouziva Latin Modern ako default fonts, namiesto Computer Modern.


 * Pri pouzivani T1 kodovania s inymi (nie Latin Modern alebo CM-Super) skupinami fontov, napr., nastavaju specificke problemy s niektorymi pismenami (v slovencine napr. pre ď, ť, ľ je diakriticke znamienko umiestnene za medzerou, kerning problem) a vyhladavanim, kopirovanim priamo v PDF. Riesenim moze byt pouzitie ineho kodovania , ktore bolo vytvorene v ramci CSLaTeX projektu spolu s CSfonts. IL2 kodovanie, ktore vnutorne koduje do ISO 8859-2 (alias Latin-2), je vyladene pre podporu cestiny, slovenciny. Latin Modern ako aj CM-Super fonty funguju bezproblematicky s kodovanim T1, vyhladavanim, kopirovanim priamo v PDF dokumentoch.


 * Pre slovencinu, cestinu, resp. v pripade pouzitia T1 kodovania, musi byt vzdy nainstalovany balik  (bitmapove EC fonty) a to aj v pripade, ze budeme pouzivat vektorove fonty (Latin Modern alebo CM-Super).


 * LaTeX (TeX Live 2017) v pripade T1 kodovania automaticky pouzije CM-Super fonty, ak by nahodou neboli nainstalovane, tak pouzije bitmapove EC fonty. Pre pouzitie Latin Modern je potrebne explicitne pouzit tento balik . Predpoklada sa skora zamena pouzitia ' ako implicitnych fontov namiesto '. Pozor, v pripade ak sa explicitne nepouzije, tak sa nepouzije T1 kodovanie (napriek pouzitiu babel so slovencinou alebo cestinou), ale OT1. Dosledkom toho sa vygeneruje dokument s AMS fontami (original Type1 Computer Modern), a teda vzniknu vyssie spomenute problemy (kerning, vyhladavanie).


 * Summarum
 * Pri pouzivani slovenciny (cestiny) v LaTeX pracujeme s T1 kodovanim, implicitne sa pouziju vektorove ' fonts (ak nie su nainstalovane, tak sa pouziju bitmap ' fonts). Najlepsi vysledok vsak dosiahneme pouzitim ' fonts. Pomocou balikov ' a  sa postarame a spravne popisy a delenie slov v dokumente.


 * math mode
 * Slovenske (ceske) pismenka sa v math mode nemaju pouzivat, preto logicky ani nie su v matematickej italike. V pripade nutnosti pouzivat akcent v math mode (kôň).


 * uvodzovky
 * priamo pisanim v UTF-8 kodovani, slovenske „dvojite“ uvodzovky („ U+201E, “ U+201C)
 * pomocou makra (obsiahnuteho v ), slovenske  uvodzovky \def\uv#1{\clqq#1\crqq}


 * vlna
 * vygenerovanie nezalomitelnych medzier ( ~ ) pomocou programu vlna $ vlna -l latex.tex
 * existuje aj automaticke doplnovanie behom prekladu dokumentu, vyzaduju vsak manualne konfigurovanie encTeX, co sposobuje problemy obzvlast s prenositelnostou takeho LaTeX dokumentu.

Russian

 * http://en.wikibooks.org/wiki/LaTeX/Internationalization
 * http://www.inp.nsk.su/~baldin/LaTeX/index.html


 * Пакет ' поддерживает кириллицу в LaTeX, он включает набор кириллических кодировок для . Для кодирования шрифтов в формате T2(A) и решения разных проблем поддержки набора кириллицы (BibTeX или русский текст в математической моде) используется пакет '. Семейство кириллических (растровых) шрифтов, согласующихся с базовыми шрифтами Computer Modern, с поддержкой T2A кодирования, доступно в составе пакета .
 * Векторные (Type1) шрифты для LaTeX доступны в семействе CM-Super или PSCyr. К сожалению, кириллица не была включена в состав Latin Modern шрифтов (однако, недавно появились аналог, шрифты Cyrillic modern).  наиболее популярные векторные шрифты, кроме того они включены состав любого дистрибутива LaTeX. Из за лицензионных проблем пакет с шрифтами PSCyr, наоборот, отсутствует в дистрибутивах LaTeX, кроме того он больше не поддерживается и не развивается.