[NTG-context] \doifmode{mkiv}

2007-12-11 Thread Johan Sandblom
Is there a test for whether mkiv or mkii is being run? Something like

\doifmodeelse{mkiv}{whatever}

Johan

-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] FLOWchart clipping or offset

2007-12-12 Thread Johan Sandblom
Consider this example. As it stands, the cells in the flow chart are
clipped on the horizontal extremes. On the other hand if the offset is
uncommented, a vertical offset is introduced which makes the bottom of
the chart depart from the page (or at least it does in the real world
use from which this is drawn). I remember horoffset from some context
but it does not work here. Is there a solution I am missing?

Johan

\setuppapersize[S6][S6]
\usemodule[chart]

\starttext

\setupFLOWcharts[dx=-17mm, dy=2mm, width=60mm,
  height=16mm,
  %% offset=17mm, % <---Uncomment this
  ]
\startFLOWchart[pa-er-cycle]
\startFLOWcell
  \name  {omgivning}
  \location  {3,1}
  \shape {action}
  \text  {Omgivning}
  \connection[lt]{sinnen}
\stopFLOWcell
\startFLOWcell
  \name  {sinnen}
  \location  {1,2}
  \shape {action}
  \text  {Sinnesintryck}
  \connection[blp]{informationsbearbetning}
\stopFLOWcell
\startFLOWcell
  \name  {informationsbearbetning}
  \location  {3,3}
  \shape {action}
  \text  {Informationsbearbetning}
  \connection[prb]{motor}
  \connection[nrt]{inkodning}
\stopFLOWcell
\stopFLOWchart

\framed{\FLOWchart[pa-er-cycle]}

\stoptext

-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] lua problem with Windows Vista

2008-03-06 Thread Johan Sandblom
Hi, after acquiring a Thinkpad X61 I have takon on the ordeal of
learning to use Windows Vista. I have turned off User Account Control
and installed cygwin. In order to install context I tried several ways
without success:

the ContextMinimalInstaller.exe failed by silently not downloading any files

the minimals installer failed with rsync complaining when it was
unable to create several directories. first-setup.bat ran without
error if I manually created those directories but turned out not to
have populated the file system when done

In the end I unzipped justtex.zip and mswintex.zip and manually
updated relevant parts of that tree with rsync from
rsync://contextgarden.net/minimals

MkII seems to work after this but when I run

luatools --generate
luatools --ini --compile --verbose cont-en

I get the output below which looks like a lua error. luatex version is
snapshot-0.22.0-2008021623. I do not know enough about lua to track
this error down. I am hoping someone knows what to do. Perhaps there
is even someone who can tell me an easier way to install context on
vista.

Johan



LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT

LuaTools | loading configuration for c:/tex/texmf-local/web2c from C:/Users/joha
ns/AppData/Local/Temp/luatex-cache/context/2f0baa67609fede774cad1816bc161c0/tree
s/79b9a157cfe9c83efa99199d2bcebd4f
LuaTools | locating list of c:/tex/texmf-mswin
LuaTools | locating list of c:/tex/texmf-project
LuaTools | locating list of c:/tex/texmf-fonts
LuaTools | locating list of c:/tex/texmf-local
LuaTools | locating list of c:/tex/texmf-extra
LuaTools | locating list of c:/tex/texmf
LuaTools | loading files for c:/tex/texmf-mswin from C:/Users/johans/AppData/Loc
al/Temp/luatex-cache/context/2f0baa67609fede774cad1816bc161c0/trees/39e55a4309bf
e2ea9f639d421936eee1
LuaTools | loading files for c:/tex/texmf-fonts from C:/Users/johans/AppData/Loc
al/Temp/luatex-cache/context/2f0baa67609fede774cad1816bc161c0/trees/83bb976cee5f
5053375aec6fae7ab80c
LuaTools | loading files for c:/tex/texmf-local from C:/Users/johans/AppData/Loc
al/Temp/luatex-cache/context/2f0baa67609fede774cad1816bc161c0/trees/a6e65cc51848
d6322c812f7170ffc63f
LuaTools | loading files for c:/tex/texmf-extra from C:/Users/johans/AppData/Loc
al/Temp/luatex-cache/context/2f0baa67609fede774cad1816bc161c0/trees/5def5151ca91
743ee0b11f69c81dbcc6
LuaTools | loading files for c:/tex/texmf from C:/Users/johans/AppData/Local/Tem
p/luatex-cache/context/2f0baa67609fede774cad1816bc161c0/trees/cc606a690f61463c3d
016cc2fdb6859f
LuaTools | creating initialization file cont-en
LuaTools | using library path : c:/tex/texmf-local/tex/context/base
LuaTools | using lua libraries: l-string.lua l-table.lua l-boolean.lua l-number.
lua l-unicode.lua l-md5.lua l-os.lua l-io.lua l-file.lua l-dir.lua l-utils.lua l
-tex.lua luat-lib.lua luat-inp.lua luat-tmp.lua luat-zip.lua luat-tex.lua
LuaTools | using compiled initialization file cont-en.luc
LuaTools | using lua initialization file cont-en.luc
LuaTools | running command: luatex --ini --lua="cont-en.luc" "c:/tex/texmf-local
/tex/context/base/cont-en.tex" \dump
?:0: attempt to call field '?' (a nil value)

LuaTools |
LuaTools | runtime: 0.2 seconds

-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] References and formulae numbers in upshape

2008-03-15 Thread Johan Sandblom
I believe the easy way is

\mainlanguage{sv]

which also has lots of other useful side effects.

Johan, also from Sweden

2008/3/15, Jan-Erik Hägglöf <[EMAIL PROTECTED]>:
> -BEGIN PGP SIGNED MESSAGE-
>  Hash: SHA1
>
>  Wolfgang Schuster skrev:
>
> > On Fri, 14 Mar 2008 22:30:30 +0100
>  > Morgan Brassel <[EMAIL PROTECTED]> wrote:
>  >
>  >> Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
>  >>> What do you want seems to be not possible but you could use the
>  >>> following solution although it is better to define a new command.
>  >>>
>  >>> \let\normalin\in
>  >>>
>  >>> \definereferenceformat
>  >>>   [figref]
>  >>>   [left=\normal,
>  >>>text=\normal Figure,
>  >>>command=\normalin]
>  >>>
>  >>> \let\in\figref
>  >>>
>  >>> \starttext
>  >>>
>  >>> \placefigure
>  >>>   [here][fig:det]
>  >>>   {Example}
>  >>>   {\blackrule[width=3cm,height=3cm]}
>  >>>
>  >>> \it See \in[fig:det] for details.
>  >>>
>  >>> \stoptext
>  >
>  >> Thank you for your help, Wolfgang! I think I'll define a new \ref command
>  >> similar to the one in LaTeX, with upshape number. But maybe a new option
>  >> would be welcome? (just as for numberstyle=normal in \setupformulae). 
> What do
>  >> you think? Is it a bad idea? I'm just curious...
>  >
>  > A new command to set the style for the number is OK but you need also
>  > one for the text but this need to be done by Hans because it is not
>  > possible to change the style for the predefined command in, at ... with
>  > the current implementation.
>  >
>  > 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  : https://foundry.supelec.fr/projects/contextrev/
>  > wiki : http://contextgarden.net
>  > 
> ___
>  >
>
> Hi!
>
>  As a new Context user (former LateX) from Sweden according to the above
>  discussion about references style to figures. I have a following
>  question. How do I customize the appearance of the figure text, I mean
>  for example:
>  Under every figure there is : Figure 1, Figure 2, Figure 3 and so on.
>  How do I make it like this : Picture 1, Picture 2, Picture 3 or
>  Picture 1a .1band such.?
>  In the swedish translation there is "Figur 1..."
>  I understand that it has to do with defining my own kind of \definefloat
>  or similar.
>
>  Best Regards
>
>  Janneman
>
>  -BEGIN PGP SIGNATURE-
>  Version: GnuPG v1.4.6 (GNU/Linux)
>  Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>  iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E
>  QuGKQMpRfcnoMSU0lXkVE28=
>  =wSRD
>  -END PGP SIGNATURE-
>
> ___
>  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  : https://foundry.supelec.fr/projects/contextrev/
>  wiki : http://contextgarden.net
>  
> ___
>


-- 
Johan Sandblom, MD PhD
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] ConTeXt ultraminimals

2008-05-25 Thread Johan Sandblom
How about Morphix?

http://www.morphix.org

I made a disk for another purpose about a year ago, it is based on
debian, and I don't think the system itself was more than some 100 Mb

Johan


2008/5/25 Martin Schröder <[EMAIL PROTECTED]>:
> 2008/5/25 Hans Hagen <[EMAIL PROTECTED]>:
>> aren't there those tiny linuxes of some 50 meg ?
>
> Yes, but we want a standard debian-like system for making system
> updates easier. There have been efforts to create TeX-Linuxes; I
> remember a talk at a recent BachoTeX...
>
> Best
>   Martin
> ___
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> _______
>



-- 
Johan Sandblom, MD PhD
m +46735521477 Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Johan Sandblom
What would be the drawback of allowing

backgroundcolor=n imply background=color

and

backgroundscreen=x imply background=screen

in the setup to \framed. Background compatibility should not be an
issue and I am failing to imagine cases where it would not be
desirable.

Regards, Johan

-- 
Johan Sandblom, MD PhD
m +46735521477 Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \framed[backgroundcolor=x] might imply \framed[background=color]

2008-09-02 Thread Johan Sandblom
So perhaps as expected it turns out that the limitation was only in my
imagination. Thanks for the responses.

Johan

2008/9/2 Hans Hagen <[EMAIL PROTECTED]>:
> Peter Rolf wrote:
>> Johan Sandblom schrieb:
>>> What would be the drawback of allowing
>>>
>>> backgroundcolor=n imply background=color
>>>
>>> and
>>>
>>> backgroundscreen=x imply background=screen
>>>
>>> in the setup to \framed. Background compatibility should not be an
>>> issue and I am failing to imagine cases where it would not be
>>> desirable.
>>>
>> The background parameter is not fixed to 'color' or 'screen'. You can
>> use any type of overlay background (which itself can use the parameter
>> backgroundcolor). So the usage of 'backgroundcolor' doesn't always imply
>> 'screen=color'. At least not in my macros.. :)
>
> is anyone using screen? deep down it's already mapped onto color anyway
> (the color mechanism will reduce colors anyway) .. if not, we might as
> well remove it from mkiv
>
> Hans
>
> ps. it dates from the time where not all printers could print gray areas
> and fallbacks were needed (fakes, real old code often)
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>



-- 
Johan Sandblom, MD PhD
m +46735521477 Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beginners manual

2005-11-25 Thread Johan Sandblom
I could help with this translation to Swedish, although I of course
also have time constraints.
Half the work and twice the fun!

Johan

2005/11/22, Mikael Persson <[EMAIL PROTECTED]>:
> I could think of translating to swedish. Depends on how much work it
> is and about if it must be done before that or that day. I got pretty
> much to do at work...
>
> /Micke P
>
> On 11/21/05, Hans Hagen <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm going to clean up the beginners manual (at least the source code) so
> > i think this s a good moment to pick up the 'translation' thread
> >
> > So the question is:
> >
> > - what can go out
> > - what should go in
> > - what should be updated
> >
> > as well as:
> >
> > - who will participate (in translation)
> > - how to deal with localization (maybe dedicated language related chapters)
> >
> > Hans
> > ___
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] GNU Emacs/ AucTeX configuration for ConTeXt

2005-12-03 Thread Johan Sandblom
2005/12/2, Renaud AUBIN <[EMAIL PROTECTED]>:
>
> Hi all,
>
> Is there someone using GNU Emacs with ConTeXt. After some googlelyzing, I've
> learnt :
> 1. ConTeXt mode from Berend de Boer is now included in AucTeX
> 2. Some people use Emacs with ConTeXt and METAPOST, but with special .el
> files that seems not really up-to-date
>
> I didn't found usefull information to configure properly AucTeX in order to
> work well with ConTeXt and METAPOST, even in the auctex mailing list.
> It's ok for the menu (apparently managed by site) but I don't have syntax
> highlighting except for comment and indenting doesn't work well.
> So, my questions are:
> 1. Since there is a ConTeXt mode, I suppose there is some advanced features
> like syntax highlighting and indentation rules. Am I right ?

Yes, although the highlighting is rather sparse, mainly it seems to
color anything after \ in gray, and the indentation rules somewhat
finicky, requiring you to adhere to a structure it can parse.

> 2. If I'm right, how to configure it ?

Some of the things are available as defcustoms but most of it I think
requires hacking the functions.

> 3. I will use METAPOST in my .tex files, how to manage this within Emacs ?

There is a metapost.el that is distributed with GNU Emacs (but not
with XEmacs, works there too though). I sometimes just change to that
major mode in the middle of the file, and this should be possible to
automate using mmm, but I never tried.

> 4. You know advanded features I must know ? ;-)

There is TeX debugging just as for LaTeX, automatically locating the
error in the source and explaining it.

I think possibly that the reason for the sparse syntax highlighting is
the higher frequency of inline definitions in ConTeXt, making it
impossible to keep up with it. I think it should be parsable, but
requires emacs-lisp skills way beyond mine.

>
> I'm sorry but I'm addicted to Emacs and don't want to use Scite even if it
> seems ConTeXt-friendly. I'm aware of the fact that this mail is more
> Emacs/AucTeX related but since I didn't succeed in finding answers yet I
> submit this issue to the ConTeXt community.
>
> Best regards,
>
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>

Regards,

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] modes in newtexexec

2005-12-09 Thread Johan Sandblom
Hello.

Doing

texmfstart texexec

now appears to call newtexexec. However, newtexexec does not seem to
handle --mode at all. Is it coming? Should I set it up so I can call
texexec directly in order to use modes?

Regards, Johan
--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \totalnumberofpages and \setuparranging [2UP]

2005-12-15 Thread Johan Sandblom
Could it be that texexec needs to be run with

texexec --arrange

Johan

2005/12/15, Tobias Burnus <[EMAIL PROTECTED]>:
> Hi,
>
> John Magolske wrote:
> > I'm having trouble getting \totalnumberofpages to display while using
> > \setuparranging [2UP].
> In order to get \totalnumberofpages (or \lastpage), the following happens:
> - First TeX run -> produces .tui
> - TeXutil -> convert .tui into .tuo
> - Second TeX run -> reads .tuo
> The .tuo file contains the needed information. (texexec calls
> texutil automatically and reruns if needed)
>
> If you \setuparranging [2UP], the .tui contains these extra lines:
>c \utilitygenerationaborted
>q {quit}
> which prevents TeXutil from creating the needed information.
>
> Why this is done that way, we have to wait for Hans to answer.
>
> Workaround: Run TeX once (texexec ), remove the two lines, run
> "texutil --ref " and run TeX again (texexec ...)
>
> Tobias
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] no 'D' in math-eul.tex

2005-12-27 Thread Johan Sandblom
In May I discovered that there was a typo in math-eul.tex rendering
the lower-case 'd' an 'e'. Amazingly, the same problem occurs also for
the upper-case 'D', and requires changing the line

\definemathcharacter [D] [nothing] [mr] ["45]

into

\definemathcharacter [D] [nothing] [mr] ["44]

Apparently this beautiful font is severely underused to allow this
typo to survive!

Regards, Johan
--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Keep framed on the baseline

2006-01-14 Thread Johan Sandblom
Outside math I think the solution is  \inframed, but I don't know if
that works here.

Johan

2006/1/14, David Arnold <[EMAIL PROTECTED]>:
> All,
>
> I have:
>
> \placeformula[-]
> \startformula
>\eqalign{
>&\text{Divisors of 12}: \framed{1},\ \framed{2},\ \framed{3},\ 4,\
> \framed{6},\ 12\cr
>&\text{Divisors of 18}: \framed{1},\ \framed{2},\ \framed{3},\
> \framed{6},\ 9,\ 18}
> \stopformula
>
> But I'd like to keep the numbers on the same baseline and let the
> frame dip below the baseline.
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] palatino fonts

2006-01-20 Thread Johan Sandblom
I use Euler math with Gentium, which is appealing to my amateur eye.

Johan

2006/1/20, Wolfgang Zillig <[EMAIL PROTECTED]>:
> Hello all,
>
> I just had a look the the Gentium fonts and I like them. Did anybody
> start to make them available in Context? And does anybody know if there
> will be a math font set available?
>
> Kind regards
>
> Wolfgang
>
>
>
>
> Thomas A. Schmitz schrieb:
> >
> > On Jan 20, 2006, at 10:47 AM, Henning Hraban Ramm wrote:
> >
> >> Gentium is aiming that target, but it lacks cyrillic at the moment
> >> (and it doesn't look like it would be further developed, even if they
> >> released the sources some months ago).
> >
> > What makes you say that? I heard that Victor Gaultney will release a
> > new version soonish, and that it will have bold and bold italic. And
> > the "status" part of the Gentium website looks like they are actively
> > developing the font.
> >
> > Best
> >
> > Thomas
> >
> > ___
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Vertical text in the margin on every page

2006-02-21 Thread Johan Sandblom
I have the following in an environment file. In the document I then
\def\workingtitle and \def\workdir, and this text is written in the
left margin. I am sure you will get better suggestions from others who
actually know what they are doing ...

Johan

\definecolor[logogray][s=.6]
\definelogo
  [mrc]
  [footer]
  [leftmargin]
  [state=start,
command=\hbox to 8.5mm{%
  \hfill%
  \vbox to \makeupheight{%
\hbox{%
  \framed
[width=8.5mm,
  background=color,
  backgroundcolor=black,
  align={middle,lohi}]
{\switchtobodyfont[sans,24pt]\rotate{\white\bf MRC}}}
\vfill%
\hbox{%
  \vbox{%
\switchtobodyfont[sil-gentium,10pt]
\logogray{\rotate{\currentdate \workdir}}}
  \vbox{%
\switchtobodyfont[sil-gentium,10pt]
\logogray{\rotate{'\workingtitle' text text text text
\hbox{\vbox to 3mm{}}
\hbox{%
  \framed
[width=8.5mm,
  background=color,
  backgroundcolor=black,
  align={middle,lohi}]
  {\switchtobodyfont[sans,24pt]\rotate{\white\bf MRC
  \hfill}]


2006/2/21, Jilani Khaldi <[EMAIL PROTECTED]>:
> Hi,
> In a technical report I need to put a vertical text on every page of the
> document in the right margin. This 2 lines text should be written in a
> little font. I have struggled for a while with ConTeXt but could'nt get
> a good result. Any hint?
> Thanks!
> jk
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Closing PDF file at each run

2006-02-27 Thread Johan Sandblom
2006/2/27, Taco Hoekwater <[EMAIL PROTECTED]>:

[snip]

> Texexec uses a pair of programs by Fabrice Popineau to make Acrobat
> automatically close and reopen the document. But this only works if
> it can control the file opening and closing from the start.

Interesting. I found no likely suspects among the arguments listed by
texexec --help. Is this feature only available in the Scite setting?

Johan

> Cheers,
> Taco
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] randomize a color

2006-03-06 Thread Johan Sandblom
The following produces one red square and two black ones, as opposed
to one red and two randomly perturbed but also red ones I was hoping
for. To my poor understanding this usage seems to comply with that
defined in mp-tool.mp. What am I doing wrong.

Regards, Johan

\setupcolors[state=start]
\definecolor[tilered][r=.425, g=0, b=0]
\definecolor[smudge][r=.1, g=.1, b=.1]

\defineoverlay[page][\useMPgraphic{page}]
\setupbackgrounds[page][background=page]

\startuseMPgraphic{page}
fill unitsquare scaled 2cm withcolor \MPcolor{tilered} ;
fill unitsquare
  scaled 2cm
  shifted (2cm,0cm)
  withcolor \MPcolor{tilered} randomized .1 ;
fill unitsquare
  scaled 2cm
  shifted (4cm,0cm)
  withcolor \MPcolor{tilered} randomized \MPcolor{smudge} ;
\stopuseMPgraphic

\starttext

test

\stoptext
--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] randomize a color

2006-03-06 Thread Johan Sandblom
Well, being stupid isn't much fun, you know. One of the few
consolations is bothering knowledgable people with questions that you
are unable to figure out the (albeit obvious) answer to ...

Thank you, Johan

2006/3/6, Taco Hoekwater <[EMAIL PROTECTED]>:
>
>
> Johan Sandblom wrote:
> > The following produces one red square and two black ones, as opposed
> > to one red and two randomly perturbed but also red ones I was hoping
> > for. To my poor understanding this usage seems to comply with that
> > defined in mp-tool.mp. What am I doing wrong.
>
> hint: your redpart gets a random value between 0 and 0.0425
>
> Cheers, taco
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Rows or columns on top in TABLE

2006-03-24 Thread Johan Sandblom
Hello,

the following creates a table with the even rows gray, but the lines
between columns is only visible on the rows with no background. Is
there a way to influence whether the row or column layouts are on top?

Regards, Johan

\bTABLE
\setupTABLE[frame=off]
\setupTABLE[c][1,2][rightframe=on]
\setupTABLE[row][even][background=color, backgroundcolor=gray]
\bTR\bTD test\eTD\bTD test\eTD\eTR
\bTR\bTD test\eTD\bTD test\eTD\eTR
\bTR\bTD test\eTD\bTD test\eTD\eTR
\eTABLE

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Rows or columns on top in TABLE

2006-03-26 Thread Johan Sandblom
Perfect! I was sure I had tried that. I was locked into a vague
hypothesis concerning drawfill and filldraw operations, when I really
ought to have looked at the source.

Thank you, Johan

2006/3/26, Peter Rolf <[EMAIL PROTECTED]>:
> Hi Johan,
>
> Johan Sandblom wrote:
> > Hello,
> >
> > the following creates a table with the even rows gray, but the lines
> > between columns is only visible on the rows with no background. Is
> > there a way to influence whether the row or column layouts are on top?
> >
> None that I know of.
>
> The lines are part of the table cell, which means that a vertical line
> between two columns is made of many small line segments. So the line is
> printed, when the cell is printed (left to right, top to bottom).
> Also when a cell is printed, it overlaps their left and top neighboar
> cell a bit. I could imagine some reasons (printing/buggy viewer) for
> this, but you better ask Hans.
>
> An easy solution: use leftframe in the next column instead (as they are
> not overdrawn) and use rightframe only for the last column.
>
> Greets, Peter
>
>
> > Regards, Johan
> >
> > \bTABLE
> > \setupTABLE[frame=off]
> > \setupTABLE[c][1,2][rightframe=on]
> > \setupTABLE[row][even][background=color, backgroundcolor=gray]
> > \bTR\bTD test\eTD\bTD test\eTD\eTR
> > \bTR\bTD test\eTD\bTD test\eTD\eTR
> > \bTR\bTD test\eTD\bTD test\eTD\eTR
> > \eTABLE
> >
> > --
> > Johan Sandblom  N8, MRC, Karolinska sjh
> > t +46851776108  17176 Stockholm
> > m +46735521477  Sweden
> > "What is wanted is not the will to believe, but the
> > will to find out, which is the exact opposite"
> > - Bertrand Russell
> > ___
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
> >
>
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] definesortkey

2006-03-30 Thread Johan Sandblom
I have a document in Swedish with an index. Merely setting
mainlanguage[sv] does not give correct sort order. I remember doing
something like

\startlanguagespecifics[sv]
\definesortkey[å][z][a][å]
\definesortkey[ä][z][b][ä]
\definesortkey[ö][z][c][ö]
\stoplanguagespecifics

but this no longer has any effect and gives

TeXUtil | unknown entry k in line k {sv}{ec}{å}{z}{a}{å}
TeXUtil | unknown entry k in line k {sv}{ec}{ä}{z}{b}{ö}
TeXUtil | unknown entry k in line k {sv}{ec}{ö}{z}{c}{ö}

from newtexexec (this is on a current windows standalone context)

What is the correct code?

Regards, Johan

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] definesortkey

2006-04-01 Thread Johan Sandblom
Testfile below. Lowercase named letters (\aring etc) work fine.
Uppercase, however, are sorted under the letter they resemble (A, O).
Inputting the letter directly (å,ä,ö) make them be indexed before the
start of the alphabetized index, not even under a, o.

Regards, Johan

\mainlanguage[sv] \readfile{sort-ini}{}{}
\starttext
a\index{a}
z\index{z}
å\index{å}
ä\index{ä}
ö\index{ö}
\aring\index{\aring}
\adiaeresis\index{\adiaeresis}
\odiaeresis\index{\odiaeresis}
A\index{A}
Å\index{Å}
Ä\index{Ä}
Ö\index{Ö}
\Aring\index{\Aring}
\Adiaeresis\index{\Adiaeresis}
\Odiaeresis\index{\Odiaeresis}

\placeindex

\stoptext


2006/3/31, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > I have a document in Swedish with an index. Merely setting
> > mainlanguage[sv] does not give correct sort order. I remember doing
> > something like
> >
> > \startlanguagespecifics[sv]
> > \definesortkey[�][z][a][�]
> > \definesortkey[�][z][b][�]
> > \definesortkey[�][z][c][�]
> > \stoplanguagespecifics
> >
> > but this no longer has any effect and gives
> >
> > TeXUtil | unknown entry k in line k {sv}{ec}{�}{z}{a}{�}
> > TeXUtil | unknown entry k in line k {sv}{ec}{�}{z}{b}{�}
> > TeXUtil | unknown entry k in line k {sv}{ec}{�}{z}{c}{�}
> >
> > from newtexexec (this is on a current windows standalone context)
> >
> > What is the correct code?
> >
> take a look in sort-ini and sort-def to see how it's done nowadasys
>
> then make a sample file so that we can test
>
> Hans
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
>
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] sorting, again

2006-04-08 Thread Johan Sandblom
When the following test snippet

\mainlanguage[sv]

\starttext
a\index{a}
z\index{z}z\index{z+ä}
å\index{å}å\index{å+b}
ä\index{ä}
ö\index{ö}
A\index{A}
Z\index{Z}
Å\index{Å}
Ä\index{Ä}
Ö\index{Ö}

\placeindex

\stoptext

is processed with
cont-tmf.zip from 2006-04-07 12.29
and justtex.zip and mswintex.zip from 13.23
a bad index is produced.The Swedish letters are listed as ... and the
sublevel entries are just listed as they are in the input. It worked
in the beta. What am I doing wrong?

Regards, Johan

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \bTABLE[split=repeat] and doubling of horizontal lines

2006-04-08 Thread Johan Sandblom
The snippet below makes a table with horizontal gaps between cells
that shows up as doubling of lines (and gaps in the vertical lines).
It only happens if fontsize is 6pt or less and split=repeat. I realize
the bodyfontsize is rather small but I have a document where I want
it. Antykwa Poltawskiego is remarkably readable even at that size.

Regards, Johan

\setuppapersize[A6][A6]
\setupbodyfont[6pt]

\starttext
\bTABLE[split=repeat]
\bTR\bTD aa\eTD
\bTD aa\eTD
\bTD aa\eTD
\bTD aa\eTD\eTR
\bTR\bTD aa\eTD
\bTD aa\eTD
\bTD aa\eTD
\bTD aa\eTD\eTR
\eTABLE

\stoptext

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] sorting, again

2006-04-08 Thread Johan Sandblom
2006/4/8, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > When the following test snippet
> >
> > \mainlanguage[sv]
> >
> > \starttext
> > a\index{a}
> > z\index{z}z\index{z+�}
> > �\index{�}�\index{�+b}
> > �\index{�}
> > �\index{�}
> > A\index{A}
> > Z\index{Z}
> > �\index{�}
> > �\index{�}
> > �\index{�}
> >
> > \placeindex
> >
> > \stoptext
> >
> >
> There's a typo in the texutil.rb class; tonights alpha release should
> work ok (i'll make that current once we're sure of what extra regimes to
> add)

Yes, works perfectly! Thanks.
>
> btw, we need to collect such sorting examples in the new context test suite, 
> maybe someone wants to volunteer for that aspect

I have no idea what that task might entail but wouldn't mind
contributing if I can

Regards, Johan


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] metapost background

2006-04-09 Thread Johan Sandblom
If the following is run with newtexexec, the text background on the
first page is black. On live.contextgarden.net it works ok. Another
candidate for the test suite?

\setupcolors[state=start]
\definecolor[red][r=1]
\definecolor[trwhite][s=1, t=.5, a=1]
\setupbackgrounds[state=repeat]
\defineoverlay[pagebg][\useMPgraphic{pagebg}]
\setupbackgrounds[page][background=pagebg]
\startuseMPgraphic{pagebg}
StartPage ;
fill Page withcolor \MPcolor{red} ;
fill Field[Text][Text] withcolor \MPcolor{trwhite} ;
StopPage ;
\stopuseMPgraphic

\starttext

\dorecurse{10}{\input tufte}

\stoptext

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] sorting, again

2006-04-09 Thread Johan Sandblom
I'd be happy to help with this endeavour.

Regards, Johan

2006/4/9, Taco Hoekwater <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> >
> >>btw, we need to collect such sorting examples in the new context test
> > suite, maybe someone wants to volunteer for that aspect
> >
> > I have no idea what that task might entail but wouldn't mind
> > contributing if I can
>
> We now have a project that strives to create a regression test
> for context distributions. I am writing a homepage right now (wiki),
> but the short version is: we need small test files so that we can
> check if a future releases still produces the same output.
>
> Greetings, Taco
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metapost background

2006-04-09 Thread Johan Sandblom
How does one use the old texexec in the standalone windows version? I tried with

texmfstart texexec.pl

and that looks like the old texexec output but the resulting pdf is
equally defective.

Regards, Johan

2006/4/9, Taco Hoekwater <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > Is there a workaround I can use? I need it for a presentation this
> > week. I can't use live since I have my own fonts.
>
> Either start your document with  \runMPgraphicsfalse,
> or use old texexec. Both solutions work  OK here.
>
> Taco
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] sorting, again

2006-04-09 Thread Johan Sandblom
Is the site for the test suite open? Where is it?

Johan

2006/4/9, Mojca Miklavec <[EMAIL PROTECTED]>:
> On 4/8/06, Hans Hagen wrote:
> > btw, we need to collect such sorting examples in the new context test 
> > suite, maybe someone wants to volunteer for that aspect
>
> What are the guidelines for naming the test files?
>
> I saw the tests which are specific for testing single tex files, but
> where should "sorting tests" go? I would create some king of "logical"
> structure as well in this case (Language -> Sorting, Language ->
> Encodings, Language -> Labels, ... Math -> MathML -> UTF, ... Fonts ->
> Typescripts, Fonts -> Public Fonts -> LM, ...) since most test files,
> but I would like to hear Taco's opinion first before starting to mess
> up everything (or perhaps there should be some little brainstorming
> for creating such a structure).
>
> Mojca
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metapost background

2006-04-10 Thread Johan Sandblom
Yes, I have increased the save size from 5000 to 15000 for a document
with random backgrounds.

Johan

2006/4/10, Taco Hoekwater <[EMAIL PROTECTED]>:
> Hans Hagen wrote:
> >
> > works ok here both
> >
>
> Hi Johan,
>
> Have you changed any of the memory values in texmf.cnf recently?
> (I suddenly remember I have)
>
> Cheers,
> Taco
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Johan Sandblom
Thank you for this. I have written the following much more amateurish
emacs lisp code in order to make it easier to enter natural tables and
flowcharts. Perhaps someone may find it useful or can suggest
improvements. I also added some keybindings for them.

Johan

