Create latex tables with merged cells from org mode in Emacs

  1. Create a built-in table. The goal is to merge cells header3 and heade4
|---------+---------+---------+--------|
| header1 | header2 | header3 | heade4 |
|---------+---------+---------+--------|
| cell1   | cell2   | cell3   | cell4  |
|---------+---------+---------+--------|
| cell5   | cell6   | cell7   | cell8  |
|---------+---------+---------+--------|

If you do not remember the commands, use the menu window

  1. Convert the built-in table into table mode by replacing manually | with + at the corners of the cells.
+---------+---------+---------+--------+
| header1 | header2 | header3 | heade4 |
+---------+---------+---------+--------+
| cell1   | cell2   | cell3   | cell4  |
+---------+---------+---------+--------+
| cell5   | cell6   | cell7   | cell8  |
+---------+---------+---------+--------+

  1. Type CTRL + c + '

  1. In the table editor, got to cell heade4 and run span a cell to left from menu window


  1. Type 'CTRL + c + ' to close the editor and go back to the example.org file

  1. Type 'CTRL + c CTRL + e ' to open org-export-dispatch menu (also available with M-x).

  1. Press the key 'l' (L lowercase) twice to import table to latex. It generates the file example.tex. It is the same filename but with .tex extension

  2. Open the file example.tex.

Images
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_21-36-34.png?itok=9dOCeHt_
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_21-48-21.png?itok=nUeSyQQ4
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_21-50-50.png?itok=Lcx3xp7A
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_21-58-28.png?itok=37YNO5cH
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_22-00-03.png?itok=locEXqnC
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_22-09-13.png?itok=s01ieTeB
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_22-20-52.png?itok=vuf6Nc8p
/sites/default/files/styles/large/public/2022-11/Screenshot_2022-11-03_22-27-23.png?itok=4BuCQFU8