diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/punk-latex |
Initial commit
Diffstat (limited to 'macros/latex/contrib/punk-latex')
-rw-r--r-- | macros/latex/contrib/punk-latex/README | 23 | ||||
-rw-r--r-- | macros/latex/contrib/punk-latex/ot1pnk.fd | 27 | ||||
-rw-r--r-- | macros/latex/contrib/punk-latex/punk.pdf | bin | 0 -> 156181 bytes | |||
-rw-r--r-- | macros/latex/contrib/punk-latex/punk.sty | 10 | ||||
-rw-r--r-- | macros/latex/contrib/punk-latex/punk.tex | 74 |
5 files changed, 134 insertions, 0 deletions
diff --git a/macros/latex/contrib/punk-latex/README b/macros/latex/contrib/punk-latex/README new file mode 100644 index 0000000000..4bce730610 --- /dev/null +++ b/macros/latex/contrib/punk-latex/README @@ -0,0 +1,23 @@ +This is a small package that provides some (poor) LaTeX support for +the punk fonts. The punk fonts are part of many tex installations, and +is found on the TeX Live distribution. + +*Installation* + +Unpack the archive, and move the files into their proper directories + +The files + +punk.sty +ot1pnk.fd + +should be placed in +TEXMF/tex/latex/punk + +punk.pdf + +should be placed in +TEXMF/doc/latex/punk + +punk.tex is the source of punk.pdf and no installation of it is +required. It can be deleted at will... diff --git a/macros/latex/contrib/punk-latex/ot1pnk.fd b/macros/latex/contrib/punk-latex/ot1pnk.fd new file mode 100644 index 0000000000..0f364b198d --- /dev/null +++ b/macros/latex/contrib/punk-latex/ot1pnk.fd @@ -0,0 +1,27 @@ +\ProvidesFile{ot1pnk.fd} + [2006/01/31 v1.1 LaTeX font definitions for Punk (PJ)] + +\DeclareFontFamily{OT1}{pnk}{} +\DeclareFontShape{OT1}{pnk}{m}{n}% + {<5><6><7><8><9><10>punk10% + <12><10.95>punk12% + <14.4><17.28><20.74><24.88>punk20}{} + +\DeclareFontShape{OT1}{pnk}{m}{sl}% + {<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74><24.88>punksl20}{} + +\DeclareFontShape{OT1}{pnk}{bx}{n} + {<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74><24.88>punkbx20}{} + +\DeclareFontShape{OT1}{pnk}{m}{sc}{<->ssub * pnk/m/n}{} +\DeclareFontShape{OT1}{pnk}{m}{it}{<->ssub * pnk/m/sl}{} + +\DeclareFontShape{OT1}{pnk}{bx}{sl}{<->ssub * pnk/bx/n}{} +\DeclareFontShape{OT1}{pnk}{bx}{it}{<->ssub * pnk/bx/n}{} +\DeclareFontShape{OT1}{pnk}{bx}{sc}{<->ssub * pnk/bx/n}{} + +\DeclareFontShape{OT1}{pnk}{b}{n}{<->ssub * pnk/bx/n}{} +\DeclareFontShape{OT1}{pnk}{b}{sl}{<->ssub * pnk/bx/sl}{} +\DeclareFontShape{OT1}{pnk}{b}{it}{<->ssub * pnk/bx/it}{} +\DeclareFontShape{OT1}{pnk}{b}{sc}{<->ssub * pnk/bx/sc}{} +\endinput
\ No newline at end of file diff --git a/macros/latex/contrib/punk-latex/punk.pdf b/macros/latex/contrib/punk-latex/punk.pdf Binary files differnew file mode 100644 index 0000000000..d9a10c8570 --- /dev/null +++ b/macros/latex/contrib/punk-latex/punk.pdf diff --git a/macros/latex/contrib/punk-latex/punk.sty b/macros/latex/contrib/punk-latex/punk.sty new file mode 100644 index 0000000000..20a976b1ed --- /dev/null +++ b/macros/latex/contrib/punk-latex/punk.sty @@ -0,0 +1,10 @@ +\ProvidesPackage{punk} + [2006/01/31 v1.1 LaTeX support for punk fonts] + +\newcommand*\punkfamily{% + \fontencoding{OT1}\fontfamily{pnk}\selectfont} + +\DeclareTextFontCommand{\textpunk}{\punkfamily} +\DeclareTextFontCommand{\textpunksl}{\punkfamily\slshape} +\DeclareTextFontCommand{\textpunkbf}{\punkfamily\bfseries} +\endinput
\ No newline at end of file diff --git a/macros/latex/contrib/punk-latex/punk.tex b/macros/latex/contrib/punk-latex/punk.tex new file mode 100644 index 0000000000..71f6b62a44 --- /dev/null +++ b/macros/latex/contrib/punk-latex/punk.tex @@ -0,0 +1,74 @@ +\documentclass{article} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage{listings} +\title{The \texttt{punk} package\medskip\\ + \large\LaTeX\ support for the punk fonts} +\author{version 1.1 \today} +\lstset{language=[latex]tex,breaklines=true} +\date{Palle J\o rgensen} + +\begin{document} +\maketitle +\section{Introduction} +\label{sec:introduction} +The \texttt{punk} package provides support for the punk fonts. The +punk fonts are already installed on many systems, this is only support +for using the punk fonts with \LaTeX. + +The license of the punk package and the related files is GNU General +Public License. + +\section{Using the punk package} +\label{sec:using-punk-fonts} + +If you want some text typeset with the punk fonts for a short +text you can use one of the commands + +\begin{lstlisting} + \textpunk{...}, \textpunksl{...}, \textpunkbf{...} +\end{lstlisting} +which typesets the text with Punk, Punk Slanted and Punk Bold. + +If you want to typeset longer passages of text with the punk fonts, +you can use the environment + +\begin{lstlisting} + punkfamily +\end{lstlisting} +Inside \texttt{punkfamily} the normal \LaTeX\ font switches +\verb+\slshape+ and \verb+\bfseries+ works. Furthermore \verb+\emph+ +works too. + +It is possible to use the command +\begin{lstlisting} + \punkfamily +\end{lstlisting} +but this command also changes the current fontencoding; use with +caution\dots + +\clearpage +\appendix +\enlargethispage*{5mm} +\section{Source of the files in the punk bundle} +\label{sec:source} + +\subsection{punk.sty} +\label{sec:punk.sty} +\lstinputlisting{punk.sty} + +\subsection{ot1pnk.fd} +\label{sec:ot1pnr.fd} +\lstinputlisting{ot1pnr.fd} + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: |