Skip to content
Merged
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
7 changes: 6 additions & 1 deletion CSharpMath/Atoms/Factories/MathAtoms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,12 @@ public static Structures.Result<IMathAtom> Table( string environment, List<List<
Style style;
var table = new Table(environment) { Cells = rows };
switch (environment) {
case null:
table.InterRowAdditionalSpacing = 1;
for (int i = 0; i < table.NColumns; i++) {
table.SetAlignment(ColumnAlignment.Left, i);
}
return table;
case var _ when _matrixEnvironments.TryGetValue(environment, out var delimiters):
table.Environment = "matrix"; // TableEnvironment is set to matrix as delimiters are converted to latex outside the table.
table.InterColumnSpacing = 18;
Expand All @@ -522,7 +528,6 @@ public static Structures.Result<IMathAtom> Table( string environment, List<List<
} else {
return table;
}
case null:
case "array":
table.InterRowAdditionalSpacing = 1;
for (int i = 0; i < table.NColumns; i++) {
Expand Down