我一直在用 LaTex 写论文,但我无法将caption{}
右边的文字放在图形下方并与其对齐。我也需要从\caption{}
到有一个单倍行距\fonte{}
。
\font{}
来自包abntex2cite
。
格式
\ProvidesClass{formato}
\LoadClass[12pt,openright,oneside,a4paper,article]{abntex2}
%%%%%%%% Packages
\usepackage{newtxtext} % font Times New Roman text
%\usepackage{newtxmath} % font Times New Roman math
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\usepackage[T1]{fontenc}
\RequirePackage[bibjustif,
abnt-full-initials=yes,
abnt-repeated-title-omit=yes,
abnt-emphasize=it,
alf]{abntex2cite} % ABNT
\usepackage{indentfirst}
\usepackage{geometry}
\usepackage{amsmath}
\usepackage{calc}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{float}
\usepackage{enumerate}
\usepackage{url}
\usepackage{setspace}
\usepackage{multirow}
\usepackage{caption}
% Structure
\geometry{
a4paper,
left=2cm,
right=2cm,
top=2cm,
bottom=2cm
}
\setlength{\parindent}{1cm}
\setlength{\parskip}{0.2cm}
\DoubleSpacing
\captionsetup[table]{
justification=raggedright,singlelinecheck=false,
labelsep=colon
}
\captionsetup[figure]{
justification=raggedright,singlelinecheck=false,
labelsep=colon
}
\makeindex
主文本
\documentclass{formato}
\begin{document}
\pagestyle{plain}
\pagenumbering{arabic}
\begin{figure}[H]
\includegraphics[width=\linewidth]{example-image-a}
\caption{Distribuição do ROA do exercício}
\label{fig:freqsobras}
\fonte{Elaborado pelo autor.}
\end{figure}
\end{document}
我拥有的:
我需要的: