| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright 2012 J.J. Green |
| 4 |
% $Id: bguq.dtx,v 1.9 2012/08/05 15:39:27 jjg Exp $ |
| 5 |
% |
| 6 |
% Changes: |
| 7 |
% 0.1 - 2012/07/16 - first working version |
| 8 |
% 0.2 - 2012/07/18 - code tidying, comments |
| 9 |
% 0.3 - 2012/07/19 - documentation fixes |
| 10 |
% 0.4 - 2012/08/05 - made the stroke slightly rounder and lifted |
| 11 |
% the terminals to the middle (rather than the bottom) of |
| 12 |
% the horzontal stoke, this gives a better appearence for |
| 13 |
% very thick lines |
| 14 |
% |
| 15 |
% \fi |
| 16 |
% |
| 17 |
% \CheckSum{844} |
| 18 |
%% \CharacterTable |
| 19 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 20 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 21 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 22 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 23 |
%% Dollar \$ Percent \% Ampersand \& |
| 24 |
%% Acute accent \' Left paren \( Right paren \) |
| 25 |
%% Asterisk \* Plus \+ Comma \, |
| 26 |
%% Minus \- Point \. Solidus \/ |
| 27 |
%% Colon \: Semicolon \; Less than \< |
| 28 |
%% Equals \= Greater than \> Question mark \? |
| 29 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 30 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 31 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 32 |
%% Right brace \} Tilde \~} |
| 33 |
% |
| 34 |
% \iffalse % this is a METACOMMENT ! |
| 35 |
% |
| 36 |
%<package>\NeedsTeXFormat{LaTeX2e} |
| 37 |
%<package>\ProvidesPackage{bguq} |
| 38 |
%<-driver> [2012/08/05 0.4 |
| 39 |
%<package> Begriffsschrift universal quantifier package] |
| 40 |
% |
| 41 |
%<*driver> |
| 42 |
\documentclass[10pt]{ltxdoc} |
| 43 |
\OnlyDescription |
| 44 |
\usepackage[8]{bguq} |
| 45 |
\usepackage[bguq]{begriff-bguq} |
| 46 |
\setlength{\BGthickness}{0.8pt} |
| 47 |
\usepackage{amssymb} |
| 48 |
\providecommand\dst{\expandafter{\normalfont\scshape docstrip}} |
| 49 |
\renewcommand{\quad}{{\hskip1em plus 2em}} |
| 50 |
\begin{document} |
| 51 |
\DocInput{bguq.dtx} |
| 52 |
\end{document} |
| 53 |
%</driver> |
| 54 |
% \fi |
| 55 |
% |
| 56 |
% \GetFileInfo{bguq.sty} |
| 57 |
% \title{The \texttt{bguq} macro package for \LaTeXe} |
| 58 |
% \author{J.J. Green} |
| 59 |
% \date{Version \fileversion{} \filedate} |
| 60 |
% \maketitle |
| 61 |
% |
| 62 |
% \setcounter{StandardModuleDepth}{1} |
| 63 |
% |
| 64 |
% \noindent |
| 65 |
% This file defines the package |bguq| which provides \LaTeXe\ access |
| 66 |
% to the \textit{Begriffsschrift} universal quantifier ``$\bguq$'' |
| 67 |
% from the \texttt{bguq} font in a small number of sizes. These are |
| 68 |
% are designed for setting the \textit{Begriffsschrift} diagrams used |
| 69 |
% by Frege. |
| 70 |
% |
| 71 |
% The package takes a single option which is an integer between |
| 72 |
% 4 and 12, this specifying the line-thickness of the quantifier |
| 73 |
% stroke in units of $1/10$\,pt for a document font-size of 10\,pt. |
| 74 |
% If the option is not specified then the value \texttt{8} will be |
| 75 |
% assumed. Note that the size of the symbol produced will depend on |
| 76 |
% the font size of the document (since the symbol needs to be wide |
| 77 |
% enough to accomodate the variable quantified) and the line-thickness |
| 78 |
% is scaled similarly --- in a 12\,pt document the line will be 1.2 |
| 79 |
% times the thickness, and so on. |
| 80 |
% |
| 81 |
% The package provides only two commands: the |\bguq| macro which, |
| 82 |
% in math-mode, produces the quantifer symbol, and |\bguqwidth| which |
| 83 |
% is a the width of the symbol (for use in fancy placement). It is not |
| 84 |
% expected that these commands will be used by end-users directly, |
| 85 |
% rather they are intended for package writers. |
| 86 |
% |
| 87 |
% Below we see the results in a test implementation in the |
| 88 |
% \texttt{begriff} package by Josh Parsons and Richard Heck: |
| 89 |
% the Geach--Kaplan sentence (as orignally set by Marcus Rossberg). |
| 90 |
% \[ |
| 91 |
% \setlength{\BGlinewidth}{1.0in} |
| 92 |
% \BGnot \BGquant{\mathfrak{F}}% |
| 93 |
% \BGconditional{ |
| 94 |
% \BGquant{\mathfrak{c}}\BGquant{\mathfrak{d}} |
| 95 |
% \BGconditional{ |
| 96 |
% \BGnot |
| 97 |
% \BGconditional{ |
| 98 |
% \BGterm{A(\mathfrak{c},\mathfrak{d})} |
| 99 |
% }{ |
| 100 |
% \BGnot \BGterm{\mathfrak{F}(\mathfrak{c})}} |
| 101 |
% }{ |
| 102 |
% \BGnot \BGconditional{ |
| 103 |
% \BGterm{\mathfrak{F}(\mathfrak{d})} |
| 104 |
% }{ |
| 105 |
% \BGterm{\mathfrak{c}=\mathfrak{d}} |
| 106 |
% } |
| 107 |
% } |
| 108 |
% }{ |
| 109 |
% \BGconditional{ |
| 110 |
% \BGnot\BGquant{\mathfrak{b}}\BGnot\BGterm{\mathfrak{F}(\mathfrak{b})} |
| 111 |
% }{ |
| 112 |
% \BGterm{f \BGbracket{\BGquant{\mathfrak{a}} \BGconditional{ |
| 113 |
% \mathfrak{F}(\mathfrak{a}) |
| 114 |
% }{ |
| 115 |
% C(\mathfrak{a}) |
| 116 |
% }}} |
| 117 |
% } |
| 118 |
% } |
| 119 |
% \] |
| 120 |
% |
| 121 |
% \StopEventually{} |
| 122 |
% |
| 123 |
% \section{The \dst{} modules} |
| 124 |
% |
| 125 |
% The following modules are used in the implementation to direct |
| 126 |
% \dst{} in generating the external files: |
| 127 |
% \begin{center} |
| 128 |
% \begin{tabular}{ll} |
| 129 |
% driver & produce a documentation driver file \\ |
| 130 |
% package & produce a package file \\ |
| 131 |
% \end{tabular} |
| 132 |
% \end{center} |
| 133 |
% |
| 134 |
% \section{The Implementation} |
| 135 |
% \subsection{The macro package} |
| 136 |
% |
| 137 |
%<*package> |
| 138 |
% There is one font file for each possible thickness of |
| 139 |
% the Begriff stroke, indicated by an integer giving the |
| 140 |
% value in units of $1/10$pt. We have an option for each |
| 141 |
% of the integers $4,\ldots,12$, and that option detemines |
| 142 |
% the variable |\bguqfont| (with default value for $8/10$pt). |
| 143 |
% \begin{macrocode} |
| 144 |
\def\bguqfont{bguq08} |
| 145 |
\DeclareOption{4}{\def\bguqfont{bguq04}} |
| 146 |
\DeclareOption{5}{\def\bguqfont{bguq05}} |
| 147 |
\DeclareOption{6}{\def\bguqfont{bguq06}} |
| 148 |
\DeclareOption{7}{\def\bguqfont{bguq07}} |
| 149 |
\DeclareOption{8}{\def\bguqfont{bguq08}} |
| 150 |
\DeclareOption{9}{\def\bguqfont{bguq09}} |
| 151 |
\DeclareOption{10}{\def\bguqfont{bguq10}} |
| 152 |
\DeclareOption{11}{\def\bguqfont{bguq11}} |
| 153 |
\DeclareOption{12}{\def\bguqfont{bguq12}} |
| 154 |
\ProcessOptions\relax |
| 155 |
% \end{macrocode} |
| 156 |
% The symbol font declared is just the value of |\bguqfont|. |
| 157 |
% \begin{macrocode} |
| 158 |
\DeclareSymbolFont{\bguqfont}{U}{\bguqfont}{m}{n} |
| 159 |
% \end{macrocode} |
| 160 |
% |
| 161 |
% There is a single special symbol defined from this font: |
| 162 |
% \begin{macrocode} |
| 163 |
\DeclareMathSymbol{\bguq}{\mathord}{\bguqfont}{"20} |
| 164 |
\newlength{\bguqwidth} |
| 165 |
\settowidth{\bguqwidth}{\ensuremath\bguq} |
| 166 |
% \end{macrocode} |
| 167 |
% The character sizing |
| 168 |
% \begin{macrocode} |
| 169 |
\DeclareMathSizes{10}{10}{7}{5} |
| 170 |
% \end{macrocode} |
| 171 |
%</package> |
| 172 |
% \end{macrocode} |
| 173 |
% |
| 174 |
% The next line goes into all files and in addition prevents \dst{} |
| 175 |
% from adding any further code from the main source file (such as a |
| 176 |
% character table). |
| 177 |
% \begin{macrocode} |
| 178 |
\endinput |
| 179 |
% \end{macrocode} |
| 180 |
% |
| 181 |
% \DeleteShortVerb{\|} |
| 182 |
% \Finale |