You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has never been an issue for me since formatting is easily added after copying latex code to a document but that approach is not automated and does not work with for example Weave.jl. It would, therefore, be nice to have better customizability of final table formatting.
The text was updated successfully, but these errors were encountered:
Hello, I would like to know how to remove $..$ surrounding tabular elements that are not to be expressed in LaTeX math mode. I have tables that use Strings as descriptions and then separate numbers. When I "latexify( )" my matrix of items all elements get $..$ surrounding them.
How can I suppress this $ $ for certain tabular elements?
Hi @number-crunch,
I have not implemented any specific support for this but it is still possible to achieve.
By passing the keyword argument latex = false, you stop surrounding the elements with $$. From there, you can add formatting using the fmt = keyword. fmt could be just about any function that takes a single input and returns a single output.
If you, for example, want to keep latexification of only numbers, you could do
using Latexify
a = ["hello""hi"; 1.24.1243534e4]
latexify(a; env=:table, latex=false, fmt = x -> x isa Number ?latexify(x) : x)
This could become a bit verbose, but it does give you a lot of freedom.
This has never been an issue for me since formatting is easily added after copying latex code to a document but that approach is not automated and does not work with for example Weave.jl. It would, therefore, be nice to have better customizability of final table formatting.
The text was updated successfully, but these errors were encountered: