Re: [NTG-context] Happy ConTeXt Community Day :)

2008-09-01 Thread Taco Hoekwater
Patrick Gundlach wrote:
> Hi,
> 
> thanks to all! That is really a peasant surprise!

Thanks from me as well! A good thing I checked my email.
I'll go away now (for a week only, don't worry).

Best,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Mojca Miklavec
Hello Alan,

I'm sorry for not replying earlier.

On Sat, Aug 30, 2008 at 12:16 PM, Alan Bowen wrote:
> What follows are some queries that I will be happy to write up for the wiki.
> The aim (hope?) is to develop a set of instructions for installing the
> minimals on a Mac that a Mac user without any real knowledge of unix (such
> as myself) can follow easily. (There are a number of people scattered around
> the world who help me in producing various publications; and since they too
> are not unix savvy, I need such instructions if we are to keep our
> installations functioning and up to date.)
> Once the ConTeXt minimals are installed in the Applications folder and the
> user can run
> \starttext
> Hello world!
> \stoptext
> which is where the wiki (Installation>section 1.2) currently leaves off,
> there still remain a few tasks.
> Specifically,
> (a) getting this ConTeXt installation to recognize a personal texmf
> directory

I usually put my files to texmf-local. Well, no, I actually copy
"setuptex" into "mytex" and make local modifications there, so that I
can include my own texmf trees (ugly solution). We just got a
complaint about non-existant TEXMFHOME during the conference. We took
setuptex from Hans' distribution and did not touch TEXMFHOME at all.
The problem is that Hans wanted to prevent old local files to
interefere with "standalone" tree, completely isolated from the outer
world.

We can either:
- fix setuptex, but I would like to have Hans' permission to do it
- create another "setupfriendlytex" :) and modify whatever we want there

The fix is super-easy: change
export HOMETEXMF=/nonexist
into
export HOMETEXMF=~/.texmf
(with or without the dot - up to you; MacTeX uses ~/Library/texmf or
something similar, I think, but should check)

And then add TEXMFHOME to the list:

export 
TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}'

But I need someone to tell me to do that

> (b) running the various binaries (e.g., texmfstart, ctxtools) in
> /Applications/ConTeXtMinimals from Terminal

You can create ~/.bash_profile and put one of those lines into it (I
suggest (a), but (b) would suffice):
a) . /Applications/ConTeXtMinimals/tex/setuptex
b) export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH

Then, once you start a new shell, you'll see the programs in your
shell. "/Applications/ConTeXtMinimals/tex" assumes that you have
installed your files to that folder. Change accordingly. The minimals
are not a GUI program, so I would rather put it to some other folder,
but that's up to users. (I have the files simply in my home dir.)

The main problem is that GUI programs won't see that ~/.bash_profile,
so you need to follow the slighly off rules for TeXShop where there
are indeed quite some mistakes.

Can you please send the output of
find /Applications/ConTeXtMinimals | head -n 20
I suspect that you were setting the wrong folder during download of minimals.

> (c) establishing synchronization between  PDF output and its ConTeXt source.
> Currently, it does not seem to work (with TeXShop at least)
> Note, in the latest TeXShop there is
> Added support for SyncTeX. SyncTeX is new synchronization technology by
> Jerome Laurens which is included in TeX Live 2008 (but not earlier TeX
> distributions). The technology is built directly into pdfTeX and XeTeX. In
> modern TeX distributions, most typesetting actually calls pdfetex (even if
> using latex to output a dvi file), and thus the technology is available for
> such typesetting. To use the technology, add the flag --synctex=1
> Any advice on how to do (a), (b), and (c) will be much appreciated.

You can try
texexec --passon="-synctex=1" filename
but I didn't manage to make it work - it always pointed back to
\stoptext or \page, just as it pointed to the end of minipage in
LaTeX. Apart from the fact that I wasn't sure which tool to use to
make rsync work (when I was testing, TeXShop didn't support synctex
yet, TeXWorks behaved weird, and one would need to write support for
TextMate first, but when Patrick tried it, he have up after
discovering that it didn't work anyway).

While answering you I just got a reply from Jérôme:

> The problem comes from the synctex parser.
> I made different experiments and forgot to test the latest one with context.
> I will upload the new versions soon but I am afraid the various viewers must 
> be updated.
> You will have to wait a little longer...

So sadly I need to repeat the last sentence from him ...

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
_

Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-01 Thread Mojca Miklavec
On Mon, Sep 1, 2008 at 12:30 AM, Martin Scholz wrote:
> Hi @ all,
>
> I've just installed TeXlive 2k8 on a Vista-Machine. I've updated the MK II
> to MK IV and tried to set a script with chemie-module.
> and the mainlanguage in german.
> The file has the following input:
>
> \hauptsprache [de]
> \verwendemodul [pictex, chemie]
>
> \starttext
> \subjekt{Chemie-test}
> \stellechemieein[breite=passend,oben=1500,unten=3500]
> \startchemie
> \chemie[ONE,Z0,DB1,SB3,SB7,Z7,MOV1,Z0,SB3,SB7,Z3,Z7,MOV0,SUB2,SIX,B,R6,C][C,H,C,H,H]
> \textunter{Styreen}
> \stopchemie
> \quad\quad\quad
> \startchemie
> \chemie[ONE,Z0,DB1,SB3,SB7,Z3,Z7,MOV1,Z0,SB1,SB3,Z3,MOV1,Z0,DB1,SB3,Z3,MOV1,Z0,SB3,SB3,SB7,Z3,Z7][C,H,H,C,H,C,H,C,H,H]
> \textunter{1,3-Butadieen}
> \stopchemie
> \stoptext
>
> then compiling it with texexec file.tex gives the following result:
>
> TeXExec | processing document 'file.tex'
> TeXExec | no ctx file found
> TeXExec | tex processing method: context
> TeXExec | TeX run 1
> TeXExec | writing option file file.top
> TeXExec | using randomseed 377
> TeXExec | tex engine: pdftex
> TeXExec | tex format: cont-de
> This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
>  %&-line parsing enabled.
>  (c:/texlive/2008/texmf/web2c/natural.tcx)
> (Fatal format file error; I'm stymied)
> TeXExec | runtime: 1.055

Run
texexec --make de
first and put
% interface=de
on top of your file.

After that, the document compiles here, but I was not able to figure
out what command is used for \section/\subject in German.

> when I try to compile this file with context it runs a holy time and then
> gives me the following result:
>
> language   : language en is active
> report >> utilityfile: not present
> system : cont-new loaded
> (C:/texlive/2008/texmf-dist/tex/context/base/cont-new.tex
> systems : beware: some patches loaded from cont-new.tex
> (C:/texlive/2008/texmf-dist/tex/context/base/cont-new.mkiv
> lua: used config path - C:/texlive/2008/texmf/web2c/texmf.cnf
> lua: used cache path -
> C:/Users/cyberplaque/.texlive2008/texmf-var/luatex-cache/context/3236d28ff38909cc68507fe0979fbbf0
> ) (C:/texlive/2008/texmf-dist/tex/context/base/cont-mtx.tex))
> system : cont-old loaded
> (C:/texlive/2008/texmf-dist/tex/context/base/cont-old.tex
> loading: Context Old Macros
> )
> system : cont-fil loaded
> (C:/texlive/2008/texmf-dist/tex/context/base/cont-fil.tex
> loading: Context File Synonyms
> )
> system : cont-sys.rme loaded
> (C:/texlive/2008/texmf-dist/tex/context/user/cont-sys.rme
> (C:/texlive/2008/texmf-dist/tex/context/base/type-tmf.tex)
> (C:/texlive/2008/texmf-dist/tex/context/base/type-siz.tex)
> (C:/texlive/2008/texmf-dist/tex/context/base/type-otf.tex))
> bodyfont   : 12pt rm is loaded
> specials   : tex loaded
> system : chemie-test.top loaded
> (./chemie-test.top
> specials   : loading definition file tpd
> (C:/texlive/2008/texmf-dist/tex/context/base/spec-tpd.tex
> specials   : loading definition file fdf
> (C:/texlive/2008/texmf-dist/tex/context/base/spec-fdf.tex
> (C:/texlive/2008/texmf-dist/tex/context/base/spec-fdf.mkiv))
> specials   : fdf loaded
> )
> specials   : fdf loaded
> )
> ! Undefined control sequence.
> l.1 \hauptsprache
>  [de]
> ?
> ! Emergency stop.
> l.1 \hauptsprache
>  [de]
> !  ==> Fatal error occurred, no output PDF file produced!
>

You need to run
context --make de
but it didn't work here either. I guess that you are the first user
(apart from Hans, maybe) who has ever tried using mkiv with
non-English interface, so you might need a bit of patience to get the
problems solved.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-01 Thread Martin Scholz
On 01.09.2008 08:54:14, "Wolfgang Schuster" wrote:
> regenerate the formats with "texexec --make --all"
> 
I tried so but still the same result.

> Do you generate the format for all languages with "context --make --all",
> if you did this put "% interface=de" at the first line in your document.

I also did this after the tutorial for context and MK IV in contextgarden.
It still doesn't work.
But thanks as far for your help


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-01 Thread Wolfgang Schuster
On Mon, Sep 1, 2008 at 9:33 AM, Martin Scholz <[EMAIL PROTECTED]> wrote:
> On 01.09.2008 08:54:14, "Wolfgang Schuster" wrote:
>> regenerate the formats with "texexec --make --all"
>>
> I tried so but still the same result.

Can you delete all context formats in your TeX tree, it's possible you
have a old
one that is used and the new is ignored.

What is the result from "kpsewhich cont-de.fmt" and where did ConTeXt save
the new format (you can see this in one of the last line when you
generate the format).

>> Do you generate the format for all languages with "context --make --all",
>> if you did this put "% interface=de" at the first line in your document.
>
> I also did this after the tutorial for context and MK IV in contextgarden.
> It still doesn't work.

See Mojcas mail.

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
___


Re: [NTG-context] Feature request: \newitemize or something like this

2008-09-01 Thread Wolfgang Schuster
On Wed, Aug 27, 2008 at 10:12 AM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
> On Wed, Aug 27, 2008 at 10:03 AM, Marcin Borkowski
> <[EMAIL PROTECTED]> wrote:
>> Hi there!
>>
>> I have a feature request (or a question "how to do it";)) concerning
>> itemizations.  Currently, they are much like LaTeX (say, with the
>> enumitem package).  I think this is not the best idea.  I can hardly
>> imagine using more than two levels of itemize in my documents; on the
>> other hand, I like to introduce different "kinds" of itemize on the
>> _first_ level.  Imagine I'm typesetting a paper on mathematics (which
>> I'm doing all the time;)).  I want another kind of itemize for lists of:
>> * equivalent conditions (as in: "the following are equivalent: ...");
>> * statements connected by an "or" clause (as in: "at least one of these
>>  holds: ...";
>> * statements connected by an "and" clause (as in: "assume that these
>>  conditions are satisfied: ...").
>>
>> What I usually do (in LaTeX) is to define a few environments, like
>> "equivenumerate", "orenumerate", "andenumerate" etc., and make them use
>> (a), (b), ..., (i), (ii), ..., or (1), (2), ... respectively.  This way
>> I have a clear visual clue in my papers on what's going where, and on
>> the other hand, I separate content and presentation.
>>
>> Would it be possible in ConTeXt?  If yes, how to do this?  Maybe it's
>> worth mentioning in the new manual?
>>
>> (As usual, I'll try to post the answer on the wiki when I have some
>> spare time!)
>
>
> Take a look at page 20.
>
> http://wolfgang.schuster.googlepages.com/erlangen.pdf

The source is also available: http://wolfgang.schuster.googlepages.com/baytex

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
___


Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-01 Thread Wolfgang Schuster
On Mon, Sep 1, 2008 at 9:28 AM, Mojca Miklavec
<[EMAIL PROTECTED]> wrote:
> On Mon, Sep 1, 2008 at 12:30 AM, Martin Scholz wrote:
>> Hi @ all,
>>
>> I've just installed TeXlive 2k8 on a Vista-Machine. I've updated the MK II
>> to MK IV and tried to set a script with chemie-module.
>> and the mainlanguage in german.
>> The file has the following input:
>>
>> \hauptsprache [de]
>> \verwendemodul [pictex, chemie]
>>
>> \starttext
>> \subjekt{Chemie-test}
>> \stellechemieein[breite=passend,oben=1500,unten=3500]
>> \startchemie
>> \chemie[ONE,Z0,DB1,SB3,SB7,Z7,MOV1,Z0,SB3,SB7,Z3,Z7,MOV0,SUB2,SIX,B,R6,C][C,H,C,H,H]
>> \textunter{Styreen}
>> \stopchemie
>> \quad\quad\quad
>> \startchemie
>> \chemie[ONE,Z0,DB1,SB3,SB7,Z3,Z7,MOV1,Z0,SB1,SB3,Z3,MOV1,Z0,DB1,SB3,Z3,MOV1,Z0,SB3,SB3,SB7,Z3,Z7][C,H,H,C,H,C,H,C,H,H]
>> \textunter{1,3-Butadieen}
>> \stopchemie
>> \stoptext
>>
>> then compiling it with texexec file.tex gives the following result:
>>
>> TeXExec | processing document 'file.tex'
>> TeXExec | no ctx file found
>> TeXExec | tex processing method: context
>> TeXExec | TeX run 1
>> TeXExec | writing option file file.top
>> TeXExec | using randomseed 377
>> TeXExec | tex engine: pdftex
>> TeXExec | tex format: cont-de
>> This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
>>  %&-line parsing enabled.
>>  (c:/texlive/2008/texmf/web2c/natural.tcx)
>> (Fatal format file error; I'm stymied)
>> TeXExec | runtime: 1.055
>
> Run
>texexec --make de
> first and put
> % interface=de
> on top of your file.
>
> After that, the document compiles here, but I was not able to figure
> out what command is used for \section/\subject in German.

section = absatz
subject = thema

>> when I try to compile this file with context it runs a holy time and then
>> gives me the following result:
>>
>> language   : language en is active
>> report >> utilityfile: not present
>> system : cont-new loaded
>> (C:/texlive/2008/texmf-dist/tex/context/base/cont-new.tex
>> systems : beware: some patches loaded from cont-new.tex
>> (C:/texlive/2008/texmf-dist/tex/context/base/cont-new.mkiv
>> lua: used config path - C:/texlive/2008/texmf/web2c/texmf.cnf
>> lua: used cache path -
>> C:/Users/cyberplaque/.texlive2008/texmf-var/luatex-cache/context/3236d28ff38909cc68507fe0979fbbf0
>> ) (C:/texlive/2008/texmf-dist/tex/context/base/cont-mtx.tex))
>> system : cont-old loaded
>> (C:/texlive/2008/texmf-dist/tex/context/base/cont-old.tex
>> loading: Context Old Macros
>> )
>> system : cont-fil loaded
>> (C:/texlive/2008/texmf-dist/tex/context/base/cont-fil.tex
>> loading: Context File Synonyms
>> )
>> system : cont-sys.rme loaded
>> (C:/texlive/2008/texmf-dist/tex/context/user/cont-sys.rme
>> (C:/texlive/2008/texmf-dist/tex/context/base/type-tmf.tex)
>> (C:/texlive/2008/texmf-dist/tex/context/base/type-siz.tex)
>> (C:/texlive/2008/texmf-dist/tex/context/base/type-otf.tex))
>> bodyfont   : 12pt rm is loaded
>> specials   : tex loaded
>> system : chemie-test.top loaded
>> (./chemie-test.top
>> specials   : loading definition file tpd
>> (C:/texlive/2008/texmf-dist/tex/context/base/spec-tpd.tex
>> specials   : loading definition file fdf
>> (C:/texlive/2008/texmf-dist/tex/context/base/spec-fdf.tex
>> (C:/texlive/2008/texmf-dist/tex/context/base/spec-fdf.mkiv))
>> specials   : fdf loaded
>> )
>> specials   : fdf loaded
>> )
>> ! Undefined control sequence.
>> l.1 \hauptsprache
>>  [de]
>> ?
>> ! Emergency stop.
>> l.1 \hauptsprache
>>  [de]
>> !  ==> Fatal error occurred, no output PDF file produced!
>>
>
> You need to run
>context --make de
> but it didn't work here either. I guess that you are the first user
> (apart from Hans, maybe) who has ever tried using mkiv with
> non-English interface, so you might need a bit of patience to get the
> problems solved.
>
> Mojca

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
___


Re: [NTG-context] Is there some ways to group sections in a given chapter together in toc?

2008-09-01 Thread Hans Hagen
Yue Wang wrote:
> Hi, Hans:
> 
> I am designing a Table Of Contents now. Here is what it should like:
> 
> Table of Contents (with zapfino font, of course~)
> 
> chapter 1  chapter2  chapter3
> sec1.1   sec2.1 sec 3.1
> sec1.2   sec2.1 sec 3.2
> sec1.3   sec 3.3
> sec1.4
> 
> I think I should create a frame for each chapter and its sections.
> However, whether the inbetween key or the command key is hard to add a
> command before chapter1 (use before key) and after sec1.4 (cannot use
> after key for chapter 1) at the same time to group them all together.
> 
> Is this design possible in ConTeXt? How can I do this? Thank you!

best direct such questions to the list

\starttext

\placelist[section][criterium=chapter,number=2]

\chapter{first}
\section{a}
\section{b}
\chapter{second}
\section{c}
\section{d}

\stoptext


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


Re: [NTG-context] headers and footers

2008-09-01 Thread Alan Stone
I'm asking questions (1) and (3) since the main manual was written in 2001.

Best,
Alan

On Fri, Aug 29, 2008 at 5:06 PM, Alan Stone
<[EMAIL PROTECTED]>wrote:

> (1) The main manual mentions (bottom of pg 78) "setting the state is done
> for the whole header" and (bottom of page 79) "the keys state, before and
> after work on all parts of the pagebody, main text, margins and edges.
>
> So there's no way to set the text/margin/edge states separately ?
> ( I need different visible/invisible settings for standard, frontapart and
> backpart )
>
> (2) pg 80 table 4.5: what's the difference between state=normal and
> state=start ?
>
> (3) in \setup*[margin/edge] ( * = top/header/footer/bottom ), how do you
> differentiate between
> the left and right margin/edge areas ?
>
> Thanks and have a great weekend,
> Alan
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Strange font issue with LuaTeX on Linux

2008-09-01 Thread abbg770

Hi guys,

I'm using context/current/cont-tmf.zip the main CONTEXT distribution 
2008-08-05 18:50 6544186 from my ~/texmf. I followed Thomas A. Schmitz's 
guide; 
http://archive.contextgarden.net/message/20071002.175335.21873a03.en.html. 
I can't seem to use my OT font on my NTFS drive, if this is of any use i'm 
running fedora9 with texlive 2007.


Here's my ~/.bashrc

export TEXMFCACHE="/home/mohamed/texmf/texmf-cache"

export TEXMFCNF="/usr/share/texmf/web2c"

export 
TEXMF="{/home/mohamed/.texlive2007/texmf-config,/home/mohamed/.texlive2007/texmf-var,/home/mohamed/texmf,/etc/texmf,/var/lib/texmf,/usr/local/share/texmf,/usr/share/texmf,/usr/share/texmf}"


export 
LUAINPUTS="{/home/mohamed/texmf/tex/context/base,/home/mohamed/texmf/scripts/context/lua}"


export 
OSFONTDIR="/usr/share/fonts/vista-fonts;$HOME/.fonts;/media/sdb1/Fonts"


# clearly the fonts are being found! $ mtxrun --script font --reload 
fontnames | identifying tree font files with suffix otf fontnames | 
identifying tree font files with suffix OTF fontnames | 113 tree files 
identified, 340 hash entries added, runtime 0.420 seconds fontnames | 
identifying tree font files with suffix ttf fontnames | identifying tree 
font files with suffix TTF fontnames | 61 tree files identified, 150 hash 
entries added, runtime 0.408 seconds fontnames | identifying tree font 
files with suffix ttc fontnames | identifying tree font files with suffix 
TTC fontnames | 0 tree files identified, 0 hash entries added, runtime 
0.458 seconds fontnames | identifying tree font files with suffix afm 
fontnames | identifying tree font files with suffix AFM fontnames | 815 
tree files identified, 1402 hash entries added, runtime 0.720 seconds 
fontnames | identifying system font files with suffix otf fontnames | 
globbing path /usr/share/fonts/vista-fonts/**/*.otf fontnames | globbing 
path /home/mohamed/.fonts/**/*.otf fontnames | globbing path 
/media/sdb1/Fonts/**/*.otf fontnames | identifying system font files with 
suffix OTF fontnames | globbing path /usr/share/fonts/vista-fonts/**/*.OTF 
fontnames | globbing path /home/mohamed/.fonts/**/*.OTF fontnames | 
globbing path /media/sdb1/Fonts/**/*.OTF fontnames | 2306 system files 
identified, 7254 hash entries added, runtime 1.565 seconds fontnames | 
identifying system font files with suffix ttf fontnames | globbing path 
/usr/share/fonts/vista-fonts/**/*.ttf fontnames | globbing path 
/home/mohamed/.fonts/**/*.ttf fontnames | globbing path 
/media/sdb1/Fonts/**/*.ttf fontnames | identifying system font files with 
suffix TTF fontnames | globbing path /usr/share/fonts/vista-fonts/**/*.TTF 
fontnames | globbing path /home/mohamed/.fonts/**/*.TTF fontnames | 
globbing path /media/sdb1/Fonts/**/*.TTF fontnames | 20 system files 
identified, 65 hash entries added, runtime 0.500 seconds fontnames | 
identifying system font files with suffix ttc fontnames | globbing path 
/usr/share/fonts/vista-fonts/**/*.ttc fontnames | globbing path 
/home/mohamed/.fonts/**/*.ttc fontnames | globbing path 
/media/sdb1/Fonts/**/*.ttc fontnames | identifying system font files with 
suffix TTC fontnames | globbing path /usr/share/fonts/vista-fonts/**/*.TTC 
fontnames | globbing path /home/mohamed/.fonts/**/*.TTC fontnames | 
globbing path /media/sdb1/Fonts/**/*.TTC fontnames | 1 system files 
identified, 5 hash entries added, runtime 0.593 seconds fontnames | 
identifying system font files with suffix afm fontnames | globbing path 
/usr/share/fonts/vista-fonts/**/*.afm fontnames | globbing path 
/home/mohamed/.fonts/**/*.afm fontnames | globbing path 
/media/sdb1/Fonts/**/*.afm fontnames | identifying system font files with 
suffix AFM fontnames | globbing path /usr/share/fonts/vista-fonts/**/*.AFM 
fontnames | globbing path /home/mohamed/.fonts/**/*.AFM fontnames | 
globbing path /media/sdb1/Fonts/**/*.AFM fontnames | 3 system files 
identified, 6 hash entries added, runtime 0.490 seconds


Question 2. What do the columns correspond to when I use \definefontsynonym 
i.e., Is it


\definefontsynonym [WarnockPro-Regular][name:WarnockPro-Regular]  
or

\definefontsynonym [WarnockPro-Regular][file:WarnockPro-Regular]

$ mtxrun --script fonts --list --pattern=warnock warnockpro-bold 
WarnockPro-Bold WarnockPro-Bold.otf warnockpro-boldcapt WarnockPro-BoldCapt 
WarnockPro-BoldCapt.otf warnockpro-bolddisp WarnockPro-BoldDisp 
WarnockPro-BoldDisp.otf warnockpro-boldit WarnockPro-BoldIt 
WarnockPro-BoldIt.otf warnockpro-bolditcapt WarnockPro-BoldItCapt 
WarnockPro-BoldItCapt.otf warnockpro-bolditdisp WarnockPro-BoldItDisp 
WarnockPro-BoldItDisp.otf warnockpro-bolditsubh WarnockPro-BoldItSubh 
WarnockPro-BoldItSubh.otf warnockpro-boldsubh WarnockPro-BoldSubh 
WarnockPro-BoldSubh.otf warnockpro-capt WarnockPro-Capt WarnockPro-Capt.otf 
warnockpro-disp WarnockPro-Disp WarnockPro-Disp.otf warnockpro-it 
WarnockPro-It WarnockPro-It.otf warnockpro-itcapt WarnockPro-ItCapt 
WarnockPro-ItCapt.otf warnockpro-itdisp WarnockPro-ItDisp 
WarnockPr

Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen

Hi, Mocja---

Many thanks for your reply: it is very encouraging. First things  
first, then: let’s make sure I have things in the right place.


The output of
find /Applications/ConTeXtMinimals | head -n 20
is
/Applications/ConTeXtMinimals
/Applications/ConTeXtMinimals/.DS_Store
/Applications/ConTeXtMinimals/bin
/Applications/ConTeXtMinimals/bin/mtx-update-old.lua
/Applications/ConTeXtMinimals/bin/mtx-update.lua
/Applications/ConTeXtMinimals/bin/mtxrun
/Applications/ConTeXtMinimals/bin/texlua
/Applications/ConTeXtMinimals/first-setup.sh
/Applications/ConTeXtMinimals/status-of-update.lua
/Applications/ConTeXtMinimals/tex
/Applications/ConTeXtMinimals/tex/.DS_Store
/Applications/ConTeXtMinimals/tex/setuptex
/Applications/ConTeXtMinimals/tex/setuptex.bat
/Applications/ConTeXtMinimals/tex/setuptex.tmf
/Applications/ConTeXtMinimals/tex/texmf
/Applications/ConTeXtMinimals/tex/texmf/.DS_Store
/Applications/ConTeXtMinimals/tex/texmf/doc
/Applications/ConTeXtMinimals/tex/texmf/doc/.DS_Store
/Applications/ConTeXtMinimals/tex/texmf/doc/fonts
/Applications/ConTeXtMinimals/tex/texmf/doc/fonts/.DS_Store

I will wait for word from you about the changes you suggest to fix (a)  
and for Jérôme to fix the sync parser (c).


I tried both
 . /Applications/ConTeXtMinimals/tex/setuptex
and
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH
in ~/.bash_profile file (that is, in Users/alancbowen)
but when I typed
texmfstart ctxtools --contextversion
it listed only those in my texlive2007 distribution---no mention of  
the ConTeXtMinimals.


Cheers, Alan

On Sep 1, 2008, at 03;16,18 , Mojca Miklavec wrote:


Hello Alan,

I'm sorry for not replying earlier.

On Sat, Aug 30, 2008 at 12:16 PM, Alan Bowen wrote:
What follows are some queries that I will be happy to write up for  
the wiki.
The aim (hope?) is to develop a set of instructions for installing  
the
minimals on a Mac that a Mac user without any real knowledge of  
unix (such
as myself) can follow easily. (There are a number of people  
scattered around
the world who help me in producing various publications; and since  
they too

are not unix savvy, I need such instructions if we are to keep our
installations functioning and up to date.)
Once the ConTeXt minimals are installed in the Applications folder  
and the

user can run
\starttext
Hello world!
\stoptext
which is where the wiki (Installation>section 1.2) currently leaves  
off,

there still remain a few tasks.
Specifically,
(a) getting this ConTeXt installation to recognize a personal texmf
directory


I usually put my files to texmf-local. Well, no, I actually copy
"setuptex" into "mytex" and make local modifications there, so that I
can include my own texmf trees (ugly solution). We just got a
complaint about non-existant TEXMFHOME during the conference. We took
setuptex from Hans' distribution and did not touch TEXMFHOME at all.
The problem is that Hans wanted to prevent old local files to
interefere with "standalone" tree, completely isolated from the outer
world.

We can either:
- fix setuptex, but I would like to have Hans' permission to do it
- create another "setupfriendlytex" :) and modify whatever we want  
there


The fix is super-easy: change
   export HOMETEXMF=/nonexist
into
   export HOMETEXMF=~/.texmf
(with or without the dot - up to you; MacTeX uses ~/Library/texmf or
something similar, I think, but should check)

And then add TEXMFHOME to the list:

export TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
$TEXMFEXTRA,!!$TEXMFMAIN}'


But I need someone to tell me to do that


(b) running the various binaries (e.g., texmfstart, ctxtools) in
/Applications/ConTeXtMinimals from Terminal


You can create ~/.bash_profile and put one of those lines into it (I
suggest (a), but (b) would suffice):
a) . /Applications/ConTeXtMinimals/tex/setuptex
b) export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin: 
$PATH


