如何將圖標題變成粗體

如何將圖標題變成粗體

當我建立圖形標題時,LaTeX 會自動建立該Figure1:部分,然後建立標題。如何將Figure1部分變成粗體?我的TeX程式碼是這樣的:

\begin{figure}[ht!]
\includegraphics[width=80mm]{images/tftype.png}|\includegraphics[width=80mm]{images/tftype1.png}
\caption{An overview of structural variants of transcription factors. Each specific variant binds to a certain class of DNA motifs (shown in blue).  Some of the motifs have a high affinity for the TATAAA box were others favor specific sequences somewhere in the promoter region. {\small http://www.nature.com/scitable/resource?action=showFullImageForTopic\&imgSrc=37950/sadava\_14\_15\_FULL.gif}}
\end{figure}

我是一名 TeX 新手,有些事情對我來說仍然很奇怪。任何幫助表示讚賞。

我想要的輸出是:圖1:一些非常有趣的訊息

答案1

您可以使用caption包裹;該labelfont鍵允許您指定bf

\documentclass{article}
\usepackage{caption}
\captionsetup[figure]{labelfont=bf}

\begin{document}

\begin{figure}
\centering
A
\caption{test figure}
\end{figure}

\end{document}

在此輸入影像描述

如果這適用於所有浮點數(不僅僅是figure),而不是

\captionsetup[figure]{labelfont=bf}

透過以下方式載入套件:

\usepackage[labelfont=bf]{caption}

相關內容