File: exer10-8.tex

package info (click to toggle)
texlive-lang 2022.20230122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,447,264 kB
  • sloc: perl: 61,377; xml: 53,781; makefile: 4,525; sh: 4,338; ansic: 2,892; python: 2,861; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (17 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (11)
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}