Zahlavi a zapati v knize - reseni?

Josef Polach polach.j at pbsvb.cz
Wed Feb 6 09:26:47 CET 2002


Dobre rano,

Pravdepodobne vam pri prebirani a vlastni uprave makra chybi znalosti nizsi
urovne. Pouzivate parametry tam, kde se k nim nevracite (\nadpis) a naopak
je v tele definice chcete tam, kde nebyly zadane na zacatku (\pravezahlavi).

Dobre komentovane jednoduche priklady najdete treba v clanku P. Olsaka Prvni
setkani s TeXem.

Zdravi

Josef

-----Original Message-----
From: Zbynek HOuska <zbynh at SEZNAM.CZ>
To: csTeX at cs.felk.cvut.cz <csTeX at cs.felk.cvut.cz>
Date: Wednesday, February 06, 2002 1:00 AM
Subject: Zahlavi a zapati v knize - reseni?


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