Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<br/>

Expand Down
8 changes: 4 additions & 4 deletions demo/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
]
}
Expand Down
4 changes: 2 additions & 2 deletions gap/latex/digraphs.gi
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions gap/latex/latex.gi
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion gap/latex/structdesc.gi
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion gap/typeset.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
#!
Expand Down
2 changes: 1 addition & 1 deletion gap/typeset.gi
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down