# Tag Info

7

You've set the column type for the second column to S even though there are no numbers to be aligned on decimal points in that column. Some entries in that column -- such as "Male" and "Black" -- thus show up in math italics; other entries, such as "Quintile 3", have been encased in curly braces and are therefore treated as centered text by the syntax rules ...

6

This uses a new column type called E (like enumerate) and a counter called rowcounter which increases in each row, the first row is omitted here. The table column is left aligned, but r - type might be better! Please note that this will fail after 26 rows of course since the \alph output cannot handle counter values larger than 26. The \alphalph command ...

4

As Werner said, the problem is that tabularx requires at least one X type column. But the problem is also that there is no magic involved: your table will not shrink in size because tabularx cannot make your content smaller, but only stretch the space to make it bigger. The following does a bit more in order to at least fit the table onto A4 when rotated ...

3

you do not need the \uncover, you have already set transparent option. Use \item<...> instead: \documentclass{beamer} \usetheme{Berkeley} \begin{document} \section{Formula} \subsection{Time-varying Coefficients} \begin{frame}{Time-varying Coefficients} \setbeamercovered{transparent} Used to get the degree of ERPT:\\ ...

3

The answer depends a bit on what "onehalfspacing" entails. If it's equivalent to \setstretch{1.5}, you should try \renewcommand\arraystretch{1.5}. If your tabular-like envrionments are located inside table environments, and if you're using the terminology of the setspace package and your main font size is 10pt, you should try ...

3

Tables 1 and 2 basically cannot fit at the bottom of the first page, and hence they must "float" to the next available space, which is on the following page. The only remedy -- other than to shorten the material on the first page -- is to insert an explicit \clearpage before the start of the fourth section. Some further comments -- strictly about the LaTeX ...

3

With help of package makecell and siunitx I redisign your table in form, which should be a starting point for your further effort in its formatting: \documentclass{article} \usepackage{booktabs,makecell} \renewcommand\theadfont{\normalfont} \usepackage{siunitx} \usepackage[margin=30mm,showframe]{geometry} \begin{document} \begin{table}[h] ...

3

Here's an attempt to replicate the table in the screenshot you posted. A comment: Given that you want to use colors, I would do away with all interior lines of the table. (I've already omitted all exterior lines.) \documentclass{article} \usepackage[table,svgnames]{xcolor} \begin{document} \begin{table}[ht] \arrayrulecolor{white} \centering ...

2

Re Doubt 1: If you want to set math material in bold, use a directive such as \mathversion{bold}; \boldmath works too. \textbf is not correct here. Re Doubt 2: If you want all entries in a column of type S to be typeset in bold italics, it's a good idea to provide this information in the column definition, via a specification such as ...

2

Code for above table is: \documentclass{article} \usepackage{booktabs,makecell,rotating} \renewcommand\theadfont{\bfseries} \settowidth\rotheadsize{\theadfont pair} \usepackage[margin=25mm,showframe]{geometry} \begin{document} \begin{table}[h] \centering \begin{tabular}{r*{11}{l}} \toprule & ...

2

