我正在使用此命令,但它将图形标题居中。我该如何将其左对齐?请帮助我。
\documentclass[conference]{IEEEtran}
\usepackage{authblk}
\begin{document}
\begin{figure}[!h]
\centering
\includegraphics[scale=0.28]{fig1}
\caption{Generation of Digital Signature}
\label{fig_sim}
\end{figure}
\end{document}
答案1
您可以加载caption
包并选择选项singlelinecheck=off
和measuredfigure
环境threeparttable
:
\documentclass[conference]{IEEEtran}
\usepackage[utf8]{inputenc} %
\usepackage{graphicx, caption} %
\usepackage{threeparttable}%
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{figure}[!htb]
\captionsetup{singlelinecheck = false, format= hang, justification=raggedright, font=footnotesize, labelsep=space}
\centering
\begin{measuredfigure} % \begin{measuredfigure}
\includegraphics{Pepe-le-Pew2}
\caption{Chuck Jones – Pepe Le Pew in action}
\end{measuredfigure}
\label{PlP}
\end{figure}
\lipsum[2]
\end{document}