![ConTeXt:左对齐边距内容](https://linux22.com/image/398090/ConTeXt%EF%BC%9A%E5%B7%A6%E5%AF%B9%E9%BD%90%E8%BE%B9%E8%B7%9D%E5%86%85%E5%AE%B9.png)
我试图使边距内容(齐平)左对齐,但与我能找到的所有示例和文档相反,这不起作用:
\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