Tag Info

New answers tagged

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


5

Use the @ operator for setting the margin: \documentclass{memoir} \usepackage{longtable} \usepackage{lipsum} \setlength{\footmarkwidth}{\leftmargin} \setlength{\footmarksep}{0em} \footmarkstyle{#1\hfill} \begin{document} \lipsum[1-4] \begin{longtable}[l]{ @{\hspace*{\leftmargin}} ll} Chapters & Description\\ 1--13 & ...


2

Package ltxtable allows the combination of longtable with tabularx column type X. The latter is useful for the last column with the description text. The first columns can be set via column type l. The indentation in the description part can be achieved via \hangindent and \hangafter (assuming there is only one paragraph). Since the package ltxtable ...


4

It is a common misunderstanding about m it does not mean place the content in the middle of the vertical space for that cell. It means: place the reference point for the content in the middle of the content. I added a line to your image showing the reference points of the cells in the second row, the reference point of column 1 is the middle of the 40 ...


2

I redefined \LT@makecaption from longtbale so as to typeset the captions in a similar way that svjour3 typesets table captions: \documentclass{svjour3} \usepackage{longtable} \makeatletter \def\LT@makecaption#1#2#3{% \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{% \captionstyle ...


0

You were doubling some vertical rules inside the \multicolumns and this was giving you thicker rules: \documentclass{article} \usepackage[table]{xcolor} \usepackage{multirow} \usepackage{longtable} \usepackage{array} \begin{document} \begin{longtable}{| >{\centering}p{4cm} | p{2cm} | p{7cm} |} \hline \multicolumn{3}{| >{\centering}p{14cm} ...


0

This response was possible with the help of @UlrikeFischer comments. Remove caption package is the solution. To conserve the caption's option, use the babel option like captionsfrench. % !TEX encoding = UTF-8 Unicode % !TEX TS-program = arara \documentclass{scrbook} %\usepackage{caption}\captionsetup[table]{name=\scshape Tableau, position=bottom} ...


2

You can use p-width command line option to save width of p columns: htlatex filename "xhtml,p-width" This doesn't support m columns by default, but you can add support for them easily with this configuration file, my.cfg: \Preamble{xhtml,p-width} \catcode`\:=11 \Configure{halignTD} {}{} {<}{\HCode{ style="white-space:nowrap; text-align:left;"}} ...


0

As mentioned in the comments, a tabular construct is not designed to allow text to flow from one column to another. Tables have a fixed number of columns and the text is in one of those columns. Thus you will need to rethink either your input format (a multicolumn approach rather than a tabular one) or your output expectations.


3

Some suggestions: The main issue that's making the longtable wider than the text block is the material in the header row. To shrink the width of the cells (without outright deletion of any material...), you need to reduce the value of \thickmuskip, the parameter that governs the amount of whitespace that's inserted around the < symbols. In the example ...



Top 50 recent answers are included