# Tag Info

0

I propose this variant layout, which uses geometry, xcolor and xltabular (to break tabularx tables across pages): \documentclass{article} \usepackage{geometry} \usepackage[table, svgnames]{xcolor} \usepackage{multirow} \usepackage{ xltabular, booktabs} \usepackage{amsmath} \usepackage{gensymb} \begin{document} {\centering\setlength{\extrarowheight}{2pt}\...

0

Here are two versions with more or less horizontal lines: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xltabular} \usepackage{multirow} \usepackage{array} \usepackage{amsmath} \usepackage{gensymb} \usepackage[english]{babel} \usepackage{booktabs} \begin{document} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}...

0

One thing to remind is to make the need known to the latexml developers (hi!) and request support at the LaTeXML issue tracker, so that we know there is interest for ltablex. If you think latexml can successfully natively interpret that package you can add the --includestyles option and have it pick the raw .sty file from your TeX distribution. And if it ...

2

Your code appears to create 1+12*4=49 [!] columns, whereas only 1+3*4=13 columns are needed. Note also that I would load the pdflscape package rather than the lscape package. I also wouldn't use underlining for emphasis. Instead, use either italicizing or bold-facing. The following screenshot shows just the first few rows of the longtable, which spans more ...

1

For your purpose you not need longtable. Use just lists which can break between pages. \hline you can mimic with \noindent\rule{\linewidth}{0.5pt}: \documentclass[a4paper]{article} \usepackage{enumitem} \usepackage{hyperref} %---------------- show page layout. don't use in a real document! \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \...

1

Here's a longtable-based solution. All four columns allow automatic line breaking. The column widths are equal and are calculated so as to take up the maximum available width. \documentclass{article} \usepackage[hmargin=1in]{geometry} % set page parameters suitably \usepackage{longtable,array,ragged2e} \newlength\mylen \setlength\mylen{\dimexpr0.25\...

2

Here is how to use xltabular – it's the same syntax as for longtable, except you declare the total width. In particular, in a longtable, you don't use the table environment (it is not a float), the caption is incorporated to the table, in the firsthead section. \documentclass{article} \usepackage{array,ragged2e} \newcolumntype{C}{>{\Centering\...

2

As @DavidCarlisle has already noted in a comment, first and foremost get rid of \centering, adjustbox, and tabular. To make the table fit inside the width of the text block, you should allow automatic line breaking in all 8 columns. I would also drop the boldfacing of the numbers in columns 4 and 8 and, instead, align them on their respective decimal markers....

1

Problem solved thanks to UlrikeFischer! Solution: \renewcommand\theHtable{Appendix.\thetable}

2

After merging your code fragments, correcting wrong syntax for use of the longtable I obtain expected correct result: As you can see, the culprit is code for long table. In a longtable you cant include tabular (or other table environments as you do. After \begin{longtable} should follows column specifications (c, l, r or p{...}. See MWE below. MWE, which ...

3

I would reorganize your table preamble. Mowing \label immediately after caption solve your problem: \documentclass[a4paper]{article} \usepackage[hmargin=2.5cm, vmargin=2cm]{geometry} \usepackage{array, booktabs, longtable, multirow, threeparttablex} \usepackage{etoolbox} \appto\TPTnoteSettings{\footnotesize} \usepackage{caption} \...

6

The problem is with \label{tab:CasosDosVarHom}. You must add a % after the argument of \label (at the end of the input line). Otherwise, it produces a stray space. See What is the use of percent signs (%) at the end of lines? (Why is my macro creating extra space?) \documentclass[a4paper]{article} \usepackage{longtable} \usepackage{multirow} \usepackage{...

2

\insertTableNotes does \multicolumn{<number of cols>}{c}{...}; you can patch it to use {|c|} instead. \documentclass{report} \usepackage{longtable} \usepackage{threeparttablex} \usepackage{etoolbox} \patchcmd\insertTableNotes{{c}}{{|c|}}{}{} \begin{document} \begin{ThreePartTable} \begin{TableNotes} \item[a] Note A\strut \end{...

1

Use \clist_map_function:nN otherwise a cell would be started; to the contrary, \clist_map_function:nN delivers its complete result before anything that TeX takes as the start of a cell is considered. Tables are well known to be a source of problems of this kind. \documentclass{article} \usepackage{expl3} \usepackage{xparse} \usepackage{longtable} \...

0

Problem solved thanks to Bernard! The way for put a horizontal line above the footnotes using ThreePartTable (and would be similar like minipage environment' footnotes) is: \noalign {\rule [-1.4ex]{6.7cm}{0.4pt}}

1

You can play withe optional argument of `\multirow to move upwards or downwards the content of the \multirow. Here is a code with the correct values for \hsize. I also reduced the value of \tabcolsep, because the columns widths are really small. One also may question having values up to the third decimal digit. \documentclass{article} \usepackage{geometry} ...

2

If you add \usepackage{array} the tabular preamble is processed in a safer way that does not break with fragile commands. \documentclass[11pt,twoside]{report} \usepackage{calc} \usepackage[paperwidth=297mm,% paperheight=210mm,% inner=.12\paperwidth,% outer=.08\paperwidth,% top=.05\paperheight,% bottom=.05\paperheight,% ]{geometry} \...

0

To illustrate my comment: \documentclass{article} \usepackage{adjustbox} \begin{document} \begin{table}[h] \caption{test caption} \vspace{0.3cm} \sbox0{\begin{tabular}{c} a very small tabular \end{tabular}}% \ifdim\wd0>\textwidth \adjustbox{width=\textwidth}{\usebox0} \else \centering \usebox0 \fi \end{table} \end{document}

2

Probably not a final answer, at this stage, but too long for a comment. I recall, and have, a file allhyph.tex with hyphenation patterns for hyphenation points after all 256 characters in the fonts for TeX of the day. I can't find it on CTAN or by web search, so I may have even written it. (The opposite zerohyph.tex should be loaded as language "...

1

In your document example is not minimal, as far as I understood, you have problems with table, so please remove all other stuff, which is not related to the table are missing definitions and packages, which are necessary to compile your table headers of your table is to wide that table can be fit on page; as solution can be replace their names with some ...

Top 50 recent answers are included