# Tag Info

1


1

Some time ago I did it with a matrix. \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning, matrix} \begin{document} \begin{tikzpicture}[font=\sffamily\small, llista/.style={matrix of nodes, row sep =-\pgflinewidth, column sep=-\pgflinewidth, outer sep=0pt, nodes={draw=none} ...

2

Here is an alternative approach, using enumerate This is mainly because your table only consisted of two columns, where the first was just an increasing number, with two exceptions, the number 5 and 10. This reduces the amount of manual writing a lot and gives more flexibility, as you don't need to write all numbers manually, you simply change those that ...

2

This is a good case for a tabularx, I guess: % arara: pdflatex \documentclass{article} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{float} \usepackage{tabularx} \usepackage{caption} \usepackage{microtype} \usepackage{showframe} % just for demo, get rid of it. \begin{document} 11 Crude petroleum and natural gas; services incidental to ...

0

The way to centre cell contents in a Scolumn is to enclose it in brackets. I took the liberty to code an improved version of your table, using booktabs for the horizontal line, in order to have some vertical padding around it. Also, I defined the first column to have S type, to ensure the vertical centring of decimal dots (it would be lost if all elements ...

1

You could typeset the whole table with S column specifier provided by siunitx and specify the format for the numbers in the optional argument with table-format. \documentclass{article} \usepackage{siunitx,booktabs} \begin{document} \begin{center} \sisetup{table-number-alignment = center , output-decimal-marker = {,}} \begin{tabular}{% @{}S[...

1

Using dcolumn also you can adjust the alignment. Now you are using siunitx package. See below code: \documentclass{article} \usepackage{dcolumn} \newcolumntype{d}[1]{D{.}{.}{#1}} \begin{document} \begin{center} \begin{tabular}{cccd{3.0}} \multicolumn{1}{c}{$C$} & \multicolumn{1}{c}{$M_i$} & \multicolumn{1}{c}{$m$} & \multicolumn{1}{c}...

0

Just replace the S in your tabular definition with r to align the contents of this column to the right. \documentclass{article} \begin{document} \begin{center} \begin{tabular}{cccr} \multicolumn{1}{c}{$C$} & \multicolumn{1}{c}{$M_i$} & \multicolumn{1}{c}{$m$} & \multicolumn{1}{c}{$G'_i$} \\ \hline 28,2 & 2 & 21 & 80 ...

1

I know this question was asked and answered, however such a question is still relevant today and due to updates in the ctable package I thought I should add my contribution to this question for future visitors. From ctablev1.26 onwards there's an option footerwidth=.. where a width can be specified for the footer seperate to mincapwidth. I should add that ...

4

You can use the \belowbaseline[shift]{…} defined in stackengine: \documentclass[10pt]{amsart} \usepackage{adjustbox} \usepackage{mathtools} \usepackage{array} \usepackage{makecell} \usepackage{siunitx} \usepackage{stackengine} \setstackEOL{\cr} %EOL is abbreviation for "end of line." \begin{document} \noindent \begin{minipage}[t]{3.5in} \textbf{16.) }\...

3

The input can be simplified with some more tabular environments. The trick is to use \begin{minipage}[t] and \begin{tabular}[t]. \documentclass[10pt]{amsart} \usepackage{mathtools} \usepackage{array} \usepackage{makecell} \newcommand{\tabhead}[1]{% \makebox[0pt]{\bfseries\boldmath #1}% } \begin{document} \noindent \begin{minipage}[t]{3.5in} \...

4

Something like this: For above code I use two mini pages aligned at top and omit stackengine package and its macro. Also I add siunitx package for nicer settings of numbers in table. Complete MWE is: \documentclass[10pt]{amsart} \usepackage{array,makecell} \usepackage{siunitx} \begin{document} \noindent\begin{minipage}[t]{3.5in} \textbf{16.)} \...

6

You don't need all these $…$ in your table. It can look nicer with booktabs and if you use line breaks in column heads, which can be done with the \thead command from makecell. So I suggest this layout: \documentclass{report} \usepackage[paperwidth=5.5in,paperheight=7in,noheadfoot,margin=0in]{geometry} \usepackage{siunitx} \usepackage{longtable, makecell,...

5

This is of course much the same solution as samcarter already provided, but I have a few other suggestions for improvements. We both use longtable to get tables spanning many pages. And we both use siunitx. siunitxprovides some really nice options for formating your numbers in a consistent way. Some other suggestions You don't usually need to write \...

6

If you want a page break in your table, use the longtable environment. For the example below I added the \usepackage{siunitx} package, which provides the handy column type S which helps to align such long list of numbers. You also might want to have a look at the booktabs package, which offers nicer lines and spacing for tables. \documentclass{report} \...

-1

You can get this effect by alternating row and column color like following: \newcolumntype{g}{>{\columncolor{Gray}}c} \begin{table}[ht] \centering \begin{tabular}{c|g|g|g|g|g|g|g} \hline \rowcolor{white} &col1 &col2 &col3 &col4 & col5 &col6 &col7\\ \hline \rowcolor{white} row1& \ra & \ra & \ra & \ra & \ra &...

1

You can actually improve the quality by using siunitx. Here's only some relevant lines, the others will follow the same schemes. \documentclass{article} \usepackage{garamondx} \usepackage{booktabs,threeparttable,siunitx,caption} \begin{document} \begin{table}[htp] \centering \captionsetup{justification=raggedright} \begin{threeparttable} \caption{...

2


2

You can use alignat, with some trick. I also recommend siunitx. \documentclass{article} \usepackage{amsmath,siunitx} \begin{document} \begin{alignat*}{4} & && t_p &&\le \SI{-2}{\celsius}, &\quad& \text{frost is expected} \\ \SI{-2}{\celsius} &\le{} && t_p &&\le \SI{2}{\celsius}, &\...

1

You need to add one more column ... for example -- using array instead of tabular, you can obtain: Code: \documentclass{article} \usepackage{siunitx} \setlength{\arraycolsep}{1.5pt} \begin{document} \[ \begin{array}{rll} t_p & \le - \SI{2}{\celsius} & \text{frost is expected} \\ - \SI{2}{\celsius}\le t_p & \le \SI{2}{\celsius} ...

4

Here is a solution with pst-node and arydshln. Is consists in using an ordinary tabularx environment and defining the relevant cells as nodes of various types and linking them with node connections. It compiles with xelatex only. \documentclass{article} \usepackage{array, tabularx, arydshln} \usepackage{geometry} \usepackage{pst-node, multido} \usepackage{...

Top 50 recent answers are included