Re: [NTG-context] Strange page breaks

2012-06-19 Thread Andreas Schneider
On Monday, June 18, 2012, at 12:48 Wolfgang Schuster wrote:
 You can tell context to force a page break when there isn’t enough space for 
 the heading.

 \setuphead[subsubsubject][before={\testpage[6]\blank[big]}]

 Wolfgang

Nice, that does the trick! Thank you!

-- 
Best Regards,
Andreas

pgpaQqC7LdtBj.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] \box0 to Lua

2012-06-19 Thread Hans Hagen

On 19-6-2012 07:53, Philipp Gesang wrote:

Ahoj!

···date: 2012-06-18, Monday···from: Procházka Lukáš Ing. - Pontex s. r. 
o.···


On Mon, 18 Jun 2012 16:56:56 +0200, Jaroslav Hajtmar hajt...@gyza.cz wrote:


Ahoj...
To bych ti rekl ...  :-)
  tex.box[0].height


... To ale získáš jen výšku boxu, ne?

Co když ten hbox chceš vysázet Luou na nějakou šířku?


Na to budeš potřebovat node.hpack() (luatexref-t.pdf, s. 95).


\starttext
  \startluacode
context(typesetters.hpack(Na to budeš potřebovat 
'typesetters.hpack'))

  \stopluacode
\stoptext


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


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

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

[NTG-context] setupinteraction and macroexpansion

2012-06-19 Thread Andreas Schneider
Hello,

I'm  a bit lost with macro expansion here. I try to use some macros to
set  the title (and subject) of the PDF document. The attached minimal
example shows what I want to achieve.

I tried def, edef, gdef, define, explicit expand, expandoneafter, etc.
etc.  without  any  success. Whatever I do, the title field in the PDF
metadata  always  contains  the  raw \date... command instead of the
formatted date.

Any suggestions?

-- 
Best Regards,
Andreas\edef\mytitle{Some date: \date[y=2012,m=6,d=19]}

\setupinteraction[title=\mytitle]

\starttext

\subject\mytitle

Hello World

\stoptext

pgpT4e9YDWt2T.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] setupinteraction and macroexpansion

2012-06-19 Thread Wolfgang Schuster

Am 19.06.2012 um 10:39 schrieb Andreas Schneider:

 Hello,
 
 I'm  a bit lost with macro expansion here. I try to use some macros to
 set  the title (and subject) of the PDF document. The attached minimal
 example shows what I want to achieve.
 
 I tried def, edef, gdef, define, explicit expand, expandoneafter, etc.
 etc.  without  any  success. Whatever I do, the title field in the PDF
 metadata  always  contains  the  raw \date... command instead of the
 formatted date.
 
 Any suggestions?

You can’t use \date (or any other unexpandable command) in an expandable 
context.

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

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


Re: [NTG-context] \box0 to Lua

2012-06-19 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thanks Philipp and Hans for hints, I'll keep on trying.

BTW: I'd never guess how Czech will become popular ;)

Best regards,

Lukas


Na to budeš potřebovat node.hpack() (luatexref-t.pdf, s. 95).


\starttext
   \startluacode
 context(typesetters.hpack(Na to budeš potřebovat 'typesetters.hpack'))
   \stopluacode
\stoptext



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

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

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

Re: [NTG-context] \box0 to Lua

2012-06-19 Thread Philipp Gesang
···date: 2012-06-19, Tuesday···from: Hans Hagen···

 On 19-6-2012 07:53, Philipp Gesang wrote:
 Ahoj!
 
 ···date: 2012-06-18, Monday···from: Procházka Lukáš Ing. - Pontex s. r. 
 o.···
 
 On Mon, 18 Jun 2012 16:56:56 +0200, Jaroslav Hajtmar hajt...@gyza.cz 
 wrote:
 
 Ahoj...
 To bych ti rekl ...  :-)
   tex.box[0].height
 
 ... To ale získáš jen výšku boxu, ne?
 
 Co když ten hbox chceš vysázet Luou na nějakou šířku?
 
 Na to budeš potřebovat node.hpack() (luatexref-t.pdf, s. 95).
 
 \starttext
   \startluacode
 context(typesetters.hpack(Na to budeš potřebovat
 'typesetters.hpack'))
   \stopluacode
 \stoptext

Now this is awesome. Never knew you could pass nodes directly to
context(). (Otoh it seems like you can’t pass the value of
typesetters.hpack() to node.write() anymore, even though it is
indicated in the comments.)

But now you need to set the width manually:
···
\starttext
  \startluacode
local hbox = typesetters.hpackHello World!
hbox.width = 2*hbox.width
contextfoo
context(hbox)
contextbar
  \stopluacode
\stoptext
···

Philipp


 
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgput2jU2tz40.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Hans Hagen

On 19-6-2012 06:54, Bill Meahan wrote:

I'm trying to get the SciTE lexers that come with the ConTeXt
distribution working but I'm not having much luck. SciTE certainly
processes the ConTeXt start-up script but never does any highlighting.

I always get the warning that lpeg is not loaded but I cannot find any
separate lpeg.properties file or lpeg.lua file so I don't know how to
get it imported and active to run the lexers. Any suggestions?

Interestingly, the lexers work just fine in Textadept but I haven't
quite figured out how to get them to load automatically. I have to
manually select the lexer but it works fine once I do.

I'm inclined to go the Textadept route and build a nice snippets file
and Adeptsense support but I'd like to see things running in SciTE, too.


You have to change some configuration files but as that situation seems 
to change every now and then I wait with providing extra files for 
textadept till it's more stable.


(Textadept has no realtime log pane so I cannot use it here without 
sacrificing too much convenience.)



Right now I'm using Emacs to do my editing but AUCTeX does a poor job of
supporting ConTeXt and when I asked about future plans on the AUCTeX
mailing list, I got a snarky, sarcastic reply that code doesn't change
itself. Typical FSF attitude, I see. If I'm going to have to write my
own support, Lua is much closer to the languages I've used before than
elisp so it should be considerably easier.

Of course, I'll pass on anything I come up with to the ConTeXt community.


concerning scite ... on windows it boils down to

- installing scite
- copying the scintillua lexer dir to the wscite path
- copying the context/data/scite directory to teh wscite dir

on linux it's a bit more complex as you need to figure out where scite 
keeps its properties files and that's sort of hard coded in the binary


(but it does work on linux)

on osx it's not working as there is no lpeg support provided there 
(unfortunately)


Hans


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


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

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


Re: [NTG-context] setupinteraction and macroexpansion

2012-06-19 Thread Andreas Schneider
On Tuesday, June 19, 2012, at 10:42 Wolfgang Schuster wrote:

 Am 19.06.2012 um 10:39 schrieb Andreas Schneider:

 Hello,
 
 I'm  a bit lost with macro expansion here. I try to use some macros to
 set  the title (and subject) of the PDF document. The attached minimal
 example shows what I want to achieve.
 
 I tried def, edef, gdef, define, explicit expand, expandoneafter, etc.
 etc.  without  any  success. Whatever I do, the title field in the PDF
 metadata  always  contains  the  raw \date... command instead of the
 formatted date.
 
 Any suggestions?

 You can’t use \date (or any other unexpandable command) in an expandable 
 context.

 Wolfgang

Hmm  I  see, so \date is simply not possible for that case. Ok, thanks
for  explaining  that  I wasn't aware (until now) that commands can be
unexpandable.

Thanks again! :-)

-- 
Best Regards,
Andreas

pgpkKmwFL3Lcy.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] setupinteraction and macroexpansion

2012-06-19 Thread Wolfgang Schuster

Am 19.06.2012 um 10:59 schrieb Andreas Schneider:

 On Tuesday, June 19, 2012, at 10:42 Wolfgang Schuster wrote:
 
 Am 19.06.2012 um 10:39 schrieb Andreas Schneider:
 
 Hello,
 
 I'm  a bit lost with macro expansion here. I try to use some macros to
 set  the title (and subject) of the PDF document. The attached minimal
 example shows what I want to achieve.
 
 I tried def, edef, gdef, define, explicit expand, expandoneafter, etc.
 etc.  without  any  success. Whatever I do, the title field in the PDF
 metadata  always  contains  the  raw \date... command instead of the
 formatted date.
 
 Any suggestions?
 
 You can’t use \date (or any other unexpandable command) in an expandable 
 context.
 
 Wolfgang
 
 Hmm  I  see, so \date is simply not possible for that case. Ok, thanks
 for  explaining  that  I wasn't aware (until now) that commands can be
 unexpandable.

