# Tag Info

8

table environments cannot break across pages. Your table (which consists of a caption and a tabular environment, with the right-hand column "only" 7cm wide, forcing quite a few of the lines to "wrap") is too tall to fit on the page that already contains a section header and two paragraphs. The best LaTeX can do, then, is to place the table on a page all by ...

7

I propose to use the ltablex package, which combines the possibilities of tabularx and longtable. In short the table can break across pages if necessary. I supposed the \newpage commands were attempts to have the table appear were you wanted, so I took the liberty to rmove them. Also I replaced your programmers' quotes with typographical quotes. Hopefully ...

5

I would set the table differently: Only few horizontal lines (looks more professional). Package booktabs helps. Numbers aligned at the decimal dot, see package siunitx. Package caption fixes the vertical spacing around table captions above the table. The multi-line cells are generated via inner tabulars, the optional parameter controls the vertical ...

5


4

Here is a datatool implementation that reads a CSV table, sorts it and constructs the visual representation via a tabularx: \documentclass{article} \usepackage{datatool,filecontents,tabularx,booktabs} \begin{document} \begin{filecontents*}{term-log.csv} %termID , description , logten GO:0000502, proteasome complex ...

4

I copied the \mergesort macro from OPmac macro package for sorting. You can try this: \documentclass{article} \long\def\addto#1#2{\expandafter\def\expandafter#1\expandafter{#1#2}} \def\sdef#1{\expandafter\def\csname#1\endcsname} \def\removeiilist{\gdef\iilist{}} \def\mergesort #1#2,#3{% by Miroslav Olsak \ifx,#1% % ...

4

Like this? \documentclass{article} \usepackage[table]{xcolor} \begin{document} \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{l|l|l|l|l|l|l|} \cline{2-7} & \multicolumn{6}{l|}{\cellcolor[HTML]{6195C9}Something} ...

3

It seems a slightly odd request but you can make all the spaces 2\tabcolsep by \documentclass[a4paper, 11pt]{article} \usepackage{tabu} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \definecolor{tableHeader}{RGB}{127, 12, 0} \definecolor{tableLineOne}{RGB}{245, 245, 245} \definecolor{tableLineTwo}{RGB}{224, 224, 224} \begin{document} ...

3

I use Ben Jann's estout suite of commands: http://repec.org/bocode/e/estout/ . Very well documented, and very flexible. It has commands that makes LaTeX tables from Stata output (not only regression results, also matrices, summary stats etc ), but it allows you to append/prepend text to lines (eg \addlinespace or cmidrule from the booktabs package), which ...

3

Put the caption inside threeparttable \documentclass[a4paper,11pt,oneside,openany,showtrims,strict,extrafontsizes]{memoir} \usepackage{tabulary,lipsum,threeparttable} \usepackage[font=small,labelfont=sc]{caption} \begin{document} \tableofcontents \newpage \listoffigures \chapter{Chapter one starts here} \section{Heading} \lipsum[4] \begin{table}[htb] ...

3

