I would like to use links in a table to explain certain entries more in depth.

| Some | random | table | entries |
| More | data   | and   | LINK      |  <- misaligned

* LINK target with 
 - more info about this line
 - explained in more details

But when I use links inside of a table, the fontsizes dont match and the table misaligns. Characters are either org-table or org-link formatted and both faces have different font sizes.

How could I solve this?

I don't see a way to define a special org-link face inside of org-table.

  • Can't you use a fixed-width font? This is the only completely reliable solution that I know of. – NickD Sep 1 '20 at 15:14
  • Hi Nick, I do use a fixted-width font, but org-table and org-link have different font sizes in their face settings. I tweaked the link face to fit to the regualr text. The table face is not modified atm. – breathe_in_breathe_out Sep 1 '20 at 16:45
  • By default, these faces inherit everything and just modify some attributes (foreground color, underline etc). So they should not have different font size: you can verify with emacs -q - does the problem still exist? If not, then find the place where you customized them and get rid of the font size change. – NickD Sep 1 '20 at 17:04

Try valign. This package solves several aligning problems in org-mode, with one issue that currently incompatible with org-indent-mode.

  • Thank you, this looks promising! Will try and accept if it works. – breathe_in_breathe_out Sep 1 '20 at 12:05
  • It works on small tables, but I was not able to switch cells with TAB anymore. For my larger table it took ages, so I had to kill emacs after 5 mins of no response. It's a good aproach, but maybe there is something more "native" which works with larger tables, too. – breathe_in_breathe_out Sep 1 '20 at 14:03

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.