To explain it in a simple way: Commands which can be used in 
\edef\comecommand{…}
are expandable and commands which fail in \edef are unexpandable. It’s also 
important
to know that commands with optional arguments are always unexpandable because
the underlying mechanism to check for the optional bracket, brace etc. can’t be 
used
in \edef, you can also make a expandable command (e.g. \def\foo{FOO}) 
unexpandable
by adding \unexpanded in front of the \def (e.g. \unexpanded\def\bar{BAR}).

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

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


[NTG-context] combined style?

2012-06-19 Thread Meer, H. van der
I had hoped to be able to combine style features in parameters, in this manner:
\macro[param={a,b}]. Doing this with foregroundstyle did not work, see the 
following examples:

\framed[foregroundstyle=italic]{ABCD} = typesets in italic
\framed[foregroundstyle=small]{ABCD} = typesets small
\framed[foregroundstyle={small,italic}]{ABCD} = typesets not in small-italic 
but first small,italic followed by the framed ABCD

Of course the effect wanted can be obtained by 
\framed[foregroundstyle={\tfx\it}]{ABCD}

But my problem is the fact that I would like to use style settings from within 
XML-nodes in the following manner:
node style=small,italic 
leading to somewhere a call of \setupsomething[foregroundstyle={small,italic}].
It is a pity that node style=small style=italic does not work, because 
with two successive calls
\setupsomething[foregroundstyle=small]
\setupsomething[foregroundstyle=italic]
the first setting is lost.

Translating internally smallitallic to \tfx\it is a remote possibility, but 
then each and every combination has to be provided for. There are simply too 
many of them if one wants to combine size (small,large) type 
(mono,calligraphic,serif,sansserif) and (bold, italic, slanted, normal).

Is there a solution?

Hans van der Meer



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

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


Re: [NTG-context] combined style?

2012-06-19 Thread Wolfgang Schuster

Am 19.06.2012 um 12:44 schrieb Meer, H. van der:

 I had hoped to be able to combine style features in parameters, in this 
 manner:
 \macro[param={a,b}]. Doing this with foregroundstyle did not work, see the 
 following examples:
 
 \framed[foregroundstyle=italic]{ABCD} = typesets in italic
 \framed[foregroundstyle=small]{ABCD} = typesets small
 \framed[foregroundstyle={small,italic}]{ABCD} = typesets not in small-italic 
 but first small,italic followed by the framed ABCD
 
 Of course the effect wanted can be obtained by 
 \framed[foregroundstyle={\tfx\it}]{ABCD}
 
 But my problem is the fact that I would like to use style settings from 
 within XML-nodes in the following manner:
 node style=small,italic 
 leading to somewhere a call of 
 \setupsomething[foregroundstyle={small,italic}].
 It is a pity that node style=small style=italic does not work, because 
 with two successive calls
 \setupsomething[foregroundstyle=small]
 \setupsomething[foregroundstyle=italic]
 the first setting is lost.
 
 Translating internally smallitallic to \tfx\it is a remote possibility, but 
 then each and every combination has to be provided for. There are simply too 
 many of them if one wants to combine size (small,large) type 
 (mono,calligraphic,serif,sansserif) and (bold, italic, slanted, normal).
 
 Is there a solution?

\definealternativestyle[smallitalic][\itx][\itx]

\starttext

\framed[foregroundstyle=small]{text}
\framed[foregroundstyle=italic]{text}
\framed[foregroundstyle=smallitalic]{text}

\stoptext

or

\starttext

\scratchtoks\emptytoks
\appendtoks\tx\to\scratchtoks % check if the style attribute contains “small”
\appendtoks\it\to\scratchtoks % check if the style attribute contains “italic”

\framed[foregroundstyle=\the\scratchtoks]{text}

\stoptext

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

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


[NTG-context] [OT]...I'm sorry for the others, really.

2012-06-19 Thread luigi scarso
http://wiki.contextgarden.net/User:Luigi.scarso/knuth

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

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


Re: [NTG-context] [OT]...I'm sorry for the others, really.

2012-06-19 Thread Otared Kavian
Very nice pictures: Thanks for sharing!

On 19 juin 2012, at 17:55, luigi scarso wrote:

 http://wiki.contextgarden.net/User:Luigi.scarso/knuth
 
 -- 
 luigi


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

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


Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Bill Meahan

On 06/19/2012 04:58, Hans Hagen wrote:

On 19-6-2012 06:54, Bill Meahan wrote:




(Textadept has no realtime log pane so I cannot use it here without
sacrificing too much convenience.)



Might be fixable, at least on *nix system. Textadept 5.4 does allow 
running processes in a subshell. I'll have to investigate a bit.




on linux it's a bit more complex as you need to figure out where scite
keeps its properties files and that's sort of hard coded in the binary

(but it does work on linux)


Finding the properties files is pretty easy (/usr/local/share/scite/), 
Not sure where to put the lexers directory, though. I changed 
ScITEGlobal.properties per the instructions. There is no lpeg.properties 
file, nothing I've found (so far) in the global file to enable lpeg 
support. Took a scan of the source code and didn't see anything 
blindingly obvious. I'll keep searching.




on osx it's not working as there is no lpeg support provided there
(unfortunately)


I'm on a FreeBSD-9.0 system. Since OSX is based on FreeBSD perhaps it is 
really there but it will take whatever I find out to make it active.


I'll let everyone know what I find. Thanks for the response.

--
Bill Meahan K8QN

The pessimist complains about the wind;
 the optimist expects it to change;
 the realist adjusts the sails.

-- William Arthur Ward

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Hans Hagen

On 19-6-2012 18:48, Bill Meahan wrote:


Finding the properties files is pretty easy (/usr/local/share/scite/),
Not sure where to put the lexers directory, though. I changed
ScITEGlobal.properties per the instructions. There is no lpeg.properties
file, nothing I've found (so far) in the global file to enable lpeg
support. Took a scan of the source code and didn't see anything
blindingly obvious. I'll keep searching.


you need to fetch it from

http://foicica.com/scintillua/

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


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

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


Re: [NTG-context] [OT]...I'm sorry for the others, really.

2012-06-19 Thread Martin Schröder
2012/6/19 luigi scarso luigi.sca...@gmail.com:
 http://wiki.contextgarden.net/User:Luigi.scarso/knuth

Thanks. And I envy you.
And be gentle to Don: He was in SF on Friday/Saturday: http://turing100.acm.org

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

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


Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Bill Meahan

On 06/19/2012 13:28, Hans Hagen wrote:


you need to fetch it from

http://foicica.com/scintillua/



I ended up installing the complete scintillua package and now everything 
works just fine. Had to modify the scintillua Makefile every place where 
there was a bare scintilla/something or scite/something to 
/usr/ports/editors/scite/work/scintilla/something or 
/usr/ports/editors/scite/work/scite/something but that was all.


If you wish, you can add FreeBSD-9.0 as a platform it works on.

Thanks for the suggestion. Now on to configuring Textadept to have 
Emacs-style keybindings, starting the ConTeXt lexers automatically, 
creating a snippets file and seeing if I can get a real-time output 
buffer going.



--
Bill Meahan K8QN

The pessimist complains about the wind;
 the optimist expects it to change;
 the realist adjusts the sails.

-- William Arthur Ward

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] upload

2012-06-19 Thread Hans Hagen

Hi,

I uploaded a version that has the bTABLE mechanism reorganized 
(different low level names etc). Hopefully nothing got broken in the 
process.


Hans

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

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

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


Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Hans Hagen

On 19-6-2012 22:17, Bill Meahan wrote:

On 06/19/2012 13:28, Hans Hagen wrote:


you need to fetch it from

http://foicica.com/scintillua/



I ended up installing the complete scintillua package and now everything
works just fine. Had to modify the scintillua Makefile every place where
there was a bare scintilla/something or scite/something to
/usr/ports/editors/scite/work/scintilla/something or
/usr/ports/editors/scite/work/scite/something but that was all.

If you wish, you can add FreeBSD-9.0 as a platform it works on.


maybe we should have a repository in the garden

anyhow, you can edit some info to the scit epage on the wiki


Thanks for the suggestion. Now on to configuring Textadept to have
Emacs-style keybindings, starting the ConTeXt lexers automatically,
creating a snippets file and seeing if I can get a real-time output
buffer going.


and you can give spell checking a try (you can use mtxrun --script 
--scite to convert a list with words into one suitable for the context 
lexers)


Hans


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


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

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


Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Bill Meahan

On 06/19/2012 16:43, Hans Hagen wrote:



and you can give spell checking a try (you can use mtxrun --script
--scite to convert a list with words into one suitable for the context
lexers)

Hans


There is a little module in Brian's ~/.textadept file on the Textadept 
wiki that uses aspell to do spell-checking. I'm going to give that a 
try. I can also try using SCOWL plus the method you describe, SCOWL is 
the word-list from which aspell, ispell and hunspell dictionaries are built.


--
Bill Meahan K8QN

The pessimist complains about the wind;
 the optimist expects it to change;
 the realist adjusts the sails.

-- William Arthur Ward

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Hans Hagen

On 19-6-2012 23:27, Bill Meahan wrote:

On 06/19/2012 16:43, Hans Hagen wrote:



and you can give spell checking a try (you can use mtxrun --script
--scite to convert a list with words into one suitable for the context
lexers)

Hans


There is a little module in Brian's ~/.textadept file on the Textadept
wiki that uses aspell to do spell-checking. I'm going to give that a
try. I can also try using SCOWL plus the method you describe, SCOWL is
the word-list from which aspell, ispell and hunspell dictionaries are
built.


fyi: the context lexers do realtime checking in combination with regular 
lexing


Hans

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


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

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


Re: [NTG-context] ConTeXt and SciTE

2012-06-19 Thread Bill Meahan

On 06/19/2012 04:58, Hans Hagen wrote:


Interestingly, the lexers work just fine in Textadept but I haven't
quite figured out how to get them to load automatically. I have to
manually select the lexer but it works fine once I do.



Turns out they don't work as well as I thought they did. To start the 
context lexers automatically, it is only necessary to configure the 
mime_types.conf file to associate the .tex extension with the desired 
lexer. When I do that, however, Textadept suddenly stops displaying 
anything in the buffer! Even if you load something other than a .tex 
file. :-(



You have to change some configuration files but as that situation seems
to change every now and then I wait with providing extra files for
textadept till it's more stable.

(Textadept has no realtime log pane so I cannot use it here without
sacrificing too much convenience.)



Have you looked at the run documentation? It appears from that output 
from whatever command is run is directed to a new buffer in real-time. 
That's what emacs does.


Anybody got a ctags file for ConTeXt?  :-)

--
Bill Meahan K8QN

The pessimist complains about the wind;
 the optimist expects it to change;
 the realist adjusts the sails.

-- William Arthur Ward

This message is digitally signed with an X.509 certificate
to prove it is from me and has not been altered since it was sent.



smime.p7s
Description: S/MIME Cryptographic 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] upload

2012-06-19 Thread Hongwen Qiu

On 06/20/2012 04:40 AM, Hans Hagen wrote:
I uploaded a version that has the bTABLE mechanism reorganized 
(different low level names etc). Hopefully nothing got broken in the 
process. 

Unfortunately it is broken. Minimal example:


\starttext

\bTABLE
  \bTR\bTD[nc=2] r1c1 \eTD\eTR
  \bTR\bTD r2c1 \eTD\bTD r2c2 \eTD\eTR
\eTABLE

\stoptext

Error message:

! Missing number, treated as zero.

system   tex  error on line 6 in file test.tex: Missing 
number, treated as zero ...


1 \starttext
2
3 \bTABLE
4   \bTR\bTD[nc=2] r1c1 \eTD\eTR
5   \bTR\bTD r2c1 \eTD\bTD r2c2 \eTD\eTR
6   \eTABLE
7
8 \stoptext
9

to be read again
   \relax
\21 ...l_ntb_get_dis \scratchcounter \fi \relax
  \advance 
\scratchcounter \...

\redorecurse -\expandrecursecontent
 \dodorecurse
to be read again
   {
inserted text
2
\dodorecurse ... \expandafter {\the \innerrecurse
  }{#2}
...
l.6 \eTABLE

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

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