One option is to use the caption package to define a ruled style (adjust the settings to suit): \documentclass{article} \usepackage{caption} \DeclareCaptionFormat{ruled}{ #1#2#3\par\vspace{-.65\baselineskip}\hrulefill\par\vspace{-.83\baselineskip}\hrulefill} \captionsetup[table]{format=ruled} \begin{document} \begin{table} \centering \caption{Title} ...

3

I suggest you not create a lot of extra vertical space via \\[5ex] and \\[2ex]. Instead, simply reset the parameter \arraystretch to something like 1.8. \documentclass{article} \usepackage[skip=0.5\baselineskip]{caption} \usepackage{array} \newcolumntype{C}[1]{>{\centering\arraybackslash\hspace{0pt}}m{#1}} \begin{document} \begin{table}[h] ...

2

The top element of the table is not the first row, but the line above it. Usually a tabular row has a strut with .7\baselineskip as height and .3\baselineskip below (multiplied with \arraystretch). Since digits usually do not have descenders, the following example aligns the table at the bottom line, but moves it down 2/3 of the descender (.2\baselineskip) ...

2

I don't recommend vertical lines in tables, but here is a solution to this problem... Single cells or a cluster of single cells can be obtained with \multicolumn and \cline in the right manner, of course. Vanished cells are \multicolumn{number of cells}{l}{}, omitting the | here. \documentclass{article} \begin{document} \huge \begin{tabular}{|*{8}{l|}} ...

2

It doesn't work to use tabularx with no X columns, but I wouldn't use tabularx here. This is still a bit wide but not knowing the language I can't really abbreviate any more. \documentclass[fontsize=12pt,paper=letter,headings=small,bibliography=totoc,DIV=12,headsepline=true,titlepage=on]{scrartcl} \usepackage{soul} ...

2

You should consider not changing any of the layout when submitting a paper. If tables should float to the top based on the conference paper class, then so-be-it. However, you can force the floating behaviour of the table environment to stop based on the following two approaches: Use the float package and the accompanying [H] float specifier. ...

2

You will have to wrap the relevant number into curly braces if it is not single digit. So \documentclass{article} \begin{document} \begin{tabular}{*{12}{l}} 1&2&3&4&5&6&7&8&9&10&11&12\\ \end{tabular} \end{document} should cut it.

2

While someone else provides a better answer, you can always use a tikzmark \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document} \begin{tabular}{lcr} a & a & a \\ \tikzmark{start}b & b & b\tikzmark{end} \\ c & c & c \\ \end{tabular} \tikz[remember picture] \draw[overlay] ([yshift=.35em]pic cs:start) ...

1

Something like this might be workable. There is a slight difference in approach from the cited answer of the OP. That is, a phantom column must be added at the end of the row (the added space of it is compensated for with a @{\hspace{-\tabcolsep}} as is shown in my MWE with an \fbox around the tabular). An alternative to the phantom column is to add ...

1

A solution with pst-node. I used the \psDefBoxNodes, which puts its contents in a box and defines a series of nodes in that box (12 nodes in all), then I connected a node from the first element in the row to a node from the last element in the row: \documentclass[x11names]{article} \usepackage{pst-node} \usepackage{auto-pst-pdf} \begin{document} ...

1

You can hide some columns on one page and other on the other page: \documentclass{book} \usepackage{array} \newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}} \begin{document} \begin{table}\centering \caption{Table part 1} \newcolumntype{\somecolumns}{llllllHHHHH} \begin{tabular}{\somecolumns} & 1 & 2 & 3 & 4 & 5 & 6 ...

1

An implementation with expl3: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentEnvironment{itabular}{O{c}m}% 'implicit' tabular {% 1. change the meaning of \thead, \tbody, \tr and \td % actually \thead and \tbody are the same, while \tr and \td are just markers \cs_set_eq:NN \thead \itabular_tbody:n \cs_set_eq:NN \tbody ...

1

I was much too slow but just in order to show siunitx \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{siunitx} \sisetup{locale=DE,group-separator=.,group-four-digits} \usepackage{array} \begin{document} \begin{tabular}{|S[table-format=2.0]|S[table-format=5.2]|S[table-format=6.2]|S[table-format=5.2]|S[table-format=5.2]|} % put the € ...

1


1

You can do something like this: \documentclass{article} \newcommand\textalign[2][]{% \ifx#1l\relax \makebox[0pt][l]{#2}% \else \ifx#1r\relax \makebox[0pt][r]{#2}% \else \ifx#1c\relax \makebox[0pt][c]{#2}% \fi\fi\fi } \begin{document} \noindent \hrulefill \begin{tabbing} \=\hspace*{.5\linewidth}\=\hspace{.5\linewidth}\=\kill \\ ...

1

The standard way is dividing \footnote{} into 2 parts: putting \footnotemark inside a table and \footnotetext{} outside it.

Only top voted, non community-wiki answers of a minimum length are eligible