# Tag Info

## New answers tagged tables

0

Try the following: \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{siunitx} \begin{document} \begin{table}[h] \centering \begin{tabular}{c| *{4}{S[table-auto-round, table-format=-1.2]} } T(sample size) & {$\theta_0$} &{$\theta_1$} & {$\theta_2$} & {$\theta_3$}\\\hline 200 ...

0

This solution uses \settowidth. I added a \rule at the center for comparison. \documentclass{beamer} \usetheme{default} \newlength{\tempdima} \newlength{\tempdimb} \begin{document} \begin{frame} \begin{center} \settowidth{\tempdima}{\fbox{one}}% \settowidth{\tempdimb}{\fbox{three four five}}% \rule{1pt}{\baselineskip}\\ \hspace{\dimexpr ...

3

Since Zarko said so: \begin{table}[p] \input{table1} \end{table} \clearpage \begin{table}[p] \input{table2} \end{table} :)

2

If you want your text readable (which you do 111% in a test), you really don't want to shrink it. Therefore you have to split it into two pages. Together with de-tabularizing your list, the code could look like this: \documentclass[a4paper,12pt]{article} \usepackage[british]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{geometry} ...

1

Here's an alternative answer, which differs from my earlier answer mainly by the use of a tabular environment. To ensure that the tabular material and the header material fit on a single page while using a \large relative font size, it will in general be necessary to decrease the widths of the vertical margins relative to what you've specified in the posting ...

2

I can understand your reluctance to split tabular material across pages. However, if the choice is between (a) allowing a page break in the middle of the tabular material and (b) shrinking the tabular material to make it fit in the available space on a page (and risking the material becoming tiny and virtually unreadable!), the former choice may well be far ...

2