Then, once you start a new shell, you'll see the programs in your
shell. "/Applications/ConTeXtMinimals/tex" assumes that you have
installed your files to that folder. Change accordingly. The minimals
are not a GUI program, so I would rather put it to some other folder,
but that's up to users. (I have the files simply in my home dir.)

The main problem is that GUI programs won't see that ~/.bash_profile,
so you need to follow the slighly off rules for TeXShop where there
are indeed quite some mistakes.

Can you please send the output of
   find /Applications/ConTeXtMinimals | head -n 20
I suspect that you were setting the wrong folder during download of  
minimals.


(c) establishing synchronization between  PDF output and its  
ConTeXt source.

Currently, it does not seem to work (with TeXShop at least)
Note, in the latest TeXShop there is
Added support for SyncTeX. SyncTeX is new synchronization  
technology by
Jerome Laurens which is included in TeX Live 2008 (but not earlier  
TeX
distributions). The technology is built directly into pdfTeX and  
XeTeX.

Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen

Thanks, Michael! I will let you know how all this turns out.

Cheers, Alan

On Aug 31, 2008, at 20;05,05 , Michael Green wrote:


Alan Bowen wrote:

Thanks, Michael; this is very helpful. I will prepare a .bash_profile
file and try it out. Where did you put your .bash_profile file?

