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.

I try to build a tabular with latex and experience a little overflow of the horizontal line on my tabular on the left. whatever I tried everything just switched the overflow so it sometimes happens on the right side and with other configurations, like shown, on the left. It's just about 1 mm but that shouldn't be...

Heres the code that procudes it:

\begin{table}[H]
\centering
        \begin{tabular}{|l||p{10cm}|}
        \hline
        \textbf{Risikobeschreibung} & xyz\\
        \hline
        \textbf{Auswirkungen}   & xyz\\
        \hline
        \textbf{Warnzeichen}    & xyz\\
        \hline
        \textbf{Eintrittswahrscheinlichkeit}    & xyz\\
        \hline
        \textbf{Vermeidungsstrategie}   & xyz\\
        \hline
        \textbf{Maßnahmen bei Eintreten} & xyz\\
        \hline\hline
        \end{tabular}
        \caption{Risikoanalyse}
        \label{tab:Risikoanalyse}

\end{table}

Overflow of margin on left side just about 1mm long very tiny

Hope you can see it on the image.

share|improve this question

closed as too localized by lockstep, Martin Schröder, Claudio Fiandrino, Kurt, Stefan Kottwitz Feb 12 '13 at 14:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
I can't replicate this on MikTeX 2.9 neither XeLaTeX nor PDFLaTeX. Can you complete your example to a minimal working example (MWE) that illustrates your problem ? –  percusse Jan 31 '13 at 21:38
    
As @percuße said you need to provide a full example, however you might try \usepackage{array} as that changes the rule positioning logic as well as its other table extensions. –  David Carlisle Jan 31 '13 at 21:48

2 Answers 2

You can easily use tabular* instead of tabular. Then you can set the width of your table to textwidth (width of the text).

Consider the following code:

\begin{table}[H]
\centering
        \begin{tabular*}{\textwidth}{|l||p{10cm}|}
        \hline
        \textbf{Risikobeschreibung} & xyz\\
        \hline
        \textbf{Auswirkungen}   & xyz\\
        \hline
        \textbf{Warnzeichen}    & xyz\\
        \hline
        \textbf{Eintrittswahrscheinlichkeit}    & xyz\\
        \hline
        \textbf{Vermeidungsstrategie}   & xyz\\
        \hline
        \textbf{Maßnahmen bei Eintreten} & xyz\\
        \hline\hline
        \end{tabular*}
        \caption{Risikoanalyse}
        \label{tab:Risikoanalyse}

\end{table}
share|improve this answer
up vote 0 down vote accepted

The problem seems to be a displaying error of adobe reader.

After printing the overflow is not visible but on adobe reader it is.

So for me it's nothing to care if I print it.

share|improve this answer

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