我怎样才能将其替换figure 1:
为仅1
将1
半行设置向下?
我开始使用该站点的代码尝试调整它、收集命令,但无法让它运行。
\documentclass[twoside]{scrartcl}
% \usepackage{showframe}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{sidenotes}
\usepackage{kantlipsum}
\usepackage{fontspec}
\usepackage[a4paper,left=24.8mm,top=27.4mm,headsep=2\baselineskip,textwidth=107mm,marginparsep=8.2mm,marginparwidth=49.4mm,textheight=49\baselineskip,headheight=\baselineskip]{geometry} % tufte-handout definitions
\usepackage{caption}
\usepackage[labelsep=space]{caption}
\DeclareCaptionFormat{empty} {#1}
\renewcommand*\ textsubscript \{figurename{}
\begin{document}
\begin{marginfigure}%
\caption{My caption}
\includegraphics[width=\marginparwidth]{example-image-a}
\end{marginfigure}
\kant[1]
\begin{figure}[h]
\sidecaption{St. Michel}
\includegraphics[width=\textwidth]{5}
\end{figure}
\begin{figure*}
\sidecaption{My caption}
\includegraphics[width=\linewidth]{2.png}
\end{figure*}
\kant[1]
\kant[1]
\kant[1]
\kant[1]
\kant[1]
\end{document}
答案1
Sidenotes 为每种图形类型(包括可边距和可宽表)预定义了不同的标题样式。
\documentclass[twoside]{article}
% \usepackage{showframe}
\usepackage{graphicx}
\usepackage{sidenotes}
\usepackage{placeins}
\usepackage{kantlipsum}
%\usepackage{fontspec}
\usepackage[a4paper,left=24.8mm,top=27.4mm,headsep=2\baselineskip,textwidth=107mm,marginparsep=8.2mm,marginparwidth=49.4mm,textheight=49\baselineskip,headheight=\baselineskip]{geometry} % tufte-handout definitions
\captionsetup{labelsep=space}
\DeclareCaptionStyle{marginfigure}{labelsep=space}
\DeclareCaptionStyle{sidecaption}{labelsep=space}
\DeclareCaptionStyle{widefigure}{labelsep=space}
\makeatletter
\def\fnum@figure{\raisebox{-1ex}{\thefigure}}
\makeatother
\begin{document}
\begin{marginfigure}%
\caption{My caption}
\includegraphics[width=\marginparwidth]{example-image-a}
\end{marginfigure}
\kant[1]
\begin{figure}[htbp]
\sidecaption{St. Michel}
\includegraphics[width=\textwidth]{example-image-b}
\end{figure}
\begin{figure*}
\sidecaption{My caption}
\includegraphics[width=\linewidth]{example-image-c}
\end{figure*}
\kant[1]
\kant[1]
\kant[1]
\kant[1]
\kant[1]
\end{document}