标题标签字体/如何用 bf 和 sc 写标题

标题标签字体/如何用 bf 和 sc 写标题
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english,french]{babel}
\usepackage[T1]{fontenc}
\usepackage[a4paper,twoside,left=2.5cm,right=2.5cm,top=3cm,bottom=3cm]{geometry}
\usepackage{lmodern,textcomp}
\usepackage{booktabs}
\usepackage[labelfont={bf,sc},figurename=Fig.,tablename=Tableau]{caption}
\usepackage{graphicx}
\usepackage{dblfloatfix}
\usepackage{tabularx}

\begin{document}
\begin{table*}[!b]
\caption{thermal conductivity}
\label{tab-CT1}
\begin{center}
\small{
\begin{tabularx}{\linewidth}{@{}p{3cm}@{}*{6}{X@{}}}
\toprule
\multicolumn{1}{l}{} & \multicolumn{3}{@{}l}{couleur primaire} & \multicolumn{3}{@{}l}{couleur secondaire} \\
\cmidrule[.8pt](r{10pt}){2-4} \cmidrule[.8pt]{5-7}
\multicolumn{1}{c}{} & rouge & vert & bleu &  jaune & magenta & cyan \\
\midrule[1pt]
composition & R & V & B & RV & RB & VB \\
perméabilité& 1 & 2 & 3 & 4  & 7  & 3 \\
\bottomrule
\end{tabularx}}
\end{center}
\end{table*}
\end{document}

在此处输入图片描述

答案1

您可以将标题标签切换回计算机现代字体:

\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english,french]{babel}
\usepackage[T1]{fontenc}
\usepackage[a4paper,twoside,left=2.5cm,right=2.5cm,top=3cm,bottom=3cm]{geometry}
\usepackage{textcomp,lmodern}
\usepackage{booktabs}

\usepackage[figurename=Fig.,tablename=Tableau]{caption}
\DeclareCaptionFont{quack}{\fontfamily{cmr}\fontseries{bx}\scshape\selectfont}
\captionsetup{labelfont={quack}}
\usepackage{graphicx}
\usepackage{dblfloatfix}
\usepackage{tabularx}



\begin{document}
\begin{table*}[!b]
\caption{thermal conductivity}
\label{tab-CT1}
\begin{center}
\small
\begin{tabularx}{\linewidth}{@{}p{3cm}@{}*{6}{X@{}}}
\toprule
\multicolumn{1}{l}{} & \multicolumn{3}{@{}l}{couleur primaire} & \multicolumn{3}{@{}l}{couleur secondaire} \\
\cmidrule[.8pt](r{10pt}){2-4} \cmidrule[.8pt]{5-7}
\multicolumn{1}{c}{} & rouge & vert & bleu &  jaune & magenta & cyan \\
\midrule[1pt]
composition & R & V & B & RV & RB & VB \\
perméabilité& 1 & 2 & 3 & 4  & 7  & 3 \\
\bottomrule
\end{tabularx}
\end{center}
\end{table*}
\end{document}

在此处输入图片描述

相关内容