fix(snip): use centered dots in matrices

This commit is contained in:
arne314
2025-04-25 19:18:13 +02:00
parent 8e15b84bc5
commit 6cec2691e4

View File

@@ -61,7 +61,7 @@ local lmat = function(_, sp)
ins_indx = ins_indx + 1 ins_indx = ins_indx + 1
for k = 2, cols do for k = 2, cols do
table.insert(nodes, t(', ')) table.insert(nodes, t(', '))
if k == cols then table.insert(nodes, t('dots, ')) end if k == cols then table.insert(nodes, t('dots.c, ')) end
if j == k then if j == k then
table.insert(nodes, r(ins_indx, tostring(j) .. 'x' .. tostring(k), i(1, '1'))) table.insert(nodes, r(ins_indx, tostring(j) .. 'x' .. tostring(k), i(1, '1')))
else else