summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex
blob: e28ac957e7033f5580242c6d818789d60d22ba7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\documentclass{article}
\newcounter{comment}
\newsavebox{\comname}
\newenvironment{comment}[1]
  {\noindent\stepcounter{comment}\slshape Kommentar \arabic{comment}\nopagebreak
   \begin{quote}\sloppypar\small\sbox{\comname}{#1}\itshape}
  {\nopagebreak\hspace*{\fill}\usebox{\comname}\end{quote}}
\begin{document}
\begin{comment}{Patrick W. Daly}
   In this form, every comment is assigned a sequential numbr after the
   word Comment. The comment text appears as in a \texttt{quote} environment,
   while the name of the commentor is entered as the envrironment argument
   and is placed at the right of the last line. In addition no page break
   can occur either between the heading `Comment n' and the comment text
   and the commenter's name.
\end{comment}
\end{document}