答案1
另请参阅 Aditya 的博客文章使用 ConTeXt 制作具有视觉吸引力的海报。虽然它没有提供给你一个现成的例子,但它给出了一个非常好的概念概述。
我为海报想出了一个(相当)简单的示例。正如 Aditya 所说,它主要归结为设置纸张大小和字体大小以及列中的排版内容。
警告:我正在使用columnset
的似乎与 MkIV 有一些困难。例如,\placefigure
似乎无法很好地与它配合使用。如果您遇到问题,请在邮件列表中询问。Hans 反应非常灵敏,他通常的回答是“在下一个测试版中修复”。
\environment poster-environment
\setupbodyfont[sansserif]
\starttext
\setvariables
[metadata]
[
title={My really long and super awesome research title that spans
multiple lines},
author={Good guys},
institute={Institute of the Holy Cow, Ridderstraat 27, 8061GH
Hasselt, The Netherlands},
logo={\externalfigure[cow][width=10cm]},
]
\startcolumnset[threecolumn]
\startblock[title=Introduction]
\input lorem
\stopblock
\startblock[title=Knuth]
\input knuth
\stopblock
\startblock[title=Ward]
\input ward
\stopblock
\column
\startblock[title=Zapf]
\input zapf
\stopblock
\externalfigure[cow][width=\textwidth]
\startblock[title=Hawking]
\input hawking
\stopblock
\column
\startblock[title=Douglas]
\input Douglas
\stopblock
\startblock[title=Bryson]
\input bryson
\stopblock
\externalfigure[cow][width=\textwidth]
\stopcolumnset
\stoptext
因为将样式和内容分开是一种很好的做法,所以我将所有布局都考虑进去了poster-environment.tex
。当然,现在看起来不太好看,但增加视觉效果很容易。参见Aditya 的精彩 git 教程了解详情。
\startenvironment *
\setuppapersize[A0][A0]
\setupbodyfont[25pt]
\setuplayout
[
cutspace=5cm,
leftmargin=4cm,
leftmargindistance=1cm,
width=middle,
rightmargindistance=1cm,
rightmargin=4cm,
backspace=5cm,
%
topspace=4cm,
header=10cm,
headerdistance=5cm,
height=middle,
footerdistance=0pt,
footer=0pt,
bottomspace=5cm,
]
\setupbackgrounds
[page]
[background=color,backgroundcolor=gray]
\definecolumnset
[threecolumn]
[n=3]
\setupcolumnset
[threecolumn][each]
[
distance=3cm,
background=color,
backgroundcolor=white,
backgroundoffset=1cm,
frame=on,
frameoffset=1cm,
rulethickness=1pt,
]
\setupcolumnset[threecolumn][1][distance=0pt]
\definestyle
[titlestyle]
[style={\tfd\setupinterlinespace\WORD}]
\definestyle
[authorstyle]
[style={\tfc\setupinterlinespace}]
\definestyle
[institutestyle]
[style={\tfb\setupinterlinespace}]
\startsetups header:title
\framed
[
frame=off,
height=\headerheight,
width=\dimexpr\makeupwidth-10cm\relax,
align=middle,
]{%
\titlestyle{\getvariable{metadata}{title}\par}
\vfill
\authorstyle{\getvariable{metadata}{author}\par}
\vfill
\institutestyle{\getvariable{metadata}{institute}\par}
}
\stopsetups
\startsetups header:logo
\framed
[
frame=off,
height=\headerheight,
width=10cm,
align=middle,
]{%
\getvariable{metadata}{logo}
}
\stopsetups
\setupheadertexts[\setups{header:logo}][\setups{header:title}]
\setuppagenumbering[location=]
\definehead
[block]
[subject]
[
style=\bfa,
align=middle,
before={\blank[line]},
after={\blank[line]},
textcommand={\framed[width=.9\textwidth]},
]
\stopenvironment