[NTG-context] Re: vim syntax highlighting bug?

2024-01-06 Thread Christian Prim via ntg-context
Hello

on my installation, it's working:
[image: image.png]
But I'm on an old version on debian:
VIM - Vi IMproved 8.2 (2019 Dec 12 kompiliert am Oct 01 2021 01:51:08)
Inklusive der Patches: 1-2434
Extra Patches: 8.2.3402, 8.2.3403, 8.2.3409, 8.2.3428

Perhaps something has changed in version 9.0...

Hope it helps

Christian

Am Sa., 6. Jan. 2024 um 13:04 Uhr schrieb Damien Thiriet via ntg-context <
ntg-context@ntg.nl>:

> Hello,
>
>
> Happy New Year!
>
> I got into a bug in my Vim syntax highlighting version.
> Highlight stays in lua mode after ctxlua macro is closed.
> Here is a MWE, where «this should not be highlitghted as
> a comment indeed is.
>
> \starttext
>
> Hello!
> \ctxlua{context("does the parser work?")}
>
> -- this should not be highlighted as a comment
>
> \stoptext
>
> Do other Vim users come into this?
> Is my syntax file outdated?
>
> I am using this Vim version on OpenBSD 7.3 -stable:
> VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep  6 2023 08:55:14)
> Included patches: 1-1876
>
> Best regards,
>
> Damien Thiriet
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Setting up the double pages of part beginnings

2021-09-12 Thread Christian Dekant via ntg-context
Thank you, this works nicely. I put up a (minimal) working example of 
the adapted code (it inserts an empty page, if the peceding chapter ends 
on an even page) on the wiki, see


https://wiki.contextgarden.net/User_talk:Christian.Dekant

Is this interesting for other users as well? (Maybe on 
https://wiki.contextgarden.net/Titles?) If not ... I guess it will do no 
harm on my discussion page.


All the best
Christian

Am 11.09.21 um 13:25 schrieb Wolfgang Schuster:

Christian Dekant via ntg-context schrieb am 10.09.2021 um 19:25:

Dear List,

I am trying to set up double pages at the beginning of a new part in 
such a way that:
- on an odd/right-hand page there will be number and the title 
typeset in some fashion, and
- on the even/left-hand page there should be a full (printpaper)size 
image.


https://www.mail-archive.com/ntg-context@ntg.nl/msg94581.html

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


[NTG-context] Setting up the double pages of part beginnings

2021-09-10 Thread Christian Dekant via ntg-context
Dear List,

I am trying to set up double pages at the beginning of a new part in such a
way that:
- on an odd/right-hand page there will be number and the title typeset in
some fashion, and
- on the even/left-hand page there should be a full (printpaper)size image.

If the part title ends up on an even page then there is no additional page
break (but then image and title are not on the same double-page obviously).
But there is a page break (and an empty left page) when the part title ends
up on an odd page (when you put page=right e.g.) as in the following
example:

%
% How to get rid of the empty page preceding a part title?
%

\setuppagenumbering [alternative=doublesided]

\setupexternalfigures[location=default] % cow


% startTEXpage does not increase page number => incrementpagenumber

% trimming in the print shop => printpaperwidth/height

\define[1]\FullScreen{\startTEXpage\externalfigure[#1][width=\printpaperwidth,height=\printpaperheight]\stopTEXpage\incrementpagenumber}

% tried page=yes/no/right/odd

\setuphead

[part]

[placehead=yes,

page=right,

before={\nowhitespace}, % ???

]


\starttext

\completecontent

\FullScreen{cow}

\startpart[title={A nice part}]

Some text ...

\stoppart

\FullScreen{cow}

\startpart[title={A nice part}]

Some text ...

\stoppart

\stoptext


On an additional note: I would love to utilise the XML capabilities of
context, so ... is the usage of \startTEpage XML-export-friendly?

Anyway, best regards, thank you for your patience in advance and a happy
weekend for everybody!

Cheers
Christian
___
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] [installing lmtx on raspi400]

2021-05-13 Thread Christian Prim
In buster the libc6 is too old. You can switch to debian 11 or ubuntu as
Hans said or you can add a newer glibc version. I had the same problem on a
chromebook duet. I solved it following this (or a similar) solution:

https://github.com/deltachat/deltachat-desktop/issues/1006#issue-498257133

(you read context instead of deltachat)

I had no problems using the newer libc6. But you do this at your one risk!

Kind regards
Christian



Am Do., 13. Mai 2021 um 16:30 Uhr schrieb Hans Hagen :

> On 5/13/2021 2:08 PM, Floris van Manen wrote:
> > No desktop system is complete before having a proper lmtx installed ;-)
> >
> > So with this OS version
> >
> > $ uname -a
> > Linux rp400 5.10.17-v8+ #1414 SMP PREEMPT Fri Apr 30 13:23:25 BST 2021
> > aarch64 GNU/Linux
> >
> > $ hostnamectl
> > Static hostname: rp400
> >   Icon name: computer
> >Operating System: Debian GNU/Linux 10 (buster)
> >  Kernel: Linux 5.10.17-v8+
> >Architecture: arm64
> >
> >
> > I downloaded
> > context-linux-aarch64.zip
> >
> >
> > unzipped it in the ~/context folder and ran the install.sh script
> >
> > $ sudo sh ./install.sh
> >
> > this gives an error:
> >
> > /home/pi/context/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: version
> > `GLIBC_2.29' not found (required by /home/pi/context/bin/mtxrun)
> >
> >
> >
> > Anyone with a hint ?
>
> the 64 bit is generate on a rpi runing ubuntu so maybe more recent libs?
>
> Hans
>
> (makes me wonder if it runs on a rpi with windows)
>
> -
>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
>
> ___
>
___
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] tikz-module not up to date (synchronisation problem with contextgarden?)

2021-01-08 Thread Christian Prim
Hi

It's been a long time, since a solution for the 'module wrapping error' in
tikz has been proposed here in the list:
https://mailman.ntg.nl/pipermail/ntg-context/2017/090404.html

Since July a fix has been published:
https://github.com/pgf-tikz/pgf/commit/9b24e5cdb8246b1075d02c02c75ff8bcac642c16

A few days ago the release containing the fix was released. On
contextgarden the manual under modules/t-tikz/doc/generic/pgf shows the
current version 3.1.8b, but the source doesn't include the fix. I compared
the source on context-garden (rsync://
contextgarden.net/minimals/current/modules/) with the zip (
https://github.com/pgf-tikz/pgf/archive/3.1.8b.zip). In the zip file the
fix is included, so I'm puzzled...

Is there a synchronisation-problem?

Just wanted to mention it. It's not crucial.

Thanks
Christian
___
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] Install Problem on aarch64

2020-12-19 Thread Christian Prim
Thanks Hans for the quick fix. Install works now on aarch64.

Christian

Am Fr., 18. Dez. 2020 um 16:35 Uhr schrieb Hans Hagen :

> On 12/18/2020 2:58 PM, Christian Prim wrote:
> > Hi
> >
> > upgrading my lmtx-Installation results in:
> >
> > mtx-install | platform : linux-aarch64
> > mtx-install | system   : unix
> > mtx-install | updating tex/texmf, 1541 files
> > mtx-install | updating tex/texmf-context, 3915 files
> > mtx-install | updating tex/texmf-linux-aarch64, 6 files
> > mtx-install | skipping tex/texmf-linux-aarch64/bin/context
> > mtx-install | skipping tex/texmf-linux-aarch64/bin/mtxrun
> > mtx-install | changed  :   0 % :  2696864 :
> > tex/texmf-linux-aarch64/bin/luametatex
> > mtx-install | tex/texmf-linux-aarch64/bin/luametatex, trying again:
> > mtx-install | changed  :   0 % :  2696864 :
> > tex/texmf-linux-aarch64/bin/luametatex
> >
> > Is there a problem on my side or is this a bug?
> >
> > Because of wrong binary version I can't run context --make
> >
> > This is LuaMetaTeX, Version 2.08.03
> >
> 2097153([...]/lmtx/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl(context.mkxl(syst-ini.mkxl
> > ! token call, execute: [\directlua]:1: array of names expected
> > stack traceback:
> >  [C]: in function 'tex.enableprimitives'
> >  [\directlua]:1: in main chunk.
> >  }
> something seemed messed up (incompleteupload or so) ... i'll make a new
> install later (first need finish something)
>
> 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
>
> ___
>
___
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] Install Problem on aarch64

2020-12-18 Thread Christian Prim
Hi

upgrading my lmtx-Installation results in:

mtx-install | platform : linux-aarch64
mtx-install | system   : unix
mtx-install | updating tex/texmf, 1541 files
mtx-install | updating tex/texmf-context, 3915 files
mtx-install | updating tex/texmf-linux-aarch64, 6 files
mtx-install | skipping tex/texmf-linux-aarch64/bin/context
mtx-install | skipping tex/texmf-linux-aarch64/bin/mtxrun
mtx-install | changed  :   0 % :  2696864 :
tex/texmf-linux-aarch64/bin/luametatex
mtx-install | tex/texmf-linux-aarch64/bin/luametatex, trying again:
mtx-install | changed  :   0 % :  2696864 :
tex/texmf-linux-aarch64/bin/luametatex

Is there a problem on my side or is this a bug?

Because of wrong binary version I can't run context --make

This is LuaMetaTeX, Version 2.08.03
2097153([...]/lmtx/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl(context.mkxl(syst-ini.mkxl
! token call, execute: [\directlua]:1: array of names expected
stack traceback:
[C]: in function 'tex.enableprimitives'
[\directlua]:1: in main chunk.
 }

Thanks
Christian
___
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] Install Problems with 64 bit ARM Linux

2020-12-01 Thread Christian Prim
Hi Mojca

thanks a lot! Because glibc is backward compatible one can only deliver the
2.28 binaries (they work on a 2.29-system) ... so not several versions
needed.

Christian

Am Di., 1. Dez. 2020 um 16:20 Uhr schrieb Hans Hagen :

> On 12/1/2020 4:05 PM, Mojca Miklavec wrote:
> > Dear Christian,
> >
> > I remembered that I have an old Pine64 with Armbian 10 collecting dust
> > somewhere in a drawer.
> > I powered it up and it still works :) I guess we could build the
> binaries there.
> So then we have, like with bsd, several versions? Bah, happy me that
> windows doesn't have that problem.
>
> 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
>
> ___
>
___
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] Install Problems with 64 bit ARM Linux

2020-11-28 Thread Christian Prim
Hi Hans

>
> (btw, i think a 32 bit arm bij should run on the 64 right, and the 32
> bit is still old debian)


Could be, but one has to install the 32-bit linker and libraries. It
doesn't work out of the box. I tested it. And the binary is not recognised
as such:

user@penguin:~/test/bin$ ./mtxrun
-bash: ./mtxrun: No such file or directory

user@penguin:~/test/bin$ file mtxrun
mtxrun: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically
linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0,
BuildID[sha1]=2605a12bc4b8fdedf57f71908f74f3ad3fbedcc8, stripped

user@penguin:~/test/bin$ ldd mtxrun
not a dynamic executable

Sorry for the not so good news...

Christian
___
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] Install Problems with 64 bit ARM Linux

2020-11-28 Thread Christian Prim
Hi Mojca

sorry for being a few days late. I got the hardware just yesterday. It's a
lenovo chromebook duet (Tablet), that can run linux apps. For the UK (you
may select your country) it's here:
https://www.lenovo.com/gb/en/laptops/lenovo/student-chromebooks/Lenovo-CT-X636/p/ZZICZCTCT1X

Very nice little piece of hardware. Small, great battery life and not so
limited as other tablets (full linux access). Rather fast too...

As I told in the second email, there's a workaround. But it would be nice,
if context would work out of the box. These little tablets are commonly
used at schools.

Hope I could help

Many thanks again
Christian

Am Sa., 28. Nov. 2020 um 10:52 Uhr schrieb Mojca Miklavec <
mojca.miklavec.li...@gmail.com>:

> Dear Christian,
>
> On Fri, 27 Nov 2020 at 20:50, Christian Prim wrote:
> >
> > Is there a reason why the arm binaries for ARM Linux use version 2.29 of
> glibc?
>
> They are being compiled on a Raspberry PI which kind of lacks
> first-class 64-bit support (or at least that was the case when we set
> up a builder on our build farm, about 9 months ago). I don't remember
> seeing anyone even request those binaries before, and this is the
> first complaint I see about the glibc-too-new issue on aarch64 (it was
> common on the Intel platform, but there we can easily build on Debian
> 8 or 9).
>
> I believe the RPI is currently running some recent version of Ubuntu
> (it was set up by Hans; I would need to check to be sure, but it could
> well be that it's 20.04).
>
> Judging from (random google hits)
> https://www.raspberrypi.org/forums/viewtopic.php?t=243985
>
> https://www.raspberrypi.org/blog/latest-raspberry-pi-os-update-may-2020/
> it could be that May 2020 (which is precisely 6 months ago, in any
> case later than when the builder was set up) has brought some better
> news, an OS image that wouldn't require so much hacking to get it set
> up and running.
>
> It's a pity that you didn't ask this question a few days ago, I
> believe that Hans just reinstalled everything on that tiny device (SD
> cards are a pain and like to wear out rather quickly if you keep
> running build jobs and rewriting the same memory cells over and over
> again; I thought we had set up an external disk properly, but well
> ...)
>
> We could try again to get Debian 10 running on the RPI.
>
> Alternatively we could cross-compile, of course, but that's a bit more
> painful to set up, and RPI 4 is certainly amazingly fast.
>
> > My actual debian buster installation is still on glibc-2.28. The x86_64
> Linux binaries also use the older 2.28-version which is widely used among
> many distros. I would be very happy if I could install a 2.28-version on my
> ARM Linux box. Else I have to compile my own glic... or my own mtxrun...
>
> A luametatex binary is needed.
>
> Out of curiosity: what hardware do you run your linux distro on?
>
> 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
>
> ___
>
___
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] Install Problems with 64 bit ARM Linux

2020-11-28 Thread Christian Prim
Hi

could solve the problem, by installing the glibc from debian testing
following the instructions found here:
https://github.com/deltachat/deltachat-desktop/issues/1006

It would still be better I think when glibc 2.28 was used in the binaries...

Thanks
Christian

Am Fr., 27. Nov. 2020 um 20:49 Uhr schrieb Christian Prim <
christian.p...@gmx.ch>:

> Hi everyone
>
> Is there a reason why the arm binaries for ARM Linux use version 2.29 of
> glibc? My actual debian buster installation is still on glibc-2.28. The
> x86_64 Linux binaries also use the older 2.28-version which is widely used
> among many distros. I would be very happy if I could install a 2.28-version
> on my ARM Linux box. Else I have to compile my own glic... or my own
> mtxrun...
>
> Many thanks for your clarifications
> Christian
>
> PS.: error messages during the install:
> .../lmtx/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: version
> `GLIBC_2.29' not found (required by .../lmtx/bin/mtxrun)
>
___
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] Install Problems with 64 bit ARM Linux

2020-11-27 Thread Christian Prim
Hi everyone

Is there a reason why the arm binaries for ARM Linux use version 2.29 of
glibc? My actual debian buster installation is still on glibc-2.28. The
x86_64 Linux binaries also use the older 2.28-version which is widely used
among many distros. I would be very happy if I could install a 2.28-version
on my ARM Linux box. Else I have to compile my own glic... or my own
mtxrun...

Many thanks for your clarifications
Christian

PS.: error messages during the install:
.../lmtx/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29'
not found (required by .../lmtx/bin/mtxrun)
___
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 with gnuplot-module in lmtx

2020-11-27 Thread Christian Prim
Thanks Hans

the new upload works with the gnuplot-module as it should be!

Christian

Am Mi., 25. Nov. 2020 um 14:25 Uhr schrieb Christian Prim <
christian.p...@gmx.ch>:

> Hi
>
> with the latest version of lmtx (upgraded a minute ago), the
> gnuplot-example from the wiki-page (for lmtx with externalfigure) doesn't
> work. Error is:
>
> tex error   > tex error on line 1 in file
> virtual://buffer.svg-sin-inclusion.1: Undefined control sequence
>
>  \font_basics_predefine #1#2->\font_basics_defined_font_yes
> [#2]\gletcsname #1\expandafter \endcsname \csname
> \v_font_identifier_basic \endcsname
>  \predefinedfont [#1]->\ifcsname \??predefinedfont #1\endcsname
> \lastnamedcs \else \font_basics_predefined {#1}
> \fi
>  \svgnormal ...ame \??svgfamily #1\endcsname \lastnamedcs \else
> #1\fi -#2-#3}\predefinedfont [\s!spec :\p_font *\s!default \space @ 10bp]
> \fi #4\egroup
>
>  \svgstartlayer
> \svgscaled{1}{arial}{normal}{normal}{\svgscaled{1}{arial}{normal}{normal}{\svghashed{1}}}
> \svgstoplayer
>
>  \
>
>  \global \setbox \mptextbox \hbox {\clf_mptexttoks
> }
> ...
>
>  \includegnuplotsvgfile[./sin.svg]
> \resetbuffer[svg-sin-inclusion]
>
> 
>
>
> The control sequence at the end of the top line of your error message was
> never
> \def'ed. You can just continue as I'll forget about whatever was undefined.
>
>
> mtx-context | fatal error: return code: 256
>
> here is the code:
>
> gnuplot.tex:
> \usemodule[gnuplot]
>
> \starttext
> \externalfigure[sin.gp][conversion=svg,width=4cm]
> \stoptext
>
> sin.gp:
> set format xy "$%g$"
>
> set title  'This is a plot of $y=\\sin(x)$'
> set xlabel 'This is the $x$ axis'
> set ylabel 'This is the $y$ axis'
>
> plot [0:6.28] [0:1] sin(x)
>
> The same code works on older lmtx (current version: 2020.09.20 23:02).
> It's not on the same linux-machine, but both have the same gnuplot-version
> installed.
>
> Is this a bug?
>
> Thanks
> Christian
>
___
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 with gnuplot-module in lmtx

2020-11-25 Thread Christian Prim
Hi

with the latest version of lmtx (upgraded a minute ago), the
gnuplot-example from the wiki-page (for lmtx with externalfigure) doesn't
work. Error is:

tex error   > tex error on line 1 in file
virtual://buffer.svg-sin-inclusion.1: Undefined control sequence

 \font_basics_predefine #1#2->\font_basics_defined_font_yes
[#2]\gletcsname #1\expandafter \endcsname \csname
\v_font_identifier_basic \endcsname
 \predefinedfont [#1]->\ifcsname \??predefinedfont #1\endcsname
\lastnamedcs \else \font_basics_predefined {#1}
\fi
 \svgnormal ...ame \??svgfamily #1\endcsname \lastnamedcs \else
#1\fi -#2-#3}\predefinedfont [\s!spec :\p_font *\s!default \space @ 10bp]
\fi #4\egroup

 \svgstartlayer
\svgscaled{1}{arial}{normal}{normal}{\svgscaled{1}{arial}{normal}{normal}{\svghashed{1}}}
\svgstoplayer

 \

 \global \setbox \mptextbox \hbox {\clf_mptexttoks
}
...

 \includegnuplotsvgfile[./sin.svg]
\resetbuffer[svg-sin-inclusion]




The control sequence at the end of the top line of your error message was
never
\def'ed. You can just continue as I'll forget about whatever was undefined.


mtx-context | fatal error: return code: 256

here is the code:

gnuplot.tex:
\usemodule[gnuplot]

\starttext
\externalfigure[sin.gp][conversion=svg,width=4cm]
\stoptext

sin.gp:
set format xy "$%g$"

set title  'This is a plot of $y=\\sin(x)$'
set xlabel 'This is the $x$ axis'
set ylabel 'This is the $y$ axis'

plot [0:6.28] [0:1] sin(x)

The same code works on older lmtx (current version: 2020.09.20 23:02). It's
not on the same linux-machine, but both have the same gnuplot-version
installed.

Is this a bug?

Thanks
Christian
___
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] upload

2020-11-23 Thread Christian Prim
Hi

on linux I get:
csname overload > fatal error, protection level 4, control sequence
'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315

wiped cache; run mtxrun --generate without problems; but context --make has
this error.

Do I miss something?

Thanks
Christian

Am Mo., 23. Nov. 2020 um 18:56 Uhr schrieb Hans Hagen :

> Hi,
>
> I uploaded a next iteration of lmtx. From now on there are dedicated sub
> directories for mklx and mpxl, which is an indication that we're on the
> way to a full code split.
>
> 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
>
> ___
>
___
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] Problems with tikz plot file

2020-09-06 Thread Christian Prim
Many thanks Hans for the quick fix!

Christian

Am Fr., 4. Sept. 2020 um 10:09 Uhr schrieb Hans Hagen :

> On 9/4/2020 8:32 AM, Christian Prim wrote:
> > Hi everyone
> >
> > Following MWE produces an error on newest lmtx (current version:
> > 2020.09.03 20:03):
> >
> > \usemodule[tikz]
> > \starttext
> > \placefigure[here][]{}{\hbox{\starttikzpicture
> > \draw plot file {data.table};
> > \stoptikzpicture}}
> > \stoptext
> >
> > with data.table:
> >
> > 150 -0.102
> > 150.1 -0.15
> > 150.2 -0.389
> > 150.3 -0.15
> > 150.4 -0.389
> > 150.5 -0.15
> > 150.6 -0.293
> > 150.7 -0.341
> > 150.8 -0.485
> > 150.9 -0.293
> >
> > (data.table could be any x-y-pair)
> >
> > The error says:
> > tex error on line 5 in file ./plot.tex: Argument of \pgf@parsexyline
> has
> > an extra }
> >
> > It doesn't seem to be directly related to
> >
> https://unix.stackexchange.com/questions/10267/how-to-find-unmatched-brackets-in-a-text-file
>  as
>
> > I have tested to convert data.table to dos-Format with unix2dos. No
> success.
> >
> > I'm working on linux (debian).
> >
> > What am I missing? Or is this a bug?
> seems that i need to append a space to the lines read in .. i'll fix it
>
> 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
>
> ___
>
___
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] Problems with tikz plot file

2020-09-04 Thread Christian Prim
Hi everyone

Following MWE produces an error on newest lmtx (current version: 2020.09.03
20:03):

\usemodule[tikz]
\starttext
\placefigure[here][]{}{\hbox{\starttikzpicture
   \draw plot file {data.table};
\stoptikzpicture}}
\stoptext

with data.table:

150 -0.102
150.1 -0.15
150.2 -0.389
150.3 -0.15
150.4 -0.389
150.5 -0.15
150.6 -0.293
150.7 -0.341
150.8 -0.485
150.9 -0.293

(data.table could be any x-y-pair)

The error says:
tex error on line 5 in file ./plot.tex: Argument of \pgf@parsexyline has an
extra }

It doesn't seem to be directly related to
https://unix.stackexchange.com/questions/10267/how-to-find-unmatched-brackets-in-a-text-file
as
I have tested to convert data.table to dos-Format with unix2dos. No success.

I'm working on linux (debian).

What am I missing? Or is this a bug?

Many thanks
Christian
___
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] Table-bug in lmtx?

2020-03-31 Thread Christian Prim
Hello Hans

many thanks for the fix!

Christian

Am Mo., 30. März 2020 um 22:45 Uhr schrieb Hans Hagen :

> On 3/30/2020 6:23 PM, Christian Prim wrote:
> > Hello list
> >
> > following MWE gives a strange error "(interwoven alignment preambles are
> > not allowed)" when processed with lmtx:
> >
> > \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|]
> > \starttext
> > \starttable[fosa]
> > \NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR
> > \MR
> > \NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR
> > \stoptable
> > \stoptext
> >
> > No problems in mkiv.
> > I think Use3 is the problem, but I'm not sure...
> I found the issue (in the engine) ... tomorrow I'll upload a new one.
>
> 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
>
> ___
>
___
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] Table-bug in lmtx?

2020-03-30 Thread Christian Prim
Hello list

following MWE gives a strange error "(interwoven alignment preambles are
not allowed)" when processed with lmtx:

\definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|]
\starttext
\starttable[fosa]
\NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR
\MR
\NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR
\stoptable
\stoptext

No problems in mkiv.
I think Use3 is the problem, but I'm not sure...

Many thanks for your help
Christian
___
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 with long indices in LMTX

2020-03-30 Thread Christian Prim
Hello

For reference: Here is the ConTeXt way of entering a long text-Index, which
works with lmtx:

\starttext
\m{F_{\text{long Index}}=m_{\text{long Index}}a}
\stoptext

Sorry for the noise. (Perhaps a change correlated to the prime
discussion...)
Christian

Am Mi., 25. März 2020 um 09:53 Uhr schrieb Christian Prim <
christian.p...@gmx.ch>:

> Hello list
>
> Sorry to ask again. What do I miss in following MWE?
>
> \starttext
> \m{F_{\rm longIndex}=m_{\rm longIndex}a}
> \stoptext
>
> The index longIndex overlaps the following characters "=" and "a" when
> processed with lmtx. No problems with mkiv.
>
> Thanks for your help
> Christian
>
> Am Sa., 21. März 2020 um 17:27 Uhr schrieb Christian Prim <
> christian.p...@gmx.ch>:
>
>> Hello
>>
>> Following MWE produces strange output in latest LMTX. mkiv (also latest)
>> output is ok.
>>
>> \usetypescript[palatino]
>> \setupbodyfont[palatino,11pt]
>> \starttext
>> \m{F_{\rm longIndex}=m_{\rm longIndex}a}
>> \stoptext
>>
>> The spacing in the index is wrong.
>>
>> What am I missing?
>>
>> Thanks in advance
>> Christian
>>
>
___
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 with long indices in LMTX

2020-03-25 Thread Christian Prim
Hello list

Sorry to ask again. What do I miss in following MWE?

\starttext
\m{F_{\rm longIndex}=m_{\rm longIndex}a}
\stoptext

The index longIndex overlaps the following characters "=" and "a" when
processed with lmtx. No problems with mkiv.

Thanks for your help
Christian

Am Sa., 21. März 2020 um 17:27 Uhr schrieb Christian Prim <
christian.p...@gmx.ch>:

> Hello
>
> Following MWE produces strange output in latest LMTX. mkiv (also latest)
> output is ok.
>
> \usetypescript[palatino]
> \setupbodyfont[palatino,11pt]
> \starttext
> \m{F_{\rm longIndex}=m_{\rm longIndex}a}
> \stoptext
>
> The spacing in the index is wrong.
>
> What am I missing?
>
> Thanks in advance
> Christian
>
___
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 with long indices in LMTX

2020-03-21 Thread Christian Prim
Hello

Following MWE produces strange output in latest LMTX. mkiv (also latest)
output is ok.

\usetypescript[palatino]
\setupbodyfont[palatino,11pt]
\starttext
\m{F_{\rm longIndex}=m_{\rm longIndex}a}
\stoptext

The spacing in the index is wrong.

What am I missing?

Thanks in advance
Christian


test_lmtx.pdf
Description: Adobe PDF document


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


Re: [NTG-context] PDF output routine in lmtx

2019-04-29 Thread Christian Prim
Thanks for your answer, Hans. I checked standard (modern) and gyre-palatino
font. Both give no output. Did pdf-Version change between mkiv and lmtx? I
will try to find the problem in the pdf-file, if I can.

Thanks
Christian

Am Mo., 29. Apr. 2019 um 13:21 Uhr schrieb Hans Hagen :

> On 4/29/2019 11:46 AM, Christian Prim wrote:
> > Hi
> >
> > in lmtx the pdf output routine has changed afaik. I just wanted to
> > report, that in lmtx our printer/copier (Ricoh 8200S or Ricoh 8110S)
> > doesn't print any character. A standard document as the MWE prints well
> > under mkiv. Under lmtx, there is no output (blank sheet). In a document
> > with a tikz-figure, the tikz-figure (without labels, as they are text)
> > is printed. Something with text output must have changed, that makes it
> > incompatible with the copier at our school. I tried to print with
> > different drivers and also used the printers interface (direct print via
> > usb-stick). No success. Are they some flags I can play with (like other
> > pdf-version or so) to find a solution to this problem? This "bug"
> > prevents me to use lmtx at out school.
> >
> > MWE:
> >
> > \starttext
> > That is a test.
> > \stoptext
>
> Any font?
>
> > Of course there is no problem with the preview and the output works on a
> > HP-Printer.
> hard to say ... we output rather straightforward pdf 1.7
>
> 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
>
> ___
>
___
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] PDF output routine in lmtx

2019-04-29 Thread Christian Prim
Hi

in lmtx the pdf output routine has changed afaik. I just wanted to report,
that in lmtx our printer/copier (Ricoh 8200S or Ricoh 8110S) doesn't print
any character. A standard document as the MWE prints well under mkiv. Under
lmtx, there is no output (blank sheet). In a document with a tikz-figure,
the tikz-figure (without labels, as they are text) is printed. Something
with text output must have changed, that makes it incompatible with the
copier at our school. I tried to print with different drivers and also used
the printers interface (direct print via usb-stick). No success. Are they
some flags I can play with (like other pdf-version or so) to find a
solution to this problem? This "bug" prevents me to use lmtx at out school.

MWE:

\starttext
That is a test.
\stoptext

Of course there is no problem with the preview and the output works on a
HP-Printer.

Many thanks for all suggestions!

Christian
___
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] PDF output routine in lmtx

2019-04-29 Thread Christian Prim
Hi

converting the document to ps and back to pdf works (pdf2ps and ps2pdf).
But I think there must be a simpler solution...

Christian

Am Mo., 29. Apr. 2019 um 11:46 Uhr schrieb Christian Prim <
christian.p...@gmx.ch>:

> Hi
>
> in lmtx the pdf output routine has changed afaik. I just wanted to report,
> that in lmtx our printer/copier (Ricoh 8200S or Ricoh 8110S) doesn't print
> any character. A standard document as the MWE prints well under mkiv. Under
> lmtx, there is no output (blank sheet). In a document with a tikz-figure,
> the tikz-figure (without labels, as they are text) is printed. Something
> with text output must have changed, that makes it incompatible with the
> copier at our school. I tried to print with different drivers and also used
> the printers interface (direct print via usb-stick). No success. Are they
> some flags I can play with (like other pdf-version or so) to find a
> solution to this problem? This "bug" prevents me to use lmtx at out school.
>
> MWE:
>
> \starttext
> That is a test.
> \stoptext
>
> Of course there is no problem with the preview and the output works on a
> HP-Printer.
>
> Many thanks for all suggestions!
>
> Christian
>
___
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] gnuplot-module broken under lmtx

2019-04-10 Thread Christian Prim
 #1
 \relax \global \setbox #1\emptybox
...
...l.8 \stoptext


 1 >>  % Written by ConTeXt terminal for GNUPLOT on: 2019-04-10 16:12 CEST
 2 % GNUPLOT version: 5.0.5, terminal version: 1.0.0 (2011-11-05)
 3 % See also http://wiki.contextgarden.net/Gnuplot
 4 %
 5 \startGNUPLOTgraphic[1]
 6 string gnuplotversion; gnuplotversion := "5.0";
 7 string termversion;termversion:= "1.0";
 8 % scaling factor, width and height of the figure
 9 a := 1cm; w := 12.700a; h := 7.620a; % (5in, 3in)
10 % temporary variable for storing the path and images
11 save p, img, ima; path p; string img, ima;

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

mtx-context | fatal error: return code: 256


Sorry, can't help more, as I don't know where the problem is.

Thanks for fixing it in time, when the modules get installed with lmtx.

Christian
___
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] LMTX: 32-bit binaries for 64-bit system

2019-04-06 Thread Christian Prim
Thanks for the very fast fix! Works again without problems on linux-64bit.

Christian

Am Sa., 6. Apr. 2019 um 12:44 Uhr schrieb Hans Hagen :

> On 4/6/2019 11:04 AM, Christian Prim wrote:
> > Hello
> >
> > Today I tried to update the lmtx-installation on 64-bit Linux. The
> > update worked fine, but now I get:
> > # context
> > /home/username/lmtx/tex/texmf-linux-64/bin/context: No such file or
> > directory
> >
> > Same for mtxrun.
> >
> > Redo a fresh install doesn't work either.
> > # ./install.sh
> > /install.sh: 94: ./install.sh: /home/username/test/bin/mtxrun: not found
> >
> > Digging in the problem I found, that the 64-bit installer has 32-bit
> > binaries. The same as in the 32-bit installation. On a system with
> > compatibility libraries the new install works, but on a pure 64-bit
> > system there is a problem.
> >
> > Could you please fix or tell me what I miss.
>
> can you check again, i just uploaded an update
>
> 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
>
> ___
>
___
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] LMTX: 32-bit binaries for 64-bit system

2019-04-06 Thread Christian Prim
Hello

Today I tried to update the lmtx-installation on 64-bit Linux. The update
worked fine, but now I get:
# context
/home/username/lmtx/tex/texmf-linux-64/bin/context: No such file or
directory

Same for mtxrun.

Redo a fresh install doesn't work either.
# ./install.sh
/install.sh: 94: ./install.sh: /home/username/test/bin/mtxrun: not found

Digging in the problem I found, that the 64-bit installer has 32-bit
binaries. The same as in the 32-bit installation. On a system with
compatibility libraries the new install works, but on a pure 64-bit system
there is a problem.

Could you please fix or tell me what I miss.

Thanks
Christian

PS.: My architecture was correctly detected:
platform : linux-64

# file mtxrun -- gives for the file in the installer (
http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip):
mtxrun: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV),
dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0,
BuildID[sha1]=729a29022162787ac1c5e5e48353a6ec37cce6b7, stripped

Exactly same sha1 as for 32-bit Linux mtxrun
___
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] TikZ modules are missing \startmodule

2017-12-08 Thread Christian Feuersaenger

Hi,

thanks for making me aware of problems with ConTeXt and TikZ.

I will look into it, probably after christmas. I would appreciate it if 
you could make a detailed report, especially containing the missing 
statements or the suggested modifications. The report can be a mail; 
ticket is also fine with me.


Kind regards

Christian


Am 08.12.2017 um 09:26 schrieb Christoph Reller:

On Fri, Dec 8, 2017 at 9:04 AM, Mojca Miklavec
<mojca.miklavec.li...@gmail.com> wrote:

Dear Christoph,

On 8 December 2017 at 08:38, Christoph Reller wrote:

