1

An simple example:

\starttext
\setupframed[align=right,frame=off,offset=none]
\framed{A\hskip3em\framed{B\\ C}}
\stoptext

How can I set the framed which contains B\\ C so that the baseline of \framed{B\\ C} can have the same baseline with the first line B?

The same result can be achieved in plain TeX as follows:

\hbox{\vtop{\hbox{A}}\hskip3em\vtop{\hbox{B}\hbox{C}}}

What's the method in ConTeXt?

2

You need location=top, see Wiki - setupframed for more options.

\starttext
  \framed{A\hskip3em\framed[align=normal,location=top]{B\\ C}}
\stoptext

result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.