(defun context-insert-nattab (rows columns)
  ;; Johan Sandblom 060128
  "Insert a TABLE skeleton"
  (interactive "nNumber of rows: \nnNumber of columns: \n")
  (newline)
  (insert "\\bTABLE\n\\setupTABLE\[\]\n")
  ;; First a TABLE header
  (insert "\\bTABLEhead\n\\bTR\\bTH \\eTH\n")
  (let ((column 1))
(while (< column (- columns 1))
  (insert "\\bTH \\eTH\n")
  (setq column (1+ column
  (insert "\\bTH \\eTH\\eTR\n\\eTABLEhead\n\\bTABLEbody\n")
  ;; The rows and columns
  (let ((row 1))
(while (<= row rows)
  (insert "\\bTR\\bTD \\eTD\n")
  ;; The let expression makes sure that each loop starts at the
  ;; right place
  (let ((column 1))
(while (< column (- columns 1))
  (insert "\\bTD \\eTD\n")
  (setq column (1+ column)))
(insert "\\bTD \\eTD\\eTR\n")
(setq row (1+ row
(insert "\\eTABLEbody\n\\eTABLE\n")))

(defun context-insert-nattab-row (columns)
 "Insert a row in a TABLE"
 (interactive "nNumber of columns: \n")
 (newline)
 (insert "\\bTR\\bTD \\eTD\n")
 (let ((column 1))
   (while (< column (- columns 1))
 (insert "\\bTD \\eTD\n")
 (setq column (1+ column)))
   (insert "\\bTD \\eTD\\eTR\n")))

(defun context-insert-nattab-column (&optional arg)
 "Insert a column in a TABLE"
 (interactive "P")
 (insert "\\bTD \\eTD")
 (indent-for-tab-command)
 (newline)
 (backward-char 5))

(defun context-insert-FLOW-cell (n)
 ;; Johan Sandblom 060128
 "Insert a FLOWchart cell"
 (interactive "nNumber of cells: \n")
 (newline)
 (let ((x 1))
   (while (<= x n)
 (insert "\\startFLOWcell\n")
 (insert "  \\name  {}\n")
 (insert "  \\location  {}\n")
 (insert "  \\shape {action}\n")
 (insert "  \\text  {}\n")
 (insert "  \\connection[rl]{}\n")
 (insert "\\stopFLOWcell\n")
 (setq x (1+ x)

(add-hook 'ConTeXt-mode-hook
 '(lambda ()
(local-set-key "\C-c\C-fc" 'context-insert-FLOW-cells)
(local-set-key "\C-cnr" 'context-insert-nattab-row)
(local-set-key "\C-cnc" 'context-insert-nattab-column)
(local-set-key "\C-cnn" 'context-insert-nattab)
(local-set-key "$" 'start-context-math)))

2006/4/20, Sanjoy Mahajan <[EMAIL PROTECTED]>:
> I wrote the following emacs lisp for my .emacs and pass it on (no
> copyright) in case others find it useful.  I used variants for a decade
> with the old tex mode, but just rewrote it for auctex and for context's
> display math syntax (which deprecates $$...$$).
>
> The purpose:
>
> 1. If you type {, [, or (, the appropriate right delimiter is inserted
>for you and the insertion point is placed between them.  So I never
>get unbalanced XYZ errors.  If you think it's a misfeature, delete
>the last three local-set-key's in the TeX-mode-hook.
>
> 2. Same feature if you type $ for inline math: you get $here>$.  The old tex-mode code would do the same on typing a second $,
>so you'd get  for tex's display math.
>
>The code below will also do that, except in context mode.
>
> 3. In context mode, typing the second $ will gobble up preceding
>whitespace and then insert
> \placeformula\startformula
> 
> \stopformula
>
> The whitespace-deletion code in start-context-math is a bit pathetic and
> any improvements are welcome.  I couldn't get re-search-backward to work
> for me because it wouldn't match greedily (so it would gobble up one
> space but not all of them, for example), so instead it just looks one
> character at a time and deletes what it should.
>
> -Sanjoy
>
>
> (defun insert-balanced (left right)
>   "Make a left, right delmiter pair and be poised to type inside of them."
>   (interactive)
>   (insert left)
>   (save-excursion
> (insert right)))
>
> (defun start-context-math ()
>   (interactive)
>   (let* ((start (max (point-min) (- (point) 1)))
>  (stop  (min (point-max) (+ (point) 1
> ; if in the middle of a $$, turn inline math into context display math
> (if (equal "$$" (buffer-substring-no-properties start stop))
> (progn
>   (delete-region start sto

Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Johan Sandblom
Strange that I did not run into these issues, I use GNU emacs as well,
version 22.0.50.1, so presumably a difference in the versions. C-c C-f
is not bound to TeX-font for me, which is odd. Sorry about the
cell/cells issue, I renamed the function just before sending it. Of
course it is ok to put it on the wiki (and thank you for doing that),
the code can be used and altered entirely according to anyone's taste.

Johan

2006/4/20, Sanjoy Mahajan <[EMAIL PROTECTED]>:
> Great.  Mojca suggested that I wikify my Emacs lisp.  It's now at
> <http://wiki.contextgarden.net/Text_editor>.  Following that method ('a
> method is a trick I use twice.' --Polya), I've put your elisp there too
> -- hope that's okay.  I removed the
>
> (local-set-key "$" 'start-context-math)
>
> so that your code can stand alone (in case people want one or the
> other).
>
> I had to change a few things at the end (some maybe because I'm using
> GNU Emacs rather than XEmacs, not sure).  Below is the diff and I've
> attached the resulting version.  Most of the trouble was in the
> keybindings:
>
> (local-set-key "\C-c\C-fc" 'context-insert-FLOW-cells)
>
> doesn't work because C-c C-f is already defined as TeX-font, so it can't
> be a prefix as well.  So I chose "\C-cnF".  Also the function name
> needed an "s" at the end.  These two:
>
> (local-set-key "\C-cnn" 'context-insert-nattab)
> (local-set-key "\C-cnr" 'context-insert-nattab-row)
>
> have a related problem, in that "\C-cn" is not a prefix yet, so "\C-cnn"
> and "\C-cnr" are not valid sequences.  So I changed the first use of
> "\C-cn" as a prefix to use define-key(), which seems to make a
> prefix-map automatically as I eventually learnt by inspecting tex.el.
> So:
>
> (define-key (current-local-map) "\C-cnF" 
> 'context-insert-FLOW-cells)
> Then the following local-set-key's work.  As I say, this is on Emacs
> 21.4, and the tricks may be different on XEmacs.
>
> -Sanjoy
>
> --- a/tables.el 2006-04-20 10:46:16.0 -0400
> +++ b/tables.el 2006-04-20 10:43:41.0 -0400
> @@ -1,5 +1,5 @@
>  (defun context-insert-nattab (rows columns)
> -  ;; Johan Sandblom 060128
> +  ;; Johan Sandblom 2006-01-28
>"Insert a TABLE skeleton"
>(interactive "nNumber of rows: \nnNumber of columns: \n")
>(newline)
> @@ -44,8 +44,8 @@
>   (newline)
>   (backward-char 5))
>
> -(defun context-insert-FLOW-cell (n)
> - ;; Johan Sandblom 060128
> +(defun context-insert-FLOW-cells (n)
> + ;; Johan Sandblom 2006-01-28
>   "Insert a FLOWchart cell"
>   (interactive "nNumber of cells: \n")
>   (newline)
> @@ -62,8 +62,7 @@
>
>  (add-hook 'ConTeXt-mode-hook
>   '(lambda ()
> -   (local-set-key "\C-c\C-fc" 'context-insert-FLOW-cells)
> +   (define-key (current-local-map) "\C-cnF" 
> 'context-insert-FLOW-cells)
> (local-set-key "\C-cnr" 'context-insert-nattab-row)
> (local-set-key "\C-cnc" 'context-insert-nattab-column)
> -   (local-set-key "\C-cnn" 'context-insert-nattab)
> -(local-set-key "$" 'start-context-math)))
> +   (local-set-key "\C-cnn" 'context-insert-nattab)))
>
>
>
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] emacs lisp for context in AucTeX

2006-04-20 Thread Johan Sandblom
Yes, I have 11.55. I will adopt your suggestion to avoid updating
problems. Still, strange though, seems to be an old feature. Do you
know a convenient way of finding where these bindings are defined?
Perhaps it is a matter of order of precedence differing between the
emacs versions.

Johan

2006/4/20, Sanjoy Mahajan <[EMAIL PROTECTED]>:
> > C-c C-f is not bound to TeX-font for me, which is odd.
>
> Maybe an earlier AUCTeX?  I have 11.82 (from Debian testing/unstable).
>
> -Sanjoy
>
> `Never underestimate the evil of which men of power are capable.'
>  --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] footnotes in natural tables

2006-04-20 Thread Johan Sandblom
With the following file the footnotes are typeset on top of each
other. What am I doing wrong?

Johan

\starttext
\startlocalfootnotes[n=0, location={text, none}]
\bTABLE
\bTR \bTD Sinuit \eTD
 \bTD penicillin V \eTD
 \bTD amoxicillin, pivampicillin, cefalosporin\footnote[cef]{Ej
   cefadroxil eller cefalexin pga H infl}, doxycyklin,
 trim-sulfa \eTD \eTR
\bTR \bTD Otit \eTD
 \bTD penicillin V \eTD
 \bTD amoxicillin, pivampicillin, makrolid\footnote{Endast vid
   allergi}, cefalosporin\note[cef], trim-sulfa \eTD \eTR
\eTABLE\stoplocalfootnotes%}
\placelocalfootnotes
\stoptext

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] footnotes in natural tables

2006-04-21 Thread Johan Sandblom
I tried putting this in the testfile itself but got a complaint about
a missing \endcsname. So following some previous advice I put this in
texmf-local/tex/context/base/cont-loc.tex and rebuilt the format.
Processing the testfile did not generate an error but also no
improvement. How should I use this code?

Johan

2006/4/21, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > With the following file the footnotes are typeset on top of each
> > other. What am I doing wrong?
> >
> > Johan
> >
> > \starttext
> > \startlocalfootnotes[n=0, location={text, none}]
> > \bTABLE
> > \bTR \bTD Sinuit \eTD
> >  \bTD penicillin V \eTD
> >  \bTD amoxicillin, pivampicillin, cefalosporin\footnote[cef]{Ej
> >cefadroxil eller cefalexin pga H infl}, doxycyklin,
> >  trim-sulfa \eTD \eTR
> > \bTR \bTD Otit \eTD
> >  \bTD penicillin V \eTD
> >  \bTD amoxicillin, pivampicillin, makrolid\footnote{Endast vid
> >allergi}, cefalosporin\note[cef], trim-sulfa \eTD \eTR
> > \eTABLE\stoplocalfootnotes%}
> > \placelocalfootnotes
> > \stoptext
> >
> \def\doplacelocalnotes[#1][#2]%
>   {\bgroup
>\processnotes
>  {\dolocalsetupnotes{#1}{#2}%
>   \expanded{\doifinsetelse{\v!none}{\noteparameter\c!location}}
> \placenotesasnone\placenotesintext\localpostponednotes}%
>\egroup
>\checknotes}
>
> still not what it should do but already better
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -----
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] footnotes in natural tables

2006-04-21 Thread Johan Sandblom
No, the result is still the same. I realize I am being obtuse, but in
what way, specifically? I placed the code after the ^L after the
writestatus thing, and rebuilt the format (although perhaps that is
not necessary for cont-new?), but the footnotes still come out on top
of each other.

Johan

2006/4/21, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > I tried putting this in the testfile itself but got a complaint about
> > a missing \endcsname. So following some previous advice I put this in
> > texmf-local/tex/context/base/cont-loc.tex and rebuilt the format.
> > Processing the testfile did not generate an error but also no
> > improvement. How should I use this code?
> >
> >
> in cont-new.tex, after \unprotect
>
> (remove the cont-loc file)
>
> Hans
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Johan Sandblom
Dear expertise,

I have the following:

\definepapersize[thesis][width=169mm, height=239mm]
\setuppapersize[thesis][A4]
\setuplayout
 [location=middle, marking=on]
\setuppagenumbering
 [alternative=doublesided, location=marginedge, state=stop]

\starttext

% Title page
\startMPpage
% Some metafun
\stopMPpage

% Some text
\stoptext

The resulting pdf has a smaller first page (thesis size) while the
rest are A4 with the thesis pages place centrally. I would like to see
the title page placed on an A4 sheet as well. What am I doing wrong?

Johan



--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
2006/5/11, Aditya Mahajan <[EMAIL PROTECTED]>:
> On Wed, 10 May 2006, Johan Sandblom wrote:
>
> > Thank you, this almost works, but the title graphic (of thesis size)
> > is not centered on the A4 paper, but in the lower right corner. How
> > can I make it go to the right place?
> >
> > \definepapersize[thesis][width=169mm, height=239mm]
> > \setuppapersize[thesis][A4]
> > \starttext
> > \startMPgraphic
> > % Some metafun
> > \stopMPgraphic
> > \loadcurrentMPgraphic{possibly something should go here?}
> > \placeMPgraphic
> > % Some text
> > \stoptext
>
>
> Untested, but how about
>
> \loadcurrentMPgraphic %{width=\textwidth}
> %Try with and without textwidth
> \placefigure
>   [here]
>   {none}
>   {\placeMPgraphic}
>

Yes, I tried that; with no arguments to \loadcurrentMPgraphic the
thesis page is placed on the bottom of the A4 and not quite in the
middle (?). with width=\textwidth or \makeupwidth the result is the
same.

>
> Aditya
>
> PS: In future, also copy to the list, others may have better idea on
> how to do this.
>

Yes, I had intended to, and thought I did, but apparently I am more
trigger happy than I allow for ...

Thank you for your help, Johan


>
>
>
>
>
> >
> > Regards, Johan
> >
> > 2006/5/9, Aditya Mahajan <[EMAIL PROTECTED]>:
> >> On Tue, 9 May 2006, Johan Sandblom wrote:
> >>
> >> > Dear expertise,
> >> >
> >> > I have the following:
> >> >
> >> > \definepapersize[thesis][width=169mm, height=239mm]
> >> > \setuppapersize[thesis][A4]
> >> > \setuplayout
> >> > [location=middle, marking=on]
> >> > \setuppagenumbering
> >> > [alternative=doublesided, location=marginedge, state=stop]
> >> >
> >> > \starttext
> >> >
> >> > % Title page
> >> > \startMPpage
> >> > % Some metafun
> >> > \stopMPpage
> >> >
> >> > % Some text
> >> > \stoptext
> >> >
> >> > The resulting pdf has a smaller first page (thesis size) while the
> >> > rest are A4 with the thesis pages place centrally. I would like to see
> >> > the title page placed on an A4 sheet as well. What am I doing wrong?
> >>
> >> MPpage creates a page with dimensions equal to the bounding box of the
> >> graphic. If you want to center a MP figure on your title page, use
> >> \startMPgraphic
> >>
> >> Aditya
> >>
> >> --
> >> Aditya Mahajan, EECS Systems, University of Michigan
> >> http://www.eecs.umich.edu/~adityam || Ph: 7342624008
> >>
> >
> >
> > --
> > Johan Sandblom  N8, MRC, Karolinska sjh
> > t +46851776108  17176 Stockholm
> > m +46735521477  Sweden
> > "What is wanted is not the will to believe, but the
> > will to find out, which is the exact opposite"
> > - Bertrand Russell
> >
> >
> >
>
> --
> Aditya Mahajan, EECS Systems, University of Michigan
> http://www.eecs.umich.edu/~adityam || Ph: 7342624008
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
2006/5/11, Hans Hagen <[EMAIL PROTECTED]>:
> \definepapersize[thesis][width=169mm, height=239mm]
> \setuppapersize[thesis][A4]
> \definelayer[page][width=\paperwidth,height=\paperheight]
>
> \starttext
> \startTEXpage
> \setlayer
>   [page]
>   [preset=lefttop,x=3cm,y=4cm]
>   {\startMPcode
>   fill fullcircle scaled 10cm;
>\stopMPcode}
> \tightlayer[page]
> \stopTEXpage
> \stoptext

This works if I change \paperwidth and \paperheight to
\printpaperwidth and \printpaperheight and change the dimensions
slightly.

Thank you, Johan

>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -----
>
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Reference for the \but command

2006-05-13 Thread Johan Sandblom
It appears they are defined in

http://source.contextgarden.net/tex/context/base/core-ref.tex

slightly more than halfway down.

Regards, Johan

2006/5/13, Jean Magnan de Bornier <[EMAIL PROTECTED]>:
> Le 13 mai à 14:21:17 Peter Münster <[EMAIL PROTECTED]> écrit notamment:
>
> | On Sat, 13 May 2006, Jean Magnan de Bornier wrote:
> >
> | > Where can I find the list of all keywords recognized by the \but command
> | > to set up interaction?
> | > (Honest, I searched the manual!)
> >
> | TeXshow says, that there is only one argument: the reference
> | \but[ref]
> >
> Thanks; but let me be more precise about what I'm looking for:
> in the demo file d-en-all I see this:
>
> \startinteractionmenu[right]
>   \but [content]   contents \\
>   \but [sample]sample   \\
>   \but [PreviousJump]  back \\
>   \but [CloseDocument] exit \\
>   \vfill
> \stopinteractionmenu
>
> So I wonder, is there some place where the list of all terms like
> "PreviousJump" are defined (I suppose they are defined somewhere as I
> don't see their definition in this file)?
> thx,
> --
> Jean
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Making posters with ConTeXT

2006-05-24 Thread Johan Sandblom
Rugg, Shallice, Josephs, Dolan: Recollection and familiarity
in recognition memory: an eventrelated functional magnetic resonance
imaging study.  1999.  J Neurosci 19:3962\par
\stopbuffer

\setuppagenumbering[location=]
\setupindenting[none]



% Colors
\setupcolors[state=start, rgb=no, cmyk=yes]
\definecolor[tyellow]  [r=1,   g=1,   b=.2,  t=.3, a=1]
\definecolor[tyyellow] [r=.8,  g=.8,  b=.2,  t=.3, a=1]
\definecolor[tlightblue]   [r=.7,  g=.7,  b=1,   t=.3, a=1]
\definecolor[tlightred][r=1,   g=.7,  b=.7,  t=.3, a=1]
\definecolor[tlightgreen]  [r=.7,  g=1,   b=1,   t=.3, a=1]
\definecolor[tred] [r=1,   g=.2,  b=.2,  t=.7, a=1]
\definecolor[tbred][r=.7,  g=.15, b=0 ,  t=.7, a=1]
\definecolor[tbbred]   [r=.6,  g=.1,  b=0,   t=.7, a=1]
\definecolor[tbbbred]  [r=.5,  g=.1,  b=0,   t=.7, a=1]
\definecolor[tgreen]   [r=.2,  g=1,   b=.2,  t=.7, a=1]
\definecolor[tblue][r=.2,  g=.2,  b=1,   t=.7, a=1]
\definecolor[tgrey][s=.85,   t=.5, a=1]
\definecolor[twhite]   [s=1, t=.5, a=1]


% Backgrounds and layers
\setupbackgrounds [page] [background=pagegraphics]
\setupbackgrounds [text] [background=text]
\definelayer
   [pagegraphics]
   [x=2cm, y=2cm,
width=\paperwidth,
height=\paperheight]
\definelayer
   [text]
   [x=20mm, y=170mm,
width=801mm,
height=1029mm]

\setlayer[pagegraphics][preset=rightbottom]
%\setlayer[pagegraphics][corner={right,bottom}, location={left,top}]
{\switchtobodyfont[sans,12pt] \rotate[rotation=90]{
\tbbbred This poster was typeset with \ConTeXt\ }}

\setlayer[pagegraphics][x=20mm,y=200mm]
{\framed[frame=off,width=801mm,height=250mm,
 background=color,backgroundcolor=tbred]{}}
\setlayer[pagegraphics][x=20mm, y=440mm]
{\framed[frame=off,width=801mm,height=250mm,
 background=color,backgroundcolor=tbbred]{}}
\setlayer[pagegraphics][x=20mm, y=680mm]
{\framed[frame=off,width=801mm,height=250mm,
 background=color,backgroundcolor=tred]{}}
\setlayer[pagegraphics][x=20mm, y=920mm]
{\framed[frame=off,width=801mm,height=250mm,
  background=color,backgroundcolor=tbbred]{}}
%\setlayer[pagegraphics][x=660.8mm, y=200mm]
%{\framed[frame=off,width=160.2mm,height=94cm,
%  background=color,backgroundcolor=tred]{}}


% Fonts and shit
\enableregime[il1]
\definebodyfontenvironment[32pt]
\definebodyfontenvironment[40pt]
\definebodyfontenvironment[56pt]
%\definebodyfontenvironment[600pt]
% \definebodyfontenvironment[30pt]
% \definebodyfontenvironment[28pt]
\setupbodyfont[sansserif,32pt]



% Unless I say different ...
\setupframed[background=color,
frame=off,
align=width,
offset=15mm]

\definehead[BoxTitle][subject]
\setuphead[BoxTitle]
[textcommand=\BoxTitleCmd]
\def\BoxTitleCmd#1%
   {\framed[backgroundcolor=twhite, offset=10mm]{\blue #1}}\par
\setupcaptions[number=no]
\setupfloats[location=right]

% The title is not layered, and is placed in the ordinary manner
\starttext
%\setlayer[pagegraphics][corner={left,top}, location={right,bottom}]
\setlayer[pagegraphics][x=25mm, y=25mm]
{\externalfigure[KI][height=17cm]}
\setlayer[pagegraphics][x=20mm, y=20mm]
{\framed[backgroundcolor=tyyellow, width=183mm, height=1149mm]{}}
\framed[backgroundcolor=tyellow,
width=broad,
height=19cm,
offset=3cm,
align=left,
%bottom=\vfil,
    %top=\vfil
]
{\switchtobodyfont[56pt] \tfd\bf {\darkred Remember/know
revisited}\crlf
   \vfil % \setupinterlinespace[height=.5]
   \switchtobodyfont[40pt]
\tfa Johan Sandblom$^*$,
Håkan Fischer$^\dag$,
Lars Bäckman$^\dag$, % \blank[small] %\\
Jesper Andersson$^*$, \crlf
Karl Magnus Petersson$^*$,
Martin Ingvar$^*$\crlf
\tfxx $^*$MR Research Centre and
$^\dag$Aging Research Centre,
Karolinska Institute, S-171 76 Stockholm, Sweden}
%\showbodyfontenvironment


%
%\showlayout
%\showframe
%\showgrid
\setlayer[text] [x=-10mm, y=1030mm] {
\framed[backgroundcolor=tlightred, width=820mm] {
\tfxx \getbuffer[References]}}
\setlayer[text] [x=0mm, y=780mm] {
\framed[backgroundcolor=twhite, width=350mm] {
\tfx \getbuffer[Methods]}}
\setlayer[text] [x=420mm, y=780mm] {
\framed[backgroundcolor=twhite, width=200mm] {
\tfx \getbuffer[DataAnal]}}
\setlayer[text] [x=580mm, y=500mm] {
\framed[backgroundcolor=tw

Re: [NTG-context] Making posters with ConTeXT

2006-05-24 Thread Johan Sandblom
No doubt I am being dense, but trying the examples in m-streams.tex
after inserting
\usemodule[streams] invariably yield this error


systems : system commands are enabled
system  : module streams loaded
(./m-streams.tex
system  : module streams (line 314) already loaded
color   : system rgb is global activated
! Undefined control sequence.
l.317 \definestreamlayer
[block]
?


Johan

2006/5/24, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > This is an early version of a poster I have used. It is quite
> > non-standard but shows some options for placing things and fonts.
> >
> take a look at m-streams.tex
>
> when you use streams, you can build your poster from snippets that are 
> actually pages, i'e. you can then do most of the tricks that you normally do 
> in the mvl (page stream)
>
> Hans
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Writing a ConTeXt module for R

2006-06-06 Thread Johan Sandblom

Since I sometimes use the open-source statistics environment R
(http://www.r-project.org) as well as ConTeXt, I thought a module that
could typeset R code as well as evaluate it on the fly would be
useful. Borrowing largely without understanding but lots of trial and
eror from m-gnustep.tex, I came up with the attached. Limited testing
indicates it works, but at least one problem is apparent: the R code
snippets have one unnecessary line break to start them and two after
the end. How can I fix that? Of course, any other suggestions are also
welcome.

A recent R needs to be in the path, but given that, it seems to work
on Windows XP as well as Linux.

Regards, Johan

PS Emacs users may appreciate the following to get r-mode where appropriate:
(require 'mmm-mode)
(setq mmm-global-mode 'maybe)
(setq mmm-submode-decoration-level 2)
(mmm-add-group
'context-plus
'((context-MP
   :submode metapost-mode
   :face mmm-code-submode-face
   :front ".*start\\w*MP\\w*\\({\\w*}\\|\\[\\w*\\]\\|\\)\\W"
   :back  ".*stop\\w*MP")
  (context-R
   :submode r-mode
   :face mmm-comment-submode-face
   :front ".*startR.*\\W"
   :back  ".*stopR.*")))
(add-to-list
'mmm-mode-ext-classes-alist '(context-mode nil context-plus))

--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell


t-rweave.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Writing a ConTeXt module for R

2006-06-06 Thread Johan Sandblom
Attachment seems to have failed  I put the content of the file below.

2006/6/6, Johan Sandblom <[EMAIL PROTECTED]>:
> Since I sometimes use the open-source statistics environment R
> (http://www.r-project.org) as well as ConTeXt, I thought a module that
> could typeset R code as well as evaluate it on the fly would be
> useful. Borrowing largely without understanding but lots of trial and
> eror from m-gnustep.tex, I came up with the attached. Limited testing
> indicates it works, but at least one problem is apparent: the R code
> snippets have one unnecessary line break to start them and two after
> the end. How can I fix that? Of course, any other suggestions are also
> welcome.
>
> A recent R needs to be in the path, but given that, it seems to work
> on Windows XP as well as Linux.
>
> Regards, Johan
>
> PS Emacs users may appreciate the following to get r-mode where appropriate:
> (require 'mmm-mode)
> (setq mmm-global-mode 'maybe)
> (setq mmm-submode-decoration-level 2)
> (mmm-add-group
>  'context-plus
>  '((context-MP
> :submode metapost-mode
> :face mmm-code-submode-face
> :front ".*start\\w*MP\\w*\\({\\w*}\\|\\[\\w*\\]\\|\\)\\W"
> :back  ".*stop\\w*MP")
>(context-R
> :submode r-mode
> :face mmm-comment-submode-face
> :front ".*\\\\startR.*\\W"
> :back  ".*stopR.*")))
> (add-to-list
>  'mmm-mode-ext-classes-alist '(context-mode nil context-plus))
>
> --
> Johan Sandblom  N8, MRC, Karolinska sjh
> t +46851776108  17176 Stockholm
> m +46735521477  Sweden
> "What is wanted is not the will to believe, but the
> will to find out, which is the exact opposite"
> - Bertrand Russell
>
>
>

% Copyright Johan Sandblom, distributed and redistributable under the
% terms of the GNU Lesser General Public License.
\unprotect

\newcounter\Rnumber

% I would like to reduce this two-stage call, but then line-endings disappear
\def\startR%
  {\bgroup
   \obeylines
   \catcode`\%=\@@letter
   \catcode`\#=\@@letter
   \dostartR%
  }%

\def\dostartR#1\stopR%
  {\doglobal\increment\Rnumber%
   \letgvalue{rcs:n:\Rnumber}\Rnumber%
   \setgvalue{rcs:d:\Rnumber}{#1}%
  \edef\Rfile  {\bufferprefix R-\Rnumber}%
  \bgroup%
  \the\everyR%
  \immediate\openout\scratchwrite=\Rfile.r%
  \def\par{\rawcharacter{10}}%
  \immediate\write\scratchwrite{\getvalue{rcs:d:\Rnumber}}%
  \immediate\closeout\scratchwrite%
  \egroup%
  \startmode[*\v!first]%
  \runR%
  \stopmode
  \typeRout%
   \egroup}%

\def\startRhidden%
  {\bgroup
   \obeylines
   \catcode`\%=\@@letter
   \dostartRhidden{}}

\def\dostartRhidden#1\stopRhidden
  {\doglobal\increment\Rnumber
   \letgvalue{rcs:n:\Rnumber}\Rnumber
   \setgvalue{rcs:d:\Rnumber}{#1}%
  \edef\Rfile  {\bufferprefix R-\Rnumber}%
  \bgroup
  \the\everyR%
  \immediate\openout\scratchwrite=\Rfile.r%
  \def\par{\rawcharacter{10}}%
  \immediate\write\scratchwrite{\getvalue{rcs:d:\Rnumber}}%
  \immediate\closeout\scratchwrite%
  \egroup
  \startmode[*\v!first]%
  \runR%
  \stopmode
   \egroup}

\newtoks\everyR

\appendtoks
\obeylines
\to \everyR

% The call to R has -q in order to prevent banner, --save to make sure
% it saves the workspace after the run, --restore to make sure it
% reads any workspace from a previous session
\def\runR
 {\executesystemcommand{R -q --save --restore < \Rfile.r > \Rfile.Rout}}

\def\typeRout
  {\typefile{\Rfile.Rout}}

\protect \doifnotmode{demo}{\endinput}

\starttext

\startR
a <- "bla"
b <- "blabla"
ls()
\stopR

bla bla

\startRhidden
rm(list=ls())
save.image()
\stopRhidden

bla

\startR
ls()
ushape <- c(rexp(50), 12-rexp(50))
pdf("ushape.pdf")
par(mfrow=c(1,2))
hist(ushape)
plot(density(ushape), main="Density")
dev.off()
\stopR

\input tufte

\input knuth

\startR
x <- rnorm(900)
y <- rexp(900)
# test comment
f <- gl(9,9,900)
summary(aov(y~x+Error(f)))
library(lattice)
pdf("lattice.pdf")
xyplot(y~x|f)
dev.off()
\stopR

\placefigure[here]{}{\externalfigure[lattice]}
\placefigure[here]{}{\externalfigure[ushape]}

\input tufte

\startR
(test <- ".* []{}=?!+%#|<|>@$")
cat(test)
\stopR

\input bryson

\input knuth

\startR
a.df <- data.frame(a=1:2, b=rnorm(2))
a.df$a
testfunction <- function(a=NULL, ...) {
  for(i in 1:length(a)) {
gsub(a[[i]], "([a-r]|[A-R])", "bla")}
  print(a)}
\stopR

\stoptext

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Writing a ConTeXt module for R

2006-06-08 Thread Johan Sandblom
Thank you for your explanations, and yes I probably do need percent
signs if my test case had been more severe. Hans, with characteristic
swiftness, already sent me back a vastly improved version which I will
test as soon as I get a chance.

Johan

2006/6/7, Taco Hoekwater <[EMAIL PROTECTED]>:
>
> I do not have R installed here. but:
>
> Johan Sandblom wrote:
> >
> > % I would like to reduce this two-stage call, but then line-endings 
> > disappear
>
> This two-stage approach is required unless each statement in R is
> terminated uniquely, by something like a semicolon because then
> you could redefine the semicolon at the writing stage.
>
> > \def\startR%
> >   {\bgroup
> >\obeylines
> >\catcode`\%=\@@letter
> >\catcode`\#=\@@letter
> >\dostartR%
> >   }%
>
> Don't you need percent signs at the end of the @@letter lines?
>
> >   \stopmode
> >   \typeRout%
> >\egroup}%
>
> You can make that
>
>    \stopmode
>\egroup
>\typeRout }
>
> because \typefile doesnt need \obeylines
>
> Cheers, Taco
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Difficulties using the r module

2006-06-28 Thread Johan Sandblom
It appears R is not found. Is it on the path? Does it have the same
name on the Mac?

Regards, Johan

2006/6/28, Matthew Routley <[EMAIL PROTECTED]>:
> I spotted the announcement of the use of R in ConTeXt and was quite interested
> in trying it out. However, so far I haven't been able to get it to work. It
> appears that R is not being called by texexec and the .tmp.out are not being
> found, despite the fact that they are being produced.
>
> Are there more details on installing and using this module? I think it would
> be quite useful.
>
> Thanks for any advice,
> Matt
>
> Some details are that I am using Mac OS X 10.4.7, R-2.3.1, and ConTeXt ver:
> 2006.06.28 from gwTeX and running the sample file contained in m-r.tex.
>
> I have also tried using context live @ contextgarden.net with the same results
> as on my personal machine.
>
> Here is some output from the log file: system :
>
> module r loaded
> (/usr/local/teTeX/share/texmf.local/tex/context/base/m-r.tex)
>
> ...
>
> systems : begin file r at line 11 
> (/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex) verbatim :
> file r-r-1.tmp.out does not exist  verbatim : file r-r-2.tmp.out
> does not exist   verbatim : file r-r-4.tmp.out does not
> exist  verbatim : file r-r-5.tmp.out does not exist 
> (./r-r.tmp figures : figure ushape can not be found floatblocks : 1 placed )
>  verbatim : file r-r-6.tmp.out does not exist  (./r-r.tmp
> figures : figure lattice can not be found floatblocks : 2 placed ) 
> verbatim : file r-r-7.tmp.out does not exist
>
> ...
>
> _______
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Difficulties using the r module

2006-07-01 Thread Johan Sandblom
I can't really think why it wouldn't work then. Perhaps it is to do
with \write18 and the right of TeX to run external programs? Or maybe
R on the mac does not take the same command-line options? In that case
the output of the texexec run should be revealing. R takes more than a
second to start up so there are noticable breaks in the output after
which error messages from R appear. Btw, the reason it does not work
on contextgarden is likely that R is not installed there.

Sorry I could not be of more assistance, Johan

2006/6/30, Matthew Routley <[EMAIL PROTECTED]>:
> Johan,
>
> > It appears R is not found. Is it on the path? Does it have the same
> > name on the Mac?
>
> Yes, R is in the bath and is found in /usr/bin/R which is a link to
> /Library/Frameworks/R.framework/Resources/bin/R.
>
> Thanks for your help with this.
>
> Take care,
> Matt
>
> --
> Matthew Routley
> http://matt.routleynet.org
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Difficulties using the r module

2006-07-02 Thread Johan Sandblom
2006/7/2, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > I can't really think why it wouldn't work then. Perhaps it is to do
> > with \write18 and the right of TeX to run external programs? Or maybe
> > R on the mac does not take the same command-line options? In that case
> > the output of the texexec run should be revealing. R takes more than a
> > second to start up so there are noticable breaks in the output after
> > which error messages from R appear. Btw, the reason it does not work
> > on contextgarden is likely that R is not installed there.
> >
> one problem could be that R has this piping; i wonder why a program that
> takes a 50 meg installation does not support something --output or i
> must have missed something

I think R is most commonly used interactively in which case it is not
needed. Anyway, OS X is a unix-alike so it should work fine. It even
works on Windoze! The R MAC FAQ
http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html#Command-line-version-of-R
indicates that this approach should work.

Johan

> Hans
>
>
> --
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>      | www.pragma-pod.nl
> -
>
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Difficulties using the r module

2006-07-02 Thread Johan Sandblom
\def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space
--direct R CMD BATCH "-q --save --restore \Rfile\space \Rfile.out"}}

or some such, I do not really understand the quoting. The invocation
should change, options should not and redirectors should go away. Not
sure if this is better or worse in any way.

Johan

2006/7/2, Hans Hagen <[EMAIL PROTECTED]>:
> Olaf Mersmann wrote:
> > Hi Hans,
> >
> > * Hans Hagen <[EMAIL PROTECTED]> [060702 13:25]:
> >
> >> one problem could be that R has this piping; i wonder why a program that
> >> takes a 50 meg installation does not support something --output or i
> >> must have missed something
> >>
> >
> > R does support redirecting output to a file. Use
> >
> >   R CMD BATCH [options]  
> >
> currently we use:
>
> \def\runR {\executesystemcommand{texmfstart --ifchanged=\Rfile\space
> --direct R "-q --save --restore < \Rfile\space > \Rfile.out"}}
>
> so how should it look then?
>
> Hans
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -----
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Difficulties using the r module

2006-07-05 Thread Johan Sandblom
I think some quoting is required:

\def\runR
  {\executesystemcommand{texmfstart
  --ifchanged=\Rfile\space --direct R CMD BATCH
  "-q --save --restore \Rfile\space \Rfile.out"}}

works here, but then I am on Linux. I think eventually Mac expertise
may be required.

Johan


2006/7/5, Matthew Routley <[EMAIL PROTECTED]>:
> I can confirm that this works from the command line:
>
> R CMD BATCH -q --save --restore rsample-r-1.tmp rsample-r-1.tmp.out
>
> using the sample file from the r module. Running this command for each of the 
> r
> segments will produce the desired output. What I haven't determined is how to
> modify the r module \runR command. Simply replacing the current \runR with
>
> \def\runR {\executesystemcommand{texmfstart
>  --ifchanged=\Rfile\space --direct R CMD BATCH
>  -q --save --restore \Rfile\space \Rfile.out}}
>
> was not successful. But I'm quite unfamilier with ConTeXt at this level.
>
> As far as I can determine, the appropriate .out files are not being created,
> which the log file correctly indicates. The .tmp files are successfully 
> extracted
>  from the source file.
>
> Thanks for the help with this.
>
> Matt
>
>
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Difficulties using the r module

2006-07-05 Thread Johan Sandblom
I now discovered a side effect of using the R CMD BATCH invocation
instead of the piping. With the CMD R outputs the setting of options
in the first line and the result of proc.time at the end. Perhaps not
a problem, but it does require three more typed lines per R block.

Johan

2006/7/5, Johan Sandblom <[EMAIL PROTECTED]>:
> I think some quoting is required:
>
> \def\runR
>   {\executesystemcommand{texmfstart
>   --ifchanged=\Rfile\space --direct R CMD BATCH
>   "-q --save --restore \Rfile\space \Rfile.out"}}
>
> works here, but then I am on Linux. I think eventually Mac expertise
> may be required.
>
> Johan
>
>
> 2006/7/5, Matthew Routley <[EMAIL PROTECTED]>:
> > I can confirm that this works from the command line:
> >
> > R CMD BATCH -q --save --restore rsample-r-1.tmp rsample-r-1.tmp.out
> >
> > using the sample file from the r module. Running this command for each of 
> > the r
> > segments will produce the desired output. What I haven't determined is how 
> > to
> > modify the r module \runR command. Simply replacing the current \runR with
> >
> > \def\runR {\executesystemcommand{texmfstart
> >  --ifchanged=\Rfile\space --direct R CMD BATCH
> >  -q --save --restore \Rfile\space \Rfile.out}}
> >
> > was not successful. But I'm quite unfamilier with ConTeXt at this level.
> >
> > As far as I can determine, the appropriate .out files are not being created,
> > which the log file correctly indicates. The .tmp files are successfully 
> > extracted
> >  from the source file.
> >
> > Thanks for the help with this.
> >
> > Matt
> >
> >
> >
> > ___
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> >
>
>
> --
> Johan Sandblom  N8, MRC, Karolinska sjh
> t +46851776108  17176 Stockholm
> m +46735521477  Sweden
> "What is wanted is not the will to believe, but the
> will to find out, which is the exact opposite"
> - Bertrand Russell
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Difficulties using the r module

2006-07-05 Thread Johan Sandblom
I get no such output, either to stdout or in the log, in fact nothing
even similar. Does the "...disabled" indicate that it is not run,
possibly because of something TeX/ConTeXt-related?

Johan

2006/7/5, Matthew Routley <[EMAIL PROTECTED]>:
> Johan Sandblom  gmail.com> writes:
>
> > I think some quoting is required:
> >
> > \def\runR
> >   {\executesystemcommand{texmfstart
> >   --ifchanged=\Rfile\space --direct R CMD BATCH
> >   "-q --save --restore \Rfile\space \Rfile.out"}}
> >
> > works here, but then I am on Linux. I think eventually Mac expertise
> > may be required.
>
> Unfortunately, the quoting doesn't help. Closer inspection of the log file
> reveals lines such as:
>
> system(texmfstart --ifchanged=test-r-1.tmp --direct R CMD BATCH "-q
> --save --restore test-r-1.tmp test-r-1.tmp.out")...disabled.
>
> with both the original \runR and new, batch mode.
>
> Matt
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] slightly OT: presentation tool

2006-07-12 Thread Johan Sandblom
Looks amazing. Looking at the license it appears in fact to be free as
in speech (distributed under GPL 2 or later), which of course only
makes it more attractive!

Johan

2006/7/12, Thomas A. Schmitz <[EMAIL PROTECTED]>:
> As the subject line says, this is slightly OT, but it may be of
> interest to some. If you produce your presentations in ConTeXt and
> want to show the resulting pdf, you have to use a pdf-viewer. I just
> hate Adobe Reader with its bloat and its intrusiveness; other
> solutions (such as evince and xpdf on linux) had smaller problems as
> well. I have recently found a relatively small python solution that i
> like a lot; I hasten to add that I'm in no way affiliated with the
> developers; I just have installed it and use it a lot.
>
> It's called keyjnote; it's free (as in beer), and it offers a lot of
> nice eye-candy during presentations of pdf-files such as nice
> transitions, a sorted view that shows all slides in one window and
> lets you choose one, and the possibility to highlight parts of the
> screen with your mouse pointer. There are some disadvantages: it has
> a lot of pythonish dependencies (on OS X, I could install them via
> darwinports, but it's a lot more difficult on most linux distros), it
> needs opengl support, and a reasonably fast machine. But it costs
> nothing to just have a look at it: http://keyjnote.sourceforge.net/
> And I find that it makes presentations done in ConTeXt look even
> better! Well, if you come to Epen, you'll see yourself ;-)
>
> Best
>
> Thomas
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt, Charts, and transparency

2006-07-19 Thread Johan Sandblom
The R module (and R program) may also be worth a look for any stats
and data visualization tasks.

Johan

2006/7/18, Aditya Mahajan <[EMAIL PROTECTED]>:
> On Tue, 18 Jul 2006, Aditya Mahajan wrote:
>
> > On Sat, 15 Jul 2006, Adam Lindsay wrote:
> >
> >> Hans Hagen wrote:
> >>> Idris Samawi Hamid wrote:
> >>>> Yes, but that seems mainly geared towards flow charts, not graphical
> >>>> charts. Can m-chart do things like the example png attached at the start
> >>>> of the thread?
> >>>>
> >>> i lost that one; actually, willy egger is the most experienced chart user 
> >>> but he's on vacation
> >>
> >> It was more like a bar graph (with two sets of y-values), nothing to do
> >> with m-charts. I thought about mp-graph stuff, but I don't see how it
> >> can be (trivially) made to do that visual style.
> >
> > Have a look at http://www-math.univ-poitiers.fr/~phan/statsmac.html to
> > see if can modify them to get the visual effect that you want.
>
> There is also the ultimate reference
> http://zoonek.free.fr/LaTeX/Metapost/metapost.html Check out example
> from 285 onwards.
>
> Also, gnuplot can draw bargraphs easily. Mojca's gnuplot module is
> functional, so you can also give that a try.
>
> Aditya
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texfont error

2006-09-16 Thread Johan Sandblom
I have not used texfont in quite a while, but it seems something has
gone wrong as this was the output I got. Same result if prefixed with
texmfstart. This is debian linux and perl is

~$ perl --version

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

~$ texfont
Global symbol "$uselmencodings" requires explicit package name at
/home/johans/tex/texmf-local/scripts/context/perl/texfont.pl line 202.
Global symbol "$lm" requires explicit package name at
/home/johans/tex/texmf-local/scripts/context/perl/texfont.pl line 873.
Global symbol "$lm" requires explicit package name at
/home/johans/tex/texmf-local/scripts/context/perl/texfont.pl line 964.
Global symbol "$theencoding" requires explicit package name at
/home/johans/tex/texmf-local/scripts/context/perl/texfont.pl line 965.
Global symbol "$lm" requires explicit package name at
/home/johans/tex/texmf-local/scripts/context/perl/texfont.pl line
1042.
Global symbol "$lm" requires explicit package name at
/home/johans/tex/texmf-local/scripts/context/perl/texfont.pl line
1169.
Execution of /home/johans/tex/texmf-local/scripts/context/perl/texfont.pl
aborted due to compilation errors.

Regards, Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] problem in kpse.rb

2006-09-16 Thread Johan Sandblom
Attempting to find out why this happened on linux

~$ texmfstart ctxtools --updatecontext
CtxTools | updating
CtxTools | unable to change to

I found that line 114 of kpse.rb can be changed from

path = run("--expand-path=\\\$#{varname}") rescue ''

to

path = run("--expand-path=\$#{varname}") rescue ''

which allows it to work, that is, the line should be the same under
windows and linux.

~$ ruby --version
ruby 1.8.4 (2005-12-24) [i486-linux]

Regards, Johan
-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problem in kpse.rb

2006-09-17 Thread Johan Sandblom
Disappointingly, over here it doesn't work with two backslashes, only
with one. Possibly because there are two texmf.cnf (minimal linux
distro) which give different answers:

./texmf/web2c/texmf.cnf, which claims
% A place for local additions to a "standard" texmf tree.
% This tree is not used for local configuration maintained by
% texconfig, it uses TEXMFCONFIG below.
TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local

and
./texmf-local/web2c/texmf.cnf, which claims
TEXMFMAIN = $SELFAUTOPARENT/texmf
TEXMFLOCAL= $SELFAUTOPARENT/texmf-local
TEXMFFONTS= $SELFAUTOPARENT/texmf-fonts

Regards, Johan


2006/9/17, Sanjoy Mahajan <[EMAIL PROTECTED]>:
> > path = run("--expand-path=\\\$#{varname}") rescue ''
> >
> > to
> >
> > path = run("--expand-path=\$#{varname}") rescue ''
>
> I also ran into this (a few weeks ago on the list) and the patch I
> sent Hans after testing it on my Ubuntu Linux laptop was to use two
> backslashes:
>
>   run("--expand-path=\\$#{varname}")
>
> so that Unix sees the command as, for example,
>
>   kpsewhich --expand-path=\$TEXMFLOCAL
>
> which prevents the shell from expanding TEXMFLOCAL as a shell or
> environment variable, leaving it for kpse to find it in texmf.cnf.
> Interesting that \$ also works.  I guess the \ gets passed unchanged,
> so the $ still gets procted from the shell.
>
> By the way, the rescue '' doesn't do anything, since a failed run of
> kpsewhich doesn't throw an exception.  I think I have a patch for
> that.
>
> Hans, should I resend those patches?
>
> -Sanjoy
>
> `Never underestimate the evil of which men of power are capable.'
>  --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problem in kpse.rb

2006-09-17 Thread Johan Sandblom
Yes, that works.

Johan

2006/9/17, Taco Hoekwater <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> >>I also ran into this (a few weeks ago on the list) and the patch I
> >>sent Hans after testing it on my Ubuntu Linux laptop was to use two
> >>backslashes:
> >>
> >>  run("--expand-path=\\$#{varname}")
>
> My suggestion would be:
>
> run("--expand-path='$#{varname}'")
>
> Taco
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Separate PDF files

2006-09-20 Thread Johan Sandblom
It can easily be done with pdftk

pdftk file.pdf burst

if there is no contexty way

Johan

2006/9/20, Paul Jones <[EMAIL PROTECTED]>:
> Is there a way to have texexec output separate pdf files for each page it
> generates instead of a single pdf file?  I have looked through all of the
> post-processing commands but can not figure out how to do it from that.
>
> Thank you,
> paul
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] split natural table over columns

2006-09-26 Thread Johan Sandblom
Is it possible to make a natural table split over columns or columnsets?

For instance below I would like three cells in each column

\starttext
\startcolumns{3}
\placetable{}{
\bTABLE[split=repeat]
\dorecurse{9}{\bTR\bTD ha \eTD\eTR}
\eTABLE}
\stopcolumns
\stoptext

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] split natural table over columns

2006-09-26 Thread Johan Sandblom
Hi

> But I don't understand why you want to split a table over columns. You
> can reach this effect by using offsets (or empty columns if you use
> backgrounds or frames), beside from the (in my eyes) strange look. And
> how will you guarantee that a complete table line is horizontally
> aligned inside of columns (and pages)? Sounds like overkill to me ;)

I don't understand how you mean with offsets or empty columns, do you
have an example? I wanted the functionality for a very narrow table in
a booklet where paper economy is a great concern. It does not matter
if it is horizontally aligned, a hole at the end (though ugly) might
still save an entire page for other useful information. Of course it
is overkill, but since every strange request on this list usually
leads to a pointer to functionality implemented several years back, I
figured it couldn't hurt to ask ...

Johan

>
> Peter
>
> > For instance below I would like three cells in each column
> >
> > \starttext
> > \startcolumns{3}
> > \placetable{}{
> > \bTABLE[split=repeat]
> > \dorecurse{9}{\bTR\bTD ha \eTD\eTR}
> > \eTABLE}
> > \stopcolumns
> > \stoptext
> >
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] split natural table over columns

2006-09-27 Thread Johan Sandblom
Good point, in the actual case there were two columns, a name and a
number. The reason for using the table is align the name to the left
and the number to the right. So a more realistic example is something
like

\starttext
\bTABLE
\setupTABLE[c][1][align=right]
\setupTABLE[c][2][align=left]
\dorecurse{10}{
  \bTR\bTD foo\eTD\bTD 123\eTD\eTR
  \bTR\bTD b  \eTD\bTD 123456\eTD\eTR}
\eTABLE
\stoptext

Thank you for your interest.

Regards, Johan


2006/9/27, Peter Rolf <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > What is missing from the example that started the thread?
> >
> Nothing, but I think it would be a waste of time. Instead of a one
> column table (of this size) I would use
> \startitemize[n,columns,three] or simply change the orientation of the
> table and use column spanning (columns.pdf).
> In my eyes a one column table is the wrong approach to present such content.
>
> Peter
>
> > Johan
> >
> > 2006/9/26, Peter Rolf <[EMAIL PROTECTED]>:
> >> Hi Johan,
> >>
> >> Johan Sandblom wrote:
> >> > Hi
> >> >
> >> >> But I don't understand why you want to split a table over columns. You
> >> >> can reach this effect by using offsets (or empty columns if you use
> >> >> backgrounds or frames), beside from the (in my eyes) strange look. And
> >> >> how will you guarantee that a complete table line is horizontally
> >> >> aligned inside of columns (and pages)? Sounds like overkill to me ;)
> >> >
> >> > I don't understand how you mean with offsets or empty columns, do you
> >> > have an example? I wanted the functionality for a very narrow table in
> >> > a booklet where paper economy is a great concern. It does not matter
> >> > if it is horizontally aligned, a hole at the end (though ugly) might
> >> > still save an entire page for other useful information. Of course it
> >> > is overkill, but since every strange request on this list usually
> >> > leads to a pointer to functionality implemented several years back, I
> >> > figured it couldn't hurt to ask ...
> >> >
> >> Sorry, I have missed that your test table has only one column (really
> >> narrow). So offset and empty column are pretty useless. :)
> >> I thought there were 9 table columns, that should be split over the
> >> three page columns.
> >>
> >> So all depends on the exact size of your table. Can you make a minimal
> >> example?
> >>
> >> Greetings, Peter
> >>
> >> > Johan
> >> >
> >> >> Peter
> >> >>
> >> >>> For instance below I would like three cells in each column
> >> >>>
> >> >>> \starttext
> >> >>> \startcolumns{3}
> >> >>> \placetable{}{
> >> >>> \bTABLE[split=repeat]
> >> >>> \dorecurse{9}{\bTR\bTD ha \eTD\eTR}
> >> >>> \eTABLE}
> >> >>> \stopcolumns
> >> >>> \stoptext
> >> >>>
> >> >> ___
> >> >> ntg-context mailing list
> >> >> ntg-context@ntg.nl
> >> >> http://www.ntg.nl/mailman/listinfo/ntg-context
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )

2006-10-27 Thread Johan Sandblom
Perhaps the source could be distributed as well? I particularly like
the MetaFun graphics.

Regards, Johan

2006/10/27, M.J. Kallen <[EMAIL PROTECTED]>:
> Maybe Renaud can tell us a little more about the details of the typesetting? 
> What font did you use and what program did you use to make the plots (I 
> particularly like the fact that the font in the plots is the same as in the 
> text!), it reminds me a little of R plots, but I may be wrong... And the 
> flowcharts are made with the chart module if I'm not mistaken?
>
> All in all the thesis looks very nice!
>
> Maarten-Jan
>
> - Original Message 
> From: luigi scarso <[EMAIL PROTECTED]>
> To: mailing list for ConTeXt users 
> Sent: Friday, October 27, 2006 8:25:40 AM
> Subject: Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
>
>
> On 10/26/06, Renaud AUBIN <[EMAIL PROTECTED]> wrote:
> >
> >  Hi all,
> >
> >  Maybe some of yours (from the ConTeXt POV) can be interested by my PhD
> > dissertation and my presentation (both in french)...
> >
> >  http://www.nibua-r.org/ConTeXt/PhD/
> >
> >  The slides are made to work under linux with sh script to run mplayer or
> > custom simulations... These scripts will obviously not work without the
> > movies or my simulator binaries...
> Well, I like it.
> Is there any examples on wiki of these things (maybe I have lost some
> discussions about it)?
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Debian/texlive/context: Segfault in mpost

2006-11-08 Thread Johan Sandblom
On Debian testing/unstable with
texlive-metapost/testing uptodate 2005.dfsg.2-2
texlive-base/testing uptodate 2005.dfsg.2-3
texlive-common/testing uptodate 2005.dfsg.2-3
texlive-base-bin/testing uptodate 2005.dfsg.2-2

and the new context package from www.tug.org/texlive/Debian version
2006.08.08 the following text file processes without error but has no
graphic

\starttext
\startuseMPgraphic{test}
draw (0,0)..(1,0)..(1,1)..(1,0)..cycle scaled 5cm withcolor black ;
\stopuseMPgraphic
\useMPgraphic{test}
\stoptext

Further investigation revealed that

[EMAIL PROTECTED]:~$ mpost -progname=metafun -mem=metafun mptest-mpgraph.mp
This is MetaPost, Version 0.901 (Web2C 7.5.5)
(mptest-mpgraph.mpSegmentation fault

Mpost segfaulted, which I have never seen and have no idea how to
pursue. More details:

[EMAIL PROTECTED]:~$ mpost --version
MetaPost 0.901 (Web2C 7.5.5)
kpathsea version 3.5.5
Copyright 2005 AT&T Bell Laboratories.
Kpathsea is copyright 2005 Karl Berry and Olaf Weber.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the MetaPost copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the MetaPost source.
Primary author of MetaPost: John Hobby.
Kpathsea written by Karl Berry, Olaf Weber, and others.


[EMAIL PROTECTED]:~$ locate metafun.mem
/etc/texmf/web2c/metafun.mem
/var/lib/texmf/web2c/metafun.mem
-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Debian/texlive/context: Segfault in mpost

2006-11-08 Thread Johan Sandblom
I did. No change.

Regards, Johan

2006/11/8, Norbert Preining <[EMAIL PROTECTED]>:
> On Mit, 08 Nov 2006, Johan Sandblom wrote:
> > [EMAIL PROTECTED]:~$ locate metafun.mem
> > /etc/texmf/web2c/metafun.mem
> > /var/lib/texmf/web2c/metafun.mem
>
> The mem file in /etc/texmf/web2c seems VERY FISHY!!! Please remove it.
> Probably metapost loads a wrong metafun.mem file.
>
> Best wishes
>
> Norbert
>
> ---
> Dr. Norbert Preining <[EMAIL PROTECTED]>Università di 
> Siena
> Debian Developer <[EMAIL PROTECTED]> Debian TeX Group
> gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 
> B094
> ---
> AMERSHAM (n.)
> The sneeze which tickles but never comes. (Thought to derive from the
> Metropolitan Line tube station of the same name where the rails always
> rattle but the train never arrives.)
> --- Douglas Adams, The Meaning of Liff
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Debian/texlive/context: Segfault in mpost

2006-11-08 Thread Johan Sandblom
Hi,

2006/11/8, Tobias Burnus <[EMAIL PROTECTED]>:
> Hi,
>
> Norbert Preining wrote:
> > On Mit, 08 Nov 2006, Johan Sandblom wrote:
> >
> >> [EMAIL PROTECTED]:~$ locate metafun.mem
> >> /etc/texmf/web2c/metafun.mem
> >> /var/lib/texmf/web2c/metafun.mem
> >>
> > The mem file in /etc/texmf/web2c seems VERY FISHY!!! Please remove it.
> > Probably metapost loads a wrong metafun.mem file.
> >
> Not necessarily. One might actually be a symbolic link to the other.
> Try the following to check this
>   ls -l /etc/texmf/web2c/metafun.mem /var/lib/texmf/web2c/metafun.mem
> and just to make sure also:
>  ls -ld /etc/texmf/web2c /var/lib/texmf/web2c

They were not links. No idea where they came from. Removing them did
not solve anything.

> The file used by TeX can actually found using:
>kpsewhich metafun.mem
> and gives here:
>   /var/lib/texmf/web2c/metafun.mem

[EMAIL PROTECTED]:~$ kpsewhich metafun.mem
/var/lib/texmf/web2c/metafun.mem

Regards, Johan

>
> Tobias
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Debian/texlive/context: Segfault in mpost

2006-11-08 Thread Johan Sandblom
Hi,

2006/11/8, Norbert Preining <[EMAIL PROTECTED]>:
> On Mit, 08 Nov 2006, Johan Sandblom wrote:
> > texlive-metapost/testing uptodate 2005.dfsg.2-2
> > texlive-base/testing uptodate 2005.dfsg.2-3
> > texlive-common/testing uptodate 2005.dfsg.2-3
> > texlive-base-bin/testing uptodate 2005.dfsg.2-2
> >
> > and the new context package from www.tug.org/texlive/Debian version
> > 2006.08.08 the following text file processes without error but has no
> > graphic
>
> Strange enough, on my computer I don't see this problem. The file
> contains the graphics.
>
> > [EMAIL PROTECTED]:~$ mpost -progname=metafun -mem=metafun mptest-mpgraph.mp
> > This is MetaPost, Version 0.901 (Web2C 7.5.5)
> > (mptest-mpgraph.mpSegmentation fault
>
> > [EMAIL PROTECTED]:~$ locate metafun.mem
> > /etc/texmf/web2c/metafun.mem
> > /var/lib/texmf/web2c/metafun.mem
>
> Maybe some other files in /etc/texmf/web2c are interfering. metapost
> pool files would be an idea. Can you send me the list of files in
> /etc/texmf/web2c?
>
> I have thee ONLY mktex.cnf!!!
>

There were several other files, among them a highly suspicious
plain.mem. However, removing all of them, and reinstalling the context
debian package (and thereby rebuilding the formats) did not solve the
problem. No new files ended up in /etc/texmf/web2c.

>
> Best wishes
>
> Norbert
>
> ---
> Dr. Norbert Preining <[EMAIL PROTECTED]>Università di 
> Siena
> Debian Developer <[EMAIL PROTECTED]> Debian TeX Group
> gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 
> B094
> ---
> DUNGENESS (n.)
> The uneasy feeling that the plastic handles of the overloaded
> supermarket carrier bag you are carrying are getting steadily longer.
> --- Douglas Adams, The Meaning of Liff
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Debian/texlive/context: Segfault in mpost

2006-11-08 Thread Johan Sandblom
2006/11/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> On Wed, Nov 08, 2006 at 07:01:00PM +0100, Johan Sandblom wrote:
> > I did. No change.
>
> I suspect this is 'the' mismatched array bug in web2c.
>
> If you have both main_memory.mpost and|or main_memory.metafun
> in your texmf.cnf, and they are not the same value(s), then you
> can get segfaults (as well as various other bugs).

No, that does not appear to be it:

[EMAIL PROTECTED]:/etc/texmf# grep main_memory `kpsewhich texmf.cnf`
% main_memory.hugetex = 2000
% main_memory is relevant only to initex, extra_mem_* only to non-ini.
% Thus, have to redump the .fmt file after changing main_memory; to add
main_memory = 100 % words of inimemory available; also applies to inimf&mp
main_memory.context = 150
main_memory.mpost = 150
main_memory.lambda = 220

> It is hard to be more verbose right now because my connection is
> awful, but there should be some more info on this in the
> mailinglist archive.
>
>
> Greetings, Taco
>
>
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Debian/texlive/context: Segfault in mpost

2006-11-08 Thread Johan Sandblom
It was the crucial clue, however, since I found

/usr/share/texmf-texlive/web2c/texmf.cnf

and removed it, which solved the problem!

Thank you all, Johan Sandblom

2006/11/8, Johan Sandblom <[EMAIL PROTECTED]>:
> 2006/11/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> > On Wed, Nov 08, 2006 at 07:01:00PM +0100, Johan Sandblom wrote:
> > > I did. No change.
> >
> > I suspect this is 'the' mismatched array bug in web2c.
> >
> > If you have both main_memory.mpost and|or main_memory.metafun
> > in your texmf.cnf, and they are not the same value(s), then you
> > can get segfaults (as well as various other bugs).
>
> No, that does not appear to be it:
>
> [EMAIL PROTECTED]:/etc/texmf# grep main_memory `kpsewhich texmf.cnf`
> % main_memory.hugetex = 2000
> % main_memory is relevant only to initex, extra_mem_* only to non-ini.
> % Thus, have to redump the .fmt file after changing main_memory; to add
> main_memory = 100 % words of inimemory available; also applies to inimf&mp
> main_memory.context = 150
> main_memory.mpost = 150
> main_memory.lambda = 220
>
> > It is hard to be more verbose right now because my connection is
> > awful, but there should be some more info on this in the
> > mailinglist archive.
> >
> >
> > Greetings, Taco
> >
> >
> >
>
>
> --
> Johan Sandblom  N8, MRC, Karolinska sjh
> t +46851776108  17176 Stockholm
> m +46735521477  Sweden
> "What is wanted is not the will to believe, but the
> will to find out, which is the exact opposite"
> - Bertrand Russell
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] texfont create map file

2006-11-13 Thread Johan Sandblom
I am now using the Debian context package with Debian texlive. It
works very well but some fonts need tweaking. For instance,

Zapf Chancery is in

~$ find /usr/share/texmf-texlive -name '*uzcmi8a*'
/usr/share/texmf-texlive/fonts/afm/urw/zapfchan/uzcmi8a.afm
/usr/share/texmf-texlive/fonts/type1/urw/zapfchan/uzcmi8a.pfb
/usr/share/texmf-texlive/fonts/type1/urw/zapfchan/uzcmi8a.pfm

but there are no .tfm or .vf and no map file, so my typescripts do not
work. I assume I might use texfont to fix this but with what
invocation?

Regards, Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bad interaction between listofabbreviations and interlinespace

2007-01-31 Thread Johan Sandblom
Consider the example below. It results in a list of synonyms that are
vertically misaligned with their meanings. What can I do?

Regards, Johan

This is Debian, pdftex compiled from source, but otherwise standard
texlive from testing. Last lines of texexec --check:

TeXExec | runtime: 0.397205
TeXExec | end of analysis
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfTeX Version 3.141592-1.40.1 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.1.30 int: english/english
TeXExec |
TeXExec | testing interface en
TeXExec | pdfTeX Version 3.141592-1.40.1 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.1.30 int: english/english




% Example file
\definesynonyms[abbreviation][abbreviations][\infull]
\setupsynonyms[abbreviations][criterium=all]
\setupinterlinespace[auto, big]

\starttext

\completelistofabbreviations

\abbreviation{EEG} {Electroencephalogram}
\abbreviation{ERP} {Event-Related Potentials}

\EEG, \ERP

\stoptext

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] problem with pdftex-1.40.1 and Gentium ligatures

2007-01-31 Thread Johan Sandblom

When I moved from pdftex-1.30.5-2.2 (from texlive-base-bin
2005.dfsg.2-10 on debian) to pdftex-1.40.1 suddenly ligatures in
gentium exhibited erratic behavior: they appeared correctly (or, more
accurately, the letters appeared, they did not look like a proper
ligature) on screen in xpdf and acroread but did not print (there were
just empty spaces). On windows, the fi, fl, and ff combinations made
blanks, just as on the printer. Reverting to pdftex-1.30.5-2.2
corrected the problem. Gentium is from ttf-gentium 1.02-2 on debian
and the typescript I use is below. Perhaps my poor typesetting
knowledge has lead me wrong and the lack of true ligatures is the
actual problem?

Regards, Johan


--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell


type-sil-gentium.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problem with pdftex-1.40.1 and Gentium ligatures

2007-02-01 Thread Johan Sandblom
It took a lot of searching for a minimal case, apparently there are
many levels of interaction here. The file below has blanks for fi fl
ff when compiled with pdftex-1.40.1 but not with pdftex-1.30.5. Do you
need some parts of my tex/font setup as well?

Johan

\usetypescriptfile[type-sil-gentium]
\usetypescript[my][sil-gentium]
\setupbodyfont[sil-gentium, 10pt]

\definetypeface
  [chance]
  [cg]
  [calligraphy]
  [chancery]
  [default]
  [encoding=texnansi]

\def\ChCmd#1#2{%
  \switchtobodyfont[14pt]
  \setupinterlinespace[small]
  \framed[width=15cm, align=normal, frame=off]
 {\framed[frame=off, align=middle, offset=2mm, width=.8\textwidth]{#2}
  \hfilll\switchtobodyfont[chance,30pt]
  \framed[background=color, backgroundcolor=black, width=3cm,
align=right]{\white\bf#1}}}

\setuphead
  [chapter]
  [command=\ChCmd,
header=empty,
page=right]

\starttext

\chapter[meth]{Methods for studying human brain function}

fill significantly flog flash floozy flagellation

\stoptext

2007/2/1, Taco Hoekwater <[EMAIL PROTECTED]>:
> Hi Johan,
>
> If the only change is the pdftex version, than it sounds like this
> is a pdftex bug. Any chance you can create a small standalone testfile?
>
> Best, Taco
>
> Johan Sandblom wrote:
> > When I moved from pdftex-1.30.5-2.2 (from texlive-base-bin
> > 2005.dfsg.2-10 on debian) to pdftex-1.40.1 suddenly ligatures in
> > gentium exhibited erratic behavior: they appeared correctly (or, more
> > accurately, the letters appeared, they did not look like a proper
> > ligature) on screen in xpdf and acroread but did not print (there were
> > just empty spaces). On windows, the fi, fl, and ff combinations made
> > blanks, just as on the printer. Reverting to pdftex-1.30.5-2.2
> > corrected the problem. Gentium is from ttf-gentium 1.02-2 on debian
> > and the typescript I use is below. Perhaps my poor typesetting
> > knowledge has lead me wrong and the lack of true ligatures is the
> > actual problem?
> >
> > Regards, Johan
> >
> >
> >
> > 
> >
> > _______
> > ntg-context mailing list
> > ntg-context@ntg.nl
> > http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problem with pdftex-1.40.1 and Gentium ligatures

2007-02-01 Thread Johan Sandblom
For the time being I simplified my design and removed the use of Zapf
Chancery, and there is no problem.

Johan

2007/2/1, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > It took a lot of searching for a minimal case, apparently there are
> > many levels of interaction here. The file below has blanks for fi fl
> > ff when compiled with pdftex-1.40.1 but not with pdftex-1.30.5. Do you
> > need some parts of my tex/font setup as well?
> >
> > Johan
> >
> > \usetypescriptfile[type-sil-gentium]
> > \usetypescript[my][sil-gentium]
> > \setupbodyfont[sil-gentium, 10pt]
> >
> > \definetypeface
> >   [chance]
> >   [cg]
> >   [calligraphy]
> >   [chancery]
> >   [default]
> >   [encoding=texnansi]
> >
> > \def\ChCmd#1#2{%
> >   \switchtobodyfont[14pt]
> >   \setupinterlinespace[small]
> >   \framed[width=15cm, align=normal, frame=off]
> >  {\framed[frame=off, align=middle, offset=2mm, 
> > width=.8\textwidth]{#2}
> >   \hfilll\switchtobodyfont[chance,30pt]
> >   \framed[background=color, backgroundcolor=black, width=3cm,
> > align=right]{\white\bf#1}}}
> >
> > \setuphead
> >   [chapter]
> >   [command=\ChCmd,
> > header=empty,
> > page=right]
> >
> > \starttext
> >
> > \chapter[meth]{Methods for studying human brain function}
> >
> > fill significantly flog flash floozy flagellation
> >
> > \stoptext
> >
> > 2007/2/1, Taco Hoekwater <[EMAIL PROTECTED]>:
> >
> >> Hi Johan,
> >>
> >> If the only change is the pdftex version, than it sounds like this
> >> is a pdftex bug. Any chance you can create a small standalone testfile?
> >>
> >> Best, Taco
> >>
> >> Johan Sandblom wrote:
> >>
> >>> When I moved from pdftex-1.30.5-2.2 (from texlive-base-bin
> >>> 2005.dfsg.2-10 on debian) to pdftex-1.40.1 suddenly ligatures in
> >>> gentium exhibited erratic behavior: they appeared correctly (or, more
> >>> accurately, the letters appeared, they did not look like a proper
> >>> ligature) on screen in xpdf and acroread but did not print (there were
> >>> just empty spaces). On windows, the fi, fl, and ff combinations made
> >>> blanks, just as on the printer. Reverting to pdftex-1.30.5-2.2
> >>> corrected the problem. Gentium is from ttf-gentium 1.02-2 on debian
> >>> and the typescript I use is below. Perhaps my poor typesetting
> >>> knowledge has lead me wrong and the lack of true ligatures is the
> >>> actual problem?
> >>>
>
> no, but it may be related to a bug in vf handling that has been resolved
> by now (new version of pdftex coming)
>
> Hans
>
> --
>
> -----
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] problem with pdftex-1.40.1 and Gentium ligatures

2007-02-02 Thread Johan Sandblom
Sorry, neglected to mention (it was long ago and I had forgotten), I
installed it with texfont

texfont --ma --in --ve=sil --co=gentium --fontroot=/usr/share/texmf
--afmpl [--en=ec]

hmm, can't remember if it was /usr/share on the end

Thank you for your efforts

Johan

2007/2/2, Taco Hoekwater <[EMAIL PROTECTED]>:
> Hi Johan,
>
> Johan Sandblom wrote:
> > For the time being I simplified my design and removed the use of Zapf
> > Chancery, and there is no problem.
>
> I am trying to work this out, but I obviously miss the gentium
> font files (metric and map files, as wel as the actual fonts).
> I can get the ttfs from the sil site, but where did the tfms
> and map files come from?
>
> Best,
> Taco
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] including pdf and using the entire page

2007-02-04 Thread Johan Sandblom
In my document I want to include a few published pdf files. I have
accomplished this with

\chapter{File 1}
\copypages[file1.pdf][scale=800] % 20 pages
\chapter{File 2}
\copypages[file1.pdf][scale=650] % 16 pages

However, the included pages obey the layout of the rest of the
document, and even if the paper in my document could allow a larger
scale, I cannot use it since some part of the included file falls off
the page.

Is it possible to include pdf files and allow each page to use the
entire page (possibly with room left for a page number)?

I have tried several versions including using makeup (but that is only
one page?), pagefigure (also only one page at a time).

Regards, Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] including pdf and using the entire page

2007-02-04 Thread Johan Sandblom
Thank you, now I have something to play with! And yes, please, I would
very much like to look at you module.

Johan

2007/2/4, Aditya Mahajan <[EMAIL PROTECTED]>:
> On Sun, 4 Feb 2007, Johan Sandblom wrote:
>
> > In my document I want to include a few published pdf files. I have
> > accomplished this with
> >
> > \chapter{File 1}
> > \copypages[file1.pdf][scale=800] % 20 pages
> > \chapter{File 2}
> > \copypages[file1.pdf][scale=650] % 16 pages
> >
> > However, the included pages obey the layout of the rest of the
> > document, and even if the paper in my document could allow a larger
> > scale, I cannot use it since some part of the included file falls off
> > the page.
>
> Try without any value for scale, that is just \copypages[file1.pdf].
>
>
> > Is it possible to include pdf files and allow each page to use the
> > entire page (possibly with room left for a page number)?
>
> See below.
>
> > I have tried several versions including using makeup (but that is only
> > one page?), pagefigure (also only one page at a time).
>
> Basically you need to find out the number of pages of the file and
> then recursively include them one by one.
>
> Recently, I wanted to print a collection of papers as a single pdf,
> with its own table of contents etc. The trouble was that some of the
> papers were printed on A4 paper and some were on letter paper. So, I
> modified the copypages macro to suit my needs. There is very little
> configuration options for the macro, it behaves the way I wanted it
> to. Maybe, you can modify it to your needs.
>
> \unprotect
>
> %D Usage \copyfullpages[filename.pdf]
>
> \def\copyfullpages
>{\dodoubleempty\docopyfullpages}
>
> \def\docopyfullpages[#1][#2]%
>{\bgroup
> \getfiguredimensions[#1]%
> \getparameters[\??ip]
>   [\c!n=\noffigurepages,
>\c!marking=\v!off,
>\c!scale=\!!thousand,
>\c!offset=\!!zeropoint,
>#2]%
> \dorecurse\@@ipn
>
> {\startTEXpage[\c!width=\paperwidth,\c!height=\paperheight,\c!offset=\@@ipoffset]
> \externalfigure
>  [#1]
>
> [\c!page=\recurselevel,\c!width=\paperwidth,\c!height=\paperheight,\c!factor=\v!max,#2]
>  \stopTEXpage
> \incrementnumber[page]}
> \egroup}
>
> \protect
>
> For page numbers, I had a separate layer, which printed on top of the
> included pdfs (some pdfs were scanned images). I can send you my
> module if you want.
>
> Aditya
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Sort bibliography by authors

2007-02-04 Thread Johan Sandblom
But how does one make an edited book be sorted by editors in the same list?

Johan

2007/2/4, Aditya Mahajan <[EMAIL PROTECTED]>:
> On Sun, 4 Feb 2007, Taco Hoekwater wrote:
>
> > Sanjoy Mahajan wrote:
> >>>> Is it possible to sort by the bibliography list by authors? The manual
> >>>> says that sorttype=cite|bib?
> >>>
> >>> No, because there is no reasonable way to do alphabetic sorting
> >>> in TeX.
> >>
> >>
> >> Perhaps I will reveal my own fundamental confusion about bibtex but:
> >>
> >> What about letting bibtex (the C program) do the miserable work of
> >> alphabetic sorting?  Then ConTeXt could typeset (the necessary subset
> >> of) bib items in that order.
> >
> > That functionality is there already \setupbibtex[sort=author]
>
> Ah, that is exactly what I wanted. I misunderstood
> \setuppublications[sorttype=bib]. I thought that it will sort
> according to the bib file, when it actually sorts according to the bbl
> file. So
>
> \setupbibtex[sort=author]
> \setuppublications[sorttype=bib]
>
> gives a bibliography sorted by author.
>
> Thanks,
> Aditya
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bad interaction between listofabbreviations and interlinespace

2007-02-07 Thread Johan Sandblom
Sorry to be a pest, but does anyone have an idea on this?

Johan

Consider the example below. It results in a list of synonyms that are
vertically misaligned with their meanings. What can I do?

Regards, Johan

% Example file
\definesynonyms[abbreviation][abbreviations][\infull]
\setupsynonyms[abbreviations][criterium=all]
\setupinterlinespace[auto, big]

\starttext

\completelistofabbreviations

\abbreviation{EEG} {Electroencephalogram}
\abbreviation{ERP} {Event-Related Potentials}

\EEG, \ERP

\stoptext


This is Debian, pdftex compiled from source, but otherwise standard
texlive from testing. Last lines of texexec --check:

TeXExec | runtime: 0.397205
TeXExec | end of analysis
TeXExec |
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD
TeXExec |
TeXExec | testing interface en
TeXExec | pdfTeX Version 3.141592-1.40.2 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.2.3 int: english/english
TeXExec |
TeXExec | testing interface en
TeXExec | pdfTeX Version 3.141592-1.40.2 (Web2C 7.5.6)
TeXExec | ConTeXt ver: 2007.01.23 13:32 MKII fmt: 2007.2.3 int: english/english





--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bad interaction between listofabbreviations and interlinespace

2007-02-08 Thread Johan Sandblom
Thank you. It does not appear to break anything in my document, so I am happy.

Johan

2007/2/8, Taco Hoekwater <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > Sorry to be a pest, but does anyone have an idea on this?
> >
> > Johan
> >
> > Consider the example below. It results in a list of synonyms that are
> > vertically misaligned with their meanings. What can I do?
>
> > Regards, Johan
> >
> > % Example file
> > \definesynonyms[abbreviation][abbreviations][\infull]
> > \setupsynonyms[abbreviations][criterium=all]
> > \setupinterlinespace[auto, big]
> >
> > \starttext
> >
> > \completelistofabbreviations
> >
> > \abbreviation{EEG} {Electroencephalogram}
> > \abbreviation{ERP} {Event-Related Potentials}
> >
> > \EEG, \ERP
> >
> > \stoptext
>
> I've narrowed the problem down to one of the internal macros. With this:
>
>\unprotect
>\bgroup
>\def\@@makedescriptionpurebox #1{}
>\completelistofabbreviations
>\egroup
>\protect
>
> the abbreviation list looks ok to me.
>
> However, that is a quick hack that fixes the abbreviations only, at the
> expense of breaking (lots) other stuff. I'll convert this message to
> a bug tracker item.
>
> Best, Taco
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] edge+text figure

2007-02-13 Thread Johan Sandblom
With the help of details.pdf, I have managed to define edgefigures
that use the margin and goes into the text and if it is wide enough
(criterium=xxx) becomes a normal figure. Is it possible to make an
even wider figure use both the textwidth and the margin? I have tried
to illustrate what I want below, a figure is placed as f1 until
criterium is met, then it is placed like f2, and I would like to know
how to achieve f3. It is not necessary that it is called the same
thing and automatic, they are easily identified before. Regards, Johan


   
    f2f2f2
f1f1 a  f2f2f2
f1f1 a 
   

   
f3f3f3f3f3 
f3f3f3f3f3 
   
   

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] debian tikz module

2007-02-23 Thread Johan Sandblom

With texlive and pgf (which contains tikz) from testing and latest
context (2007.01.23-3) from unstable, the tikz module is found, but
still it does not work. Log attached.


2007/2/22, Aditya Mahajan <[EMAIL PROTECTED]>:

On Thu, 22 Feb 2007, plink wrote:

> Hi,
>
> when testing the small example from the tikz manual, I got this
> ... module tikz not found

You need to install the tikz module. Download tikz from the
sourceforge website or CTAN, and unzip it in a temporary directory.
Then you need to correct the directory structure to conform to TDS.
There are some instructions in the tikz manual.

You will also need to install xkeyval, in case your installation does
not have it.

> error, texexec stopping with undefined \tikzstyle.

Since tikz module is not found, these will be missing.

> On a fresh debian installation, that is.

ConTeXt compatibility was added recently (4-5 months ago). I do not
know whether debian stable has it or not. Maybe first you should try
to update the tex installation using debian methods (I do not know
those).

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context




--
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
This is pdfTeX, Version 3.141592-1.40.2 (Web2C 7.5.6) (format=cont-en 2007.2.23)  23 FEB 2007 11:36
entering extended mode
\write18 enabled.
 (/usr/share/texmf/web2c/natural.tcx)
**tikztest.tex emergencyend
(./tikztest.tex

ConTeXt  ver: 2007.01.23 13:32 MKII  fmt: 2007.2.23  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
\boislevel=\count210
(/usr/share/texmf/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(/usr/share/texmf/tex/context/user/cont-sys.tex
system  : module plus loaded
(/usr/share/texmf/tex/context/base/m-plus.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex
nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3
 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi
:texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec-
>13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded
specials: tex,postscript,rokicki loaded
\openout3 = `tikztest.tui'.

system  : tikztest.top loaded
(./tikztest.top
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
\everygoto=\toks326
\PDFsymbolbox=\box157
\everyPDFxform=\toks327

(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
\everyPDFximage=\toks328
\PDFcurrenttransparency=\count211
)
specials: fdf,tpd loaded
)
\openout0 = `tikztest-mpgraph.mp'.

\openout0 = `mpgraph.mp'.


systems : system commands are enabled
system  : module tikz loaded
(/usr/share/texmf/tex/plain/pgf/frontendlayer/tikz.tex
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.tex
[EMAIL PROTECTED]
[EMAIL PROTECTED]

2005/08/12 v2.5d key=value parser (HA)
(/usr/share/texmf-texlive/tex/latex/xkeyval/xkvtxhdr.tex
2005/02/22 v1.1 xkeyval TeX header (HA))
(/usr/share/texmf-texlive/tex/latex/xkeyval/keyval.tex))
(/usr/share/texmf/tex/plain/pgf/basiclayer/pgf.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex
Loading package pgfrcs version 2006/10/11 v1.09 (rcs-revision 1.12).
)
Loading package pgf version 2006/10/11  (rcs-revision 1.5).

(/usr/share/texmf/tex/plain/pgf/basiclayer/pgfcore.tex
(/usr/share/texmf/tex/plain/pgf/systemlayer/pgfsys.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex)
(/usr/share/texmf/tex/generic/pgf/utilities/pgf-latex-e

Re: [NTG-context] debian tikz module

2007-02-23 Thread Johan Sandblom
It reports nothing, which is disturbing since

locate t-tikz.tex gives
/usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex

I suppose this indicates some change is needed in texmf.cnf?

Changing \usemodule[tikz] to \usemodule[t][tikz] did not help.

Johan

2007/2/23, Aditya Mahajan <[EMAIL PROTECTED]>:
> On Fri, 23 Feb 2007, Johan Sandblom wrote:
>
> > With texlive and pgf (which contains tikz) from testing and latest
> > context (2007.01.23-3) from unstable, the tikz module is found, but
> > still it does not work. Log attached.
>
> Your log file says
>
> system  : module tikz loaded
> (/usr/share/texmf/tex/plain/pgf/frontendlayer/tikz.tex
>
> which means that it is finding tikz.tex (plain support) rather than
> t-tikz.tex (context support)
>
> On my system (Windows+mswincontext) I get
>
> system  : module tikz loaded
> (e:/isoimage/usr/local/context/tex/texmf-project/tex/context/pgf/frontendlayer
> t-tikz.tex
>
> followed by loading of a lot of files under tex/context/pgf...
>
> What does
>   kpsewhich t-tikz.tex
> give on your system. If it is not found, it may mean that either pgf
> is not uptodate or not installed correctly.
>
> Aditya
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] debian tikz module

2007-02-26 Thread Johan Sandblom
It appears to be fixed in 1.10, no?

Johan

2007/2/26, Frank Küster <[EMAIL PROTECTED]>:
> Ohura-san,
>
> any plans to fix this bug?  It was again noticed on the ConTeXt mailing
> list; in Debian, tikz.tex is found earlier than t-tikz.tex, and
> therefore there's no tikz support for ConTeXt.
>
> Ralf Stubner <[EMAIL PROTECTED]> wrote:
>
> > Frank Küster wrote:
> >
> >> (517)[21:48:[EMAIL PROTECTED]:~$ kpsewhich --progname=context t-tikz.tex
> >> (518)[21:48:[EMAIL PROTECTED]:~$ ls
> >> /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex
> >> /usr/share/texmf/context/pgf/frontendlayer/t-tikz.tex
> >   ^ shouldn't there be a 'tex' path component?
> >
> > Then it would be in the serch path for ConTeXt.
>
> (or rather, it would be before anything in tex/context, tex/plain and
> tex/generic, and no longer at random order with respect to other things
> in the whole tree; TEXMF//) is also included.
>
> I didn't notice the missing component.  That is bug #394613 in pgf.
>
>
> Regards, Frank
> --
> Dr. Frank Küster
> Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. 
> Zürich
> Debian Developer (teTeX/TeXLive)
>
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] vertical interactionbar?

2007-03-08 Thread Johan Sandblom
I am trying to make a presentation with a progress bar. I want it
along the right edge of the screen. I remember seeing something like
that but cannot find it now, and all the alternatives for
interactionbar seem to require a horizontal one.

How can I make a vertical progress bar?

Regards, Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] vertical interactionbar?

2007-03-12 Thread Johan Sandblom
ah

embarrassingly easy

2007/3/11, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > I am trying to make a presentation with a progress bar. I want it
> > along the right edge of the screen. I remember seeing something like
> > that but cannot find it now, and all the alternatives for
> > interactionbar seem to require a horizontal one.
> >
> > How can I make a vertical progress bar?
> >
> rotate a horizontal one -)
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [OT] dblatex

2007-05-29 Thread Johan Sandblom
2007/5/30, luigi scarso <[EMAIL PROTECTED]>:
> > Not really stopped, rather dormant. The main reasons are:
> > - Context moves so much, and my system is so screwed up, that I cannot
> > update to a recent context release.
> > - There are very few users interested by dbcontext and then few bug
> > reports or update demands.
> > - There are some big fishes asking for latex solutions (gimp, kde docs).
> > - Few users are ready to switch from latex to context, at least because of
> > install troubles and dependencies.
> > - I can hardly convince people to use context if the context version
> > suggested in the release note is not available from context site (it was
> > before the foundry museum).
> >
> > I still think context overclasses latex, but its systematic refactoring
> > and use of emergent/latest software have their drawbacks, for end users,
> > but for tools depending on it too.
> >
> > But I believe that with the new context versioning scheme, the debian and
> > Peter Munster packaging efforts, it can become more popular. Of course, I
> > need to update my machine too ;-)
> >
> Thank you very much.
>
> --
> luigi
> 
> If your question is of interest to others as well, please add an entry
> to the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://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  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>


-- 
Johan Sandblom, MD PhD
  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Weird Problem

2007-07-19 Thread Johan Sandblom
Looks like a typo. A

}

is missing on line 15

Johan

2007/7/19, Alex K <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I'm a complete newbie to ConTeXt (aka recent convert from a GUI world and
> WYSIWYG typesetting), so please forgive my ignorance. :) I'm having some
> problems typesetting a simple practice document that used to compile fine
> before. Recently, after modifying part of the text (not the code, which to
> the best of my knowledge appears correct, since I haven't encountered any
> errors), I can no longer see the title page, page numbers or headers, and
> paragraphs don't indent as they used to, when they did before. Again, I
> didn't change any of the code, at least AFAIK. Is this a bug, or just user
> error? Do I need to update ConTeXt? If so, how? (if you could, please
> provide step-by-step directions, as I'm a beginner to the command-line
> interface as well, I'm afraid). I'm running the Jan 2007 version of ConTeXt
> bundled with the MacTeX 2007 distribution on Mac OS 10.4.10. I've also
> provided the sample document for reference, in case that helps. A prompt
> response would be highly appreciated!
>
> Thanks in advance for your help.
>  
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on,
> when.
> ___
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
>
>
>


-- 
Johan Sandblom, MD PhD
  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] passing arguments to commands while typing

2004-07-08 Thread Johan Sandblom
While documenting some Matlab code for barely computer literates I wish to use the 
positional graphics described in the MetaFun manual. Not sure if this is possible of 
course. I am not at all successful so far since I cannot get the escaping mechanism to 
accept my code. It appears that the /hpos works just fine but the {} generate 
problems. I have tried using <<>> in all ways I could think of but haven't been lucky 
yet. Is this possible?

Minimal example:

\setuppapersize[S6][S6]
\setuptyping[option=commands]
\starttext
\starttyping
test /hpos{word}{test} test
\stoptyping
\stoptext

-- 
Johan Sandblom  N8,MRC  "Good judgment comes  
Karolinska sjh   from experience.
t +46851776108  17176 Stockholm  Experience comes
m +46735521477  Sweden   from bad judgment."


___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new beta

2005-04-14 Thread Johan Sandblom
Sorry for going off topic, but since it is a concern ...

Using a linux distribution with an intelligent package/dependencies
handling system such as Gentoo or Debian would end your updating
woes for all time. In debian testing

apt-get install inkscape

downloads and installs inkscape 0.41 and updates all dependencies 
automatically and in Gentoo

ACCEPT_KEYWORDS="~x86" emerge -ua inkscape

downloads the source of inkscape 0.41 and all required dependencies and 
compiles them (taking a lot of time of course). Without going to the 
testing distribution ("~x86") you get 0.37

Comparing the two, the debian testing distribution has never been less
than stable while gentoo testing is updated faster, but has given me trouble 
at some points.

Sorry for the noise if this is inappropriate information for this list,

Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -
From: Hans Hagen <[EMAIL PROTECTED]>
Date: Thursday, April 14, 2005 9:33 am
Subject: Re: [NTG-context] new beta

> Paul Tremblay wrote:
> 
> > Is inkscape the beast that gave you so much trouble with the glib
> > library? I know I tried to install it and gave up after I couldn't
> > install glib. 
> 
> indeed, but since i use windows as production platform i can wait 
> till i've 
> updated the linux machines; i have no idea how well inkscape 
> installs on the mac
> 
> > Why did you choose inskscape? I thought inkscape is supposed to 
> be a
> > great gui svg-editor, but I wonder if you need all of its power just
> > to do a conversion. I use batik for my conversions, which is 
> part of
> > the apache project. Of course, it is written in java, which raises
> > other problems.
> 
> indeed, i find installing java programs (sometimes bigger than tex 
> collections) 
> with this classpath stuff often troublesome (unless there is an 
> installer, which 
> is often true for gui based programs);
> 
> concerning the alternatives: batik and imagemagick are not good 
> enough (hardly 
> maintained too); i ran a sample set of some 9000 svg graphics 
> trough the 
> converter tools and it worked ok with inkscape; it was also fast; 
> btw, some 
> versions give problems (0.41 is ok, 0.40 was bugged, 0.39 ok if i 
> remember right)
> 
> (the only drawback of inkscape is the clumsy command line print 
> feature, kind of 
> piping, while just writing to a file would have been nicer)
> 
> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new beta

2005-04-14 Thread Johan Sandblom
I used RedHat five years ago but quickly got fed up having to
chase down dependencies and got Debian. Only trouble I have had
since then was when I started using recent ConTeXts and couldn't 
go with the default tetex, but texlive is easy enough to install.
I started using gentoo about a year ago on another system and 
found it largely excellent but being a source distribution it 
trades small performance gains for sometimes *very* long install
(or rather build) times. Also, there were some package/version
inconsistencies causing install failures, but these were 
resolved within a few weeks. I have used modem and adsl with 
debian, and adsl with gentoo without problem. ReiserFS on both
for a long time.

Well, back to work, thesis refuses to write itself ...

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -
From: Hans Hagen <[EMAIL PROTECTED]>
Date: Thursday, April 14, 2005 9:32 pm
Subject: Re: [NTG-context] new beta

> Johan Sandblom wrote:
> 
> >... 
> > Comparing the two, the debian testing distribution has never been 
> less> than stable while gentoo testing is updated faster, but has 
> given me trouble 
> > at some points.
> > 
> > Sorry for the noise if this is inappropriate information for this 
> list,
> no problem; here i have been using suse for years; i am considering 
> gentoo, but 
> i'm not sure about it yet; suse only ships stable releases which is 
> why updating 
>  pieces of the system is tricky; the problem is (as always) in the 
> gui part; 
> somehow the interfaces to the libs change (too) often.
> 
> (one of the reasons for choosing suse is that it is very well 
> equiped for 
> european situations (modems, adsl, etc) and shipped with state of 
> the art 
> journaling filesystems like reiser as well as raid support; that 
> time our 
> webserver came with redhat ... well, that was a real pain, esp 
> secutity updating 
> (unless one paid); suse's updating is automatic and ok)
> 
> Hans
> 
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>  | www.pragma-pod.nl
> -
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] arranging + multipage \bTABLE + transparent color = bug?

2005-04-22 Thread Johan Sandblom
Outstanding, thank you!

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -
From: Vit Zyka <[EMAIL PROTECTED]>
Date: Friday, April 22, 2005 8:25 pm
Subject: Re: [NTG-context] arranging + multipage \bTABLE + transparent color
= bug?

> luigi.scarso wrote:
> > Johan Sandblom wrote:
> > 
> >> The following code compiles flawlessly but the pdf that is 
> generated 
> >> opens with the error "Could not find the Extended Graphics State 
> named 
> >> 'Tr1'."
> 
> See the thread
> http://archive.contextgarden.net/search/[EMAIL 
> PROTECTED]:arranging,sb:pages,sb:with.html
> 
> vit
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] arranging + multipage \bTABLE + transparent color = bug?

2005-04-22 Thread Johan Sandblom
Mine is 

TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005

   texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005
   texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
   tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2C 7.5.3)
   context : ver: 2005.03.16
   cont-en : ver: 2005.03.16  fmt: 2005.4.22  mes: english

on linux

Did you compile the document with
texexec --arrange --pdf ?

The --arrange flag is necessary to get indices and tocs in arranged 
documents, which I have in the file the problem was exposed.

Johan


-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -
From: "luigi.scarso" <[EMAIL PROTECTED]>
Date: Friday, April 22, 2005 5:42 pm
Subject: Re: [NTG-context] arranging + multipage \bTABLE + transparent color    
= bug?

> Johan Sandblom wrote:
> 
> >The following code compiles flawlessly but the pdf that is 
> generated opens 
> >with the error "Could not find the Extended Graphics State named 
> 'Tr1'.">in Acrobat Reader 7 for Linux (and Windows for that 
> matter). Earlier readers
> >give less informative messages but in all cases the pdf has almost 
> entirely 
> >empty pages. If the second line is uncommented (so there is no 
> arranging) 
> >there is no problem. If the color is non-transparent, there is no 
> problem.>If the table needs less than 4 sheets to be arranged on, 
> there is no problem.
> >
> >Is this known, expected, fixable?
> >
> >Johan
> >
> >\setuppapersize [A6][A4] \setuparranging [2*4, doublesided]
> >%\setuppapersize [A6][A6]
> >\setupcolors[state=start]
> >\definecolor[tgray][s=.8, t=.5, a=1]
> >\starttext
> >\bTABLE[split=repeat, frame=off, background=color, 
> backgroundcolor=tgray]>\dorecurse{200}{\bTR\bTD 1\eTD\bTD 2\eTD\eTR}
> >\eTABLE
> >\stoptext
> >
> >  
> >
> I have made it with
> TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
> 
> texexec : TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004
> texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
> tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2C 7.5.3)
> context : ver: 2005.01.13
> cont-en : ver: 2005.01.13 fmt: 2005.3.7 mes: english
> cont-nl : ver: 2005.01.13 fmt: 2005.3.7 mes: dutch
> under linux
> and I see no problems with xpdf, acrobat5 and acrobat 7.
> 
> luigi
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] arranging + multipage \bTABLE + transparent color = bug?

2005-04-22 Thread Johan Sandblom
The following code compiles flawlessly but the pdf that is generated opens 
with the error "Could not find the Extended Graphics State named 'Tr1'."
in Acrobat Reader 7 for Linux (and Windows for that matter). Earlier readers
give less informative messages but in all cases the pdf has almost entirely 
empty pages. If the second line is uncommented (so there is no arranging) 
there is no problem. If the color is non-transparent, there is no problem.
If the table needs less than 4 sheets to be arranged on, there is no problem.

Is this known, expected, fixable?

Johan

\setuppapersize [A6][A4] \setuparranging [2*4, doublesided]
%\setuppapersize [A6][A6]
\setupcolors[state=start]
\definecolor[tgray][s=.8, t=.5, a=1]
\starttext
\bTABLE[split=repeat, frame=off, background=color, backgroundcolor=tgray]
\dorecurse{200}{\bTR\bTD 1\eTD\bTD 2\eTD\eTR}
\eTABLE
\stoptext

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \splitfloat and \bTABLE do not play well?

2005-04-25 Thread Johan Sandblom
Reading earlier messages on this list I hoped the following 
would work for natural tables as well. It does not, the table
ends up unsplit. What am I doing wrong?

\starttext
\splitfloat
   [lines=3, conversion=greek]
   {\placetable{test}}
   {\bTABLE[split=repeat]
\bTR \bTD a \eTD\bTH b \eTH\eTR
\dorecurse{50}{\bTR\bTD 1 \eTD\bTD 2\eTD\eTR}
\eTABLE}
\stoptext


-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] footnotes in multipage \bTABLE

2005-04-25 Thread Johan Sandblom
How does one get footnotes in a long natural table?

The following gives error

\starttext
\startlocalfootnotes[n=0, location={text, none}]
\bTABLE[split=repeat]
\bTR\bTD a\footnote{test} \eTD\bTD b \eTD\eTR
\dorecurse{50}{\bTR\bTD \eTD\bTD \eTD\eTR}
\eTABLE
\placelocalfootnotes
\stoplocalfootnotes

Many thanks, Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] footnotes in multipage \bTABLE

2005-04-25 Thread Johan Sandblom
Sorry, disregard this message. Something is wrong in this 
vicinity but this is not the code to nail it down.

Sorry for the noise.

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -----
From: Johan Sandblom <[EMAIL PROTECTED]>
Date: Monday, April 25, 2005 2:07 pm
Subject: [NTG-context] footnotes in multipage \bTABLE

> How does one get footnotes in a long natural table?
> 
> The following gives error
> 
> \starttext
> \startlocalfootnotes[n=0, location={text, none}]
> \bTABLE[split=repeat]
> \bTR\bTD a\footnote{test} \eTD\bTD b \eTD\eTR
> \dorecurse{50}{\bTR\bTD \eTD\bTD \eTD\eTR}
> \eTABLE
> \placelocalfootnotes
> \stoplocalfootnotes
> 
> Many thanks, Johan
> 
> -- 
> Johan Sandblom  N8, MRC, Karolinska sjh  
> t +46851776108  17176 Stockholm  
> m +46735521477  Sweden   
> "What is wanted is not the will to believe, but the 
> will to find out, which is the exact opposite" 
> -- Bertrand Russell
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \splitfloat and \bTABLE do not play well?

2005-04-26 Thread Johan Sandblom
Yes, that was my starting point. Foolishly I hoped there were similar 
facilities for natural tables. Thanks all the same.

Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -
From: Nikolai Weibull <[EMAIL PROTECTED]>
Date: Tuesday, April 26, 2005 3:11 pm
Subject: Re: [NTG-context] \splitfloat and \bTABLE do not play well?

> Johan Sandblom, April 25:
> 
> > Reading earlier messages on this list I hoped the following 
> > would work for natural tables as well. It does not, the table
> > ends up unsplit. What am I doing wrong?
> 
> I'm not sure you can use natural tables for this.  This works:
> 
> \splitfloat
>  {\placetable{Title}}
>  {\starttablehead
> \HL
> \NC \bf Column 1\NC \bf Column2 \NC\AR
> \HL
>   \stoptablehead
>   \starttabletail
> \HL
>   \stoptabletail
>   \starttables[|l|lp(25em)|]
> \NC \dots   \NC \dots   \NC\AR
> \dots
>   \stoptables}
> 
> Enjoy,
>nikolai
> 
> -- 
> Nikolai Weibull: now available free of charge at http://bitwi.se/!
> Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
> main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] no 'd' in math-eul.tex

2005-05-09 Thread Johan Sandblom
In the math-eul.tex shown in the contextgarden.net source browser
dated 2003.02.03, which is the only one I have found, the following lines 
occur

...
\definemathcharacter [c]   [nothing] [mr] ["63]
\definemathcharacter [d]   [nothing] [mr] ["65]
\definemathcharacter [e]   [nothing] [mr] ["65]
\definemathcharacter [f]   [nothing] [mr] ["66]
...

and

...
\definemathcharacter [C]   [nothing] [mr] ["43]
\definemathcharacter [D]   [nothing] [mr] ["45]
\definemathcharacter [E]   [nothing] [mr] ["45]
\definemathcharacter [F]   [nothing] [mr] ["46]
...

making 'd' and 'D' print as 'e' and 'E'. I suppose this is a
mistake? 

Regards, Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] no 'd' in math-eul.tex

2005-05-09 Thread Johan Sandblom
If 'c' and 'C' in your example are changed to
'd' and 'D', it illustrates the point. I also have
the fonts installed following your excellent guide.

Johan

-- 
Johan Sandblom  N8, MRC, Karolinska sjh  
t +46851776108  17176 Stockholm  
m +46735521477  Sweden   
"What is wanted is not the will to believe, but the 
will to find out, which is the exact opposite" 
-- Bertrand Russell

- Original Message -
From: Adam Lindsay <[EMAIL PROTECTED]>
Date: Monday, May 9, 2005 10:05 am
Subject: Re: [NTG-context] no 'd' in math-eul.tex

> Johan Sandblom said this at Mon, 9 May 2005 09:14:29 +0200:
> 
> >making 'd' and 'D' print as 'e' and 'E'. I suppose this is a
> >mistake? 
> 
> Huh? I think those hex values are correct.
> Do you have a test case that doesn't work for you? This works for 
> me (I
> have the EulerVM fonts installed):
> 
> \definetypeface[cheu][rm][serif][charter][default][encoding=ec]
> \definetypeface[cheu][mm][math][euler][euler][rscale=1.05]
> \setupbodyfont[cheu]
> 
> \starttext
> \startformula
> A + B + C = A^{B^C}
> \stopformula
> \startformula
> a + b + c = a^{b^c}
> \stopformula
> 
> \stoptext
> 
> -- 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
> Lancaster University, InfoLab21+44(0)1524/510.514
> Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >