%% $Id: vlna-inc.tex 518 2014-05-17 15:42:05Z zw $ % Included file, encoding UTF-8, see vlna-enctex.sty \ifeng \section{English manual} This is a manual for ``vlna'' implemented in enc\TeX\ of February 2003. Enc\TeX\ itself and the macros for plain \TeX\ were developed by Petr Olšák. \LaTeX\ version was derived from it by ZdenÄ›k Wagner. \else \section{\texorpdfstring{ÄŒeský manuál}{Cesky manual}} Toto je manuál balÃÄku "`vlna"' implementovaného pomocà enc\TeX{}u z února~2003. Enc\TeX\ a makra pro plain \TeX\ vytvoÅ™il Petr Olšák. Verzi pro \LaTeX\ z nich odvodil ZdenÄ›k Wagner. \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{Purpose} The purpose of the package is to insert nonbreakable spaces (\verb:~:, in Czech \textit{vlna} or \textit{vlnka}) after nonsyllabic prepositions and single letter conjuctions directly while \TeX ing the document. The macros recognise math and verbatim by \TeX\ means. Inserting nonbreakable spaces by a preprocessor may never be fully reliable because user defined macros and environments cannot be recognised. \else \subsection{\texorpdfstring{ÚÄel}{Ucel}} Tento balÃÄek sloužà ke vkládánà nezlomitelných mezer (vlnek) za neslabiÄné pÅ™edložky a jednopÃsmenné spojky pÅ™Ãmo pÅ™i \TeX ovánà dokumentu. Makra rozeznávajà matematiku a verbatim \TeX ovými prostÅ™edky. Vkládánà nezlomitelných mezer preprocesorem nikdy nemůže být naprosto spolehlivé, protože uživatelsky definovaná makra a prostÅ™edà nelze rozpoznat. \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{Requirements} This package requires enc\TeX\ of February 2003. It is often available in the distribution but is not activated as default. In order to activate it you have to regenerate your formats using the \texttt{-enc} switch. In some distributions, such as \TL, you have to modify \texttt{fmtutil.cnf}. It is achieved by writing your own \texttt{texmf-local/web2c/fmtutil-local.cnf} which is shown in Section~\ref{fmtutil}. In other distributions the instructions of modifying the method of format generation may differ. In case you do not have enc\TeX\ at all you have to build it yourself from the sources found at \url{http://math.feld.cvut.cz/olsak/enctex.html} \else \subsection{\texorpdfstring{Požadavky}{Pozadavky}} Tento balÃÄek vyžaduje enc\TeX\ z února 2003. Ten je obvykle v distribucÃch obsažen, avÅ¡ak nenà aktivován. Pro jeho aktivaci musÃte znovu vygenerovat formáty s použitÃm parametru \texttt{-enc}. V nÄ›kterých distribucÃch, napÅ™. v \TL, budete muset upravit soubor \texttt{fmtutil.cnf}, ÄehoÄ docÃlÃte vytvoÅ™enÃm vlastnÃho souboru \texttt{texmf-local/web2c/fmtutil-local.cnf}, který je ukázán v kapitole~\ref{fmtutil}. Instrukce pro zmÄ›nu způsobu generovánà formátů v jiných distribucÃch mohou být odliÅ¡né. V pÅ™ÃpadÄ›, že enc\TeX\ nemáte, musÃte si jej zkompilovat sami ze zdrojů, které najdete na \url{http://math.feld.cvut.cz/olsak/enctex.html} \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{Package contents} The package contains: \begin{description} \item[encxvlna.pdf] --- this manual \item[encxvlna.tex, vlna-inc.tex] --- manual sources \item[encxvlna.tex] --- plain \TeX\ macros \item[encxvlna.sty] --- \LaTeX\ package file \item[License.txt] --- license \end{description} File \texttt{vlna.tex} is a part of enc\TeX\ but it was previously distributed with \TL\ in a wrong directory. Moreover, since enc\TeX\ is not enabled as default, the macros might be used without it. This will generate error messages that might not be understood by beginners. The modified file \texttt{encxvlna.tex} differs from the version included in enc\TeX\ just by a descriptive error message. \else \edef\pom{---\space\ignorespaces} \subsection{\texorpdfstring{Obsah balÃÄku}{Obsah balicku}} BalÃÄek obsahuje: \begin{description} \item[encxvlna.pdf] \pom tento manuál \item[encxvlna.tex, vlna-inc.tex] \pom zdrojový kód manuálu \item[encxvlna.tex] \pom makra pro plain \TeX \item[encxvlna.sty] \pom balÃÄek pro \LaTeX \item[License.txt] \pom licence \end{description} Soubor \texttt{vlna.tex} je souÄástà enc\TeX{}u, ale původnÄ› byl distribuován v \TL\ ve Å¡patném adresáři. Protože navÃc enc\TeX\ nenà v \TL\ standardnÄ› aktivován, mohou být makra použita bez nÄ›j. To způsobà chyby, jimž nemusà zaÄáteÄnÃci rozumÄ›t. Modifikovaná verze \texttt{encxvlna.tex} se lišà od verze obsažené v enc\TeX{}u pouze vÃce popisnou chybovou zprávou. \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{Usage in plain \TeX} Usage in plain \TeX\ is simple. Just put the following command before your text: \else \subsection{\texorpdfstring{PoužitÃ}{Pouziti} v plain \TeX u} Použità v plain \TeX{}u je velmi jednoduché. Vložte pÅ™ed svůj text pÅ™Ãkaz: \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \smallskip \begin{verbatim} \input encxvlna \end{verbatim} \smallskip %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng Remember that some macro definitions may confuse this package. The best location for the above mentioned command is \textit{after} all definitions but before the text. \else Nezapomeňte, že nÄ›které definice maker mohou tento balÃÄek zmást. Nejlepšà mÃsto pro výše uvedený pÅ™Ãkaz je tedy \textit{za} vÅ¡emi definicemi, ale pÅ™ed vlastnÃm textem. \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{Usage in \LaTeX} Usage in \LaTeX\ is similarly simple. Put the following command to your preamble: \else \subsection{\texorpdfstring{PoužitÃ}{Pouziti} v \LaTeX u} Použità v \LaTeX{}u je stejnÄ› jednoduché. Vložte do preambule pÅ™Ãkaz: \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \smallskip \begin{verbatim} \usepackage{encxvlna} \end{verbatim} \smallskip %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng Remember that some packages and macro definitions may contain code which may confuse this package. The manual for \textsc{hyperref} says that it should be placed as the last package but it would report weird error messages if it is loaded after \textsc{encxvlna}. The best place for the above mentioned command is thus just above \verb;\begin{document};. The \textsc{encxvlna} package itself postpones some commands using \verb;\AtBeginDocument;. If you load it by this hook, it will be too late and you will see other weird error messages. \else Nezapomeňte, že nÄ›které balÃÄky a definice maker mohou obsahovat kód, který tento balÃÄek zmate. Návod k balÃÄku \textsc{hyperref} Å™Ãká, že má být naÄten jako poslednÃ, ale právÄ› to způsobà výpis podivných chybových zpráv, pokud bude balÃÄek \textsc{encxvlna} naÄten dÅ™Ãve. Nejlepšà mÃsto pro výše zmÃnÄ›ný pÅ™Ãkaz je tedy pÅ™Ãmo nad \verb;\begin{document};. Samotný balÃÄek \textsc{encxvlna} využÃvá \verb;\AtBeginDocument; k odloženà nÄ›kterých pÅ™Ãkazů. Pokud se pokusÃte využÃt téhož mechanismu k naÄtenà tohoto balÃÄku, bude to pÅ™ÃliÅ¡ pozdÄ› a doÄkáte se dalÅ¡Ãch podivných chybových zpráv. \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{Modifications in the \LaTeX\ version} As already written the \LaTeX\ package was derived from the original plain \TeX\ file. In addition to creation of the package signature the following modifications were made: \begin{enumerate} \item Definition of \verb;\uv; was removed because it appears in the Czech and Slovak language definition files. \item Register \verb;\mubytein; is set to 2 at the beginning of the document. \item Czech and Slovak language definition files for \textsc{babel} introduce in version~3.1 new syntax for writing quotes, namely \verb;"`v lese"';. This is added to the list of recognised patterns. \item Definition of \verb;\protect; is tested so that the macros do nothing in moving arguments. \item Definition of \verb;\rm; is compared to \verb;\@empty; so that outlines are correctly created by \textsc{hyperref}. \item Tests were added in order to enable work with the \textsc{microtype} package. \end{enumerate} The macros now need 15 \verb;\expandafter;'s! \else \subsection{Modifikace ve verzi pro \LaTeX} Jak již bylo napsáno, verze pro \LaTeX\ byla odvozena z původnÃch maker pro plain \TeX. KromÄ› vytvoÅ™enà signatury \LaTeX ového balÃÄku byly provedeny tyto zmÄ›ny: \begin{enumerate} \item Byla odstranÄ›na definice \verb;\uv;, protože se vyskytuje v jazykových definiÄnÃch souborech pro ÄeÅ¡tinu a slovenÅ¡tinu. \item Registr \verb;\mubytein; je naplnÄ›n hodnotou 2 až na zaÄátku dokumentu. \item ÄŒeské a slovenské jazykové definiÄnà soubory pro \textsc{babel} zavádÄ›jà od verze~3.1 novou syntaxi pro zápis uvozovek: \verb;"`v lese"';. Toto je pÅ™idáno do seznamu rozpoznávaných vzorů. \item Testuje se definice \verb;\protect; tak, aby makra nedÄ›lala nic v pohyblivých (moving) argumentech. \item Definice \verb;\rm; se porovnává s \verb;\@empty;, aby balÃÄek \textsc{hyperref} správnÄ› vytvoÅ™il záložky. \item Byl pÅ™idán test, který umožnà spolupráci s balÃÄkem \textsc{microtype}. \end{enumerate} Makra nynà potÅ™ebujà 15 pÅ™Ãkazů \verb;\expandafter;! \fi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{Important note for \LaTeX\ users} There is a problem with the \textsc{url} package and hence with \textsc{hyperref} which loads \textsc{url}. As a matter of fact it is not a problem of \textsc{encxvlna} but a problem of enc\TeX\ and \textsc{Unicode}. Lines 39 and 50 of \texttt{url.sty} contain unprintable characters which are not legal as UTF-8 character sequences. Everything works fine until you try to typeset a URL while converting the input from UTF-8 by enc\TeX. It is sufficient to set \verb;\mubytein; to zero just before loading \textsc{url} or \textsc{hyperref}. If you load these packages including \textsc{encxvlna} in correct order just before \verb;\begin{document};, you need not bother with setting back a nonzero value to \verb;\mubytein;. Look into the source code of this manual, into file \else \subsection{\texorpdfstring{Důležitá poznámka pro uživatele}{Dulezita poznamka pro uzivatele} \LaTeX u} PÅ™i použità balÃÄku \textsc{url}, a tudÞ \textsc{hyperref}, jenž \textsc{url} naÄÃtá, nastává problém. Ve skuteÄnosti to nenà problém balÃÄku \textsc{encxvlna}, ale problém enc\TeX{}u a \textsc{Unicode}. Řádky 30 a 50 v souboru \texttt{url.sty} obsahujà netisknutelné znaky, jež jsou nepovolenými znakovými sekvencemi v UTF-8. VÅ¡e funguje správnÄ› až do chvÃle, kdy chcete vytisknout URL a souÄasnÄ› konvertovat vstup z UTF-8 enc\TeX em. PostaÄÃ, když vynulujete \verb;\mubytein; pÅ™ed naÄtenÃm \textsc{url} Äi \textsc{hyperref}. NaÄÃtáte-li tyto balÃÄky vÄetnÄ› balÃÄku \textsc{encxvlna} ve správném poÅ™adà bezprostÅ™ednÄ› pÅ™ed pÅ™Ãkazem \verb;\begin{document};, nemusÃte se starat o návrat nenulové hodnoty do registru \verb;\mubytein;. PodÃvejte se do zdrojového kódu tohoto manuálu, do souboru \fi \texttt{encxvlna.tex} \ifeng in directory \else v adresáři \fi \texttt{doc/generic/encxvlna}. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng Similar problems are encountered when using the \textsc{movie15} package. You have to include the \cmd{includemovie} command within a group setting \else Podobné problémy nastávajà pÅ™i použità balÃÄku \textsc{movie15}. MusÃte pÅ™Ãkaz \cmd{includemovie} uzavÅ™Ãt do skupiny,v nÞ nastavÃte \fi \verb;\mubytein=0;. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ifeng \subsection{License} The package can be used and distributed according to the LaTeX Project Public License version~1.3 or later the text of which can be found at the \texttt{License.txt} file in the \texttt{doc} directory or at \else \subsection{Licence} BalÃÄek může být použÃván a Å¡ÃÅ™en podle LaTeX Project Public License verze~1.3 nebo novÄ›jÅ¡Ã, jejÞ text najdete v souboru \texttt{License.txt} v adresáři \texttt{doc}, nebo na \fi \url{http://www.latex-project.org/lppl.txt}