Zahlavi a zapati v knize - reseni?
Zbynek HOuska
zbynh at seznam.cz
Wed Feb 6 01:01:16 CET 2002
Dobry vecer,
tady jsem vytvoril neumely pokus, jenom to nejak pokulhava. Sazi to pouze
leve zahlavi na vsech stranach a stezuje si na \nadpis #1. Poradi mi nekdo?
Zadne pocitani ani obsahy nepotrebuju, alespon pro zacatek. Staci mi to tak
jak to je, jenom aby to fungovalo ....
Moje schopnosti na to nestaci.
Dekuji Zbynek Houska
Tady je ten vytvor inspirovany tbn.tex:
%plovouci zahlavi
\def\nadpis#1{ \centerline}
\def\starthead{\global\headline=
{\ifodd \pravezahlavi \else \levezahlavi \fi}}
\def\pravezahlavi{\hfil\nadpis#1 \hfil}
\def\levezahlavi{\hfil CÍL CESTY NEZNÁMÝ \hfil}
\def\kap#1 \par{\vfill\break
\headline={\hfil\starthead}
\hbox{}\nadpis#1}
Jeste prikladam castecny vypis z kniha.log:
This is TeX, Version 3.14159 (Web2C 7.3.3.1)
**&csplain kniha
(./kniha The format: csplain <Oct. 1998>.
The cs-fonts are preloaded and A4 size implicitly defined.
! Illegal parameter number in definition of \pravezahlavi.
<to be read again>
1
l.16 \def\pravezahlavi{\hfil\nadpis#1
\hfil}
? h
You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.
? s
OK, entering \scrollmode...
[1]
! You can't use `\prevdepth' in horizontal mode.
\nointerlineskip ->\prevdepth
-1000\p@
\topglue ->\nointerlineskip
\vglue -\topskip \vglue
<argument> \pageno =2 \topglue
2cm \centerline {\Velky \it Kapitola první}
\...
\kap ...ne ={\hfil \starthead } \hbox {}\nadpis #1
l.71
! Missing number, treated as zero.
<to be read again>
\afterassignment
\vglue ->\afterassignment
\vgl@ \skip@ =
\topglue ->\nointerlineskip \vglue
-\topskip \vglue
<argument> \pageno =2 \topglue
2cm \centerline {\Velky \it Kapitola první}
\...
\kap ...ne ={\hfil \starthead } \hbox {}\nadpis #1
l.71
--
Contemporary agriculture treats-Mother-Earth like a whore and rapes her.
All year round it scrapes away her skin and poisons it with artificial
fertilizer, for which a science is to be thanked that has lost all
conections with Nature.
- Viktor Schauberger
More information about the csTeX
mailing list