I am currently writing my Master Thesis in Latex and I have a wide table, which it's in landscape mode. Also, in the Table, there is two rows which are entirely in bold: the header row and last row. I follow this question's answer Make first row of table all bold and it worked for the first row, however not for the last one.
For the first row all columns are bold, but for the last, only the first is bold.
Can anyone help me, please? I am using LuaLatex and Miktex 2.9.
My MWE is:
\documentclass[
11pt,
a4paper,
BCOR=15mm,
bibliography=totoc,
DIV=9,
final,
headings=optiontohead,
listof=chaptergapsmall,
listof=totoc,
numbers=noenddot,
openright,
parskip=half,
titlepage,
twoside,
]{scrreprt}
%------------------------------
% DOCUMENT AND ENCODING
%------------------------------
\usepackage[
english,
ngerman
]{babel}
\usepackage{datetime}
\usepackage[
T1
]{fontenc}
\usepackage[
utf8
]{inputenc}
\usepackage[
automark,
ilines
]{scrlayer-scrpage}
%------------------------------
% Tables
%------------------------------
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{tabularx}
%------------------------------
% GRAPHICS
%------------------------------
\usepackage{graphicx}
\usepackage{overpic}
%------------------------------
% FONT, MATH, AND SYMBOLS
%------------------------------
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[
makeroom
]{cancel}
\usepackage{chemfig}
\usepackage{empheq}
\usepackage{icomma}
\usepackage{mathptmx}
\usepackage[
sc,
osf
]{mathpazo}
\usepackage{mathtools}
\usepackage[
version=4
]{mhchem}
\usepackage{nicefrac}
\usepackage[
output-decimal-marker={,},
range-phrase={--},
range-units=single,
output-exponent-marker=\text{E},
retain-explicit-plus
]{siunitx}
%------------------------------
% TEXT
%------------------------------
\usepackage{blindtext}
\usepackage[
font={small,it},
labelfont=bf,
textformat=period,
]{caption}
\usepackage{enumitem}
\usepackage{footnote}
\usepackage[
framemethod=TikZ
]{mdframed}
\usepackage[all]{nowidow}
\usepackage{placeins}
\usepackage[
onehalfspacing
]{setspace}
\usepackage{subcaption}
\usepackage{xcolor}
%------------------------------
% References
%------------------------------
\usepackage[
backref=true,
backrefstyle=three,
bibencoding=utf8,
citestyle=authoryear,
defernumbers=true,
date=year,
doi=true,
giveninits=true,
hyperref=true,
isbn=true,
maxbibnames=99,
sortlocale=auto,
style=authoryear,
uniquename=init,
url=true
]{biblatex}
\usepackage[
babel=true,
strict=true,
english=american,
german=guillemets
]{csquotes}
%------------------------------
% LISTS OF SYMBOLS AND ABBREVIATIONS
%------------------------------
\usepackage[]{acronym}
\usepackage[
intoc,
english
]{nomentbl}
%------------------------------
% CODE
%------------------------------
\usepackage{listings}
\usepackage{scrhack}
%------------------------------
% HYPERREF
%------------------------------
\usepackage[
bookmarks,
bookmarksopen=true,
colorlinks=false,
linkcolor=black,
anchorcolor=black,
citecolor=blue,
filecolor=magenta,
menucolor=black,
linkbordercolor=red,
citebordercolor=blue,
urlbordercolor=cyan,
%pagebackref,
pdfpagelabels,
hypertexnames=true,
linktocpage,
]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{tablefootnote}
\usepackage{lscape}
\usetikzlibrary{intersections, calc}
\usepackage{filecontents}
\usepackage{adjustbox}
\usepackage{array}
%\usepackage{subfig}
\usepackage{filecontents}
\usepackage{tikz,pgfplots}
\usepackage{soul}
%\usepackage[backend=bibtex,style=numeric-comp,natbib=true,sorting=none]{biblatex}
\newcolumntype{$}{>{\global\let\currentrowstyle\relax}}
\newcolumntype{^}{>{\currentrowstyle}}
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
#1\ignorespaces
}
\begin{document}
\begin{landscape}
\begin{table}[h!]
\resizebox{\pagewidth}{!}{%
\begin{tabular}{$c^c^c^c^c^c^c^c^c^c}
\rowstyle{\bfseries}k0 & 3 & 4 & 11 & 15 & 16 & 21 & 23 & 24 & 25 \\
1 & $\SI{-1,611698E+00}{}$ & $\SI{-5,15900258E-03}{}$ & $\SI{6,30506428E-04}{}$ & $\SI{1,76906828E-03}{}$ & $\SI{1,33663594E-01}{}$ & $\SI{1,48886466E-03}{}$ & $\SI{1,20976955E-01}{}$ & $\SI{1,34041033E-01}{}$ & $\SI{8,82496074E-01}{}$ \\
2 & $\SI{-1,611698E+00}{}$ & $\SI{-5,15900258E-03}{}$ & $\SI{6,26128162E-04}{}$ & $\SI{1,76906828E-03}{}$ & $\SI{1,20297235E-01}{}$ & $\SI{1,49439564E-03}{}$ & $\SI{1,00734380E-01}{}$ & $\SI{1,20636930E-01}{}$ & $\SI{8,71657257E-01}{}$ \\
3 & $\SI{-1,611698E+00}{}$ & $\SI{-5,15900258E-03}{}$ & $\SI{7,66274060E-04}{}$ & $\SI{1,59217479E-03}{}$ & $\SI{1,17781198E-01}{}$ & $\SI{1,50464406E-03}{}$ & $\SI{1,01117973E-01}{}$ & $\SI{1,08573237E-01}{}$ & $\SI{8,71657257E-01}{}$ \\
4 & $\SI{-1,611698E+00}{}$ & $\SI{-5,15900258E-03}{}$ & $\SI{7,94979626E-04}{}$ & $\SI{1,51805768E-03}{}$ & $\SI{1,15181913E-01}{}$ & $\SI{1,52044130E-03}{}$ & $\SI{1,02134836E-01}{}$ & $\SI{1,08573237E-01}{}$ & $\SI{8,80405384E-01}{}$ \\
5 & $\SI{-1,611698E+00}{}$ & $\SI{-5,15900258E-03}{}$ & $\SI{6,68034204E-04}{}$ & $\SI{1,68500964E-03}{}$ & $\SI{1,25576240E-01}{}$ & $\SI{1,52142533E-03}{}$ & $\SI{1,12348319E-01}{}$ & $\SI{9,77159132E-02}{}$ & $\SI{8,80405384E-01}{}$ \\
\rowstyle{\bfseries}Average & $\SI{-1,611698E+00}{}$ & $\SI{-5,159003E-03}{}$ & $\SI{6,946160E-04}{}$ & $\SI{1,635247E-03}{}$ & $\SI{1,216266E-01}{}$ & $\SI{1,493486E-03}{}$ & $\SI{1,031347E-01}{}$ & $\SI{1,128022E-01}{}$ & $\SI{8,425496E-01}{}$
\end{tabular}}
\end{table}
\end{landscape}
\end{document}

\textbf{....}. since you have only few columns, this is not big deal to do ... – Zarko Jan 06 '19 at 00:17