summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/boxedminipage
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/latex/contrib/boxedminipage
Initial commit
Diffstat (limited to 'macros/latex/contrib/boxedminipage')
-rw-r--r--macros/latex/contrib/boxedminipage/boxedminipage.pdfbin0 -> 122717 bytes
-rw-r--r--macros/latex/contrib/boxedminipage/boxedminipage.sty65
-rw-r--r--macros/latex/contrib/boxedminipage/boxedminipage.tex32
3 files changed, 97 insertions, 0 deletions
diff --git a/macros/latex/contrib/boxedminipage/boxedminipage.pdf b/macros/latex/contrib/boxedminipage/boxedminipage.pdf
new file mode 100644
index 0000000000..bf1d134e56
--- /dev/null
+++ b/macros/latex/contrib/boxedminipage/boxedminipage.pdf
Binary files differ
diff --git a/macros/latex/contrib/boxedminipage/boxedminipage.sty b/macros/latex/contrib/boxedminipage/boxedminipage.sty
new file mode 100644
index 0000000000..b74368fa7b
--- /dev/null
+++ b/macros/latex/contrib/boxedminipage/boxedminipage.sty
@@ -0,0 +1,65 @@
+%%% ====================================================================
+%%% @LaTeX-style-file{
+%%% author = "Mario Wolczko",
+%%% version = "2",
+%%% date = "21 May 1992",
+%%% time = "20:55:01 BST",
+%%% filename = "boxedminipage.sty",
+%%% email = "mario@acm.org",
+%%% codetable = "ISO/ASCII",
+%%% keywords = "LaTeX, minipage, framebox",
+%%% supported = "no",
+%%% docstring = "LaTeX document-style option which defines
+%%% the boxedminipage environment -- just like minipage, but with
+%%% a box around it.",
+%%% }
+%%% ====================================================================
+%
+% This file is in the public domain
+%
+% The thickness of the rules around the box is controlled by
+% \fboxrule, and the distance between the rules and the edges of the
+% inner box is governed by \fboxsep.
+%
+% This code is based on Lamport's minipage code.
+%
+% Fixed, 7 Jun 89 by Jerry Leichter
+% Leave \fboxsep worth of separation at top and bottom, not just at
+% the sides!
+%
+\def\boxedminipage{\@ifnextchar [{\@iboxedminipage}{\@iboxedminipage[c]}}
+
+\def\@iboxedminipage[#1]#2{\leavevmode \@pboxswfalse
+ \if #1b\vbox
+ \else \if #1t\vtop
+ \else \ifmmode \vcenter
+ \else \@pboxswtrue $\vcenter
+ \fi
+ \fi
+ \fi\bgroup % start of outermost vbox/vtop/vcenter
+ \hsize #2
+ \hrule\@height\fboxrule
+ \hbox\bgroup % inner hbox
+ \vrule\@width\fboxrule \hskip\fboxsep \vbox\bgroup % innermost vbox
+ \vskip\fboxsep
+ \advance\hsize -2\fboxrule \advance\hsize-2\fboxsep
+ \textwidth\hsize \columnwidth\hsize
+ \@parboxrestore
+ \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
+ \let\@footnotetext\@mpfootnotetext
+ \let\@listdepth\@mplistdepth \@mplistdepth\z@
+ \@minipagerestore\@minipagetrue
+ \everypar{\global\@minipagefalse\everypar{}}}
+
+\def\endboxedminipage{%
+ \par\vskip-\lastskip
+ \ifvoid\@mpfootins\else
+ \vskip\skip\@mpfootins\footnoterule\unvbox\@mpfootins\fi
+ \vskip\fboxsep
+ \egroup % ends the innermost \vbox
+ \hskip\fboxsep \vrule\@width\fboxrule
+ \egroup % ends the \hbox
+ \hrule\@height\fboxrule
+ \egroup% ends the vbox/vtop/vcenter
+ \if@pboxsw $\fi}
+
diff --git a/macros/latex/contrib/boxedminipage/boxedminipage.tex b/macros/latex/contrib/boxedminipage/boxedminipage.tex
new file mode 100644
index 0000000000..1deb5e4ead
--- /dev/null
+++ b/macros/latex/contrib/boxedminipage/boxedminipage.tex
@@ -0,0 +1,32 @@
+\documentclass[DIV=9, pagesize=auto, version=last]{scrartcl}
+
+\addtokomafont{title}{\rmfamily}
+
+\title{The \textsf{boxedminipage} package\thanks{This manual corresponds to \textsf{boxedminipage}~v2, dated~21 May 1992.}}
+\subtitle{A package for producing framed minipages.}
+\author{Mario Wolczko, \texttt{mario@acm.org}}
+\date{21 May 1992}
+
+
+\begin{document}
+
+\maketitle
+
+\noindent
+The \textsf{boxedminipage} package is a \LaTeX\ package which defines the \texttt{boxedminipage} environment -- like \texttt{minipage}, but with a frame around it.
+The thickness of the rules around the box is controlled by
+\verb+\fboxrule+, and the distance between the rules and the edges of the
+inner box is governed by \verb+\fboxsep+.
+
+This code is based on Lamport's \texttt{minipage} code.
+
+
+\minisec{Changes:}
+%
+\begin{labeling}[\hspace{\labelsep}--]{Fixed, 7 Jun 89 by Jerry Leichter}
+\item[Fixed, 7 Jun 89 by Jerry Leichter]
+ Leave \verb+\fboxsep+ worth of separation at top and bottom, not just at
+ the sides!
+\end{labeling}
+
+\end{document}