1

The documentation suggests that column groups syntax is a general way to add vertical lines in a table.

For instance, the following org-mode's table snippet

|--------+----------|
|        | Column 1 |
|--------+----------|
| /      | <>       |
| Line 1 |          |
|--------+----------|

is rendered in pdf as

enter image description here

and in ASCII as

--------+----------+
        | Column 1 |
--------+----------+
 Line 1 |          |
--------+----------+

(Apparently, this doesn't work for HTML as the boundaries are controlled by CSS).

My question is: how to use column groups to obtain the left-most vertical line?

The idea is to use one syntax to export the table with specific vertical lines in different formats.

I'm aware of the alternative way to achieve it using #+ATTR_LaTeX: :align |c|c|, but it's specific to LaTeX.

2
  • I don't think there is a way to do it with column groups. What's wrong with the #+attr_latex approach?
    – NickD
    Aug 8 '20 at 2:42
  • 1
    @NickD I edited the question (in brief, #+attr_latex is not only cumbersome but also specific to LaTeX) and found the answer in passing. Aug 8 '20 at 19:07
0

This answer suggests adding one extra column to achieve what is required, i.e.

|---+--------+----------|
|   |        | Column 1 |
|---+--------+----------|
| / | <      | <>       |
|   | Line 1 |          |
|---+--------+----------|

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.