# Tag Info

1

I've cut your code down a bit for demonstration purposes, to make it a bit more minimal. But one way to do this is to specify the font size for each entry through the setup of the longtabu environment. For example: \documentclass{report} \usepackage{tabu} \usepackage{longtable} \usepackage{booktabs} \begin{document} Composition of samples ...

2

You can take help from caption package to keep captions in normal font size. To ease the conversion of \footnotesize inside all longtabu environments, you can employ \AtBeginDocument macro from etoolbox package. This means, you don't have to type \footnotesize inside all longtabu environments. The essence is, add the following in your preamble: ...

5

I don't know what document class you are using, but reading your question it surely loads setspace and uses \doublespacing. A way to avoid loading the caption package to customize the longtable caption spacing is to load the etoolbox package and put the following line in your preamble: \AtBeginEnvironment{longtable}{\singlespacing} In this way you will ...

4

\documentclass{article} \usepackage{listings} \newenvironment{codes} {\list{}{\labelwidth0pt \leftmargin2cm \itemindent-\leftmargin \renewcommand\makelabel[1]{% \makebox[0pt][r]{\textbf{##1} }}}} {\endlist} \begin{document} \begin{codes} \item[C++] \begin{lstlisting}[language=C++] int a0; int a1; ...

6

That's all standard behaviour of the longtable package. If you use a controlling application such as make or latexmk or arara or emacs or... then it can read the log file for you and re-run latex but latex itself can't. Note there is nothing really special about longtable, tables of contents, cross references with \ref, indexes, all require latex to be run ...

0

Assuming that your 3rd and 4th columns do not need to contain a substantial amount of text, then if you abandon the \begin{landscape} command you can get your table to appear directly underneath your section title using the following code. In this code, I've set the table width to \columnwidth and given the columns a proportionality value with the commands ...

4

I blame Frank:-) That is, I think the problem is unrelated to longtable, but rather that it is dangerous to nest multicols environments. If you use the inner multicols to hold the longtable before starting the outer one, and save the result in a box to add to the float. it works better: \documentclass{article} \usepackage{longtable} \usepackage{multicol} ...

0

Here's the solution I came up with. Not pretty, but easy to understand and it works. \documentclass[11pt]{article} %% Margins %% \setlength{\textwidth}{6.25in} \setlength{\oddsidemargin}{0in} %%%% Packages %%%% \usepackage[font={bf}]{caption} \usepackage{longtable} \usepackage{threeparttablex} \usepackage[newcommands]{ragged2e} \usepackage{array} ...

3

longtable doesn't work well with twocolumn. But you can use supertabular. Here is an example: \documentclass[twocolumn]{article} \usepackage{supertabular,booktabs} \usepackage[textheight=10cm]{geometry} %% just for this example. \begin{document} \tablefirsthead{\toprule First&\multicolumn{1}{c}{Name} \\ \midrule} % \tablehead{% \multicolumn{2}{c}% ...

1

You can change the margins of each page seperately with \usepackage[a4paper]{geometry} to change to a new margin \newgeometry{left=3cm,bottom=0.1cm} to set it back \restoregeometry BUT, I also notice you have defined the width of your columns exactly. If you do that, you will have to put them in a way that the columns in one page stretch to the ...

5

Please, next time, post a compilable example... You shouldn't use those \raiseboxes to place material in your table. Try using the m column specifier instead of p and add the valign=C option in the \includegraphics (requires the adjustbox package with option export). Also, you can issue a \par if you want to put some text below some other. Finally, to ...

3

The timing in alignments can be tricky, the main problem here is that & isn't just an alignment mark it is a TeX group like {} so if you evaluate the loop within the table the group started in one iteration of the loop ends in the next, and most loop macros can't cope. It is usually easier to construct the entire row in a token register or macro. As ...

5

Simply redefine the new column type C to be: \newcolumntype{C}{>{\rowfont\centering\arraybackslash}p{\dimexpr.33\textwidth-2\tabcolsep}} MWE \documentclass{article} \usepackage[table]{xcolor} \usepackage{float} \usepackage{array} \usepackage{longtable} \restylefloat{table} \definecolor{Gray}{gray}{0.65} \definecolor{Blue}{RGB}{0,176,240} ...

6

\documentclass{article} \usepackage[table]{xcolor} \usepackage{float} \usepackage{array} \usepackage{longtable} \restylefloat{table} \definecolor{Gray}{gray}{0.65} \definecolor{Blue}{RGB}{0,176,240} \definecolor{light-gray}{gray}{0.90} % Margins \topmargin=-0.45in \evensidemargin=0in \oddsidemargin=0in \textwidth=6.5in \textheight=8.5in \headsep=0.25in ...

2

Update Now that the answer has been edited, the problem is clear. If you use an empty optional argument for \caption, then no entry is produced in the list. Don't use the optional argument empty: \documentclass{article} \usepackage[french]{babel} \usepackage{longtable} \begin{document} \listoftables \begingroup \setlength{\LTleft}{-20cm plus -1fill} ...

4

LaTeX will never break a page within a p{<length>} row. Page breaks only occur between rows of the table or at \hline commands. In the seemingly odd case you mention with \lipsum[3-8], what happens is that all your six paragraphs are in the same row of the p{8cm} column, so no page break will be produced; the whole table gets pushed to the second page ...

1

You forgot to end the first row: \begin{tabular}{|ccc||cccc||cccccccc|} \multicolumn{3}{c}{\textbf{Instances}} &\multicolumn{4}{c}{\textbf{Weekly Problem}} &\multicolumn{8}{c}{\textbf{Daily Problem}}\\ % end of first row \multicolumn{3}{c}{} &\multicolumn{4}{c}{\underline{Heuristic (WPA)}} &\multicolumn{2}{c}{} & ...

2

The simplest to start is use of tabular with multirow. Here the third column expands up to 0.8\textwidth. Code \documentclass[border=10pt]{standalone} \usepackage{multirow,array,lipsum} \begin{document} \newcolumntype{M}{>{\raggedright\arraybackslash}m{0.8\textwidth}} \begin{tabular}{cc|M}\hline \multirow{3}{*}{x} & $x_1$&\lipsum[1]\\ ...

1

Try to reduce space between all cols(\setlength{\tabcolsep}{0.1 cm}): \begin{center} \setlength{\tabcolsep}{0.1 cm} \begin{tabular}{cc|cccccccccc} \hline x & x & x & x & x & x & x & x & x & x & x & x & x & x\\ %... \end{tabular} \end{center} or set hspace in tabular

Top 50 recent answers are included