From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/showtags/showtags-doc.pdf | Bin 0 -> 210340 bytes macros/latex/contrib/showtags/showtags-doc.tex | 59 +++++++++++++++ macros/latex/contrib/showtags/showtags.sty | 99 +++++++++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 macros/latex/contrib/showtags/showtags-doc.pdf create mode 100644 macros/latex/contrib/showtags/showtags-doc.tex create mode 100644 macros/latex/contrib/showtags/showtags.sty (limited to 'macros/latex/contrib/showtags') diff --git a/macros/latex/contrib/showtags/showtags-doc.pdf b/macros/latex/contrib/showtags/showtags-doc.pdf new file mode 100644 index 0000000000..a5cffc0330 Binary files /dev/null and b/macros/latex/contrib/showtags/showtags-doc.pdf differ diff --git a/macros/latex/contrib/showtags/showtags-doc.tex b/macros/latex/contrib/showtags/showtags-doc.tex new file mode 100644 index 0000000000..e4cf78d893 --- /dev/null +++ b/macros/latex/contrib/showtags/showtags-doc.tex @@ -0,0 +1,59 @@ +\documentclass[pagesize=auto, fontsize=12pt, DIV=10, parskip=half, headings=normal]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{showtags} package\thanks{This manual corresponds to \pkg{showtags.sty}~v1.04, dated~06 September 1995.}} +\author{Nelson H. F. Beebe\thanks{\mail{beebe@math.utah.edu}}} +\date{06 September 1995} + + +\begin{document} + +\maketitle + +This style file causes the bibliography +citation tags to be displayed in boldface +text in a right-adjusted framed box over +each entry in a bibliography. This serves +as a handy reference when the tags are +needed for a \verb|\cite{}| macro. + +For flexibility, the user may redefine +\verb|\thecitetag| to change the format. E.\,g. +% +\begin{verbatim} +\renewcommand{\thecitetag}[1]{\fbox{\small\tt #1}} +\end{verbatim} +% +would typeset the tag in small typewriter +text in a box. + +The \texttt{checksum} field in the \texttt{showtags.sty} file contains a CRC-16 +checksum as the first value, followed by the +equivalent of the standard UNIX \texttt{wc} (word +count) utility output of lines, words, and +characters. This is produced by Robert +Solovay's \texttt{checksum} utility. + + +\section*{Revision history:} + +\begin{labeling}[\enskip]{1.04 [06-Sep-1995]} +\item[{1.04 [06-Sep-1995]}] update for \LaTeXe\ support +\item[{1.03 [12-Sep-1994]}] update file header, and add \verb|\strut| to label box +\item[{1.02 [10-Sep-1991]}] update file header, trim trailing space +\item[{1.01 [11-Jul-1990]}] almost original version +\end{labeling} + +\end{document} diff --git a/macros/latex/contrib/showtags/showtags.sty b/macros/latex/contrib/showtags/showtags.sty new file mode 100644 index 0000000000..c26e487a57 --- /dev/null +++ b/macros/latex/contrib/showtags/showtags.sty @@ -0,0 +1,99 @@ +%%% -*-LaTeX-*- +%%% /u/sy/beebe/tex/bib/showtags.sty, Mon Sep 12 09:25:01 1994 +%%% Edit by Nelson H. F. Beebe +%%% +%%% ==================================================================== +%%% @LaTeX-style-file{ +%%% author = "Nelson H. F. Beebe", +%%% version = "1.05", +%%% date = "06 September 1995", +%%% time = "16:46:14 MDT", +%%% filename = "showtags.sty", +%%% address = "Department of Mathematics +%%% University of Utah +%%% Salt Lake City, UT 84112 +%%% USA", +%%% telephone = "+1 801 581 5254", +%%% FAX = "+1 801 581 4148", +%%% checksum = "08345 99 459 4338", +%%% email = "beebe@math.utah.edu (Internet)", +%%% codetable = "ISO/ASCII", +%%% keywords = "bibliography, citation label, citation tag", +%%% license = "public domain", +%%% supported = "yes", +%%% docstring = "This style file causes the bibliography +%%% citation tags to be displayed in boldface +%%% text in a right-adjusted framed box over +%%% each entry in a bibliography. This serves +%%% as a handy reference when the tags are +%%% needed for a \cite{} macro. +%%% +%%% For flexibility, the user may redefine +%%% \thecitetag to change the format. E.g. +%%% +%%% \renewcommand{\thecitetag}[1]{\fbox{\small\tt #1}} +%%% +%%% would typeset the tag in small typewriter +%%% text in a box. +%%% +%%% The checksum field above contains a CRC-16 +%%% checksum as the first value, followed by the +%%% equivalent of the standard UNIX wc (word +%%% count) utility output of lines, words, and +%%% characters. This is produced by Robert +%%% Solovay's checksum utility." +%%% } +%%% ==================================================================== +% +%%% Revision history: +%%% +%%% 1.05 [04-Nov-2010] add license statement in comment header, but +%%% preserve release date and time of 1.04 +%%% 1.04 [06-Sep-1995] update for LaTeX 2e support +%%% 1.03 [12-Sep-1994] update file header, and add \strut to label box +%%% 1.02 [10-Sep-1991] update file header, trim trailing space +%%% 1.01 [11-Jul-1990] almost original version +\ifx \DeclareRobustCommand \undefined% then assume LaTeX 2.09 +% \@bibitem and \@lbibitem definitions extracted from latex.tex +% labelled ``LATEX VERSION 2.09 <24 May 1989>''. We add only the +% \@showtag invocations. +% + \def\@bibitem#1{\item\if@filesw \immediate\write\@auxout + {\string\bibcite{#1}{\the\c@enumi}}\fi\ignorespaces + \@showtag{#1}} +% + \def\@lbibitem[#1]#2{\item[\@biblabel{#1}]\if@filesw + { \def\protect##1{\string ##1\space}\immediate + \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces + \@showtag{#2}} +\else % must be LaTeX 2e +% From latex.ltx <1994/12/18>: + \def\@bibitem#1{\item\if@filesw \immediate\write\@auxout + {\string\bibcite{#1}{\the\value{\@listctr}}}\fi\ignorespaces + \@showtag{#1}} +% + \def\@lbibitem[#1]#2{\item[\@biblabel{#1}\hfill]\if@filesw + {\let\protect\noexpand + \immediate + \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces + \@showtag{#2}} +\fi +% +% Here are the macros that actually set the tag. By default, we put it +% in boldface type in a framed box that is right-adjusted in exactly the +% width of the current line (and we handle both the one- and two-column +% cases), and we ensure that a page break does not occur between the +% tag-in-the-box and its bibliographic entry. For flexibility, the user +% may redefine \thecitetag to change the format. +% +\newcommand{\thecitetag}[1]{\fbox{\bf #1}} +% +\def\@showtag#1{ + \@tempdima=\textwidth + \if@twocolumn + \advance\@tempdima by -\columnsep + \divide\@tempdima by 2 + \fi + \hbox to \@tempdima{\hfill\thecitetag{\strut#1}}\nobreak} +% +\endinput -- cgit v1.2.3