\documentclass{scrreprt} \usepackage{extsizes}%пакет для 14 шрифта \usepackage[utf8]{inputenc}%кодировка \usepackage[russian]{babel}%кириллица \usepackage[T2A]{fontenc}%кодировка теха \usepackage{multirow}%объединение строки \usepackage{array} \usepackage{ragged2e} \newcolumntype{C}[1]{>{\hspace{0pt}\centering\arraybackslash}m{#1}} \begin{document} ...

2

Is it something like this you want? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage[T2A]{fontenc} \usepackage{fourier, erewhon} \usepackage[left=2cm,right=3cm,top=2cm,bottom=2cm, showframe]{geometry} \usepackage{tabularx} \sloppy \parindent=1,5cm \usepackage{amsmath} \begin{document} \begin{table} ...

0

With \overbrace in math mode, you can add a big brace with some text or math symbols. \documentclass{article} \usepackage{graphicx,amsmath} \usepackage{multirow,array} \begin{document} \begin{table}[ht] \large \centering \renewcommand{\arraystretch}{1.5} \begin{tabular}{c|c||*{8}{c|}} \multicolumn{2}{c}{} & ...

1

Here is a solution with tabularx and hhline, to improve the look of your word table. I customised the spacings in the itemize environment with the enumitem package: \documentclass{article} \usepackage[utf8]{inputenc} % \usepackage{fourier} \usepackage{tabularx,array, rotating, caption, hhline} \usepackage{enumitem} ...

1

You have to use a p{<length>} spec inside the argument of \multicolumn if you want line breaks. I suggest you use tabularx right away. Reg. making "Option 1" and "Option 2" oriented vertically: It is ugly and hard to read. My recommendation is just don't do it. Other thing you probably want is to reduce the vertical spacing around itemize. Code: ...

1

\documentclass{article} \usepackage{graphicx} \usepackage{multirow} \begin{document} \begin{table}[ht] \large \centering \begin{tabular}{c|c||*{8}{c|}} \multicolumn{2}{c}{} & \multicolumn{8}{c}{Area Range} \tabularnewline \cline{2-10} \multirow{9}*{\rotatebox{90}{No. of tasks}} & & \bfseries 0 & \bfseries 1 & ...

0

use \midaligned command in front of Narrower Text and in front of \bTable and compile you will get

2

The TABLE environment starts a \vbox, so if it occurs at the beginning of a sentence, it switches to vertical mode. To prevent that, add a \dontleavehmode. \starttext Normal text \setupnarrower[left=2cm] \startnarrower[left] Narrower text \blank[small] \dontleavehmode \bTABLE \bTR \bTC Misbehaving ...

1

Er who knows what tabulary is doing:-) Something in its setup is confusing the nested cases construct. You could try complaining to the package author and it might get resolved, but if you just want to get on with the document and and make the warning go away, I'd avoid the nesting: \documentclass{article} \usepackage{amsmath} \usepackage{tabulary} ...

3

It is a bit tricky as you want to start the grey row in the second column. I just made the cell white afterwards. I hope, the code is self explanatory. % arara: pdflatex \documentclass{article} \usepackage{graphicx} \usepackage{booktabs} \usepackage{lscape} \usepackage{multirow} \usepackage[table]{xcolor} \begin{document} \begin{landscape} ...

6

In my opinion, you should (a) get rid of all vertical lines (trust me, they won't be missed...) and (b) omit the horizontal lines as well since they are redundant, given that you're using colors (or, rather, shades of gray) to set off the header row. What I would do, in contrast, is split the information in the header row into two separate rows, to the ...

0

Please try to trim examples to just the required packages, in this case your example just needs \documentclass[12pt]{article} \usepackage{tabularx} % provides a column type called "X" that should satisfy your professed need to have several equal-width columns \usepackage{booktabs} \usepackage{threeparttable} %\usdate \usepackage{dcolumn} ...

1

Use the \thead command from makecell. Ir allows linebreaks and a common formatting of column heads. dded an \extrarowheight so the vertical spacing doesn't look so tight: \documentclass{article} \usepackage[showframe, nomarginpar]{geometry} \usepackage{array} \usepackage[labelfont=bf]{caption} \captionsetup{format=plain,font=footnotesize} ...

0

The quickest fix is to replace >{\centering}X in the final column with >{\centering\arraybackslash}X. You may also want to consider generating better-spaced horizontal lines using \midrule and \cmidrule (provided by the booktabs package) instead of \hline and \cline. \documentclass{article} \usepackage{tabularx,booktabs,caption} ...

3

(This answer works with the llncs.cls document class file extracted from llncs2e.zip, which I downloaded from http://www.springer.com/computer/lncs/lncs+authors?SGWID=0-40209-0-0-0.) I suggest you (a) switch to a tabularx environment (with width set to \textwidth) and (b) use a centered version of the X column type instead of a fixed-width p column. ...

1

Many are likely to suggest that you should follow the advice from the booktabs package and dispense with the vertical rules and most of the horizontal rules, which aren´t doing much more than distracting the eyes in so simple a table. Note also how the spacing between rows tends to be better by default as well (especially around the \hlines). ...

1

The easiest option is to split the heading into two rows with no line between them: \documentclass{article} \begin{document} \begin{center} \begin{tabular}{ |c|c|c| } \hline $(x)_2 = n$ & $(x0)_2 = 2n$ & $(x1)_2 = 2n + 1$ \\ $n\%5$ & $2n\%5$ & $(2n+1)\%5$ \\ \hline 0 & 0 & 1 \\ 1 & 2 & 3 \\ 2 & 4 & 0 \\ ...

2

Two solutions based on tabularx. The second uses the booktabs package, with only $3$ horizontal rules: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[showframe]{geometry} \usepackage{array, caption, tabularx, ragged2e, booktabs} \begin{document}\ \noindent\setlength\tabcolsep{4pt}% ...

2

I suggest you (a) use a tabularx environment -- with width set to \textwidth -- instead of a tabular environment, (b) use a raggedright version of the X column type for columns 3 thru 6, and (c) reduce the amount of intercolumn whitespace. You may also want to think about removing all vertical bars and using fewer (but well-spaced) horizontal bars in order ...

2

Short of totally reformulating your table, there are several possible steps that can help, as shown below: 1) You can reduce the font size of the table 2) You can reduce the blank padding of each column by respecifying the length \tabcolsep. 3) If symmetric margin overrun is permitted (it is in my organization), you can place the tabular into a \makebox ...

0

You can use minipage for cells in header to limit their width \documentclass[a4paper]{article} \usepackage{booktabs} \usepackage{rotating} \usepackage{textcomp} \newenvironment{Turn}{\begin{turn}{90}\begin{minipage}{3cm}\raggedright} {\end{minipage}\end{turn}} \begin{document} \begin{table} \begin{tabular}{ccccccccc} \toprule & ...

2

Not knowing the document class or much of anything else, this could be anything from a starting point to a complete solution: \documentclass{report} \usepackage[nomarkers,nolists]{endfloat} \renewcommand{\efloatseparator}{\mbox{}} % allows tables to share a page \begin{document} \chapter{A chapter} As shown in Tables~\ref{tab:one} and \ref{tab:another}, ...

