Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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

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

result

share|improve this answer
    
Thanks,Marco. I will read our wiki. –  Timothy Li May 8 '13 at 10:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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