Alan


.bash_profile should be saved as a text file at the top level of  
your user account. That is, it should go right alongside the  
directories that are standardly installed, like Documents, Library,  
Movies, Music, Pictures, Public, and Sites.


Note 1: the dot in front means it won't be visible in the Finder,  
absent further fiddling and trickery.


Note 2: if you're using TeXShop, I think that these sorts of  
instructions go in "engine" files. If you look at the "mac newbie"  
installation instructions, you'll see that the bit about  
"source ..." is put into an engine file. I suspect, though I don't  
know, that the TEXMFHOME and TEXMF lines would be incorporated in a  
similar way.


This may be an easier route to trying this sort of thing out than  
using .bash_profile. It may be *much* easier if you're supporting  
other people. Again, I don't know.


By the way, Oliver B's problem appears to be resolved. Changes in  
the personal texmf tree are picked up now, without further  
intervention by the user.


Good luck!

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


Re: [NTG-context] When I don't want quotes

2008-09-01 Thread Mojca Miklavec
On Wed, Aug 13, 2008 at 2:21 PM, Maurí­cio wrote:
>>>   I need to write ' in a text. However,
>>>   (...) I really need it to be 5 times U0027,
>>>   not ""' (U201C and U2018). (...)
>>>
>>>  > (...)
>>> Both also didn't work. (...)
>> Indeed, I am using mkiv... But you should be able to use \char etc. to get
>> the same effect.
>>
>> pdftex is not working at the moment here -- see my message to the list --
>> so I can't test this at the moment, but in pdftex there is
>>
>>   \unicodecharacter{number} (...)
>>
>> Another option is to use utf8 encoding and insert a zero-width space
>> (200B) between the 0027's. (...) should break the dbl-quote (...)
>
> \unicodecharacter wasn't recognized. I do use uft8
> encoding, and nothing else (ever). But the problem
> is not to break the bls-quote, but avoiding '
> transformed to '.
>
> Thanks for your help. I'm probably going to try
> something else, like writing this documentation on
> a web page.

