summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-02-16 21:06:42 +0000
committerKarl Berry <karl@freefriends.org>2024-02-16 21:06:42 +0000
commitb566eded8c086ee0540d73150610f3cac13310c5 (patch)
tree04bbbb62dfaa36c9a889e2055d4a14e6c1c37f1a /Master/texmf-dist
parent6eba0f2ddc69d22154f045e2795972107832121f (diff)
cnbwp (16feb24)
git-svn-id: svn://tug.org/texlive/trunk@69910 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/cnbwp/README22
-rw-r--r--Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdfbin185714 -> 193215 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdfbin246897 -> 243395 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex138
-rw-r--r--Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdfbin251357 -> 248382 bytes
-rw-r--r--Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex145
-rw-r--r--Master/texmf-dist/tex/latex/cnbwp/cnbwp.cls41
7 files changed, 154 insertions, 192 deletions
diff --git a/Master/texmf-dist/doc/latex/cnbwp/README b/Master/texmf-dist/doc/latex/cnbwp/README
index 095473e5399..9e63d3f6d9c 100644
--- a/Master/texmf-dist/doc/latex/cnbwp/README
+++ b/Master/texmf-dist/doc/latex/cnbwp/README
@@ -1,5 +1,5 @@
=============================================================================
-Package: cnbwp Version 2013.12 1 January 2014
+Package: cnbwp Version 2024.02 13 February 2024
=============================================================================
The purpose of the package is to support proper formatting of Working Papers
@@ -13,8 +13,24 @@ cnbwp-manual-en.pdf = English manual
The doc/ directory contains not only the manual with its source files but also
a few sample files.
+Distributions:
+The package is distributed both with MiKTeX and TeX Live and is packaged
+for Linux distros.
-Installation:
+Installation in MiKTeX:
+Use MiKTeX Console, see https://miktex.org/howto/miktex-console
+
+TeX Live:
+tlmgr install cnbwp
+
+Redhat packages:
+install texlive-cnbwp.noarch and texlive-cnb-doc.noarch by system
+packaging manager
+
+Debian packages:
+The package is a part of texlive-lang-czechslovak
+
+Installation in other distros:
1. put cnbwp.cls and cnbwpsizes.clo to the directory where latex expects packages,
preferably $TEXMF/tex/latex/cnbwp
@@ -28,5 +44,5 @@ Installation:
The license of the package is LPPL.
-Author: Z. Wagner, http://icebearsoft.euweb.cz
+Author: Z. Wagner, https://www.zdenek-wagner.eu
Developed for the Czech National Bank
diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf b/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf
index d0d7be5de20..8e7e3b4ad3e 100644
--- a/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf
+++ b/Master/texmf-dist/doc/latex/cnbwp/cnbpaper.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf
index 1c5cb8c3cf5..54198b52a78 100644
--- a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf
+++ b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex
index 61fbe6bc176..484fd32f68c 100644
--- a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex
+++ b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-cs.tex
@@ -4,7 +4,7 @@
\usepackage{cnbwp-manual}
\setdefaultlanguage{czech}
\title{Návod k použití třídy \fn{cnbwp} pro psaní Working~Papers~ČNB}
-\author{Zdeněk Wagner}\date{verze 2013.12}
+\author{Zdeněk Wagner}\date{verze 2024.02}
\def\?li{\discretionary{-}{-}{-}li}
\begin{document}
\maketitle
@@ -50,87 +50,34 @@ závažné chybě, případně k chybě s exotickým hlášením, takže její p
\section{Instalace}\label{instalace}\index{instalace}
Veškerá makra pro psaní Working Papers České národní banky jsou implementována v třídě
-\fn{cnbwp.cls}. Třída je distribuována v archivním souboru \fn{cnbwp.zip}. Soubor je v archivu
-uložen s cestou odpovídající standardu TDS~(\TeX\ Directory Structure). Způsob instalace se
-nepatrně liší v závislosti na konkrétní distribuci \TeX{}u.
+\fn{cnbwp.cls}. Třída včetně dokumentace je nyní součástí běžných distribucí \TeX{}u, takže ji
+můžete nainstalovat nástroji své distribuce.
\subsection{\MikTeX}\label{inst.miktex}
-Soubor \fn{cnbwp.zip} rozbalíme do adresáře \url{X:\localtexmf}, kde \texttt{X:} označuje disk, na
-němž je \MikTeX{} instalován (obvykle~\texttt{C:}). Poté otevřeme menu
-\zwurl{Start/Programy/MikTeX/MikTeX Options}. Na kartě Roots si ověříme, že \url{X:\localtexmf} je
-v seznamu prohledávaných adresářů. Pokud není, přidáme jej. Pak stiskneme tlačítko \texttt{Refresh
-FNDB}. Úspěšnost instalace lze ověřit příkazem:
-
-\begin{verbatim}
-findtexmf cnbwp.cls
-\end{verbatim}
-
-\noindent Při úspěšné instalaci bude vypsána plná cesta k souboru \fn{cnbwp.cls}.
-
-\pozor Adresář \url{X:\localtexmf} je určen pro místní soubory, které nejsou standardní součástí
-\MikTeX u. Pokud přeinstalujete \MikTeX\ novou verzí, nebude tento adresář přepsán, takže o soubory
-nepřijdete.
-
-\subsection{\teTeX}\label{inst.tetex}
-Tato distribuce je standardem v unixových systémech a je dostupná i pro OS/2 resp. eComStation.
-Uvedeme si pouze instalaci v Linuxu. Instalace v OS/2 je obdobná. Liší se jen tím, že pro
-oddělování adresářů je užito zpětné lomítko a musíme explicitně zadat označení disku, na nějž jsme
-\teTeX\ nainstalovali.
-
-Soubor \fn{cnbwp.zip} rozbalíme do adresáře \url{/usr/share/texmf-local}. Při instalaci v unixových
-systémech je nutno dohlédnout na to, aby soubor
-\url{/usr/share/texmf-local/tex/latex/cnb/cnbwp.cls} neměl DOSové konce řádků. Po rozbalení souboru
-je obvykle nutné obnovit souborovou databázi příkazem \texttt{mktexlsr}.
-
-Z této distribuce vychází i \TeXLive, proto vše, co bude popsáno v následující kapitole, platí i
-pro \teTeX.
+Třída cnbwp je součástí distribuce a lze ji nainstalovat použitím konzoly. V konzoli je též možno
+povolit automatickou instalaci, takže balíček bude nainstalován, kdy jej dokument bude potřebovat.
\subsection{\TeXLive}\label{inst.tl}
-\TeXLive\ je oblíbenou multiplatformní distribucí \TeX{}u. Vychází ze stejných zdrojů jako
-\hyperref[inst.tetex]{\teTeX}, instalace je tedy podobná. Adresář, do nějž rozbalíme
-\fn{cnbwp.zip}, je většinou \url{/usr/local/texlive/texmf-local} v unixových systémech,
-\url{X:\TeXLive\texmf-local} ve
-Windows. \TeXLive\ však lze nainstalovat do libovolného adresáře a dokonce můžeme mít instalováno
-několik verzí \TeXLive\ současně. Adresář, do nějž máme \fn{cnbwp.zip} rozbalit, zjistíme příkazem:
-
-\begin{verbatim}
-kpsewhich --expand-var=$TEXMFLOCAL
-\end{verbatim}
-\index{kpsewhich}
-
-Adresářový strom \url{texmf-local} je sdílen všemi verzemi \TeXLive\ nainstalovaných na daném
-počítači. Při instalaci novější verze \TeXLive\ budou soubory nalezeny automaticky.
-
-\pozor Distribuce \TeXLive\ obvykle vyžaduje po přidání souborů spuštění programu
-\texttt{mktexlsr}. V distribucích pro Windows pro tento účel existuje i položka v Menu \TeXLive.
-Pokud programem \texttt{mktexlsr} neobnovíme databázi a před jménem adresáře s třídou \fn{cnbwp}
-jsou uvedeny dva vykřičníky, \LaTeX\ nebude schopen třídu najít. Chceme\?li zjistit, zda \LaTeX\
-třídu najde, použijeme příkaz:
+\TeXLive\ je oblíbenou multiplatformní distribucí \TeX{}u. Třída cnbwp je součástí distribuce a lze
+ji nainstalovat v terminálovém okně příkazem
\begin{verbatim}
-kpsewhich cnbwp.cls -progname latex
+tlmgr install cnbwp
\end{verbatim}
-\noindent
-Pokud je vše v pořádku, příkaz vypíše plnou cestu k souboru \fn{cnbwp.cls}.
-
-\subsection{\emTeX}\label{inst.emtex}
-Tato distribuce je zastaralá, Eberhard Mattes ji už neudržuje. Je vhodnější přejít na jinou
-distribuci. Pokud přesto chcete používat \emTeX, rozbalte \fn{cnbwp.zip} do pomocného adresáře, v
-adresáři \url{X:\emtex\texinput\latex2e} vytvořte podadresář \fn{cnbwp} a do něj zkopírujte soubory
-\fn{cnbwp.cls} a \fn{cnbwpsizes.clo}.
+\subsection{Jiné distribuce}\label{inst.other}
+Při instalaci třídy \fn{cnbwp} do jiných distribucí je nutno řídit se manuálem dodávaným s
+příslušnou distribucí. V podstatě je nutné najít adresář, kde distribuce očekává třídy a styly pro
+\LaTeX, a do něj vložit soubory \fn{cnbwp.cls} a \fn{cnbwpsizes.clo}. Do adresáře, kde jsou
+očekávány soubory pro \BibTeX, je nutno vložit \fn{abbrvcnb.bst}. V některých distribucích je nutno
+obnovit databázi jmen souborů.
\subsection{Scientific Word}\label{inst.sciword}
Návod je psán pro verzi 5.5. V této verzi rozbalte \fn{cnbwp.zip} do adresáře \url{X:\sw55\TCITeX},
-v jiných verzích se pravděpodobně bude lišit jméno kořenového adresáře. Scientific Word nedodržuje
-zcela přesně TDS, jména adresářů obsahují malá i velká písmena. Souborové systémy FAT a NTFS však
-malá a velká písmena nerozlišují, takže by to nemělo způsobit žádný problém.
-
-\subsection{Jiné distribuce}\label{inst.other}
-Při instalaci třídy \fn{cnbwp} do jiných distribucí je nutno řídit se manuálem dodávaným s
-příslušnou distribucí. Současné distribuce jsou založeny obvykle na \fn{web2c} a dodržují standard
-TDS, proto lze postupovat obdobně jako při instalaci pro \hyperref[inst.tl]{\TeXLive, viz
-kap.~\ref*{inst.tl}}.
+v jiných verzích se pravděpodobně bude lišit jméno kořenového adresáře. Zde vytvořte adresář
+\url{tex\latex\cnbwp} pro soubory \fn{cnbwp.cls} a \fn{cnbwpsizes.clo} a adresář
+\url{bibtex\bst\cnbwp} pro \fn{abbrvcnb.bst}. Kromě nakopírování těchto souborů žádná další akce
+není nutná.
\subsection{Zpracování dokumentů ze Scientific Wordu v~jiných
distribucích}\label{sciword.elsewhere}
@@ -143,9 +90,9 @@ podle toho, jakou distribuci používáte.
příkazem \texttt{mktexlsr}, nebo z menu.
\section{Testování instalace}\label{test.inst}
-V mnoha distribucích lze správnost instalace otestovat příkazem \texttt{kpsewhich}, jak bylo uvedeno
-v kapitole~\ref{inst.tl}. Můžeme tak ověřit, že \LaTeX\ dokáže najít třídu \fn{cnbwp} i makra z
-adresáře \fn{SWmacros}. Nemáme\?li program \texttt{kpsewhich} ve své distribuci, stačí napsat
+V mnoha distribucích lze správnost instalace otestovat příkazem \texttt{kpsewhich}, nebo
+\texttt{findtexmf} v závislosti na distribuci \TeX{}u. Můžeme tak ověřit, že \LaTeX\ dokáže najít třídu \fn{cnbwp} i makra z
+adresáře \fn{SWmacros}. Nemáme\?li ve své distribuci žádný z těchto programů, stačí napsat
jednoduchý dokument:
\begin{verbatim}
@@ -307,25 +254,34 @@ preambuli. Přesněji řečeno, makra, definující název, jména autorů a pod
\cmd{documentclass} a \cmd{maketitle}. Jejich uvedení na samém začátku souboru tedy může
být užitečné.
-Název práce zadáváme jako argument makra \xx\cmd{title}. Název bude vytištěn později, až uvedeme
-příkaz \xx\cmd{maketitle}, ale dostane se též do záhlaví:
+Název práce zadáváme jako parameter makra \xx\cmd{title}.
+Volitelným parametrem makra \xx\cmd{title} je alternativní název pro záhlaví strany. Volitelný parametr předchází povinné parametry.
+Název bude vytištěn později, až uvedeme
+příkaz \xx\cmd{maketitle}, ale dostane se též do záhlaví:
\begin{verbatim}
-\title{Fidlovačka aneb žádný hněv a žádná rvačka}
+\title{Fidlovačka aneb žádný hněv a žádná rvačka},
\end{verbatim}
+nebo
+\begin{verbatim}
+\title[Jenom Fidlovačka]{Fidlovačka aneb žádný hněv a žádná rvačka}
+\end{verbatim}
+
-Jména autorů zapisujeme pomocí makra \xx\cmd{author}, které vyžaduje dva parametry. V prvním
-parametru je uvedeno plné jméno, v druhém parametru název instituce. Makro se uvede pro každého
-autora samostatně např. takto:
+Jména autorů zapisujeme pomocí makra \xx\cmd{author}, které vyžaduje dva parametry a má jeden volitelný parameter. V prvním
+parametru je uvedeno plné jméno, v druhém parametru název instituce.
+Volitelným parametrem je zkrácená forma jména, která se použije jen pro záhlaví strany. Volitelný parametr předchází povinné parametry.
+Makro se uvede pro každého autora samostatně např. takto:
\begin{verbatim}
\author{Kapitán Nemo}{Nautilus}
-\author{Robinson Crusoe}{Pustý ostrov}
+\author[R. Crusoe]{Robinson Crusoe}{Pustý ostrov}
\end{verbatim}
Makro \xx\cmd{maketitle} doplní před jméno posledního autora spojku „and“ podle britských pravidel,
tj. čárka je uvedena pouze v případě, že práce má více než dva autory.
-Jména autorů jsou též přenesena do záhlaví.
+
+Jména autorů jsou přenesena do záhlaví dle volby.
\subsubsection{Poděkování}\label{ack}
Poděkování je nepovinnou součástí Working Paper. Uvádíme jej v argumentu makra
@@ -621,6 +577,7 @@ První čárka (uvnitř závorek) je součástí seznamu autorů, druhá čárka
anglických pracích uvádíme čárku před \textit{and} v případě, kdy citace má více než dna
autory.
+\DeclareRobustCommand\minus{-}% \xx\cmd{-} triggers an error
\pozor Zapomenutá
čárka nebo vynechané závorky okolo hodnoty obsahující čárku mají za následek chybové hlášení o
neznámé položce s podivným jménem. Někdy se kvůli chybám tohoto typu může dokonce ztratit velká
@@ -629,7 +586,7 @@ neznámé položce s podivným jménem. Někdy se kvůli chybám tohoto typu mů
V databázových souborech určených pro zpracování \BibTeX{}em často používáme složené závorky, jimiž
zabraňujeme konverzi na malá či velká písmena. \LaTeX\ žádné konverze neprovádí, proto závorky
nepotřebujeme. Můžeme však použít různá makra, např. \xx\cmd{mbox} pro zabránění nevhodnému dělení,
-\xx\cmd{-} k určení vhodného místa dělení slova, a dokonce si můžeme přímo uvnitř prostředi
+\xx\cmd{\minus} k určení vhodného místa dělení slova, a dokonce si můžeme přímo uvnitř prostředi
\xx\texttt{thebibliography} definovat vlastní makra, jež budou v ostatních částech dokumentu
neznámá (nebo definovaná jinak).
@@ -1337,8 +1294,12 @@ Pokud budete používat soubor \fn{cnbpaper.tex} jako šablonu svého dokumentu,
které balíčky skutečně potřebujete. Nepotřebné příkazy \cmd{usepackage} vymažte. Je možné, že
budete potřebovat nějaké další balíčky. Jedním z nich může být \xx\fn{amsmath}.
-\section{Změny, verze 2013.12}
+\section{Změny}
+
+\subsection{Verze 2013.12}
+
V prosinci 2013 byly provedeny tyto změny:
+
\begin{enumerate}
\item Zrušeny přepínače 11pt a 12pt pro nastavení velikosti písma v dokumentu.
\item Změna způsobu zadávání autorů, změna syntaxe makra \cmd{author}.
@@ -1354,6 +1315,15 @@ V prosinci 2013 byly provedeny tyto změny:
\item Aktualizován manuál.
\end{enumerate}
+\subsection{Verze 2024.2}
+
+V únoru 2024 byly provedeny tyto změny:
+
+\begin{enumerate}
+\item Přidány volitelné parametry pro sázení hlavičky strany v makrech \author a \title
+\item Aktualizován manuál.
+\end{enumerate}
+
\appendix
\section{P\v{r}\'iloha}\label{priloha}
V příloze je uveden příklad všech typů prací zapsaných pomocí maker z kapitoly~\ref{makra} a jejích
diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf
index 6881164f27f..c14cd12ec7b 100644
--- a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf
+++ b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex
index c77626f57dd..d59cad73810 100644
--- a/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex
+++ b/Master/texmf-dist/doc/latex/cnbwp/cnbwp-manual-en.tex
@@ -4,7 +4,7 @@
\usepackage{cnbwp-manual}
\setdefaultlanguage{english}
\title{Manual for Using the \fn{cnbwp} Class to Write CNB~Working~Papers}
-\author{Zdeněk Wagner}\date{version 2013.12}
+\author{Zdeněk Wagner}\date{version 2024.02}
\begin{document}
\maketitle
@@ -48,97 +48,35 @@ error with a strange message (such that the cause of the error will be difficult
occur during document preparation.
\section{Installation}\label{instalace}\index{installation} All macros used for writing CNB Working
-Papers are implemented in the \fn{cnbwp.cls} class. The class is distributed in the archive file
-\fn{cnbwp.zip}. The file is saved in the archive with a path conforming to the TDS~(\TeX\ Directory
-Structure) standard. The installation method varies slightly depending on the specific \TeX{}
-distribution.
-
-\subsection{\MikTeX}\label{inst.miktex} Extract the \fn{cnbwp.zip} file to the \url{X:\localtexmf}
-directory, where \texttt{X:} denotes the disk on which \MikTeX{} is installed
-(usually~\texttt{C:}). Then open the menu \zwurl{Start/Programy/MikTeX/MikTeX Options}. On the
-Roots tab, check that \url{X:\localtexmf} is on the list of directories searched. If not, add it.
-Then click \texttt{Refresh FNDB}. To determine whether \LaTeX\ will locate the class, use
-the command:
+Papers are implemented in the \fn{cnbwp.cls} class. The class is nowadays available as a part of
+the \TeX\ distributions. You can thus install it by the tools of the distribution.
-\begin{verbatim}
-findtexmf cnbwp.cls
-\end{verbatim}
+\subsection{\MikTeX}\label{inst.miktex}
+This class is distributed with \MikTeX\ and can be installed from its console. It is even possible to
+enable \textit{installation on the fly} and the package will then be installed authomatically when
+needed.
-\noindent If everything is OK, the command will print the full path for the \fn{cnbwp.cls}
-file.
-
-\pozor The \url{X:\localtexmf} directory is intended for local files that are not a
-standard
-component of \MikTeX. If you update \MikTeX\, this directory will not be overwritten, so
-you will
-not lose the files.
-
-\subsection{\teTeX}\label{inst.tetex} This distribution is the standard in Unix systems
-and is also
-available for OS/2 and eComStation. We will describe the installation in Linux only. The
-installation in OS/2 is similar, differing only in that a backslash is used to separate
-the
-directories and the name of the disk on which \teTeX\ has been installed must be entered
-explicitly.
-
-Extract the \fn{cnbwp.zip} file to the \url{/usr/share/texmf-local} directory. When
-installing in
-Unix systems, you must make sure that the
-\url{/usr/share/texmf-local/tex/latex/cnb/cnbwp.cls} file
-does not have DOS line ends. Once the file has been extracted, the file database usually
-needs to
-be refreshed using the \texttt{mktexlsr} command.
-
-\TeXLive\ is based on this distribution, so everything described in the following
-section applies to \teTeX\ as well.
-
-\subsection{\TeXLive}\label{inst.tl} \TeXLive\ is a popular multiplatform \TeX{} distribution. It
-comes from the same sources as \hyperref[inst.tetex]{\teTeX}, so the installation is similar. The
-directory to which \fn{cnbwp.zip} should be extracted is usually
-\url{/usr/local/texlive/texmf-local} in Unix
-systems and \url{X:\TeXLive\texmf-local} in Windows. However, \TeXLive\ may be installed
-in any
-directory and you can even have several versions of \TeXLive\ installed simultaneously.
-The
-directory to which \fn{cnbwp.zip} should be extracted can be determined using the command:
+\subsection{\TeXLive}\label{inst.tl}
+\TeXLive\ is a popular multiplatform \TeX{} distribution. It includes the package which can be
+installed from the command line by
\begin{verbatim}
-kpsewhich --expand-var=$TEXMFLOCAL
+tlmgr install cnbwp
\end{verbatim}
-\index{kpsewhich}
-
-The \texttt{texmf-local} directory tree is shared by all \TeXLive\ versions installed on
-a computer. If a newer version is installed, the files will automatically be found.
-
-\pozor The \TeXLive\ distribution usually requires \texttt{mktexlsr} to be run after the files have
-been added. In distributions for Windows there is even an item in the \TeXLive menu for this
-purpose. If the database is not refreshed using \texttt{mktexlsr} and two exclamation marks are
-given in front of the name of the directory containing the \fn{cnbwp} class, \LaTeX\ will not be
-able to locate the class. To determine whether \LaTeX\ will locate the class, use the command:
-
-\begin{verbatim}
-kpsewhich cnbwp.cls -progname latex
-\end{verbatim}
-
-\noindent If everything is OK, the command will print the full path for the \fn{cnbwp.cls} file.
-
-\subsection{\emTeX}\label{inst.emtex} This distribution is obsolete and Eberhard Mattes no longer
-maintains it. It is better to switch to another distribution. However, if you do want to use
-\emTeX, extract \fn{cnbwp.zip} to an auxiliary directory, create a \fn{cnb} subdirectory
-in
-\url{X:\emtex\texinput\latex2e} and copy \fn{cnbwp.cls} and \fn{cnbwpsizes.clo} into it.
+
+\subsection{Other Distributions}\label{inst.other}
+To install the \fn{cnbwp} class in other
+distributions you will need to follow the instructions given in the manual supplied with the
+relevant distribution. Generally, you have to find path where the distribution expects \LaTeX\
+class and style files an put \fn{cnbwp.cls} and \fn{cnbwpsizes.clo} there. Afterwards you have to
+put \fn{abbrvcnb.bst} to the directory where the \BibTeX\ files are expected. It might be necessary
+to refresh the filename database.
\subsection{Scientific Word}\label{inst.sciword} This manual is written for version 5.5. In this
version, extract \fn{cnbwp.zip} to \url{X:\sw55\TCITeX}. In other versions the name of the root
-directory will probably differ. Scientific Word does not adhere strictly to TDS, as the directory
-names contain both lower-case and upper-case letters. However, the FAT and NTFS file systems are
-not case sensitive, so this should not cause any problems.
-
-\subsection{Other Distributions}\label{inst.other} To install the \fn{cnbwp} class in other
-distributions you will need to follow the instructions given in the manual supplied with the
-relevant distribution. The current distributions are usually based on \fn{web2c} and conform to the
-TDS standard, so the installation procedure is analogous to that for \hyperref[inst.tl]{\TeXLive,
-see section~\ref*{inst.tl}}.
+directory will probably differ. In this folder you should create \url{tex\latex\cnbwp} for files
+\fn{cnbwp.cls} and \fn{cnbwpsizes.clo}, and \url{bibtex\bst\cnbwp} for \fn{abbrvcnb.bst}. Nothing
+else is needed.
\subsection{Preparing Documents from Scientific Word in Other
Distributions}\label{sciword.elsewhere} Documents created using Scientific Word require specific
@@ -150,10 +88,11 @@ using.
\pozor Remember that in some distributions after adding files you have to refresh the database
either using the \texttt{mktexlsr} command or from the menu.
-\section{Testing the Installation}\label{test.inst} In many distributions the installation can be
-tested using the \texttt{kpsewhich} command, as mentioned in section~\ref{inst.tl}. This enables
+\section{Testing the Installation}\label{test.inst} Successfull installation can be
+verified using the \texttt{kpsewhich} or \texttt{findtexmf} command depending on the \TeX\
+distribution. This allows
you to check whether \LaTeX\ is able to locate the \fn{cnbwp} class and the macros from the
-\fn{SWmacros} directory. If you do not have \texttt{kpsewhich} in your distribution, all you need
+\fn{SWmacros} directory. If you do not have any of these commands in your distribution, all you need
to do is write a simple document:
\begin{verbatim}
@@ -343,24 +282,23 @@ the title, the names of the authors and the acknowledgements can be written anyw
between \cmd{documentclass} and
\cmd{maketitle}. It can thus be useful to place them right at the beginning of the file.
-The title of the work is written as the argument of the \xx\cmd{title} macro. The title
-will be
-printed later, after you write the \xx\cmd{maketitle} command, but it will also be put in
-the
-header:
+The title of the work is written as the argument of the \xx\cmd{title} macro. It will also be put in the page header. This macro accepts also one optional parameter when alternative form should be used for the page header. The title will be printed later, after you write the \xx\cmd{maketitle} command:
\begin{verbatim}
\title{Twelfth Night, or What You Will}
\end{verbatim}
+or optionally
+\begin{verbatim}
+\title[12. Night]{Twelfth Night, or What You Will}
+\end{verbatim}
-The names of the authors are entered using the \xx\cmd{author} macro that requires two
-parameters. The first parameter conains the full name. The authors' institution is
-entered in the second argument , e.g. as follows:
+The names of the authors are entered using the \xx\cmd{author} macro that requires two parameters and has one optional parameter. The first parameter defines the full name. The authors' institution is
+entered in the second argument. Optionally, the short for of the name may be used and will be used just for the page header. Optional parameter is the first parameter, e.g. as follows:
\begin{verbatim}
\author{Captain Nemo}{Nautilus}
-\author{Robinson Crusoe}{Desert Island}
+\author[R. Crusoe]{Robinson Crusoe}{Desert Island}
\end{verbatim}
\subsubsection{Acknowledgements}\label{ack} Acknowledgements are an optional part of a
@@ -1431,7 +1369,7 @@ document or chapter (in the case of a book). You should therefore specify more t
option so
that \LaTeX\ has a choice. Stating the [h]\index{h@[h]} specifier alone usually results in
the
-float being shifted to a separate page or to the end of the document.
+float being shifted to a separate page or to the end of the document.
In some cases the float \textbf{has to be} in a specific location. You thus have to tell
\LaTeX\
@@ -1792,8 +1730,11 @@ packages you really need. Delete any unnecessary \cmd{usepackage} commands. You
some
additional packages, such as \xx\fn{amsmath}.
-\section{Changes, Version 2013.12}
+\section{Changes}
+
+\subsection{Version 2013.12}
The following changes were made in December, 2013:
+
\begin{enumerate}
\item Switches 11pt and 12pt for changing the font size were removed.
\item The syntax of the \cmd{author} macro was changed.
@@ -1809,6 +1750,14 @@ the \fn{abstrakt} environment.
\item The manual was updated.
\end{enumerate}
+\subsection{Version 2024.2}
+The following changes were made in February, 2024:
+
+\begin{enumerate}
+\item Optional parameters for typesetting page headers were added for \author and \title macros.
+\item The manual was updated.
+\end{enumerate}
+
\appendix
\section{Appendix}\label{priloha}
The annex gives examples of all types of works written using the macros from
diff --git a/Master/texmf-dist/tex/latex/cnbwp/cnbwp.cls b/Master/texmf-dist/tex/latex/cnbwp/cnbwp.cls
index 03951df228b..9c93aa345f6 100644
--- a/Master/texmf-dist/tex/latex/cnbwp/cnbwp.cls
+++ b/Master/texmf-dist/tex/latex/cnbwp/cnbwp.cls
@@ -1,6 +1,6 @@
-%% $Id: cnbwp.cls 67 2013-12-18 20:44:49Z zw $
+%% $Id: cnbwp.cls 85 2024-02-10 13:57:33Z zw $
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{cnbwp}[2013/12/18 LaTeX class for working papers of CNB]
+\ProvidesClass{cnbwp}[2024/02/09 LaTeX class for working papers of CNB]
% Figure and table numbering, hierarchical is the default
@@ -225,12 +225,12 @@
\CNB@tempdima=\textwidth \advance\CNB@tempdima -\wd\CNB@tempbox
\vbox to \headheight{\hsize\textwidth \vss
\hbox to \textwidth{\vbox{\hsize\wd\CNB@tempbox \box\CNB@tempbox}\hss
- \vbox{\hsize\CNB@tempdima \raggedright \textit{\the\CNB@authors}}}\CNB@psrule}}%
+ \vbox{\hsize\CNB@tempdima \raggedright \textit{\the\CNB@Pageauthors}}}\CNB@psrule}}%
\def\@oddhead{\let\thanks\@gobble\normalfont\normalsize
\setbox\CNB@tempbox=\hbox{\CNB@pshskip\thepage}%
\CNB@tempdima=\textwidth \advance\CNB@tempdima -\wd\CNB@tempbox
\vbox to \headheight{\hsize\textwidth \vss
- \hbox to \textwidth{\vbox{\hsize\CNB@tempdima \CNB@raggedleft \textit{\CNB@tit}}\hss
+ \hbox to \textwidth{\vbox{\hsize\CNB@tempdima \CNB@raggedleft \textit{\CNB@headertit}}\hss
\vbox{\hsize\wd\CNB@tempbox \box\CNB@tempbox}}\CNB@psrule}}}
\def\CNB@raggedleft{\parfillskip \z@ \leftskip 0pt plus .3\textwidth \relax \hskip 0mm plus .5\textwidth}
@@ -239,6 +239,7 @@
% Title page
\newtoks\CNB@autaddress
\newtoks\CNB@authors
+\newtoks\CNB@Pageauthors
\def\CNB@lastauthor{}
\def\CNB@add@address#1#2{\ifcat$\the\CNB@autaddress$
@@ -257,14 +258,37 @@
\fi
\fi}
-\def\author#1#2{\CNB@add@address{#1}{#2}\CNB@add@author@with@delim\CNB@comma
+\def\CNB@add@Pageauthor@with@delim#1{\ifcat$\the\CNB@Pageauthors$
+ \ifcat$\CNB@lastauthor$ \else \CNB@Pageauthors\expandafter{\CNB@lastauthor}\fi
+ \else
+ \ifcat$\CNB@lastauthor$ \else
+ \CNB@Pageauthors\expandafter\expandafter\expandafter
+ {\expandafter\the\expandafter\CNB@Pageauthors #1}% add delimiter
+ \CNB@Pageauthors\expandafter\expandafter\expandafter
+ {\expandafter\the\expandafter\CNB@Pageauthors\CNB@lastauthor}% expanded stored author
+ \let\CNB@and\CNB@comma@and
+ \fi
+ \fi}
+
+\def\author{\@ifnextchar[{\CNB@authorShort}{\CNB@authorLong}}
+
+\def\CNB@authorShort[#1]#2#3{\CNB@add@address{#2}{#3}\CNB@add@author@with@delim\CNB@comma
+ \def\CNB@lastauthor{#1}\CNB@add@Pageauthor@with@delim\CNB@comma
+ \def\CNB@lastauthor{#2}}
+
+\def\CNB@authorLong#1#2{\CNB@add@address{#1}{#2}\CNB@add@author@with@delim\CNB@comma
+ \def\CNB@lastauthor{#1}\CNB@add@Pageauthor@with@delim\CNB@comma
\def\CNB@lastauthor{#1}}
\def\CNB@comma{\unskip, \ignorespaces}
\def\CNB@and{\unskip\space and \ignorespaces}
\def\CNB@comma@and{\unskip, and \ignorespaces}
-\def\title#{\def\CNB@tit}
+%\def\title#{\def\CNB@tit}
+\def\title{\@ifnextchar[{\CNB@Pagetitle}{\CNB@Onlytitle}}
+\def\CNB@Pagetitle[#1]#2{\def\CNB@tit{#2}\def\CNB@headertit{#1}}
+\def\CNB@Onlytitle#1{\def\CNB@tit{#1}\def\CNB@headertit{#1}}
+
\long\def\acknowledge#1{\def\CNB@ack{\\#1}}
\def\CNB@ack{}
@@ -277,11 +301,14 @@
\vskip 25pt plus .333fil
\begin{center}
\let\@makefnmark\@gobble
- \large\the\CNB@authors\,$^*$\footnotetext{\the\CNB@autaddress \CNB@ack}
+ \large\the\CNB@authors\,$^*$\CNB@putack\par
\end{center}
\endgroup\setcounter{footnote}{0}%
}
+%\,$^*$\footnotetext{\the\CNB@autaddress \CNB@ack}
+\def\CNB@putack{\footnotetext{$^*$\the\CNB@autaddress \interlinepenalty-20 \CNB@ack}}
+
\def\CNB@indentenv #1#2:{\begingroup \parskip\z@ \leftskip 30mm \parindent -25mm
\rightskip \leftskip \advance\rightskip \parindent
\aftergroup#1\normalfont