Hi,

Since a module nesting check has been introduced in file-mod.mkvi, the TikZ
modules provoke "module wrapping error" messages in the log file. May I
kindly ask the maintainer of the TikZ modules to insert the missing
\startmodule command in the following files:

\tex\texmf-modules\tex\context\pgf\basiclayer\t-pgf.tex
\tex\texmf-modules\tex\context\pgf\basiclayer\t-pgfbim.tex
\tex\texmf-modules\tex\context\pgf\basiclayer\t-pgfcor.tex
\tex\texmf-modules\tex\context\pgf\frontendlayer\t-tikz.tex
\tex\texmf-modules\tex\context\pgf\math\t-pgfmat.tex
\tex\texmf-modules\tex\context\pgf\systemlayer\t-pgfsys.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfcal.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgffor.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfkey.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfmod.tex
\tex\texmf-modules\tex\context\pgf\utilities\t-pgfrcs.tex

Kind regards,
Christoph

Thanks for the report. I suspect that the maintainer of TikZ might not
be reading this mailing list (and is certainly not a ConTeXt user
himself).

I'm CC-ing him. The issue tracker is here:
 https://sourceforge.net/p/pgf/bugs/

In the past Hans and Aditya wrote a number of patches for TikZ
(potentially even fixing this particular issues, I'm not sure), but
not all of them were included.

So ... we need some more persistence in making sure that things get
fixed. This list might be the best place to get the patches, but then
you need to make sure that the patches are actually included upstream.
(This reminds me that I probably need to check if TikZ is still
properly synchronized with upstream in our distribution. As far as I
know SF is dropping support for CVS and I need to check how we sync
the sources now.)

Mojca

Thank you Mojca,

I hope that Christian will take care for this. Keep up the good work!

Cheers,
Christoph


--

Dr. Christian Feuersänger
Rheinbach

___
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] web site

2016-07-05 Thread Christian Prim
No problem here!

Mohammad Hossein Bateni  schrieb am Di., 5. Juli 2016 um
10:40 Uhr:

> is the server down?
>
> i can't connect to pragma-ade.nl or contextgarden.net or
> minimals.contextgarden.net.  all refuse my connection.
>
> On Sun, Jul 3, 2016 at 5:25 AM, Hans Hagen  wrote:
>
>> Hi,
>>
>>
>> for those accessing the website (for updates) best use prgama-ade.nl
>> instead of pragma-ade.com
>>
>> 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug in table ?

2015-12-21 Thread Christian Prim

Thanks Hans

works again with latest beta.

Christian

Am Son, 20. Dez, 2015 um 10:56 schrieb Hans Hagen <pra...@wxs.nl>:

On 12/20/2015 5:30 PM, Christian Prim wrote:
> Dear list
>
> with the latest context I get wrong alignment in table.

i'll look at it, not so much a table, more some side effect

> I know table is deprecated. But I couldn't get xtable to baseline 
align


nor really depricated but complemented by other mechanisms that some
purposes are better

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

[NTG-context] Bug in table ?

2015-12-20 Thread Christian Prim

Dear list

with the latest context I get wrong alignment in table.

MWE: (not so minimal, it's a snippet of my document)

\setuppapersize[A5][A5]
\setuplayout[location=middle, marking=on,
topspace=1.5cm, margin=1cm,
headspace=0cm, header=0cm, headerdistance=0.0cm,
footer=1cm, %bottomspace=1cm,
width=fit, height=fit]
\setupbodyfont[palatino,10pt]
\definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)m|xp(5cm)s2|lw(2.5cm)m|]

\starttext
\starttable[fosa]
\NC Kräftegleichgewicht \NC\Use3[p(8cm)]{Ein Körper ist im 
Kräftegleichgewicht, wenn die resultierende Kraft $\vec{F}_{\rm res}$ 
Null ist.}\NC\AR

\MR
\NC Drehmoment \NC\Use2[lM]{M=Fr} \NC [M]=\unit{1 Newton meter}\NC\AR
\NC \NC F \NC Kraft ($\perp$\ zur DA) \NC [F]=\unit{1 Newton}\NC\AR
\NC \NC r \NC Kraftarm (Abstand DA – Wirkungslinie) \NC [r]=\unit{1 
meter}\NC\AR

\MR
\NC Momenten-\crlf gleichgewicht \NC\Use3[lM]{\sum M_{\rm 
rechtsdrehend}=\sum M_{\rm linksdrehend}}\NC\AR

\MR
\NC Gleichgewichtsarten \NC\Use3[p(8cm)]{stabil, labil, 
indifferent}\NC\AR

\MR
\NC Hebelgesetz \NC\Use3[lM]{F_1 r_1 = F_2 r_2}\NC\AR
\NC \NC r_i \NC Kraftarme \NC [r_i]=\unit{1 meter} \NC\AR
\MR
\stoptable
\stoptext

What I got before latest beta: old.pdf
What I get with new beta (only snippet): new.pdf

The misalignment is visible.

I know table is deprecated. But I couldn't get xtable to baseline align 
two different cells with display math in the same row.


MWE:
\starttext
\startxtable[frame=off]
\startxrow
\startxcell[width=5cm] \m{\displaystyle \gamma=\frac{1}{\sqrt{1-\left 
(\frac{v}{c}\right )^2}}}\stopxcell

\startxcell[width=4cm] Reaktionsprinzip\stopxcell
\stopxrow
\stopxtable
\stoptext

\gamma isn't aligned with the text "Reaktionsprinzip".

Please tell me what I have to change in table or what table-environment 
I have to use to get the desired output.


Thanks
Christian







old.pdf
Description: Adobe PDF document


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

[NTG-context] Vectorsigns are missplaced

2015-11-03 Thread Christian Prim
Hello

in latest beta the vector signs are missplaced:

%\usetypescript[palatino]
%\setupbodyfont[palatino]
\starttext
\m{\vec{v}}
\m{\vec{F}_{\rm res}}
\stoptext

With lm-fonts the vector sign is more or less correct over the F, but wrong
over the letter v.
With palatino font both are wrong.

Did the syntax changed? Or is it a bug?

Kind regards
Christian
___
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
___

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-05-14 Thread Christian Prim
Thanks Hans

with context-version 2015.05.13 23:52 it finally works on my side! Thanks
for the fix!

Christian

2015-04-25 23:18 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 4/24/2015 3:05 PM, Christian Prim wrote:

 Hi Hans

 I don't know if the latest beta already has the new code. But I can
 confirm, that there is still a difference between tikz-colors and
 context/metafun colors.

 TikZ translates c=1,m=1 in (native) RGB, that is b=1, which is in some
 way correct.
 ConTeXt translates c=1,m=1 in something I couldn't really define
 (perhaps sRGB or some other color profile) r=0.183... g=0.191...
 b=0.574... or in Web-Hex: #2e3092

 or back to cmyk: c=.68, m=.67,k=.43 (which is blue with some key-value
 compared to TikZ with k=0)

 So I think that TikZ and ConTeXt don't use the same color profile

 Hope it could help somewhat to solve my problem.


 your example works ok here (with the tikz def file i made last week)

 i also made

 \setupcolors[cmyk=no]
 \setupcolors[rgb=no]
 \setupcolors[cmyk=no,rgb=no]
 \setupcolors[state=stop]

 working (nothing needed in tikz as the code that interfaces to it does
 that) which will be in the next beta


 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

 ___

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

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-24 Thread Christian Prim
Hi Hans

I don't know if the latest beta already has the new code. But I can
confirm, that there is still a difference between tikz-colors and
context/metafun colors.

TikZ translates c=1,m=1 in (native) RGB, that is b=1, which is in some way
correct.
ConTeXt translates c=1,m=1 in something I couldn't really define (perhaps
sRGB or some other color profile) r=0.183... g=0.191... b=0.574... or in
Web-Hex: #2e3092

or back to cmyk: c=.68, m=.67,k=.43 (which is blue with some key-value
compared to TikZ with k=0)

So I think that TikZ and ConTeXt don't use the same color profile

Hope it could help somewhat to solve my problem.

Thanks
Christian

PS.: New MWE with output.pdf attached.

\usemodule[tikz]
\usetypescript[palatino]
\setupbodyfont[palatino,40pt]
\starttext
\definecolor[mycola][c=1,m=1,y=0,k=0]
\definecolor[mycolb][c=0.5,m=0.5,y=0,k=0]
\definecolor[mycolc][c=0.25,m=0.25,y=0,k=0]

\starttikzpicture
\node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm]
{\startcolor[mycola]T\stopcolor};
\node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm] at (2,0)
{\startcolor[mycolb]T\stopcolor};
\node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm] at (4,0)
{\startcolor[mycolc]T\stopcolor};
\stoptikzpicture

\startMPcode
 fill fullsquare xscaled 2cm yscaled 4cm withcolor \MPcolor{mycola};
 fill fullsquare xscaled 2cm yscaled 4cm xshifted 2cm withcolor
\MPcolor{mycolb};
 fill fullsquare xscaled 2cm yscaled 4cm xshifted 4cm withcolor
\MPcolor{mycolc};
\stopMPcode

\par
\startcolor[mycola]T\stopcolor
\startcolor[mycolb]T\stopcolor
\startcolor[mycolc]T\stopcolor
\stoptext


2015-04-17 1:27 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 4/16/2015 11:29 PM, Christian Prim wrote:

 Hi Hans

 sorry to ask again. But the different color handling between
 context-version before 2015.04.14 00:54 and
 context-version 2015.04.14 00:54 is remarkable and annoying.

 See attached pdf-documents. Both have exactly the same source:

 \usemodule[tikz]
 \setupbodyfont[40pt]
 \starttext
 \definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45]
 \definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225]
 \definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125]

 \starttikzpicture
 \node[fill=mycola,rectangle, minimum height=4cm,minimum
 width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor};
 \node[fill=mycolb,rectangle, minimum height=4cm,minimum
 width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor};
 \node[fill=mycolc,rectangle, minimum height=4cm,minimum
 width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor};
 \stoptikzpicture
 \stoptext

 I write in each box the letter T with exactly the same color as the
 underlying box. Textcolor is set using context, fill color of the box is
 set using tikz.

 old.pdf shows the correct color handling. The letter T has exactly the
 same color as the box and therefore disappears.

 With newest beta (new.pdf) the letter T is visible.

 Must I now stay with an old beta or can this bug be fixed? Perhaps
 it's a bug in tikz...


 i found out that it relates to the lack of gray support (which in fact
 seems to be rgb support)

 so the next beta might work ok for you (no upload yet)

 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

 ___



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

Re: [NTG-context] Howto typeset physical half-life

2015-04-18 Thread Christian Prim
Hi Hans

thanks for the checker, that surely helps. So I could find a solution
(perhaps not the best) for my problem:

\m{T_{\text{½}}}

Thanks again
Christian



2015-04-17 23:51 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 4/17/2015 9:41 PM, Christian Prim wrote:

 Hi

 a year or so before one could simply typeset the physical half-life as
 shown in MWE:

 \usetypescript[palatino]
 \setupbodyfont[palatino]
 \starttext
  ½ α
  \m{T_α}
  \m{T_½}
 \stoptext

 The greek letter is just to show, that utf-8 works as expected. In
 actual beta (and probably longer before) this doesn't work anymore. What
 have I missed?


 Are you sure? palatino doesn't have that character in its math repertoire
 (it might have been present in the alternative that uses px fonts combined
 with a pagella text font in which case they're coming from text). The math
 subsystem of context does to some extend accept super and subscript
 characters but not (at least not now) these fractions. Is this really
 needed? It can be done but quite some extra overhead for bad practice.

 Anyway, I've added a checker so that at least it gets reported (assuming
 the use of one math collection):

 mkiv lua stats   unknown math characters: ½ (U+000BD) (n=3)

 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

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

[NTG-context] Howto typeset physical half-life

2015-04-17 Thread Christian Prim
Hi

a year or so before one could simply typeset the physical half-life as
shown in MWE:

\usetypescript[palatino]
\setupbodyfont[palatino]
\starttext
½ α
\m{T_α}
\m{T_½}
\stoptext

The greek letter is just to show, that utf-8 works as expected. In actual
beta (and probably longer before) this doesn't work anymore. What have I
missed?

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

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-16 Thread Christian Prim

Hi Hans

sorry to ask again. But the different color handling between
context-version before 2015.04.14 00:54 and
context-version 2015.04.14 00:54 is remarkable and annoying.

See attached pdf-documents. Both have exactly the same source:

\usemodule[tikz]
\setupbodyfont[40pt]
\starttext
\definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45]
\definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225]
\definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125]

\starttikzpicture
\node[fill=mycola,rectangle, minimum height=4cm,minimum 
width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor};
\node[fill=mycolb,rectangle, minimum height=4cm,minimum 
width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor};
\node[fill=mycolc,rectangle, minimum height=4cm,minimum 
width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor};

\stoptikzpicture
\stoptext

I write in each box the letter T with exactly the same color as the 
underlying box. Textcolor is set using context, fill color of the box 
is set using tikz.


old.pdf shows the correct color handling. The letter T has exactly the 
same color as the box and therefore disappears.


With newest beta (new.pdf) the letter T is visible.

Must I now stay with an old beta or can this bug be fixed? Perhaps 
it's a bug in tikz...


Thanks
Christian


Am Don, 16. Apr, 2015 um 9:58 schrieb Hans Hagen pra...@wxs.nl:

On 4/16/2015 9:34 PM, Christian Prim wrote:
 Hi Hans

 is it correct, that with the new beta one can just use rgb-colors 
using
 tikz or is there a bug preventing the usage of cmyk-colors as it 
used to

 work before?

cmyk should work ok but afaik tikz assumes rgb in some cases so that
prohibits that we can do automatic conversion tp other color spaces at
he context end

 Thanks!

 Christian

 PS.: See mail below for MWE showing false cmyk colors in tikz.

 2015-04-14 11:54 GMT+02:00 Christian Prim christian.p...@gmx.ch
 mailto:christian.p...@gmx.ch:

 Thanks Hans for clarification. But even with simple context 
color

 models (that worked before) I get other colors.

 MWE:

 \usemodule[tikz]
 \setupbodyfont[40pt]
 \starttext
 \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45]
 \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225]
 \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125]
 \startcolor[mycol]
 {\bfa  Test}
 \stopcolor

 \starttikzpicture
 \fill[mycol] (0, 0) rectangle (2,4);
 \fill[mycol_h] (2, 0) rectangle ++(2,4);
 \fill[mycol_q] (4, 0) rectangle ++(2,4);
 \stoptikzpicture
 \stoptext

 I'm not so familiar with metafun, so I couldn't do the rectangle
 with metafun (the different colors between context/metafun and 
tikz
 would certainly be better visible so). But the bullet shows, 
that
 the text color isn't the same as the tikz-figure. But they 
should as
 they are identical. Something must have changed in color 
handling.


 Christian

 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl
 mailto:pra...@wxs.nl:

 On 4/14/2015 10:29 AM, Christian Prim wrote:

 Thanks Hans for the fix!

 I have noticed, that spotcolors can be used in tikz, but
 they are
 darker. Is that wanted or a bug?


 they will map onto cmyk or rgb depending on definitions ...
 don't expect advanced context color models to work with tikz
 (but they do work with metafun)


 Hans

 
--__--__-
Hans Hagen | 
PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The 
Netherlands

  tel: 038 477 53 69 | voip: 087 875 68 74
 tel:087%20875%2068%2074 | www.pragma-ade.com
 http://www.pragma-ade.com
   |
 www.pragma-pod.nl http://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 mailto: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
 
___






 
___
 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

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-16 Thread Christian Prim
Hi Hans

is it correct, that with the new beta one can just use rgb-colors using
tikz or is there a bug preventing the usage of cmyk-colors as it used to
work before?

Thanks!

Christian

PS.: See mail below for MWE showing false cmyk colors in tikz.

2015-04-14 11:54 GMT+02:00 Christian Prim christian.p...@gmx.ch:

 Thanks Hans for clarification. But even with simple context color models
 (that worked before) I get other colors.

 MWE:

 \usemodule[tikz]
 \setupbodyfont[40pt]
 \starttext
 \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45]
 \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225]
 \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125]
 \startcolor[mycol]
 {\bfa  Test}
 \stopcolor

 \starttikzpicture
 \fill[mycol] (0, 0) rectangle (2,4);
 \fill[mycol_h] (2, 0) rectangle ++(2,4);
 \fill[mycol_q] (4, 0) rectangle ++(2,4);
 \stoptikzpicture
 \stoptext

 I'm not so familiar with metafun, so I couldn't do the rectangle with
 metafun (the different colors between context/metafun and tikz would
 certainly be better visible so). But the bullet shows, that the text color
 isn't the same as the tikz-figure. But they should as they are identical.
 Something must have changed in color handling.

 Christian

 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 4/14/2015 10:29 AM, Christian Prim wrote:

 Thanks Hans for the fix!

 I have noticed, that spotcolors can be used in tikz, but they are
 darker. Is that wanted or a bug?


 they will map onto cmyk or rgb depending on definitions ... don't expect
 advanced context color models to work with tikz (but they do work with
 metafun)


 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
 
 ___



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

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-14 Thread Christian Prim
Thanks Hans for the fix!

I have noticed, that spotcolors can be used in tikz, but they are darker.
Is that wanted or a bug?

