Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Parallel lines never meet, unless you bend one or both of them.


computers / comp.text.tex / Re: Table problem

SubjectAuthor
* Table problemDieter Britz
`- Re: Table problemPeter Flynn

1
Table problem

<sis2vd$r81$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4195&group=comp.text.tex#4195

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dieterhansbritz@gmail.com (Dieter Britz)
Newsgroups: comp.text.tex
Subject: Table problem
Date: Mon, 27 Sep 2021 09:30:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <sis2vd$r81$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 27 Sep 2021 09:30:22 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="73beeab30501ebdec90e2e543db26c1d";
logging-data="27905"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A+zEL5N6bokomGSeVQxtwpXb+Px3Zv2g="
User-Agent: Pan/0.144 (Time is the enemy; 28ab3ba git.gnome.org/pan2)
Cancel-Lock: sha1:8ugBJsiNf1WIERWfhuzW6RBuxdU=
 by: Dieter Britz - Mon, 27 Sep 2021 09:30 UTC

This is a mini-example of a problem text I have:

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{booktabs}
\begin{document}

\begin{table}[!h]\centering
\caption{Bla bla}
\begin{tabular}{c|ccc|ccc}\\ \toprule
& \multicolumn{3}{|c} {bla}
& \multicolumn{3}{|c} {bla} \\ \midrule
$H$ & $2 \times 2$ & $3 \times 3$ & $4 \times 4$
& $2 \times 2$ & $3 \times 3$ & $4 \times 4$ \\ \midrule
1.0 & 7.07 & 12.5 & 18.5 & 0.77 & 0.77 & 0.80 \\
2.0 & 7.78 & 15.0 & 23.6 & 0.56 & 0.59 & 0.64 \\
5.0 & 8.64 & 18.1 & 30.3 & 0.31 & 0.34 & 0.39 \\
10.0 & 9.04 & 19.6 & 34.1 & 0.18 & 0.20 & 0.23 \\
\bottomrule
\end{tabular}\label{Tab:stst}
\end{table}
\end{document}

How do I get rid of the vertical bar at the top?
--
Dieter Britz

Re: Table problem

<irdkp2Fluc7U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=4196&group=comp.text.tex#4196

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Table problem
Date: Mon, 27 Sep 2021 12:29:46 +0100
Organization: Usenet Labs Bozon Detector Facility
Lines: 33
Message-ID: <irdkp2Fluc7U1@mid.individual.net>
References: <sis2vd$r81$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net ZXCxlLz5EVOtgMTlT7HBjwT3pe0zfTzSQx52mBb+TwlWe+z2Aw
Cancel-Lock: sha1:cJ2iO6YUJCsdu/XCRNMnUrKI/6A=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <sis2vd$r81$1@dont-email.me>
Content-Language: en-US
 by: Peter Flynn - Mon, 27 Sep 2021 11:29 UTC

On 27/09/2021 10:30, Dieter Britz wrote:
> \documentclass[12pt]{article}
> \usepackage{amsmath}
> \usepackage{booktabs}
> \begin{document}
>
> \begin{table}[!h]\centering
> \caption{Bla bla}
> \begin{tabular}{c|ccc|ccc}\\ \toprule
> & \multicolumn{3}{|c} {bla}
> & \multicolumn{3}{|c} {bla} \\ \midrule
> $H$ & $2 \times 2$ & $3 \times 3$ & $4 \times 4$
> & $2 \times 2$ & $3 \times 3$ & $4 \times 4$ \\ \midrule
> 1.0 & 7.07 & 12.5 & 18.5 & 0.77 & 0.77 & 0.80 \\
> 2.0 & 7.78 & 15.0 & 23.6 & 0.56 & 0.59 & 0.64 \\
> 5.0 & 8.64 & 18.1 & 30.3 & 0.31 & 0.34 & 0.39 \\
> 10.0 & 9.04 & 19.6 & 34.1 & 0.18 & 0.20 & 0.23 \\
> \bottomrule
> \end{tabular}\label{Tab:stst}
> \end{table}
> \end{document}

It's there because you have added a blank line before \toprule. If you
remove the \\ and instead use spacing after the caption it should be OK.

.......................................
\begin{table}[!h]\centering
\caption{Bla bla}
\medskip
\begin{tabular}{c|ccc|ccc} \toprule
.......................................

Peter


computers / comp.text.tex / Re: Table problem

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor