Obsah bez čísel stránek, resp. seznam kapitol

Zdenek Wagner wagner at cesnet.cz
Wed Aug 9 14:32:25 CEST 2006


On Wed, 9 Aug 2006, "Procházka Lukáš Ing. - Pontex s. r. o." wrote:

> ... Snažím se vytvořit obsah bez čísel stránek podle "kuchařky"
> bul973.pdf (příklad napíše čísla stránek na začátek řádku, ale to -
> myslím - potom dokážu odstranit):
>
Staci precist si k tomu komentar. V #1 mate nazev, v #2 je cislo stranky.
Kdyz upravite makro tak, aby tisklo #1 v pozadovanem formatu a #2
zapomnelo, mate vystarano.

> Test2.tex:
>
> ________________________________________________________________________________
> \documentclass[11pt]{article}
>
> \usepackage[cp1250]{inputenc}
> \usepackage{czech}
> \usepackage{a4wide}
>
> \begin{document}
>
> \renewcommand*\l at section[2]{\@tempdima
> 1.5em\noindent\hb at xt@\@pnumwidth{\hss\bfseries #2:}\enspace
> \textbf{#1}\par}
>
> \tableofcontents
>
> \section{AAA}
>
> \end{document}
>
> ________________________________________________________________________________
>
> Ale nedocházím ke kýženému výsledku (jsem začátečník; trochu chápu, jak
> by asi makro mohlo fungovat, ale ne dost na to, abych je uměl upravit).
> Objevuje se výpis:
>
> ________________________________________________________________________________
> This is pdfeTeXk, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5)
>  %&-line parsing enabled.
> entering extended mode
> (./Test2.tex
> LaTeX2e <2003/12/01>
> Loading CZ hyphenation patterns: Pavel Sevecek, v3, 1995
> Loading SK hyphenation patterns: Jana Chlebikova, 1992
> (c:/TeXLive2005/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
> (c:/TeXLive2005/texmf-dist/tex/latex/base/size11.clo))
> (c:/TeXLive2005/texmf-dist/tex/latex/base/inputenc.sty
> (c:/TeXLive2005/texmf-dist/tex/latex/base/cp1250.def))
> (c:/TeXLive2005/texmf-dist/tex/csplain/base/czech.sty)
> (c:/TeXLive2005/texmf-dist/tex/latex/ltxmisc/a4wide.sty
> (c:/TeXLive2005/texmf-dist/tex/latex/ntgclass/a4.sty)) (./Test2.aux)
> ! Undefined control sequence.
> l.9 ...*\l at section[2]{\@tempdima 1.5em\noindent\hb
>                                                  
> @xt@\@pnumwidth{\hss\bfser...
>
> ?
> ! You can't use `macro parameter character #' in horizontal mode.
> l.9 ...\noindent\hb at xt@\@pnumwidth{\hss\bfseries #
>                                                   2:}\enspace
> \textbf{#1}\par}
> ?
> ! Illegal parameter number in definition of \reserved at a.
> <to be read again>
>                    1
> l.9 ...idth{\hss\bfseries #2:}\enspace \textbf{#1}
>                                                   \par}
> ?
> ! Illegal parameter number in definition of \reserved at b.
> <to be read again>
>                    }
> l.9 ...idth{\hss\bfseries #2:}\enspace \textbf{#1}
>                                                   \par}
> ?
> ! You can't use `macro parameter character #' in horizontal mode.
> <recently read> ##
>
> l.9 ...idth{\hss\bfseries #2:}\enspace \textbf{#1}
>                                                   \par}
> ?
> ! Infinite glue shrinkage found in a paragraph.
> <recently read> \par
>
> l.9 ...{\hss\bfseries #2:}\enspace \textbf{#1}\par
>                                                   }
> ?
> (./Test2.toc)
> [1{c:/TeXLive2005/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
> (./Test2.aux)
> )<c:/TeXLive2005/texmf-dist/fonts/type1/public/cs/csbx12.pfb><c:/
> TeXLive2005/texmf-dist/fonts/type1/public/cs/csbx10.pfb><c:/TeXLive2005/texmf-d
> ist/fonts/type1/public/cs/csr10.pfb>
> Output written on Test2.pdf (1 page, 14529 bytes).
> Transcript written on Test2.log.
>
> ________________________________________________________________________________
>
> - Potřeboval bych poradit, co s makrem, aby se Test2.tex normálně
> přeložil.
>
> Překládám pomocí pdfCSLaTeX.exe z TL 2005.
>
> Děkuji.
>
> Lukáš Procházka
>
>
> Zdenek Wagner napsal(a):
>
>  On Wed, 9 Aug 2006, "Procházka Lukáš Ing. - Pontex s. r. o." wrote:
>
>
>
>  Dobrý den,
>
> potřeboval bych vytvořit obsah bez čísel stránek, resp. seznam kapitol.
> Lze to v LaTeXu nějak jednoduše?
>
>
>
>  Ano, viz napr. muj clanek LaTeXova kucharka/3, Zpravodaj 3/1997,
> http://bulletin.cstug.cz/bul973.shtml
>
>
>
>  Děkuji.
>
> Lukáš Procházka
>
>
>
>
>
>  Zdenek Wagner
> e-mail: wagner at cesnet.cz
>
> see also http://hroch486.icpf.cas.cz/wagner/
>          http://icebearsoft.euweb.cz
>
>
>
>
>

Zdenek Wagner
e-mail: wagner at cesnet.cz

see also http://hroch486.icpf.cas.cz/wagner/
         http://icebearsoft.euweb.cz





More information about the csTeX mailing list