TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.