[NTG-context] The bTABLE is still broken in latest beta

2012-06-20 Thread Hongwen Qiu

The bTABLE is still broken in latest beta. Minimal example:

\starttext
\setupTABLE[c][each][width=1cm]
\bTABLE
  \bTR\bTD Test \eTD\eTR
\eTABLE
\stoptext

Error log:

! Missing number, treated as zero.

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


1 \starttext
2 \setupTABLE[c][each][width=1cm]
3 \bTABLE
4   \bTR\bTD Test \eTD\eTR
5 >>  \eTABLE
6 \stoptext
7


   \275>2:1
 ...n \tabl_ntb_get_aut \c_tabl_ntb_col
  \relax \ifdim 
\localwidth ...

\secondoftwoarguments #1#2->#2

\tabl_ntb_cell_process ...\tabl_tnb_cell_finalize
  }}\scratchdimen 
\tabl_ntb_...

 ...align_start \tabl_ntb_pass 1 1
\tabl_ntb_column_next \tab...
\tabl_ntb_flush_content ...p \cr \the \t_tabl_ntb
  \dostoptagged \egroup 
\dos...

...
l.5 \eTABLE

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

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


Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop

2012-06-20 Thread Aditya Mahajan

On Thu, 21 Jun 2012, S Barmeier wrote:


On 06/21/2012 09:32 AM, Aditya Mahajan wrote:


On Thu, 21 Jun 2012, S Barmeier wrote:


On 06/18/2012 07:47 PM, Vladimir Lomov wrote:

Hello,
** S Barmeier [2012-06-18 15:38:20 +0900]:


I guess this has to do with my path variables, but having context
minimals installed prevents pdfcrop from running successfully:
...
Does anybody have a suggestion of how to deal with this issue
successfully?


You can also use pdftrimwhite (requires perl) which is part of the
ConText distribution:

mtxrun pdftrimwhite filename.pdf result.pdf

Aditya


Nice, does there exist documentation for pdftrimwhite? Running it on a
two-paged document, the output only contains the first page and clips
the document to the very edge. Is there a way to have all pages with a
1cm margin?


There is some documentation in the source code.

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

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


Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop

2012-06-20 Thread S Barmeier
On 06/21/2012 09:32 AM, Aditya Mahajan wrote:
> 
> On Thu, 21 Jun 2012, S Barmeier wrote:
> 
>> On 06/18/2012 07:47 PM, Vladimir Lomov wrote:
>>> Hello,
>>> ** S Barmeier [2012-06-18 15:38:20 +0900]:
>>>
 I guess this has to do with my path variables, but having context
 minimals installed prevents pdfcrop from running successfully:
 ...
 Does anybody have a suggestion of how to deal with this issue
 successfully?
> 
> You can also use pdftrimwhite (requires perl) which is part of the
> ConText distribution:
> 
> mtxrun pdftrimwhite filename.pdf result.pdf
> 
> Aditya

Nice, does there exist documentation for pdftrimwhite? Running it on a
two-paged document, the output only contains the first page and clips
the document to the very edge. Is there a way to have all pages with a
1cm margin?

Severin
___
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] **SPAM** ConTeXt breaks pdfcrop

2012-06-20 Thread Aditya Mahajan


On Thu, 21 Jun 2012, S Barmeier wrote:


On 06/18/2012 07:47 PM, Vladimir Lomov wrote:

Hello,
** S Barmeier [2012-06-18 15:38:20 +0900]:


I guess this has to do with my path variables, but having context
minimals installed prevents pdfcrop from running successfully:



PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.



kpathsea: Running mktexfmt pdftex.fmt
/usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395:
/usr/local/texlive/2010/bin/x86_64-linux/mktexfmt:
/home/user/context/tex/texmf/texconfig/tcfmgr: not found
fmtutil: config file `fmtutil.cnf' not found.
!!! Error: pdfTeX run failed!



Does anybody have a suggestion of how to deal with this issue successfully?


You can also use pdftrimwhite (requires perl) which is part of the ConText 
distribution:


mtxrun pdftrimwhite filename.pdf result.pdf

Aditya


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

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


Re: [NTG-context] **SPAM** ConTeXt breaks pdfcrop

2012-06-20 Thread S Barmeier
On 06/18/2012 07:47 PM, Vladimir Lomov wrote:
> Hello,
> ** S Barmeier [2012-06-18 15:38:20 +0900]:
> 
>> I guess this has to do with my path variables, but having context
>> minimals installed prevents pdfcrop from running successfully:
> 
>> PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
> 
>> kpathsea: Running mktexfmt pdftex.fmt
>> /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395:
>> /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt:
>> /home/user/context/tex/texmf/texconfig/tcfmgr: not found
>> fmtutil: config file `fmtutil.cnf' not found.
>> !!! Error: pdfTeX run failed!
> 
>> Does anybody have a suggestion of how to deal with this issue successfully?
> 
> Do you familiar with shell script writing?
> 
>> Thank you.
>> Severin
> 
>> P.S.: I'm on ubuntu 12.04.
> 
> Save this code as `pdfcrop-tl' (or use any other name, except pdfcrop)
> 
> #!/bin/bash
> 
> PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH
> pdfcrop $@
> exit 0
> 
> and run as
> 
> $ pdfcrop-tl FILE.PDF
> 
> 
> (If I not mistake this is known as `wrapper'.)
> 
> ---
> WBR, Vladimir Lomov
> 

Many thanks!

Severin
___
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] Input path to include external files with vim module

2012-06-20 Thread Aditya Mahajan

On Wed, 20 Jun 2012, Marco wrote:


On 2012-06-20 Aditya Mahajan  wrote:

Hi Aditya.


@Marco: In the next version of t-filter (and by inheritence t-vim), the
local files will also be searched in \usepath locations.


Thanks a million. I'm surprised that this feature needs so little
change in the source.


Hooking into existing ConTeXt code is easy :)


For the moment, this is MkIV only feature.


Since this is a new feature and not a bug fix I see no need to keep
MkII and MkIV in sync. For new projects I use MkIV since quite some
time and the MkII projects are in danger of extinction.


Actually, I added suport for MkII as well. It was not that difficult after 
all.



If you want to experiment, make the above change in file-res.lua,
regenerate the formats, and use t-filter.mkiv from github.


I will test it and report back if things break.


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

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


Re: [NTG-context] Input path to include external files with vim module

2012-06-20 Thread Marco
On 2012-06-20 Aditya Mahajan  wrote:

Hi Aditya.

> @Marco: In the next version of t-filter (and by inheritence t-vim), the 
> local files will also be searched in \usepath locations.

Thanks a million. I'm surprised that this feature needs so little
change in the source.

> For the moment, this is MkIV only feature.

Since this is a new feature and not a bug fix I see no need to keep
MkII and MkIV in sync. For new projects I use MkIV since quite some
time and the MkII projects are in danger of extinction.

> If you want to experiment, make the above change in file-res.lua, 
> regenerate the formats, and use t-filter.mkiv from github.

I will test it and report back if things break.


Marco


___
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] Input path to include external files with vim module

2012-06-20 Thread Aditya Mahajan

On Wed, 20 Jun 2012, Hans Hagen wrote:


On 20-6-2012 19:33, Aditya Mahajan wrote:

On Tue, 19 Jun 2012, Aditya Mahajan wrote:


On Mon, 18 Jun 2012, Marco wrote:


does the vim module have a feature to specify the input path,
similar to \usepath for context files or \setupexternalfigures
[directory=…] for graphics?


@Hans: Can we make the following change in file-res.lua

 if isfile(fname) then
 if trace_files then
 report_files("found on extra path: %s",fname) --AM: was name
 end
 fnd = fname --- AM: was name
 break
 end

Then, getreadfilename("any", ".", name) will always return the location
of the found
file. This is also consistent with the behavior when the file is found
in ../ or
../../ directories.


sure, just call it a bug -)


Thanks.

@Marco: In the next version of t-filter (and by inheritence t-vim), the 
local files will also be searched in \usepath locations.


