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.

In LaTex I build the following macro "kum" for translating arabic to german. The result are two minipages, left one with german, right one with arabic (the other two minipages were for design-issues). The macro "arab" is not shown, it just choose an arabic font.

\newcommand{\kum}[2]{
\begin{minipage}[t]{0.445\textwidth} \small
#1
\end{minipage} 
\begin{minipage}[t]{0.05\textwidth} 
 ~
\end{minipage}
\begin{minipage}[t]{0.445\textwidth} 
\begin{arab}[voc]
\raggedleft
#2
\end{arab}
\end{minipage}
\begin{minipage}[t]{0.06\textwidth} 
~
\end{minipage}
}

Now I've two questions:

  1. What is the equivalent of minipages in ConTeXt?
  2. How to realize the above LaTeX code in ConTeXt? (both with engine LuaTeX)
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You can use the paragraphs mechanism (see also manual section 4.10 “Paragraphs in columns”). Here is an example:

\defineparagraphs
  [Translation]
  [n=3,
   distance=2em]

\setupparagraphs
  [Translation] [1]
  [width=.4\textwidth,
   style=small]

\setupparagraphs
  [Translation] [2]
  [width=.6\textwidth,
   align=flushleft]

\starttext
  \startTranslation
    \input knuth
    \Translation
    \input tufte
  \stopTranslation
\stoptext

result

result

share|improve this answer
    
+1 for introducing me to the “paragraphs” mechanism. –  phg Oct 15 '12 at 11:15
add comment

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.