szhorvat / MaTeX

LaTeX labels in Mathematica
http://szhorvat.net/mathematica/MaTeX
MIT License
375 stars 45 forks source link

Some outputs are clipped #22

Closed szhorvat closed 5 years ago

szhorvat commented 6 years ago

Some outputs are clipped.

MaTeX["\\vec{t}", Magnification -> 5]

image

Possible workaround:

Show[
 MaTeX["\\vec{t}", Magnification -> 5],
 PlotRangePadding -> {{0, 2}, {0, 0}}
]

image

The problem with this workaround is that it will make the output look smaller.

szhorvat commented 5 years ago

A more practical workaround is to add extra space in LaTeX directly.

MaTeX["\\vec{t}\;", Magnification -> 5]

image

szhorvat commented 5 years ago

This can't be fixed as MaTeX simply uses the bounding box communicated by LaTeX. MaTeX already adds a padding of 1 point, which takes care of most similar problems. When this is not sufficient, a manual workaround should be used.

szhorvat commented 5 years ago

Added this as a "possible issue" to the documentation.