Quantcast
Channel: Table - consequential lines - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

Table - consequential lines

$
0
0

How to change this table to the line left continue (1. column can be left align) and how to make a space in cell with CFF? Is it possible to center text in cells vertically? Thank you

\documentclass[12pt,a4paper]{report}\setlength\textwidth{145mm}\setlength\textheight{247mm}\setlength\oddsidemargin{15mm}\setlength\evensidemargin{15mm}\setlength\topmargin{0mm}\setlength\headsep{0mm}\setlength\headheight{0mm}\let\openright=\clearpage\usepackage[a-2u]{pdfx}\usepackage[czech]{babel}\usepackage{lmodern}\usepackage[T1]{fontenc}\usepackage{textcomp}\usepackage[utf8]{inputenc}\usepackage{amsmath, graphicx}\usepackage{array}\usepackage{caption}\usepackage[output-decimal-marker={,}]{siunitx}\NewDocumentCommand{\anote}{}{\makebox[0pt][l]{$^*$}}\usepackage[usenames]{xcolor}\usepackage{amsfonts}       \usepackage{makecell,threeparttable}\usepackage{amssymb}\usepackage{dcolumn}\setlength\heavyrulewidth{0.25ex}\usepackage{multirow, tabularx}\newcommand{\mc}[1]{\multicolumn{1}{c}{#1}}\usepackage{ragged2e}\newcolumntype{d}[1]{D{.}{,}{#1}}\newcolumntype{L}{>{\RaggedRight\arraybackslash}X}\newcommand\stack[1]{\multicolumn{1}{c}{\shortstack{#1}}}\newcommand{\angstrom}{\mbox{\normalfont\AA}}\newcolumntype{C}{>{\Centering\arraybackslash\hspace{0pt}}X}\newcommand\mytab[1]{%   \bgroup%   \setlength\extrarowheight{0pt}%   \smash{\begin{tabular}[t]{@{}c@{}} #1 \end{tabular}}%   \egroup}%%% code block to handle the OP's follow-up question -- see%%% https://tex.stackexchange.com/a/112002/5001 for the source\usepackage{regexpatch}\makeatletter% Change the `-` delimiter to an active character\xpatchparametertext\@cline{-}{\cA-}{}{}\makeatother\hfuzz=99pt\begin{document}\begin{table}[ht!]    \scriptsize    \setlength\extrarowheight{2pt}    \setlength\tabcolsep{2pt} % default: 6pt    \begin{threeparttable}    \begin{tabularx}{\textwidth}{|*{5}{C|}>{\hsize=1.6\hsize}C| >{\hsize=0.4\hsize}C| *{3}{C|}}    \hline    \multirowcell{4}{Veličina} & \multicolumn{3}{c|}{[1]} & \multicolumn{2}{c|}{[2]} & [3] & \multicolumn{3}{c|}{[4]} \\    \cline{2-10}    \multicolumn{1}{|c|}{} &\multicolumn{3}{c|}{\multirowcell{1.5}{PHOEBE fotometrie a RV}}& \multirow{3}{=}{\centering POWR analýza} & %    \multirow{3}{=}{\centering Řešení světelných křivek a RV} &    \multirowcell{3}{CFF }& \multirow{3}{=}{\centering Model malá hmotnost} & \multirow{3}{=}{\centering Model střední hmotnost} & \multirow{3}{=}{\centering Model velká hmotnost} \\[1ex]    \cline{2-4}& \multirowcell{1.5}{Řešení I} & \multirowcell{1.5}{Řešení II} &\multirowcell{1.5}{Řešení III} & & & & & &\\ [1.5ex]    \hline        \end{tabularx}\vskip 0.3ex    \begin{tabularx}{\textwidth}{C|*{4}{C} >{\hsize=1.3\hsize}C >{\hsize=0.7\hsize}C *{3}{C}}     \hline     $P$ (dny) & & & & & & & & \\     $T_0$ (RJD) & & & & & & & & \\     $e$  ( ) & & & & & & & & \\     $\omega$ (\si{\degree}) & & & & & & & & \\     $K_1$ (\si{\kilo\meter\per\second}) & & & & & & & & \\     $K_2$ (\si{\kilo\meter\per\second}) & & & & & & & & \\     $a$ ($\mathrm{M}_{\odot}$) & & & & & & & & \\     $i$  (\si{\degree}) & & & & & & & \\     $T_1$ (\si{\kelvin}) & & & & & & & \\     $T_2$ (\si{\kelvin}) & & & & & & & \\     $\Omega_1$ (\si{\degree}) & & & & & & & \\     $\Omega_2$ (\si{\degree}) & & & & & & & \\     $q = \dfrac{M_2}{M_1}$ & & & & & & & \\     $M_1$ ($\mathrm{M}_{\odot}$) & & & & & & & \\     $M_2$  ($\mathrm{M}_{\odot}$) & & & & & & & \\     $R_1$ ($\mathrm{R}_{\odot}$) & & & & & & & \\     $R_2$ ($\mathrm{R}_{\odot}$) & & & & & & & \\     $V_{\gamma}$ (\si{\kilo\meter\per\second}) & & & & & & & \\     \end{tabularx} \begin{tablenotes}[para,flushleft]    [1] \\    [2] \\    [3] \\    [4] \\    \end{tablenotes}\end{threeparttable}       \end{table}\end{document}

enter image description here

EDIT

\documentclass[12pt,a4paper]{report}\setlength\textwidth{145mm}\setlength\textheight{247mm}\setlength\oddsidemargin{15mm}\setlength\evensidemargin{15mm}\setlength\topmargin{0mm}\setlength\headsep{0mm}\setlength\headheight{0mm}\let\openright=\clearpage\usepackage[a-2u]{pdfx}\usepackage[czech]{babel}\usepackage{lmodern}\usepackage[T1]{fontenc}\usepackage{textcomp}\usepackage[utf8]{inputenc}\usepackage{amsmath, graphicx,threeparttable}\usepackage{array}\usepackage{caption}\usepackage[output-decimal-marker={,}]{siunitx}\NewDocumentCommand{\anote}{}{\makebox[0pt][l]{$^*$}}\usepackage[usenames]{xcolor}\usepackage{amsfonts}       % matematické fonty\usepackage{amsthm}         % sazba vět, definic apod.\usepackage{bbding}         % balíček s nejrůznějšími symboly                % (čtverečky, hvězdičky, tužtičky, nůžtičky, ...)\usepackage{bm}             % tučné symboly (příkaz \bm)\usepackage{fancyvrb}       % vylepšené prostředí pro strojové písmo\usepackage{indentfirst}    % zavede odsazení 1. odstavce kapitoly\usepackage{natbib}         % zajištuje možnost odkazovat na literaturu                % stylem AUTOR (ROK), resp. AUTOR [ČÍSLO]\usepackage[nottoc]{tocbibind} % zajistí přidání seznamu literatury,\usepackage{icomma}         \usepackage{booktabs}       % lepší vodorovné linky v tabulkách\usepackage{paralist}       % lepší enumerate a itemize\usepackage{makecell}\usepackage{amssymb}\usepackage{dcolumn}\setlength\heavyrulewidth{0.25ex}\usepackage{multirow, tabularx}\newcommand{\mc}[1]{\multicolumn{1}{c}{#1}}\usepackage{ragged2e}\newcolumntype{d}[1]{D{.}{,}{#1}}\newcolumntype{L}{>{\RaggedRight\arraybackslash}X}\newcommand\stack[1]{\multicolumn{1}{c}{\shortstack{#1}}}\newcommand{\angstrom}{\mbox{\normalfont\AA}}\newcolumntype{C}{>{\Centering\arraybackslash\hspace{0pt}}X}\newcommand\mytab[1]{%   \bgroup%   \setlength\extrarowheight{0pt}%   \smash{\begin{tabular}[t]{@{}c@{}} #1 \end{tabular}}%   \egroup}%%% code block to handle the OP's follow-up question -- see%%% https://tex.stackexchange.com/a/112002/5001 for the source\usepackage{regexpatch}\makeatletter% Change the `-` delimiter to an active character\xpatchparametertext\@cline{-}{\cA-}{}{}\makeatother\hfuzz=99pt\begin{document}\begin{table}[ht!]    \scriptsize    \renewcommand{\cellset}{\renewcommand{\arraystretch}{0.75}\scriptsize}    \setlength\extrarowheight{2pt}    \setlength\tabcolsep{2pt} % default: 6pt    \begin{threeparttable}    \begin{tabularx}{\textwidth}{C|*{2}{C} >{\hsize=0.7\hsize}C >{\hsize=1.3\hsize}Cc*{3}{C}}    \Xhline{0.8pt}\noalign{\vskip 0.4ex}\Xhline{0.8pt}%    \multirowcell{4}{Veličina} & \multicolumn{2}{c|}{[1]} & \multicolumn{2}{c|}{[2]} & \multicolumn{1}{c|}{[3]} & \multicolumn{3}{c|}{[4]} \\[0.4ex]    \cline{2-9}    \multicolumn{1}{|c|}{} &\multicolumn{2}{c|}{\multirowcell{1.5}{PHOEBE fotometrie a RV}}&\multicolumn{1}{c|}{\multirowcell{3}{POWR\\ analýza}} & %    \multicolumn{1}{c|}{\multirowcell{3}{Řešení\\ světelných\\ křivek a RV}} &   \multicolumn{1}{c|}{ \multirowcell{3}{CFF }}&\multicolumn{1}{c|}{ \multirowcell{3}{Model\\malá\\ hmotnost}} & \multicolumn{1}{c|}{\multirowcell{3}{Model\\ střední\\ hmotnost}} & \multicolumn{1}{c|}{\multirowcell{3}{Model\\ velká\\ hmotnost}} \\[1ex]    \cline{2-3}& \multicolumn{1}{c|}{\multirowcell{1.5}{Řešení II}} & \multicolumn{1}  `{c|}{\multirowcell{1.5}{Řešení III}} & \multicolumn{1}{c|}{}& \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{} & \multicolumn{1}{c|}{} \\ [1.5ex]`    \Xhline{0.8pt}%     $P$ (dny) & & & & & & & \\     $T_0$ (RJD) & & & & & & && \\     $e$ ( ) & & & & & & & \\     $\omega$ (\si{\degree}) & & & & & & & \\     $K_1$ (\si{\kilo\meter\per\second}) & & & & & & & \\     $K_2$ (\si{\kilo\meter\per\second}) & & & & & & & \\     $a$ ($\mathrm{M}_{\odot}$) & & & & & & & \\     $i$ (\si{\degree}) & & & & & & & \\     $T_1$ (\si{\kelvin}) & & & & & & & \\     $T_2$ (\si{\kelvin}) & & & & & & & \\     $\Omega_1$ (\si{\degree}) & & & & & & & \\     $\Omega_2$ (\si{\degree}) & & & & & & & \\     $q = \dfrac{M_2}{M_1}$ & & & & & & & \\     $M_1$ ($\mathrm{M}_{\odot}$) & & & & & & & \\     $M_2$ ($\mathrm{M}_{\odot}$) & & & & & & & \\     $R_1$ ($\mathrm{R}_{\odot}$) & & & & & & & \\     $R_2$ ($\mathrm{R}_{\odot}$) & & & & & & & \\     $V_{\gamma }$ (\si{\kilo\meter\per\second}) & & & & & & & \\         \end{tabularx}    \begin{tablenotes}[para,flushleft]    \item[]\\{[1]} \\    {[2]} \\    {[3]} \\    {[4]} \\    \end{tablenotes}    \end{threeparttable}    \end{table}\end{document}

Viewing all articles
Browse latest Browse all 2

Trending Articles