我一直在尝试改变图片标题标签的格式,遵循文档。但是,尽管尝试了多次,我似乎还是无法让它不采用小写字母。该包似乎可以正常工作,因为将“fontlabel”选项设置为“bf”会给我一个加粗的结果(但仍然是小写字母)。以下是最小工作示例:
\usepackage{natbib}
\usepackage[french]{babel}
\renewcommand{\bibsection}{\section*{Bibliographie}}
\usepackage[labelfont=up]{caption}
\usepackage[]{subcaption}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{float}
\begin{document}
\begin{figure}[h]
\centering
\begin{subfigure}{0.93\textwidth}
\centering
\includegraphics[width=1.00\textwidth]{pictures/oFrolicheZeit.png}
\caption{\textit{Wacht\string! Euch zum Streit gefasset macht}, acte III, \enquote{O fröliche Zeit}, mes. 8-12.}
\end{subfigure}
\hfill
\begin{subfigure}{0.93\textwidth}
\centering
\includegraphics[width=1.00\textwidth]{pictures/ichKannNichtMehr.png}
\caption{\textit{Wacht\string! Euch zum Streit gefasset macht}, acte III, \enquote{Ich kann nicht mehr}, mes. 6-13.}
\end{subfigure}
\caption[]{Insert musical analysis caption here.}
\label{fig:rhetoric}
\end{figure}
\end{document}
编译为 pdf 后给出以下输出:
我不知道这是否可能是由于字幕和子字幕包之间存在冲突,或者我是否遗漏了某些内容。谢谢,
答案1
你被咬了babel-french
。使用
\frenchsetup{SmallCapsFigTabCaptions=false}
注意手册里有SmallCapsFigTabcaptions
,但是它是错误的。
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[labelfont=up]{caption}
\usepackage[]{subcaption}
\usepackage{graphicx}
\usepackage{csquotes}
\usepackage{hyperref}
\frenchsetup{SmallCapsFigTabCaptions=false}
\begin{document}
\begin{figure}[htp]
\centering
\begin{subfigure}{0.93\textwidth}
\centering
\includegraphics[width=0.3\textwidth]{example-image}
\caption{\textit{Wacht\string! Euch zum Streit gefasset macht}, acte III,
\enquote{O fröliche Zeit}, mes. 8-12.}
\end{subfigure}
\begin{subfigure}{0.93\textwidth}
\centering
\includegraphics[width=0.3\textwidth]{example-image}
\caption{\textit{Wacht\string! Euch zum Streit gefasset macht}, acte III,
\enquote{Ich kann nicht mehr}, mes. 6-13.}
\end{subfigure}
\caption{Insert musical analysis caption here.}\label{fig:rhetoric}
\end{figure}
\end{document}
答案2
用于\captionsetup
独立设置图形和子图的标题格式。
\documentclass[12pt,a4paper]{article}
\usepackage{natbib}
\usepackage[french]{babel}
\renewcommand{\bibsection}{\section*{Bibliographie}}
\usepackage{caption}
\captionsetup[figure]{textfont={normalsize,sc}}% added <<<<<<<<<<<<<<<<<<
\captionsetup[subfigure]{textfont={normalsize}}% added <<<<<<<<<<<<<<<<<<
\usepackage[]{subcaption}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{float}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\centering
\begin{subfigure}{0.6\textwidth}
\centering
\includegraphics[width=1.00\textwidth]{example-image-a}
\caption{\textit{Wacht\string! Euch zum Streit gefasset macht}, acte III, {O fröliche Zeit}, mes. 8-12.}
\end{subfigure}
\hfill
\begin{subfigure}{0.6\textwidth}
\centering
\includegraphics[width=1.00\textwidth]{example-image-b}
\caption{\textit{Wacht\string! Euch zum Streit gefasset macht}, acte III, {Ich kann nicht mehr}, mes. 6-13.}
\end{subfigure}
\caption{Insert musical analysis caption here.}
\label{fig:rhetoric}
\end{figure}
\end{document}