jiny "list"
Jaromir Kuben
kuben at scova.vabo.cz
Tue Jun 4 19:00:35 CEST 2002
Viktor Ber píše:
>
> Dobry den, chtel jsem si v LaTeX2e vytvorit prostredi podobne
> "description", ale aby "label" byla vzdy na samostatnem radku.
>
> Z "LaTeX Companion" jsem opsal nasledujici definici prostredi "entry"
> (viz nize). Prvni zrada je, ze to funguje pouze s balickem "calc":
>
> <FLAME>
> voda na mlyn pana Olsaka, tj. na jednu vec nebohy latexista potrebuje
> tisic balicku :-))
> </FLAME>
>
> Druha otazka: Kdyz tedy chci label na samostatny radek a telo definice na
> ra nasledujici, co mam udelat? Ruzne \par nebo \\ misto \hfil nemelo
> zadny ucinek.
>
> \newcommand{\entrylabel}[1]{\mbox{\textbf{#1}}\hfil}
> \newenvironment{entry}
> {\begin{list}{}%
> {\renewcommand{\makelabel}{\entrylabel}%
> \setlength{\labelwidth}{35pt}%
> \setlength{\leftmargin}{\labelwidth+\labelsep}%
> }%
> }%
> {\end{list}}
>
> Dekuji za radu a preji hezky den
>
> Viktor Ber
Ono vrtat do definice \item v latexu je problem. Ale snad Vam
postaci neco takoveho (ne prilis dokonaleho):
\documentclass{report}
\usepackage{czech}
\makeatletter
\def\uloz[#1]{\item[#1]\mbox{}\newline }
\def\zlom{\@ifnextchar[{\uloz}{\mbox{}\newline }}
\makeatother
\newenvironment{prehled}{\begin{list}{}%
{\labelwidth=0pt\topsep=0pt\partopsep=0pt\itemsep=8pt\parsep=0pt%
\labelsep=0pt\leftmargin=8mm\itemindent=-\leftmargin
\renewcommand{\makelabel }[1]{\rmfamily\itshape ##1}}}%
{\end{list}}
\begin{document}
\begin{prehled}
\zlom[AAAA]Text, text.
\zlom[BBBBBB] Text, text.
\zlom Text, text, text.
\end{prehled}
\end{document}
Zdravi
Jaromir Kuben
More information about the csTeX
mailing list