MWE:

\usemodule[tikz]
\starttext
\definecolor[gruen][c=0.52,y=0.86]
\definespotcolor[mycol][gruen][p=1]
\definespotcolor[mycol_h][gruen][p=0.5]
\definespotcolor[mycol_q][gruen][p=0.25]
\startcolor[mycol]
{\bfa Test Test Test Test Test}
\stopcolor

\starttikzpicture
\fill[mycol] (0, 0) rectangle (2,4);
\fill[mycol_h] (2, 0) rectangle ++(2,4);
\fill[mycol_q] (4, 0) rectangle ++(2,4);
\stoptikzpicture
\stoptext


I expect the first rectangle to have the same color as the (wanted) color
of the text. But the color of the text is closer to the color of the
rectangle in the middle (50%).

Christian

2015-04-13 22:51 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 4/13/2015 7:45 PM, Mojca Miklavec wrote:

 Hi,

 The following example works in MkII and it works in TeX Live 2014, but
 it fails with the latest beta (it draws a black rectangle instead of
 using the defined colour):

 \usemodule[tikz]
 \starttext
 \definecolor[mycol][r=0.9,g=0.8,b=0.8]
 \starttikzpicture
 \fill[mycol] (0, 0) rectangle (2,4);
 \stoptikzpicture
 \stoptext

 It would be really nice to fix this in time for TeX Live 2015.


 Hm, i'm a bit puzzled why some suggested patched are nto in the
 distribution. Anyway, attached a more modern variant

 you need a beta that i just uploaded because i found out that when tijz
 predefines some mixed colors it assumes rgb color space

 your example then runs ok here

 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

 ___

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

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-14 Thread Christian Prim
Thanks Hans for clarification. But even with simple context color models
(that worked before) I get other colors.

MWE:

\usemodule[tikz]
\setupbodyfont[40pt]
\starttext
\definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45]
\definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225]
\definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125]
\startcolor[mycol]
{\bfa  Test}
\stopcolor

\starttikzpicture
\fill[mycol] (0, 0) rectangle (2,4);
\fill[mycol_h] (2, 0) rectangle ++(2,4);
\fill[mycol_q] (4, 0) rectangle ++(2,4);
\stoptikzpicture
\stoptext

I'm not so familiar with metafun, so I couldn't do the rectangle with
metafun (the different colors between context/metafun and tikz would
certainly be better visible so). But the bullet shows, that the text color
isn't the same as the tikz-figure. But they should as they are identical.
Something must have changed in color handling.

Christian

2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl:

 On 4/14/2015 10:29 AM, Christian Prim wrote:

 Thanks Hans for the fix!

 I have noticed, that spotcolors can be used in tikz, but they are
 darker. Is that wanted or a bug?


 they will map onto cmyk or rgb depending on definitions ... don't expect
 advanced context color models to work with tikz (but they do work with
 metafun)


 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
 
 ___

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

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-13 Thread Christian Prim
Hi

I can confirm this bug. It worked fine for me a week before. It seems to be
a bug in one of the latest beta.

Thanks for fixing it
Christian

2015-04-13 19:45 GMT+02:00 Mojca Miklavec mojca.miklavec.li...@gmail.com:

 Hi,

 The following example works in MkII and it works in TeX Live 2014, but
 it fails with the latest beta (it draws a black rectangle instead of
 using the defined colour):

 \usemodule[tikz]
 \starttext
 \definecolor[mycol][r=0.9,g=0.8,b=0.8]
 \starttikzpicture
 \fill[mycol] (0, 0) rectangle (2,4);
 \stoptikzpicture
 \stoptext

 It would be really nice to fix this in time for TeX Live 2015.

 Thank you,
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] footnotes broken in latest beta?

2015-03-27 Thread Christian Prim
Hans,

context --version gives:
mtx-context | current version: 2015.03.27 21:39

but running context file.tex says:

Fatal Error  Your format does not match the base files!

Format Version   2015.03.26 22:52 MKIV
Files Version2015.03.27 21:39

I used first-setup as always to update. What is my mistake? How can I fix
it?
Thanks
Christian

2015-03-27 21:37 GMT+01:00 Hans Hagen pra...@wxs.nl:

 On 3/27/2015 6:46 PM, Pablo Rodriguez wrote:

 Hans,

 I’m afraid that footnotes are broken in latest beta from
 2015-03-26 22:54:

  \starttext
  a\footnote{b}
  \stoptext

 Both numbers in body and footnote are missing.

 Many thanks for your help,


 i uploaded a beta ... with a few more things done in notes (some 1000
 changes to go)

 thanks for testing

 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
 
 ___

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

Re: [NTG-context] footnotes broken in latest beta?

2015-03-27 Thread Christian Prim
Sorry Hans,

found the error myself:

In the file publ-ini.lua there is a 7 at the beginning. Removing it fixes
the problem.

Christian

2015-03-27 22:12 GMT+01:00 Christian Prim christian.p...@gmx.ch:

 Hans,

 there must be a file missing:

 context --make cont-en gives:

 error loading file: publ-ini.lua (aborting)

 So the Format file isn't generated.

 Thanks for fixing it
 Christian


 2015-03-27 22:08 GMT+01:00 Christian Prim christian.p...@gmx.ch:

 Hans,

 context --version gives:
 mtx-context | current version: 2015.03.27 21:39

 but running context file.tex says:

 Fatal Error  Your format does not match the base files!

 Format Version   2015.03.26 22:52 MKIV
 Files Version2015.03.27 21:39

 I used first-setup as always to update. What is my mistake? How can I fix
 it?
 Thanks
 Christian

 2015-03-27 21:37 GMT+01:00 Hans Hagen pra...@wxs.nl:

 On 3/27/2015 6:46 PM, Pablo Rodriguez wrote:

 Hans,

 I’m afraid that footnotes are broken in latest beta from
 2015-03-26 22:54:

  \starttext
  a\footnote{b}
  \stoptext

 Both numbers in body and footnote are missing.

 Many thanks for your help,


 i uploaded a beta ... with a few more things done in notes (some 1000
 changes to go)

 thanks for testing

 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
 
 ___




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

Re: [NTG-context] footnotes broken in latest beta?

2015-03-27 Thread Christian Prim
Hans,

there must be a file missing:

context --make cont-en gives:

error loading file: publ-ini.lua (aborting)

So the Format file isn't generated.

Thanks for fixing it
Christian

2015-03-27 22:08 GMT+01:00 Christian Prim christian.p...@gmx.ch:

 Hans,

 context --version gives:
 mtx-context | current version: 2015.03.27 21:39

 but running context file.tex says:

 Fatal Error  Your format does not match the base files!

 Format Version   2015.03.26 22:52 MKIV
 Files Version2015.03.27 21:39

 I used first-setup as always to update. What is my mistake? How can I fix
 it?
 Thanks
 Christian

 2015-03-27 21:37 GMT+01:00 Hans Hagen pra...@wxs.nl:

 On 3/27/2015 6:46 PM, Pablo Rodriguez wrote:

 Hans,

 I’m afraid that footnotes are broken in latest beta from
 2015-03-26 22:54:

  \starttext
  a\footnote{b}
  \stoptext

 Both numbers in body and footnote are missing.

 Many thanks for your help,


 i uploaded a beta ... with a few more things done in notes (some 1000
 changes to go)

 thanks for testing

 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
 
 ___



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

Re: [NTG-context] beta

2015-03-26 Thread Christian Prim
Hi Hans,

with the new beta following mwe produces a bug. Perhaps I'm doing something
wrong.

MWE:

\definefontfamily[mainface][sans][DejaVu Sans]
%or \definefontfamily[mainface][sans][gosmicksans] with the same result
\setupbodyfont[mainface]
\starttext
\input tufte
\stoptext

Error log:
Typesetting /home/ubuntu/workspace/mwe.tex

mtx-context | run 1: luatex
--fmt=/home/ubuntu/workspace/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
--jobname=mwe
--lua=/home/ubuntu/workspace/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
--no-parse-first-line --c:currentrun=1 --c:fulljobname=./mwe.tex
--c:input=./mwe.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/dev) (rev 5195)
 \write18 enabled.

interfaces   implementor  warning: 'commands.writestatus' is redefined

interfaces   implementor  error: no actions for
'btxresolvelistreference'
open source  1  1 
/home/ubuntu/workspace/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.03.26 19:19 MKIV beta  fmt: 2015.3.26  int:
english/english

system   'cont-new.mkiv' loaded
open source  2  2 
/home/ubuntu/workspace/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source 2  2 
/home/ubuntu/workspace/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   files  jobname 'mwe', input './mwe', result 'mwe'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3 
/home/ubuntu/workspace/documents/snippets/bug/mwe.tex

tex errorerror on line 179 in file
/home/ubuntu/workspace/documents/snippets/bug/mwe.tex: ! Argument of
\splitoffbase has an extra }

inserted text
\par
to be read again
}
\rawdoifinsetelse ...def \m_syst_sub_string {,#1,}
  \ifx \m_syst_sub_string
\m...
\addtocommalist #1#2-\rawdoifinsetelse {#1}
#2\resetglobal {\dodoglobal
\ede...
\font_typefaces_define_a ...usetypescriptfile [#4]
  \font_typescripts_use_one
...
l.179 ]

...
l.2 \setupbodyfont
[mainface]

Thanks for your help.
Christian

2015-03-26 19:24 GMT+01:00 Hans Hagen pra...@wxs.nl:

 Hi,

 I uploaded a beta (for luatex 0.80) that has some changes in low level
 interfaces. Hopefully there are no side effects but there are they can be
 sorted out fast. I tested the code on projects and manuals so it should not
 be too bad. Depending on how complex your setup up is, there can be a speed
 gain of some 5% compared to previous versions.

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

[NTG-context] Fwd: Using spotcolors in TikZ

2015-01-29 Thread Christian Prim
Sorry to ask again.

I have to print a book with just two spotcolors (PANTONE colors). The the
pdf must just contain two colors and the tint of them. How can I do this,
when I have a tikz-picture in the document?

Thanks
Christian

---

original message:

I want to use spotcolors in a tikz-picture. Is this implemented? I get an
error:

Package pgf Error: Color test_line has an unsupported color model.

MWE: (does not work)

\usemodule[tikz]
\setupcolors[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes]
\definecolor[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18]
\definespotcolor[test_line][PantoneTwoNineFour][p=1]
\definespotcolor[test_fill][PantoneTwoNineFour][p=0.5]
\tikzset{mybox/.style={rectangle,rounded
corners,align=center,thick,draw=test_line,fill=test_fill}}
\starttext
\starttikzpicture
\node[mybox] at (0,0) {Test};
\stoptikzpicture
\stoptext

Thanks for helping me.

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

[NTG-context] Using spotcolors in TikZ

2015-01-24 Thread Christian Prim
Hello list

I want to use spotcolors in a tikz-picture. Is this implemented? I get an
error:

Package pgf Error: Color test_line has an unsupported color model.

MWE: (does not work)

\usemodule[tikz]
\setupcolors[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes]
\definecolor[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18]
\definespotcolor[test_line][PantoneTwoNineFour][p=1]
\definespotcolor[test_fill][PantoneTwoNineFour][p=0.5]
\tikzset{mybox/.style={rectangle,rounded
corners,align=center,thick,draw=test_line,fill=test_fill}}
\starttext
\starttikzpicture
\node[mybox] at (0,0) {Test};
\stoptikzpicture
\stoptext

Thanks for helping me.

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

Re: [NTG-context] beta

2014-11-26 Thread Christian Prim
Hi Hans,

the tikz-example on the wiki (which worked in last beta) doesn't compile
too.

http://wiki.contextgarden.net/TikZ

Christian

2014-11-26 21:06 GMT+01:00 Pablo Rodriguez oi...@gmx.es:

 On 11/26/2014 08:28 PM, Hans Hagen wrote:
  Hi,
 
  I uploaded a new beta.

 Hans,

 I’m afraid that this sample cannot be compiled with the new beta:

 \starttext
 \section{What is \ConTeXt?}
 \stoptext


 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

 ___

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

Re: [NTG-context] beta

2014-11-26 Thread Christian Prim
Sorry for the noise,

after a fresh install of standalone, everything is fine again. Don't know,
why this happened.

Christian

2014-11-26 21:48 GMT+01:00 Hans Hagen pra...@wxs.nl:

 On 11/26/2014 9:29 PM, Christian Prim wrote:

 Hi Hans,

 the tikz-example on the wiki (which worked in last beta) doesn't compile
 too.

 http://wiki.contextgarden.net/TikZ


 it works here so it's prob ably the already discussed tikz library issue

 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
 
 ___

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

[NTG-context] Gray unit

2013-09-10 Thread Christian Prim
Hello

the physical unit Gray has Gy as symbol (see
http://en.wikipedia.org/wiki/Gray_(unit)  ).
Context returns Gr.

MWE:

\starttext
\unit{1 Gray}
\stoptext

Thanks for fixing this little bug.

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

[NTG-context] \startfloattext ... \stopfloattext

2013-09-09 Thread Christian Prim
What is the context way to place text near a table (or another float) in an
enumeration-environment?

I just want to have the text just this right to the table. The second
item 2) should be below the table.

In the (not so) MWE all is fine, but the table is not indented.

When I use \placetable the text is indented, but the second item is placed
near the table on the right. (I could insert a \blank[xycm] but I don't
think it's the way to solve my problem.)

Thanks for all comments

Christian

\starttext
\startitemize[n,packed,joinedup][stopper=)]
\item Abhängigkeit der Beschleunigung von der Wagenmasse $m$:
\blank
$M=$ \hl[5] \unit{kg}
\blank
\starttabletext[left,high,none]{}{
%\placetable[left,high,none]{}{
\starttable[|l|l|]
\HL
\VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR
\HL
\VL \qquad \VL \qquad \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\stoptable}
Just this text near the table!
\stoptabletext
\item second item ...
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startfloattext ... \stopfloattext

2013-09-09 Thread Christian Prim
Thanks, Hans

that was exactly what I needed.

Christian


2013/9/9 Hans Hagen pra...@wxs.nl

 On 9/9/2013 2:38 PM, Christian Prim wrote:

 What is the context way to place text near a table (or another float) in
 an enumeration-environment?

 I just want to have the text just this right to the table. The
 second item 2) should be below the table.

 In the (not so) MWE all is fine, but the table is not indented.

 When I use \placetable the text is indented, but the second item is
 placed near the table on the right. (I could insert a \blank[xycm] but I
 don't think it's the way to solve my problem.)

 Thanks for all comments

 Christian

 \starttext
 \startitemize[n,packed,**joinedup][stopper=)]
 \item Abhängigkeit der Beschleunigung von der Wagenmasse $m$:
 \blank
 $M=$ \hl[5] \unit{kg}
 \blank
 \starttabletext[left,high,**none]{}{
 %\placetable[left,high,none]{}**{
 \starttable[|l|l|]
 \HL
 \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR
 \HL
 \VL \qquad \VL \qquad \VL\AR
 \VL \VL \VL\AR
 \HL
 \VL \VL \VL\AR
 \VL \VL \VL\AR
 \HL
 \VL \VL \VL\AR
 \VL \VL \VL\AR
 \HL
 \stoptable}
 Just this text near the table!
 \stoptabletext
 \item second item ...
 \stoptext


 one of the solution is to use paired boxes:

 \starttext

 \definepairedbox
   [mylegend]
   [location={right,top}] % width=10cm

 \startitemize[n,packed,**joinedup][stopper=)]
 \startitem
 some introduction text \blank and some more \blank
 \startplacemylegend
 \startcontent
 \starttable[|l|l|]
 \HL \VL foo \VL bar \VL \NR \HL

 \VL \VL \VL \AR \VL \VL \VL \AR \HL
 \VL \VL \VL \AR \VL \VL \VL \AR \HL
 \VL \VL \VL \AR \VL \VL \VL \AR \HL
 \stoptable
 \stopcontent
 \startcaption
 \input ward
 \stopcaption
 \stopplacemylegend
 \stopitem
 \startitem
 and even more
 \stopitem
 \stopitemize

 \stoptext

 I patched the beta a bit so that for a horizontal variant the hsize is
 calculated automatically.

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

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

[NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Dear list

is there a way to \setupalign and \setuptolerance globaly?

In tabulate- or frameenvironement for example they are reseted.

MWE:
\definefontfeature[default][default][expansion=quality,protrusion=quality]
\usetypescript[palatino]
\setupbodyfont[palatino,11pt]
\setupbodyfontenvironment[default][em=italic]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]

\starttext
\subject{Normal Text}
align working, tolerance working.

\input knuth

\subject{Table}
Table resets align/tolerance:
\starttabulate
\NC aling/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working \NC \setupalign[hz,hanging]
\setuptolerance[horizontal,stretch] \input knuth \NC\NR
\stoptabulate

\subject{Frame}
Framedtext resets align/tolerance:
\startframedtext[width=0.6\textwidth]
aling/tolerance not working

\input tufte
\stopframedtext

\startframedtext[width=0.6\textwidth]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]
aling/tolerance working

\input tufte
\stopframedtext

\stoptext


Thanks!

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

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Thanks Wolfgang! Now everything is clear and fine.

Christian


