* Macros in \start-stopTABLE
@ 2014-11-16 4:50 Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 5:06 ` Idris Samawi Hamid ادريس سماوي حامد
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2014-11-16 4:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear gang,
In the following, the first table works and the second one does not:
=====================
\setupbodyfont[tt]
\definefont[ALM][file:almfixed.otf*arabic at 12pt]
\setupdirections[bidi=global]
\define\NCR{\NC \righttoleft \ }
\define\NCL{\NC \lefttoright \ }
\setupTABLE[c][each][width=1in]
\starttext
\ALM
\placetable[right,none]{}
{\startTABLE
\NC Text 1 \NC \righttoleft النص 1 \NC\NR
\stopTABLE}
\placetable[right,none]{}
{\startTABLE
\NC Text 2 \NCR النص 2 \NC\NR
\stopTABLE}
\stopalignment
=====================
gives
"I've run across a `}' that doesn't seem to match anything."
What do I need to do to get this macro right here?
Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Macros in \start-stopTABLE
2014-11-16 4:50 Macros in \start-stopTABLE Idris Samawi Hamid ادريس سماوي حامد
@ 2014-11-16 5:06 ` Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 7:24 ` Pablo Rodriguez
2014-11-16 13:18 ` Hans Hagen
2 siblings, 0 replies; 6+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2014-11-16 5:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, 15 Nov 2014 21:50:06 -0700, Idris Samawi Hamid ادريس سماوي حامد
<ishamid@colostate.edu> wrote:
> \stopalignment
Note: That line is spurious and is *not* part of the problem (as it might
appear at first guess). Removing it will give the same error.
Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Macros in \start-stopTABLE
2014-11-16 4:50 Macros in \start-stopTABLE Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 5:06 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2014-11-16 7:24 ` Pablo Rodriguez
2014-11-16 19:24 ` Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 13:18 ` Hans Hagen
2 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2014-11-16 7:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/16/2014 05:50 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>
> In the following, the first table works and the second one does not:
> [...]
> What do I need to do to get this macro right here?
Hi Idris,
I don’t know how you could make it work with TABLE, but your macro seems
to work with xtables:
\setupbodyfont[tt]
\definefont[ALM][file:almfixed.otf*arabic at 12pt]
\setupdirections[bidi=global]
\define\NCD{\stopxcell\startxcell\righttoleft}
\setupxtable[width=1in]
\starttext
\ALM
\placetable[right,none]{}
{\startxtable
\startxrow
\startxcell Text 2 \NCD النص 2 \stopxcell
\stopxrow
\stopxtable}
\stoptext
Just in case it helps,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Macros in \start-stopTABLE
2014-11-16 4:50 Macros in \start-stopTABLE Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 5:06 ` Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 7:24 ` Pablo Rodriguez
@ 2014-11-16 13:18 ` Hans Hagen
2014-11-16 18:43 ` Idris Samawi Hamid ادريس سماوي حامد
2 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2014-11-16 13:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 11/16/2014 5:50 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Dear gang,
>
> In the following, the first table works and the second one does not:
>
> =====================
> \setupbodyfont[tt]
> \definefont[ALM][file:almfixed.otf*arabic at 12pt]
> \setupdirections[bidi=global]
>
> \define\NCR{\NC \righttoleft \ }
> \define\NCL{\NC \lefttoright \ }
>
> \setupTABLE[c][each][width=1in]
>
> \starttext
> \ALM
> \placetable[right,none]{}
> {\startTABLE
> \NC Text 1 \NC \righttoleft النص 1 \NC\NR
> \stopTABLE}
>
> \placetable[right,none]{}
> {\startTABLE
> \NC Text 2 \NCR النص 2 \NC\NR
> \stopTABLE}
> \stopalignment
> =====================
>
> gives
>
> "I've run across a `}' that doesn't seem to match anything."
>
> What do I need to do to get this macro right here?
don't confuse starttable and startTABLE (used \bTR etc)
Hans
-----------------------------------------------------------------
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] 6+ messages in thread
* Re: Macros in \start-stopTABLE
2014-11-16 13:18 ` Hans Hagen
@ 2014-11-16 18:43 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 0 replies; 6+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2014-11-16 18:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 16 Nov 2014 06:18:02 -0700, Hans Hagen <pragma@wxs.nl> wrote:
> don't confuse starttable and startTABLE (used \bTR etc)
Ah.. looking at the code here:
http://wiki.contextgarden.net/TABLE#TABLEs_with_old_table_syntax
I guess it's not worth investing in the low-level trickery to force this;
I'll try a different tables method.
Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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] 6+ messages in thread
* Re: Macros in \start-stopTABLE
2014-11-16 7:24 ` Pablo Rodriguez
@ 2014-11-16 19:24 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 0 replies; 6+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2014-11-16 19:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 16 Nov 2014 00:24:57 -0700, Pablo Rodriguez <oinos@gmx.es> wrote:
> On 11/16/2014 05:50 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
>> Dear gang,
>>
>> In the following, the first table works and the second one does not:
>> [...]
>> What do I need to do to get this macro right here?
>
> Hi Idris,
>
> I don’t know how you could make it work with TABLE, but your macro seems
> to work with xtables:
>
> \setupbodyfont[tt]
> \definefont[ALM][file:almfixed.otf*arabic at 12pt]
> \setupdirections[bidi=global]
>
> \define\NCD{\stopxcell\startxcell\righttoleft}
>
> \setupxtable[width=1in]
>
> \starttext
> \ALM
> \placetable[right,none]{}
> {\startxtable
> \startxrow
> \startxcell Text 2 \NCD النص 2 \stopxcell
> \stopxrow
> \stopxtable}
> \stoptext
>
> Just in case it helps,
Very helpful, I'm switching to xtables. I hope we can get bidi-paragraph
options for the cell commands built into the core so we needn't write out
\righttoleft etc.... e.g.
\start-stopxcellR, \start-stopxcellL
Thanks a lot and
Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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] 6+ messages in thread
end of thread, other threads:[~2014-11-16 19:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-16 4:50 Macros in \start-stopTABLE Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 5:06 ` Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 7:24 ` Pablo Rodriguez
2014-11-16 19:24 ` Idris Samawi Hamid ادريس سماوي حامد
2014-11-16 13:18 ` Hans Hagen
2014-11-16 18:43 ` Idris Samawi Hamid ادريس سماوي حامد
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).