ConTeXt:左对齐边距内容

ConTeXt:左对齐边距内容

我试图使边距内容(齐平)左对齐,但与我能找到的所有示例和文档相反,这不起作用:

\setuplayout[backspace=6cm,leftmargin=4cm,width=14cm]

\setupmargindata[inmargin][align=flushleft]

\starttext
\showframe
\inmargin{ 

\input ward 

\startitemize
  \item Something something this should be aligned just as if it was in the main text
  \item But it is not, it just looks weird and wrong.
\stopitemize

\externalfigure[cow.pdf][width=\marginwidth]

}

\input ward

\stoptext

在此处输入图片描述

我错过了什么?

答案1

这似乎可以解决问题:

\setuplayout[backspace=6cm,leftmargin=4cm,width=14cm]
\setupmarginframed[inmargin][align=flushleft]
\starttext
\showframe
\inmargin{

\input ward

\startitemize
  \item Something something this should be aligned just as if it was in the main text
  \item But it is not, it just looks weird and wrong.
\stopitemize

\externalfigure[cow.pdf][width=\marginwidth]

}

\input ward

\stoptext

在此处输入图片描述

相关内容