Document Classesvertical lines in fixed-width supertabular*

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
baslers
Posts: 4
Joined: Fri Mar 14, 2008 11:09 am

vertical lines in fixed-width supertabular*

Post by baslers »

Hi

I have a problem with the placement of the right-most vertical line in a fixed-width supertabular*. As desired, the supertabular* comes out as wide as the text below (\textwidth), but the right-most vertical line is not correctly placed. What can I do about this?

The code for the definition of the table is:

\begin{supertabular*}{\textwidth}{@{\extracolsep{\fill}}|v{3cm}|v{1cm}|v{3.5cm}|v{3.5cm}|}

Feel free to have a look at the minimal example in the attachment and the pdf of what I get when I compile it.

Thanks in advance for any suggestions!
Attachments
fixed-width_supertabular_vertical_lines.rar
(12.34 KiB) Downloaded 438 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

vertical lines in fixed-width supertabular*

Post by Juanjo »

Here is your code with a few changes:

Code: Select all

\documentclass[a4paper,11pt,titlepage]{article}

\usepackage{supertabular}       
\usepackage{array}
%\newcolumntype{v}[1]{>{\raggedright \arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{v}{>{\raggedright}p}

\begin{document}

\tablehead {% 
\hline
Description & Com/ Cust & Origin & Destination \tabularnewline
\hline \hline
}
\tabletail{%
\hline \hline
\multicolumn{4}{|c|}{continued on next page $...$ } \\
\hline
}
\tablelasttail{%
\hline \hline	
\multicolumn{4}{|c|}{continued on next page $...$ } \\
\hline}
\bottomcaption{Overview of Leads}
\label{tab:lead_overview}


\begin{supertabular*}{\textwidth}{@{\extracolsep{\fill}}|v{3cm}|v{1cm}|v{3.5cm}|v{3.5cm}@{\extracolsep{0pt}}|}
\hline
Emergency Off Lead & Cu & Emergency Off Button & Universal
Motion Interface \tabularnewline
\hline
\end{supertabular*}

bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla bla bla 

\end{document}
Post Reply