One way is to shift up the skip prior to the mid-height \tabucline
with a \\[-1pt]
. See below for 2nd approach.
%Dokumentclass
\documentclass[landscape]{letter}
%Packages
\usepackage[landscape]{geometry}
\usepackage[utf8] {inputenc}
\usepackage {multirow}
\usepackage {tabu}
%Formatting
\pagestyle{empty} %Remove numbering
\begin{document}
\begin{tabu}{ |[1pt] l | l l | l | l |[1pt] }
\tabucline[1 pt]{1-5}
\multicolumn{2}{ |[1pt] l }{ } & \multicolumn{3}{ |[1pt] l |[1pt]}{ } \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & \multicolumn{2}{ l |[1pt] }{ } \\ \hline
y & & \multicolumn{1}{ |[1pt] l | }{ } & \multicolumn{2}{ l |[1pt] }{ } \\[-1pt] \tabucline[1 pt]{3-5}
\hline
x & & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \tabucline[1 pt]{1-5}
\end{tabu}
\end{document}
Alternately, if you want the thin line to bisect the thick line, then the approach: \\[-1pt] \tabucline[1 pt]{3-5}\\[-12.5pt]\hline
works.
%Dokumentclass
\documentclass[landscape]{letter}
%Packages
\usepackage[landscape]{geometry}
\usepackage[utf8] {inputenc}
\usepackage {multirow}
\usepackage {tabu}
%Formatting
\pagestyle{empty} %Remove numbering
\begin{document}
\begin{tabu}{ |[1pt] l | l l | l | l |[1pt] }
\tabucline[1 pt]{1-5}
\multicolumn{2}{ |[1pt] l }{ } & \multicolumn{3}{ |[1pt] l |[1pt]}{ } \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & \multicolumn{2}{ l |[1pt] }{ } \\ \hline
y & & \multicolumn{1}{ |[1pt] l | }{ } & \multicolumn{2}{ l |[1pt] }{ } \\[-1pt] \tabucline[1 pt]{3-5}\\[-12.5pt]
\hline
x & & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \hline
& & \multicolumn{1}{ |[1pt] l | }{ } & & \\ \tabucline[1 pt]{1-5}
\end{tabu}
\end{document}
There is no syntax c{<width>}
for a centered column of fixed width.
If your version the array
package is 2.4f (2017/11/07) or newer you can use the column type w{<alignment>}{<width>}
that is
\begin{tabular}{|l|w{c}{4cm}|}
for a centered column of fixed width (this needs the array
package, of course). However, this overprints if the cell contents is wider than the width specified. And this would be the case for the table in your MWE.
I suggest to instead define a suitable paragraph column yourself:
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
This need the array
package, too, of course.
\documentclass[12pt]{book}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\begin{document}
\begin{tabular}{|l|C{4cm}|}
\hline
Classe de caractère & Siginification\\
\hline
[abc$^\wedge$] & Un unique caractère qui peut être a, b ou c \\
\hline
$[^abc]$ & Le $^\wedge$ exprime la négation: cette classe représente un
unique caractère, qui peut prendre toutes les valeurs, sauf a,
b et c \\
\hline
\end{tabular}
\end{document}
If I understand you table correctly I also like to suggest not using mathmode but verbatim:
\documentclass[12pt]{book}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{array}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\newcommand\code[1]{\texttt{#1}}
\begin{document}
\begin{tabular}{|l|C{4cm}|}
\hline
Classe de caractère & Siginification\\
\hline
\verb+[abc^]+ & Un unique caractère qui peut être \code{a}, \code{b} et
\code{c} \\
\hline
\verb+[^abc]+ & Le \verb+^+ exprime la négation: cette classe représente un
unique caractère, qui peut prendre toutes les valeurs, sauf
\code{a}, \code{b} et \code{c} \\
\hline
\end{tabular}
\end{document}
Best Answer
Let us list the errors first.
"..."
but``...''
\multirow{2}{*}{H}
takes three arguments -\multirow{<rows>}{<width>}{<content>}
. You have missed the third argument. Even if you don't want to have text, you should have it but without content like\multirow{2}{*}{}
.\textsubscript
isn't defined by LaTeX. You have to use\usepackage{fixltx2e}
in the preamble to make it work. BTW are you trying to write a chemical formula? If so, there are packages meant for that job. Or are thoseH\textsubscript{02}
s mathematical variables? Please elaborate.To make colored cells, load
colortbl
package orusepackage[table]{xcolor}
(Both are equivalent). and the use\cellcolor{<color>
inside the cell:or
booktabs
package to learn how to produce a good table.Now your code should be: