이 경우 실제 텍스트는 관련이 없습니다. 형식과 레이아웃은 제가 관심을 갖고 있는 것입니다. 제가 시도한 모든 것은 기만적인 것으로 나타났습니다.
나는 당신의 아이디어를 연구하는 데 참을성이 없습니다!. 미리 감사드립니다.
답변1
여기에 한 가지 시도가 있습니다. 그래도 색상을 조정할 수 있습니다.
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{array}
\usepackage{booktabs}
\usepackage{caption}
\captionsetup[table]{font=sf,labelfont={color=red,bf,sf},textfont=sf,labelsep=space}
\newcolumntype{G}{>{\raggedright\arraybackslash}p{\dimexpr0.25\textwidth-2\tabcolsep\relax}}
%% \arrayrulecolor{magenta} %%% uncomment this to have all rules in this color
\begin{document}
\begin{table}[htb]
\centering
\caption[Some table]{This is my table}\label{tab:mytab}
\begin{tabular}{*{3}{G}>{\textcolor{green!40!blue}\bgroup\arraybackslash}G<{\egroup}}
\arrayrulecolor{magenta}\toprule
\scshape Some text & \scshape Some text here & \scshape Some text & \multicolumn{1}{G}{\scshape
And some more text here} \\\midrule
Some text & Some text here & some text & and some more text here \\
Some text & Some text here & some text & and some more text here \\
Some text & Some text here & some text & and some more text here \\
Some text & Some text here & some text & and some more text here \\\bottomrule
\end{tabular}
\end{table}
\begin{table}[htb]
\centering
\rowcolors{2}{}{gray!25}
\caption[Some table]{This is my table}\label{tab:myothertab}
\begin{tabular}{*{4}{G}}\arrayrulecolor{magenta}\toprule
\scshape Some text & \scshape Some text here & \scshape Some text & \scshape And some more text
here \\\midrule
Some text & Some text here & some text & and some more text here \\
Some text & Some text here & some text & and some more text here \\
Some text & Some text here & some text & and some more text here \\
Some text & Some text here & some text & and some more text here \\\bottomrule
\end{tabular}
\end{table}
\end{document}
답변2
다음은 OP의 첫 번째 테이블을 최대한 충실하게 재생하는 코드입니다. 주로 caption
and floatrow
(캡션 위치에 대한), plus microtype
, xpatch
및 의 로딩이 필요합니다 makecell
.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{springer}
\usepackage[showframe, nomarginpar, textwidth = 15cm]{geometry}
\usepackage[svgnames, x11names]{xcolor}
\usepackage{array, booktabs, colortbl}
\usepackage{caption, floatrow}
\usepackage{makecell}
\usepackage[tracking]{microtype}
\usepackage{xpatch}
\xapptocmd{\toprule}{\addlinespace[-1pt]}{}{}
\xpretocmd{\midrule}{\addlinespace[-3pt]}{}{}
\xapptocmd{\midrule}{\addlinespace[5pt]}{}{}
\setlength{\tabcolsep}{4pt}
\renewcommand{\lightrulewidth}{0.06em}
\DeclareCaptionFormat{leftmargin}{\captionsetup{textfont={small, sf, md, up}, labelfont={small, sf, md, up}, labelsep=space, position = above, slc = off} \raggedright\textls*[150]{\MakeUppercase{#1 #2}}#3}%
\floatsetup{captionskip = 4pt}%
\renewcommand{\theadfont}{\SetTracking{encoding= *, shape= sc}{180}\color{black}\rmfamily\scshape}%
\renewcommand{\theadalign}{tl}
\begin{document}
\setcounter{table}{3}
\begin{table}[!h]
\centering\arrayrulecolor{DeepPink3!50!DeepPink2}\captionsetup{format = leftmargin, font = {color ={DeepPink3!50!DeepPink2}} }
\ttabbox[\FBwidth]{\caption{Properties of everyday -- or Galilean -- velocity.}}%
{%
\begin{tabular}{@{}*{3}{l} >{\color{SeaGreen2!45!Cyan4}\sffamily}l@{}}
\toprule%
\thead{Velocities\\can} & \thead{Physical \\ properties} & \thead{Mathematical \\ name} & \thead{Definition}\\
\midrule
\addlinespace[0.25ex]
Be distinguished & distinguibility & element of set & Vol. III, page 242 \\
Change gradually & continuum & real vector space & \makecell[tl]{Page 77, Vol. V, \\ page 349} \\
Point somewhere, direction & vector space, dimensionality & Page 77 \\
Be compared & measurability & metricity & Vol. V, page 340 \\
Be added & additivity & vector space & Page 77 \\
Have defined angles & direction & Euclidean vector space & Page 77 \\
Exceed any limit & infinity & unboundedness & Vol. III, page 243 \\
\addlinespace
\bottomrule
\end{tabular}
}%
\end{table}
\end{document}