Questions tagged [table]

Question about making, using, and editing tables inside of Emacs. This tag is meant mainly for table.el tables as described in the Emacs manual, but it should also be used for generic table questions. If you have a question about tables in Org mode, please use the "org-table" tag instead.

This tag is meant for questions about textual tables in Emacs. The tables that are subsumed by this tag are described in the Emacs manual in the section entitled Editing text-based tables, but the tag can also be used for generic table questions.

Note that Org mode provides a different tables facility. For Org mode tables, please use the org-table tag.

27 questions
43
votes
1 answer

Multicolumn cells in org-mode tables

Is it possible to merge two or more cells in an org-mode table like when using \multicolumn{}{}{} or \multirow{}{}{} in LaTeX? Something like this does not work: |------------+-----------+----------+----------+-------------| | | …
Tymric
  • 762
  • 1
  • 6
  • 15
34
votes
3 answers

Wrap cell content in an org mode table

I have a table like this: | Verse No | Verse | | | <10> | | 1 | line1 li=> | | 2 | line2 li=> | I would like to view it as | Verse No | Verse | | | <10> | | 1 | line1 line | | |…
user2740
  • 539
  • 1
  • 5
  • 10
17
votes
1 answer

How to view and edit large delimiter separated value files?

I have been using csv-mode to modify small to medium sized CSV files, but recently I have been working with large files containing more than 40,812 entries. csv-mode struggles to align and navigate the tables, and is too slow to be usable as is. In…
holocronweaver
  • 1,319
  • 10
  • 22
9
votes
1 answer

Align vertical columns of numbers on the decimal point

I wrote this post in Emacs. In order to make the tables look nice, I decided to adjust the spacing so that decimals line up neatly. The original format from the database looked like this: emacs 11505 227 3.6 3.3 …
7
votes
0 answers

latex inside table using table.el in org mode

I am trying to achieve multicolumn cells in org-mode tables like in Multicolumn cells in org-mode tables, but with Latex inside the cells. * Minimal Example +------------+-----------+--------------+ | | \pi | …
user19456
  • 71
  • 1
7
votes
2 answers

Setting (or *simple* mode) for editing tab-separated columns

I'm looking for either some built-in setting or a simple mode for viewing and editing tab-separated columns (TSV files). All I need is for the TSV text to be displayed in a way that respects the vertical alignment of the columns, and the horizontal…
kjo
  • 3,145
  • 14
  • 42
6
votes
1 answer

Have table.el insert space after vertical separator for reStructuredText

I am using Emacs's table.el mode to fill a lot of tables in rst documents. table.el is really fine to do the job, but it lacks the possibility to have one space between vertical separator and cell content. That is, by default, it fills tables like…
calve
  • 61
  • 2
5
votes
2 answers

Correct markdown-format tables with orgtbl-mode?

I'm just learning about org-mode, and of course blown away by its sheer level of usability. I of course want to use it everywhere, so I want to create tables with it. Including tables in markdown-mode. The problem I'm running into is that the…
Trevoke
  • 2,375
  • 21
  • 34
5
votes
1 answer

How to get align-regexp to help line up Markdown tables properly?

I am trying to line up a text table using align-regexp. A table, before alignment, looks like this: | Alpha | Bravo | Charlie | |-------|-------|---------| | Delta | Echo | Foxtrot | | Golf | Hotel | India | and after alignment should look like…
rityzmon
  • 181
  • 3
5
votes
1 answer

In table-mode, how do I change the face used for cells?

If I make a table (with M-x table-insert), the background color is a dark blue, and the text color is a light grey. I'd like to make the face different, but I'm not sure what face I need to change. The emacs documentation for tables doesn't say what…
zck
  • 8,984
  • 2
  • 31
  • 65
4
votes
0 answers

truncate-string-to-width doesn't pad/print the string, as documented

I am referring the documentation for truncate-string-to-width from here. It says, (truncate-string-to-width "\tab\t" 12 4) will output, ab But what i get in my machine (emacs versioned 25.1.50.1) is one tab character with no alphabets printed.…
Madhavan
  • 1,957
  • 12
  • 28
3
votes
2 answers

Emacs Lisp to view text file like a table

I'd like to write a mode, or at least some Lisp functions, to view a tab-separated file like a table. What I mean is lines like this: foo\t123\tbar yabba dabba\t12345\treally long field here Should display something like: | foo | 123 | bar…
Rob N
  • 547
  • 2
  • 12
3
votes
0 answers

How to align latex tables when using macro folding

I have a latex table which contains some long commands like includegraphics or href which makes the table very nasty to read. To get a better view I fold all macros in the table and want to use align-current. However this doesn't work as expected…
student
  • 1,007
  • 9
  • 29
2
votes
1 answer

Calculating overtime in org tables

I enter my daily work hours in a spreadsheet. My daily target working time is 8 hours. In the first line my overtime is calculated with this: | Overtime | 2.5 | |----------+------| | Day 1 | 8 | | Day 2 | 10.5 | | Day 3 | 8 | | Day 4…
ontheair
  • 25
  • 2
2
votes
3 answers

How can I ask a user to choose from a list of options, while showing her a long list with extra metadata?

I'm writing a package which connects to a remote server for a game. I want to show the list of players, along with their score, and let the player choose one of the players. I thought of using completing-read, but I have no idea how to show a…
Parham Doustdar
  • 275
  • 2
  • 10
1
2