summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex')
-rw-r--r--Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex17
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex b/Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex
new file mode 100644
index 00000000000..e28ac957e70
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex
@@ -0,0 +1,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}