Skip to content

Commit

Permalink
adding the CellsToTeX package, and a basic pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Nov 16, 2022
1 parent 4be98fc commit 3dd9971
Show file tree
Hide file tree
Showing 5 changed files with 4,151 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mathics/builtin/box/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ def to_boxes(x, evaluation: Evaluation, options={}) -> BoxElementMixin:
return x_boxed
if isinstance(x_boxed, Atom):
return to_boxes(x_boxed, evaluation, options)
return to_boxes(Expression(SymbolFullForm, x), evaluation, options)

return RowBox(
String("BoxError: <<"),
to_boxes(Expression(SymbolFullForm, x), evaluation, options),
String(">>"),
)


class BoxData(Builtin):
Expand Down
Loading

0 comments on commit 3dd9971

Please sign in to comment.