2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch:

  Thanks Wolfgang
 
  I have tested it (on new beta) but the alignment is still wrong in the
 tabulate-environment. It's correct in the framedtext-environment, but
 tolerance is still missing, so that a line is still too long.
 
  My new questions:
  - What about tolerance? Where must I add the keys?

 The \setupalign command does also accepts “tolerant”, “verytolerant” and
 “stretch” as keyword which means you don’t need the \setuptolerance
 command. This is important because the value of the align key is passed to
 the \setupalign command.

  - What about tabulate-environment?

 I’m sorry but I was wrong about the setting for the tabulate environment,
 the align value of \setuptabulate accepts only “left”, “middle”, “right”
 and “normal” as arguments. There is also no way to change the format of the
 default tabulation environment, only local changes are possible, e.g.

 \starttabulate[|l|pA{normal,hanging,hz,stretch}|]
 \NC align/tolerance not working \NC \input knuth \NC\NR
 \NC align/tolerance working \NC \input knuth \NC\NR
 \stoptabulate

 When you want a different default alignment you have to create your own
 tabulation environment with the \definetabulate command.

 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

 ___

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

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Thanks Wolfgang

I have tested it (on new beta) but the alignment is still wrong in the
tabulate-environment. It's correct in the framedtext-environment, but
tolerance is still missing, so that a line is still too long.

My new questions:
- What about tolerance? Where must I add the keys?
- What about tabulate-environment?

Thanks!
Christian

My new MWE is:

\definefontfeature[default][default][expansion=quality,protrusion=quality]
\usetypescript[palatino]
\setupbodyfont[palatino,11pt]
\setupbodyfontenvironment[default][em=italic]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]

\setupframedtext[align={normal,hanging,hz}] %NEW
\setuptabulate[align={normal,hanging,hz}] %NEW
\showframe %NEW, for better seeing

\starttext
\subject{Normal Text}
align working, tolerance working.

\input knuth

\subject{Table}
Table resets align/tolerance:
\starttabulate
\NC align/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working \NC \setupalign[hz,hanging]
\setuptolerance[horizontal,stretch] \input knuth \NC\NR
\stoptabulate

\subject{Frame}
Framedtext resets align/tolerance:
\startframedtext[width=0.6\textwidth]
align working, tolerance not working

\input tufte
\stopframedtext

\startframedtext[width=0.6\textwidth]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]
align/tolerance working

\input tufte
\stopframedtext

\stoptext


2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 14:23 schrieb Christian Prim christian.p...@gmx.ch:

  Dear list
 
  is there a way to \setupalign and \setuptolerance globaly?
 
  In tabulate- or frameenvironement for example they are reseted.

 Environments which have a align key use the settings of the key and ignore
 global values, to enable protrusion and font expansion for these
 environment
 you have to change their align values.

 \setupframedtext
   [align={normal,hanging,hz}]

 \setuptabulate
   [align={normal,hanging,hz}]

 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

 ___

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

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Sorry

I still have a problem with \startfiguretext  \stopfiguretext.

There ist no \setupfiguretext nor \setupfloattext to enter the align=
keypairs. Where must I enter align={normal,hanging,hz,stretch} to make
the text around these figures aligned like the rest of the document?

Thanks
Christian

PS.: My minimal (not) working example:

\definefontfeature[default][default][expansion=quality,protrusion=quality]

%\setup?figure?text[align={normal,hanging,hz,stretch}]
\setupalign[hz,hanging,stretch]
\showframe

\starttext
Correct Text

\input knuth
\startfiguretext[right,none]{}{\externalfigure[cow][width=0.5\textwidth]}
Wrong alignment!

\input knuth
\stopfiguretext
\stoptext


2013/8/30 Christian Prim christian.p...@gmx.ch

 Thanks Wolfgang! Now everything is clear and fine.

 Christian


 2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch:

  Thanks Wolfgang
 
  I have tested it (on new beta) but the alignment is still wrong in the
 tabulate-environment. It's correct in the framedtext-environment, but
 tolerance is still missing, so that a line is still too long.
 
  My new questions:
  - What about tolerance? Where must I add the keys?

 The \setupalign command does also accepts “tolerant”, “verytolerant” and
 “stretch” as keyword which means you don’t need the \setuptolerance
 command. This is important because the value of the align key is passed to
 the \setupalign command.

  - What about tabulate-environment?

 I’m sorry but I was wrong about the setting for the tabulate environment,
 the align value of \setuptabulate accepts only “left”, “middle”, “right”
 and “normal” as arguments. There is also no way to change the format of the
 default tabulation environment, only local changes are possible, e.g.

 \starttabulate[|l|pA{normal,hanging,hz,stretch}|]
 \NC align/tolerance not working \NC \input knuth \NC\NR
 \NC align/tolerance working \NC \input knuth \NC\NR
 \stoptabulate

 When you want a different default alignment you have to create your own
 tabulation environment with the \definetabulate command.

 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

 ___



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

Re: [NTG-context] Cloze Text (text with gaps)

2013-06-28 Thread Christian Prim
Hello Wolfgang

thanks for both \TextGap and \WordGap. That is exactly what I needed!

Christian