Thus you can use:

\usepath[list-of, paths]

\starttext
\processfile{file-in-path}

\typefile{file-in-path}
\stoptext

For the moment, this is MkIV only feature.

If you want to experiment, make the above change in file-res.lua, 
regenerate the formats, and use t-filter.mkiv from github.


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

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

Re: [NTG-context] ConTeXt and SciTE

2012-06-20 Thread Hans Hagen

On 20-6-2012 21:05, Bill Meahan wrote:

On 06/20/2012 14:02, Hans Hagen wrote:

On 20-6-2012 18:37, Bill Meahan wrote:


1. Running the command as shown generates a spell-xx.lua file but
complains about a spell-xx.lucluac file not being present.


luac compiles the lau file into bytecode (luac comes with lua and needs
to match the lua version in scite)


I'll have to check the version in scite. I tried manually compiling with
lua 5.1 with no success.







hm, do you have spell-ca and spell-en etc files? there is no hard coded
uk check


I only tried it with spell-en.{txt | lua} - error message said no valid
word list loaded. Made a hard link from spell-en.txt to spell-uk.txt and
it found that. I manipulated the line 1 from %  language=en to
%  language=uk to see the difference.


Forget about the txt file .. just the lua file will do (the luc file 
loads faster but it's neglectable on an edit session). I uploaded new 
scripts that generate a lua fiel with a bit more info and take care of 
the 4 char length (hopefully).


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-20 Thread Bill Meahan

On 06/20/2012 14:02, Hans Hagen wrote:

On 20-6-2012 18:37, Bill Meahan wrote:


1. Running the command as shown generates a spell-xx.lua file but
complains about a spell-xx.lucluac file not being present.


luac compiles the lau file into bytecode (luac comes with lua and needs
to match the lua version in scite)


I'll have to check the version in scite. I tried manually compiling with 
lua 5.1 with no success.








hm, do you have spell-ca and spell-en etc files? there is no hard coded
uk check


I only tried it with spell-en.{txt | lua} - error message said no valid 
word list loaded. Made a hard link from spell-en.txt to spell-uk.txt and 
it found that. I manipulated the line 1 from %  language=en to

%  language=uk to see the difference.




--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


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-20 Thread Bill Meahan

On 06/20/2012 14:44, Hans Hagen wrote:

On 20-6-2012 20:02, Hans Hagen wrote:


indeed, internally there is a limit of length 2

i can probably do a check for length i.e. if no 3 character words then
also no checking


the next version has

return {
["max"]=40,
["min"]=3,
["n"]=151493,
["words"]={
["aardvark"]="aardvark",
["aardvarks"]="aardvarks",

so in your case the 3 would be a 4 and that value is checked when coloring

Hans


Cool! Many thanks.


--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


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-20 Thread Hans Hagen

On 20-6-2012 20:02, Hans Hagen wrote:


indeed, internally there is a limit of length 2

i can probably do a check for length i.e. if no 3 character words then
also no checking


the next version has

return {
 ["max"]=40,
 ["min"]=3,
 ["n"]=151493,
 ["words"]={
  ["aardvark"]="aardvark",
  ["aardvarks"]="aardvarks",

so in your case the 3 would be a 4 and that value is checked when coloring

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-20 Thread Hans Hagen

On 20-6-2012 18:37, Bill Meahan wrote:


1. Running the command as shown generates a spell-xx.lua file but
complains about a spell-xx.lucluac file not being present.


luac compiles the lau file into bytecode (luac comes with lua and needs 
to match the lua version in scite)



2. The lexer does not load the spell-xx.lua file but will find the
spell-xx.txt file and try to use that.

3. English words are only found if the 'xx' is 'uk' while 'en' or 'us'
or 'ca' (Canadian) are not found no matter if % language={en | us | ca}
(one choice only, I'm just using shorthand here). uk is one particular
form of English with particular spelling rules (e.g. 'our' instead of
'or' in words like 'honour' &al. There are also some terms proper in UK
English that are not considered proper in US English and vice versa.) If
all variants are not allowed, the generic 'en' ought to be used instead
of 'uk' as it could be confusing to non-UK users. Ozzies and Kiwis may
not mind but Yanks and Canucks do. :-)


hm, do you have spell-ca and spell-en etc files? there is no hard coded 
uk check



4. Every 3-letter word is indicated as misspelled. This may be a
side-effect of using the SCOWL word lists as they only deal with words >
3-letters (except for some acronyms). Hence common words like 'was' or
'who' or 'and' are marked as misspelled.


indeed, internally there is a limit of length 2

i can probably do a check for length i.e. if no 3 character words then 
also no checking



5. Only the first screen-full of text was color-coded. The rest of my
document did not even have keyword highlighting. Turning off the
spell-checking by removing the 'language=uk' line restored keyword
highlighting throughout the whole file.


weird


Yes, that is a big wordlist but decades of doing crosswords has left me
with a large vocabulary. ;-)


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] Input path to include external files with vim module

2012-06-20 Thread Hans Hagen

On 20-6-2012 19:33, Aditya Mahajan wrote:

On Tue, 19 Jun 2012, Aditya Mahajan wrote:


On Mon, 18 Jun 2012, Marco wrote:


does the vim module have a feature to specify the input path,
similar to \usepath for context files or \setupexternalfigures
[directory=…] for graphics?


@Hans: Can we make the following change in file-res.lua

 if isfile(fname) then
 if trace_files then
 report_files("found on extra path: %s",fname) --AM: was name
 end
 fnd = fname --- AM: was name
 break
 end

Then, getreadfilename("any", ".", name) will always return the location
of the found
file. This is also consistent with the behavior when the file is found
in ../ or
../../ directories.


sure, just call it a bug -)

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] Input path to include external files with vim module

2012-06-20 Thread Aditya Mahajan

On Tue, 19 Jun 2012, Aditya Mahajan wrote:


On Mon, 18 Jun 2012, Marco wrote:


does the vim module have a feature to specify the input path,
similar to \usepath for context files or \setupexternalfigures
[directory=…] for graphics?


@Hans: Can we make the following change in file-res.lua

if isfile(fname) then
if trace_files then
report_files("found on extra path: %s",fname) --AM: was name
end
fnd = fname --- AM: was name
break
end

Then, getreadfilename("any", ".", name) will always return the location of the 
found
file. This is also consistent with the behavior when the file is found in ../ or
../../ directories.

This change should not affect the \readfilename macros and will allow me to use

\def\externalfilter@any_filename#1%
{\ctxcommand{getreadfilename("any",".","#1")}}

to search for a file (even if it is in the path specified by \usepath).

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

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

Re: [NTG-context] ConTeXt and SciTE

2012-06-20 Thread Bill Meahan

On 06/19/2012 17:57, Hans Hagen wrote:

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



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

Hans



Tried this, ran into problems.

1. Running the command as shown generates a spell-xx.lua file but 
complains about a spell-xx.lucluac file not being present.


2. The lexer does not load the spell-xx.lua file but will find the 
spell-xx.txt file and try to use that.


3. English words are only found if the 'xx' is 'uk' while 'en' or 'us' 
or 'ca' (Canadian) are not found no matter if % language={en | us | ca} 
(one choice only, I'm just using shorthand here). uk is one particular 
form of English with particular spelling rules (e.g. 'our' instead of 
'or' in words like 'honour' &al. There are also some terms proper in UK 
English that are not considered proper in US English and vice versa.) If 
all variants are not allowed, the generic 'en' ought to be used instead 
of 'uk' as it could be confusing to non-UK users. Ozzies and Kiwis may 
not mind but Yanks and Canucks do. :-)


4. Every 3-letter word is indicated as misspelled. This may be a 
side-effect of using the SCOWL word lists as they only deal with words > 
3-letters (except for some acronyms). Hence common words like 'was' or 
'who' or 'and' are marked as misspelled.


5. Only the first screen-full of text was color-coded. The rest of my 
document did not even have keyword highlighting. Turning off the 
spell-checking by removing the 'language=uk' line restored keyword 
highlighting throughout the whole file.


SciTE 3.1.0 on FreeBSD-9.0-i386

The wordlist(s) tried were from SCOWL 7.1 at http://wordlist.sourceforge.net
formed by cat en*80 | sort | uniq >spell-uk.txt

Yes, that is a big wordlist but decades of doing crosswords has left me 
with a large vocabulary. ;-)



