diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ad5029..c008b67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,7 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Renamed package to 'typeset' - Reworked permutation handling to include \left and \right for LaTeX output - Overhauled documentation -- Refactored code to use global variables where appropiate +- Refactored code to use global variables where appropriate
diff --git a/demo/demo.ipynb b/demo/demo.ipynb index 7acdc3f..71d8876 100644 --- a/demo/demo.ipynb +++ b/demo/demo.ipynb @@ -527,7 +527,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "#I To use the gather* LaTeX environment in character tables, add the amsmath package to your premable \\usepackage{amsmath}\n", + "#I To use the gather* LaTeX environment in character tables, add the amsmath package to your preamble \\usepackage{amsmath}\n", "\\begin{gather*}\n", "\\begin{array}{c c c c}\n", " & 1a & 2a & 3a \\\\\n", @@ -580,8 +580,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "#I To use the gather* LaTeX environment in character tables, add the amsmath package to your premable \\usepackage{amsmath}\n", - "#I To use the aligned LaTeX environment in table legends, add the amsmath package to your premable \\usepackage{amsmath}\n", + "#I To use the gather* LaTeX environment in character tables, add the amsmath package to your preamble \\usepackage{amsmath}\n", + "#I To use the aligned LaTeX environment in table legends, add the amsmath package to your preamble \\usepackage{amsmath}\n", "\\begin{gather*}\n", "\\begin{array}{c c c c c}\n", " & 1a & 2a & 3a & 3b \\\\\n", @@ -806,7 +806,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "#I To use the rtimes LaTeX command, add the amssymb package to your premable \\usepackage{amssymb}\n", + "#I To use the rtimes LaTeX command, add the amssymb package to your preamble \\usepackage{amssymb}\n", "\\rm C_{6} \\times ((C_{4} \\times C_{2}) \\rtimes C_{12})\n" ] } diff --git a/gap/latex/digraphs.gi b/gap/latex/digraphs.gi index c228618..deaa5b0 100644 --- a/gap/latex/digraphs.gi +++ b/gap/latex/digraphs.gi @@ -16,7 +16,7 @@ InstallValue(DEFAULT_DOT2TEX_OPTIONS, InstallMethod(GenLatexTmpl, "for directed graphs", true, [ IsDigraph ], 0, function( obj ) - Info(InfoTypeset, 2, "To use the tikzpicture LaTeX environment, add the tikz package to your premable with \\usepackage{tikz} and \\usetikzlibrary{decorations,arrows,shapes}"); + Info(InfoTypeset, 2, "To use the tikzpicture LaTeX environment, add the tikz package to your preamble with \\usepackage{tikz} and \\usetikzlibrary{decorations,arrows,shapes}"); return "\\begin{{center}}\n\\begin{{tikzpicture}}[>=latex',line join=bevel,]\n{}\n\\end{{tikzpicture}}\n\\end{{center}}"; end); @@ -39,7 +39,7 @@ function ( obj ) else # Simply makes use of the dot2texi LaTeX package to allow raw DOT to be input # and converted during LaTeX compilation. - Info(InfoTypeset, 2, "To use the dot2tex LaTeX environment, add the dot2texi package to your premable \\usepackage{dot2texi}"); + Info(InfoTypeset, 2, "To use the dot2tex LaTeX environment, add the dot2texi package to your preamble \\usepackage{dot2texi}"); Info(InfoTypeset, 2, "Shell escape is needed to render digraphs via pdflatex, using the command line flag -shell-escape"); dot := DotDigraph(obj); Append(ret, "\\begin{dot2tex}[dot,tikz,codeonly,styleonly]\n"); diff --git a/gap/latex/latex.gi b/gap/latex/latex.gi index e727f45..a59bda0 100644 --- a/gap/latex/latex.gi +++ b/gap/latex/latex.gi @@ -205,7 +205,7 @@ InstallMethod(GenLatexTmpl, "for character tables", true, function (tbl ) local ret, cnr, classes, i, j, k, nCols, nRows, header; - Info(InfoTypeset, 2, "To use the gather* LaTeX environment in character tables, add the amsmath package to your premable \\usepackage{amsmath}"); + Info(InfoTypeset, 2, "To use the gather* LaTeX environment in character tables, add the amsmath package to your preamble \\usepackage{amsmath}"); ret := "\\begin{{gather*}}\n\\begin{{array}}{{"; cnr := CharacterNames(tbl); classes := ClassNames(tbl); @@ -342,7 +342,7 @@ function ( data ) irrstack := data.irrstack; if not IsEmpty(irrstack) then - Info(InfoTypeset, 2, "To use the aligned LaTeX environment in table legends, add the amsmath package to your premable \\usepackage{amsmath}"); + Info(InfoTypeset, 2, "To use the aligned LaTeX environment in table legends, add the amsmath package to your preamble \\usepackage{amsmath}"); irrnames := data.irrnames; Append(ret, "\\\\\n\\begin{aligned}\n"); fi; diff --git a/gap/latex/structdesc.gi b/gap/latex/structdesc.gi index 65c6e63..ffc539d 100644 --- a/gap/latex/structdesc.gi +++ b/gap/latex/structdesc.gi @@ -28,7 +28,7 @@ function( desc ) # Handle possible operators {:, ., x, /, =} if ':' in desc then - Info(InfoTypeset, 2, "To use the rtimes LaTeX command, add the amssymb package to your premable \\usepackage{amssymb}"); + Info(InfoTypeset, 2, "To use the rtimes LaTeX command, add the amssymb package to your preamble \\usepackage{amssymb}"); return ConcatStructDescOperands(desc, ":", "\\rtimes"); elif '.' in desc then return ConcatStructDescOperands(desc, ".", "\\cdot"); diff --git a/gap/typeset.gd b/gap/typeset.gd index cef99c2..4aafd21 100644 --- a/gap/typeset.gd +++ b/gap/typeset.gd @@ -27,7 +27,7 @@ #! * 0 - No messages #! * 1 - Problems only: messages describing what went wrong, with no #! messages if an operation is successful -#! * 2 - Required preamble packages: displays informations about any required +#! * 2 - Required preamble packages: displays information about any required #! LaTeX packages that need to be added to the preamble to be rendered. #! * 3 - Progress: also shows step-by-step progress of operations #! diff --git a/gap/typeset.gi b/gap/typeset.gi index 7bd982e..835b459 100644 --- a/gap/typeset.gi +++ b/gap/typeset.gi @@ -391,7 +391,7 @@ end); ## ## generates a new options record that can be passed to sub-calls from a parent. ## used to allow users to set options that may differ between recursive calls -## of a single method (e.g. Matrix delimitors). +## of a single method (e.g. Matrix delimiters). ## InstallGlobalFunction(MergeSubOptions, function ( opts )