summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fbox
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/fbox
Initial commit
Diffstat (limited to 'macros/latex/contrib/fbox')
-rw-r--r--macros/latex/contrib/fbox/CHANGELOG1
-rw-r--r--macros/latex/contrib/fbox/README.md21
-rw-r--r--macros/latex/contrib/fbox/doc/fbox.pdfbin0 -> 34505 bytes
-rw-r--r--macros/latex/contrib/fbox/doc/fbox.tex130
-rw-r--r--macros/latex/contrib/fbox/latex/fbox.sty82
5 files changed, 234 insertions, 0 deletions
diff --git a/macros/latex/contrib/fbox/CHANGELOG b/macros/latex/contrib/fbox/CHANGELOG
new file mode 100644
index 0000000000..a79a8d21b2
--- /dev/null
+++ b/macros/latex/contrib/fbox/CHANGELOG
@@ -0,0 +1 @@
+0.01 2019-03-08 - first CTAN version
diff --git a/macros/latex/contrib/fbox/README.md b/macros/latex/contrib/fbox/README.md
new file mode 100644
index 0000000000..50147f1126
--- /dev/null
+++ b/macros/latex/contrib/fbox/README.md
@@ -0,0 +1,21 @@
+# fbox.sty
+
+Redefines the macro \fbox{...} from standard
+LaTeX to \fbox[optarg]{...}
+optarg can be any combination of l, r, b, and t. For
+example: \fbox[lt]{foo} or \fbox[Tlr]{...}
+
+Using uppercase letters or a combination of
+lowercase and uppercase is also possible.
+
+
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+
+
+hvoss@tug.org \ No newline at end of file
diff --git a/macros/latex/contrib/fbox/doc/fbox.pdf b/macros/latex/contrib/fbox/doc/fbox.pdf
new file mode 100644
index 0000000000..f331925e7a
--- /dev/null
+++ b/macros/latex/contrib/fbox/doc/fbox.pdf
Binary files differ
diff --git a/macros/latex/contrib/fbox/doc/fbox.tex b/macros/latex/contrib/fbox/doc/fbox.tex
new file mode 100644
index 0000000000..1a7f4c1a95
--- /dev/null
+++ b/macros/latex/contrib/fbox/doc/fbox.tex
@@ -0,0 +1,130 @@
+%% $Id: fbox.tex 946 2019-03-08 12:08:22Z herbert $
+%
+\listfiles\setcounter{errorcontextlines}{100}
+\documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
+ captions=tableabove,twoside=on]{scrartcl}
+\usepackage{fontspec}
+\setmainfont{AccanthisADFStdNo3}[
+ UprightFont =*-Regular,
+ BoldFont =*-Bold,
+ ItalicFont =*-Italic,
+ BoldItalicFont=*-BoldItalic,
+ RawFeature = -rlig,
+]
+\setsansfont{GilliusADF}[
+ UprightFont =*-Regular,
+ BoldFont =*-Bold,
+ ItalicFont =*-Italic,
+ BoldItalicFont=*-BoldItalic,
+ RawFeature = -rlig,
+]
+\setmonofont{Anonymous Pro}[Scale=MatchLowercase,FakeStretch=0.9]
+
+\usepackage[english]{babel}
+\usepackage{scrlayer-scrpage}
+\usepackage{showexpl}
+\usepackage{listings}
+\lstset{basicstyle=\ttfamily\small,language=[LaTeX]TeX,rframe=}
+
+\def\Lfile#1{\texttt{#1}\index{#1 file@\texttt{#1} file}}
+\def\Lext#1{\texttt{.#1}\index{#1 file extension@\texttt{.#1} file extension}}
+\def\Lcs#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}}
+\def\Lenv#1{\texttt{#1}\index{#1 environment@\texttt{#1} environment}}
+\def\Lpack#1{\texttt{#1}\index{#1 package@\texttt{#1} package}}
+\def\Lprog#1{\texttt{#1}\index{#1 program@\texttt{#1} program}}
+\def\Loption#1{\texttt{#1}\index{#1@\texttt{#1} package option}}
+
+%\usepackage[bibstyle=dtk]{biblatex}
+%\addbibresource{\jobname.bib}
+
+\usepackage{url}
+\usepackage[colorlinks,linktocpage]{hyperref}
+
+\makeatletter% from: doc.sty
+\newcommand*\GetFileInfo[1]{%
+ \def\filename{#1}%
+ \def\@tempb##1 ##2 ##3\relax##4\relax{%
+ \def\filedate{##1}%
+ \def\fileversion{##2}%
+ \def\fileinfo{##3}}%
+ \edef\@tempa{\csname ver@#1\endcsname}%
+ \expandafter\@tempb\@tempa\relax? ? \relax\relax}
+\makeatother
+
+%\GetFileInfo{xltabular.sty}
+\usepackage{xspace}
+\usepackage{fbox}
+
+\def\setVersion#1{\setVVersion#1!!}
+\def\setVVersion#1=#2!!{\def\fboxVersion{#2}}
+
+\setVersion{version = 0.01}%
+
+\title{Package \texttt{fbox} \\--\\ \normalsize \fboxVersion\ (\today)}
+\author{Herbert Voß\thanks{\url{hvoss@tug.org}\newline Thanks to Rolf Niepraschk}}
+\begin{document}
+\maketitle
+%\tableofcontents
+
+This package redefines the \LaTeX-macro \Lcs{fbox} to allow an optional
+argument:
+
+\begin{verbatim}
+\fbox[<optargs>]{<contents>}
+\end{verbatim}
+
+
+The optional argument can be of any combination of the letters
+l, r, b, and t or altenatively L, R, B, and T. This l)eft, r)right, b)ottom, and t)op
+for the frame parts. A missing or an empty argument is the same as the default
+\Lcs{fbox} from standard \LaTeX.
+
+
+\begin{LTXexample}
+\fbox{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fbox[]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fbox[rbt]{foo gar baz}
+\fbox[brt]{foo gar baz}
+\fbox[bRT]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fbox[lT]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fbox[bT]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fbox[Br]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fbox[bT]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fbox[Br]{foo gar baz}
+\end{LTXexample}
+
+
+
+
+\end{document}
+
+
+
+folium = {
+ de = {"f", "ff"},
+ en = {"f", "ff"},
+ fr = {"sq","sqq"},
+}
diff --git a/macros/latex/contrib/fbox/latex/fbox.sty b/macros/latex/contrib/fbox/latex/fbox.sty
new file mode 100644
index 0000000000..b3227b36ca
--- /dev/null
+++ b/macros/latex/contrib/fbox/latex/fbox.sty
@@ -0,0 +1,82 @@
+%% This is file `fbox.sty',
+%%
+%% Copyright (C) 2019
+%% Herbert Voss <hvoss@tug.org>
+%%
+%% It may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%
+% $Id: fbox.sty 946 2019-03-08 12:08:22Z herbert $
+%
+% -------------------------------------
+\ProvidesPackage{fbox}[2019/03/00 v. 0.01 allow parts of the frame (hv)]
+%
+\let\orig@fbox\fbox
+\def\fb@lowerc@se#1{\lowercase{\edef\@tempa{#1}}}
+%
+\long\def\fbox{\@ifnextchar[\FBox@i\orig@fbox}
+%
+\def\FBox@i[#1]{%
+ \ifx\relax#1\relax
+ \@tempcntb=15
+ \else
+ \@tempcntb=\z@
+ \fb@lowerc@se{#1}%
+ \expandafter\FBox@ii\@tempa\@nil\relax
+ \fi
+ \FBox@iii
+}
+\def\FBox@ii#1#2\@nil{%
+ \ifx#1t\advance\@tempcntb by 8% top
+ \else
+ \ifx#1l\advance\@tempcntb by 4% left
+ \else
+ \ifx#1r\advance\@tempcntb by 2% right
+ \else
+ \ifx#1b\advance\@tempcntb by 1% bottom
+ \fi\fi\fi\fi
+ \if\relax#2\relax\def\next{}\else\def\next{\FBox@ii#2\@nil}\fi
+ \next
+}
+\def\FBox@iii#1{%
+ \leavevmode
+ \setbox\@tempboxa\hbox{%
+ \color@begingroup
+ \kern\fboxsep{#1}\kern\fboxsep
+ \color@endgroup}%
+ \@FrameB@x\relax}
+%
+\def\@FrameB@x#1{%
+ \@tempdima\fboxrule
+ \advance\@tempdima\fboxsep
+ \advance\@tempdima\dp\@tempboxa
+ \hbox{%
+ \lower\@tempdima\hbox{%
+ \vbox{%
+ \ifnum\the\@tempcntb>8\relax
+ \advance\@tempcntb by -8
+ \hrule\@height\fboxrule % top
+ \fi
+ \hbox{%
+ \ifnum\@tempcntb>3
+ \advance\@tempcntb by -4
+ \vrule\@width\fboxrule
+ \fi % left
+ #1%
+ \vbox{%
+ \vskip\fboxsep
+ \box\@tempboxa
+ \vskip\fboxsep}%
+ #1%
+ \ifnum\@tempcntb>1\vrule\@width\fboxrule\fi}% right
+ \ifodd\@tempcntb\hrule\@height\fboxrule\fi}% bottom
+ }%
+ }%
+}
+
+\endinput \ No newline at end of file