
como escrever um rótulo como este Fig. 1 (a) em vez da Fig. 1a no texto.
\documentclass[a4paper,aps,12pt]{revtex4-1}
\usepackage{floatrow}
\usepackage{subfig}
\usepackage{caption}
\floatsetup[figure]{style=plain,subcapbesideposition=top}
\usepackage{amsmath}
\usepackage{amsfonts} %for \mathfrak & \mathbb
\usepackage[top=2cm, bottom=2cm,left=1.5cm, right=2cm]{geometry}
\usepackage{graphicx}
\graphicspath{ {myfigures/} }
\usepackage{fancyhdr}
\usepackage{afterpage}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage[modulo]{lineno}
\modulolinenumbers[5]%prints every 5 lines
\renewcommand\linenumberfont{\normalfont\footnotesize\sffamily}
\renewcommand{\baselinestretch}{1.5}
\usepackage{hyperref} %To hyperlink
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
citecolor=blue
}
\usepackage{placeins} % for \FloatBarrier
\renewcommand{\baselinestretch}{1.5}
\setlength{\parindent}{.6cm}
\setlength{\parskip}{0cm}% line spacing for first line in paragraph
\newcommand{\Author}[2][2]{\begin{center}{{#1, #2}}\end{center}}
\def\Faculty#1#2{\begin{center}{{#1}}, {#2}\end{center}}
\usepackage{ragged2e}
\DeclareCaptionJustification{justified}{\justifying}
\captionsetup{justification=justified,singlelinecheck=false, position=top, labelfont=large, labelformat=simple}
\begin{document}
\begin{figure}[h]\centering
\sidesubfloat[]{\includegraphics[width = 0.5\textwidth]{1a.pdf} \label{fig:figzoda}}\\[-30pt]
\sidesubfloat[]{\includegraphics[width = 0.5\textwidth]{1b.pdf} \label{fig:figzodb}}\\[-30pt]
\sidesubfloat[]{\includegraphics[width = 0.5\textwidth]{1c.pdf} \label{fig:figzodc}}
\end{figure}
\end{document}
Responder1
Por padrão, a referência às subfiguras será apenas a letra (por exemplo "a") e os rótulos das legendas serão colocados entre parênteses. Portanto, se você deseja mover os parênteses para a referência, é necessário alterar isso adicionando-os ao formato de exibição genérico e removendo-os do formato do rótulo da legenda, por exemplo:
\documentclass[a4paper,aps,12pt]{revtex4-1}
\usepackage[demo]{graphicx}
\usepackage[caption=false,labelformat=simple]{subfig}
% "labelformat=simple" removes the parenthesis from the caption label
\renewcommand\thesubfigure{(\alph{subfigure})}
% This one adds parenthesis to the display format
\begin{document}
\ref{fig:figzoda} % Prints now "1(a)"
\begin{figure}[h]\centering
\subfloat[]{\includegraphics[width = 0.5\textwidth]{1a.pdf} \label{fig:figzoda}}
\subfloat[]{\includegraphics[width = 0.5\textwidth]{1b.pdf} \label{fig:figzodb}}
\subfloat[]{\includegraphics[width = 0.5\textwidth]{1c.pdf} \label{fig:figzodc}}
\caption{Test}
\end{figure}
\end{document}
Observe que adicionei a opção caption=false
ao carregar o subfig
pacote (e eliminei o carregamento explícito do caption
pacote), pois o caption
pacote atualmente não é totalmente compatível com a classe de documento RevTeX:
Package caption Warning: Unsupported document class (or package) detected,
(caption) usage of the caption package is not recommended.
See the caption package documentation for explanation.