Re: [NTG-context] problem loading attachments (important for my work)

2017-06-08 Thread Pablo Rodriguez
On 06/09/2017 12:36 AM, Hans Hagen wrote:
> On 6/8/2017 9:40 PM, Pablo Rodriguez wrote:
>> [...]
>> I’m afraid that the file exists and ConTeXt in Win10 (64bit) isn’t able
>> to load the file.
> 
> When I test with
> 
>  \attachment[file={t:/sources/cow.pdf}]
> 
> it gets embedded in the file
> 
> (you can check with \nopdfcompression)

Many thanks for your replies, Akira and Hans.

Well, I must be doing something (stupid and) wrong with the path. I will
report later, after I check it in Windows.

Many thanks for your help,

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

Re: [NTG-context] problem loading attachments (important for my work)

2017-06-08 Thread Hans Hagen

On 6/8/2017 9:40 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \setupinteraction[state=start]
 \setupinteractionscreen[option=attachment]
 \setuppapersize[A5, landscape]
 \setuppagenumbering[location=]
 \starttext
 File: \attachment[file={h:/general-documents/document.pdf}]
 \stoptext

I’m afraid that the file exists and ConTeXt in Win10 (64bit) isn’t able
to load the file.


When I test with

\attachment[file={t:/sources/cow.pdf}]

it gets embedded in the file

(you can check with \nopdfcompression)


ConTeXt loads \attachment[file=document.pdf], but not documents with paths.

Could anyone confirm the issue in Windows? This is important for my work.

BTW, if you don’t want to invoke "net use", "subst" may do the trick
(https://ss64.com/nt/subst.html).

Many thanks for your help,

Pablo




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] problem loading attachments (important for my work)

2017-06-08 Thread Akira Kakuto

Could anyone confirm the issue in Windows?


Here, in both of examples below, the file is successfully
attached in Windows:


\setupinteraction[state=start]
\setupinteractionscreen[option=attachment]
\setuppapersize[A5, landscape]
\setuppagenumbering[location=]
\starttext
File: \attachment[file={c:/usr/work/examples/pic.pdf}]
\stoptext

%
% without braces
%
\setupinteraction[state=start]
\setupinteractionscreen[option=attachment]
\setuppapersize[A5, landscape]
\setuppagenumbering[location=]
\starttext
File: \attachment[file=c:/usr/work/examples/pic.pdf]
\stoptext

Best,
Akira

___
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] splitting a landscape table with local footnotes

2017-06-08 Thread Alan Bowen
I have a very long table (landscape) with local footnotes that I wish to
split over two pages so that
(a) the table is on a verso page and
(b) the notes on the next recto page.

Any suggestions about how to do this will be gratefully received.

Here is a MWE that is not too small, I hope.

\starttext
\dorecurse{5}{\input knuth}
\setupnotation[footnote][numberconversion=characters]
\startlocalfootnotes
\setupTABLE[frame=off,split=yes]
\setupTABLE[c][1,2,3,4,5,6][roffset=.3pc]
\setupTABLE[c][2,3,4,5,6,7][loffset=.3pc]

\startplacetable[title={Hellenistic calendars},
location={page,header,high,90}] %leftpage does not seem to work
{\setbox\scratchbox\vbox{%
\bTABLE
\bTABLEbody
\bTR\bTD \eTD
\bTD Babylonian\eTD
\bTD Greek\eTD
\bTD Egyptian\eTD
\bTD Roman\eTD
\bTD Judaean%
\footnote{\input knuth}\eTD\eTR
\eTABLEbody
\eTABLE}
\par
\hsize\wd\scratchbox
\box\scratchbox
\par
\placelocalfootnotes
\stoplocalfootnotes}
\stopplacetable

\stoptext

Alan
___
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] problem loading attachments (important for my work)

2017-06-08 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupinteraction[state=start]
\setupinteractionscreen[option=attachment]
\setuppapersize[A5, landscape]
\setuppagenumbering[location=]
\starttext
File: \attachment[file={h:/general-documents/document.pdf}]
\stoptext

I’m afraid that the file exists and ConTeXt in Win10 (64bit) isn’t able
to load the file.

ConTeXt loads \attachment[file=document.pdf], but not documents with paths.

Could anyone confirm the issue in Windows? This is important for my work.

BTW, if you don’t want to invoke "net use", "subst" may do the trick
(https://ss64.com/nt/subst.html).

Many thanks for your help,

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

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Hans Hagen

On 6/8/2017 4:29 PM, Aditya Mahajan wrote:

On Thu, 8 Jun 2017, Mikael P. Sundqvist wrote:


And indeed, in luatex 1.05 the primes look fine again. The prime in
the fraction is too low, but I take Hans' "Such is life" and use \over
for the rare cases where I have primes inside fractions.


I haven't followed the thread carefully, but there is nothing special in 
\frac. The likely cause is prime is misplaced in cramped style or 
similar and similar misplacement will happen whenever that style is used.


I would be weary of using {... \over ...}. At the very least, use
\Ustack{... \over ...}, else any code that uses \mathstyle (instead of 
\mathchoice) will fail.


For an explaination, see Taco's answer here:
https://tex.stackexchange.com/a/1261/323
indeed, the problem is that \over (and friends) are the only tricky 
parsing bits (ahead/back) and as a consequence have tricky style related 
issues (which also means often extra {} is needed as in


{ { foo } \over { bar } }

in order not to let style changes in foo and bar interfere ... only 
meant for low level parsing and expansion lovers


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Aditya Mahajan

On Thu, 8 Jun 2017, Mikael P. Sundqvist wrote:


And indeed, in luatex 1.05 the primes look fine again. The prime in
the fraction is too low, but I take Hans' "Such is life" and use \over
for the rare cases where I have primes inside fractions.


I haven't followed the thread carefully, but there is nothing special in 
\frac. The likely cause is prime is misplaced in cramped style or similar 
and similar misplacement will happen whenever that style is used.


I would be weary of using {... \over ...}. At the very least, use
\Ustack{... \over ...}, else any code that uses \mathstyle (instead of 
\mathchoice) will fail.


For an explaination, see Taco's answer here:
https://tex.stackexchange.com/a/1261/323

Aditya


___
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] Misnamed parameter in \setuppagenumbering?

2017-06-08 Thread Hans Hagen

On 6/8/2017 8:59 AM, Henri Menke wrote:

Dear list,

On TeX.SX there was a question about why ConTeXt starts the document with a 
left instead of a right
page.  Turns out the OP merely confused "marginedge" with "inmargin".  However, 
that made me wonder,
is "marginedge" perhaps misnamed when it does not place the pagenumber in the 
margin close to the
edge of the page?  I think it should be named "marginspine" instead.  The below 
MWE should
illustrate the problem.

Cheers, Henri

---

\setuppagenumbering
   [
 alternative=doublesided,
 location={footer,marginedge},
   ]

\starttext
Behold the pagenumber on the left
\stoptext
the edge is the area next to the margin (outer sides) and mostly meant 
as independent area for interactive purposes (so one can simply set 
their width to zero for paper) ... the terminology will not change as 
it's been so for a long time


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Thu, Jun 8, 2017 at 10:42 AM, luigi scarso  wrote:
> On Thu, Jun 8, 2017 at 10:39 AM, Mikael P. Sundqvist  wrote:
>> I get the same error with revision 6349 from
>> https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/ ,
>> see below. But maybe we are OT on this list now, and should either go
>> to luatex list or private?
> not OT,
> I am checking.
>
>
>
>
> --
> 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
> ___

With some hands on help from Taco and luigi the compilation worked (I
had not installed icu-config, freetype-config, makeinfo, which might
help someone else).

And indeed, in luatex 1.05 the primes look fine again. The prime in
the fraction is too low, but I take Hans' "Such is life" and use \over
for the rare cases where I have primes inside fractions.

Thanks to all!

/Mikael
___
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] Position of prime for derivatives

2017-06-08 Thread luigi scarso
On Thu, Jun 8, 2017 at 10:39 AM, Mikael P. Sundqvist  wrote:
> I get the same error with revision 6349 from
> https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/ ,
> see below. But maybe we are OT on this list now, and should either go
> to luatex list or private?
not OT,
I am checking.




-- 
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
___

[NTG-context] change image resolution

2017-06-08 Thread Henning Hraban Ramm
Ahoi,

the old unofficial lua module grph-downsample doesn’t seem to work anymore 
(with latest MkIV), don’t know when it stopped working and what the problem is 
– at least my pictures aren’t found any more if I load that file 
(\loadluafile[grph-downsample]).

Is there a different/better/newer way of downsampling pictures?

(Keywords: shrink resolution externalfigure)

Greetlings, Hraban
---
http://www.fiee.net
http://meeting.contextgarden.net
GPG Key ID 1C9B22FD

___
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] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Thu, Jun 8, 2017 at 10:28 AM, Mikael P. Sundqvist  wrote:
> On Thu, Jun 8, 2017 at 10:17 AM, luigi scarso  wrote:
>> On Thu, Jun 8, 2017 at 9:52 AM, Mikael P. Sundqvist  wrote:
>>> PS: the ./build.sh (Checked out revision 6287) runs for a while, and
>>> then stops with an error like this (it is probably my fault):
>>>
>>> Makefile:368: recipe for target
>>> '../../../../source/texk/kpathsea/doc/kpathsea.info' failed
>>> make[2]: *** [../../../../source/texk/kpathsea/doc/kpathsea.info] Error 127
>>
>> weird, the file is there.
>> Just to be sure,  which repo are you using ?
>>
>>
>> --
>> 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
>> ___
>
> I ran
>
> svn checkout --username anonsvn --password anonsvn
> https://foundry.supelec.fr/svn/luatex/branches/experimental/
>
> I will try to wipe and redo. Maybe something went wrong.
>
> /Mikael

I get the same error with revision 6349 from
https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/ ,
see below. But maybe we are OT on this list now, and should either go
to luatex list or private?

/Mikael


Makefile:369: recipe for target
'../../../../source/texk/kpathsea/doc/kpathsea.info' failed
make[2]: *** [../../../../source/texk/kpathsea/doc/kpathsea.info] Error 127
make[2]: Leaving directory
'/opt/luatex-experimental/experimental/build/texk/kpathsea/doc'
Makefile:1634: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/opt/luatex-experimental/experimental/build/texk/kpathsea'
Makefile:816: recipe for target 'all' failed
make: *** [all] Error 2
./build.sh: line 294: cd: texk/web2c: No such file or directory
make: *** No rule to make target 'luatex'.  Stop.
strip: 'build/texk/web2c/luatex': No such file
ls: cannot access 'build/texk/web2c/luatex': No such file or directory
___
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] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Thu, Jun 8, 2017 at 10:17 AM, luigi scarso  wrote:
> On Thu, Jun 8, 2017 at 9:52 AM, Mikael P. Sundqvist  wrote:
>> PS: the ./build.sh (Checked out revision 6287) runs for a while, and
>> then stops with an error like this (it is probably my fault):
>>
>> Makefile:368: recipe for target
>> '../../../../source/texk/kpathsea/doc/kpathsea.info' failed
>> make[2]: *** [../../../../source/texk/kpathsea/doc/kpathsea.info] Error 127
>
> weird, the file is there.
> Just to be sure,  which repo are you using ?
>
>
> --
> 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
> ___

I ran

svn checkout --username anonsvn --password anonsvn
https://foundry.supelec.fr/svn/luatex/branches/experimental/

I will try to wipe and redo. Maybe something went wrong.

/Mikael
___
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] Position of prime for derivatives

2017-06-08 Thread luigi scarso
On Thu, Jun 8, 2017 at 9:52 AM, Mikael P. Sundqvist  wrote:
> PS: the ./build.sh (Checked out revision 6287) runs for a while, and
> then stops with an error like this (it is probably my fault):
>
> Makefile:368: recipe for target
> '../../../../source/texk/kpathsea/doc/kpathsea.info' failed
> make[2]: *** [../../../../source/texk/kpathsea/doc/kpathsea.info] Error 127

weird, the file is there.
Just to be sure,  which repo are you using ?


-- 
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] Position of prime for derivatives

2017-06-08 Thread Mikael P. Sundqvist
On Wed, Jun 7, 2017 at 11:03 PM, Hans Hagen  wrote:
> On 6/7/2017 9:57 PM, Mikael P. Sundqvist wrote:
>
>> In 2017.06.06 13:22 something is still not correct.
>
> i mentioned that you need a new engine (the garden has 1.0.5 binafies for
> windows but other platforms need to be generated)
>
>
> Hans
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

Ah, sorry, I did not read your mail carefully enough. I tried to
compile 1.05 experimental from the svn, but I got some error, so I
will probably wait for the 1.05 release (or hope a bit for the
intermediate garden release, then).

/Mikael

PS: the ./build.sh (Checked out revision 6287) runs for a while, and
then stops with an error like this (it is probably my fault):

Makefile:368: recipe for target
'../../../../source/texk/kpathsea/doc/kpathsea.info' failed
make[2]: *** [../../../../source/texk/kpathsea/doc/kpathsea.info] Error 127
make[2]: Leaving directory
'/opt/luatex-experimental/experimental/build/texk/kpathsea/doc'
Makefile:1653: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
'/opt/luatex-experimental/experimental/build/texk/kpathsea'
Makefile:814: recipe for target 'all' failed
make: *** [all] Error 2
./build.sh: line 291: cd: texk/web2c: No such file or directory
make: *** No rule to make target 'luatex'.  Stop.
strip: 'build/texk/web2c/luatex': No such file
ls: cannot access 'build/texk/web2c/luatex': No such file or directory
___
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] Misnamed parameter in \setuppagenumbering?

2017-06-08 Thread Henri Menke
Dear list,

On TeX.SX there was a question about why ConTeXt starts the document with a 
left instead of a right
page.  Turns out the OP merely confused "marginedge" with "inmargin".  However, 
that made me wonder,
is "marginedge" perhaps misnamed when it does not place the pagenumber in the 
margin close to the
edge of the page?  I think it should be named "marginspine" instead.  The below 
MWE should
illustrate the problem.

Cheers, Henri

---

\setuppagenumbering
  [
    alternative=doublesided,
    location={footer,marginedge},
  ]

\starttext
Behold the pagenumber on the left
\stoptext

___
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
___