Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Finding that a certain table in my document had to span several pages, and that longtable doesn't fit the bill because I have to change the running header mid-table, I turned to supertabular.

To get the vertical spacing right I use booktabs.

Since that broke the vertical lines surrounding the table, I thought about working around that by wrapping the whole table in mdframed.

So far about the history why anyone would want to wrap a supertabular with mdframed in the first place. ;-)

Now to the issue at hand: It appears that the two packages disagree on positioning by a couple of pt...?

Source:

\documentclass{article}

\usepackage{mdframed}
\usepackage{supertabular}

\begin{document}

\begin{mdframed}[innerleftmargin=0pt,innerrightmargin=0pt]
\begin{supertabular*}{\textwidth}{l@{\extracolsep{\fill}}l}
\hline
Foo & Bar\\
\hline
\end{supertabular*}
\end{mdframed}

\end{document}

Somewhat unexpected result:

enter image description here

Erm... huh?

EDIT: Further testing showed that it is supertabular's hline being pushed to the right (out of the text area), not mdframed pushed to the left. Testing also showed this to be specific to supertabular, as neither longtable, tabularx or tabular* displayed similar behaviour. Bug report mailed to supertabular maintainer, CC mdframed maintainer.

share|improve this question
    
I read your e-mail. Thanks –  Marco Daniel Mar 2 '12 at 14:48
    
@MarcoDaniel: Problem resolved, thanks. –  DevSolar Mar 3 '12 at 12:12

1 Answer 1

up vote 2 down vote accepted

You probably have some older libraries.

Using your code with TeXLive (updated today) and adding \usepacakge{showframe} I get:

enter image description here

Without the showframe package I get;

enter image description here

Notes:

Code:

\documentclass{article}

\usepackage{mdframed}
\usepackage{supertabular}
\usepackage{showframe}

\begin{document}
\begin{mdframed}[innerleftmargin=0pt,innerrightmargin=0pt]
    \begin{supertabular*}{\textwidth}{l@{\extracolsep{\fill}}l}
        \hline
        Foo & Bar\\
        \hline
    \end{supertabular*}
\end{mdframed}
\end{document}
share|improve this answer
    
Indeed, a recent update seems to have solved the issue. Sorry for the fuzz. –  DevSolar Mar 3 '12 at 12:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.