tetex-0.9csBETA-5 a deleni slov

Alexandr Malusek malusek at hroch.ujf.cas.cz
Wed Nov 25 15:31:51 CET 1998


Dobry den,

Odpoved je trochu delsi nez byva obvykle, ale chtel jsem, aby nedoslo
k nejakemu zjednoduseni nebo zkresleni.

xchoura at hpk.felk.cvut.cz (Michal Choura) writes:

> > Muze mi nekdo, komu korektne funguje ceske deleni slov v LaTeXu pod
> > Linuxem, poslat vzorovou preambuli nejakeho dokumentu, pripadne navod
> > co je treba nastavit?
> >
> > Drive mi to fungovalo, ale po instalaci tetex-0.9csBETA-5 a
> > tetex-{dvilj,dvips,pdftex,xdvi,omega,etex,latex,afm}-0.9csBETA-5 mi to
> > fungovat prestalo.
>
> No, pokud nepotrebujete babel, chodi mi to takto (podle
> http://home.zcu.cz/~snajdr5/cslatex/):
>
> \documentclass[10pt]{article}
> \usepackage{czech}
> \usepackage[latin2]{inputenc}
> \usepackage{a4wide}
> \usepackage{longtable}

Pro jistotu jsem nainstaloval vsechny baliky tetex*csBETA-5 znovu:

# ls
tetex-0.9csBETA-5.i386.rpm         tetex-latex-0.9csBETA-5.i386.rpm
tetex-afm-0.9csBETA-5.i386.rpm     tetex-omega-0.9csBETA-5.i386.rpm
tetex-dvilj-0.9csBETA-5.i386.rpm   tetex-pdftex-0.9csBETA-5.i386.rpm
tetex-dvips-0.9csBETA-5.i386.rpm   tetex-xdvi-0.9csBETA-5.i386.rpm
tetex-etex-0.9csBETA-5.i386.rpm
# rpm -i *.rpm

Zpracovani dokumentu t1.tex pak dopadne takto:

$ cat t1.tex
\documentclass[10pt]{article}
\usepackage{czech}
\usepackage[latin2]{inputenc}
\begin{document}
Ahoj lidi.
\end{document}

$ latex t1
This is TeX, Version 3.14159 (Web2C 7.2)
(t1.tex
LaTeX2e <1998/06/01>
Loading CZ hyphenation patterns: Pavel Sevecek, v3, 1995
Loading SK hyphenation patterns: Jana Chlebikova, 1992
(/usr/lib/texmf/tex/latex/base/article.cls
Document Class: article 1998/05/05 v1.3y Standard LaTeX document class
(/usr/lib/texmf/tex/latex/base/size10.clo))
(/usr/lib/texmf/tex/generic/babel/czech.sty
(/usr/lib/texmf/tex/generic/babel/czech.ldf
(/usr/lib/texmf/tex/generic/babel/babel.def
(/usr/lib/texmf/tex/generic/babel/switch.def))

Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `Czech'
(babel)                I will use the patterns loaded for \language=0 instead.

)) (/usr/lib/texmf/tex/latex/base/inputenc.sty beta test version
(/usr/lib/texmf/tex/latex/base/latin2.def)) (t1.aux) [1] (t1.aux) )
Output written on t1.dvi (1 page, 232 bytes).
Transcript written on t1.log.

Chapu to tak, ze babel je v teto distribuci do latexu napevno
zakonfigurovan. Pouzije se, i kdyz ho v preambuli neuvedu.

Pro zajimavost jsem zkusil i spustit cslatex. Dopadlo to takto:

$ cslatex t1
This is TeX, Version 3.14159 (Web2C 7.2)
(t1.tex
LaTeX2e <1998/06/01>
Loading CZ hyphenation patterns: Pavel Sevecek, v3, 1995
Loading SK hyphenation patterns: Jana Chlebikova, 1992
(/usr/lib/texmf/tex/latex/base/article.cls
Document Class: article 1998/05/05 v1.3y Standard LaTeX document class
(/usr/lib/texmf/tex/latex/base/size10.clo))
(/usr/lib/texmf/tex/csplain/czech.sty)
(/usr/lib/texmf/tex/latex/base/inputenc.sty beta test version
(/usr/lib/texmf/tex/latex/base/latin2.def)) (t1.aux
! Undefined control sequence.
l.2 \select at language
                    {czech}
?

Pak jsem zkusil upgrade na "preddistribucni" verzi tetex*0.9cs-6
(ftp://luznice.felk.cvut.cz/pub/cstetex/, autor Michal Choura):

# rpm -Uvh tetex-0.9cs-6.i386.rpm
package tetex-0.9csBETA-5 (which is newer) is already installed
error: tetex-0.9cs-6.i386.rpm cannot be installed

Tedy upgradovat nejde, ale jmeno je jine, takze to zrejme neni chyba.
Po odinstalovani
# rpm -e `rpm -qa|grep tetex`
# rm -rf /usr/lib/texmf  # pouze pro jistotu
a nove instalaci se to chova lepe:

$ latex t1
This is TeX, Version 3.14159 (Web2C 7.2)
(t1.tex
LaTeX2e <1998/06/01>
Loading CZ hyphenation patterns: Pavel Sevecek, v3, 1995
Loading SK hyphenation patterns: Jana Chlebikova, 1992
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1998/05/05 v1.3y Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/csplain/czech.sty)
(/usr/share/texmf/tex/latex/base/inputenc.sty beta test version
(/usr/share/texmf/tex/latex/base/latin2.def)) (t1.aux) [1] (t1.aux) )
Output written on t1.dvi (1 page, 232 bytes).
Transcript written on t1.log.

Deleni slov jsem otestoval na delsim dokumentu a bylo v poradku. Pravy
okraj byl na rozdil od verze tetex*-5 zarovnan a u polozek "\item" v
prostredi itemize byla uvedena tecka (bullet). Ve verzi tetex*-5
chybela. Ve verzi tetex*-5 byly i problemy s cislovanim obrazku. Ve
verzi tetex*-6 jsem to jeste nezkusil, ale kdyby to nebylo OK, ozvu
se.

Take jsem zkusil pouzit babel a i v tomto pripade to na mem dokumentu
zafungovalo. Netroufam si to ale zevseobecnit, ze vse s babelem je OK.

Take jsem si vsiml, ze pri prechodech \usepackage[czech]{babel} ->
\usepackage{czech} je treba mazat pomocne soubory .aux. Jinak latex
hlasi chybu

! Undefined control sequence.
l.2 \select at language
                    {czech}

Prisel jsem na to pomerne pozde, takze nektere me poznatky ohledne
verze tetex*-5 mohou byt timto faktem zkreslene.

Zda se, ze tetex*-6 me spasi, protoze praci musim dopsat a vysazet do
patku. Rucni instalace cstexu by take byla reseni, ale pres rpm je to
rychlejsi. Diky.

--
A. Malusek  (malusek at ujf.cas.cz)
UJF AV CR



More information about the csTeX mailing list