Re: [NTG-context] Typesetting hebrew in a table...

2019-08-12 Thread Willi Egger
Hello Taco,

thank you so much. - Indeed this looks good! The option with 
‘verytolerant,stretch’ works but does not look that nice, some words are really 
far from each other…
So the way to go is “{r2l,right}”

Thanks!

Willi

> On 12 Aug 2019, at 15:36, Taco Hoekwater  wrote:
> 
> 
> 
>> On 12 Aug 2019, at 15:08, Willi Egger  wrote:
>> 
>> Hi all,
>> 
>> my brother is studying Ifrith and wants to have a dictionary. The idea is to 
>> typeset left German and right Ifrith in a /bTABLE…\eTABLE environment.
>> 
>> When trying to typeset the Ifrith text is not broken into lines correctly 
>> i.e. it is leaping into the cell reserved for the German text. — How to 
>> correct this behaviour?
> 
> Either use:
> 
> \setupTABLE[column][2][align={r2l,right},width=42mm]
> 
> or:
> 
> \setupTABLE[column][2][align={r2l,verytolerant,stretch},width=42mm]
> 
> since a bare ‘r2l’ is like “normal” except for the writing direction. 
> 
> 
> Best wishes,
> Taco
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Typesetting hebrew in a table...

2019-08-12 Thread Taco Hoekwater


> On 12 Aug 2019, at 15:08, Willi Egger  wrote:
> 
> Hi all,
> 
> my brother is studying Ifrith and wants to have a dictionary. The idea is to 
> typeset left German and right Ifrith in a /bTABLE…\eTABLE environment.
> 
> When trying to typeset the Ifrith text is not broken into lines correctly 
> i.e. it is leaping into the cell reserved for the German text. — How to 
> correct this behaviour?

Either use:

\setupTABLE[column][2][align={r2l,right},width=42mm]

or:

\setupTABLE[column][2][align={r2l,verytolerant,stretch},width=42mm]

since a bare ‘r2l’ is like “normal” except for the writing direction. 


Best wishes,
Taco

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Cross references to column numbers

2019-08-12 Thread Oliver von Criegern

Dear list members,

how can I create cross references to column numbers?

I have a two column layout with column numbers in the header instead of 
page numbers (actually, these column numbers are calculated from the 
page numbers). Now I want to create a cross reference that returns the 
column number of the target. How can I achieve this?


Of course, I can get the page number with \pagereference (for the 
target) and \at (for the reference), but for calculating the column 
number (according to what I did in the header), I would also need to 
know whether the target is in the left or in the right column, and I 
can't see how I can get this information.


For an example, see the question posted by me at stackexchange:
https://tex.stackexchange.com/questions/502944/context-cross-references-to-column-numbers

Besides, I am wondering, regarding the generally very regular and 
consistent naming of commands in ConTeXt, why this is not so in the case 
of references. For example, to refer to a page, I need \pagereference 
(for the target) and \at (for the reference); to refer to a line, I need 
\someline (for the target) and \inline (for the reference), but only if 
I want it to automatically add the word "line" or something else before 
the number, otherwise I have to use \inlinerange. It took me some time 
to find that out. Wouldn't it be easier to have just one command for the 
target and another one for the reference, and everything else, as 
counters and headers to be returned, text to be added etc. to be 
configured by options?


Best regards,
Oliver.


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Typesetting hebrew in a table...

2019-08-12 Thread Willi Egger
Hi all,

my brother is studying Ifrith and wants to have a dictionary. The idea is to 
typeset left German and right Ifrith in a /bTABLE…\eTABLE environment.

When trying to typeset the Ifrith text is not broken into lines correctly i.e. 
it is leaping into the cell reserved for the German text. — How to correct this 
behaviour?

I attach a rather minimal sample.

Kind regards!

Willi



test-hebrew.tex
Description: Binary data


test-hebrew.pdf
Description: Adobe PDF document


test-paal.dat
Description: Binary data
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] texexec is deprecated?

2019-08-12 Thread Mojca Miklavec
On Mon, 12 Aug 2019 at 13:42, Jon Wong  wrote:
>
> I was able to use `context’ but not `texexec’. The latter (`texexec —pdf 
> test.tex’) tells me that some format file (`cont-en.fmt’) can’t be found.
>
> Is `texexec’ obsolete?

texexec is only for Mark II (8-bit pdfTeX, XeTeX) which has been
frozen for years now.
lmtx is only for Mark >= IV (new version of LuaTeX), so texexec no
longer makes sense there and anything needed to run it is also
missing.

Support is only provided for Mark IV and later.

Mojca
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] texexec is deprecated?

2019-08-12 Thread Jon Wong
Hi all,

I did a quick standalone install of Mark IV:

```shell
mkdir ~/context
cd ~/context
wget http://minimals.contextgarden.net/setup/first-setup.sh
sh first-setup.sh --modules=all --context=current --engine=luatex’)
```

Set the correct paths and env in `~/.bashrc':

