Portál AbcLinuxu, 6. listopadu 2025 22:13
Nainstalujte si teTeX verze 2 nebo novější, CSTeX je již v něm obsažen, jen je nutné jej aktivovat.
Přečtěte si bod číslo 3 tohoto souboru.
Čeština v konzoli:
/etc/rc.conf:
KEYMAP="cz-lat2"
CONSOLEFONT="lat2-16"
Nezapomeňte si pomocí rc-update přidat službu consolefont a keymap.
/etc/env.d/02locales:
LC_ALL=cs_CZ
LANG=cs
Spusťte env-update.
UTF-8 zatím nedoporučuji - na Midnight Commander nebo ncurses je stále nutné použít patche.
LANG= LC_CTYPE=cs_CZ LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=diakritika mi v terminale funguje bez problemov, pri pokuse o prelozneie nasledujuceho dokumentu obdrzim vzdy chybu:
\documentclass{article}
\usepackage[czech]{babel}
\usepackage[latin2]{inputenc}
\begin{document}
Čeština!
\end{document}
chyba:
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./test.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/czech.ldf
(/usr/share/texmf/tex/generic/babel/babel.def)))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/latin2.def)) (./test.aux)
! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `latin2'.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.5 Č
eština!
Netusim kde moze byt problem, za kazdu radu vopred dakujem.
\documentclass{article}
\usepackage{czech}
\begin{document}
Čeština!
\end{document}
a kompiluješ cslatexem, tak to funguje? A je ten zdroják 100% v ISO-8859-2?
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
Taky si vsimni utf8x. Je to novejsi konvence, utf8 vyvola rezim zpetne kompatibility (moje teorie: v nem bylo ucs soucasti inputenc).
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.