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

  • Can you give us an example?
    – Tyler
    Dec 17 '15 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. Dec 17 '15 at 19:50
  • @NicolasScottoDiPerto I replaced it with a cropped version for you. Dec 17 '15 at 20:27
  • @NicolasScottoDiPerto Feel free to revert my edits if they don't look right. Dec 17 '15 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
    Dec 18 '15 at 4:06

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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