如何使长图形标题对齐?

如何使长图形标题对齐?

我似乎找不到使我的标题合理的解决方案。

\begin{figure}
    \centering
    \includegraphics[width=0.6\columnwidth]{figure}
    \caption{The transitions for the monopolist firm's optimal product line strategy as either $\beta$, $\omega$ or $\alpha_n$ changes. In each panel, $c_v$ and $c_r$ vary between $0$ and $0.9$ within the vertical and horizontal axis, respectively; fixed parameters are $k=0.1$ and $\alpha_c=0.2$. From left-to-right in panel (a), the green variant's recycled content fraction increases: $\beta \in \{5\%, 50\%, 75\%\}$ (with $\alpha_n=0.2$ and $\omega=0.5$). From left-to-right in panel (b), the conventional consumer segment percentage increases: $\omega \in \{15\%, 50\%, 95\%\}$ (with $\alpha_n=0.2$ and $\beta=0.5$) and From left-to-right in panel (c), the naturalites' marginal utility from recycled content increases:  $\alpha_n \in \{5\%, 25\%, 55\%\}$ (with $\beta=\omega=0.5$).}
\end{figure}

显示方式如下:

在此处输入图片描述

我尝试过添加

\captionsetup[figure]{justification=justified,singlelinecheck=false}

但它不起作用!

答案1

没有 MWE,我只能假设原因是什么,但我认为你已经\usepackage[newcommands]{ragged2e}加载了(因为我最近遇到了同样的问题)。
所以,我假设你正在处理类似这样的事情:

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}

\usepackage[newcommands]{ragged2e}
\usepackage{graphicx,caption}

\captionsetup{%
    justification=justified,%
}

\begin{document}
    \begin{figure}
        \centering
        \includegraphics[width=0.6\columnwidth]{example-image-duck}
        \caption{The transitions for the monopolist firm's optimal product line strategy as either $\beta$, $\omega$ or $\alpha_n$ changes. In each panel, $c_v$ and $c_r$ vary between $0$ and $0.9$ within the vertical and horizontal axis, respectively; fixed parameters are $k=0.1$ and $\alpha_c=0.2$. From left-to-right in panel (a), the green variant's recycled content fraction increases: $\beta \in \{5\%, 50\%, 75\%\}$ (with $\alpha_n=0.2$ and $\omega=0.5$). From left-to-right in panel (b), the conventional consumer segment percentage increases: $\omega \in \{15\%, 50\%, 95\%\}$ (with $\alpha_n=0.2$ and $\beta=0.5$) and From left-to-right in panel (c), the naturalites' marginal utility from recycled content increases:  $\alpha_n \in \{5\%, 25\%, 55\%\}$ (with $\beta=\omega=0.5$).}
    \end{figure}
\end{document}

在此处输入图片描述

justification=Justified对此问题的解决方案是使用大写 J 的选项(据我所知未记录) (或者您可以避免使用该newcommands选项)。

...
\captionsetup{%
    justification=Justified,%
}
...

在此处输入图片描述

再次,如果不知道您正在使用什么类/包,这只是一个猜测,但也许这个答案可以帮助其他人解决这个罕见的问题。

相关内容