Quero fazer um levantamento sobre diversas técnicas dentro de uma figura. Acontece que existem muitas técnicas, então usei sublegenda com subref para descrever o assunto. No entanto, como há muitos rótulos, achei conveniente colocar cada descrição em uma única linha, empregando \\\hspace{textwidth}
uma solução alternativa para quebra de linha. Não quero colocar a informação em sublegenda abaixo da imagem, pois não gosto e quebraria o formato de todo o documento, sempre que tiver sublegenda irei me referir ao seu rótulo (com \subref
) dentro da legenda da figura . Como rótulos de subref, consomem larguras diferentes, o lado esquerdo da legenda parece bastante irregular e angular. Um MWE:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\\hspace{\textwidth}
\subref{fig:a} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:b} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:c} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:d} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:e} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:f} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:g} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:h} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:i} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:j} Short text fit in one line\\\hspace{\textwidth}
\subref{fig:k} Short text fit in one line
}
\end{figure}
\end{document}
que é renderizado (a linha vermelha destaca o problema):
Eu sei, se eu não quebrasse a linha do texto da legenda, tudo ficaria bem. Mas eu diria que o leitor pode achar mais fácil selecionar a descrição da coluna e, em seguida, pesquisar o item do rótulo no texto. Obrigado por qualquer sugestão.
Responder1
Espero que você não precise imprimir uma Lista de Figuras em seu documento com tais legendas... Nesse caso, lembre-se de usar o argumento opcional de \caption
:
\caption[short caption]{long caption}
Aqui estão três alternativas.
Primeira alternativa:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\
\llap{\subref{fig:a}} Short text fit in one line\\
\llap{\subref{fig:b}} Short text fit in one line\\
\llap{\subref{fig:c}} Short text fit in one line\\
\llap{\subref{fig:d}} Short text fit in one line\\
\llap{\subref{fig:e}} Short text fit in one line\\
\llap{\subref{fig:f}} Short text fit in one line\\
\llap{\subref{fig:g}} Short text fit in one line\\
\llap{\subref{fig:h}} Short text fit in one line\\
\llap{\subref{fig:i}} Short text fit in one line\\
\llap{\subref{fig:j}} Short text fit in one line\\
\llap{\subref{fig:k}} Short text fit in one line
}
\end{figure}
\end{document}
Segunda alternativa:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\
\protect\makebox[.5cm]{\subref{fig:a}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:b}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:c}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:d}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:e}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:f}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:g}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:h}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:i}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:j}} Short text fit in one line\\
\protect\makebox[.5cm]{\subref{fig:k}} Short text fit in one line
}
\end{figure}
\end{document}
Terceira alternativa:
\documentclass[oneside,DIV=17]{scrbook}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\setcapindent{0pt}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:b}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:c}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:d}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:e}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:f}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:g}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:h}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:i}}{\rule{0.3\textwidth}{0.25\textwidth}}\par
\subcaptionbox{\label{fig:j}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\subcaptionbox{\label{fig:k}}{\rule{0.3\textwidth}{0.25\textwidth}}\hfill
\hspace{0.3\textwidth}
\caption{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus
sem. Nulla et lectus vestibulum urna fringilla ultrices.\\
\protect\makebox[.5cm][l]{\subref{fig:a}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:b}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:c}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:d}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:e}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:f}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:g}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:h}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:i}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:j}} Short text fit in one line\\
\protect\makebox[.5cm][l]{\subref{fig:k}} Short text fit in one line
}
\end{figure}
\end{document}
Responder2
Use uma tabela:
\documentclass{article}
\usepackage{lipsum}
\usepackage[font={scriptsize,sf},labelfont={scriptsize,sf,bf}]{caption}
\usepackage[subrefformat=parens,labelfont={normalfont,scriptsize,sf},labelsep=space]{subcaption}
\begin{document}
\begin{figure}
\subcaptionbox{\label{fig:a}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:b}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:c}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:d}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:e}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:f}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:g}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:h}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:i}}{}\hspace{1cm}~
\subcaptionbox{\label{fig:j}}{}
\caption{\protect\lipsum[1]\smallskip
\protect\tabular{@{}l @{~} l@{}}
\subref{fig:a} & Short text fit in one line\\
\subref{fig:b} & Short text fit in one line\\
\subref{fig:c} & Short text fit in one line\\
\subref{fig:d} & Short text fit in one line\\
\subref{fig:e} & Short text fit in one line\\
\subref{fig:f} & Short text fit in one line\\
\subref{fig:g} & Short text fit in one line\\
\subref{fig:h} & Short text fit in one line\\
\subref{fig:i} & Short text fit in one line\\
\subref{fig:j} & Short text fit in one line
\protect\endtabular
}
\end{figure}
\end{document}