Re: Obsah bez čísel stránek, resp. seznam kapitol
Arnost Stedry
arnost at cs.cas.cz
Wed Aug 9 14:33:20 CEST 2006
v te definici se pouziva znak @ ktery v dobe po nacteni stylu jiz nema
kategorii pismene coz napravite tak, ze pred vlastni definici z nej pismeno
udelate pomoci
\makeatletter
a po definici mu vratite puvodni kategorii pomoci
\makeatother
On 8/9/06, "Procházka Lukáš Ing. - Pontex s. r. o." <lpr at pontex.cz> 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):
>
> *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
>
>
--
Arnost Stedry
Ustav Informatiky AVCR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.felk.cvut.cz/pipermail/cstex/attachments/20060809/1425b389/attachment-0002.html>
More information about the csTeX
mailing list