2013/6/27 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar hajt...@gyza.cz:

  Hello Wolfgang.
  Here is example of other using of your TextGap.
  There is a problem in some lines? Why linewidth is change?

 Add “width 0pt” to the \vrule arguments. See also my definition of
 \WordGap.

 \def\TextGap[#1]%
  {\scratchdimen#1\relax
   \divide\scratchdimen\plusten
   \dorecurse\plusten
 {\vrule width \scratchdimen height \linewidth depth \zeropoint\relax
  \ifnum\recurselevel10 \hskip\zeropoint\relax \fi}}

 \def\WordGap
   {\dowithnextbox{\TextGap[\nextboxwd]}\hbox}

 \starttext

 a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e

 My words: \WordGap{My words}. Why is line very thick here?

 Here is an sentence: \WordGap{Here is an sentence} -- linewidth is OK here.

 Here is an sentence: \WordGap{Here is an sentence}. And why is problem
 here again?

 \stoptext

 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

 ___

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

Re: [NTG-context] Cloze Text (text with gaps)

2013-06-27 Thread Christian Prim
Thanks David

I think the first one is a very good idea. But I failed to give the
\underbar a color different to the one of the text. Can you help me please?

Thanks
Christian


2013/6/27 David Rogers davidandrewrog...@gmail.com

 Christian Prim christian.p...@gmx.ch writes:

  I wonder if I can typeset a cloze text using context. The gaps
 (__)
  must have a given length (say in cm or the length of a given word, given
  sentence) and must break at the end of a line.
 
  \hl[4] is nice but won't do the trick since it won't break. \fillinline
 and
  others fill the hole line, but I only want to fill a given size.
 
  Are there some ideas how to deal with it?
 
  Example:
 
  The name of the _ is _
  . And now it's time to go to bed.
  Some more text.


 I haven't tested these ideas...

 One possibility: type the answer in white, but give it a coloured
 \underbar. (You might need to type longer answers, or in a larger font
 size, to leave enough room for hand writing.)

 Another: use a \fillinline - you can define the length.

 --
 David

 ___
 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

 ___

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

[NTG-context] Cloze Text (text with gaps)

2013-06-24 Thread Christian Prim
Hi list

I wonder if I can typeset a cloze text using context. The gaps (__)
must have a given length (say in cm or the length of a given word, given
sentence) and must break at the end of a line.

\hl[4] is nice but won't do the trick since it won't break. \fillinline and
others fill the hole line, but I only want to fill a given size.

Are there some ideas how to deal with it?

Example:

The name of the _ is _
. And now it's time to go to bed.
Some more text.

Hope you get the point.

Thanks in advance
Christian

PS.: For Latex there is a package:
http://tex.stackexchange.com/questions/79689/control-ulines-for-cloze-text
___
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
___

[NTG-context] Output from Context standalone (actual version) has wrong utf-8 encoding

2013-06-17 Thread Christian Prim
Hi list

rendering a very easy formula with greek text in it produces a pdf-document
that has not  a valid utf-8 string.

I use evince for displaying pdfs under ubuntu linux. The document appears
correctly on the screen but stops printing after a greek letter in a
formula.

The error-report says:
Internal Error: cairo context error: input string not valid UTF-8

The same document compiled in live.contextgarden.net doesn't produce a
mistake and can be printed with evince.

I can still print the document correctly using 'lpr name.pdf', so it's not
a big problem for me. But I don't know if that could be a problem for
someone else.

Test-Document:

\starttext
$3\omega$
\stoptext

Tell me, what I can do to help.

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

[NTG-context] Not limited to greek letter

2013-06-17 Thread Christian Prim
Hi again

The next document produces the same mistake as described in my last mail:

\starttext
$3v$
\stoptext

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

Re: [NTG-context] Output from Context standalone (actual version) has wrong utf-8 encoding

2013-06-17 Thread Christian Prim
Hi Aditya

I use Mkiv both standalone and live.contextgarden.net.

Document:
\starttext
$3v$
\stoptext

Output from contextgarden and standalone attached.

log from contextgarden:

mtx-context | run 1: luatex
--fmt=/opt/context/current/tex/texmf-cache/luatex-cache/context/062e428d731d188f38ba0b7527199e92/formats/cont-en
--lua=/opt/context/current/tex/texmf-cache/luatex-cache/context/062e428d731d188f38ba0b7527199e92/formats/cont-en.lui
--backend=pdf ./texweb.tex \stoptext
This is LuaTeX, Version beta-0.70.1-2012052416 (rev 4277)
 \write18 enabled.
(texweb.tex

ConTeXt  ver: 2012.05.30 11:26 MKIV  fmt: 2012.11.6  int: english/english

system   cont-new.mkiv loaded
(/opt/context/current/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   texweb.top loaded
(texweb.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/opt/context/current/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/opt/context/current/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context/current/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
backend  xmp  using file
'/opt/context/current/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
 
){/opt/context/current/tex/texmf/fonts/enc/dvips/lm/lm-mathit.enc}/opt/context/current/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf/opt/context/current/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf/opt/context/current/tex/texmf/fonts/type1/public/lm/lmmi12.pfb
mkiv lua stats   used config file  -
/opt/context/current/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - readable:
'/opt/context/current/tex/texmf-cache/luatex-cache/context/062e428d731d188f38ba0b7527199e92'
(order 1)
mkiv lua stats   used cache path   - readable:
'/tmp/texweb/luatex-cache/context/062e428d731d188f38ba0b7527199e92'
(order 2)
mkiv lua stats   used cache path   - writable:
'/tmp/texweb/luatex-cache/context/062e428d731d188f38ba0b7527199e92'
mkiv lua stats   resource resolver - loadtime 0.010 seconds,
0 scans with scantime 0.000 seconds, 0 shared scans, 47 found files,
scanned paths:
mkiv lua stats   stored bytecode data  - 303 modules, 65 tables, 368 chunks
mkiv lua stats   cleaned up reserved nodes - 39 nodes, 9 lists of 438
mkiv lua stats   node memory usage - 2 glue, 2 penalty, 9
attribute, 29 glue_spec, 3 attribute_list
mkiv lua stats   node list callback tasks  - 6 unique task lists, 6
instances (re)created, 134 calls
mkiv lua stats   used backend  - pdf (backend for
directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   jobdata time  - 0.001 seconds saving,
0.000 seconds loading
mkiv lua stats   callbacks - 263 direct, 558
indirect, 821 total
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes,
11 lpath calls, 0 cached calls
mkiv lua stats   result saved in file  - texweb.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm
lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf
lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf
lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf
lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf
eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm
msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm
lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm
rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.291 seconds
mkiv lua stats   luatex banner - this is luatex, version
beta-0.70.1-2012052416 (rev 4277)
mkiv lua stats   control sequences - 33665 of 65536 + 10
mkiv lua stats   current memory usage  - 30 MB (ctx: 31 MB)
mkiv lua stats   runtime   - 0.805 seconds, 1
processed pages, 1 shipped pages, 1.242 pages/second

Log from standalone:

(/home/christian/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.06.10 22:51 MKIV beta  fmt: 2013.6.13  int: english/english

system   'cont-new.mkiv' loaded
(/home/christian/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'tmp', input './tmp', result 'tmp'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/tmp/latexila-X3AGYW/tmp.tex{/home/christian/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown library 'loc'
{/home/christian/context/tex/texmf/fonts/map/dvips

Re: [NTG-context] Output from Context standalone (actual version) has wrong utf-8 encoding

2013-06-17 Thread Christian Prim
Hi Hans

I used texlive (2012) before standalone. There was never a problem. Same
editor, same viewer. With standalone there is a problem just for printing
from viewer evince. I can print the very same document with lpr
(command-line) without problem. I don't think there is a real problem with
the pdf. evince manipulates somehow the pdf-document before sending to
printer. There the error occurs. Strange that the output from context in
texlive didn't have this problem.

Has the output-format changed since last year?

Thanks
Christian


2013/6/17 Hans Hagen pra...@wxs.nl

 On 6/17/2013 6:55 PM, Christian Prim wrote:

 Hi Aditya

 I use Mkiv both standalone and live.contextgarden.net
 http://live.contextgarden.net**.

 Document:
 \starttext
 $3v$
 \stoptext

 it's a 푣 i.e. a character with unicode 0x1D463 so it's probably a
 viewer/editor cut/paste issue

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

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

[NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Christian Prim
Hi,

is it possible to change the behaviour of \digits to have \cdot as in
http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at
the bottom) instead of \times as shown in the latest units-mkiv-document
http://www.pragma-ade.com/general/manuals/units-mkiv.pdf pages 67?

Thanks for your advise
Christian Prim

Example:

\unit{10.5e3 Newton} should produce 10.5\cdot 10^3 N and not  10.5\times
10^3 N

(also tested in the latest version at http://live.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Christian Prim
Thanks for the tip Hans,

but the kerning in
\def\digitstimessymbol{\kern.**2\emwidth\cdot\kern.2\emwidth}
should not take place in mathmode, only in textmode. Else the space is too
big. Don't know how to deal with that.

Christian


2013/5/21 Hans Hagen pra...@wxs.nl

 On 5/21/2013 11:44 AM, Romain Diss wrote:

 Le lundi 20 mai 2013, Christian Prim a écrit :

 is it possible to change the behaviour of \digits to have \cdot as in
 http://www.pragma-ade.com/**general/magazines/mag-0003.pdfhttp://www.pragma-ade.com/general/magazines/mag-0003.pdfpage
  2 (table at
 the bottom) instead of \times as shown in the latest units-mkiv-document
 http://www.pragma-ade.com/**general/manuals/units-mkiv.pdfhttp://www.pragma-ade.com/general/manuals/units-mkiv.pdfpages
  67?

 Seems to be hardcoded in phys-dim.mkiv for the moment:
 l. 173-175

 \unexpanded\def\digitspower   #1{\times10\phys_digits_**raised{#1}}
 \unexpanded\def\**digitspowerplus
 #1{\times10\phys_digits_**raised{\digitsplus#1}}
 \unexpanded\def\**digitspowerminus
 #1{\times10\phys_digits_**raised{\digitsminus#1}}
 ntextgarden.net/)


 there are several ways we can deal with this:

 % \def\digitstimessymbol{\**symbol[units][times]}

 % \definesymbol[units][times][\**times]
 % \definesymbol[units][times][\**cdots]
 % \definesymbol[units][times][\**kern.2\emwidth\cdot\kern.2\**emwidth]

 \def\digitstimessymbol{\times}
 \def\digitstimessymbol{\cdot}
 \def\digitstimessymbol{\kern.**2\emwidth\cdot\kern.2\emwidth}

 \unprotect

 \unexpanded\def\digitspower #1{\digitstimessymbol10\phys_**
 digits_raised{#1}}
 \unexpanded\def\**digitspowerplus #1{\digitstimessymbol10\phys_**
 digits_raised{\digitsplus#1}}
 \unexpanded\def\**digitspowerminus #1{\digitstimessymbol10\phys_**
 digits_raised{\digitsminus#1}}

 \protect

 or maybe a key/value in setuptimes .. not sure yet

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

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

Re: [NTG-context] \digits get \times instead of \cdot before exponent

2013-05-21 Thread Christian Prim
Now it's perfect! Will this be included in the next version of context?

Christian


2013/5/21 Hans Hagen pra...@wxs.nl

 On 5/21/2013 5:15 PM, Christian Prim wrote:

 Thanks for the tip Hans,

 but the kerning in
 \def\digitstimessymbol{\kern._**_2\emwidth\cdot\kern.2\**emwidth} should
 not

 take place in mathmode, only in textmode. Else the space is too big.
 Don't know how to deal with that.


 \def\digitstimessymbol{\**mathortext{\cdot}{\kern.2\**
 emwidth\cdot\kern.2\emwidth}}


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

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

Re: [NTG-context] What’s your favorite command?

2012-01-31 Thread Christian Neukirchen
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 As I started this thread I’ll present my favorite command which is
 \donothing

My favourite command is \donknuthmode, which is the opposite of
\nonknuthmode of course.

-- 
Christian Neukirchen  chneukirc...@gmail.com  http://chneukirchen.org

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

Re: [NTG-context] Splitting natural tables

2011-11-30 Thread Christian
  Hello,
 
  is it still not possible to split a table so that it covers one half page 
  an then
 another half page?
 
  It is my understanding that splitting moves the table to the next page and
 then splits it to the following if it gets too long for one entire page.
  Would a manual split be possible?
 
  Examle (table is not split, but could be):
 
  \starttext
  \dorecurse{2}{\input knuth }
  \startplacetable[title={My Table}]
 
 \startplacetable[location=split,title={My table}] … \stopplacetable

Thank you Wolfgang!
For some reason I thought the option split=yes would trigger splitting...

Now in the sample document I get table 1a and table 1b.
In my real document I get table 3.2 and table 3.3. Is there a way to 
influence this? (btw. captions are above the table, if that matters)

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

Re: [NTG-context] Splitting natural tables

2011-11-30 Thread Christian
  Hello,
 
  is it still not possible to split a table so that it covers one half
  page an then
  another half page?
 
  It is my understanding that splitting moves the table to the next
  page and
  then splits it to the following if it gets too long for one entire page.
  Would a manual split be possible?
 
  Examle (table is not split, but could be):
 
  \starttext
  \dorecurse{2}{\input knuth }
  \startplacetable[title={My Table}]
 
  \startplacetable[location=split,title={My table}] … \stopplacetable
 
  Thank you Wolfgang!
  For some reason I thought the option split=yes would trigger
  splitting…
 
 The “split=yes” option works only for table which aren’t aren't placed as 
 float
 because this mechanism has to know that it has to break the table into parts
 but then you don’t need the split key for \bTABLE.
 
  Now in the sample document I get table 1a and table 1b.
  In my real document I get table 3.2 and table 3.3. Is there a way to
  influence this? (btw. captions are above the table, if that matters)
 
 The location of the caption doesn’t matter. The number of the suffix for the
 subtables can be changed but without a example I can’t tell why you get
 different results in your example and in the real document.

My guess: It's because fo thecustom suffix. Example:

\setupcaption[table][location=top]
\setupcaptions[minwidth=\textwidth,width=fit,align=center,headstyle={\ss 
\tfx},style={\ss \tfx 
\setupinterlinespace[line=1.4em]},suffix={:},distance=.5em]
\starttext
\startchapter[title=Chapter]
\startsection[title=section]
\dorecurse{2}{\input knuth }
\startplacetable[title={My Table},location=split]
\bTABLE[option=stretch]
\bTABLEhead
\bTR
\bTH C1 \eTH
\bTH C2 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{20}{\bTR
\bTD text \eTD
\bTD text \eTD
\eTR}
\eTABLEbody 
\eTABLE
\stopplacetable
\input knuth
\stopsection
\stopchapter
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Splitting natural tables

2011-11-30 Thread Christian
  Hello,
 
  is it still not possible to split a table so that it covers one
  half page an then
  another half page?
 
  It is my understanding that splitting moves the table to the next
  page and
  then splits it to the following if it gets too long for one entire page.
  Would a manual split be possible?
 
  Examle (table is not split, but could be):
 
  \starttext
  \dorecurse{2}{\input knuth }
  \startplacetable[title={My Table}]
 
  \startplacetable[location=split,title={My table}] … \stopplacetable
 
  Thank you Wolfgang!
  For some reason I thought the option split=yes would trigger
  splitting…
 
  The “split=yes” option works only for table which aren’t aren't
  placed as float because this mechanism has to know that it has to
  break the table into parts but then you don’t need the split key for
 \bTABLE.
 
  Now in the sample document I get table 1a and table 1b.
  In my real document I get table 3.2 and table 3.3. Is there a way
  to influence this? (btw. captions are above the table, if that
  matters)
 
  The location of the caption doesn’t matter. The number of the suffix
  for the subtables can be changed but without a example I can’t tell
  why you get different results in your example and in the real document.
 
  My guess: It's because fo thecustom suffix. Example:
 
  \setupcaption[table][location=top]
  \setupcaptions[minwidth=\textwidth,width=fit,align=center,headstyle={\
  ss \tfx},style={\ss \tfx
  \setupinterlinespace[line=1.4em]},suffix={:},distance=.5em]
 
 Remove the setting for “suffix” because it hold the number for the subtable,
 the number itself can be changed with
 
   \setupfloatsplitting[conversion=…]
 
 and a separator between the float number and the suffix can be added with
 
   \setupcaption[suffixseparator=…].
 
 To add a stopper behind the suffix a different method is needed because
 although there is a “numberstopper” key for \setupcaption the symbol is
 added before the suffix, what you can do is to put he symbol in the label text
 with
 
   \setuplabeltext[table={Table ,:}]
 
 but a extra key “suffixstopper” but we useful in this case.
 
 @Hans: Can you make this change in strc-flt.mkvi?
 
 \unexpanded\def\thecurrentfloatnumbersuffix
   {\doifsomething{\floatcaptionparameter\c!suffix}
  {\floatcaptionparameter\c!suffixseparator
 % \floatcaptionparameter\c!suffix}}
   \floatcaptionparameter\c!suffix
   \floatcaptionparameter\c!suffixstopper}}
 

Works like a charm :)
Thanks, 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
___

Re: [NTG-context] Splitting natural tables

2011-11-30 Thread Christian
   Hello,
  
   is it still not possible to split a table so that it covers one
   half page an then
   another half page?
  
   It is my understanding that splitting moves the table to the
   next page and
   then splits it to the following if it gets too long for one entire 
   page.
   Would a manual split be possible?
  
   Examle (table is not split, but could be):
  
   \starttext
   \dorecurse{2}{\input knuth }
   \startplacetable[title={My Table}]
  
   \startplacetable[location=split,title={My table}] …
   \stopplacetable
  
   Thank you Wolfgang!
   For some reason I thought the option split=yes would trigger
   splitting…
  
   The “split=yes” option works only for table which aren’t aren't
   placed as float because this mechanism has to know that it has to
   break the table into parts but then you don’t need the split key
   for
  \bTABLE.
  
   Now in the sample document I get table 1a and table 1b.
   In my real document I get table 3.2 and table 3.3. Is there a
   way to influence this? (btw. captions are above the table, if that
   matters)
  
   The location of the caption doesn’t matter. The number of the
   suffix for the subtables can be changed but without a example I
   can’t tell why you get different results in your example and in the real
 document.
  
   My guess: It's because fo thecustom suffix. Example:
  
   \setupcaption[table][location=top]
   \setupcaptions[minwidth=\textwidth,width=fit,align=center,headstyle=
   {\
   ss \tfx},style={\ss \tfx
   \setupinterlinespace[line=1.4em]},suffix={:},distance=.5em]
 
  Remove the setting for “suffix” because it hold the number for the
  subtable, the number itself can be changed with
 
\setupfloatsplitting[conversion=…]
 
  and a separator between the float number and the suffix can be added
  with
 
\setupcaption[suffixseparator=…].
 
  To add a stopper behind the suffix a different method is needed
  because although there is a “numberstopper” key for \setupcaption the
  symbol is added before the suffix, what you can do is to put he symbol
  in the label text with
 
\setuplabeltext[table={Table ,:}]
 
  but a extra key “suffixstopper” but we useful in this case.
 
  @Hans: Can you make this change in strc-flt.mkvi?
 
  \unexpanded\def\thecurrentfloatnumbersuffix
{\doifsomething{\floatcaptionparameter\c!suffix}
   {\floatcaptionparameter\c!suffixseparator
  % \floatcaptionparameter\c!suffix}}
\floatcaptionparameter\c!suffix
\floatcaptionparameter\c!suffixstopper}}
 
 
 Works like a charm :)
 Thanks, Wolfgang!

Just noticed:
In my example posted above, when I remove the suffix and add the  
\setuplabeltext[table={Table ,:}] I get the a and b. BUT:
It's Table 1.1a and 1.2b  ...so the second number is incremented, should stay 
the same, though (1.1a  1.1b).


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

Re: [NTG-context] Splitting natural tables

2011-11-30 Thread Christian
  @Hans: Can you make this change in strc-flt.mkvi?
 
  \unexpanded\def\thecurrentfloatnumbersuffix
 {\doifsomething{\floatcaptionparameter\c!suffix}
{\floatcaptionparameter\c!suffixseparator
  % \floatcaptionparameter\c!suffix}}
 \floatcaptionparameter\c!suffix
 \floatcaptionparameter\c!suffixstopper}}
 
 sure

I'm sorry to press the issue, but is there a quick fix for the numbering issue? 
(where the second part of the split table gets the number 1.2b instead of 1.1b 
and the next table continues from 1.3 instead of 1.2)

Here's the example:

\setupcaption[table][location=top]
\setuplabeltext[table={Tabelle ,:}]
\starttext
\startchapter[title=Chapter]
\startsection[title=section]
\dorecurse{2}{\input knuth }
\startplacetable[title={My Table},location=split]
\bTABLE[option=stretch]
\bTABLEhead
\bTR
\bTH C1 \eTH
\bTH C2 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{20}{\bTR
\bTD text \eTD
\bTD text \eTD
\eTR}
\eTABLEbody 
\eTABLE
\stopplacetable
\input knuth\par
\startplacetable[title={My other table},location=split]
\bTABLE[option=stretch]
\bTABLEhead
\bTR
\bTH C1 \eTH
\bTH C2 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{5}{\bTR
\bTD text \eTD
\bTD text \eTD
\eTR}
\eTABLEbody 
\eTABLE
\stopplacetable
\stopsection
\stopchapter
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Splitting natural tables

2011-11-29 Thread Christian
Hello,

is it still not possible to split a table so that it covers one half page an 
then another half page?

It is my understanding that splitting moves the table to the next page and then 
splits it to the following if it gets too long for one entire page.
Would a manual split be possible?

Examle (table is not split, but could be):

\starttext
\dorecurse{2}{\input knuth }
\startplacetable[title={My Table}]
\bTABLE[option=stretch,split=repeat]
\bTABLEhead
\bTR
\bTH C1 \eTH
\bTH C2 \eTH
\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{20}{\bTR
\bTD text \eTD
\bTD text \eTD
\eTR}
\eTABLEbody 
\eTABLE
\stopplacetable
\input knuth
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Change the gap between image and caption

2011-11-25 Thread Christian
Well, since you are in a startcombinations block and not a figure 
environement, try this:

\setupcombinations[inbetween={\blank[1cm]}]


 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Jaroslav Hajtmar
 Gesendet: Freitag, 25. November 2011 19:08
 An: mailing list for ConTeXt users
 Betreff: [NTG-context] Change the gap between image and caption
 
 Hello ConTeXt folks.
 
 Is it possible to adjust the size of the gap between the lower edge of the
 picture and its caption in simple externalfigure command?
 By experimenting I found that this gap can be set in a floating environment
 (placefigure)  using inbetween parameter.
 Is there possibilities do gap somehow larger or smaller in externalfigure
 environment?  See minimal example.
 Thanx Jaroslav
 
 
 \starttext
 
 \setupcaptions[number=no,style=\ssxx,inbetween={\blank[1cm]}]
 \setupfloats[spacebefore=none, spaceafter=none] %
 
 \input tufte
 
 \placefigure[here]{Here is farther caption}
 {\externalfigure[mill][type=jpg,metod=jpg,width=5cm,frame=on]}
 
 \input tufte
 
 
 \page
 
 
 \startTEXpage
 \startcombination[3*1]
   {\externalfigure[cow][frame=on]}{This caption has to be more distanced.}
   {\externalfigure[cow][frame=on]}{This title has yet to be more
 distanced.}
   {\externalfigure[cow][frame=on]}{This label is to be closer to figure.}
 \stopcombination
 \stopTEXpage
 
 
 
 \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://tex.aanhet.net archive  :
 http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-25 Thread Christian
 I am trying to get japanese displayed in bibliography. But I get the error !
 String contains an invalid utf-8 sequence. while compiling with the command
 context *tex.
 
 Here is the tex file :
 
 %%%beginning of file%%
 \usemodule[simplefonts]
 \setmainfont[hiraginokakugothicpro] %a japanese font \enableregime[utf8]
 \setupbibtex[database=biblio]
 
 \starttext
 \completepublications
 \stoptext
 %end of file
 
 And here is the bib file :
 
 %%%beginning of file%%%
 @article{uzawa2011tpp,
 author = Hirofumi Uzawa 宇沢弘文, Uchihashi Katsuto 内橋克人,
 journal = Sekai 世界,
 title = Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru
 対談TPPは社会的共通資本を破壊する,
 year = 2011,
 month = april,
 publisher = Iwanami shoten 岩波書店,
 pages = 62-72,
 url = http://ci.nii.ac.jp/naid/40018706510/;,
 }
 %%%end of file%%
 
 Do someone know how to get ride of utf-8 errors ? Or is this a problem with
 bibtex, and then should I use anything else to replace it ? (does something
 like Biber work ?)
 

Same here. It messes up when converting .bib to .bbl. Maybe check your bbl 
file, too. Mine looks like this, for example:
a={{Hirofumi Uzawa~宇沢弘文}}

You could try to write the .bbl file directly yourself, although that is not a 
comfortable option, if you have many Japanese entries.
Apart from that there's not much coming to mind.

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

Re: [NTG-context] Change the gap between image and caption

2011-11-25 Thread Christian
you can also play around with included blanks. I don't know if this is a clean 
way, but it's working:

\setupcaptions[number=no,style=\ssxx]
\setupfloats[spacebefore=none, spaceafter=none] %
\starttext
\input tufte

\startplacefigure
\startcombination[3*1]
  {\externalfigure[cow][frame=on,width=.3\textwidth]}{{\blank[.2cm]}This 
caption has to be more distanced.}
  {\externalfigure[cow][frame=on,width=.3\textwidth]}{{\blank[1cm]}This 
title has yet to be more distanced.}
  {\externalfigure[cow][frame=on,width=.3\textwidth]}{This label is to be 
closer to figure.}
\stopcombination
\stopplacefigure
\input tufte
\stoptext


 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Jaroslav Hajtmar
 Gesendet: Freitag, 25. November 2011 20:54
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Change the gap between image and caption
 
 Hello Christian.
 Thank you. For the entire block of images it works well. It is sufficient at 
 this
 time.
 I just wanted to know how to do it if I do not take pictures inside
 startcombinations - stopcombinations environment
 
 Jaroslav
 
 
 
 Dne 25.11.2011 19:45, Christian napsal(a):
  Well, since you are in a startcombinations block and not a figure
 environement, try this:
 
  \setupcombinations[inbetween={\blank[1cm]}]
 
 
 
  -Ursprüngliche Nachricht-
  Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl]
  Im Auftrag von Jaroslav Hajtmar
  Gesendet: Freitag, 25. November 2011 19:08
  An: mailing list for ConTeXt users
  Betreff: [NTG-context] Change the gap between image and caption
 
  Hello ConTeXt folks.
 
  Is it possible to adjust the size of the gap between the lower edge
  of the picture and its caption in simple externalfigure command?
  By experimenting I found that this gap can be set in a floating
  environment
  (placefigure)  using inbetween parameter.
  Is there possibilities do gap somehow larger or smaller in
  externalfigure environment?  See minimal example.
  Thanx Jaroslav
 
 
  \starttext
 
  \setupcaptions[number=no,style=\ssxx,inbetween={\blank[1cm]}]
  \setupfloats[spacebefore=none, spaceafter=none] %
 
  \input tufte
 
  \placefigure[here]{Here is farther caption}
  {\externalfigure[mill][type=jpg,metod=jpg,width=5cm,frame=on]}
 
  \input tufte
 
 
  \page
 
 
  \startTEXpage
   \startcombination[3*1]
 {\externalfigure[cow][frame=on]}{This caption has to be more
 distanced.}
 {\externalfigure[cow][frame=on]}{This title has yet to be more
  distanced.}
 {\externalfigure[cow][frame=on]}{This label is to be closer to 
  figure.}
   \stopcombination
  \stopTEXpage
 
 
 
  \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://tex.aanhet.net archive  :
  http://foundry.supelec.fr/projects/contextrev/
  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://tex.aanhet.net archive  :
 http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] [solved] Fonts with subscripts

2011-11-24 Thread Christian
   Am Donnerstag, den 24.11.2011, 14:30 +0100 schrieb Wolfgang Schuster:
   Am 24.11.2011 um 13:43 schrieb Paul Menzel:
  
   […]
  
   Is there a font having subscripts included?
  
   \def\ShowSubscript[#1]{\switchtobodyfont[#1]#1: “₂”\par}
  
   \starttext
   \ShowSubscript[dejavu]
   \ShowSubscript[antykwa-torunska]
   \ShowSubscript[antykwa-poltawskiego]
   \ShowSubscript[iwona]
   \ShowSubscript[cambria]
   \ShowSubscript[libertine]
   \stoptext
  
   Nice! So in this set only cambria and libertine cannot display
   subscripts. (Please find the output attached.)
 
  No, I get subscripts for all listed fonts but it’s possible we use different
 versions of the them.
 
 Even more trivial. I do not have Cambria installed and Libertine is also not
 found although I have the Debian package (fonts-linuxlibertine,
 5.1.3-1) installed. I guess I need to update the cache somehow.
 
 
 Thanks,
 
 Paul

Just a note: There is also an Opentype feature called scientific inferiors, 
for example in Libertine. The subscript glyph you are looking for is called 
'two.inferior' and can be accessed via this feature.

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

Re: [NTG-context] Double height rows using natural tables?

2011-11-24 Thread Christian
 I have tried various combinations and have so far been unsuccessful in
 getting a row of double height using natural tables.  I am following up and
 enclosing a minimal example, along with the a previous incarnation using
 TABLE, which does give me the intended layout.
 
 Any suggestions on how to do the same using natural tables would be greatly
 appreciated.

use the height parameter for the table row. also, I don't thik you've 
understood the meaning of 'nr=2'.
I suggest you read the wiki entry on TABLES: http://wiki.contextgarden.net/TABLE


and here's your table back ;P :

\bTABLE
\bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR

\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
\eTABLEbody
\eTABLE

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


Re: [NTG-context] Something similar to MarVoSym package for ConTeXt

2011-11-24 Thread Christian
 I am in need of some networking and other computer communications
 symbols.  Is there something similar to the MarVoSym package for LaTeX?  Or
 if there is a symbol font recommendation, that would be helpful as well.
 
 Many thanks.

Hello,

It is recommended to check the wiki before asking on the list.
http://wiki.contextgarden.net/Symbols

Have fun!

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


Re: [NTG-context] Double height rows using natural tables?

2011-11-24 Thread Christian
If you want all rows double height except the first, just do it the other way 
around.
\setupTABLE[r][each][height=0.7in]
and then for the first row:
\bTR[height=0.35in]
Then it's only 2 digits to change :)

[nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a 
single cell that reaches down X rows. it's not meant to be used to adjust the 
height of a row.

Check this out, lots of examples: 
http://www.pragma-ade.com/general/manuals/enattab.pdf


 Thank you, Christian.  However, I find explicitly setting the row height a bit
 awkward.  What happens if I changed the height value in my \setupTABLE
 directive?  Then I would have to change all references to height in the table
 explicitly.  Also, my made up example is *only* of double rows.  However, I
 have the earlier example where this is a mixture of row spans across
 different columns.  It was just by chance that I was in a situation with all
 adjacent cells in a particular row requiring a row span.
 
 Why would that be considered not an application of [nr=?]?  And if it indeed
 the case, shouldn't it be explicit that [nr=2] doesn't apply to an entire row?
 
 Regards.
 
 
 On 11-11-24 05:47 PM, Christian wrote:
  I have tried various combinations and have so far been unsuccessful
  in getting a row of double height using natural tables.  I am
  following up and enclosing a minimal example, along with the a
  previous incarnation using TABLE, which does give me the intended
 layout.
 
  Any suggestions on how to do the same using natural tables would be
  greatly appreciated.
 
  use the height parameter for the table row. also, I don't thik you've
 understood the meaning of 'nr=2'.
  I suggest you read the wiki entry on TABLES:
  http://wiki.contextgarden.net/TABLE
 
 
  and here's your table back ;P :
 
  \bTABLE
  \bTABLEbody
  \bTR
  \bTD Circuit \eTD
  \bTD Description \eTD
  \bTD Circuit \eTD
  \bTD Description \eTD
  \eTR
 
  \bTR[height=0.7in]
  \bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
  \bTD  8 \eTD \bTD  \unused \eTD
  \eTR
  \eTABLEbody
  \eTABLE
 
 
 --
 -
 - Pavneet Arora
 
 Waroc Fine Audio + Custom Home Cinema
 www.waroc.com  416.937.WAROC (9276)
 
 __
 _
 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
 __
 _

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


Re: [NTG-context] Double height rows using natural tables?

2011-11-24 Thread Christian
Now I don't get it :D What do you want to accomplish? Maybe an annotated 
screenshot would help?

anyway, here's a another tip:
\setupTABLE[r][4][topframe=on]
\setupTABLE[r][6][topframe=on]
\setupTABLE[r][8][topframe=on]
\setupTABLE[r][10][topframe=on]
\setupTABLE[r][12][topframe=on]
\setupTABLE[r][16][topframe=on]
=
\setupTABLE[r][4,6,8,10,16][topframe=on]

 Yes, I get that part.  Perhaps, a larger example will illustrate .
 
 Enclosed is a simple electrical panel.  Many are 40 or 60 circuits large.  
 Note
 that you have an assortment of cells spanning rows depending on breaker
 size.
 It is only by chance that in a particular case adjacent breaker might utilize 
 the
 full slot.  Hence the [nr=2] approach.  So in the given panel, if circuits
 15 and 16 were both double-pole, it would be incorrect to label them as
 15A/15B and 16A/16B.  Then for that particular 'row' I would need double
 height.
 
 On 11-11-24 06:07 PM, Christian wrote:
  If you want all rows double height except the first, just do it the other 
  way
 around.
  \setupTABLE[r][each][height=0.7in]
  and then for the first row:
  \bTR[height=0.35in]
  Then it's only 2 digits to change :)
 
  [nr=X] is for a cell spanning X rows. Hint: nr=number rows. So you'll get a
 single cell that reaches down X rows. it's not meant to be used to adjust the
 height of a row.
 
  Check this out, lots of examples:
  http://www.pragma-ade.com/general/manuals/enattab.pdf
 
 
  Thank you, Christian.  However, I find explicitly setting the row
  height a bit awkward.  What happens if I changed the height value in
  my \setupTABLE directive?  Then I would have to change all references
  to height in the table explicitly.  Also, my made up example is
  *only* of double rows.  However, I have the earlier example where
  this is a mixture of row spans across different columns.  It was just
  by chance that I was in a situation with all adjacent cells in a 
  particular row
 requiring a row span.
 
  Why would that be considered not an application of [nr=?]?  And if it
  indeed the case, shouldn't it be explicit that [nr=2] doesn't apply to an
 entire row?
 
  Regards.
 
 
  On 11-11-24 05:47 PM, Christian wrote:
  I have tried various combinations and have so far been unsuccessful
  in getting a row of double height using natural tables.  I am
  following up and enclosing a minimal example, along with the a
  previous incarnation using TABLE, which does give me the intended
  layout.
 
  Any suggestions on how to do the same using natural tables would be
  greatly appreciated.
 
  use the height parameter for the table row. also, I don't thik
  you've
  understood the meaning of 'nr=2'.
  I suggest you read the wiki entry on TABLES:
  http://wiki.contextgarden.net/TABLE
 
 
  and here's your table back ;P :
 
  \bTABLE
  \bTABLEbody
\bTR
\bTD Circuit \eTD
\bTD Description \eTD
\bTD Circuit \eTD
\bTD Description \eTD
\eTR
 
\bTR[height=0.7in]
\bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
\bTD  8 \eTD \bTD  \unused \eTD
\eTR
  \eTABLEbody
  \eTABLE
 
 
  --
  -
  - Pavneet Arora
 
  Waroc Fine Audio + Custom Home Cinema www.waroc.com
 416.937.WAROC
  (9276)
 
 
 __
  _
  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
 
 __
  _
 
 
 --
 -
 - Pavneet Arora
 
 Waroc Fine Audio + Custom Home Cinema
 www.waroc.com  416.937.WAROC (9276)


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


Re: [NTG-context] Double height rows using natural tables?

2011-11-24 Thread Christian
Ok, I don't understand occupy a double slot on the panel with a single 
breaker, that’s some tech-talk I guess,
but how about faking it:
use in you preamble
\dimen0=.35in
and then use for the header (or all the rows):
\bTR[height=\dimen0]
and for fake doubles
\bTR[height=2\dimen0]

This way you change dimen0, you change the whole thing.

P.S: apparently having ALL cells in a single row having [nr=2] does screw up 
the table  instead of doubling the cell height (what you wanted, I guess).

 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Pavneet Arora
 Gesendet: Freitag, 25. November 2011 00:47
 Cc: 'mailing list for ConTeXt users'
 Betreff: Re: [NTG-context] Double height rows using natural tables?
 
  From an earlier version using `unnatural' tables, I have enclosed the output
 PDF.  This situation can arise anywhere in the panel/table where you have
 adjacent rows allow of which should be spanning a double row.  In this case
 circuits 15 and 16 occupy a double slot on the panel with a single breaker;
 hence the layout should reflect this.  How would this be best achieved in the
 natural table model?  Shouldn't we just be dealing with spans independently
 of worrying about whether other adjacent columns will also require a row
 span?
 
 On 11-11-24 06:23 PM, Christian wrote:
  Now I don't get it :D What do you want to accomplish? Maybe an
 annotated screenshot would help?
 
  anyway, here's a another tip:
  \setupTABLE[r][4][topframe=on]
  \setupTABLE[r][6][topframe=on]
  \setupTABLE[r][8][topframe=on]
  \setupTABLE[r][10][topframe=on]
  \setupTABLE[r][12][topframe=on]
  \setupTABLE[r][16][topframe=on]
  =
  \setupTABLE[r][4,6,8,10,16][topframe=on]
 
  Yes, I get that part.  Perhaps, a larger example will illustrate .
 
  Enclosed is a simple electrical panel.  Many are 40 or 60 circuits
  large.  Note that you have an assortment of cells spanning rows
  depending on breaker size.
  It is only by chance that in a particular case adjacent breaker might
  utilize the full slot.  Hence the [nr=2] approach.  So in the given
  panel, if circuits
  15 and 16 were both double-pole, it would be incorrect to label them
  as 15A/15B and 16A/16B.  Then for that particular 'row' I would need
  double height.
 
  On 11-11-24 06:07 PM, Christian wrote:
  If you want all rows double height except the first, just do it the
  other way
  around.
  \setupTABLE[r][each][height=0.7in]
  and then for the first row:
  \bTR[height=0.35in]
  Then it's only 2 digits to change :)
 
  [nr=X] is for a cell spanning X rows. Hint: nr=number rows. So
  you'll get a
  single cell that reaches down X rows. it's not meant to be used to
  adjust the height of a row.
 
  Check this out, lots of examples:
  http://www.pragma-ade.com/general/manuals/enattab.pdf
 
 
  Thank you, Christian.  However, I find explicitly setting the row
  height a bit awkward.  What happens if I changed the height value
  in my \setupTABLE directive?  Then I would have to change all
  references to height in the table explicitly.  Also, my made up
  example is
  *only* of double rows.  However, I have the earlier example where
  this is a mixture of row spans across different columns.  It was
  just by chance that I was in a situation with all adjacent cells in
  a particular row
  requiring a row span.
 
  Why would that be considered not an application of [nr=?]?  And if
  it indeed the case, shouldn't it be explicit that [nr=2] doesn't
  apply to an
  entire row?
 
  Regards.
 
 
  On 11-11-24 05:47 PM, Christian wrote:
  I have tried various combinations and have so far been
  unsuccessful in getting a row of double height using natural
  tables.  I am following up and enclosing a minimal example, along
  with the a previous incarnation using TABLE, which does give me
  the intended
  layout.
 
  Any suggestions on how to do the same using natural tables would
  be greatly appreciated.
 
  use the height parameter for the table row. also, I don't thik
  you've
  understood the meaning of 'nr=2'.
  I suggest you read the wiki entry on TABLES:
  http://wiki.contextgarden.net/TABLE
 
 
  and here's your table back ;P :
 
  \bTABLE
  \bTABLEbody
  \bTR
  \bTD Circuit \eTD
  \bTD Description \eTD
  \bTD Circuit \eTD
  \bTD Description \eTD
  \eTR
 
  \bTR[height=0.7in]
  \bTD  7 \eTD \bTD  Bedroom 4 Arc Fault Plug \eTD
  \bTD  8 \eTD \bTD  \unused \eTD
  \eTR
  \eTABLEbody
  \eTABLE
 
 
  --
  -
  - Pavneet Arora
 
  Waroc Fine Audio + Custom Home Cinema www.waroc.com
  416.937.WAROC
  (9276)
 
 
 
 __
  _
  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

[NTG-context] Avoiding widows and orphans (again?)

2011-11-23 Thread Christian
Good day to you,

I saw the related messages in the archive, but I don't really get it.

I'm looking for a (global) setting, that prevents the last line of a paragraph 
to slip on the next page. If it really must, it shall also drag another one 
with it for company.

Please enlighten me.

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


[NTG-context] Metapost graphics in separate file, help needed

2011-11-23 Thread Christian
Dear List,

I am experiencing a strange problem. I have a project, essentially with the 
following structure (desperate attempt to keep track of my stuff):

mainfile.mkiv:
% BOF
...lots of setups and settings...
\starttext
\input metapostgraphics.mkiv
\input chapter1.mkiv
\input chapter2.mkiv
\input chapter3.mkiv
\stoptext
% EOF

I generate the PDF with 'context mainfile.mkiv'
So far for the structure. Now my problem:
metapostgraphics.mkiv contains several (4) metapost graphics with 
\startuseMPgraphics{nameX} ... \stopuseMPgraphics.
In chapter2.mkiv I want to use them with \useMPgraphics{nameX}.
It worked well until today, when I added a fifth graphic. Then I suddenly get a 
frame with 'undefined' inside instead of the picture.
I tried everything, checked for typos, tried different names, double checked 
the MP-code etc. but to no avail.

It only works if I put the exact same MP-code between \startMPcode \stopMPcode 
directly in the chapter2.mkiv

What is wrong here? Am I missing something? Did I get the input mechanism all 
wrong?

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


Re: [NTG-context] Metapost graphics in separate file, help needed

2011-11-23 Thread Christian
Thanks for the suggestions so far. I' currently testing Hans' idea and it seems 
to be a problem with caching.

The simple file I made where I just use each graphic runs into an error, but 
the corresponding code (undefined control sequence '\sb') is definitely not in 
the current source file of the graphics.

How do I clear the cache to force recalculation of the MP-graphics?

 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Aditya Mahajan
 Gesendet: Mittwoch, 23. November 2011 20:33
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Metapost graphics in separate file, help needed
 
  It only works if I put the exact same MP-code between \startMPcode
  \stopMPcode directly in the chapter2.mkiv
 
  What is wrong here? Am I missing something? Did I get the input
  mechanism all wrong?
 
  What happens if you make a simple file with the 4 \useMPgraphics in it ..
  does that one process? Maybe there is a problem with the graphics in
  the sense that you cannto run them all in a row.
 
 You can also try adding
 
 begingroup;
 
 endgroup;
 
 inside each MP figure. I always wished that this was the default behaviour.
 
 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://tex.aanhet.net archive  :
 http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Metapost graphics in separate file, help needed

2011-11-23 Thread Christian
Oh boy. This is embarrassing!

Turns out the file that was open in notepad++ was not the one in the path of my 
project, but had the exact same name. 
And I was editing this sucker  instead of the real file. I guess I should 
reload my files during sessions.

insert double face-palm here
Problem solved, it's sitting right in front of the screen and is banging his 
head hard against the wall now.

I'm truly sorry that I have wasted your time.

 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Hans Hagen
 Gesendet: Mittwoch, 23. November 2011 20:59
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Metapost graphics in separate file, help needed
 
 On 23-11-2011 20:32, Aditya Mahajan wrote:
  It only works if I put the exact same MP-code between \startMPcode
  \stopMPcode directly in the chapter2.mkiv
 
  What is wrong here? Am I missing something? Did I get the input
  mechanism all wrong?
 
  What happens if you make a simple file with the 4 \useMPgraphics in
  it .. does that one process? Maybe there is a problem with the
  graphics in the sense that you cannto run them all in a row.
 
  You can also try adding
 
  begingroup;
  .
  endgroup;
 
  inside each MP figure. I always wished that this was the default behaviour.
 
 Actually, last week I was tempted to do that but I cannot oversee the
 consequences. It is probably harmless. The interesting thing is that
 beginfig/endfig have grouping but somehow it does not work out well.
 
 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
 __
 _

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

Re: [NTG-context] Placing text in the margin of a header or the top right corner of a page

2011-11-22 Thread Christian
 Dear All,
 
 I am trying to place a framed text in the top right corner of each page of a
 screen document and it looks like (cont-eni)  some invocation of
 \setupheadertexts might do the job. Unfortunately, I have only been able to
 place my text in the margin of the body of the page, using \margintext.
 Ideally, I would like to have the framed text box flush with the top and right
 edge of a page, but any approximate solution or a pointer to some document
 to read (that could educate me) will be much appreciated.

Smells like Layers to me. Try this, for starters:

\definelayer[mybg][x=180mm, y=0mm,width=3cm, height=3cm,repeat=yes]
\setlayer[mybg][hoffset=0cm, voffset=0cm]{\framed[frame=on, width=3cm, 
height=2cm,background=color,backgroundcolor=black,foregroundcolor=white]{LAYER}}
\setupbackgrounds[page][background=mybg]
\starttext
Test
\page
Test1
\page
Test2
\stoptext

More info here:
http://wiki.contextgarden.net/layers

Hope that helps :)

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


Re: [NTG-context] Placing text in the margin of a header or the top right corner of a page

2011-11-22 Thread Christian
I think I see what you mean. It disappeared after I tossed the box 1mm to the 
right with adjusting the x position:
change
x=180mm
to
x=181mm

Is that it?

 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Matthias Weber
 Gesendet: Mittwoch, 23. November 2011 05:55
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Placing text in the margin of a header or the top
 right corner of a page
 
 Fascinating. Thanks a lot. That is more than I hoped for, and was easy to
 adapt to what I wanted.
 
 One small issue: There is a tiny gap between the black layer box and the right
 margin (in white) that doesn't even disappear when I increase hoffset.
 Any chance to make that disappear, too?
 
 Thanks again -
 
 Matthias
 
 
 On Nov 22, 2011, at 11:30 PM, Christian wrote:
 
  Dear All,
 
  I am trying to place a framed text in the top right corner of each
  page of a screen document and it looks like (cont-eni)  some
  invocation of \setupheadertexts might do the job. Unfortunately, I
  have only been able to place my text in the margin of the body of the
 page, using \margintext.
  Ideally, I would like to have the framed text box flush with the top
  and right edge of a page, but any approximate solution or a pointer
  to some document to read (that could educate me) will be much
 appreciated.
 
  Smells like Layers to me. Try this, for starters:
 
  \definelayer[mybg][x=180mm, y=0mm,width=3cm,
 height=3cm,repeat=yes]
  \setlayer[mybg][hoffset=0cm, voffset=0cm]{\framed[frame=on,
 width=3cm,
 
 height=2cm,background=color,backgroundcolor=black,foregroundcolor=whit
  e]{LAYER}} \setupbackgrounds[page][background=mybg]
  \starttext
  Test
  \page
  Test1
  \page
  Test2
  \stoptext
 
  More info here:
  http://wiki.contextgarden.net/layers
 
  Hope that helps :)
 
 
 __
 
  _ 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
 
 __
 
  _
 
 __
 _
 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
 __
 _

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

[NTG-context] Rotating natural Tables

2011-11-21 Thread Christian
Hello,

quick question:

How do I rotate a floating TABLE when using \startplacetable[title={My long 
title},list={Short title}] and \stopplacetable?

What is the parameter equivalent to \placetable{orientation=90} in this case?

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


Re: [NTG-context] Table cell colo(u)rs

2011-11-17 Thread Christian
 Hello,
 
 I am trying to do a simple cell background shading in a table using the
 example at the wiki:
 
 http://wiki.contextgarden.net/Table
 
 Unfortunately, I get an Undefined control sequence ... error:
 
 ! Undefined control sequence.
 
 system   tex  error on line 4 in file tmp.tex: Undefined control
 sequence ...
 
   1 \setupcolors[state=start]
   2 \starttable[|l|l|]
   3 \HL
   4   \BL[1]\SR
   5 \NC Command   \NC Meaning \NC\SR
   6 \HL
   7 \NC \tex{NC}  \NC next column \NC\FR
   8 \NC \tex{NR}  \NC next row\NC\LR
   9 \HL
 10 \CL[green]\SR
 11 \NC \tex{AR}   \NC automatic row\NC\SR
 12 \HL
 13 \stoptable
 14
 
 recently read \BL
 
 l.4 \BL
 [1]\SR
 ?
 
 Any suggestions?

Well, not for this particular problem, it happens here, too.
But may I suggest the use of natural tables (aka TALBES)? I find them way 
more comfortable to use and the code is cleaner (to my eyes, at least).
This should get you going:

% Start of file
\setupTABLE[r][first][foregroundstyle={\ss \bf 
\color[white]},background=color,backgroundcolor=blue,framecolor=blue]
\setupTABLE[column][each][leftframe=off,rightframe=off]
\setupTABLE[column][1][align=right]
\setupTABLE[column][2][alignmentcharacter={.},aligncharacter=yes,align=middle,style={\color[red]}]
\chardef\characteralignmentmode=2
\starttext
\startplacetable[title=test]
\bTABLE
\bTR \bTH Category \eTH \bTH Data entry \eTH \eTR
\bTR \bTD First \eTD \bTD 35.12 \eTD \eTR
\bTR \bTD[background=color,backgroundcolor=red] Second \eTD \bTD 5.014 \eTD \eTR
\bTR[background=color,backgroundcolor=gray]
\bTD Total \eTD \bTD 110 \eTD
\eTR
\eTABLE
\stopplacetable
\stoptext
% End of file

More information:
http://wiki.contextgarden.net/TABLE
Many more examples:
http://www.pragma-ade.com/general/manuals/enattab.pdf

Cheers!

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


[NTG-context] Strange numberconversion in appendix

2011-11-17 Thread Christian
Hello,

I find this behavior a little odd:

\starttext
\startbodymatter
\startplacefigure[reference=mill,title={A mill}]
\externalfigure[mill]
\stopplacefigure
\startplacefigure[reference=cow,title={A cow}]
\externalfigure[cow]
\stopplacefigure
\stopbodymatter

\startappendices
In \in{figure}[cow] on page \at[cow] is a cow.
\stopappendices
\stoptext

The figure number is converted into roman numerals (Romannumerals). How can I 
change it to normal numbers? So that it says figure 2.
It should also be considered to make it the default setting.

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


Re: [NTG-context] Edid of reference in Wiki (was: \in: incorrect space in example in reference)

2011-11-17 Thread Christian
Same here. ConTeXt  ver: 2011.11.09 20:58 MKIV.
Referencing formulas with a number is not possible, due to the number not being 
typeset. Must be some sort of bug.
Log says:
references   unknown reference [][eq:gamma]


 -Ursprüngliche Nachricht-
 Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
 Auftrag von Mikael P. Sundqvist
 Gesendet: Donnerstag, 17. November 2011 16:09
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Edid of reference in Wiki (was: \in: incorrect 
 space
 in example in reference)
 
 I replied to the original thread, but no reply of that so far.
 
 Am I the only one that has the problem not getting
 %%% Start example
 \definereferenceformat[eqref][left={(},right={)}]
 
 \starttext
 \placeformula[eq:gamma]
 \startformula
 \Gamma(n+1)=n!
 \stopformula
 The fundamental formula~\eqref[eq:gamma]\ldots.
 \stoptext
 %%% Stop example
 
 to work in the latest mkiv minimals?
 
 I get no number in the reference, only a ().
 
 /Mikael
 
 PS This seems to work for other numbers than the equation numbers.
 
 On Thu, Nov 17, 2011 at 2:35 PM, Patrick Gundlach patr...@gundla.ch
 wrote:
  to correct this in the reference do I just edit the Wiki article or is
  the reference automatically created?
 
  Edit the Wiki article.
 
  Patrick
 
 
 __
 _
  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
 
 __
 _
 
 __
 _
 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
 __
 _

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

[NTG-context] Help with citation layout.

2011-11-16 Thread Christian
Dear list,

I need the help of a BibTeX/citation module expert. I want to modify the 
appearance of @INBOOK entries.
Currently they look like this (apa-de style):

author (year) _booktitle_, Chapter chaptertitle, pages, publisher, edition.

What I'm aming for is this:

author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages, publisher, 
edition.

Where chaptertitle refers to the title of the chapter (usually some sort of 
article or essay), very similar to arttitle.

Is there a way to accomplish this? Or is the INBOOK entry not meant to do this?
I'm especially having trouble to get the editor to show up (let alone having 
In  in front of it). Does editor and author conflict here?

Thank you for you help!

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


Re: [NTG-context] Help with citation layout.

2011-11-16 Thread Christian
  I need the help of a BibTeX/citation module expert. I want to modify the
 appearance of @INBOOK entries.
  Currently they look like this (apa-de style):
 
  author (year) _booktitle_, Chapter chaptertitle, pages, publisher, edition.
 
  What I'm aming for is this:
 
  author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages, 
  publisher,
 edition.
 
  Where chaptertitle refers to the title of the chapter (usually some sort of
 article or essay), very similar to arttitle.
 
 I encountered the same problem a while ago and discovered that using
 @incollection solves it. (The documentation at
 http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-12.html implies that
 @inbook only supports a chapter number or page range, rather than a titled
 section.) Example:
 
 @incollection{ernst1989anisotropy,
   title = {Averaging of anisotropy of magnetic susceptibility data},
   author = {Ernst, R. E. and Pearce, G. W.},
   booktitle = {Statistical Applications in the Earth Sciences},
   editor = {Agterberg, F. P. and Bonham-Carter, G. F.},
   note = {Paper 89-9},
   pages = {297--305},
   year = {1989},
   publisher = {Geological Survey of Canada} }
 
 With the default bibliography style this typesets to:
 
 Ernst, R. E. and Pearce, G. W. (1989). Averaging of anisotropy of magnetic
 susceptibility data. In Agterberg, F. P. and Bonham-Carter, G. F., editors,
 _Statistical Applications in the Earth Sciences_, pages 297–305. Geological
 Survey of Canada. Paper 89-9.

Thanks Pont, that is already helpful to know that others encountered this 
problem, too.

However, @inbook supports a chapter title that is placed with \insertchapter.
So I thought I could put the arttitle in the chapter field and the book title 
in the title field of bibtex.
But I did not manage to get the author and the editor in my layout.

Example:
% Bibtex:
@INBOOK{naunin07,
author ={Dietrich Naunin},
editor = {Dietrich Naunin},
title = {Hybrid-, Batterie- und Brennstoffzellen-Elektrofahrzeuge: 
Technik, Strukturen und Entwicklungen},
chapter = {Elektrische Antriebssysteme},
editor = {Dietrich Naunin},
pages = {20-33},
address = {Renningen},
publisher = {expert-Verlag},
year = {2007},
edition = {4.},
ISBN = {3-8169-2625-8},
}
% Context:
\setuppublicationlayout[inbook]{%
\insertauthors{}{ }{}%
\insertpubyear{(}{). }{\unskip.}%
\insertchapter{\bgroup \it}{\egroup. }{\unskip}%
\inserteditors{In\ }{, editors: }{}%
\inserttitle{\bgroup \it}{\egroup. }{\unskip}%
\insertpages{}{}{}%}

With this I get:

Naunin, Dietrich (2007). _Elektrische Antriebssysteme_. _Hybrid-, Batterie- und 
Brennstoff-
zellen-Elektrofahrzeuge: Technik, Strukturen und Entwicklungen_. 20-33

The editor is not inserted, but the pages are :( This may be a bad example 
since the author of the chapter is the editor, but it's also not working 
anywhere else.



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

Re: [NTG-context] Help with citation layout.

2011-11-16 Thread Christian
   I need the help of a BibTeX/citation module expert. I want to modify
   the
  appearance of @INBOOK entries.
   Currently they look like this (apa-de style):
  
   author (year) _booktitle_, Chapter chaptertitle, pages, publisher, 
   edition.
  
   What I'm aming for is this:
  
   author (year) _chaptertitle_, In editor (Edt.): _booktitle_, pages,
   publisher,
  edition.
  
   Where chaptertitle refers to the title of the chapter (usually some
   sort of
  article or essay), very similar to arttitle.
 
  I encountered the same problem a while ago and discovered that using
  @incollection solves it. (The documentation at
  http://www.kfunigraz.ac.at/~binder/texhelp/bibtx-12.html implies that
  @inbook only supports a chapter number or page range, rather than a
  titled
  section.) Example:
 
  @incollection{ernst1989anisotropy,
title = {Averaging of anisotropy of magnetic susceptibility data},
author = {Ernst, R. E. and Pearce, G. W.},
booktitle = {Statistical Applications in the Earth Sciences},
editor = {Agterberg, F. P. and Bonham-Carter, G. F.},
note = {Paper 89-9},
pages = {297--305},
year = {1989},
publisher = {Geological Survey of Canada} }
 
  With the default bibliography style this typesets to:
 
  Ernst, R. E. and Pearce, G. W. (1989). Averaging of anisotropy of
  magnetic susceptibility data. In Agterberg, F. P. and Bonham-Carter,
  G. F., editors, _Statistical Applications in the Earth Sciences_,
  pages 297–305. Geological Survey of Canada. Paper 89-9.
 
 Thanks Pont, that is already helpful to know that others encountered this
 problem, too.
 
 However, @inbook supports a chapter title that is placed with \insertchapter.
 So I thought I could put the arttitle in the chapter field and the book 
 title in
 the title field of bibtex.
 But I did not manage to get the author and the editor in my layout.
 
 Example:
 % Bibtex:
 @INBOOK{naunin07,
   author ={Dietrich Naunin},
   editor = {Dietrich Naunin},
   title = {Hybrid-, Batterie- und Brennstoffzellen-Elektrofahrzeuge:
 Technik, Strukturen und Entwicklungen},
   chapter = {Elektrische Antriebssysteme},
   editor = {Dietrich Naunin},
   pages = {20-33},
   address = {Renningen},
   publisher = {expert-Verlag},
   year = {2007},
   edition = {4.},
   ISBN = {3-8169-2625-8},
 }
 % Context:
 \setuppublicationlayout[inbook]{%
 \insertauthors{}{ }{}%
 \insertpubyear{(}{). }{\unskip.}%
 \insertchapter{\bgroup \it}{\egroup. }{\unskip}% \inserteditors{In\ }{,
 editors: }{}% \inserttitle{\bgroup \it}{\egroup. }{\unskip}%
 \insertpages{}{}{}%}
 
 With this I get:
 
 Naunin, Dietrich (2007). _Elektrische Antriebssysteme_. _Hybrid-, Batterie-
 und Brennstoff-
 zellen-Elektrofahrzeuge: Technik, Strukturen und Entwicklungen_. 20-33
 
 The editor is not inserted, but the pages are :( This may be a bad example
 since the author of the chapter is the editor, but it's also not working
 anywhere else.

OK, I just checked, the editor doesn't even make it into the bbl-file :P

I guess that’s why Wikipedia says author or editor (not both, I guess).
So I guess theres only a non-clean way to do this.
Using incollection (probably better), like you suggested, Pont, or inserting 
the editor in another field an customizing  the inbook appearance.

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

[NTG-context] Rotate text in TABLE-header

2011-11-15 Thread Christian
Dear list,

is there an easy option to rotate all text (not the table itself) in the first 
row of a TABLE?

something like this:

\bTABLE
\bTR[rotate=90]
\bTD I am flipped \eTD
\bTD Me too. \eTD
\bTD Same here! \eTD
\eTR
\eTABLE

That would be super useful, but I didn't find anything.

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


Re: [NTG-context] Simplefonts question

2011-11-14 Thread Christian
  Hi Wolfgang,
 
  I'm looking for documentation for your handy module.
 
  Particularly i'd like to know all the options i can use for the
  commands \setmainfont and \setupsimplefonts.
 
  My goal is to use a font in my document in different sizes (say 12,
  17 and 35pt) with adequate line spacing.
 
  Do you want a whole family in this size or only a single style of a font?
 
 I need Linux Libertine as Serif, Aller as SansSerif and Aller in 35pt for 
 large
 titles with proper line spacing.
 
 My success so far:
 
 \definefontfeature[cond][default][extend=.8]
 \usemodule[simplefonts]
 \setmainfont[linuxlibertineo]
 \setsansfont[aller][features=cond]
 \mainlanguage[de]
 \starttext
 Dudelsackpfeifenmachergeselle
 
 {\it
 Dudelsackpfeifenmachergeselle }
 
 {\bf
 Dudelsackpfeifenmachergeselle }
 
 {\bi
 Dudelsackpfeifenmachergeselle }
 
 \ss
 Dudelsackpfeifenmachergeselle
 
 {\it
 Dudelsackpfeifenmachergeselle }
 
 {\bf
 Dudelsackpfeifenmachergeselle }
 
 {\bi
 Dudelsackpfeifenmachergeselle }
 \stoptext
 
 
 Now some questions remain:
 How can i set the size of the fonts?
 \setsansfont[aller][features=cond,size=14pt]
 seems not to work.
 How can i define the 35pt .8 condensed Aller?
 
 Greetings Lutz

Here is how I would do it:

\definefontfeature[cond][default][extend=.8]
\usemodule[simplefonts]
\setmainfont[Linux Libertine O]
\setsansfont[aller][scale=0.9] % downscale Aller a bit, since it has a bigger 
x-height than Libertine
\definesimplefonttypeface[titlefont][aller][features=cond] % this way, only 
titles are condensed
\setuphead[chapter][style={\switchtobodyfont[titlefont,35pt]}]
\mainlanguage[de]

\starttext
\chapter{Dudelsackpfeifenmachergesellen sind lustige Leute}

Dudelsackpfeifenmachergeselle {\ss Dudelsackpfeifenmachergeselle}

{\it Dudelsackpfeifenmachergeselle} {\ss \it Dudelsackpfeifenmachergeselle}

{\bf Dudelsackpfeifenmachergeselle } {\ss \bf Dudelsackpfeifenmachergeselle}

{\bi Dudelsackpfeifenmachergeselle } {\ss \bi Dudelsackpfeifenmachergeselle}
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Arrows and boxes in metapost.

2011-11-14 Thread Christian
Hello,

I need a simple graphic that shows some boxes (frames) with text in it and has 
some arrows pointing to and from these boxes. (examples 267 and 268 on this 
page [1])
I was hoping to do this in MetaPost.

Earlier this year this question went un-answered on this list:
How to use boxit MetaPost macros with ConTeXt minimals?

So, is there a solution or do I have to use 
label.rt(btex \framed[width=3cm,align=middle]{Text} etex, (1u,1.5u));

Which really feels uncomfortable in this case.

Best regards
Christian

[1] http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html

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


[NTG-context] defineframed has no effect

2011-11-14 Thread Christian
This gives only a framed Hello, no red, frame still on.
Did something change for setting up own frames?

\defineframed[GreyBg][backgroung=color,backgroundcolor=red,frame=off]
\starttext
\GreyBg[frame=on]{Hallo}
\stoptext

Info: ConTeXt  ver: 2011.11.09 20:58 MKIV



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


  1   2   >