Cleaninng up my mailbox (so I'm not sure if you still need the answer) ...

Are you using pdfTeX or LuaTeX/XeTeX? In pdfTeX you need to switch the
font (or at least change the encoding to texnansi)

\usetypescript[modern][texnansi]
\setupbodyfont[modern,10pt]
\starttext
\dorecurse{5}{\quotesingle} % or \char129
\stoptext

In new engines you can switch off tlig. If you need that, please ask
(but again - you need to be aware that you either need to create a new
font instance or switch off conversion into apostrophe globally).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Mojca Miklavec
On Mon, Sep 1, 2008 at 6:03 PM, Alan Bowen wrote:
> Hi, Mocja---
> Many thanks for your reply: it is very encouraging. First things first,
> then: let's make sure I have things in the right place.
>
> The output of
> find /Applications/ConTeXtMinimals | head -n 20
> is
> /Applications/ConTeXtMinimals
> /Applications/ConTeXtMinimals/.DS_Store
> /Applications/ConTeXtMinimals/bin
> /Applications/ConTeXtMinimals/bin/mtx-update-old.lua
> /Applications/ConTeXtMinimals/bin/mtx-update.lua
> /Applications/ConTeXtMinimals/bin/mtxrun
> /Applications/ConTeXtMinimals/bin/texlua
> /Applications/ConTeXtMinimals/first-setup.sh
> /Applications/ConTeXtMinimals/status-of-update.lua
> /Applications/ConTeXtMinimals/tex
> /Applications/ConTeXtMinimals/tex/.DS_Store
> /Applications/ConTeXtMinimals/tex/setuptex
> /Applications/ConTeXtMinimals/tex/setuptex.bat
> /Applications/ConTeXtMinimals/tex/setuptex.tmf
> /Applications/ConTeXtMinimals/tex/texmf
> /Applications/ConTeXtMinimals/tex/texmf/.DS_Store
> /Applications/ConTeXtMinimals/tex/texmf/doc
> /Applications/ConTeXtMinimals/tex/texmf/doc/.DS_Store
> /Applications/ConTeXtMinimals/tex/texmf/doc/fonts
> /Applications/ConTeXtMinimals/tex/texmf/doc/fonts/.DS_Store
> I will wait for word from you about the changes you suggest to fix (a) and
> for Jérôme to fix the sync parser (c).
> I tried both
>  . /Applications/ConTeXtMinimals/tex/setuptex

Sorry ... Arthur told me that he fixed some issue, but it still
doesn't work (and probably has no chance to work), so you still need
both parts
. /Applications/ConTeXtMinimals/tex/setuptex
/Applications/ConTeXtMinimals/tex

> and
> export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH
> in ~/.bash_profile file (that is, in Users/alancbowen)
> but when I typed
> texmfstart ctxtools --contextversion
> it listed only those in my texlive2007 distribution---no mention of the
> ConTeXtMinimals.

I forgot to tell you that you need to either:
- run that command manually
- run "bash"
- open a new Terminal
after you do the changes

You don't need to run texmfstart, it's OK to call just ctxtools, but
--contextversion seems to be broken in the minimals (some broken
functionality in kpathsea-mimicking library).

You should be able to use
context --version
If context doesn't work, it means that you didn't set the PATH properly.

For setting HOMETEXMF you can help yourself, though it would be nice
if we provided a solution that worked out of the box. But I would like
to get a confirmation from Hans that it's OK to do that.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MK IV and Texexec Error Compiling under Windows

2008-09-01 Thread Martin Scholz
Hi 
> What is the result from "kpsewhich cont-de.fmt" and where did ConTeXt save
> the new format (you can see this in one of the last line when you generate
> the format).

The generation saves the files to
C:/texlive/2008/texmf-var/web2c/pdftex/*.fmt
and kpsewhich cont-de.fmt gives no output in some directorys
and ./cont-de.fmt in an folder where i have files to compile.

___
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] bug with numeral conversion function

2008-09-01 Thread Khaled Hosny
On Sat, Aug 23, 2008 at 12:46:47AM +0300, Khaled Hosny wrote:
> 
> It seems that there is a bug in converters.alphabetic function,
> converters.alphabetic(0,"arabic") returns the western 0 (no matter what
> is the selected language) while converters.alphabetic(1,"arabic") gives
> the Arabic 0 not 1 and so one i.e. it looks like as if it starts
> counting from zero.

I finally got myself to understand some lua code.

I think the problem is that lua tables start counting from 1 not 0,
getting the value of key 0 from code table will give nil while 1 will
give the value of 0 (first key), so the solution would be incrementing n
by 1 in:

local function do_alphabetic(n,max,chr)
n = n + 1 -- to get the correct key
if n > max then
do_alphabetic(floor((n-1)/max),max,chr)
n = (n-1)%max+1
end
characters.flush(chr(n))
end

This does work for the case of Arabic, but I don't know about others
(especially greek and slovenian which look different)

Now, I think I discovered another bug (or feature?), the function will
ignore any zeros at the left which isn't what one expects.

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
--- core-con.lua~	2008-09-01 19:24:44.0 +0200
+++ core-con.lua	2008-09-01 19:23:31.0 +0200
@@ -103,6 +103,7 @@
 end
 
 local function do_alphabetic(n,max,chr)
+n = n + 1 -- to get the correct key
 if n > max then
 do_alphabetic(floor((n-1)/max),max,chr)
 n = (n-1)%max+1


signature.asc
Description: Digital 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
___


Re: [NTG-context] Strange font issue with LuaTeX on Linux

2008-09-01 Thread abbg770

I just discovered something;

$ echo $OSFONTDIR
/usr/share/fonts/vista-fonts;/home/mohamed/.fonts;/media/sdb1/Fonts

$ pwd
/home/mohamed/.fonts/envy-code-r
$ ls -1
EnvyCodeRBold.ttf
EnvyCodeRItalic.ttf
EnvyCodeR.ttf
EnvyCodeRVSItalicAsBold.ttf
EnvyCodeRVS.ttf

$ mtxrun --script fonts --list "envy"
envy code r  Envy Code R  EnvyCodeR.ttf
envy code r bold Envy Code R Bold EnvyCodeRBold.ttf
envy code r italic   Envy Code R Italic   EnvyCodeRItalic.ttf
envy code r vs   Envy Code R VS   EnvyCodeRVS.ttf
envy code r vs bold  Envy Code R VS Bold  EnvyCodeRVSItalicAsBold.ttf

# similar error to the previous one, even though mtxrun finds it, luatex 
doesn't. If I copy the fonts over to the working directory, the file seems 
to compile fine (http://pastebin.com/m5272c619 or attached). $ texexec 
test.tex TeXExec | processing document 'test.tex' TeXExec | no ctx file 
found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec 
| writing option file test.top TeXExec | using randomseed 990 TeXExec | tex 
engine: luatex TeXExec | tex format: cont-en LuaTools | running command: 
luatex 
--fmt="/home/mohamed/texmf/texmf-cache/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5/formats/cont-en" 
--lua="/home/mohamed/texmf/texmf-cache/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5/formats/cont-en.luc" 
"test.tex" "" (test.tex


ConTeXt  ver: 2008.08.05 18:47 MKIV  fmt: 2008.8.31  int: english/english

language : language en is active system : cont-new loaded 
(/home/mohamed/texmf/tex/context/base/cont-new.tex systems : beware: some 
patches loaded from cont-new.tex 
(/home/mohamed/texmf/tex/context/base/cont-new.mkiv lua : used config path 
- /usr/share/texmf/web2c/texmf.cnf lua : used cache path - 
/home/mohamed/texmf/texmf-cache/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5 
) (/home/mohamed/texmf/tex/context/base/cont-mtx.tex)) system : cont-old 
loaded (/home/mohamed/texmf/tex/context/base/cont-old.tex loading : Context 
Old Macros ) system : cont-fil loaded 
(/home/mohamed/texmf/tex/context/base/cont-fil.tex loading : Context File 
Synonyms ) system : cont-sys.rme loaded 
(/home/mohamed/texmf/tex/context/user/cont-sys.rme 
(/home/mohamed/texmf/tex/context/base/type-tmf.tex) 
(/home/mohamed/texmf/tex/context/base/type-siz.tex) 
(/home/mohamed/texmf/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is 
loaded specials : tex loaded system : test.top loaded (test.top specials : 
loading definition file tpd 
(/home/mohamed/texmf/tex/context/base/spec-tpd.tex specials : loading 
definition file fdf (/home/mohamed/texmf/tex/context/base/spec-fdf.tex 
(/home/mohamed/texmf/tex/context/base/spec-fdf.mkiv)) specials : fdf loaded 
(/home/mohamed/texmf/tex/context/base/spec-tpd.mkiv)) specials : fdf loaded 
) (/home/mohamed/texmf/tex/context/base/type-tmf.tex) 
(/home/mohamed/texmf/tex/context/base/type-siz.tex) 
(/home/mohamed/texmf/tex/context/base/type-otf.tex) 
(/home/mohamed/texmf/tex/context/base/type-tmf.tex) 
(/home/mohamed/texmf/tex/context/base/type-siz.tex) 
(/home/mohamed/texmf/tex/context/base/type-otf.tex) define font | forced 
type ttf of EnvyCodeR not found define font | font with name EnvyCodeR is 
not found define font | unknown font EnvyCodeR, loading aborted ! Font 
\*adobe12ptrmtfrm*:=name:Envy Code R*default at 12pt not loadable: metric 
data not found or bad. 
  \relax 
\xxdododefinefont ...tspec {#4}\newfontidentifier 
 \let 
\localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname
 \tryingfontfalse \fi 
 ...yle \fontalternative \fontsize 
 \fi \iftryingfont 
\fontstr... \synchronizefont ...strategy \the \fontstrategies
 \relax \fi \iftryingfont 
\...  \getvalue [EMAIL PROTECTED]@ \fontstyle }
  \edef \fontstyle {\fontstyle 
}\if... ... l.48 \setupbodyfont[adobe,11pt]
  
? 


# test.tex.  ignore the weird names, i didn't have time to change it around
% engine=luatex
\definefontfeature[latin-smallcaps][smallcaps][script=latn]

\starttypescript [serif] [warnockpro]
 \setups[font:fallback:sans]  
 \definefontsynonym [WarnockPro-Regular] [name:Envy Code R] 
[features=default]
 \definefontsynonym [WarnockPro-Bold]   [name:Envy Code R Bold]   
[features=default]
 \definefontsynonym [WarnockPro-Italic] [name:Envy Code R Italic]  
[features=default]
\stoptypescript


\starttypescript [serif] [warnockpro]
 \definefontsynonym [Serif]   [WarnockPro-Regular]   
[features=default]
 \definefontsynonym [SerifBold]   [WarnockPro-Bold]  
[features=default]
 \definefontsynonym [SerifItalic] [WarnockPro-Italic]
[features=default]

\stoptypescript

\definetypeface[adobe][rm][serif][warnockpro][default]
\setupbodyfont[adobe,

Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Mojca Miklavec
On Mon, Sep 1, 2008 at 7:27 PM, Alan Bowen <[EMAIL PROTECTED]> wrote:
> Mocja—
> This is great. I now have access to the binaries in ConTeXtMinimals/tex:
> context --version
> gives the right answer.
> Alan
>
> On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:
>
> For setting HOMETEXMF you can help yourself, though it would be nice
> if we provided a solution that worked out of the box. But I would like
> to get a confirmation from Hans that it's OK to do that.
>
> I have modified the texmf.cnf in
> ./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
> export HOMETEXMF=~/Library/texmf
> export
> TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}'
> but ConTeXt still does not find my personal texmf folder

I probably told you wrong, but:
1.) you have HOMETEXMF first and then TEXMFHOME: these need to be equal
2.) unless you are following (3), don't modify the file in texmf/, but create
  /Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
instead, else the file will be overwritten at first update
3.) even then I'm not completely sure, but I guess that environmental
variables override settings in texmf.cnf, so you either need to
  a) modify setuptex (rename it and run the renamed file instead of setuptex)
  b) only export PATH and not run setuptex at all; in that case values
from texmf.cnf will be used
- maybe you need to run "mktexlsr" or "luatools --generate"

> The opening lines of the console read:
> /Applications/ConTeXtMinimals/tex/setuptex: line 83: cd:
> /Applications/ConTeXtMinimals/context: No such file or directory

Where does this "context" come from? From .engine file for TeXShop?

> The argument "" is not a valid TEXROOT path.
> There is no file "/texmf/tex/plain/base/plain.tex"
> Setting "/Applications/ConTeXtMinimals/tex" as TEXROOT instead.
> TeXExec | processing document 'c_2007-10-04_Hannah.tex'
> TeXExec | no ctx file found
> TeXExec | tex processing method: context
> TeXExec | TeX run 1
> TeXExec | writing option file c_2007-10-04_Hannah.top
> TeXExec | using randomseed 764
> TeXExec | tex engine: pdftex
> TeXExec | tex format: cont-en
> This is pdfTeX, Version 3.1415926-1.40.9-rc1 (Web2C 7.5.7)
>  \write18 enabled.
>  (/Applications/ConTeXtMinimals/tex/texmf-context/web2c/natural.tcx)
> entering extended mode
> (./c_2007-10-04_Hannah.tex
> ConTeXt  ver: 2008.08.29 10:30 MKII  fmt: 2008.8.29  int: english/english

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen

Mocja—

This is great. I now have access to the binaries in ConTeXtMinimals/tex:
context --version
gives the right answer.

Alan


On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:


For setting HOMETEXMF you can help yourself, though it would be nice
if we provided a solution that worked out of the box. But I would like
to get a confirmation from Hans that it's OK to do that.


I have modified the texmf.cnf in ./Applications/ConTeXtMinimals/tex/ 
texmf/web2c with the lines

export HOMETEXMF=~/Library/texmf
export TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
$TEXMFEXTRA,!!$TEXMFMAIN}'

but ConTeXt still does not find my personal texmf folder
The opening lines of the console read:
/Applications/ConTeXtMinimals/tex/setuptex: line 83: cd: /Applications/ 
ConTeXtMinimals/context: No such file or directory

The argument "" is not a valid TEXROOT path.
There is no file "/texmf/tex/plain/base/plain.tex"
Setting "/Applications/ConTeXtMinimals/tex" as TEXROOT instead.
TeXExec | processing document 'c_2007-10-04_Hannah.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file c_2007-10-04_Hannah.top
TeXExec | using randomseed 764
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeX, Version 3.1415926-1.40.9-rc1 (Web2C 7.5.7)
 \write18 enabled.
 (/Applications/ConTeXtMinimals/tex/texmf-context/web2c/natural.tcx)
entering extended mode
(./c_2007-10-04_Hannah.tex

ConTeXt  ver: 2008.08.29 10:30 MKII  fmt: 2008.8.29  int: english/ 
english




Mojca
___
If your question is of interest to others as well, please add an  
entry to the Wiki!


maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : 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
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen
On Sep 1, 2008, at 13;43,19 , Mojca Miklavec wrote:

> On Mon, Sep 1, 2008 at 7:27 PM, Alan Bowen <[EMAIL PROTECTED]>  
> wrote:
>> Mocja—
>> This is great. I now have access to the binaries in ConTeXtMinimals/ 
>> tex:
>> context --version
>> gives the right answer.
>> Alan
>>
>> On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:
>>
>> For setting HOMETEXMF you can help yourself, though it would be nice
>> if we provided a solution that worked out of the box. But I would  
>> like
>> to get a confirmation from Hans that it's OK to do that.
>>
>> I have modified the texmf.cnf in
>> ./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
>> export HOMETEXMF=~/Library/texmf
>> export
>> TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
>> $TEXMFEXTRA,!!$TEXMFMAIN}'
>> but ConTeXt still does not find my personal texmf folder
>
> I probably told you wrong, but:
> 1.) you have HOMETEXMF first and then TEXMFHOME: these need to be  
> equal
> 2.) unless you are following (3), don't modify the file in texmf/,  
> but create
>  /Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
> instead, else the file will be overwritten at first update
> 3.) even then I'm not completely sure, but I guess that environmental
> variables override settings in texmf.cnf, so you either need to
>  a) modify setuptex (rename it and run the renamed file instead of  
> setuptex)
>  b) only export PATH and not run setuptex at all; in that case values
> from texmf.cnf will be used
> - maybe you need to run "mktexlsr" or "luatools --generate"

I need to think about this and learn more.

>> The opening lines of the console read:
>> /Applications/ConTeXtMinimals/tex/setuptex: line 83: cd:
>> /Applications/ConTeXtMinimals/context: No such file or directory
>
> Where does this "context" come from? From .engine file for TeXShop?
>
>> The argument "" is not a valid TEXROOT path.
>> There is no file "/texmf/tex/plain/base/plain.tex"
>> Setting "/Applications/ConTeXtMinimals/tex" as TEXROOT instead.
>> TeXExec | processing document 'c_2007-10-04_Hannah.tex'
>> TeXExec | no ctx file found
>> TeXExec | tex processing method: context
>> TeXExec | TeX run 1
>> TeXExec | writing option file c_2007-10-04_Hannah.top
>> TeXExec | using randomseed 764
>> TeXExec | tex engine: pdftex
>> TeXExec | tex format: cont-en
>> This is pdfTeX, Version 3.1415926-1.40.9-rc1 (Web2C 7.5.7)
>> \write18 enabled.
>> (/Applications/ConTeXtMinimals/tex/texmf-context/web2c/natural.tcx)
>> entering extended mode
>> (./c_2007-10-04_Hannah.tex
>> ConTeXt  ver: 2008.08.29 10:30 MKII  fmt: 2008.8.29  int: english/ 
>> english

This comes from the console window that TeXShop opens when it typesets  
a file.

>>
>
> Mojca
> ___
> If your question is of interest to others as well, please add an  
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : 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
___


[NTG-context] "Float within a frame" challenge

2008-09-01 Thread B. Tommy Jensen
Hi,
I am trying to accomplish the following layout with ConTeXt:

  - An icon and a descriptive text should be contained together in a  
separate frame
  - The frame should be centered and have a special background color
  - Within the frame, the icon should be placed to the upper left.
  - A descriptive text should "flow" around the icon within the frame,
first part to the right and then below the icon.

I have tried the following construct:

%--

\startframedtext
\placefigure[left]{none}{\externalfigure[danger]}

The textual description of the icon comes here. It should ideally flow to  
the right of
the figure within the frame, but the figure actually becomes behind the  
text.
\stopframedtext

%--

The problem here is that the icon and text is placed on top of each other.

When removing the frame (\startframedtext command), the placement of the
figure and the text works OK, but I don't get a frame then of course.

I have studied the "It's in the details" document which explains a great
deal about float's, but I haven't found anything covering the frame issue.

Is the "startframedtext" the wrong command to use? All hints or suggestions
(like references to other tutorials) are very welcome.

Best regards,
Tommy Jensen
___
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] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen

On Sep 1, 2008, at 13;43,19 , Mojca Miklavec wrote:

>> On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:
>>
>> For setting HOMETEXMF you can help yourself, though it would be nice
>> if we provided a solution that worked out of the box. But I would  
>> like
>> to get a confirmation from Hans that it's OK to do that.
>>
>> I have modified the texmf.cnf in
>> ./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
>> export HOMETEXMF=~/Library/texmf
>> export
>> TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
>> $TEXMFEXTRA,!!$TEXMFMAIN}'
>> but ConTeXt still does not find my personal texmf folder
>
> I probably told you wrong, but:
> 1.) you have HOMETEXMF first and then TEXMFHOME: these need to be  
> equal
> 2.) unless you are following (3), don't modify the file in texmf/,  
> but create
>  /Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
> instead, else the file will be overwritten at first update
> 3.) even then I'm not completely sure, but I guess that environmental
> variables override settings in texmf.cnf, so you either need to
>  a) modify setuptex (rename it and run the renamed file instead of  
> setuptex)
>  b) only export PATH and not run setuptex at all; in that case values
> from texmf.cnf will be used
> - maybe you need to run "mktexlsr" or "luatools --generate"
>>

OK. One quick reply just to see if I am on track.

I have created /Applications/ConTeXtMinimals/tex/texmf-local/web2c/ 
texmf.cnf
where texmf.cnf now has
export HOMETEXMF=~/Library/texmf
export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!

I have run
mktexlsr
luatools --generate

And still no luck, I am sorry to say. Perhaps I have misunderstood  
your remarks about HOMETEXMF and TEXMFHOME.

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Mojca Miklavec
On Mon, Sep 1, 2008 at 10:18 PM, Alan Bowen <[EMAIL PROTECTED]> wrote:

> My ConTeXtMinimals.engine file currently has the the following lines:
> #!/bin/bash
> source /Applications/ConTeXtMinimals/tex/setuptex 
> /Applications/ConTeXtMinimals/context/tex
> texexec "$1"

Remove "context" from the second argument:
   source /Applications/ConTeXtMinimals/tex/setuptex
/Applications/ConTeXtMinimals/tex
instead of
   source /Applications/ConTeXtMinimals/tex/setuptex
/Applications/ConTeXtMinimals/context/tex

> I am puzzled that
> chmod a+x ~/Library/TeXShop/ConTeXtMinimals.engine
> gets
> chmod: /Users/alancbowen/Library/TeXShop/ConTeXtMinimals.engine: No such
> file or directory

Because you have probably created a file
   ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
and not a file
   ~/Library/TeXShop/ConTeXtMinimals.engine
(tiny differences), so the second works.

> while
> chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> seems to work (at least there are no error messages).
> I am not quite sure what you mean here, but if I reduce
> ConTeXtMinimals.engine to
> source /Applications/ConTeXtMinimals/tex/setuptex
> I get
> The argument "/Users/alancbowen/Desktop/TeXTesting/hello.tex" is not a valid
> TEXROOT path.
> There is no file
> "/Users/alancbowen/Desktop/TeXTesting/hello.tex/texmf/tex/plain/base/plain.tex"
> Setting "/Applications/ConTeXtMinimals/tex" as TEXROOT instead.
> and then nothing.

Sorry - I thought that the issue has been fixed, but it hasn't. So you need
   source /Applications/ConTeXtMinimals/tex/setuptex
/Applications/ConTeXtMinimals/tex
only
   source /Applications/ConTeXtMinimals/tex/setuptex
does not suffice. It does on Windows, but apparently there's no way to
figure out location of the sourced script under linux (or at least I
don't know any).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Mojca Miklavec
On Mon, Sep 1, 2008 at 10:43 PM, Alan Bowen <[EMAIL PROTECTED]> wrote:
>
> On Sep 1, 2008, at 13;43,19 , Mojca Miklavec wrote:
>
>>> On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:
>>>
>>> For setting HOMETEXMF you can help yourself, though it would be nice
>>> if we provided a solution that worked out of the box. But I would
>>> like
>>> to get a confirmation from Hans that it's OK to do that.
>>>
>>> I have modified the texmf.cnf in
>>> ./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
>>> export HOMETEXMF=~/Library/texmf
>>> export
>>> TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!
>>> $TEXMFEXTRA,!!$TEXMFMAIN}'
>>> but ConTeXt still does not find my personal texmf folder
>>
>> I probably told you wrong, but:
>> 1.) you have HOMETEXMF first and then TEXMFHOME: these need to be
>> equal
>> 2.) unless you are following (3), don't modify the file in texmf/,
>> but create
>>  /Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
>> instead, else the file will be overwritten at first update
>> 3.) even then I'm not completely sure, but I guess that environmental
>> variables override settings in texmf.cnf, so you either need to
>>  a) modify setuptex (rename it and run the renamed file instead of
>> setuptex)
>>  b) only export PATH and not run setuptex at all; in that case values
>> from texmf.cnf will be used
>> - maybe you need to run "mktexlsr" or "luatools --generate"
>>>
>
> OK. One quick reply just to see if I am on track.
>
> I have created /Applications/ConTeXtMinimals/tex/texmf-local/web2c/
> texmf.cnf
> where texmf.cnf now has
> export HOMETEXMF=~/Library/texmf
> export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!

(hopefully the line continues ...)

The lines you have written here belong to "setuptex", not to
texmf.cnf. The syntax for setuptex is slightly different.

HOMETEXMF = ~/Library/texmf
# single line
TEXMF = 
{$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}

But try putting
   export HOMETEXMF=~/Library/texmf
# single line
   export 
TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}'

into setuptex (replace the old variables). The problem is that if you
adapt texmf.cnf only, you still override those settings with setuptex.

There is one thing that you could try (I never use TeXShop, but
there's a change that it works):


~/Library/TeXShop/Engines/ConTeXt-pdfTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
texexec "$1"

~/Library/TeXShop/Engines/ConTeXt-luaTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context "$1"

~/Library/TeXShop/Engines/ConTeXt-XeTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
texexec --xtx "$1"

(sorry for two different proposals - I should probably only send you a
single one)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen

On Sep 1, 2008, at 17;19,53 , Mojca Miklavec wrote:

> On Mon, Sep 1, 2008 at 10:18 PM, Alan Bowen <[EMAIL PROTECTED]>  
> wrote:
>
>> My ConTeXtMinimals.engine file currently has the the following lines:
>> #!/bin/bash
>> source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ 
>> ConTeXtMinimals/context/tex
>> texexec "$1"
>
> Remove "context" from the second argument:
>   source /Applications/ConTeXtMinimals/tex/setuptex
> /Applications/ConTeXtMinimals/tex
> instead of
>   source /Applications/ConTeXtMinimals/tex/setuptex
> /Applications/ConTeXtMinimals/context/tex

Done---and the console now reads (without complaint)
Setting "/Applications/ConTeXtMinimals/tex" as TEXROOT.
as desired when typesetting begins. Many thanks for your patience,  
Mocja!

> 

Alan

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Aditya Mahajan
On Mon, 1 Sep 2008, Mojca Miklavec wrote:

> only
>   source /Applications/ConTeXtMinimals/tex/setuptex
> does not suffice. It does on Windows, but apparently there's no way to
> figure out location of the sourced script under linux (or at least I
> don't know any).

Well, surprisingly a simple

. ~/tex/setuptex

works fine here (Linux + Zsh shell).

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Missing background color with \definetextbackground

2008-09-01 Thread B. Tommy Jensen
Hi,
I am strugglig to get the background color visible with the following code:

%
\setupcolors[state=start]
\definetextbackground[highlight][backgroundcolor=yellow,
 frame=on,
 location=text,
 color=blue]
\starttext
\starttextbackground[highlight]
This text should have yellow background but it is white.
The text is however blue.
\stoptextbackground
\stoptext
%-

The background of the rendered text is always white, independent of the
backgroundcolor parameter. The font color is however OK (blue).
All other samples I have tried from "details.pdf"
behaves similarly - no background color and no frame/frame color.

I am using the latest complete standalone Windows version of Context.

Has anybody encountered a similar behaviour?

Best regards,
Tommy Jensen
___
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] Missing background color with \definetextbackground

2008-09-01 Thread Aditya Mahajan
On Tue, 2 Sep 2008, B. Tommy Jensen wrote:

> Hi,
> I am strugglig to get the background color visible with the following code:
>
> %
> \setupcolors[state=start]
> \definetextbackground[highlight][backgroundcolor=yellow,
background=color,%<--- Add this
> frame=on,
> location=text,
> color=blue]
> \starttext
> \starttextbackground[highlight]
> This text should have yellow background but it is white.
> The text is however blue.
> \stoptextbackground
> \stoptext
> %-

Add background=color to \definetextbackground

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Missing background color with \definetextbackground

2008-09-01 Thread Mojca Miklavec
On Tue, Sep 2, 2008 at 12:06 AM, B. Tommy Jensen <[EMAIL PROTECTED]> wrote:
> Hi,
> I am strugglig to get the background color visible with the following code:
>
> %
> \setupcolors[state=start]
> \definetextbackground[highlight][backgroundcolor=yellow,
> frame=on,

%add
background=color,

> location=text,
> color=blue]
> \starttext
> \starttextbackground[highlight]
> This text should have yellow background but it is white.
> The text is however blue.
> \stoptextbackground
> \stoptext
> %-
>
> The background of the rendered text is always white, independent of the
> backgroundcolor parameter. The font color is however OK (blue).
> All other samples I have tried from "details.pdf"
> behaves similarly - no background color and no frame/frame color.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Mojca Miklavec
On Tue, Sep 2, 2008 at 12:13 AM, Alan Bowen wrote:
> Mocja---I will start with the second proposal and save the first for
> tomorrow.
>
> ~/Library/TeXShop/Engines/ConTeXt-luaTeX.engine
>
> #!/bin/bash
> export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
> export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
> context "$1"
>
> Done. No joy. ConTeXt complains:
> /Users/alancbowen/Library/TeXShop/Engines/ConTeXt-luaTeX.engine: line 4:
> context: command not found

Oh, sorry again.
   export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH

But then: you have an intel processor, right? If not, change that line
accordingly. (Check if you have binaries in that folder.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Andrea Valle

 Many thanks for your patience,
Mocja!

(and three)

Yes, Mojca is really patient...
:)

-a-





--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.myspace.com/andreavalle
--> [EMAIL PROTECTED]
--


"
Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty
"
(Ken Perlin on noise)





___
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] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Aditya Mahajan
On Mon, 1 Sep 2008, Alan Bowen wrote:

> Mocja---I will start with the second proposal and save the first for 
> tomorrow.
>
> On Sep 1, 2008, at 17;38,50 , Mojca Miklavec wrote:
>
>> On Mon, Sep 1, 2008 at 10:43 PM, Alan Bowen <[EMAIL PROTECTED]> wrote:
>>> 
>>> On Sep 1, 2008, at 13;43,19 , Mojca Miklavec wrote:
>>> 
> On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:
> 
> For setting HOMETEXMF you can help yourself, though it would be nice
> if we provided a solution that worked out of the box. But I would
> like
> to get a confirmation from Hans that it's OK to do that.
> 
> I have modified the texmf.cnf in
> ./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
> export HOMETEXMF=~/Library/texmf
> export
> TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!
> $TEXMFEXTRA,!!$TEXMFMAIN}'
> but ConTeXt still does not find my personal texmf folder
 
 I probably told you wrong, but:
 1.) you have HOMETEXMF first and then TEXMFHOME: these need to be
 equal
 2.) unless you are following (3), don't modify the file in texmf/,
 but create
 /Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
 instead, else the file will be overwritten at first update
 3.) even then I'm not completely sure, but I guess that environmental
 variables override settings in texmf.cnf, so you either need to
 a) modify setuptex (rename it and run the renamed file instead of
 setuptex)
 b) only export PATH and not run setuptex at all; in that case values
 from texmf.cnf will be used
 - maybe you need to run "mktexlsr" or "luatools --generate"
> 
>>> 
>>> OK. One quick reply just to see if I am on track.
>>> 
>>> I have created /Applications/ConTeXtMinimals/tex/texmf-local/web2c/
>>> texmf.cnf
>>> where texmf.cnf now has
>>> export HOMETEXMF=~/Library/texmf
>>> export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!
>> 
>> (hopefully the line continues ...)
>> 
>> The lines you have written here belong to "setuptex", not to
>> texmf.cnf. The syntax for setuptex is slightly different.
>> 
>> HOMETEXMF = ~/Library/texmf
>> # single line
>> TEXMF = 
>> {$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}
>> 
>> But try putting
>>  export HOMETEXMF=~/Library/texmf
>> # single line
>>  export 
>> TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}'
>> 
>> into setuptex (replace the old variables). The problem is that if you
>> adapt texmf.cnf only, you still override those settings with setuptex.
>> 
>> There is one thing that you could try (I never use TeXShop, but
>> there's a change that it works):
>> 
>> 
>> ~/Library/TeXShop/Engines/ConTeXt-pdfTeX.engine
>> 
>> #!/bin/bash
>> export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
>> texexec "$1"

Shouldn't that be

export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin:$PATH

(Note the /bin at the end of the path, and same for all commands below).

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen
Mocja---I will start with the second proposal and save the first for  
tomorrow.


On Sep 1, 2008, at 17;38,50 , Mojca Miklavec wrote:

On Mon, Sep 1, 2008 at 10:43 PM, Alan Bowen <[EMAIL PROTECTED]>  
wrote:


On Sep 1, 2008, at 13;43,19 , Mojca Miklavec wrote:


On Sep 1, 2008, at 12;24,41 , Mojca Miklavec wrote:

For setting HOMETEXMF you can help yourself, though it would be  
nice

if we provided a solution that worked out of the box. But I would
like
to get a confirmation from Hans that it's OK to do that.

I have modified the texmf.cnf in
./Applications/ConTeXtMinimals/tex/texmf/web2c with the lines
export HOMETEXMF=~/Library/texmf
export
TEXMF='{$TEXMFHOME,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!
$TEXMFEXTRA,!!$TEXMFMAIN}'
but ConTeXt still does not find my personal texmf folder


I probably told you wrong, but:
1.) you have HOMETEXMF first and then TEXMFHOME: these need to be
equal
2.) unless you are following (3), don't modify the file in texmf/,
but create
/Applications/ConTeXtMinimals/tex/texmf-local/web2c/texmf.cnf
instead, else the file will be overwritten at first update
3.) even then I'm not completely sure, but I guess that  
environmental

variables override settings in texmf.cnf, so you either need to
a) modify setuptex (rename it and run the renamed file instead of
setuptex)
b) only export PATH and not run setuptex at all; in that case values
from texmf.cnf will be used
- maybe you need to run "mktexlsr" or "luatools --generate"




OK. One quick reply just to see if I am on track.

I have created /Applications/ConTeXtMinimals/tex/texmf-local/web2c/
texmf.cnf
where texmf.cnf now has
export HOMETEXMF=~/Library/texmf
export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!!


(hopefully the line continues ...)

The lines you have written here belong to "setuptex", not to
texmf.cnf. The syntax for setuptex is slightly different.

HOMETEXMF = ~/Library/texmf
# single line
TEXMF = {$HOMETEXMF,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!! 
$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}


But try putting
  export HOMETEXMF=~/Library/texmf
# single line
  export TEXMF='{$HOMETEXMF,$TEXMFLOCAL,!!$TEXMFOS,!!$TEXMFCONTEXT,!! 
$TEXMFEXTRA,!!$TEXMFMAIN}'


into setuptex (replace the old variables). The problem is that if you
adapt texmf.cnf only, you still override those settings with setuptex.

There is one thing that you could try (I never use TeXShop, but
there's a change that it works):


~/Library/TeXShop/Engines/ConTeXt-pdfTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
texexec "$1"


Done. The “Hello world” file processes but using my texlive 2007  
distribution.

TeXExec | processing document 'hello.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello.top
TeXExec | using randomseed 780
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
 (/usr/local/texlive/2007/texmf/web2c/natural.tcx)
entering extended mode
(./hello.tex

ConTeXt  ver: 2008.08.04 10:10 MKII  fmt: 2008.8.31  int: english/ 
english



~/Library/TeXShop/Engines/ConTeXt-luaTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context "$1"


Done. No joy. ConTeXt complains:
/Users/alancbowen/Library/TeXShop/Engines/ConTeXt-luaTeX.engine: line  
4: context: command not found



~/Library/TeXShop/Engines/ConTeXt-XeTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
texexec --xtx "$1"


Done. I t works, but
TeXExec | processing document 'hello.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello.top
TeXExec | using randomseed 403
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./hello.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2007.5.18  int: english/ 
english


seems odd. I do not use XeTeX but I am guessing that this version is  
also in my Texlive 2007 distribution too.


I do like the idea of defining different engines for pdftex and  
luatex, since it address one of my earlier queries about switching  
between the two with the minimals.


More tomorrow.

Warm thanks. Alan


(sorry for two different proposals - I should probably only send you a
single one)

Mojca
___
If your question is of interest to others as well, please add an  
entry to the Wiki!


maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
_

Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen


On Sep 1, 2008, at 18;22,17 , Mojca Miklavec wrote:


On Tue, Sep 2, 2008 at 12:13 AM, Alan Bowen wrote:

Mocja---I will start with the second proposal and save the first for
tomorrow.

~/Library/TeXShop/Engines/ConTeXt-luaTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context "$1"

Done. No joy. ConTeXt complains:
/Users/alancbowen/Library/TeXShop/Engines/ConTeXt-luaTeX.engine:  
line 4:

context: command not found


Oh, sorry again.
  export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin: 
$PATH


With this change in all the engines---thanks to Aditya too---ConTeXt- 
pdftex.engine and ConTeXt-XeTeX.engine now work as they should (which  
is great!)

But running ConTeXt-luatex.engine gets
MtxRun | skipping configuration for /Applications/ConTeXtMinimals/tex/ 
texmf-local/web2c from /Applications/ConTeXtMinimals/tex/texmf-cache/ 
luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/trees/ 
3beab8509a03fa29e95f93134a943a7f
MtxRun | loading configuration for /Applications/ConTeXtMinimals/tex/ 
texmf/web2c from /Applications/ConTeXtMinimals/tex/texmf-cache/luatex- 
cache/context/3fc847143b06f084e10e73c8fbdf4ae2/trees/ 
d9ef00871d7b11751a275cffd8a85753

MtxRun | error, no format found with name: cont-en
MtxRun | total runtime: 0.010


But then: you have an intel processor, right? If not, change that line
accordingly. (Check if you have binaries in that folder.)


I have an Intel processor and there is a bin folder in ./Applications/ 
ConTeXtMinimals/tex/texmf-osx-intel/



Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-09-01 Thread Alan Bowen
Mocja---Sorry! I should have added that with the ConTeXt-pdftex.engine  
and minimals now see my personal texmf too. So it is possible to get  
the desired outcome without changing setuptex.


Still, I will test out your first proposal tomorrow and report.

Cheers x 3. And many thanks.

Alan
On Sep 1, 2008, at 18;50,19 , Alan Bowen wrote:



On Sep 1, 2008, at 18;22,17 , Mojca Miklavec wrote:


On Tue, Sep 2, 2008 at 12:13 AM, Alan Bowen wrote:

Mocja---I will start with the second proposal and save the first for
tomorrow.

~/Library/TeXShop/Engines/ConTeXt-luaTeX.engine

#!/bin/bash
export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel:$PATH
export TEXMFCACHE=/Applications/ConTeXtMinimals/tex/texmf-cache
context "$1"

Done. No joy. ConTeXt complains:
/Users/alancbowen/Library/TeXShop/Engines/ConTeXt-luaTeX.engine:  
line 4:

context: command not found


Oh, sorry again.
  export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/bin: 
$PATH


With this change in all the engines---thanks to Aditya too---ConTeXt- 
pdftex.engine and ConTeXt-XeTeX.engine now work as they should  
(which is great!)

But running ConTeXt-luatex.engine gets
MtxRun | skipping configuration for /Applications/ConTeXtMinimals/ 
tex/texmf-local/web2c from /Applications/ConTeXtMinimals/tex/texmf- 
cache/luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/trees/ 
3beab8509a03fa29e95f93134a943a7f
MtxRun | loading configuration for /Applications/ConTeXtMinimals/tex/ 
texmf/web2c from /Applications/ConTeXtMinimals/tex/texmf-cache/ 
luatex-cache/context/3fc847143b06f084e10e73c8fbdf4ae2/trees/ 
d9ef00871d7b11751a275cffd8a85753

MtxRun | error, no format found with name: cont-en
MtxRun | total runtime: 0.010

But then: you have an intel processor, right? If not, change that  
line

accordingly. (Check if you have binaries in that folder.)


I have an Intel processor and there is a bin folder in ./ 
Applications/ConTeXtMinimals/tex/texmf-osx-intel/



Mojca

___
If your question is of interest to others as well, please add an  
entry to the Wiki!


maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : 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
___


Re: [NTG-context] "Float within a frame" challenge

2008-09-01 Thread Wolfgang Schuster
On Mon, Sep 1, 2008 at 10:18 PM, B. Tommy Jensen <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to accomplish the following layout with ConTeXt:
>
>  - An icon and a descriptive text should be contained together in a
> separate frame
>  - The frame should be centered and have a special background color
>  - Within the frame, the icon should be placed to the upper left.
>  - A descriptive text should "flow" around the icon within the frame,
>first part to the right and then below the icon.
>
> I have tried the following construct:
>
> %--
>
> \startframedtext
> \placefigure[left]{none}{\externalfigure[danger]}
>
> The textual description of the icon comes here. It should ideally flow to
> the right of
> the figure within the frame, but the figure actually becomes behind the
> text.
> \stopframedtext
>
> %--
>
> The problem here is that the icon and text is placed on top of each other.
>
> When removing the frame (\startframedtext command), the placement of the
> figure and the text works OK, but I don't get a frame then of course.
>
> I have studied the "It's in the details" document which explains a great
> deal about float's, but I haven't found anything covering the frame issue.
>
> Is the "startframedtext" the wrong command to use? All hints or suggestions
> (like references to other tutorials) are very welcome.

http://archive.contextgarden.net/message/20080624.074046.56e76622.en.html

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___