9

Org tables do a great job in aligning columns with plain text.

But the alignment is lost when math formulas (in LaTeX) in cells are replaced with their preview.

Is it possible to preview LaTeX in tables with good alignment?

Notice the right-most misaligned table border

7
  • Can you give us an example?
    – Tyler
    Commented Dec 17, 2015 at 19:43
  • off course, actually I'm trying to install a program to make screenshots on my arch... But it's smaller than other columns. Commented Dec 17, 2015 at 19:50
  • @NicolasScottoDiPerto I replaced it with a cropped version for you. Commented Dec 17, 2015 at 20:27
  • @NicolasScottoDiPerto Feel free to revert my edits if they don't look right. Commented Dec 17, 2015 at 20:31
  • The first thing I would try is pressing C-c C-c in a cell in the table. This should automatically align your tables. If that doesn't work with the previews, you might try M-x toggle-truncate-lines.
    – elethan
    Commented Dec 18, 2015 at 4:06

2 Answers 2

1

One partial fix would be to export the only the table to latex.

highlight the table -> C-e l L to get the org-table converted into latex. Then you can preview the latex table with C-c-x l.

Of course the idea would be to do it automatically but I don't know how costly it would be.

0

I found this: https://github.com/casouri/valign.

A discussion Here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.