#
2345579c |
|
09-Apr-2018 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Provide >>~ option to munging commands This version of indentation provides another way to attack the problem of getting nice indentation under turnstiles. For example, \vdash\;\HOLthm[>>~4,nostile]{thy.thm} seems to do a good job when using \; as one's math-mode spacing and with font = 11pt Computer Modern. As per the Description text, other effects are also possible.
|
#
b1ae8632 |
|
04-Apr-2018 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Correct some TeX-munging bugs to do with >> option
|
#
a8fbc262 |
|
25-Mar-2018 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Fix TeX code to compile- some tests still not passing
|
#
d0114f30 |
|
22-Jul-2016 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Get TeX/mungeTools to build again
|
#
44d722c8 |
|
06-Mar-2015 |
Ramana Kumar <ramana@member.fsf.org> |
make \HOLty[of] respect instantiation options so, for example, \HOLty[of,:'b/:'a]{MAP} will print a specialised type for MAP on a 'b->'b function rather than the general 'a->'b version, without requiring the user to type the full instantiated type as an annotation.
|
#
8584dbbe |
|
01-Mar-2015 |
Michael Norrish <michael.norrish@nicta.com.au> |
Making parsing of trace-setting munger option a bit more robust
|
#
ef375495 |
|
01-Mar-2015 |
Michael Norrish <michael.norrish@nicta.com.au> |
Set arbitrary traces while LaTeX munging. Closes #141. That issue calls for a slightly different interface to get much the same effect. This approach has the advantage that it keeps the effect of the trace changing localised.
|
#
17a5f64b |
|
25-Feb-2015 |
Michael Norrish <michael.norrish@nicta.com.au> |
Implement, document new form of substitution for LaTeX munging
|
#
93dd575a |
|
28-Oct-2014 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Implement nomath option to munger commands to override global -m option.
|
#
81e98efe |
|
11-Oct-2014 |
Ramana Kumar <ramana@member.fsf.org> |
make the munger overload removal option work for types too in which case it disables type abbreviations for that name
|
#
02335470 |
|
20-Aug-2014 |
Ramana Kumar <ramana@member.fsf.org> |
add an option to the munger for controlling the print depth
|
#
c5e63297 |
|
17-Jun-2014 |
Ramana Kumar <ramana@member.fsf.org> |
add rulename option to LaTeX munger for naming inference rules Allows the user to provide a string (name) to be passed as the optional argument to \infer[name]{...} when typesetting using rule or stackedrule. Due to the simplistic parsing of the munger's commands and options, unexpected results are likely if this name contains any special characters. (Perhaps it should parse them under some encoding for this option?) The name is wrapped in a new \HOLRuleName command, which provides a route for customisation.
|
#
ed6b534c |
|
10-Jun-2014 |
Ramana Kumar <ramana@member.fsf.org> |
munger: allow showtypes to take an argument indicating the trace level Looking at the output of setting the types trace to 2, this is probably fairly useless. But it's backwards compatible and (hopefully) benign.
|
#
509ab8f6 |
|
29-May-2013 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
User can specify strings not be overloaded when a term is printed The syntax is something like \HOLtm[-mystring1,-mystring2]{mystring1 mystring2} This is useful when explaining notation.
|
#
77a614bb |
|
29-May-2013 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Remove a compile-time warning due to non-exhaustive matching
|
#
f6b2e50a |
|
24-May-2013 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Fix munger bug where math-mode option conflicted with var-substitutions In particular, something like \HOLthm[m/x]{theorem-name} was parsed as an attempt to set the math-mode spacing to /x instead of as a substitution of name m for name x.
|
#
6aac6cb4 |
|
20-Jan-2013 |
Michael Norrish <michael.norrish@nicta.com.au> |
Improve TeX-mungers' usage messages.
|
#
78557627 |
|
17-Jan-2013 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Preliminary thoughts towards allowing math-mode spacing in HOL TeX.
|
#
d3a334bb |
|
01-Mar-2012 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Allow type instantiation to be performed on arguments to \HOLtm and \HOLthm.
|
#
9d14ade8 |
|
14-Feb-2011 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
EmitTeX: new merge and nomerge options to \HOLtm and \HOLthm. These allow per-entity control of whether or not token-merging analysis is done. For example, with it globally off (using --nomergeanalysis), theorems involving LEAST will print with the bound variable squished up against the LEAST: ... (LEASTn. P n). Putting merge back on for this one theorem will get the nice spacing back again.
|
#
25830f4d |
|
14-Feb-2011 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
EmitTex: do variable-renaming instantiation after SPEC_ALL, not before. This lets something like [m/n,n/m] work on theorems like |- !m n. foo m n when those theorems have SPEC_ALL applied to them (as is the default). The code that attempts to do renaming of bound variables has no way to achieve the required simultaneity so will introduce unwanted priming if [m/n,n/m] is applied to bound variables.
|
#
9b5e48e3 |
|
12-Feb-2011 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Add new --nomergeanalysis option to mungers (documented in Description).
|
#
720c850d |
|
27-Jan-2011 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Implement & document nodollarparens option for the TeX munger.
|
#
e2dce9e2 |
|
06-May-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Fix bug in latest commit to do with unhandled UNCHANGED exceptions.
|
#
898b9395 |
|
06-May-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Make instantiations in munger change all vars, free or bound.
|
#
3ea49f1d |
|
05-May-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Add 'stackedrule' option for stacking rule hypotheses.
|
#
e912065f |
|
05-May-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Add 'rule' option for implications (in terms or theorems). Requires the proof package for its \infer command.
|
#
3efaef51 |
|
05-May-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Provide another level of indirection for HOL inline stuff. New LaTeX command, \HOLinline{....}.
|
#
a1e0205d |
|
05-May-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
New 'conj' option for munging theorems (accesses individual conjuncts).
|
#
debafdff |
|
03-May-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Add new spaceddef option to put blank lines between definition conjuncts.
|
#
41d79336 |
|
03-May-2010 |
Ramana Kumar <ramana.kumar@gmail.com> |
Added a trace to EmitTeX for printing datatype theorems with the name of the type before the equals sign (instead of a variable). The old behavior is still default, because scripts for emitting SML that use datatype_thm_to_string would want the bare variable before the = sign. However, the new behavior looks better in TeX, so I turn the trace on in the munger.
|
#
74a2ef8e |
|
18-Apr-2010 |
Thomas Tuerk <Thomas.Tuerk@cl.cam.ac.uk> |
Addition of a tool called "holindex". Holindex is an extension of the munger. It uses the munger to create Indexes of HOL Theorems, Terms and Types in latex documents. However, it can also be used to add just some HOL terms/types/theorems in the text. In contrast to the munger which preprocesses inputs before handing them to latex, holindex uses auxiliary files similar to what bibtex or makeindex do. The first run of latex on "something.tex" will create a file "something.hix" (hol index). A call of "munge -index something" will create then a file "something.tix" (latex index) that is used for the next runs of latex. Similar to the munger, theorems are loaded from the libraries. However, terms and types can be stored in a special auxiliary files with the ending ".hdf" (hol definitions). Please see holindex-demo.tex for an example.
|
#
96719bff |
|
15-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Allow >> option to be followed by digits to specify different indent level. Also extend the implementation to affect \HOLty, and document it in the DESCRIPTION.
|
#
af028490 |
|
15-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Get >> to work with \HOLthm; removing automatic indenting with def option.
|
#
73933fc6 |
|
12-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Flip order of application of turnstile and indent options in term-printing.
|
#
b75fa835 |
|
12-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Add a showtypes option to the munger, for printing terms and theorems.
|
#
d4254d85 |
|
12-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
munger: fix error message when an instantiation fails.
|
#
0af4bcb0 |
|
12-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
munger: make tt mode default for terms, types; add alltt option to flip back.
|
#
9321097a |
|
07-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Allow blank lines in overrides files passed as c/line parameters to mungers.
|
#
260a105b |
|
05-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Allow width to be specified on a per-instance basis with a width=x option.
|
#
b199e8b0 |
|
05-Apr-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Allow commandline to specify the linewidth used by munger when p/printing.
|
#
3d29f431 |
|
30-Mar-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Modify mungeTools so that Moscow ML can compile it.
|
#
2b33f392 |
|
30-Mar-2010 |
Michael Norrish <Michael.Norrish@nicta.com.au> |
Start of implementation of LaTeX munging for HOL. Work based on a tool developed by Ramana Kumar.
|