I'm working with a style in two columns. I would like to put a table fitting in one column as did in   However, if I use big strings as "large large large large large large" inside a \rotatebox, I have the error:      pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pdfstartlink. \end{document}   \begin{table} \caption{Summary of the characteristics used in some related works.} \label{tableRelatedWorks2} \resizebox{\columnwidth}{!}{% \begin{tabular}{ccccccc} \rotatebox[origin=c]{90}{\text{large large large large large large} }       &amp; \text{KLSRf}   &amp; \text{MLDFSP}       &amp; \text{PNDND}       &amp; \text{LDFSSVM}   &amp; \rotatebox[origin=c]{90}{a}  &amp; \rotatebox[origin=c]{90}{b}\\ \hline \end{tabular} } \end{table}   If I put a string with 5 characters instead of  "large large large large large large" in the code above, it works.  Someone could say what's wrong?
52099
I started using showkeys in one of my documents and see this error  \pdfendlink ended up in different nesting level than \pdfstartlink   A bit of google suggests that this "happens when hyperref is used under pdftex and a citation splits across a page boundary". (See: ).  But this package is only useful at drafting stage where the text is changing frequently i.e. the chance of the error is high. Is there a general way to smoothly use showkeys with hyperref? Thanks.
11517
I want a table that is as wide as the whole page in a document with option twocolumn. The table has to be inserted on the bottom of the page, but that is not necessary.  I've tried:  \begin{table*}[b]   ... \end{table*}   But that puts the table at the end of the document instead of on the same page.  I also tried:  \twocolumn[   \begin{table}[b]     ...   \end{table} ]   But that gives me an error: ! Argument of \@xfloat has an extra }. Combining \twocolumn and the star mark gives the same error.  What's the right way to do this?
10712
Possible Duplicate:             \begin{tabular}{ l | c || r | }   A&amp;B &amp; 2 &amp; 3 \\   4 &amp; 5 &amp; 6 \\   7 &amp; 8 &amp; 9 \\ \end{tabular}   How would I type &amp; in LaTeX? Because I  want for example, A&amp;B to be in one box, but I cant seem to figure out how.
55600
The &gt; and &lt; preamble options of the array package (and possibly other table packages) allow automatically inserting text and commands before and after each cell of a column, respectively.  Can they be used to insert things like \hyperlink{foo}{ before and } after each cell, or something like that? Attempts so far:   &gt;{  \hyperlink{foo}{  }  c  &lt;{  }  } causes an error because the braces are unbalanced. Escaping the braces by \{ just inserts braces into the PDF. &gt;{  \begin{hyperlink}{foo}  }  c  &lt;{  \end{hyperlink}  } interestingly causes sharelatex to complain about the closed brace between begin and end, but does not cause a latex error.   The problem though is that this results in \begin{hyperlink}{foo}text in cell\end{hyperlink}, adding a hyperlink only to the first letter "t", whereas I need the result to be \begin{hyperlink}{foo}{text in cell}\end{hyperlink}, and for some reason not even surrounding every cell entry by braces manually helps.   Is there a way to achieve this?
12645
I am using  $ pdflatex --version pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) kpathsea version 6.2.3   to compile a 30-page pdf output. Twelve of the pages look like this (the rest are only text):    All items are generated by this code:  \newcommand{\weapon}[8] { \begin{multicols}{2}   \noindent \textbf{#2} \\   Необходима сила: #3  \\   Обсег: #4  \\   Щети: #5  \\   Свойства: #6  \\   Маса: #7  \\   Стойност: #8  \\   \includegraphics[height=0.13\textheight]{../images/#1}~ \end{multicols} \vspace{0.01cm} }   This bring the file size to:  remote: warning: File build/elementaris-fantasy.pdf is 63.06 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB   The images I am using are not scaled and some of them are quire large.  How can I reduce the size of the PDF file? The purpose of the PDF is to be printed on sheets of paper as reference for a game.
10846
I have a table that is just a little too wide for a 3.33" column. Is there a way to simply shrink the table a little to make it fit? I'm OK if the 10pt font becomes 9pt-something. Here is an example.  \begin{table} \centering \begin{tabular}{r|lll} \multicolumn{1}{r}{} &amp; \multicolumn{1}{l}{Heading 1} &amp; \multicolumn{1}{l}{Heading 2} &amp; \multicolumn{1}{l}{Heading 3} \\ \cline{2-4} Row 1 &amp; Cell 1,1 &amp; Cell 1,2 &amp; Cell 1,3 \\ Row 2 &amp; Cell 2,1 &amp; Cell 2,2 &amp; Cell 2,3 \end{tabular} \end{table}
108696
I notice that the space between each column of a table in LaTeX is not quite wide (at least for me). Is there any way to set this? I found the \hspace, but I don't get how to use this in the table.
96755
I've been trying to get a diagonally-split table header using the diagbox package, but I have a problem.  Here's a working sample that shows the problem:      \documentclass[12pt, a4paper, twoside]{article}   \usepackage{diagbox} %table split headers \usepackage{longtable}  \usepackage{array} \usepackage{rotating}  \newcommand{\tabred}{-4pt} \newcommand*\rot{\rotatebox{90}}  \begin{document}  \begin{longtable}{     | l&lt;{\hspace{\tabred}}      | &gt;{\hspace{\tabred}}c&lt;{\hspace{\tabred}}      | &gt;{\hspace{\tabred}}c&lt;{\hspace{\tabred}}      | &gt;{\hspace{\tabred}}c&lt;{\hspace{\tabred}}      | &gt;{\hspace{\tabred}}c&lt;{\hspace{\tabred}}      | &gt;{\hspace{\tabred}}c&lt;{\hspace{\tabred}}      | &gt;{\hspace{\tabred}}c&lt;{\hspace{\tabred}}     |}  \hline  \diagbox[dir=NW]{Feature}{Tool}  &amp; %THIS IS THE PROBLEM!  \rot{Tool Alpha}    &amp;  \rot{Tool Delta}    &amp;  \rot{Tool Gamma}    &amp;  \rot{Tool Theta} &amp;  \rot{Tool Upsilon} &amp;  \rot{\textbf{Tool X (our proposal) }}\\  %\midrule \hline  Feature A - Fooing the Bar  &amp; NO    &amp; NO    &amp; NO    &amp; NO    &amp; OK    &amp; OK\\ Feature B - Barring the Foo &amp; OK    &amp; NO    &amp; OK    &amp; NO    &amp; NO    &amp; OK\\ \hline \end{longtable}  \end{document}   The problem is that, since I rotate the headers, they are very tall. As you can see from the image below, this ruins the alignment of the diagonal line:    As you can see, there are two problems: the north-west end of the diagonal line doesn't touch the north-west corner of the box, and the south-east end of the diagonal line doesn't touch the south-east corner.  With the answer posted here:  I've been able to use \rule to fix one of the angles, but never both. No matter what I try, the spacing screws up.  Any ideas?
10994
MWE  Please use the image linked to below.  \documentclass{article} \usepackage{graphicx}  \begin{document} \includegraphics{dank} \end{document}   Oddly enough, only this picture fails and only when compiling with XeTeX (as opposed to pdfTeX or LuaTeX):  ERROR: Dimension too large.  --- TeX said --- &lt;to be read again&gt;                     b l.5 \includegraphics{dank}  --- HELP --- From the .log file...  I can't work with sizes bigger than about 19 feet. Continue and I'll use the largest value I can.    is a bit of an eyesore, so I'm not displaying it inline.  Please check the shasum to make sure it's still the same file when you download it.  $ shasum dank.jpg b889bc28b2ccd079073267159db0562f45b58e4d  dank.jpg   What's special about this image?  Why does it fail?  Its natural setting (as seen with LuaTeX or pdfTeX) is well under 19 feet.
20716
I'm newbie in TeX, so I've decided to ask for some help.   I'm working on technical documentation for my job and I need to create a 4-column table, where text in first two columns top-aligned and centered horizontally, last two aligned with last string of second column. But I can't achieve this.   I've tried this:   and this:   But the closest result which I able to obtain is:    So, last three columns is OK, first one - not, it should be top-aligned.  I was successful to overcome this by usage of \multirow environment, but it's should be implemented individually to rows. If' I'll do this for long tables - it'll make me insane. I want one fixed style in preamble, if it's possible.  Here is my table in main body:      %russian technichal standart documentation class      \documentclass[russian, 14pt, utf8, columnsxxiv, columnxxxi, columnxxxii, pointsection, hpadding = 10mm]{eskdtext}       %%%For working of eskdx, also cyrillic      \usepackage{xecyr}       %%%set TNR as main font      \setmainfont[Mapping=tex-text]{Times New Roman}       %%%Additional position options      \usepackage{float}       %%%advanced tables      \usepackage{tabularx}      \newcolumntype{Y}{&gt;{\centering\arraybackslash}X}            \newcolumntype{d}{&gt;{\centering}b{.25\textwidth}}      \newcolumntype{s}{&gt;{\centering}b{.1\textwidth}}      \newcolumntype{a}{&gt;{\centering}p{.25\textwidth}}       %%%redefine command for № -symbol, because eskdx quite old package      \renewcommand{\No}{\textnumero}       \begin{document}       \begin{table}[H]      \label{appA}      \begin{tabularx}{\textwidth}{a|d|s|Y}      \hline       Наименование &amp; Основные технические данные &amp; Кол., шт. &amp; Примечание  \\       \hline      text text text text text text text &amp; text text text text text text text text text text&amp; {1} &amp; text  \\       \end{tabularx}       \end{table}       \end{document}   I'll appreciate any help!
72900
\usepackage{longtable}  \begin{landscape} \begin{table}[!htb] \centering \resizebox{\linewidth}{!}{% \begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}  % Table here  \end{longtable}% }% \end{table} \end{landscape}   I am unable to get the table to span over multiple pages while fitting the table to the width of the landscape page. Would you know how to do this, please let me know.
96279
I am using multicol to make a two-column document using the book document class. I have a long tabular that I want to break where the page breaks and then continue in the next column.  I could split it into two tables, but I want their width and such to be the same. I've tried with longtable but can't get it to work.  I basically want the table to split and arrange itself into two columns just like normal text does.  Edit: Sorry for the lack of information. With just 1 column it works fine with longtable, but when I use multicols it breaks down and just continues outside the page. I also get an error while compiling.     Package longtable Error: longtable not in 1-column mode.   This is a simplification of my code:  \documentclass[11pt,a4paper]{article}  \usepackage{multicol} \usepackage{longtable}  \begin{document}  \begin{multicols}{2}  \begin{longtable}{ccc} Header of first column &amp; Header of second column \\ \endhead Table cell 1, 1 &amp; Table cell 1, 2 \\ Table cell 2, 1 &amp; Table cell 2, 2 \\ Table cell 1, 1 &amp; Table cell 1, 2 \\ ... ... \end{longtable}  \end{multicols}  \end{document}     I hope this is enough information. Any thoughts?
115509
Consider the following table example, the text in the second row is wrapped.  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} \usepackage{booktabs}  \usepackage{array} \setlength{\extrarowheight}{5pt}  \begin{document}    \begin{tabu} to \linewidth {X[.5,c] X[1,l] X[1,l] X[2,l]}     \toprule     \rowfont{\bfseries}     Row &amp; Head 1                   &amp; Head 2 &amp; Head 3 \\\hline     1.  &amp; short text               &amp; ? &amp; ? \\\hline     2.  &amp; long long long long text &amp; ? &amp; ? \\\hline     3.  &amp; short text               &amp; ? &amp; ? \\\hline     4.  &amp; short text               &amp; ? &amp; ? \\     \bottomrule   \end{tabu}  \end{document}   It renders like:    Why is there so little space between the text in the second row and the rule below it?  How can I fix it?  What comes to my mind is to use \\[1ex] instead of \\, is there a better solution?
95161
When I use the \tableofcontents macro in a document where the etoc package is loaded, latex pauses and reports an error. If I let the compilation continue a well formed pdf is generated.  Minimal example that can reproduce the error on my machine.  \listfiles \documentclass{article} \usepackage{etoc}  \begin{document} \tableofcontents‎‎ \end{document}   Output from pdflatex on the minimal example.  This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)  restricted \write18 enabled. entering extended mode (./mwe.tex LaTeX2e &lt;2018-04-01&gt; patch level 4 (/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2018/texmf-dist/tex/latex/etoc/etoc.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/tools/multicol.sty)) (./mwe.aux)  ! Package inputenc Error: Unicode character ‎ (U+200E) (inputenc)                not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                                l.6 \tableofcontents‎                        ‎ ? R OK, entering \nonstopmode...  ! Package inputenc Error: Unicode character ‎ (U+200E) (inputenc)                not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                                l.6 \tableofcontents‎‎  [1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./mwe.aux)   *File List*  article.cls    2014/09/29 v1.4h Standard LaTeX document class   size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)     etoc.sty    2018/02/23 v1.08n Completely customisable TOCs (JFB) multicol.sty    2018/04/20 v1.8s multicolumn formatting (FMi)  ***********   ) (see the transcript file for additional information)&lt;/usr/local/texlive/2018/te xmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb&gt;&lt;/usr/local/texlive/2018/tex mf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb&gt; Output written on mwe.pdf (1 page, 16281 bytes). SyncTeX written on mwe.synctex.gz. Transcript written on mwe.log.
40764
I am developing some tables on LaTeX environment and I am having some troubles with the spacing. Originally, I was able to generate the tables using the standard \begin{table}, but then I tried to add some features, as the capability to break the table if it is too long (using longtable) the issue appears. I also want to align numbers by decimal point and center, reason why I use siunitx package. The problem is on the last column, which had a width almost the double than the others. If I specify the column width, the problem "disappear", but I'm really interested in the possibility of automatically generate the width of the table.  The code is the following:  \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[english]{babel} \usepackage{siunitx} \usepackage{longtable} \usepackage{booktabs}  \begin{document} \begin{longtable}{l*{4}{S}} % no problem specifying the column width\begin{longtable}{l*{4}{S[table-column-width=1.25cm]}} \caption{Univariate Item Descriptives}\\ \toprule \multicolumn{1}{l}{\textbf{Item}} &amp; \multicolumn{1}{c}{\textbf{Mean}} &amp;    \multicolumn{1}{c}{\textbf{Variance}} &amp; \multicolumn{1}{c}{\textbf{Skewness}} &amp; \multicolumn{1}{c}{\textbf{Kurtosis}} \\ \midrule \endfirsthead \multicolumn{5}{c}% {\tablename\ \thetable\ -- \textit{Univariate Item Descriptives (Continued from previous page)}} \\ \toprule \textbf{Item} &amp; \textbf{Mean} &amp; \textbf{Variance} &amp; \textbf{Skewness} &amp; \textbf{Kurtosis} \\ \midrule \endhead \hline \multicolumn{5}{r}{\textit{Continued on next page}} \\ \endfoot \bottomrule \endlastfoot 2. EX +         &amp; 2.788   &amp;    1.060 &amp;        -0.120   &amp;   -0.368\\ 3. DS +         &amp; 4.080   &amp;    0.853 &amp;        -1.141   &amp;    1.379\\ 4. AM +         &amp; 3.684   &amp;    0.705 &amp;        -0.541   &amp;    0.744\\ 5. EX +         &amp; 3.653   &amp;    1.043 &amp;        -0.709   &amp;    0.149\\ 6. DS -         &amp; 2.240   &amp;    1.665 &amp;         0.725   &amp;   -0.603\\ 7. AM +         &amp; 4.292   &amp;    0.876 &amp;        -1.627   &amp;    2.705\\ 8. EX -         &amp; 2.419   &amp;    1.588 &amp;         0.449   &amp;   -0.897\\ 9. AM +         &amp; 3.255   &amp;    0.923 &amp;        -0.234   &amp;   -0.037\\ 10. DS -        &amp; 3.449   &amp;    1.408 &amp;        -0.453   &amp;   -0.599\\ 11. EX +        &amp; 3.678   &amp;    1.232 &amp;        -0.669   &amp;   -0.219\\ 12. AM -        &amp; 2.830   &amp;    1.162 &amp;         0.029   &amp;   -0.565\\ 13. EX -        &amp; 3.452   &amp;    1.205 &amp;        -0.410   &amp;   -0.336\\ 14. DS -        &amp; 2.442   &amp;    1.374 &amp;         0.310   &amp;   -0.893\\ 15. AM -        &amp; 2.114   &amp;    1.168 &amp;         0.729   &amp;   -0.176\\ 16. EX -        &amp; 3.070   &amp;    1.085 &amp;        -0.176   &amp;   -0.347\\ 17. AM +        &amp; 3.893   &amp;    1.116 &amp;        -0.954   &amp;    0.544\\ 18. EX +        &amp; 3.311   &amp;    0.964 &amp;        -0.238   &amp;   -0.066\\ 19. AM -        &amp; 2.674   &amp;    1.404 &amp;         0.245   &amp;   -0.780\\ \end{longtable} \end{document}
51672
I have long text in a multirow cell. And the text takes more rows than the rows in the second column.  \documentclass[a4paper,12pt]{report} \usepackage{multirow} \usepackage{longtable}  \begin{document}  \begin{longtable}[H]{|p{\dimexpr0.5\linewidth-2\tabcolsep}|p{\dimexpr0.5\linewidth-2\tabcolsep}|} \caption{Title} \tabularnewline\hline \multirow{2}{\linewidth}{\centering \tiny \textbf{Long long  long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long text}} &amp; \tiny 11 \tabularnewline \cline{2-2}  &amp; \tiny 11 \tabularnewline \cline{1-2} \end{longtable}  \end{document}   I get this:   How can I fix it? I generate table automatically, and I do not know how many lines of text in the multirow cell takes. So I can not manually add blank lines in the second column.  Update for Bernard When I compile this code:  \documentclass[a4paper,12pt]{report} \usepackage[utf8]{inputenc}  \usepackage{multirow} \usepackage{longtable}  \usepackage{makecell}  \begin{document}  \begin{longtable}{|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|} \caption{Title} \tabularnewline\hline% \multirow{2}{*}{\parbox{\linewidth}%[24pt] {\centering \scriptsize \textbf{Long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long}}} &amp; \Gape[12pt]{\scriptsize 11} \tabularnewline \cline{2-2} &amp; \Gape[12pt]{\scriptsize 11} \tabularnewline  \cline{1-2} \end{longtable}\bigskip  {\normalsize \begin{longtable}{|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|m{\dimexpr0.5\linewidth-2\tabcolsep\relax}|} \caption{Title} \tabularnewline\hline% \multirowcell{8}{\parbox{\linewidth} {\centering \textbf{Long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long}}} &amp;\multirowcell{4}{11} \tabularnewline &amp; \tabularnewline &amp; \tabularnewline &amp; \tabularnewline \cline{2-2} &amp; \multirowcell{4}{11} \tabularnewline &amp; \tabularnewline &amp; \tabularnewline &amp; \tabularnewline  \cline{1-2} \end{longtable} } \end{document}    I see this result:
27730
I'm working on a document that runs two columns of text down the page, like many scientific conference proceedings.  However, I'd like for a table to run across the entire width of the page, as it is far too wide to fit into one column.  How do I do this?