On Thu, 15 Nov 2012 09:07:55 +0100, MANUEL GONZALEZ SUAREZ 
<gonzalezsman...@uniovi.es> wrote:


Hello.

I wish someone would help me "translate" this code LaTeX to ConTeXt. It is a
command to do word by word translations, so that a word appears under another.

Here's the code:

\newcommand\dos[2]{\begin{tabular}{@{}c}{\textDidot{\footnotesize#1}}\\{\scriptsize\em#2}\end{tabular}}

A picture of the result would be nice - we probably won't know what to reach.



Thanks

Something like this?

----
% 
\newcommand\dos[2]{\begin{tabular}{@{}c}{\textDidot{\footnotesize#1}}\\{\scriptsize\em#2}\end{tabular}}

\define[2]\dos{%
  \bTABLE
    \setupTABLE[align=middle]
    \setupTABLE[r][1][style=\small]
    \setupTABLE[r][2][style={\small\small\em}]
    \bTR\bTD#1\eTD\eTR
    \bTR\bTD#2\eTD\eTR
  \eTABLE
}

\starttext
  Some text \dos{Abc}{Def}
\stoptext
----

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

Attachment: t-Manuel.mkiv
Description: Binary data

Attachment: t-Manuel.pdf
Description: Adobe PDF document

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to