--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


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-20 Thread Bill Meahan

On 06/20/2012 11:24, Aditya Mahajan wrote:

On Wed, 20 Jun 2012, Hans Hagen wrote:


On 20-6-2012 05:04, Bill Meahan wrote:


Anybody got a ctags file for ConTeXt? :-)


what are ctags


They allow you to jump around to specific locations in a file.



SciTE also uses them to generate auto-completion/insertion of language 
commands so a ctags file for ConTeXt itself would be useful.


--
Bill Meahan, Westland, Michigan USA

“Writing is a combination of intangible
  creative fantasy and appallingly
  hard work.”

  —Anthony Powell


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-20 Thread Aditya Mahajan

On Wed, 20 Jun 2012, Hans Hagen wrote:


On 20-6-2012 05:04, Bill Meahan wrote:


Anybody got a ctags file for ConTeXt?  :-)


what are ctags


They allow you to jump around to specific locations in a file.

For example, in vim, pressing CTRL+] on "\in[sec:first]"  will jump to the 
location where sec:first is defined. Basically, a ctags file contains tag 
and the file name and line number where those tags are defined. The editor 
then reads the ctags file and jumps to the appropriate location.


A few years back, I had written a MkII module that generated ctags file 
when a tex file was compiled (attached). It was a hack that redefined a 
few low level macros.