```shell
# Add ConTeXt
platform=osx-64
PATH=~/context/bin:~/context/tex/texmf-$platform/bin:$PATH
source ~/context/tex/setuptex

export PATH
```

(By the way, the latest lmtx installer is missing the `setuptex' file.)

I was able to use `context’ but not `texexec’. The latter (`texexec —pdf 
test.tex’) tells me that some format file (`cont-en.fmt’) can’t be found.

Is `texexec’ obsolete?

The 2013 ConTeXt manual still uses it, though.

Regards
Jon

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Jon Wong
Hi Taco!

Very enlightening!

I’ll just use both MetaPost and SVG for their intended purposes. (SVG will come 
from workflow involving GIMP/Inkscape; MetaPost for logical, rather than 
graphical, figures.)

Regards
Jon


> On Aug 12, 2019, at 7:30 PM, luigi scarso  wrote:
> 
> 
> 
> On Mon, Aug 12, 2019 at 12:11 PM Jon Wong  > wrote:
> Hi all,
> 
> Is it possible to convert SVG to MetaPost?
> 
> Currently, I have Bash scripts in my workflow to invoke Inkscape (converting 
> SVG to PDF). I don’t like to allow shell access to TeX.
> 
> If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files 
> instead of SVG files. That will do away with having to convert SVG into PDF 
> (via Inkscape).
> 
> 
> you can check pstoedit 
> http://www.calvina.de/pstoedit/pstoedit.htm 
> 
> 
> it can convert postscript to metapost.
> So svg->pdf->ps->mp seems to be possible.
> Of course, I am not sure if it fits in  your workflow.
> 
> -- 
> luigi
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread luigi scarso
On Mon, Aug 12, 2019 at 12:11 PM Jon Wong  wrote:

> Hi all,
>
> Is it possible to convert SVG to MetaPost?
>
> Currently, I have Bash scripts in my workflow to invoke Inkscape
> (converting SVG to PDF). I don’t like to allow shell access to TeX.
>
> If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files
> instead of SVG files. That will do away with having to convert SVG into PDF
> (via Inkscape).
>
>
you can check pstoedit
http://www.calvina.de/pstoedit/pstoedit.htm

it can convert postscript to metapost.
So svg->pdf->ps->mp seems to be possible.
Of course, I am not sure if it fits in  your workflow.

-- 
luigi
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Taco Hoekwater
Hi,

> On 12 Aug 2019, at 12:10, Jon Wong  wrote:
> 
> Hi all,
> 
> Is it possible to convert SVG to MetaPost?
> 
> Currently, I have Bash scripts in my workflow to invoke Inkscape (converting 
> SVG to PDF). I don’t like to allow shell access to TeX.
> 
> If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files 
> instead of SVG files. That will do away with having to convert SVG into PDF 
> (via Inkscape).

SVG (and Inkscape) can do many graphical things that metapost can not do, so I 
think that would be a bad idea even if there was a tool that could do the 
conversion for some subset of SVG.

That said, SVG is just an XML format, so it should be possible to process 
simple SVG using ConTeXt’s built-in xml parser (with suitable processing 
environments, of course). How much work that would entail and whether it is
feasible depends on the actual SVG graphics.

Best wishes,
Taco
 
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Convert SVG to MetaPost

2019-08-12 Thread Jon Wong
Hi all,

Is it possible to convert SVG to MetaPost?

Currently, I have Bash scripts in my workflow to invoke Inkscape (converting 
SVG to PDF). I don’t like to allow shell access to TeX.

If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files 
instead of SVG files. That will do away with having to convert SVG into PDF 
(via Inkscape).

Regards
Jon
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] white space after a float in a column

2019-08-12 Thread Sytse Knypstra
Hi all,

In my recent question I had overlooked the possibility of using
\startplaceintermezzo
...
\stopplaceintermezzo
and inserting a \blank before the \stopplaceintermezzo.

Sorry for this stupid mistake and the noise.

With kind regards,

Sytse Knypstra
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___