Debian Codegraph @

texmf-dist/doc/latex/frege/README

raw
1 frege.sty - a LaTeX2e package for typesetting begriffsschrift
2
3 This package is based on begriff.sty released under the GNU General Public License.
4 Copyright (C) 2003 by Josh Parsons
5
6 Since version 1.3 this package also makes use of the bguq package by J.J. Green.
7
8 Changes with respect to begriff.sty
9
10 correct relative lengths of the content stroke with respect to other strokes
11 attached to it;
12 content strokes point at the middle of the following symbols, rather than the bottom;
13 greater width for the assertion stroke as compared to the content stroke;
14 a more intuitive structure for the conditional (arguments are now given in the same
15 order as they appear on the left of a completed formula);
16 the command for the conditional with empty arguments now results in a vertical line
17 (conditional stroke) on it's own the other strokes are added as the arguments;
18 the linewidth is properly accounted for so that things remain properly centered when
19 scaled;
20
21 frege.sty defines the following basic commands:
22 \Fcontent[1] - plain content stroke
23 \Fncontent[1] - negated content stroke
24 \Fnncontent[1] - twice negated content stroke
25 \Faconten[1] - asserted content stroke
26 \Fancontent[1] - asserted negated content stroke
27 \Fanncontent[1] - asserted twice negated content stroke
28 \Fquant[1]{a} - content stroke with quantifier
29 \Fnquant[1]{a} - negated quantifier
30 \Fnnquant[1]{a} - twice negated quantifier
31 \Fquantn[1]{a} - quantifier with negated content
32 \Fquantnn[1]{a} - quantifier with twice negated content
33 \Fnquantn[1]{a} - negated quantifier with negated content
34 \Fnquantnn[1]{a} - negated quantifier with twice negated content
35 \Fnnquantn[1]{a} - twice negated quantifier with negated content
36 \Fnnquantnn[1]{a} - twice negated quantifier with twice negated content
37 \Faquant[1]{a} - asserted content stroke with quantifier
38 \Fanquant[1]{a} - asserted negated quantifier
39 \Fannquant[1]{a} - asserted twice negated quantifier
40 \Faquantn[1]{a} - asserted quantifier with negated content
41 \Faquantnn[1]{a} - asserted quantifier with twice negated content
42 \Fanquantn[1]{a} - asserted negated quantifier with negated content
43 \Fanquantnn[1]{a} - asserted negated quantifier with twice negated content
44 \Fannquantn[1]{a} - asserted twice negated quantifier with negated content
45 \Fannquantnn[1]{a} - asserted twice negated quantifier with twice negated content
46
47 while this may look like a daunting list think of it as just two commands:
48 \Fcontent[1] - generates a content stroke
49 \Fquant[1]{a} - generates a quantifier with variable a
50
51 Adding an "a" after the "\F" adds an assertion stroke to the front of the command,
52 this may be followed by one two or no "n" to add one two or no negations to the
53 stroke. Next comes the name of the command either "content" or "quant". "quant" may
54 then be followed by another one two or no "n" which will add one two or no negations
55 after the quantifier to it's content stroke. All commands may be used in either text
56 or math mode. All the above commands produce output of the same length and may be
57 arbitrarly combined to produce longer composite formulas. Since version 1.1 each of
58 the basic strokes also has an optional argument with default value one, that scales
59 the total length of the stroke (\Fbaselength), so that an optional argument of [.5]
60 will produce a stroke half as long. Warning: setting a length shorter than what is
61 needed to fit all the options of a stroke leads to negative lengths and hence
62 unpredictable results.
63
64 Since version 1.3 it is also possible to call all the above commands without the
65 word "content" for the content strokes and with just "q" instead of the word "quant"
66 for the quantifiers.
67
68 frege.sty defines the following more complex commands:
69 \Fconditional[<option>]{<consequent>}{<antecedent>}
70 \Fbox{<begriffsschrift formula with at least one conditional>}
71 \Fbracket{<begriffsschrift formula with at least one conditional>}
72 \Fargument[<premise 0>]{<premise 1>}{<premise 2>}{<conclusion>}
73 \Fstrut[1]
74
75 The final two have been added in version 1.2.
76
77 The following shorthands for the above commands have been introduced in version 1.3:
78 \Fcdt, \Fb, \Fbb, \Farg, \Fs;
79
80 The "Fconditional" command requires a mixture of the commands defined by frege.sty
81 and normal mathmode input to produce begriffsschrift. A implies B would be written
82 like this:
83
84 \Fconditional[\Facontent]{\Fcontent B}{\Fcontent A}
85
86 This produces the two dimensional fregean conditional symbol with B lined up above
87 A. In addition the "Fconditional" command may be arbitrarily nested to produce any
88 begriffsschrift formula possible. All begriffsschrift symbol can be made without
89 the use of the optional argument, it exists only for convenience.
90
91 "Fbracket" is just the same as "\left(\Fbox\right)" everything said about "Fbox"
92 applies equally to "Fbracket". A completed formula of begriffsschrift that includes
93 at least one conditional, should always be placed in an "Fbox" this ensures it is
94 given enough space in the output behaves correctly with respect to the text around
95 it and works correctly within environments such as align*.
96
97 "Fargument" arranges two begriffsschrift formulas above each other and seperates
98 them from a third by a horizontal line. The option is for the name of a premise
99 written elsewhere and will outout (name): to the left of the horizontal line.
100
101 "Fstrut" is like a invisible content stroke. Like all other basic strokes, it may be
102 scaled using it's optional argument. Fstrut is to be used in conjunction with
103 Fargument to ensure the formulas line up properly.
104
105 The final result may also be modified by changing the following lengths using the
106 \setlength{<lengthname>}{<value>} command. The lengths and there default values are
107 given as follows:
108
109 length: default value: description:
110 \Fbaselength 20pt the length of a single basic stroke
111 \Flinewidth 0.5pt the width of all lines other than the assert stroke
112 \Fspace 2pt seperation between begriffsschrift and text/formula
113 \Fassertwidth 3\Flinewidth the width of the assert stroke
114 \Fraiseheight 1ex-\Flinewidth the height of content strokes above the baseline
115 \Fnegsep 3\Flinewidth the sepparation between a double negation
116 \Fnegshort 2\Flinewidth the space between negation stroke and baseline
117 \Fquantwidth 6pt width of the semi circular quantifier depression
118
119 Since version 1.3 it is possible to load this package using the "bguq" option:
120 \usepackage[bguq]{frege}
121
122 if the bguq option is enabled all quantifiers will use the bguq character provided
123 by the bguq package by J.J. Green rather than the qbezier used by this package.
124 This means the bguq package must be installed to use the option. (It can be found
125 on ctan: http://www.ctan.org/pkg/bguq).
126 Warning: as it stands the bguq character scales with font while the rest of the
127 symbols provided by this package do not. Also, the bguq character will not respond
128 to a change in Flinewidth.
129
130 For more examples and info see accompanying manual (frege.pdf or frege.tex)
131 Everything released under GNU General Public License.