To provide proper support for ctags, we also need to store the current 
filename and line number for each reference in the tuc file. Then a module 
can read the tuc file and write the ctags file in an appropriate format.


Aditya







t-ctags.tex
Description: TeX document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ConTeXt and SciTE

2012-06-20 Thread luigi scarso
On Wed, Jun 20, 2012 at 4:24 PM, Hans Hagen  wrote:
> On 20-6-2012 05:04, Bill Meahan wrote:
>
>> Anybody got a ctags file for ConTeXt?  :-)
>
>
> what are ctags



CTAGS(1)
 Exuberant Ctags

  CTAGS(1)

NAME
   ctags - Generate tag files for source code

SYNOPSIS
   ctags [options] [file(s)]

   etags [options] [file(s)]

DESCRIPTION
   The ctags and etags programs (hereinafter collectively referred
to as ctags, except where distinguished) generate an index (or "tag")
file for a variety of language objects found in file(s).  This tag
file allows these items
   to be quickly and easily located by a text editor or other
utility. A "tag" signifies a language object for which an index entry
is available (or, alternatively, the index entry created for that
object).

   Alternatively, ctags can generate a cross reference file which
lists, in human readable form, information about the various source
objects found in a set of language files.

   Tag index files are supported by numerous editors, which allow
the user to locate the object associated with a name appearing in a
source file and jump to the file and line which defines the name.
Those known  about  at  the
   time of this release are:

   Vi(1) and its derivatives (e.g. Elvis, Vim, Vile, Lemmy),
CRiSP, Emacs, FTE (Folding Text Editor), JED, jEdit, Mined, NEdit
(Nirvana Edit), TSE (The SemWare Editor), UltraEdit, WorkSpace, X2,
Zeus

   Ctags  is  capable of generating different kinds of tags for
each of many different languages. For a complete list of supported
languages, the names by which they are recognized, and the kinds of
tags which are generated for
   each, see the --list-languages and --list-kinds options.

-- 
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-20 Thread Hans Hagen

On 20-6-2012 05:04, Bill Meahan wrote:


Anybody got a ctags file for ConTeXt?  :-)


what are ctags

-
  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] upload

2012-06-20 Thread Hans Hagen

On 20-6-2012 05:28, Hongwen Qiu wrote:

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


fixed in next upload

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