Tag Info

New answers tagged

3

The sidewaystable environment does not let you split its contents across multiple pages. Since you're using a longtable environment, which has its own \caption commands, etc., there's no real need to embed it in a sidewaystable environment anyway. Instead, consider loading the pdflscape package and using that package's landscape environment to rotate the ...


0

Here's a demonstration of how the standard vertical alignment options work: \documentclass{article} \usepackage{tikz} \begin{document} \newcommand\demobox[1]{% \fbox{% \begin{minipage}[#1]{.25\textwidth} \tikz[baseline=(n.base)]{% \node (n) [inner sep=0pt, outer sep=0pt, text width=\linewidth] {Top}; \draw [red] (n.west |- ...


1

\documentclass{article} \usepackage{hyperref} \usepackage{pdflscape} \usepackage{afterpage,array}% you need array \usepackage{capt-of}% or use the larger `caption` package \usepackage{lipsum}% dummy text \begin{document} \lipsum % Text before \afterpage{% %\clearpage% not needed \thispagestyle{empty}% empty page style (?) \begin{landscape}% ...


2

use the parbox within multicolumn (adding 3 columns gives 7.6cm) like this: \documentclass[a4paper,12pt]{book} \usepackage[left=1.5cm,right=1cm,top=3cm,bottom=1.5cm,marginparwidth=5.5cm,marginparsep=1cm,outer=8cm]{geometry} \usepackage{array} \usepackage{longtable} \usepackage{showframe} \usepackage{multicol} \usepackage{multirow} \begin{document} ...


0

The cellspace package is here for that: it defines minimal vertical spacig at the top and bottom of cell in columns with specifier prefixed by the letter S (or C if you use siunitx). I also simplified your code and corrected it where it was faulty: \documentclass{article} \usepackage[showframe]{geometry} \usepackage{graphicx} \usepackage{array, longtable} ...


0

\parbox[|c|]{2cm}{ \includegraphics[scale=0.40,height=8 cm,width=10 cm] This specifies a 10cm wide image in a 2cm wide box, so overprinting is expected. At least it would specify that if it was \parbox{2cm} but \parbox[|c|] is a syntax error (although latex does not report it as such), the optional argument can only be c, t or b. You just want to ...


1

Starting left on even pages Package showframe visualizes very good, why the table does start quite with an indentation on even pages. As can be seen, the head line is also moved and the left space is occupied by quite a large "marginpar" column with width 5.5cm. Therefore you might want to correct the option values for package geometry. Too wide table ...


1

\begin{center} around longtable does not affect alignment, it just adds spurious vertical space. longtable is centred by default, but if you want left alignment you can use \begin{longtable}[l] but you can not align it at all as it is much too wide Overfull \hbox (95.13185pt too wide) in alignment at lines 16--21 You don't have room for two 7cm ...


2

There is no need to use \resizebox for any table, just select a suitable font size such as \small or \footnotesize so {\small \begin{longtable} .... \end{longtable} } or equivalently \begin{small} \begin{longtable} .... \end{longtable} \end{small}


1

For repeating headings, use \endfirsthead and \endhead. To increase the gape between rows, you may use makecell and its \setcellgaps and \makegapedcells inside a group. You won't need center environment as longtale is centered by default. BTW your table won't fit within the width (and I didn't correct it). \documentclass{article} ...


4

Normally you break after operators in inline math (to show the expression carries over) and before operators in an aligned display, where it is essentially a new expression aligned on the first. Here inline math is being used as a convenience to get automatic breaking but arguably it should align like a display, so make = into an active character that ...


1

You have to add \arrabackslash in \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} so that the meaning of \\ is not messed up. Further, for such repeated columns, you may use {|*{14}{@{}C{6mm}@{}|}} making code more readable. \documentclass[twoside]{book} \usepackage{longtable} \usepackage{array} ...


2

Right click on the row of that you want to be the header. Go to "More", then "Settings". Then click on the "Longtable" tab, select "Use long table". Then click on "First header".


0

How about a command with a color parameter? \newcommand\tln[1]{\tabularnewline\arrayrulecolor{#1}\hline} Then in your table Some name &Sometext &Sometext &100 & &x & & & & &\tln{green} Some name &Sometext &Sometext &100 & &x & & & & ...


1

Unsure what is really wanted, but some 'improvements' of the table. Wrapping of text inside a table cell can be achieved with makecell package and \thead macro. The tabular environments are of no use here and can be replaced by \multicolumn statements. I kept the @{} stuff, although not useful here (in my point of view) \documentclass{article} ...


0

Using the package hhline solved my problem. \begin{longtabu}{|l|l|} \hline 1 & 0\\ \hhline{==} 0 & 1\\ \hline \end{longtabu}


2

Your citations are in a c column and that won't spread itself over multiple lines, unlike a p column. To get a centered p type column, load the array package and add >{\centering\arraybackslash} before the p declaration. Alternatively, additionally load the ragged2e package and use its \Centering command instead of \centering, this allows better ...


1

I solved the problem: the trick is use \parbox{..} e.g.: \parbox{5cm}{ \begin{tikzpicture} \node[anchor=south west,inner sep=0] (image) at (0,0) { \includegraphics[scale=0.8]{image} }; \end{tikzpicture} \figcaption{label: lol.}}


6

It's not clear that there is really an issue to be solved, it is only an issue for tables if you think there is an issue about tables. Most of the points that you raise could also be made about "paragraphs" or "lists", at some point you have to have some structural information as well as words. It is easy to have an environment that defaults the column ...


2

You have used \extracolumnsep{\fill} so the problem of determining the table borders is made trivially simple: the table is known in advance to be \textwidth wide. So all you need to do is lay out your notes in three columns taking up the full width. \documentclass[12pt]{article} \usepackage{tabularx,longtable,booktabs,multicol} \begin{document} ...


1

Use the commands \endfirsthead and \endhead from longtable package to solve this issue (however, this is not failsafe) As it stands, the number of table columns is reduced by one in the lower part of the first page and for the rest which should appear on the second page, so \cline{1-7} is the correct form for horizontal lines there. \endfirsthead ...


1

I have solved 1 and 2. For 3, I am confused and think that that won't be a nice idea. However, you may add custom text along side continued on next page. \documentclass[12pt]{article} \usepackage{tabularx,longtable,booktabs} %\usepackage{ctable} %% don't use this \begin{document} \setlength\extrarowheight{4pt} ...



Top 50 recent answers are included