Hot answers tagged

7

Drop the dreadful table environment outside of longtable (the table is meant to break across pages, not to float away) and use \caption{...}\label{...}\endfirsthead if your caption is meant to be at the top, e.g. \begin{longtable}{ p{1,5cm} | p{11cm} } \caption{Semantic roles and their definition for the verb \textit{sa\Alif ala} `ask (for)' } ...


3

Add \setlength\LTcapwidth{\linewidth} to your code, right after (or before) setting \LTleft and \LTright. Background: As opposite to the regular \caption the one from longtable is limited to the width \LTcapwidth. When using in portrait mode, the default value is quite reasonable, but too short in landscape mode. Complete example document: ...


2

Here's how I would recast the table as a longtable; I've commented out the packages that aren't needed to generate the table. \documentclass[12pt,a4paper]{article} %\usepackage{amssymb} %\usepackage{graphicx} %\usepackage{amsmath} %\usepackage{graphicx} %\usepackage{siunitx} \usepackage{booktabs} %\usepackage{natbib} %\usepackage{url} %\usepackage{float} ...


2

Instead of RLtext environment to insert arabic text you can use \RL{arabic text} for inserting short arabic text inside latin paragraphs. \documentclass[12pt]{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{arabtex} \usepackage{semtrans} \usepackage{longtable} \usepackage{array} \usepackage{tipa} \setarab \begin{document} ...


2

Minimising your example to remove irrelevancies, perhaps something like this would work? \documentclass{article} \usepackage{array} \renewcommand*{\arraystretch}{2.0} \usepackage{longtable} \setlength\LTleft{15pt} \setlength\LTright{0pt} \newcounter{myconversion} \setcounter{myconversion}{0} ...


2

Here is a simple solution, just using a counter for the rows, and the eqparbox package, for the alignment of the row numbers. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{fourier} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} \renewcommand*{\arraystretch}{2.0} \usepackage{longtable, array} ...


2

Just to say that I really do not recommend this kind of table. I'd encourage you to at least read and consider the advice in the booktabs manual. It maybe a little extreme, but tables like this make me understand only too well the package's case for radicalism ;). If you must: \documentclass[a4paper, 12pt]{article} ...


2

Here is a solution with \tablex, which brings the functionalities of longtable to tabularx, and makecell to give some vertical padding to rows where necessary. As a result, the table has a simpler code. Also I took the liberty to slightly simplify the preamble. \documentclass[a4paper, 12pt]{article} \usepackage{fouriernc} \usepackage[utf8]{inputenc} ...


2

This solution uses geometry to get more sensible page margins, booktabs for nicer rules, makecell to rotate some headers and ensure consistent formatting. As it is, I think the information could be presented much more usefully and concisely. Perhaps not all figures are 1 in your real data, but that is likely to affect the layout of the table, too, unless ...


1

I also simplified your sub-arrays using pmatrix. Just for fun I used TikZ to add tops and bottoms to the left and right sides. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{fourier} ...


1

Since there's no setup or clue which class is uses, I provide a generic solution with tocloft and the \cfttabpresnum command (which uses the space before the table number is typeset in the LoT) as well as increasing the number width by adding some value to \cfttabpresnumwidth. \documentclass{book} \usepackage{longtable} \usepackage{tocloft} ...


1

Ok, I think I got it. I just need to add \tabularnewline after the captions.


1

Use \caption package and add the following line into your preamble: \usepackage{caption} \captionsetup[table]{labelfont=bf,textfont=normalfont,singlelinecheck=on,justification=raggedright}


1

Use the \thead command from makecell. Ir allows linebreaks and a common formatting of column heads. dded an \extrarowheight so the vertical spacing doesn't look so tight: \documentclass{article} \usepackage[showframe, nomarginpar]{geometry} \usepackage{array} \usepackage[labelfont=bf]{caption} \captionsetup{format=plain,font=footnotesize} ...



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