summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/invertedparagraphs.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex209/contrib/misc/invertedparagraphs.tex
Initial commit
Diffstat (limited to 'macros/latex209/contrib/misc/invertedparagraphs.tex')
-rw-r--r--macros/latex209/contrib/misc/invertedparagraphs.tex25
1 files changed, 25 insertions, 0 deletions
diff --git a/macros/latex209/contrib/misc/invertedparagraphs.tex b/macros/latex209/contrib/misc/invertedparagraphs.tex
new file mode 100644
index 0000000000..f0d510632e
--- /dev/null
+++ b/macros/latex209/contrib/misc/invertedparagraphs.tex
@@ -0,0 +1,25 @@
+% -*- Mode: TeX -*-
+
+\ifx\thisfileis\anUndefinedMacro\input maybeload \fi
+
+\thisfileis{<eb.tex.texlocal>invertedparagraphs} % abort loading if we're already loaded
+
+% This file defines a \begin{invertedparagraphs}...\end{invertedparagraphs}
+% environment that's useful in bibliographies.
+
+\input redefine % from texlocal
+
+% Inverted paragraphs.
+
+\newdimen\invertedparindent
+\invertedparindent=20pt
+
+\newenvironment{invertedparagraphs}{%
+\list{}%
+{\setlength{\listparindent}{-\invertedparindent}%
+\setlength{\leftmargin}{\invertedparindent}%
+\setlength{\labelwidth}{0pt}%
+\setlength{\labelsep}{0pt}%
+\setlength{\itemindent}{0pt}}%
+{\item{}\hspace{-\invertedparindent}}}{\endlist}
+