Questions tagged [tabular]

Tabular indicates a display format that mimics a table entity.

A tabular format is something which mimics the appearance of a table entity.
All the data are shown in rows each of which is made of columns (or fields).

1367 questions
112
votes
8 answers

Output in a table format in Java's System.out

I'm getting results from a database and want to output the data as a table in Java's standard output I've tried using \t but the first column I want is very variable in length. Is there a way to display this in a nice table like output?
Chris
  • 3,036
  • 5
  • 36
  • 53
97
votes
13 answers

How can I pretty-print ASCII tables with Python?

I'm looking for a way to pretty-print tables like this: ======================= | column 1 | column 2 | ======================= | value1 | value2 | | value3 | value4 | ======================= I've found the asciitable library but it doesn't…
kdt
  • 27,905
  • 33
  • 92
  • 139
82
votes
19 answers

Parsing PDF files (especially with tables) with PDFBox

I need to parse a PDF file which contains tabular data. I'm using PDFBox to extract the file text to parse the result (String) later. The problem is that the text extraction doesn't work as I expected for tabular data. For example, I have a file…
Matheus Moreira
  • 2,338
  • 4
  • 24
  • 31
76
votes
3 answers

How to center cell contents of a LaTeX table whose columns have fixed widths?

Consider the following piece of LaTeX code: \begin{tabular}{p{1in}p{1in}} A & B\\ C & D\\ \end{tabular} How can I make the contents of each cell aligned in the center of the cell rather than the left? Note that I want to make sure that the widths…
reprogrammer
  • 14,298
  • 16
  • 57
  • 93
63
votes
4 answers

How to code tables with multi-line cells

I am trying to write a short paper with LaTeX and need to add a table with 3 columns. +-------------+-----------------+--------------------------------------+ | AAAAAAAAAA | BBBBBBBBBBBBBBB | Betty Botter Bought a Bit of Butter | | | …
lexu
  • 8,766
  • 5
  • 45
  • 63
62
votes
3 answers

LaTeX table too wide. How to make it fit?

I just started to learn latex and now I'm trying to create a table. This is my code: \begin{table} \caption{Top Scorers} \begin{tabular}{ l l } \hline \bf Goals & \bf Players\\ \hline 4 & First Last, First Last, First Last, First…
Erik B
  • 40,889
  • 25
  • 119
  • 135
47
votes
4 answers

How to dump an output from SQL Server Profiler 2008 to a CSV-like file

I am debugging stored procedures, and right now I am interested in what ran in what order and which which parameters as opposed to how fast things ran and what may sneak in between and cause a slowdown. So, I captured a couple of minutes worth of…
Hamish Grubijan
  • 10,562
  • 23
  • 99
  • 147
41
votes
5 answers

Latex: how to break the line in multirow inside the tabular

I cannot find out how to break the line inside the multirow in tabular. In my table, a cell should be two rows wide and should have a linebreak to keep the text overlapping the other cells'. Any suggestions? Sample of code: \begin{center} …
kokosing
  • 5,251
  • 5
  • 37
  • 50
39
votes
3 answers

Escape pipe-character in org-mode

I've got a table in Emacs org-mode, and the contents are regular expressions. I can't seem to figure out how to escape a literal pipe-character (|) that's part of a regex though, so it's interpreted as a table-cell separator. Could someone point…
Ken Williams
  • 22,756
  • 10
  • 85
  • 147
38
votes
3 answers

BeautifulSoup: Get the contents of a specific table

My local airport disgracefully blocks users without IE, and looks awful. I want to write a Python scripts that would get the contents of the Arrival and Departures pages every few minutes, and show them in a more readable manner. My tools of choice…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
34
votes
5 answers

How to right-align columns content in reStructuredText simple tables?

I'm editing the documentation for a project of mine using Sphinx, which in turn uses reStructuredText as markup language. I have a simple table (as opposed to grid table) in which the rightmost column reports contains numbers that I would like to…
mac
  • 42,153
  • 26
  • 121
  • 131
30
votes
2 answers

Paste multiple lines inside tags as separate line each - Sublime text

I have to set a list of title/authors item inside an html page, with each title/author line inside a
  • like this:
    • title name - author name
    • title name - author name
    • title name - author…
  • Gruber
    • 2,196
    • 5
    • 28
    • 50
    29
    votes
    2 answers

    Latex table multiple row and multiple column

    I'm trying to create a table in Latex but without success. I tried different solutions but no one solves my problem. I would like create a table like the picture below: Can anyone show how to do this in Latex please?
    Stefano C.
    • 1,033
    • 3
    • 13
    • 17
    26
    votes
    0 answers

    rmarkdown using kable with list of data.tables loses table formatting

    I have a rmarkdown document where I want to use a list of data.tables and include them in a PDF/HTML/MS Word document. Each component of the list contains one data.table. What I'm trying to achieve is to use kable to add all tables in a document…
    panman
    • 1,179
    • 1
    • 13
    • 33
    26
    votes
    1 answer

    LaTeX, How to fit a large table in a page

    The following LaTeX code generate a table but it is contain small font size and it does not fit page: \documentclass{article} \usepackage{tabularx} % in the preamble \usepackage{graphicx} \begin{document} \begin{table}[] \centering …
    A Alnafessah
    • 395
    • 1
    • 3
    • 9
    1
    2 3
    91 92