A cell always start with a strut, precisely \@arstrut
, which is meant to help in alignment. The \Huge
letters in the first column are higher than this strut, so they are set touching the upper margin. This doesn't happen for the second column cells. A trick can be to provide a fake first line and then backing up by its height, which we know precisely to be the height of the strut. Then we insert no interline glue.
However this won't work with a nested tabular
.
\documentclass[paper=a4,fontsize=11pt]{scrartcl} % KOMA-article class
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel} % English language/hyphenation
\usepackage[showframe]{geometry}
\usepackage{array,tabularx}
\usepackage{lipsum}
\pagestyle{empty} % No pagenumbers/headers/footers
\makeatletter
\newcolumntype{A}[1]{>{\kern-\ht\@arstrutbox\hrule height 0pt}p{#1}}
\newcolumntype{V}{%
>{\csname par\endcsname\kern-\ht\@arstrutbox\nointerlineskip\hrule height0pt
\mbox{}\csname par\endcsname\kern-\ht\@arstrutbox\nointerlineskip
\vrule height\fontcharht\font`A width0pt\relax}X}
\makeatother
\begin{document}
\noindent\begin{tabularx}{\textwidth}{
@{}
A{3em}
V
@{}} % @{} is used to remove the margins from cells
\Huge\bfseries A
&
Lorem ipsum \hfill right-aligned\newline
sem.\newline
Lorem\newline
ipsum \\
\Huge\bfseries B & a \\
\Huge\bfseries C & \lipsum*[1] \\
\end{tabularx}
\end{document}
As far as the interrow spacing is concerned, I'm afraid that it's outside the tabular
model of LaTeX.
Here's a different implementation, where the big letters are shifted down:
\documentclass[paper=a4,fontsize=11pt]{scrartcl} % KOMA-article class
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel} % English language/hyphenation
\usepackage[showframe]{geometry}
\usepackage{array,tabularx,adjustbox}
\usepackage{lipsum}
\pagestyle{empty} % No pagenumbers/headers/footers
\newcommand{\bigletter}[1]{%
\raisebox{\dimexpr-\height+\fontcharht\font`A\relax}{\Huge\bfseries #1}%
}
\makeatletter
\makeatother
\begin{document}
\noindent\begin{tabularx}{\textwidth}{
@{}
p{3em}
X
@{}} % @{} is used to remove the margins from cells
\bigletter{A}
&
Lorem ipsum \hfill right-aligned\newline
sem.\newline
Lorem\newline
ipsum \\
\bigletter{B} & a \\
\bigletter{C} & \lipsum*[1] \\
\end{tabularx}
\end{document}
The table is vertically too big for being rotated; a font size reduction is necessary anyway. I get a decent result with
\documentclass[12pt]{report}
\usepackage{graphicx,xcolor}
\usepackage{caption}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[version = 3]{mhchem}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{mathptmx}
\usepackage{textcomp}
\usepackage{array}
\usepackage{ragged2e}
\begin{document}
\begin{table}
\caption{Kinetic parameters for oxygen reduction mechanism in MCFC cathode.}
\scriptsize
\newcolumntype{Y}{>{\RaggedRight\arraybackslash}X}
\begin{tabularx}{\textwidth}{@{}c|>{$}c<{$}|>{$}c<{$}|Y|Y|Y|Y|Y@{}}
\hline
\hline
\multicolumn{8}{c}{$i_o = i_o^o (O_2)^a (CO_2)^b$} \\
\multicolumn{8}{c}{$i_o$ = Bulk exchange current density, $mA/cm^2$} \\
\multicolumn{8}{c}{$i_o^o$ = Standard exchange current density, $mA/cm^2$} \\
\hline
$i_o$ mA/cm$^2$ & a & b & Method & Electrode & Dominant Mechanism & Electrolyte & Reference \\
\hline
& 0.85 & -0.45 & Potential-step, AC Imped. & Au(ref), Ni(cathode) & Superoxide & 62/38 Li-K & \\
10,27,39 & 0.1 & -0.15 & Potential-step, Coul. relax., and AC Imped. & Au smooth & Superoxide & 43/57 Li-K eutectic & \\
11,26.3 & 0.1 & -0.15 & SS potentiostatic, potential step & Au smooth & Superoxide & Li, Li-K eutectic & \\
0.023-0.065 & - & - & SS potentiostatic & Au smooth & & Li-Na-K eutectic & \\
10 & 0.15 & -0.15 & Potential-step & Au, smooth & Superoxide & & \\
- & 0.3 & 0 & SS, kinetic control assumed & NiO, porous & & & Tang (1980) \\
- & 0.6 & 0.6 & & NiO, porous & & & Tang (1980) \\
~1 & 0.5 & 0 & C & NiO, porous & & & \\
4-7 & - & - & Transient potentiostatic & Au & & & IGT Proj 9105 \\
0.78 & 0.2 & 0.2 & Modeling of SS data & NiO, porous & Peroxide & Na-K & \\
0.16-0.5 & 0.875 & -0.25 & Modeling of SS data & NiO, porous & & & \\
0.01-0.03 & - & - & Potential-sweep & Au & Peroxide & Na-K, Li & \\
& 0.375 & -1.25 & Modeling of SS data & NiO, porous & & & \\
& 0.4 & 0 & Modeling of SS data & SS porous & Superoxide & Li-Na-K, Li-K & This work \\
\hline
\end{tabularx}
\end{table}
\end{document}
There are several problems in the table, I fixed some; however the names of the chemical elements are still wrong and you should fix them with mchem
commands.
If you decide for a rotated table, you can use \footnotesize
:
\documentclass[12pt]{report}
\usepackage{graphicx,xcolor}
\usepackage{caption}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[version = 3]{mhchem}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{mathptmx}
\usepackage{textcomp}
\usepackage{array}
\usepackage{ragged2e}
\begin{document}
\begin{sidewaystable}
\caption{Kinetic parameters for oxygen reduction mechanism in MCFC cathode.}
\footnotesize
\newcolumntype{Y}{>{\RaggedRight\arraybackslash}X}
\begin{tabularx}{\textwidth}{@{}c|>{$}c<{$}|>{$}c<{$}|Y|Y|Y|Y|Y@{}}
\hline
\hline
\multicolumn{8}{c}{$i_o = i_o^o (O_2)^a (CO_2)^b$} \\
\multicolumn{8}{c}{$i_o$ = Bulk exchange current density, $mA/cm^2$} \\
\multicolumn{8}{c}{$i_o^o$ = Standard exchange current density, $mA/cm^2$} \\
\hline
$i_o$ mA/cm$^2$ & a & b & Method & Electrode & Dominant Mechanism & Electrolyte & Reference \\
\hline
& 0.85 & -0.45 & Potential-step, AC Imped. & Au(ref), Ni(cathode) & Superoxide & 62/38 Li-K & \\
10,27,39 & 0.1 & -0.15 & Potential-step, Coul. relax., and AC Imped. & Au smooth & Superoxide & 43/57 Li-K eutectic & \\
11,26.3 & 0.1 & -0.15 & SS potentiostatic, potential step & Au smooth & Superoxide & Li, Li-K eutectic & \\
0.023-0.065 & - & - & SS potentiostatic & Au smooth & & Li-Na-K eutectic & \\
10 & 0.15 & -0.15 & Potential-step & Au, smooth & Superoxide & & \\
- & 0.3 & 0 & SS, kinetic control assumed & NiO, porous & & & Tang (1980) \\
- & 0.6 & 0.6 & & NiO, porous & & & Tang (1980) \\
~1 & 0.5 & 0 & C & NiO, porous & & & \\
4-7 & - & - & Transient potentiostatic & Au & & & IGT Proj 9105 \\
0.78 & 0.2 & 0.2 & Modeling of SS data & NiO, porous & Peroxide & Na-K & \\
0.16-0.5 & 0.875 & -0.25 & Modeling of SS data & NiO, porous & & & \\
0.01-0.03 & - & - & Potential-sweep & Au & Peroxide & Na-K, Li & \\
& 0.375 & -1.25 & Modeling of SS data & NiO, porous & & & \\
& 0.4 & 0 & Modeling of SS data & SS porous & Superoxide & Li-Na-K, Li-K & This work \\
\hline
\end{tabularx}
\end{sidewaystable}
\end{document}
Best Answer
This is more extended comment than answer. It is based on guessing, since you are not willing to provide more data, that someone can help you. This means, that the answer probably will not help you.
Use
adjustobox
for stretching table to text width is not right way to do this. It stretch all in it, from table to font size in it. When you lie to have table spanning whole text width, you need first to ask yourself, what is benefits to stretch table over it natural width? Table will look more empty (more white space between columns). Is this what you like to achieve?From your comments follows, that your table float actually contain two tables. Cant this tables are separated by empty space? If not, than one of among many possible solutions is:
In this case the tables will stick each to other, font will not be changed and cells content will be adjusted. Iy like to mimic
c
,l
or `rĖtipe of columns you need to define new columns type. For example:For use of
tabularx
you need to put in preamble\usepackage{tabularx}
.In case that some white space between tables is desired, than replace
%
withhfill
, which will move tables to the left and right text border.Disclamer: since I never use R Sweave I do not know, how to described possible solution manage in it. Consequently I'm not able to offer further help in solving of your problem.