Tag Info

Hot answers tagged

6

the hyphenation patterns for English do not help here. That's the problem seqsplit is trying to fix, but you are not using it in all the cell. Note it is unrelated to longtable you would get the same behavior in a paragraph on the main page. \documentclass{report} \usepackage[left=65pt,top=28pt,right=65pt,bottom=65pt]{geometry}% ...


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}\\ ...


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} ...


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: ...


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 ...


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

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


4

m column type aligns at the middle (vertical) and you used m type in third column. That particular cell has more content that wraps in to second line. As a result the vertical center point is aligned. If you use p column for third, we get: \documentclass[]{article} \usepackage{longtable} \usepackage{array} \usepackage{booktabs} \begin{document} ...


4

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 ...


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 ...


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 ...


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 ...


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

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} ...


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 ...


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, ...


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} ...


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} ...


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 ...


2

m does not mean centre vertically in the space finally allocated to the cell, it means "put the reference point of the contents in its vertical centre. l',c,rcolumns (that you do not have here) have their reference point on their baseline.pcolumns have their reference point on the baseline of their top row, and if you had abcolumn its reference point ...


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 ...


1

If you don't want to manually add spaces in the text to define points where you can break lines you can adapt the solution from How to wrap text in a table when there are no spaces at which to break the line? to define a comma as a breakable character: Notes: The showframe package was used just to show the page margins. It is not needed in your actual ...


1

Reducing the value of \tabcolsep -- the parameter that governs the amount of intercolumn whitespace -- from the default value of 6pt to 2pt, combined with eliminating the whitespace entirely to the left of the first column and to the right of the final column, succeeds in fitting the table into the available space. Two additional comments: (i) You should ...


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 ...



Only top voted, non community-wiki answers of a minimum length are eligible