Quiero dar una encuesta sobre varias técnicas dentro de una figura. Resultó que existen muchas técnicas, por lo que empleé subtítulos con subref para describir el asunto. Sin embargo, como hay demasiadas etiquetas, me pareció conveniente poner cada descripción en una sola línea empleando \\\hspace{textwidth}
una solución alternativa de salto de línea. No quiero poner la información en el subtítulo debajo de la imagen, ya que no me gusta y rompería el formato de todo el documento. Siempre que tenga subtítulos, me referiré a su etiqueta (con \subref
) dentro del título de la figura. . Como etiquetas de referencia secundaria, consumen un ancho diferente, el lado izquierdo del título se ve bastante irregular y angular. UNA 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 representa (la línea roja, resalta el problema):
Lo sé, si no cambiara de línea el texto del título, todo estaría bien. Pero yo diría que al lector le resultará más fácil seleccionar la descripción de la columna y luego buscar el elemento de etiqueta dentro del texto. Gracias por cualquier sugerencia.
Respuesta1
Espero que no tengas que imprimir una Lista de Figuras en tu documento con tales títulos... En tal caso, recuerda usar el argumento opcional de \caption
:
\caption[short caption]{long caption}
Aquí hay tres alternativas.
Primera 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}
Tercera 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}
Respuesta2
Utilice una tabla:
\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}