Tag Info

Hot answers tagged

4

Is this what you like to obtain: \documentclass[11pt, border=1mm, preview]{standalone} \usepackage[many]{tcolorbox} \begin{document} \begin{table} \caption{A table with rounded corners} \centering \tcbox[left=0mm,right=0mm,top=0mm,bottom=0mm,boxsep=0mm, boxrule=0.4pt, colback=white]% set to your wish ...


3

You can use caption package to do so. Then use captionsetup to format the caption to your likings. \documentclass{article} \usepackage{longtable} \usepackage{caption} \begin{document} \captionsetup[longtable]{labelfont=bf,textfont=it,labelsep=newline} \begin{longtable}{|c|c|} \caption{A caption.}\label{tab1} \\ \hline 1 & 2 \\ \hline 3 & 4 \\ ...


3

Since you are using knitr, the simplest thing is to add \\ every tenth row using add.to.row parameter of print.xtable. This is a very rough code; in the general case you need also to check that MatrixData has more than 10 rows. \documentclass{article} \usepackage{longtable} \begin{document} \listoftables << label=LongTable, results='asis', echo ...


3

Your style uses a supertabular, which seems to break a bit to early. You could try the style "long" instead. You could additionally enlarge the page with \enlargethispage{2\baselineskip} before \printglossaries.


3

You need to account for the column separation and width of the rules: \documentclass[10pt,twoside]{article} \usepackage[a4paper,tmargin=1.75cm, bmargin=0.5cm, lmargin=1.5cm, rmargin=1cm]{geometry} \usepackage{longtable} \usepackage{array} \begin{document} \begin{longtable}{|p{2cm}|p{4cm}| p{2cm}| } \hline X & X & X \\ \hline X & ...


3

You can also set line spacing locally in a clean way as this: \documentclass{article} \usepackage{longtable} \usepackage{setspace} \begin{document} \begin{spacing}{.7} \begin{longtable}{ l | l | p{5 cm} } a & b & a small phrase \\ a & b & a small phrase \\ a & b & here is a long sentence which wraps to the next line, ...


3

You could just create the caption after setting the table: \documentclass{memoir} \usepackage{longtable, booktabs, multirow, caption} \usepackage[left=1cm,right=1cm]{geometry} \begin{document} \begingroup \tiny \renewcommand{\arraystretch}{0.8} \setlength{\tabcolsep}{3pt} \begin{longtable}[c]{r*{13}{c}} \toprule \multirow{2}{*}{\#} & \# ...


3

I would also suggest to use caption.sty. I suggest you put your caption above your longtable and use the facilities provided by caption.sty to customize it. This means you can use \caption and not \captionof. I would also drop multirow and use makecell (see below): \documentclass{memoir} \usepackage{longtable, booktabs, multirow, caption, lmodern, ...


2

You do not say why Ulrike Fischer's suggestion does not solve your problem in either your original document or the MWE. Switching to long solves the problem for the MWE when I test. So I'm guessing that you do not like the different positioning of the tabular. But this does not mean the problem isn't solved. It just means that solving it has created a new ...


2

to typsete an align or a displayed equation using \[...\] inside a column, you need a paragraph type column; either p{<length>} or m{<length>} (the latter provided by array package). However, in your example case, I'd suggest you to use aligned instead of align* and to suppress the vertical rules and use the features provided by the booktabs ...


2

You have to put your table-note-marks in braces and add them to the siunitx column width calculation. % arara: pdflatex \documentclass[11pt,a4paper,oneside]{article} \usepackage[english]{babel} \usepackage{setspace} \onehalfspacing % not needed here... but you should prefer this over color \usepackage{xcolor} \usepackage{pdflscape} ...


2

This uses the titlesec package to build on David's suggestion and converts the use of \newenvironment to \newcommand since you want a command rather than an environment judging by the syntax you wish to use. \documentclass[12pt]{report} \usepackage{titlesec} \titleformat{\section}[block]{\centering\bfseries\sffamily\large}{\thesection}{0pt}{}{} ...


2

The threeparttablex is done for that: bringing the functionalities of threeparttable to longtable. It defines a ThreePartTable and a TableNotes environments. The latter must be declared at the beginning of the ThreePartTable environment, before longtable. It is inserted with an \insertTableNotes command, wherever you want.The tablenotes can be referred to. ...


1

\documentclass[a4paper,oneside,abstracton]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[english]{babel} \usepackage{threeparttable} \usepackage{longtable} \usepackage[a4paper,bottom=3.1cm]{geometry} \usepackage{booktabs} \begin{document} %\begin{table}[!htb] %\centering %\tiny \small % ...


1

A neat use of TeX and LaTeX! :-) The \addcontentsline directives precede \begin{longtable}, and the two directives aren't guaranteed to be executed on the same page. Since the table formats are all the same for all longtables, except for the caption, it's handy to create a macro that (a) contains all the table header instructions and (b) places the ...


1

This is an approach without using \caption. It uses titlesec.sty and titletoc.sty to customize the appearance of table of contents and the sectioning commands. The command \turfhead controls the longtables headings. It uses \nameref*{<subsec.name>} for cont. captions. If you want to revise the name of the products, you only need to edit the ...


1

You can get latex back on track by using \clearpage before the section heading. Note that longtable should never be in center environment it does not affect the alignment of longtables as they are always full width, it just adds spurious vertical space). I also changed [h] to [ht] as [h] should never be used on its own. \documentclass[10pt]{article} ...



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