\documentclass{wlscirep}:longtblr 的标题不像表格的标题那样粗体

\documentclass{wlscirep}:longtblr 的标题不像表格的标题那样粗体

我同时使用了table和(您可以在longtblr\documentclass{wlscirep}科学报告投稿模板“)。我注意到表格的标题(请参见以下示例中的表 1)是粗体,但 longtblr 的标题不是粗体(请参见以下示例中的表 2)。我怎样才能将 longtblr 的标题改为粗体?

\documentclass[twocolumn,fleqn,10pt,dvipsnames,table]{wlscirep}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{multirow, booktabs, tabularx, longtable}
\usepackage{multirow, makecell}
\usepackage{xurl}
\usepackage{booktabs}
\usepackage{xfp} 
\usepackage{color}

\title{Supplementary Information for...}
\author[1]{Luke}
\affil[1]{University of }

% Add longtable and xcolor packages and define a color
\definecolor{white}{HTML}{FFFFFF} 

\usepackage{multirow, makecell}
\usepackage{tikz}
\usepackage{tabularray}
\usepackage{gensymb}


\begin{document}
\maketitle


\section*{Supplementary Text}
\subsection*{Notes about ...}
This is about...



\begin{table}[ht]
\centering
\begin{tabular}{|l|l|l|}
\hline
Condition & n & p \\
\hline
A & 5 & 0.1 \\
\hline
B & 10 & 0.01 \\
\hline
\end{tabular}
\caption{\label{tab:example}Legend (350 words max). Example legend text.}
\end{table}


\rowcolors{1}{white}{white}


    \begin{longtblr}[
        caption = {This is a summary of...},
        ]{
            colspec={m{0.9cm} m{0.1cm} m{0.6cm} m{1cm} m{3cm} m{7.3cm} m{1.5cm}},
            column{6}={preto={\minipage{\linewidth}}, appto={\endminipage}},
            row{1}={font=\bfseries}, 
            row{2,5,7-8,11-13,20-26,30,33-34,36,39-40,42}={bg=white},
            hline{1,Z}=0.8pt, hline{2}=0.4pt, 
            hline{4,8,10,12-13,15-19,21-26,28-29,32,34,38,40}=dotted, 
            hline{3,5-7,9,11,14,20,27,30-31,33,35,36-37,39,41,42-43}=solid,
            rowhead=1
        }

        Day
        &
        & Month
        & Hours
        & Event
        & Description
        & Further Info
        \\
        %-------------------------------------------------
        Friday
        & $6$
        & February
        & 08 $-$ 19
        & Musical festival
        & 
        Something here ...
        & Multiple 
        \\
        %-------------------------------------------------
        \SetCell[r=2]{l} Saturday 
        & \SetCell[r=2]{l} 8 
        & \SetCell[r=2]{l} February
        & 08
        & Birthday
        & On Saturdays...
        & Multiple 
        \\
        &
        &
        & 9
        & Local Cup \newline
        & Soemthing here...
        & Single
        \\
        % -------------------------------------------------
    \end{longtblr}



\end{document}

在此处输入图片描述

答案1

正如所述这个答案,您可以尝试定义一个启用粗体标题标签的主题。

\documentclass{wlscirep}
\RequirePackage[font=small, labelfont=bf, labelsep=period]{caption}

\begin{document}

\NewTblrTheme{fancy}{
    \SetTblrStyle{caption-tag}{font=\bfseries\small}
    }


\begin{longtblr}[  theme=fancy, caption = {This is a summary of...},]
        {
            colspec={m{0.9cm} m{0.1cm} m{0.6cm} m{1cm} m{3cm} m{7.3cm} m{1.5cm}},
            column{6}={preto={\minipage{\linewidth}}, appto={\endminipage}},
            row{1}={font=\bfseries}, 
            row{2,5,7-8,11-13,20-26,30,33-34,36,39-40,42}={bg=white},
            hline{1,Z}=0.8pt, hline{2}=0.4pt, 
            hline{4,8,10,12-13,15-19,21-26,28-29,32,34,38,40}=dotted, 
            hline{3,5-7,9,11,14,20,27,30-31,33,35,36-37,39,41,42-43}=solid,
            rowhead=1
        }

        Day
        &
        & Month
        & Hours
        & Event
        & Description
        & Further Info
        \\
        %-------------------------------------------------
        Friday
        & $6$
        & February
        & 08 $-$ 19
        & Musical festival
        & 
        Something here ...
        & Multiple 
        \\
        %-------------------------------------------------
        \SetCell[r=2]{l} Saturday 
        & \SetCell[r=2]{l} 8 
        & \SetCell[r=2]{l} February
        & 08
        & Birthday
        & On Saturdays...
        & Multiple 
        \\
        &
        &
        & 9
        & Local Cup \newline
        & Soemthing here...
        & Single
        \\
        % -------------------------------------------------
    \end{longtblr}

(本来想将答案的链接作为评论发布,但现在还不能这样做。)

相关内容