* LaTeX to ConTeXt
@ 2012-11-15 8:42 MANUEL GONZALEZ SUAREZ
0 siblings, 0 replies; 8+ messages in thread
From: MANUEL GONZALEZ SUAREZ @ 2012-11-15 8:42 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/html, Size: 165 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Latex to ConTeXt
@ 2012-11-15 8:07 MANUEL GONZALEZ SUAREZ
2012-11-15 8:13 ` luigi scarso
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: MANUEL GONZALEZ SUAREZ @ 2012-11-15 8:07 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/html, Size: 624 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Latex to ConTeXt
2012-11-15 8:07 Latex " MANUEL GONZALEZ SUAREZ
@ 2012-11-15 8:13 ` luigi scarso
2012-11-15 8:20 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-12-02 12:40 ` Wolfgang Schuster
2 siblings, 0 replies; 8+ messages in thread
From: luigi scarso @ 2012-11-15 8:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 424 bytes --]
On Thu, Nov 15, 2012 at 9:07 AM, MANUEL GONZALEZ SUAREZ <
gonzalezsmanuel@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}}
>
> mkii or mkiv ?
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 951 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Latex to ConTeXt
2012-11-15 8:07 Latex " MANUEL GONZALEZ SUAREZ
2012-11-15 8:13 ` luigi scarso
@ 2012-11-15 8:20 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-11-15 20:38 ` Wolfgang Schuster
2012-11-16 23:11 ` Hans Hagen
2012-12-02 12:40 ` Wolfgang Schuster
2 siblings, 2 replies; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-11-15 8:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]
On Thu, 15 Nov 2012 09:07:55 +0100, MANUEL GONZALEZ SUAREZ <gonzalezsmanuel@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:LPr@pontex.cz]
Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
[-- Attachment #2: t-Manuel.mkiv --]
[-- Type: application/octet-stream, Size: 369 bytes --]
% \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
[-- Attachment #3: t-Manuel.pdf --]
[-- Type: application/pdf, Size: 8849 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Latex to ConTeXt
2012-11-15 8:20 ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-11-15 20:38 ` Wolfgang Schuster
2012-11-16 23:11 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2012-11-15 20:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 15.11.2012 um 09:20 schrieb Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> <t-Manuel.mkiv>
You can use the “p”-Prefix for private modules.
It doesn’t matter which prefix you use, you can even drop it (not really recommended when you have a local file with the same name) but the different prefixes are a good method to tell if a module comes with the tex installation (t-xxx) or is only on the own system (p-xxx).
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Latex to ConTeXt
2012-11-15 8:20 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-11-15 20:38 ` Wolfgang Schuster
@ 2012-11-16 23:11 ` Hans Hagen
2012-11-19 8:16 ` Manuel González Suárez
1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2012-11-16 23:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/15/2012 9:20 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> On Thu, 15 Nov 2012 09:07:55 +0100, MANUEL GONZALEZ SUAREZ
> <gonzalezsmanuel@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
more efficient:
\unexpanded\def\dos#1#2%
{\dontleavehmode
\begingroup
\setbox0\struttedbox{#1}%
\setbox2\struttedbox{#2}%
\ifdim\wd0>\wd2
\setbox2\hbox to \wd0{\hss\box2\hss}%
\else
\setbox0\hbox to \wd2{\hss\box0\hss}%
\fi
\box0
\kern-\wd2
\raise\lineheight\box2
\endgroup}
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Latex to ConTeXt
2012-11-16 23:11 ` Hans Hagen
@ 2012-11-19 8:16 ` Manuel González Suárez
0 siblings, 0 replies; 8+ messages in thread
From: Manuel González Suárez @ 2012-11-19 8:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2703 bytes --]
Thanks very much, Hans.
The second solution is very good.
Manuel
2012/11/17 Hans Hagen <pragma@wxs.nl>
> On 11/15/2012 9:20 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>
>> On Thu, 15 Nov 2012 09:07:55 +0100, MANUEL GONZALEZ SUAREZ
>> <gonzalezsmanuel@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
>>
>
> more efficient:
>
> \unexpanded\def\dos#1#2%
> {\dontleavehmode
> \begingroup
> \setbox0\struttedbox{#1}%
> \setbox2\struttedbox{#2}%
> \ifdim\wd0>\wd2
> \setbox2\hbox to \wd0{\hss\box2\hss}%
> \else
> \setbox0\hbox to \wd2{\hss\box0\hss}%
> \fi
> \box0
> \kern-\wd2
> \raise\lineheight\box2
> \endgroup}
>
>
>
> --
>
> ------------------------------**------------------------------**-----
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | www.pragma-pod.nl
> ------------------------------**------------------------------**-----
> ______________________________**______________________________**
> _______________________
> 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 <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/<http://foundry.supelec.fr/projects/contextrev/>
> wiki : http://contextgarden.net
> ______________________________**______________________________**
> _______________________
>
[-- Attachment #1.2: Type: text/html, Size: 4074 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Latex to ConTeXt
2012-11-15 8:07 Latex " MANUEL GONZALEZ SUAREZ
2012-11-15 8:13 ` luigi scarso
2012-11-15 8:20 ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-12-02 12:40 ` Wolfgang Schuster
2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2012-12-02 12:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 673 bytes --]
Am 15.11.2012 um 09:07 schrieb MANUEL GONZALEZ SUAREZ <gonzalezsmanuel@uniovi.es>:
>
> 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}}
\usemodule[ruby]
\defineruby[dos]
\starttext
Left \dos{middle}{middle text} right
\blank
Left \dos[alternative=bottom]{middle}{middle text} right
\blank
Left \dos[textstyle={\setcharactercasing[WORD]\tfxx}]{middle}{middle text} right
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1425 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-12-02 12:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15 8:42 LaTeX to ConTeXt MANUEL GONZALEZ SUAREZ
-- strict thread matches above, loose matches on Subject: below --
2012-11-15 8:07 Latex " MANUEL GONZALEZ SUAREZ
2012-11-15 8:13 ` luigi scarso
2012-11-15 8:20 ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-11-15 20:38 ` Wolfgang Schuster
2012-11-16 23:11 ` Hans Hagen
2012-11-19 8:16 ` Manuel González Suárez
2012-12-02 12:40 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).