von Bebop » Mi 7. Jan 2015, 14:24
Der Grund, dass der Text in den Mehrfachzeilen nicht vertikal mittig zentriert ist, scheinen die nebenstehenden Zeilen zu sein, deren Inhalt zu lang für die Zelle ist, sodass der Text in die nächste Zeile umgebrochen wird. Gibt es eine Möglichkeit dies zu korrigieren?
%% LyX 2.1.1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{array}
\usepackage{multirow}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{setspace}
\makeatother
\usepackage{babel}
\begin{document}
\begin{spacing}{0.8}
\begin{tabular}{>{\centering}p{1cm}>{\centering}p{4cm}}
\multicolumn{2}{c}{{\tiny{}A}}\tabularnewline
\hline
\multirow{23}{1cm}{{\tiny{}a}} & \multirow{4}{4cm}{{\tiny{}Lorem ipsum dolor sit amet}}\tabularnewline
& \tabularnewline
& \tabularnewline
& \tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet}\tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\hline
\end{tabular}
\end{spacing}
\end{document}
Der Grund, dass der Text in den Mehrfachzeilen nicht vertikal mittig zentriert ist, scheinen die nebenstehenden Zeilen zu sein, deren Inhalt zu lang für die Zelle ist, sodass der Text in die nächste Zeile umgebrochen wird. Gibt es eine Möglichkeit dies zu korrigieren?
[code]%% LyX 2.1.1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{array}
\usepackage{multirow}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{setspace}
\makeatother
\usepackage{babel}
\begin{document}
\begin{spacing}{0.8}
\begin{tabular}{>{\centering}p{1cm}>{\centering}p{4cm}}
\multicolumn{2}{c}{{\tiny{}A}}\tabularnewline
\hline
\multirow{23}{1cm}{{\tiny{}a}} & \multirow{4}{4cm}{{\tiny{}Lorem ipsum dolor sit amet}}\tabularnewline
& \tabularnewline
& \tabularnewline
& \tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut}\tabularnewline
\cline{2-2}
& {\tiny{}Lorem ipsum dolor sit amet}\tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\cline{2-2}
& \tabularnewline
\hline
\end{tabular}
\end{spacing}
\end{document}
[/code]