这是一个最小的工作示例,可以阐明我的问题。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{alterqcm}
\begin{document}
\begin{alterqcm}[symb = \dingsquare,lq=6cm,language=english]
\AQquestion{This is a long question, which can be written over serveral lines with line breaks.}{%
{One short proposition 1},
{A longer proposition 2, still fits},
{A really long proposition 3, which does not fit in one line and has this really wide spacing between lines},
{Just another short proposition 4}}
\end{alterqcm}
\end{document}
因此,当我的答案需要多行时,就会出现这种奇怪的大间距。当我\smash
提出命题时,每个答案都会写在一行中,忽略右边距。我如何强制alterqcm
将垂直间距减少到最后一行?
答案1
如果可以接受手动换行,那么就可以得到\Longunderstack
答案。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{alterqcm,stackengine}
\setstackEOL{\\}
\begin{document}
\begin{alterqcm}[symb = \dingsquare,lq=6cm,language=english]
\AQquestion{This is a long question, which can be written over serveral lines with line breaks.}{%
{One short proposition 1},
{A longer proposition 2, still fits},
{\Longunderstack[l]{A really long proposition 3, which\\
does not fit in one line and has this\\
really wide spacing between lines}},
{Just another short proposition 4}}
\end{alterqcm}
\end{document}
正如 maryjn 在评论中指出的那样,\parbox
可以使用 a。如果使用该[t]
选项,则对齐也可以。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{alterqcm,stackengine}
\setstackEOL{\\}
\begin{document}
\begin{alterqcm}[symb = \dingsquare,lq=6cm,language=english]
\AQquestion{This is a long question, which can be written over serveral lines with line breaks.}{%
{One short proposition 1},
{A longer proposition 2, still fits},
{\parbox[t]{6cm}{A really long proposition 3, which
does not fit in one line and has this
really wide spacing between lines}},
{Just another short proposition 4}}
\end{alterqcm}
\end{document}