assuming every column has at least one non-circled number you could use \mycircled{1} defined via \newcommand\mycircled[1]{\makebox[0pt]{\circled{#1}}} Which hides the width of the circled entries. Otherwise you could replace 0pt by \digitwidth defined by \newlength\digitwidth \settowidth\digitwidth{1} To force a circled digit to be as wide as a ...

2

The solution given in the question you linked (How can I keep my TikZ overlay picture on the same page?) does work here, in the following sense: \begin{longtable}{p{3cm}p{3cm}} \toprule first column & second column\tikz [remember picture] \node (rightmark) {};\\ \midrule \endhead A & A \\ A & A \\ A & A \\ A ...

2

You can try nested tables so that the column with less content can be entered as separate small tables with more than one row. Each separate table may contain three rows against one cell in column B. Using an m-type column (from the array package) will force table cells to be vertically centered. \documentclass[12pt,a4paper]{article} ...

2


2

\clearpage will force a page break and flush any pending figures, as shown below. \documentclass{article} \usepackage{array,float} \newcolumntype{C}{p} \begin{document} \section*{Tables} \begin{table}[ht] \caption{Some table} % title of Table \centering \begin{tabular}{ C{2.5cm}} \textit{m} \\ [0.5ex] 0 \\ 1 \\ % inserting body of the table 2 \\ ...

2

A p column is essentially identical to a \parbox. In both cases they use \@arrayparboxrestore to normalise several things. If you don't want parskip and parindent normalized but left as in the main document just redefine the command not to reset them: \documentclass{article} \usepackage{array} \setlength{\parindent}{0mm} \setlength{\parskip}{8pt} ...

2

Edit: I assume, that with "whole page" you mean over both columns in two column text. In this case you need to use \begin{table*} ... \end{table*} however table will be moved to the next page. There is one more limitations. At use of tabularx and columns of type X, the width of this columns is wrong interpreted: each take width of whole table. So it is ...

2

Well, I was to slow with my solution to be first :-(. Anyway, I will show results of my (two hours, most spend in formatting of my MWE code) effort. It slightly different from @cfr solution, however main points are the same. To fit table into text width I use packages ltablex, threeparttablex, and to long column heads and procedures description describe ...

2

It is easier to add the percent between the columns rather than appending it. \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \newcommand\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} \sisetup{ table-format=2.2 } \begin{tabular}{ccS@{\,\%\hspace{2\tabcolsep}}S@{\,\%}} \toprule A & B & \mc{C} & \mc{D} \\ xx ...

1

With siunitx, it's easy: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{booktabs, caption} \captionsetup{labelfont = sc} \usepackage{siunitx} \begin{document} \begin{table}[htbp] \centering\sisetup{table-format=1.4, table-number-alignment=center} \begin{tabular}{S[table-format=1.3] ...

1

Use makecell for that, and its \thead command. In addition I loaded the mhchem and siunitx package. \documentclass{article} \usepackage{geometry} \usepackage{amsmath} \usepackage{array, booktabs, makecell} \usepackage{siunitx, mhchem} \newcommand\muL{\si{\micro\liter}} \begin{document} \begin{table}[h] \centering \small \tabcolsep=0.11cm ...

1

I was pretty sure that this is a duplicate question, but any other question I found was way more complicated. In any case, the correct way to use \multicolumn is: \begin{tabular}{lll} \multicolumn{1}{c}{\textbf{text}} & \multicolumn{1}{c}{\textbf{text}} &\multicolumn{1}{c}{\textbf{text}}\\ a&b&c\\ 12346543432&1253156&lalala\\ ...

1

The thead command, from makecell allows for a common formatting of its argument, line breaks and is by default vertically and horizontally centred. Demo of usage: \documentclass{article} \usepackage{array, makecell} \renewcommand\theadfont{\bfseries} \begin{document} \begin{tabular}{lll} \thead{text1 & & \\text2} & \thead{text} ...

1

As mentioned in the comments to the question, defining a new command as \\\\ is impossible, because redefining \ conflicts with the existing meaning of \ used as an escape sequence. Even if \\\\ seems to be more convenient to type instead of \\[\normalbaselineskip], this is not a good coding practise (loss of readability). Use cases like adding more ...

1

You have not provided any usable example so this is untested but it looks like you do not need a table construct at all: %% List environment %%%%%%%%%%%%%%%% \newenvironment{entrylist}{\par\raggedright}{\par} \newcommand{\entry}[4]{% \makebox[2cm][l]{#1}parbox[t]{13cm}{% \textbf{#2}% \hfill% {\footnotesize\addfontfeature{Color=lightgray} ...

1

for single-line entries it's more natural to use l and let the table find the natural width of the content, also you need to allow the note in the foot to span more columns. Also landscape is an environment. \documentclass{article} \usepackage{longtable,pdflscape,booktabs} \begin{document} \begin{landscape} \begin{longtable}{lllp{2cm}p{4cm}lp{3.5cm}} ...

1

By help of tables nesting and use m column type from package `array: \documentclass[letter]{article} \usepackage{array,booktabs,paralist}%enumitem \usepackage{lipsum} \begin{document} \begin{tabular}{c m{2in} m{2in}} \toprule & \hfil \textbf{ColName1} & \hfil \textbf{ColName2} \\ \midrule \textbf{RowName1} & ...

1

You can do it by specifying the font in the cells where you want boldface italic; also, common words in the header can better be placed just once: it happens that the sum of the natural width of the third and fourth columns is less than the width of “Line Arguments”, so the excess goes to the fourth column, causing misalignment. For making the header ...

1

I accepted @Mico's answer as best because his provided me a template to get exactly what I wanted with very little added work. In particular, I tinkered with the colors, the vertical alignment of the row heads, and created a nice little legend thing with minipage. \documentclass{article} \usepackage[table,svgnames]{xcolor} ...

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