0

If you can fit the longest equation into the column, then this will work. \documentclass[twocolumn]{article} \usepackage[a4paper,margin=1cm]{geometry} \usepackage{mathtools} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{table}[h] \renewcommand{\arraystretch}{1.3} \caption{example} \label{an example} \centering ...

0

Assuming, that you use standard article class, you can fit your set of equations in one column width if you broke the longest equation into two line: \documentclass[twocolumn]{article} \usepackage{mathtools} \usepackage{lipsum} \begin{document} \lipsum[2] \begin{table}[h] \renewcommand{\arraystretch}{1.3} \caption{example} \label{an ...

1

This is more comment than answer. In your MWE you have several problems: float inside minipages: this should cause errors table are too wide to fit in text width in the portrait page orientation (Even if you rotate column heads for 90 and reduce font size to tiny one table pair is still wider than half of text width. Consequently tabulars will overlap) ...

1

You can set the column names yourself: \documentclass{article} \usepackage{pgfplotstable} % recommended: \usepackage{booktabs} \usepackage{array} \usepackage{colortbl} \begin{document} \pgfplotstabletypeset[ string type, columns={up_gene,up_chr}, columns/up_gene/.style={column name=up\_gene}, columns/up_chr/.style={column name=up\_chr}, every ...

0

You can use the resizebox command from the graphicx package: \resizebox{\linewidth}{!}{% \pgfplotstabletypeset[ ... } Here's complete code: % arara: pdflatex % !arara: indent: {overwrite: yes} \documentclass{article} \usepackage{pgfplotstable} \usepackage{booktabs} \usepackage[showframe=false,right=7cm]{geometry} \usepackage{lipsum} ...

1

Since there's no setup or clue which class is uses, I provide a generic solution with tocloft and the \cfttabpresnum command (which uses the space before the table number is typeset in the LoT) as well as increasing the number width by adding some value to \cfttabpresnumwidth. \documentclass{book} \usepackage{longtable} \usepackage{tocloft} ...

4

On the way, how you doing, no. tabular is in "text" mode. You need to change cells in "math" by use of $...$. tabular should have defined column types, for example \begin{tabular}{cc} including multiline equations is tricky. For example, instead \begin{align*} ... end{align} you should write something like \begin{aligned} ...\end{aligned} from ...

2

Not nice, but it works: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \tikzset{every picture/.append style = remember picture} \newcommand{\myanchor}[1]{\tikz \node[coordinate] (#1) {};} \usepackage{array} % used for setting extrarowheight \begin{document} \setlength\extrarowheight{1.5pt} % change to whatever font depth is ...

1

Working from one of your attempts, and adding the following: bm package for a bolder < symbol conditionals for both p<0.01 and p<0.05 gives a final document of: \documentclass{article} \usepackage{pgfplotstable,tabularx,booktabs,bm} \begin{document} \noindent% \pgfplotstabletypeset[columns={var,p}, every head row/.style={before ...

4


3

Perhaps a total different typesetting would be better, but I kept it here, only removing the \parbox[c]{...} which is rather opposing the desired effect. Use p{6.75cm} as a column type, this is aligned at the top by default. The \hline is just for showing the alignment \documentclass[a4paper,10pt,fleqn]{article} \usepackage[polutonikogreek, latin, ...

4

I would like to suggest that you not use a tabular-like environment. Instead, consider using side-by-side minipage environments with the [t] ("top") alignment specifier. %% Commented out the packages that aren't needed for this example \documentclass[a4paper,10pt,fleqn]{article} \usepackage[polutonikogreek, latin, english, french, ngerman]{babel} ...

3

Use the tabularx environment instead of just the tabular to benefit from all \textwidth while having equal-width columns at the same time. \documentclass{article} \usepackage[margin=2cm]{geometry} \usepackage{graphicx,xcolor} \usepackage{colortbl,tabularx} \begin{document} \begin{table}[h] \resizebox{\textwidth}{!}{% ...

0

You could try to import your table here and copy-paste it into a spreadsheet applications, sort it and then do it all in reverse.

4

I propose two layouts with tabularx, with vertical rules and without. I loaded booktabs, andcellspace` to give some vertical padding to the rows: \documentclass{article} \usepackage[letterpaper, portrait, margin=2cm]{geometry} \usepackage[english]{babel} \usepackage[protrusion=true,expansion=true]{microtype} \usepackage{amsmath,amsfonts,amsthm,amssymb} ...

Top 50 recent answers are included