Re: [NTG-context] ConTeXt Minimals on Mac

2008-08-23 Thread Charles P. Schaum
Here's a start:

What's in your path? Typing set in the terminal window should tell you.

Second, did you add

source ~/path/to/context/tex/setuptex ~/path/to/context/tex

to your ~/.profile

You need to have the source work from when you log in, and that happens
in the .profile, not the .bashrc. That way, stuff under Aqua see the
right environment. If you just do cmdline, then .bashrc is OK.

That's similar to GNOME under Linux/BSD.

See what happens after you do that.

Charles

On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
> Charles,
> 
> I ran the last command (for “typical”) but now, when I try to typeset
> \starttext
> Hello World!
> \stoptext
> it appears that there is a “context” folder missing in the minimals  
> that I downloaded. That is, I get
> 
> /Applications/ConTeXtMinimals/tex/setuptex: line 75: 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"
> provide a proper tex root (like '. setuptex /something/tex')
> 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 1013
> 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
> 
> which indicates that Texlive 2007 was used.
> 
> Alan
> 
> Note: the text of ConTeXtMinimals.engine reads
> 
> #!/bin/bash
> source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ 
> ConTeXtMinimals/context/tex
> texexec "$1"
> 
> On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
> 
> > Open Applications/Utilities/Terminal from the finder
> >
> > Type (or cut n paste from Mail/Entourage) and don't put a carriage
> > return between these lines (they are wrapped automatically)
> >
> > chmod a+x
> > Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > If that fails - and it should not - try:
> >
> > sudo chmod a+x
> > Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> >
> > You can substitute:
> >
> > chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > for the above path, and you can opt to do
> >
> > chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > when only you should execute it or
> >
> > chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > if anyone in your group can execute it
> >
> > or you can be "typical" and say
> >
> > chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > and that will make everyone executable and you/your group read- 
> > writable.
> > Since you are using UNIX (as Mac OS X proudly touts) you might want to
> > snag a reference on shell scripting and basic UNIX commands. Welcome  
> > to
> > the world beyond Aqua.
> >
> > That should do it.
> >
> > Charles
> >
> > On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
> >> I have installed the Context Minimals following the newbie
> >> instructions on the wiki at contextgarden for Mac users.
> >>
> >>
> >> The instructions themselves are clear but should perhaps be updated:
> >> • the file originally downloaded is first-setup.sh not
> >> first-setup.tsh
> >> • to execute this file run ./first-setup.sh not first-setup.sh (at
> >> least, the former worked and did not return a “command not found”
> >> message).
> >>
> >>
> >> I also configured TeXShop as instructed. But now when I try to  
> >> typeset
> >> a file, I get the error message:
> >> Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does
> >> not have the executable bit set.
> >>
> >>
> >> How can I fix this?
> >>
> >>
> >> Alan
> >>
> >>
> >> Note:  I am running Mac OS X 10.5.4.
> >> ___
> >> 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] ConTeXt Minimals on Mac

2008-08-23 Thread Charles P. Schaum
Yep, it's looking for stuff in other places than you installed it.

You can confirm that by typing

which texexec

or

which context

and so forth.

On the Mac, /usr/texbin is a symbolic link that points to a directory
under /usr/local/texlive

What you need to do - and I have not installed minimals - is find out
the means to point your files to the right installation or else they
will look for the old one.

I would suggest to check the wiki until I look into things moew.

Charles


On Sat, 2008-08-23 at 13:16 -0400, Alan Bowen wrote:
> Charles,
> 
> I ran the last command (for “typical”) but now, when I try to typeset
> \starttext
> Hello World!
> \stoptext
> it appears that there is a “context” folder missing in the minimals  
> that I downloaded. That is, I get
> 
> /Applications/ConTeXtMinimals/tex/setuptex: line 75: 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"
> provide a proper tex root (like '. setuptex /something/tex')
> 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 1013
> 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
> 
> which indicates that Texlive 2007 was used.
> 
> Alan
> 
> Note: the text of ConTeXtMinimals.engine reads
> 
> #!/bin/bash
> source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ 
> ConTeXtMinimals/context/tex
> texexec "$1"
> 
> On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:
> 
> > Open Applications/Utilities/Terminal from the finder
> >
> > Type (or cut n paste from Mail/Entourage) and don't put a carriage
> > return between these lines (they are wrapped automatically)
> >
> > chmod a+x
> > Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > If that fails - and it should not - try:
> >
> > sudo chmod a+x
> > Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> >
> > You can substitute:
> >
> > chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > for the above path, and you can opt to do
> >
> > chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > when only you should execute it or
> >
> > chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > if anyone in your group can execute it
> >
> > or you can be "typical" and say
> >
> > chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
> >
> > and that will make everyone executable and you/your group read- 
> > writable.
> > Since you are using UNIX (as Mac OS X proudly touts) you might want to
> > snag a reference on shell scripting and basic UNIX commands. Welcome  
> > to
> > the world beyond Aqua.
> >
> > That should do it.
> >
> > Charles
> >
> > On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
> >> I have installed the Context Minimals following the newbie
> >> instructions on the wiki at contextgarden for Mac users.
> >>
> >>
> >> The instructions themselves are clear but should perhaps be updated:
> >> • the file originally downloaded is first-setup.sh not
> >> first-setup.tsh
> >> • to execute this file run ./first-setup.sh not first-setup.sh (at
> >> least, the former worked and did not return a “command not found”
> >> message).
> >>
> >>
> >> I also configured TeXShop as instructed. But now when I try to  
> >> typeset
> >> a file, I get the error message:
> >> Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does
> >> not have the executable bit set.
> >>
> >>
> >> How can I fix this?
> >>
> >>
> >> Alan
> >>
> >>
> >> Note:  I am running Mac OS X 10.5.4.
> >> ___
> >> 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] Kerning and Scaling

2008-08-23 Thread Charles P. Schaum
Hi Folks,

I wanted to confirm that Hans is **Correct** about font fitting. In
fact, I think that scaling is superior.

One thing I did find is that one must go real easy with the scaling,
e.g., compute the difference between the size you want/need, and see
that it isn't too great, as the test shows.

This test suite, written for plain, nevertheless will work in ConText IF
you set the conditional value \havecontexttrue, which I did below.

Some of the exact font results will, however, differ between the two.
That was just my not trying to rectify differences in the default fonts
and sizes.

I found this exercise to be fun for learning about macro expansion, as
well as dealing with multiple constraints and tail recursion.

Charles

Cut Here-

%Testing insertion of kerns and stuff

\newif\ifhavecontext

%\havecontextfalse
\havecontexttrue

% Here we have two kerns that are equally smaller and larger
\newdimen\KernSmall
\newdimen\KernLarge
\KernSmall=-0.03em
\KernLarge=0.03em

% This is Knuth's length macro from the \Tex Book
\def\length#1{\count30=0 \getlength#1\end \number\count30}
\def\getlength#1{\ifx#1\end \let\next=\relax
  \else\advance\count30 by1 \let\next=\getlength\fi \next}

% This is a modified version of the length macro.
% It's existence is to stuff kerns between any two internal tokens.
\newcount\intraword
\newdimen\intrakern
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED] \def\insertium{}\else \def\insertium{\kern
\intrakern}\fi \ifnum\intraword>0\insertium\fi \ifx#1\end \let\next=
\relax\else\advance\intraword [EMAIL PROTECTED]

% But who says you have to use only kerns?
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED] \def\insertium{}\else \def
\insertium{\StickIt}\fi \ifnum\intraword>0\insertium\fi \ifx#1\end \let
\next=\relax\else\advance\intraword [EMAIL PROTECTED]
\next}}

% SDF-1 will control the scaled box to equal the negative kerning
\newdimen\SDFONE
\newdimen\fitdimone
\newdimen\fitdimtwo

\def\fitbox#1{%
\setbox30=\hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}
\SDFONE=\wd30
\font\custfont=cmr10 scaled 1000
\setbox30=\hbox{\custfont#1}
\fitdimone=\SDFONE
\fitdimtwo=\wd30
\divide\fitdimtwo by 1000
\divide\fitdimone\fitdimtwo
\count30=\fitdimone
\font\custfont=cmr10 scaled \count30
\hbox{\custfont#1}
}

% Okay, and this is what it all comes to\dots
\ifhavecontext\starttext\fi

\fitbox{OK, Class\dots}\par
\bigskip

Garbage in, garbage out.\par
Ignore spaces and get Knuth's count of \length{Garbage in, garbage
out.}.\par
Count spaces and get Knuth's count of \length{Garbage\ in,\ garbage\
out.}.\par
\smallskip
This includes punctuation.\par
\bigskip

Here you can see the insertion points of the macro.\par
\InsertStuff{$_\wedge$}{Garbage\ in,\ garbage\ out.}
\medskip Hungry? Want {\bf \InsertStuff{$^{Snacks}$}{Food}}?
\medskip Warning! You can put funky stuff in the insertium, but not in
the text.\par If you do that, \TeX\ will either produce an error or give
you strange results.
\bigskip


\newdimen\compn
\newdimen\comps
\newdimen\compl

Inserting kerns does have an effect:\par
\smallskip
Length of ``Garbage in, garbage out'' is \setbox30=\hbox{Garbage in,
garbage out}\the\wd30 \compn=\wd30\par

Length of ``\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out}'' is
\setbox30=\hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out}}
\the\wd30 \comps=\wd30\par

Length of ``\InsertKern{\KernLarge}{Garbage\ in,\ garbage\ out}'' is
\setbox30=\hbox{\InsertKern{\KernLarge}{Garbage\ in,\ garbage\ out}}
\the\wd30 \compl=\wd30\par
\bigskip

Size matters\dots
\smallskip
{\tt N:} Garbage in, garbage out.\par
{\tt S:} {\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}\par
{\tt L:} {\InsertKern{\KernLarge}{Garbage\ in,\ garbage\ out.}\par
\bigskip

Which looks better? Scaled \the\KernSmall
\smallskip
Negative kern insertion (top) vs. font scaling (bottom):\par
\ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par
\ \fitbox{Garbage in, garbage out.}
\bigskip

I had in mind something a little more radical\dots
\KernSmall=-0.07em
\ Scaled \the\KernSmall
\smallskip
Negative kern insertion (top) vs. font scaling (bottom):\par
\ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par
\ \fitbox{Garbage in, garbage out.}
\bigskip

This is just sick\dots\par
\KernSmall=-0.1em
Scaled \the\KernSmall
\smallskip
Negative kern insertion (top) vs. font scaling (bottom):\par
\ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par
\ \fitbox{Garbage in, garbage out.}
\smallskip
\KernSmall=-0.2em
Scaled \the\KernSmall
\smallskip
Negative kern insertion (top) vs. font scaling (bottom):\par
\ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par
\ \fitbox{Garbage in, garbage out.}
\smallskip
\KernSmall=-0.3em
Scaled \the\KernSmall
\smallskip
Negative kern insertion (top) vs. font scaling (bottom):\par
\ \ \ \hbox{\InsertKern{\KernSmall}{Garbage\ in,\ garbage\ out.}}\par
\ \fitbox{Garbage in, garbage out.}

\ifhavecontex

Re: [NTG-context] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 23 Aug 2008 14:13:09 -0600, Alan Stone  
<[EMAIL PROTECTED]> wrote:

>> There are different levels of folding, 0--8: Alt-0, Alt-1,  Alt-8.
>> Alt-0 collapses all, use Alt-Shift- to uncollapse to the desired  
>> degree.
>
> These work ok indeed. Nevertheless, the folding marks and foldings  
> themselves
> run awkwardly in some tex files.

Are you using TeX or ConTeXt from the language menu?

>
> Back to readme.txt :
>
> ---
> 2) Folding
>
> a) ... All \start-stops are foldable, and you can easily
> add your own in the User-Defined-Language dialog; just select "ConTeXt"
> and you can edit all entries.
> ---
>
> Strange... the "User Define Dialog" "User Language" drop down box
> has only one entry: "User Define Language". There is nothing else, no
> "ConTeXt" entry.

I suspect that your userDefineLang.xml is not being recognized and that  
you are using the default TeX setup. Don't know why... Are you sure the  
package is installed correctly? Lookk for where Npp installs the original  
userDefineLang.xml, then overide it with mine.

One thing I have noticed is that the default TeX language support in Npp  
is much better than in past versions. Folding is not so good, though.

Note that Hans wrote the original TeX lexer for scite that Npp uses by  
default (with some modifications). So probably there has been some  
development of this lexer on the scite side of things.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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 Package for Notepad++ v. 5.0.3

2008-08-23 Thread Alan Stone
Thanks all.

>There are different levels of folding, 0--8: Alt-0, Alt-1,  Alt-8.
>Alt-0 collapses all, use Alt-Shift- to uncollapse to the desired degree.

These work ok indeed. Nevertheless, the folding marks and foldings
themselves
run awkwardly in some tex files.

Back to readme.txt :

---
2) Folding

a) ... All \start-stops are foldable, and you can easily
add your own in the User-Defined-Language dialog; just select "ConTeXt"
and you can edit all entries.
---

Strange... the "User Define Dialog" "User Language" drop down box
has only one entry: "User Define Language". There is nothing else, no
"ConTeXt" entry.

Has this feature changed since Npp 4.2 ?

Alan

On Sat, Aug 23, 2008 at 9:03 PM, Idris Samawi Hamid ادريس سماوي حامد <
[EMAIL PROTECTED]> wrote:

> On Sat, 23 Aug 2008 10:56:03 -0600, Alan Stone
> <[EMAIL PROTECTED]> wrote:
>
> > Two other questions, if I may...
> >
> > (1) The folding feature behaves strangely.
> >
> > - Instead of folding it collapses everything what's underneath.
> >
> > - Once a folding section gets initiated from within the ConTeXt setup
> > area (
> > at a \startsomething command ), it runs straight down to \stoptext
> > instead
> > of from every \startsomething to \stopsomething
>
> There are different levels of folding, 0--8: Alt-0, Alt-1,  Alt-8.
> Alt-0 collapses all, use Alt-Shift- to uncollapse to the desired degree.
>
> > (2) Preferences -> "New Document" tab
> >
> > * Format: Windows - Unix - Mac -> are (*.tex) files between these OSs
> > incompatible ?
>
> Should make absolutely no difference, since TeX looks for a blank line to
> mark paragraph breaks -- or a '\par' -- and does not care about linebreak
> conventions
>
> OTOH: Maybe support will be added for unicode parsep at some point...
>
> > * Encoding: UTF 8, UTF 8 with BOM -> what must be selected for ConTeXt ?
>
> Either will work for mkiv. If you enable the utf-8 regime in mkii that
> should also work.
>
> > Looks like great editor nevertheless, much better than SciTE.Thanks again
> > for the ConTeXt package.
>
> You are welcome :-)
>
> Best wishes
> Idris
>
> --
> Professor Idris Samawi Hamid, Editor-in-Chief
> International Journal of Shi`i Studies
> Department of Philosophy
> Colorado State University
> Fort Collins, CO 80523
>
___
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 Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 23 Aug 2008 10:56:03 -0600, Alan Stone  
<[EMAIL PROTECTED]> wrote:

> Two other questions, if I may...
>
> (1) The folding feature behaves strangely.
>
> - Instead of folding it collapses everything what's underneath.
>
> - Once a folding section gets initiated from within the ConTeXt setup  
> area (
> at a \startsomething command ), it runs straight down to \stoptext  
> instead
> of from every \startsomething to \stopsomething

There are different levels of folding, 0--8: Alt-0, Alt-1,  Alt-8.  
Alt-0 collapses all, use Alt-Shift- to uncollapse to the desired degree.

> (2) Preferences -> "New Document" tab
>
> * Format: Windows - Unix - Mac -> are (*.tex) files between these OSs
> incompatible ?

Should make absolutely no difference, since TeX looks for a blank line to  
mark paragraph breaks -- or a '\par' -- and does not care about linebreak  
conventions

OTOH: Maybe support will be added for unicode parsep at some point...

> * Encoding: UTF 8, UTF 8 with BOM -> what must be selected for ConTeXt ?

Either will work for mkiv. If you enable the utf-8 regime in mkii that  
should also work.

> Looks like great editor nevertheless, much better than SciTE.Thanks again
> for the ConTeXt package.

You are welcome :-)

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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 Package for Notepad++ v. 5.0.3

2008-08-23 Thread Alan Stone
On Sat, Aug 23, 2008 at 5:23 PM, Idris Samawi Hamid ادريس سماوي حامد <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> On Sat, 23 Aug 2008 03:29:56 -0600, Alan Stone
> <[EMAIL PROTECTED]> wrote:
>
> > (1) FYI, Application Data.zip also contains a 'Program Files' folder
> > which has the same contents as 'Program Files.zip'
>
> Strange; I'll correct it.
>
> > From readme.txt :
> > (2) 9. Copy the directory Program Files\Notepad++ to Program Files
> > Shouldn't it be "copy the *contents* of these (sub)directories to their
> > corresponding
> > C:\Program Files\Notepad++ (sub)directories" ?
>
> Put another way: Drop "Program Files\Notepad++" onto "C:\Program Files"


I somehow thought this operation would replace C:\Program\Notepad++ ...
which isn't.
Hey, I learned something new about how Windows works.  :O)


> > (3) 10. Copy the directory Application Data\Notepad++ to Application
> > Data.
> > To Windows XP's C:\Documents and Settings\(username)\Application Data or
> > C:\Documents and Settings\All Users\Application Data ?
>
> See earlier in the readme: "in what follows I assume that all
> configuration files are saved
> in \\Application Data\Notepad++"
>

Missed that one. Must have been speeding (reading).


> Thanks for the comments and


You're welcome.

Two other questions, if I may...

(1) The folding feature behaves strangely.

- Instead of folding it collapses everything what's underneath.

- Once a folding section gets initiated from within the ConTeXt setup area (
at a \startsomething command ), it runs straight down to \stoptext instead
of from every \startsomething to \stopsomething

(2) Preferences -> "New Document" tab

* Format: Windows - Unix - Mac -> are (*.tex) files between these OSs
incompatible ?

* Encoding: UTF 8, UTF 8 with BOM -> what must be selected for ConTeXt ?

Looks like great editor nevertheless, much better than SciTE. Thanks again
for the ConTeXt package.

Best,
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] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Sat, 23 Aug 2008 10:58:44 -0600, Alan Stone  
<[EMAIL PROTECTED]> wrote:

> Correction...
>
>> * Encoding: UTF 8, UTF 8 with BOM -> what must be selected for ConTeXt ?
>
> What must be selected for ConTeXt-MK IV ?

Either will work fine, since luatex always assumes utf-8 input. My own Npp  
setup defaults to utf-8 (with BOM) for new docs.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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 Minimals on Mac

2008-08-23 Thread Alan Bowen
Charles,

I ran the last command (for “typical”) but now, when I try to typeset
\starttext
Hello World!
\stoptext
it appears that there is a “context” folder missing in the minimals  
that I downloaded. That is, I get

/Applications/ConTeXtMinimals/tex/setuptex: line 75: 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"
provide a proper tex root (like '. setuptex /something/tex')
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 1013
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

which indicates that Texlive 2007 was used.

Alan

Note: the text of ConTeXtMinimals.engine reads

#!/bin/bash
source /Applications/ConTeXtMinimals/tex/setuptex /Applications/ 
ConTeXtMinimals/context/tex
texexec "$1"

On Aug 23, 2008, at 12;20,09 , Charles P. Schaum wrote:

> Open Applications/Utilities/Terminal from the finder
>
> Type (or cut n paste from Mail/Entourage) and don't put a carriage
> return between these lines (they are wrapped automatically)
>
> chmod a+x
> Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
>
> If that fails - and it should not - try:
>
> sudo chmod a+x
> Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine
>
>
> You can substitute:
>
> chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
>
> for the above path, and you can opt to do
>
> chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
>
> when only you should execute it or
>
> chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
>
> if anyone in your group can execute it
>
> or you can be "typical" and say
>
> chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine
>
> and that will make everyone executable and you/your group read- 
> writable.
> Since you are using UNIX (as Mac OS X proudly touts) you might want to
> snag a reference on shell scripting and basic UNIX commands. Welcome  
> to
> the world beyond Aqua.
>
> That should do it.
>
> Charles
>
> On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
>> I have installed the Context Minimals following the newbie
>> instructions on the wiki at contextgarden for Mac users.
>>
>>
>> The instructions themselves are clear but should perhaps be updated:
>> • the file originally downloaded is first-setup.sh not
>> first-setup.tsh
>> • to execute this file run ./first-setup.sh not first-setup.sh (at
>> least, the former worked and did not return a “command not found”
>> message).
>>
>>
>> I also configured TeXShop as instructed. But now when I try to  
>> typeset
>> a file, I get the error message:
>> Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does
>> not have the executable bit set.
>>
>>
>> How can I fix this?
>>
>>
>> Alan
>>
>>
>> Note:  I am running Mac OS X 10.5.4.
>> ___
>> 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
> ___

___
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 Package for Notepad++ v. 5.0.3

2008-08-23 Thread Alan Stone
Correction...

>* Encoding: UTF 8, UTF 8 with BOM -> what must be selected for ConTeXt ?

What must be selected for ConTeXt-MK IV ?

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] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Mohamed Bana
Alan Stone  gmail.com> writes:

> 
> 
> Hi Idris,
>  
> (1) FYI, Application Data.zip also contains a 'Program Files' folder which has
the same contents as 'Program Files.zip'
>  
> From readme.txt :
>  
> (2) 9. Copy the directory Program Files\Notepad++ to Program Files
>  
> Shouldn't it be "copy the *contents* of these (sub)directories to their
corresponding
> C:\Program Files\Notepad++ (sub)directories" ?
>  
> (3) 10. Copy the directory Application Data\Notepad++ to Application Data.
>  
> To Windows XP's C:\Documents and Settings\(username)\Application Data or
> C:\Documents and Settings\All Users\Application Data ?
>  
> Best,
> Alan
> 

2) drag Notepad++ to Program Files, it'll prompt you to merge/override the
files, select yes.  The same applies for the rest of the top level folders.

3) typing %APPDATA% into the explorer or run command takes you to the folder
you're looking for.


Maybe someone should make a screencast :)


___
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 Minimals on Mac

2008-08-23 Thread Charles P. Schaum
Open Applications/Utilities/Terminal from the finder

Type (or cut n paste from Mail/Entourage) and don't put a carriage
return between these lines (they are wrapped automatically)

chmod a+x
Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine

If that fails - and it should not - try:

sudo chmod a+x
Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine


You can substitute:

chmod a+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine

for the above path, and you can opt to do

chmod u+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine

when only you should execute it or

chmod g+x ~/Library/TeXShop/Engines/ConTeXtMinimals.engine

if anyone in your group can execute it

or you can be "typical" and say

chmod 775 ~/Library/TeXShop/Engines/ConTeXtMinimals.engine

and that will make everyone executable and you/your group read-writable.
Since you are using UNIX (as Mac OS X proudly touts) you might want to
snag a reference on shell scripting and basic UNIX commands. Welcome to
the world beyond Aqua.

That should do it.

Charles

On Sat, 2008-08-23 at 09:23 -0400, Alan Bowen wrote:
> I have installed the Context Minimals following the newbie
> instructions on the wiki at contextgarden for Mac users.
> 
> 
> The instructions themselves are clear but should perhaps be updated:
> • the file originally downloaded is first-setup.sh not
>  first-setup.tsh
> • to execute this file run ./first-setup.sh not first-setup.sh (at
> least, the former worked and did not return a “command not found”
> message). 
> 
> 
> I also configured TeXShop as instructed. But now when I try to typeset
> a file, I get the error message:
> Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does
> not have the executable bit set.
> 
> 
> How can I fix this?
> 
> 
> Alan
> 
> 
> Note:  I am running Mac OS X 10.5.4.
> ___
> 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] ConTeXt Package for Notepad++ v. 5.0.3

2008-08-23 Thread Idris Samawi Hamid ادريس سماوي ح امد
Hi,

On Sat, 23 Aug 2008 03:29:56 -0600, Alan Stone  
<[EMAIL PROTECTED]> wrote:

> (1) FYI, Application Data.zip also contains a 'Program Files' folder  
> which has the same contents as 'Program Files.zip'

Strange; I'll correct it.

> From readme.txt :
> (2) 9. Copy the directory Program Files\Notepad++ to Program Files
> Shouldn't it be "copy the *contents* of these (sub)directories to their  
> corresponding
> C:\Program Files\Notepad++ (sub)directories" ?

Put another way: Drop "Program Files\Notepad++" onto "C:\Program Files"

> (3) 10. Copy the directory Application Data\Notepad++ to Application  
> Data.
> To Windows XP's C:\Documents and Settings\(username)\Application Data or
> C:\Documents and Settings\All Users\Application Data ?

See earlier in the readme: "in what follows I assume that all  
configuration files are saved
in \\Application Data\Notepad++"

Thanks for the comments and

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] ConTeXt Minimals on Mac

2008-08-23 Thread Alan Bowen
I have installed the Context Minimals following the newbie  
instructions on the wiki at contextgarden for Mac users.


The instructions themselves are clear but should perhaps be updated:
• the file originally downloaded is first-setup.sh not  first-setup.tsh
• to execute this file run ./first-setup.sh not first-setup.sh (at  
least, the former worked and did not return a “command not found”  
message).


I also configured TeXShop as instructed. But now when I try to typeset  
a file, I get the error message:
	Users/alancbowen/Library/TeXShop/Engines/ConTeXtMinimals.engine does  
not have the executable bit set.


How can I fix this?

Alan

Note:  I am running Mac OS X 10.5.4.___
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] Changing sections, formula,... numbering order

2008-08-23 Thread Mehdi Omidali
Thank you Khaled.
As you said we don't need \textdir in Xetex and I can use \pardir TRT
in this situation. I thought that maybe there is a simple setup for
sectioning number in context that I am not aware of. Any way, I have
translated "The not so short introduction to latex" to farsi and also
I am translating "Context an excursion" (due to a number of problems,
somebody told me to use context+xetex for this purpose but now it
seems that I have to complete the translation with luatex) and as you
probably know luatex has a problem with \placeformula in TRT mode (I
don't know if this problem has been resolved).
Thank again.

On 8/23/08, Khaled Hosny <[EMAIL PROTECTED]> wrote:
> On Sat, Aug 23, 2008 at 12:31:38AM +0300, Khaled Hosny wrote:
>> On Wed, Aug 20, 2008 at 05:49:31PM +0330, Mehdi Omidali wrote:
>> > Hi everyone,
>> > I want to use context+xetex for right-to-left typesetting and need to
>> > know if it is possible to use the command \pagedir TRT in this
>> > situation. (I tested that apparently only \pardir TRT is active).
>> > If the answer of the above question is negative I would like to know
>> > how can I change numbering direction of sections, formulas, etc.
>> > Thanks
>>
>> \pardir \textdir etc. are LuaTeX specific, it seems that CpnTeXt
>> emulates \textdir TRT for XeTeX/e-TeX, dunno how to set par direction to
>> RTL in XeTeX though, may be ConTeXt should emulate \pardir as well or
>> may be there is some way to do this that I'm not aware of.
>
> Sorry I got confused, \pardir is what we have, actually you don't need
> \textdir with XeTeX since it will render individual Arabic words from
> right to left correctly and automatically.
>
>
> Regards,
>  Khaled
>
> --
>  Khaled Hosny
>  Arabic localizer and member of Arabeyes.org team
>
___
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] Problem in upgrading to the latest context

2008-08-23 Thread Wolfgang Schuster

Am 23.08.2008 um 12:58 schrieb Mehdi Omidali:

> Hi,
> I use ubuntu and tried to update to the latext context with
> sudo ctxtools --updatecontext
> It went smoothly but after I tried
> sudo texexec --make --luatx en
> I got an error complaining that it can not find context.tex.
> Any idea?


mtxrun --selfupdate
luatools --selfupdate

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
___


[NTG-context] Problem in upgrading to the latest context

2008-08-23 Thread Mehdi Omidali
Hi,
I use ubuntu and tried to update to the latext context with
sudo ctxtools --updatecontext
It went smoothly but after I tried
sudo texexec --make --luatx en
I got an error complaining that it can not find context.tex.
Any idea?
___
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] SciTE in ConTeXt setup

2008-08-23 Thread Alan Stone
Found it.

TeX was not selected in the language menu.
( SciTE doesn't check mark the selected language so I didn't spot it at
first )

However now, when compiling I get ...   :O)

>texmfstart texexec --lua mini01.tex
TeXExec | processing document 'mini01.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file mini01.top
TeXExec | using randomseed 1346
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en
LuaTools | using format name:
/opt/context/tex/texmf-cache/luatex-cache/context/9d2177de8a31df158f21be632b7742b7/formats/cont-en.fmt
LuaTools | no luc/lua with name:
/opt/context/tex/texmf-cache/luatex-cache/context/9d2177de8a31df158f21be632b7742b7/formats/cont-en
LuaTools |
LuaTools | runtime: 0.014 seconds

TeXUtil | unable to locate mini01.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | TeX run 2
TeXExec | writing option file mini01.top
TeXExec | using randomseed 1346
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en
LuaTools | using format name:
/opt/context/tex/texmf-cache/luatex-cache/context/9d2177de8a31df158f21be632b7742b7/formats/cont-en.fmt
LuaTools | no luc/lua with name:
/opt/context/tex/texmf-cache/luatex-cache/context/9d2177de8a31df158f21be632b7742b7/formats/cont-en
LuaTools |
LuaTools | runtime: 0.014 seconds

TeXUtil | unable to locate mini01.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 0.141179
>Exit code: 0

SciTE doesn't locate its own generated files.

Fascinating !

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] SciTE in ConTeXt setup

2008-08-23 Thread Alan Stone
Hi Idris,

I open a terminal window and type

scite

as follows (incl. terminal window output messages):

Setting "/opt/context/tex" as TEXROOT.
[EMAIL PROTECTED]:/opt/context/tex$ scite

then SciTE launches but not in the way I expected.

>did you use the cscite script to launch scite or the setuptex script?

Uh ? What are these scripts ?

Best,
Alan

On Sat, Aug 23, 2008 at 3:53 AM, Idris Samawi Hamid
<[EMAIL PROTECTED]>wrote:

> Hi Alan,
>
> On Fri, 22 Aug 2008 14:16:26 -0600, Alan Stone
> <[EMAIL PROTECTED]> wrote:
>
> > Launching
> >
> >> texexec --check
> >
> > from the SciTE output window gives
> >
> > sh: texexec: not found
> >> Exit code: 127
> >
> > ruby, tidy, xsltproc, gv and rxvt are installed
> >
> > texexec.rb is in /opt/context/tex/texmf-context/scripts/context/ruby
> >
> > What's missing ?
>
> Not presently on linux etc. but did you use the cscite script to launch
> scite or the setuptex script?
>
> Best wishes
> Idris
>
> --
> Professor Idris Samawi Hamid, Editor-in-Chief
> International Journal of Shi`i Studies
> Department of Philosophy
> Colorado State University
> Fort Collins, CO 80523
>
___
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 Package for Notepad++ v. 5.0.3

2008-08-23 Thread Alan Stone
Hi Idris,

(1) FYI, Application Data.zip also contains a 'Program Files' folder which
has the same contents as 'Program Files.zip'

From readme.txt :

(2) 9. Copy the directory Program Files\Notepad++ to Program Files

Shouldn't it be "copy the *contents* of these (sub)directories to their
corresponding
C:\Program Files\Notepad++ (sub)directories" ?

(3) 10. Copy the directory Application Data\Notepad++ to Application Data.

To Windows XP's C:\Documents and Settings\(username)\Application Data or
C:\Documents and Settings\All Users\Application Data ?

Best,
Alan
On Fri, Aug 22, 2008 at 6:04 PM, Idris Samawi Hamid ادريس سماوي حامد <
[EMAIL PROTECTED]> wrote:

> On Fri, 22 Aug 2008 09:00:00 -0600, <[EMAIL PROTECTED]> wrote:
>
> > Seems like Idris forgot to include the readme
>
> thnx, i uploaded a new version with the updated readme. I'll polish it
> later.
>
> Best wishes
> Idris
>
> --
> Professor Idris Samawi Hamid, Editor-in-Chief
> International Journal of Shi`i Studies
> Department of Philosophy
> Colorado State University
> Fort Collins, CO 80523
>
___
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
___