Tag Info

New answers tagged

2

Since you use minipage for the images, you can add some padding there: \documentclass{article} \usepackage[margin=1cm]{geometry}% just for not having overfull lines \usepackage{graphicx} \usepackage{longtable,array} \begin{document} \begin{longtable}{|p{2cm}|p{3cm}|p{8cm}|p{2cm}|} \caption{my caption} \label{table:10.1} \\ \hline \centering title 1 & ...


5

Another way: use head and first head: \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{|p{2cm}|p{3cm}|p{7cm}|p{3cm}|} \caption{my caption} \label{variability_impl_mech} \endfirsthead \endhead \hline 1 & 2 & 3 & 4\\ %\hline \hline 1 & 2 & 3 & 4\\ \hline 1 & 2 & 3 & 4\\ \hline . . . 1 ...


4

\begin{longtable}{|p{2cm}|p{3cm}|p{7cm}|p{3cm}|} \caption{my caption}\\ %%%%<=== \hline and you should put the \label after \caption, which makes more sense.


5

The reason you're getting different spacing results is because (a) you're using \newline instead of \par to insert line breaks and (b) different font sizes are used for items of type Itemhead (\normalsize), Itemplace (\footnotesize), and Iteminfo (\scriptsize). The interline space that is used in a (logical) paragraph depends on the fontsize that's in ...


6

You should always include end of paragraph (not \newline) if you have size changes. An entire paragraph is set with the baselinespacing in force at the end of the paragraph, so you were getting inconsistent settings. \documentclass[11pt,paper=a4,11pt,parskip=half,draft]{scrartcl} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} ...


6

\documentclass{standalone} \begin{document} \begin{tabular}{cc} \refstepcounter{enumi}\theenumi&\roman{enumi}\\ \refstepcounter{enumi}\theenumi&\roman{enumi}\\ \refstepcounter{enumi}\theenumi&\roman{enumi}\\ \refstepcounter{enumi}\theenumi&\roman{enumi}\\ \refstepcounter{enumi}\theenumi&\roman{enumi}\\ ...


2

Use the rules provided by booktabs, that ensure some space is set above and below them. \documentclass[12pt]{article} \usepackage{longtable,array,booktabs} \begin{document} \begin{longtable}[l]{ >{$\displaystyle}l<{$} >{$\displaystyle}l<{$} } \toprule \multicolumn{1}{c}{Time Domain} & \multicolumn{1}{c}{Frequency Domain} \\ \midrule ...


3

array allows you to add additional height to the rows of tabulars globally (or locally if you restrict the scope of the command, of course). This helps ensure consistency and makes it easy to adjust the layout if necessary. For example, you can say \setlength{\extrarowheight}{5mm} However, I think that you will get better results if you use an environment ...


2

Here is a solution. I removed all vertical lines, and used the booktabs, makecell and ltablex packages (the latter combines the functionalities of longtable and tabularx, and introduced some itemize inside cells environments and a few other modifications to the table layout: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} ...


5

longtable does \vspace{\LTPre} before a table and \vspace{\LTpost} after a table, both of which are by default \bigskipammount. Most latex display environments use \addvspace to add their vertical offsets, so that adjacent spaces combine (\addvspace just adds the maximum of any space currently on the vertical list and the space requested) but longtable ...


4

longtable is not a floating environment. You can however delay starting the table using afterpage. \begin{filecontents}{\jobname.lt1} \begin{longtable}{l l l} \caption{Test longtable.} \label{tab:1} \\ % Here are our column headings \hline \hline Header1 & Header2 & Header3 \\ \hline \endfirsthead % Here is the caption ...


0

I figured it out - I just needed to wrap figcaption in a multicolumn parbox. \documentclass{article} \usepackage{array} \usepackage{caption} \usepackage{longtable} \makeatletter \def\figcaption{% \refstepcounter{figure}% \@dblarg{\@caption{figure}}} \makeatother \begin{document} \listoftables ...


3

You can have a more readable longtable (\footnotesize) if you allow for linebreaks from the fourth column, with the makecell package. Here is an attempt: \documentclass[12pt]{article} \usepackage{geometry, amssymb, amsmath, setspace, rotating, titlesec, multirow, adjustbox, array, booktabs, threeparttable, longtable, lscape} \geometry{verbose,letterpaper, ...


1

I solved it this way, the formatting of \rescaldatetime is left to the users, an example is given. Please consider the use of \fromcaldate and \tocaldate and \rescaldatetime carefully. (This is TeX-Code!) %transformations of \time \newcount\hour % \newcount\hours % \newcount\minutes % \hour=\time \divide\hour by 60 \minutes=\time \hours=\hour ...


4

The package you are using adds a ' so you can do the same to LT version after loading longtable: \makeatletter \def\LT@c@ption#1[#2]#3{% \LT@makecaption#1\fnum@table{#3}% \def\@tempa{#2}% \ifx\@tempa\@empty\else {\let\\\space \addcontentsline{lot}{table}{\protect\numberline{\thetable.}{#2}}}% \fi} \makeatother


3

longtable can not work miracles. You can make it fit on a page but you can not make it readable. I think you need to rethink the table layout. \documentclass[12pt]{article} \usepackage{geometry, amssymb, amsmath, setspace, rotating, titlesec, multirow, adjustbox, array, booktabs, threeparttable, longtable, lscape} ...


5

The difference between array and tabular is discussed formally in Difference between tabular and array environment, but I'll reference it here as well: array is probably the fundamental tabular structure in TeX that allows for stacking thing horizontally and vertically. You don't need to include the array package in order to use an array. The package ...


2

(Without knowing much about your cell contents), You can use ltablex package and convert your long table in to breakable tabularx. Here one can use X column type that will be evenly wider. \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{pdflscape} \usepackage{tabularx} \usepackage{ltablex} % uncommenting this line ...


5

I'm not that clear what the code is doing but the fact that the values are not available is not really related to the table other than table cells form a group: you would see the same if you surrounded the settings with {...} the values would revert at the group end. This just makes all your definitions global so they are available outside the group: ...


3

It is almost always better to set these things as a list: \documentclass{article} \newenvironment{factlist}{% \begin{enumerate} \renewcommand\labelenumi{\textsc{\Alph{enumi}}}} {\end{enumerate}} \begin{document} \begin{factlist} \item One two three four five. \item One two three four five. \item One two three four five. \item One two three four five. \item ...


2

A proposition that uses only one Xcolumn, and the booktabs and makecell packages, to improve the look of the table. I also loaded the siunitx package, defined a new unit, \dotperinch and derived a dpi command with one argument, the number of dots per inch: \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...


3

As you're looking to preserve the ability to set the width of the tabular material and to have three equally wide columns, you could proceed as follows: (i) Load the longtable, tabularx, and ltxtable packages, (ii) place the longtable material (which will contain column types defined by the tabularx package) in a separate file, and (iii) use the command ...


3

The table seems easy to use as longtable : \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{longtable} \usepackage{multirow} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} \title{Your Paper} \author{You} \date{\today} \begin{document} \maketitle ...



Top 50 recent answers are included