Re: [NTG-context] Affiliation change

2009-04-01 Thread Nikolai Weibull
On Wed, Apr 1, 2009 at 20:33, Taco Hoekwater t...@elvenkind.com wrote:

 I plan to start selling manuals via lulu.

I'm very interested in seeing what you'll produce.
___
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] Which revision control system do you use?

2009-03-17 Thread Nikolai Weibull
On Tue, Mar 17, 2009 at 08:58, John Devereux j...@devereux.me.uk wrote:

 I use git. Originally for programming, but it is very useful for
 context too.

I can also recommend Git.  It's fast, easy to use (no, really!), and
very actively developed.  What's most important about using Git,
though, is that it seems to be the most future-proof alternative.  I'm
sure Mercurial will be around for a long time, just as Subversion
will, but of all the SCMs Git has the best foundation.
___
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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-13 Thread Nikolai Weibull
On Tue, Mar 10, 2009 at 13:44, Nikolai Weibull n...@bitwi.se wrote:

 In neither --lua nor --xtx do I get a list of
 abbreviations with \completelistofabbreviations.  The bookmark text is
 \headtext {abbreviations} for both.

Can I at least get an acknowledgement that this is a problem with
LuaTeX and that there's no simple fix at the moment so that I can
begin working around it?

Thanks.
___
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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed

2009-03-10 Thread Nikolai Weibull
Hi!

Long time no post.  Anyway, I’m writing a document where I’m using
abbreviations.  In neither --lua nor --xtx do I get a list of
abbreviations with \completelistofabbreviations.  The bookmark text is
\headtext {abbreviations} for both.  With --pdf I get a list of
abbreviations and the bookmark text is abbreviations.  Here's a
minimal example:

\setupheadtext[en][abbreviations={Abbreviations Used in This Document}]

\abbreviation{CSS}{Cascading Style Sheets}

\setupinteraction
  [state=start,
   menu=on]
\placebookmarks[chapter]

\starttext

\startbodymatter
\CSS\ stands for \infull{CSS}.
\stopbodymatter

\startbackmatter
\completelistofabbreviations
\stopbackmatter

\stoptext
___
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] FYI

2007-02-25 Thread Nikolai Weibull
On 2/25/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote:
 Info for the gang:

 http://slashdot.org/comments.pl?sid=223940threshold=1commentsort=0mode=threadpid=18135068#18135322

 (last paragraph)

 This does not affect me or many of us but it's good to know the vibes out
 there.

All the vim latex suite is really doing is packaging a bunch of (not
very good) plugins.  It wouldn't require much work to do something
similar for context.  But I'm not the guy for that, sorry.

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


Re: [NTG-context] A new manual

2006-09-28 Thread Nikolai Weibull
On 9/28/06, John R. Culleton [EMAIL PROTECTED] wrote:

 What is needed now for greater acceptance of Context is not new
 features but a new manual, perhaps a multi volume set with a
 common index.

 If a consolidated manual set were offered for sale there would be a
 lot of customers.

I'd buy it in an instant.  With 38 hits on LaTeX in Computers 
Internet on Amazon.com I'd say that ConTeXt is lagging behind in the
published-book-about department.

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


Re: [NTG-context] verb-c.tex

2006-08-17 Thread Nikolai Weibull
On 8/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hallo!

 I have a little problem with the module 'verb-c'.

 Backslashes in verbatim text seem to disturb colors.
 
 \usemodule[verb-c]
 \setupcolors[state=start]
 \setuptyping[C][color=blue,palet=colorpretty,
 numbering=line]
 \starttext
 Davor
 \startC
 #include stdio.h

 int main()
 {
   printf(Hallo\n);
 }
 \stopC
 Danach
 \stoptext
 
 Problem:

 'Danach' is blue!
 Last line number has the same color as the
 quotet String Hallo ConTeXt\n.

 Delete the newline char and all is ok!

 How can this be fixed?

  puts(Hallo);

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


Re: [NTG-context] modules

2006-08-09 Thread Nikolai Weibull
On 8/9/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 Nikolai Weibull wrote:
  On 4/4/06, Hans Hagen [EMAIL PROTECTED] wrote:
 
 
 In order to be able to generate new zips i'd like the modules in the
 wiki to be tds compliant as soon as possible.
 
  Ive kept this mail starred since I first saw it and haven't put any
  thought into what you're actually asking about here.  Now, however,
  I'd really like to know what /TDS compliant/ means and if there's
  something I should do with my BNF model to make it so.

 Have a look at the lettrines module for an example that should
 be simple to apply to t-bnf.

Thanks (and thanks Sanjoy).  I suppose the PDF documentation is
auto-generated, so I don't need to include that, right?

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


Re: [NTG-context] modules

2006-08-09 Thread Nikolai Weibull
On 8/9/06, Taco Hoekwater [EMAIL PROTECTED] wrote:


 Nikolai Weibull wrote:
 Have a look at the lettrines module for an example that should
 be simple to apply to t-bnf.
 
 
  Thanks (and thanks Sanjoy).  I suppose the PDF documentation is
  auto-generated, so I don't need to include that, right?

 No, you do have to do that yourself, it is not autogenerated.
 (because that would not be very reliable)

OK, done.  Now how do I get this package to the modules homepage?

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


Re: [NTG-context] modules

2006-08-09 Thread Nikolai Weibull
On 8/9/06, Taco Hoekwater [EMAIL PROTECTED] wrote:

 Nikolai Weibull wrote:

 Now how do I get this package to the modules homepage?

 On modules.contextgarden.net,  there is a log in link in the
 upper right corner. Do that (use your wiki login), and you get a
 new set of links for updating your modules.

I don't have a login, that I know about, so I created a new one.  My
username is now, so if you could give the user now ownership of
the BNF grammar module, that'd be great.

Thanks!

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


Re: [NTG-context] modules

2006-08-08 Thread Nikolai Weibull
On 4/4/06, Hans Hagen [EMAIL PROTECTED] wrote:

 In order to be able to generate new zips i'd like the modules in the
 wiki to be tds compliant as soon as possible.

Ive kept this mail starred since I first saw it and haven't put any
thought into what you're actually asking about here.  Now, however,
I'd really like to know what /TDS compliant/ means and if there's
something I should do with my BNF model to make it so.

Thanks.

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


[NTG-context] Linux User Installation Guide

2006-07-03 Thread Nikolai Weibull
http://wiki.contextgarden.net/Linux_User_Installation

Edit it to your hearts content, but please don't modify the sequence
of commands, as they are correct.

This is the setup that I use and I really like its simplicity.  I
don't have to deal with (the now dead) teTeX or worry about what
directories will overrule some other.  It's simple and sweet.

(I set up HOMETEXMF as well, but that's a different story.)

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


Re: [NTG-context] extra white in framedtext

2006-06-16 Thread Nikolai Weibull
On 6/15/06, Hans Hagen [EMAIL PROTECTED] wrote:

 Nikolai Weibull wrote:

  Is it only me, or do you really need to do somethnig about your
  encoding settings, Hans?

 i dunno, this what i got; normally utf8 works ok; i use thunderbird

At my end (gmail), a random set of spaces from Hans van der Meer's
(such an awesome name, btw) example have turned into U+FFFD in your
reply.

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


Re: [NTG-context] extra white in framedtext

2006-06-15 Thread Nikolai Weibull
On 6/12/06, Hans Hagen [EMAIL PROTECTED] wrote:

  |� �� �� �� �� �� �� �|� with \null in first line
  |� �� �first line� � �|
  |� �� �second line � �|
  ---
 
  ---
  |� �� �first line� � �|� without \null in first line
  |� �� �second line � �|
  ---

Is it only me, or do you really need to do somethnig about your
encoding settings, Hans?

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


Re: [NTG-context] [OT] Is Indesign CS 2 better than ConTeXt ?

2006-05-26 Thread Nikolai Weibull
On 5/26/06, Hans Hagen [EMAIL PROTECTED] wrote:

 concerning id ... it's non free, never sure what happens in ten years (adobe 
 dropped pagemaker, (i'm told) messed up frame, so ...) and in order to 
 process older docs will run into compatibility problems some day; supporting 
 pdf trickery is not a real argument, since my experience is that tex is 
 always first in supporting new features; however, adobe is the typesetter 
 company favorite, if only because they use more adobe things (and also 
 because they can keep changing per page which is more proffitable than change 
 for a simple stylesheet once); and ... publishers don't really care about 
 costs anyway so ...)

I'd just like to add that InDesign is often misused by its users, so
don't expect other people to use InDesign like you think you will.  I
work at a company that does translations, and, for us, dealing with
InDesign documents is about the most painful job there is.  Sure, the
documents may look good, but the means to getting the documents are
often not justifiable.  But I guess it's more of an issue of the users
not knowing how to use their software than there being a problem with
the software itself.

To that I'd like to add that I really don't like WYSIWYG because it's
rarely true.  And if you want to do professional work you really want
something as flexible as TeX.  Also, TeX scales really well, from
small pamphlet-like documents to large books.  The same can't be said
for InDesign.

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


Re: [NTG-context] ConTeXt 2006.04.24 released

2006-04-25 Thread Nikolai Weibull
On 4/25/06, Taco Hoekwater [EMAIL PROTECTED] wrote:
 * New math environments: \startintertext and \startsubstack

Is ConTeXt coming closer to what LaTeX and Nath has in way of math
support?  I.e., are we more or less incorporating the nice stuff from
the two into ConTeXt now?

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


Re: [NTG-context] more manuals

2006-04-23 Thread Nikolai Weibull
On 4/11/06, Hans Hagen [EMAIL PROTECTED] wrote:

 enattab

I must say that natural tables have come a long way and seem more
capable than our other table-implementations now, even without the new
features you hint at.

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


Re: [NTG-context] RFC: 'What would you like in an Text Editor?'

2006-03-28 Thread Nikolai Weibull
On 3/28/06, frantisek holop [EMAIL PROTECTED] wrote:
[Vim can basically do everything you want]
 having said that i am a new context user and i don't know if there's
 something specifically for context.

There's a syntax definition for ConTeXt.  It's going to be modified
for v7, as we're trying to consolidate all the TeXes.  I'm currently
maintaining the coretex.vim, plaintex.vim, and context.vim.

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


Re: [NTG-context] Imaginary entity rendering in MathML

2006-03-28 Thread Nikolai Weibull
On 3/28/06, Taco Hoekwater [EMAIL PROTECTED] wrote:

 nico wrote:

  The following MathML test case (rec-arg1) using newmml does not render the
  imaginary entity #x02148; correctly. It is shown as a minus (-) instead
  of i. I have this behaviour for any test using this entity.

 I guess the problem is that the vector unic-033 (=hex 21) only defines
 the arrow part, that starts at 0x2190 ?

Probably.  This vector is far from complete.  I've tried to be as
thorough as  possible, but there simply isn't TeX equivalents for all
symbols in that vector.  At least not ones that I have been able to
find.

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


Re: [NTG-context] List of builtin TeX commands

2006-03-27 Thread Nikolai Weibull
On 3/25/06, John R. Culleton [EMAIL PROTECTED] wrote:
 I suggest:

 _The TeXBook_ (you have the source probably.)
 _TeX for the Impatient_ (free on internet.)
 _TeX by Topic_ (free on the internet.)

Thank you!  And thanks to everyone else as well.  Your comments have
been very helpful.  The index for TeX for the Impatient worked
really well, and I also liked
http://www.tug.org/utilities/plain/cseq.html as it provided me with a
useful taxonomy.  Still, the collection of links and pointers in this
thread is really quite useful.  Perhaps I (or someone else) should
wikify it?

Again, thank you everyone who took the time to come up with good
answers to my question.

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


[NTG-context] List of builtin TeX commands

2006-03-25 Thread Nikolai Weibull
Hi!

Is there a list of builtin TeX commands anywhere on the net?  I need
it for a syntax definition of  the plain TeX format.

With builtin TeX commands I mean stuff like \def, \global, and such.

A list of commands defined in plain.tex would be great as well, but at
least that's easier to compile by myself, as I can just look in the
actual file.

The tex source is a bit harder to overview...

Thanks!

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


Re: [NTG-context] ConTeXt IRC ?

2006-01-27 Thread Nikolai Weibull
On 1/27/06, Renaud AUBIN [EMAIL PROTECTED] wrote:
  Is there a context-related irc channel ?

If there isn't but someone's going to create one now, please do so
on EFNet; thanks.

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


Re: [NTG-context] ConTeXt IRC ?

2006-01-27 Thread Nikolai Weibull
On 1/27/06, VnPenguin [EMAIL PROTECTED] wrote:
 On 1/27/06, Nikolai Weibull [EMAIL PROTECTED] wrote:
  On 1/27/06, Renaud AUBIN [EMAIL PROTECTED] wrote:
Is there a context-related irc channel ?
 
  If there isn't but someone's going to create one now, please do so
  on EFNet; thanks.

 Freenode.net is good too IMHO.

No, it is not.  There's no reason for Freenode to exist.  It's just a
bunch of reimplementers who wanted their own chatnet...only gimpnet
is lamer.  EFNet has always worked fine, is well-established, has
servers world-wine, and then some people think, hey, lets create
another DALnet but with a free-software attitude...

Just my incredbly unhumble opinion...

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


Re: [NTG-context] ConTeXt IRC ?

2006-01-27 Thread Nikolai Weibull
On 1/27/06, Nikolai Weibull [EMAIL PROTECTED] wrote:
 On 1/27/06, VnPenguin [EMAIL PROTECTED] wrote:
  On 1/27/06, Nikolai Weibull [EMAIL PROTECTED] wrote:
   On 1/27/06, Renaud AUBIN [EMAIL PROTECTED] wrote:
 Is there a context-related irc channel ?
  
   If there isn't but someone's going to create one now, please do so
   on EFNet; thanks.
 
  Freenode.net is good too IMHO.

 No, it is not.  There's no reason for Freenode to exist.  It's just a
 bunch of reimplementers who wanted their own chatnet...only gimpnet
 is lamer.  EFNet has always worked fine, is well-established, has
 servers world-wine, and then some people think, hey, lets create
 another DALnet but with a free-software attitude...

 Just my incredbly unhumble opinion...

Wow.  Sorry.  I really flew off the handle there.  I hope no one was
too offended.  I really didn't mean to get off like that.  I need to
start leaving my mail in Drafts a while before sending them off.  I
guess I had a stranger opinion about Freenode than I myself realized.

Again, sorry for lashing out like that.

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


Re: [NTG-context] formula in itemlist

2006-01-25 Thread Nikolai Weibull
 \def\setdisplaydimensions
   {\displayindent\leftdisplayskip
\advance\displayindent\leftdisplaymargin
\displaywidth\hsize
\ifdim\hangindent\zeropoint
  \advance\displayindent\hangindent
\else
  \advance\displaywidth\hangindent
\fi
\advance\displaywidth-\displayindent
\advance\displaywidth-\rightdisplayskip
\advance\displaywidth-\rightdisplaymargin
\hsize\displaywidth}

 i'll also add an option to center at the page level and not locally

Will this solve item 60 [1] in the collector?

  nikolai

1. http://context.literatesolutions.com/collector/60/pcng_issue_view
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] formula in itemlist

2006-01-25 Thread Nikolai Weibull
On 1/25/06, Taco Hoekwater [EMAIL PROTECTED] wrote:

 Nikolai Weibull wrote:

   i'll also add an option to center at the page level and not locally

  Will this solve item 60 [1] in the collector?

 Yes.

Awesome.

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


Re: [NTG-context] An idea

2005-12-04 Thread Nikolai Weibull
Christopher Creutzig wrote:

 Nikolai Weibull wrote:
 
  this than I have is welcome to finish it.  The \highlight command
  should be defined something like this (pseudo-tex-code):
  
  \pdef\highlight[#1]{#2}%
{\bgroup
 \setupcolorforgroup[#1]%
 \type{#2}%
 \egroup}
  
  #1 is a group name, such as Statement, Operator, or Comment.  #2 may
  contain multiple lines, and I don’t know how well this will work on
  the TeX side.  It may also contain special characters like {, #, ,
  and so on.  Suggestions?
 
  The most simple one I expect to work would be
 
 \def\highlight[#1]{%
   \bgroup
   \setuphighlightcolors[{#1}]% never forget those {},
 %% since [] aren't balanced!
   \processinlineverbatim\egroup}% \egroup is an argument to
 %   % \processinlineverbatim here
 

OK, check the attachments for what I’ve got so far.  It works well it
seems.  Still need to do more escaping, though.

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
 Vim syntax support file
 Maintainer:   Nikolai Weibull [EMAIL PROTECTED]
 Latest Revision:  2005-12-04

function! s:Format(text, group)
  let formatted = strtrans(a:text)

  let formatted = substitute(formatted, '{', '\\leftargument', 'g')
  let formatted = substitute(formatted, '}', '\\rightargument', 'g')
   TODO: Replace the reserved ConTeXt characters.
   TODO: make sure to escape everything.

  if a:group != 
let formatted = \\highlight[ . a:group . ']{' . formatted . '}'
  endif

  return formatted
endfunction

function! s:Append(text)
  exe s:new_win . 'wincmd w'
  call append(line('$'), a:text)
  exe s:org_win . 'wincmd w'
endfunction

function! s:AppendFillers(filler, diff_fillchar)
  let n = filler
  while n  0
let new = repeat(diff_fillchar, 3)

if n  2  n  filler  !exists('context_whole_filler')
  let new .= ' ' . filler . ' inserted lines '
  let n = 2
endif

let new .= repeat(diff_fillchar, columns - strlen(new))
call s:Append(s:Format(new, 'DiffDelete'))
let n -= 1
  endwhile
endfunction

function! s:GetFillChar(char, default)
  let fillchar = fillchars[matchend(fillchars, a:char . ':')]
  return (fillchar != '' ? fillchar : default)
endfunction

function! s:MainLoop()
   Set up stuff for handling folding.
  if has('folding')  !exists('context_ignore_folding')
let fold_fillchar = s:GetFillChar('fold', '-')
  endif

   Set up stuff for handling diffs.
  let diff_fillchar = s:GetFillChar('diff', '-')

  let lnum = 1
  let last = line('$')

  while lnum = last
 If there are filler lines for diff mode, show these above the line.
let filler = diff_filler(lnum)
if filler  0
  call s:AppendFillers(filler, diff_fillchar)
endif

let new = 
if has('folding')  !exists('context_ignore_folding')  foldclosed(lnum) 
 -1
  let new = s:Format(new . foldtextresult(lnum), 'Folded')
  let lnum = foldclosedend(lnum)
else
  let line = getline(lnum)
  let len = strlen(line)
  let diff_attr = diff_hlID(lnum, 1)

  let col = 1
  while col = len || (col == 1  diff_attr)
let start_col = col  The start column for processing text.
if diff_attr
  let id = diff_hlID(lnum, col)
  let col += 1
  while col = len  id == diff_hlID(lnum, col) | let col += 1 | 
endwhile
  if len  columns
 Add spaces at the end to mark the changed line.
let line = line . repeat(' ', columns - len)
let len = columns
  endif
else
   TODO: why not use synIDtrans here instead?  That’t give longest
   possible matches.
  let id = synID(lnum, col, 1)
  let col += 1
  while col = len  id == synID(lnum, col, 1) | let col += 1 | 
endwhile
endif

 Expand tabs.
 TODO: make a function? let new .= s:ExpandAndFormat(strpart(...), id)
let expanded = strpart(line, start_col - 1, col - start_col)
let idx = stridx(expanded, \t)
while idx = 0
  let i = ts - (idx + start_col - 1) % ts
  let expanded = substitute(expanded, '\t', repeat(' ', i), '')
  let idx = stridx(expanded, \t)
endwhile

if expanded =~ '^\s*$'
  let new .= expanded
else
  let new .= s:Format(expanded, synIDattr(synIDtrans(id), 'name'))
endif
  endwhile
endif

call s:Append(new)
let lnum = lnum + 1
  endwhile
endfunction

 Set up options.
let s:old_title = title
let s:old_icon = icon
let s:old_search = @/
set notitle noicon

 Split window to create a buffer with the ConTeXt file.
let s:org_bufnr = winbufnr(0)
if expand(%) == 
  new untitled.tex
else
  new %.tex
endif
let s:new_win = winnr()
let s:org_win = bufwinnr(s:org_bufnr)

 Set up the new buffer.
set

Re: [NTG-context] An idea

2005-12-03 Thread Nikolai Weibull
Nikolai Weibull wrote:

 It would require very little programming.  syntax/2html.vim, which
 converts the buffer to a HTML document with syntax highlighting, is 526
 lines in the current CVS incarnation.  A syntax/2context.vim would be
 even shorter, perhaps 150 to 200 lines.  If I find the time I’ll write
 something this weekend.  I’m catching a could though, so I might not
 :-(.

A splitting headache notwithstanding, here’s a syntax/2context.vim that
weighs in at 170 lines.  There are still things to do, like figuring out
how to complement this on the ConTeXt side (i.e., defining \highlight)
and things will depend on how this is done.  Some sort of \type
environment would be nice, as it is better to not do escaping of special
characters on the Vim side.  Someone with better knowledge of how to do
this than I have is welcome to finish it.  The \highlight command should
be defined something like this (pseudo-tex-code):

\pdef\highlight[#1]{#2}%
  {\bgroup
   \setupcolorforgroup[#1]%
   \type{#2}%
   \egroup}

#1 is a group name, such as Statement, Operator, or Comment.  #2 may
contain multiple lines, and I don’t know how well this will work on the
TeX side.  It may also contain special characters like {, #, , and so
on.  Suggestions?

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
 Vim syntax support file
 Maintainer:   Nikolai Weibull [EMAIL PROTECTED]
 Latest Revision:  2005-12-03

function! s:Format(text, group)
  let formatted = strtrans(a:text)

   TODO: Replace the reserved ConTeXt characters.

  return \\highlight[ . a:group . ']{' . formatted . '}'
endfun

 Set up options.
let s:old_title = title
let s:old_icon = icon
let s:old_et = l:et
let s:old_report = report
let s:old_search = @/
set notitle noicon
setlocal et
set report=100

 Split window to create a buffer with the HTML file.
let s:org_bufnr = winbufnr(0)
if expand(%) == 
  new untitled.tex
else
  new %.tex
endif
let s:new_win = winnr()
let s:org_win = bufwinnr(s:org_bufnr)

 Set up options in the new buffer.
set modifiable
%d
let s:old_paste = paste
set paste
let s:old_magic = magic
set magic

 Set up the buffer’s “header”.
exe normal! a\\startlines\n\e

 Switch to the original window.
exe s:org_win . 'wincmd w'

 Variables to keep track of the range to convert.
let s:lnum = 1
let s:end = line('$')

 Set up stuff for handling folding.
if has('folding')  !exists('context_ignore_folding')
  let s:foldfillchar = fillchars[matchend(fillchars, 'fold:')]
  if s:foldfillchar == ''
let s:foldfillchar = '-'
  endif
endif

 Set up stuff for handling diffs.
let s:difffillchar = fillchars[matchend(fillchars, 'diff:')]
if s:difffillchar == ''
  let s:difffillchar = '-'
endif

 Now, loop over all lines in the range.
while s:lnum = s:end
   If there are filler lines for diff mode, show these above the line.
  let s:filler = diff_filler(s:lnum)
  if s:filler  0
let s:n = s:filler
while s:n  0
  let s:new = repeat(s:difffillchar, 3)

  if s:n  2  s:n  s:filler  !exists('context_whole_filler')
let s:new = s:new .   . s:filler . ' inserted lines '
let s:n = 2
  endif

  let s:new = s:new . repeat(s:difffillchar, columns - strlen(s:new))

  let s:new = s:Format(s:new, 'DiffDelete')
  exe s:new_win . 'wincmd w'
  exe 'normal! a' . s:new . \n\e
  exe s:org_win . 'wincmd w'

  let s:n -= 1
endwhile
unlet s:n
  endif
  unlet s:filler

  let s:new = 
  if has('folding')  !exists('context_ignore_folding')  foldclosed(s:lnum) 
 -1
let s:new = s:Format(s:new . foldtextresult(s:lnum), 'Folded')
let s:lnum = foldclosedend(s:lnum)
  else
let s:line = getline(s:lnum)
let s:len = strlen(s:line)
let s:diffattr = diff_hlID(s:lnum, 1)

let s:col = 1
while s:col = s:len || (s:col == 1  s:diffattr)
  let s:startcol = s:col  The start column for processing text.
  if s:diffattr
let s:id = diff_hlID(s:lnum, s:col)
let s:col += 1
while s:col = s:len  s:id == diff_hlID(s:lnum, s:col) | let s:col += 
1 | endwhile
if s:len  columns
   Add spaces at the end to mark the changed line.
  let s:line = s:line . repeat(' ', columns - s:len)
  let s:len = columns
endif
  else
let s:id = synID(s:lnum, s:col, 1)
let s:col += 1
while s:col = s:len  s:id == synID(s:lnum, s:col, 1) | let s:col += 
1 | endwhile
  endif

   Expand tabs.
  let s:expanded = strpart(s:line, s:startcol - 1, s:col - s:startcol)
  let idx = stridx(s:expanded, \t)
  while idx = 0
let i = ts - (idx + s:startcol - 1) % ts
let s:expanded = substitute(s:expanded, '\t', repeat(' ', i), '')
let idx = stridx(s:expanded, \t)
  endwhile

   Output the text with the same synID, with class set to {s:id_name

Re: [NTG-context] An idea

2005-12-02 Thread Nikolai Weibull
Zeljko Vrba wrote:

 A motivation and idea that came to mind while writing a post to
 comp.text.tex:
 
 ==
 Then again, most (all?) of publishers require Latex source, if my
 document ever makes it that far.. And Latex has nicer source code
 formatting than Context. so I'm really split between Latex and
 Context..
 
 None of them individually fit all (I admit, vague) requirements..
 Context being able to chew up Latex .cls files and still allowing for
 its advanced formatting directives, long tables, and other goodies
 would be a perfect match.
 ==

We were planning on using Vim for preprocessing things like this instead
of hacking TeX to do the lexing.  I think Mojca (?) had some ideas for
this and perhaps even a simple implementation, and given that there is
now structured support for preprocessing in texexec I think that this
can be done quite easily.  A lot easier than writing something in TeX.

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Building and installing pdftex 1.30 on teTeX 3.0

2005-11-28 Thread Nikolai Weibull
I've followed the instructions listed at
http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite
give.  The problem is that I use the Gentoo installation setup as a base
and have the latest ConTeXt installed in /usr/local/share.  Does anyone
know what options to pass to pdftex's configure-script to match the
setup on a Gentoo system (where stuff is stored in /etc/texmf and
/var/lib/texmf)?

Thanks.

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Building and installing pdftex 1.30 on teTeX 3.0

2005-11-28 Thread Nikolai Weibull
Taco Hoekwater wrote:

 Nikolai Weibull wrote:

  I've followed the instructions listed at
  http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't
  quite give.  The problem is that I use the Gentoo installation setup
  as a base and have the latest ConTeXt installed in /usr/local/share.
  Does anyone know what options to pass to pdftex's configure-script
  to match the setup on a Gentoo system (where stuff is stored in
  /etc/texmf and /var/lib/texmf)?

 It would be simplest (and definately justified) to ask this to the 
 Gentoo maintainer, because (s)he has apparently succeeded in setting
 that up (Gentoo's trees seem to bear only a passing resemblance to
 teTeX and would be more accurately called Gentoo-TeX).

Sadly, there's no separate pdfetex ebuild for Gentoo.  If there was, I
wouldn't have to mess with this :-).

 My best guess: find the non-etc version of texmf.cnf (I'm fairly
 certain there is one), and attempt to pass the root of texmf tree
 that contains it as  --datadir to the configure script.

Yes, there's one in /var/lib/texmf/web2c.  The reason for this layout is
to separate architecture-dependent files and non-architecture-dependent
files.  I can't say that the added complexity justify this separation.

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Referencing in Project Structure

2005-11-26 Thread Nikolai Weibull
David Arnold wrote:

 In each section, I would like numbering of theorems, definitions,  
 examples, equations, etc, to be consecutive and include the section  
 number as a prefix. For example, if a theorem happens to appear  
 first, then number it 1.1, the next three equations (1.2), (1.3), and  
 (1.4), the next two examples 1.5 and 1.6, the next two equations  
 (1.7) and (1.8), the next definition 1.9, the next theorem 1.10, the  
 next three equations (1.11), (1.12), and (1.13), the next example  
 1.14, etc.

 How do I set this up in bookenv?

By reading cont-enp.pdf?  There's a lot of information in there and it
has a pretty good index.

Use the way=x setting, as in:

\setupformulas[way=bychapter]

(or way=bysection if that's really how you want to number it).

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] utf8 editor problems

2005-11-24 Thread Nikolai Weibull
Hans Hagen wrote:

 (scite adds them but does not remove them when you change the
 encoding)

Wow, that's incredibly broken (even more broken than using BOMs in the
first place - or an encoding that depends on them for that matter ;-).

(Thank Rob for UTF-8!)

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Mini-survey: What do you do with ConTeXt?

2005-11-04 Thread Nikolai Weibull
Taco Hoekwater wrote:

 What do you do with ConTeXT?

I use ConTeXt for any document that I figure someone will want to print
out on paper some day.  This includes resumes, letters, and articles.  I
even considered typesetting software documentation with ConTeXt, but
haven’t yet decided if PDFs are the right medium for that kind of text.
I also typeset my master’s thesis using ConTeXt and probably spent as
much time hacking ConTeXt as I did on doing “actual work” for the
content.  Not because ConTeXt couldn’t do what I wanted, but because
ConTeXt allowed me to do anything I wanted.  Having a lot of options can
be time-consuming, as you want to try them all before deciding on the
one that works best.  This is both the good and the bad thing about
ConTeXt.  You can tweak and tweak and tweak, whereas with something like
LaTeX you have a few boring designs and you just choose the one that
suits the type of document your writing.  And your document will look
like five million other research papers outh there.  I wanted something
unique and ConTeXt was just the right tool for it.

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt release of october 27.

2005-10-31 Thread Nikolai Weibull
Taco Hoekwater wrote:

 I've created a wiki page for the new release Hans made last thursday:
 http://wiki.contextgarden.net/Release_Notes

It mentions support for file preprocessing.  Is there any
documentation available?  I'm guessing that this is to allow us to add
things like syntax highlighting (me and Mojca?) through Vim.  Is this
correct?  If so, it would be nice to know how to use it soon, so that we
can get cracking.  I'd rather use Vim's Ruby highlighting than writing a
verb-ruby.tex...

nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-09-24 Thread Nikolai Weibull
(OK, this is old, but I finally did something about it.)

VnPenguin wrote:

 Just tested your context.vim under vim 6.3.x; It's better than
 tex/latex standard syntax in vim 6.3 IMHO.
 
 I have only a small remark: The following code is valid in ConTeXt:
 
 \useURL 
 [book-ns-openssl][http://www.amazon.com/exec/obidos/ASIN/059600270X/qid%3D1024342376/103-8123753-9606263][][Network
 Security with OpenSSL]
 
 but the syntax considers % like a comment mark, so I see another color
 for the text after %.  It's possible to make the comment pattern
 smarter ? :)

Actually, yes, there is.  Wait for me to get a new version sent upstream
to the Vim 7 CVS, add the following to your vimrc, and cheer:

let g:context_spacious_comments = 1

This will make it so that comments must be at the beginning of the line
or be preceded by a white-space,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] free keycaps font

2005-09-12 Thread Nikolai Weibull
Stuart Jansen wrote:

 As far as I can tell, ConTeXt doesn't include a keycaps font. I recently
 created my own and would like to share it with anyone else that might
 find it useful. I've included a sample document with it. If you're on a
 *nix system with a working copy of ConTeXt and make, just type make to
 build it.

Very nice!  I would like them to lay closer to a standard baseline,
though,
nikolai


-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] free keycaps font

2005-09-12 Thread Nikolai Weibull
Stuart Jansen wrote:

 On Mon, 2005-09-12 at 23:08 +0200, Nikolai Weibull wrote:

  Stuart Jansen wrote:

   As far as I can tell, ConTeXt doesn't include a keycaps font. I
   recently created my own and would like to share it with anyone
   else that might find it useful. I've included a sample document
   with it. If you're on a *nix system with a working copy of ConTeXt
   and make, just type make to build it.

  Very nice!  I would like them to lay closer to a standard baseline,
  though,

 I'm not sure what you mean by lay closer to a standard baseline.

Neither am I...

 The baseline of the glyph inside the key is aligned with text outside
 the key. I waffled back and forth trying to find the most attractive
 position while building the font. The majority of keycaps fonts I
 looked at chose the same baseline.

Ah, of course.  That's perhaps as good as it gets,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] some highlighted \type-ing

2005-09-07 Thread Nikolai Weibull
Mojca Miklavec wrote:

 But, I finally understand why I was confused yesterday.
 
 \setupcolors[state=start]
 \setuptype[option=TEX]
 \type{\a}
 
 does nothing (and this was what I first tried and thought that this is
 not supported yet; non-existing options never raise an error anyway).

I reported this bug back in April but no one replied.  The problem is
that the first character is read and then not given back the right
catcode so that the typing stuff can process it correctly.

This mainly affected me when I was trying to write inline C code, such
as \type{int a}, because the int wouldn't be highlighted as a keyword.

 I'm thinking about piping the code to vim, letting the vim process it
 and return something like
 
 \highlight[Conditional]{if}\highlight[Delimiter]{(}\highlight[Identifier]{i}
 ...
 One should modify the 2html.vim file (vim can already nicely transform
 the highlighted code into HTML, so ConTeXt shouldn't be so difficult).
 Vim already has over 400 sytax file definitions (probably equivalent
 to some hundred thousans lines of syntax definitions in ConTeXt).
 Well, I don't know (yet) how to do it, but if someone on the list has
 more experience with vim, please feel free to contribute.

Yes, this would definitely be a good alternative way of getting
highlighting (for free).  Writing a converter shouldn't be that hard,
and writing ConTeXt code shouldn't be impossible either.  Alas, I don't
have time at the moment.  I need to find myself a job first; which sadly
probably won't be found in Sweden...Sweden is such a boring place when
it comes to IT,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead command

2005-07-25 Thread Nikolai Weibull
Elena Fraboschi wrote:

 (2) Horizontal alignment.  This problem is almost funny.  Consider
 these two setups:
 
 \setuphead[section][
 align=middle
 ]
 
 \setuphead[subsection][
 align=left,
 ]
 
 The section will appear just fine, centered between the left and the
 right margins.  The subsection head will appear flush RIGHT!  If,
 instead, you write
 
 \setuphead[subsection][
 align=right,
 ]
 
 the subsection head will appear flush LEFT.  Hmmm...  Hans, are you
 dyslexic?  :-)  (just in case, here comes another one :-))

They mean (ragged-)left and (ragged-)right, see
http://www.contextgarden.net/Right_and_left.

Isn’t

\setuphead
  [section]
  [align=middle]

a lot easier to read than what you’re writing?  We’re not writing C code
here…

Seriously, this is getting boring.  There’s a question on this topic
once a week now.  Sad part is, there’s really no good way to solve it,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead command

2005-07-25 Thread Nikolai Weibull
Elena Fraboschi wrote:

 (1) any ConTeXt command to gobble-up unwanted vertical space before a
 section header, when the section header appears right at the top of a
 new page?

Hm, isn’t this done automatically?

 (2) any ConTeXt way to do a \setuphead such that the text following
 the header will be run-in text?

\setuphead
  [chapter]
  [alternative=text]

Enjoy,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setuphead command

2005-07-25 Thread Nikolai Weibull
Elena Fraboschi wrote:

 I'll test tonight what you says happens automatically (gobbling up
 whitespace at the top of a new page).  I'll use a grid to make sure
 that that's the case: to the naked eye, it seemed as though there was
 an awful amount of whitespace at the top of the page, but we'll see:
 I could be wrong.

Remember that there’s a rather spacious header defined by default,
nikolai


-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [BUG] unic-032.tex 0x2026 HORIZONTAL ELLIPSIS definition wrong

2005-07-20 Thread Nikolai Weibull
Hans Hagen wrote:

 Nikolai Weibull wrote:

[HORIZONTAL ELLIPSIS definition wrong]

 i made it the equivalent of \unknown (better spacing than \dots)

Ah, so very, very true.

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] [BUG] unic-032.tex 0x2026 HORIZONTAL ELLIPSIS definition wrong

2005-07-19 Thread Nikolai Weibull
\textellipsis usually expands to \cdots and that's fine, but
\textellipsis shouldn't be used in unic-032.tex for 0x2026 HORIZONTAL
ELLIPSIS, as this codepoint is for a symbol of dots on the base-line,
not in the center.  I've posted about this previously, but got no
response.  Anyway, I've attached a patch that fixes the problem.  I
don't know if using \dots instead is the best solution, though, so
further discussion may be necessary?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
--- old-unic-032.tex2005-07-20 01:13:44.414092288 +0200
+++ unic-032.tex2005-07-20 01:13:54.869502824 +0200
@@ -113,7 +113,7 @@
 \strippedcsname \unknownchar  \or   % U+2023 TRIANGULAR BULLET
 \strippedcsname \unknownchar  \or   % U+2024 ONE DOT LEADER
 \strippedcsname \unknownchar  \or   % U+2025 TWO DOT LEADER
-\strippedcsname \textellipsis \else % U+2026 HORIZONTAL ELLIPSIS
+\strippedcsname \dots \else % U+2026 HORIZONTAL ELLIPSIS
   \ifcase\numexpr#1-48\relax
 \strippedcsname \perthousand  \or   % U+2030 PER MILLE SIGN
 \strippedcsname \unknownchar  \or   % U+2031 PER TEN THOUSAND SIGN
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-15 Thread Nikolai Weibull
VnPenguin wrote:

 Just tested your context.vim under vim 6.3.x; It's better than
 tex/latex standard syntax in vim 6.3 IMHO.

Great, thanks!

 I have only a small remark: The following code is valid in ConTeXt:
 
 \useURL [book-ns-openssl][http://www.amazon.com/exec/obidos/ASIN/
   059600270X/qid%3D1024342376/103-8123753-9606263][][Network
   Security with OpenSSL]

 but the syntax considers % like a comment mark, so I see another color
 for the text after %.
 It's possible to make the comment pattern smarter ? :)

Hm, probably not.  The problem with TeX is that it's so goddam flexible
when it comes to syntax.  The whole deal with turning $ on and off, %
into something else, and so on is really hard to capture in a syntax
highlighter.  To do so successfully, the highlighter would more or less
have to parse the TeX document itself to understand when and where to do
what.  I guess special cases like the one above (with a very weird URL
indeed) so that \useURL would be parsed differently, but it's impossible
to always get these things right,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-08 Thread Nikolai Weibull
(Sorry for responding to two separate mails, I'm a bit rushed, going on
a three-day holiday.)

Hans Hagen wrote:

 Mojca Miklavec wrote:

  If you have something like
  \startMPpage
  draw ...
  \stopMPpage,
  it will do the syntax highligting for metapost inside the \start-\stop 
  pair.

That's a great idea, I'll add that to my version

  I downloaded SpellChecker and SuperTab (autocomplete) today from the vim 
  website and it works great! (see http://contextgarden.net/Vim and feel 
  free to add any useful stuff there)

Version 7 has a spell-checker built in.

  I was astonished as I saw autocomplete work. There are only a couple of 
  lines with an extraordinary functionality. I think that if someone 
  writes a good script to convert texshow to vim syntax highlighting 
  script, than autocomplete will be able to provide good hints for all the 
  existing commands in ConTeXt and the corresponding parameters. I'll try 
  to see what I can do, but please don't excpect any results too soon.

There's always the ever-simple CTRL-P/CTRL-N as well.

 What is the syntax? I can exten ctstools to spit out a vim keyword table; 
 it already handles scite, jedit and bbedit so adding vim is not undoable

Download vim and run :help syntax.  But the short version is

syn keyword contextKeyword  ...
^-- group name  ^-- keywords

But that won't work for stuff beginning with \\.  Then you'll have to
use regexes and

syn match   contextKeyword  ...
^-- regex

Exactly what kind of keyword table are we talking about?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] TeX + Metapost syntax highlighting in Vim

2005-07-08 Thread Nikolai Weibull
Mojca Miklavec wrote:

 In case someone finds this experimental piece of code for highlighting
 metapost inside ConTeXt useful, put:

Hi!

I don't want to be a party-pooper, but I have already commited support
for the context file-type to vim7 CVS.  Perhaps you can look over my
version and make suggestions?  It doesn't use the rather bloated
LaTeX/Plain TeX syntax definition, but my own blend,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Making texshow easier to edit

2005-07-07 Thread Nikolai Weibull
The following things would make editing the texshow wiki a lot easier to
edit:

* Preview displays of changes
* Easy cross-referencing between commands
* Not putting everything inside pre.../pre tags

When making changes, having a preview display makes it easier to decide
on what works and what doesn't before commiting.

I added documentation to the \quote command and thought that having
links to \setupquote and \setuplanguage would be helpful.  I had to
create a href-type tags for this with long-winded query-strings.  It
would be much easier to have some automatic cross-referencing going on
(a la WikiWords perhaps, but using \ as a signal?).

When everything is put inside pre.../pre tags, line-breaks become
significant, which makes it very hard to tell where to break a line.  It
would be much better if the browser could decide this for itself.

Anyway, I think that texshow is a great utility and hopefully more
commands will be described and commented upon.  For me to continue doing
this, I'd probably have to have the above features available before I
did so,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Making texshow easier to edit

2005-07-07 Thread Nikolai Weibull
Patrick Gundlach wrote:

 [a luckily not so long list snipped]
 
 I'll have a look at texshow-web this weekend. Thank you for your
 suggestion, I will report back to you and Mojca. There is also (at
 least) one feature reqest from Taco, so I won't get bored soon. So if
 there are more suggestions, shout out now. 

Great!  I hope I didn't come of as negative to texshow or its
implementation.  I like it, but I would also like to see it become
better and easier to use/edit.  Thank you for your work so far,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \placebookmarks problem

2005-07-05 Thread Nikolai Weibull
I have a setup like the following:

\setupinteraction
  [state=start,
   style=normal,
   color=,
   page=yes,
   openaction=firstpage,
   title=ruby-lisp README,
   author=Nikolai Weibull]

\setupinteractionscreen

\placebookmarks
  [section,subsection]

The problem is that I get

\doPDFinsertbookmark ...bookmarktext \stripstring 
  \bookmarktext \doPDFbookma...
argument \flushbookmark 
  \dodoputbookmarkelement {\v!section }{3}{1.2}{Auth...

\secondoftwoarguments #1#2-#2
  
l.25 ...}{3}{1.2}{Authors}{2::0:1:2:0:0:0:0::1}{1}
  
? 

What am I missing?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \placebookmarks problem

2005-07-05 Thread Nikolai Weibull
Hans Hagen wrote:

 Nikolai Weibull wrote:

  I have a setup like the following:

 ... a minimal complete example will help

My sincere apologies for posting prematurely.  It was a misconfiguration
of my environment,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] metafun not working

2005-06-28 Thread Nikolai Weibull
piskala upendran wrote:

[blah]

Could you perhaps choose to not send multiple copies of every message to
this list?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Old-style numerals

2005-06-16 Thread Nikolai Weibull
To get old-style numerals as the default, the accepted solutions seems
to be the following:

\usetypescript [modern][\defaultencoding]
\usetypescript [map] [latin-modern-os] [\defaultencoding]

\setupbodyfont[modern]

However, this causes old-style numbers to be used for \type as well,
which looks weird.  Is there a way to override the switching to
old-style numerals for the fixed-width typeface?

Example:

\usetypescript [modern][\defaultencoding]
\usetypescript [map] [latin-modern-os] [\defaultencoding]
\setupbodyfont[modern]
\starttext
1 2 3 \type{1 2 3}
\stoptext

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to indent the first paragraph in Chinese processing ?

2005-06-15 Thread Nikolai Weibull
Xiao Jianfeng wrote:

 Nikolai Weibull wrote:

  Xiao Jianfeng wrote:

  Could someone give me some hints about how to indent the first
  paragraph in Chinese processing ?

  Is this about setting the indentnext option to no perhaps?

 Normally, all paragraphs are indented in Chinese documents. But when I 
 use \setupindenting[first,medium] to setup indentation for every 
 paragraph, it has no effect on the first paragraph at all. I can't 
 change the indentation even I put indenting[...] before the first 
 paragraph.

Yes, I get the same results.  \indent doesn't work either.

I took a look on the code dealing with \setupindenting and it seems as
if first is being processed correctly.  The problem seems to be in
\presetindentation, and redefining it slightly seems to help:

\setupindenting
  [first,medium]
\def\presetindentation
  {\ifindentfirstparagraph\doindentation\else\noindentation\fi}
\starttext
\chapter{First}
\input tufte
\stoptext

I don't in any way guarantee that this is the right way to solve it, but it
works,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Lowercasing section titles

2005-06-15 Thread Nikolai Weibull
Taco Hoekwater wrote:

 % the unexpanded is because we do not want
 % actual \lowercase commands in the contents list
 \unexpanded\def\dodowncase{\lowercase}

Ah, this works great.  It can even be placed inside a \setuphead as the
textcommand and it works.  Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \whitespace vs \parskip

2005-06-14 Thread Nikolai Weibull
John R. Culleton wrote:

 I needed to decrease the spacing between paragraphs to fit
 everything in to a newsletter with limited page count. 

 \parskip 3pt  %works
 \setupwhitespace[3pt] %doesn't

Does using one of the keywords work?  For example,

\setupwhitespace[small]

Enjoy,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to indent the first paragraph in Chinese processing ?

2005-06-14 Thread Nikolai Weibull
Xiao Jianfeng wrote:

 Could someone give me some hints about how to indent the first
 paragraph in Chinese processing ?

Is this about setting the indentnext option to no perhaps?

\setupheads
  [chapter,section,subsection,...]
  [indentnext=no,
   ...]

Or are you thinking of something else?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Lowercasing section titles

2005-06-14 Thread Nikolai Weibull
Hi!

I would like to lowercase section titles within the document while
retaining their casing in the table of contents.  Ive tried figuring
out how to use setuphead[section][textcommand=...] to do what I wish,
but failed.  Anyone have any suggestions?

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Skrinking distance between bullet and text in itemize

2005-06-12 Thread Nikolai Weibull
Id like to have the bullet appear closer to the text being itemized
inside a \startitemize.  I changed the symbol being used to a \cdot and
now the text appears to far away from the bullet itself.  Is there a way
to fix this?  I figured that altering distance, width, and/or factor
would have some effect, but albeit it remains unchanged.  The bullet
also appears inmargin, if thats important.

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Skrinking distance between bullet and text in itemize

2005-06-12 Thread Nikolai Weibull
Steve Peter wrote:

 On Jun 12, 2005, at 10:21 AM, Nikolai Weibull wrote:

  Id like to have the bullet appear closer to the text being itemized
  inside a \startitemize.  I changed the symbol being used to a \cdot
  and now the text appears to far away from the bullet itself.  Is
  there  a way to fix this?

 Try something like
 
 \startitemize[1 (or whatever symbol you want), 2*serried]

I tried that, but the problem is that when one uses inmargin, this
doesnt seem to work.  It seems that the interplay between width and
distance isnt working as I would expect.  Anyway, thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] unic-033.tex and unic-034.tex

2005-06-10 Thread Nikolai Weibull
Hans Hagen wrote:

 Nikolai Weibull wrote:

  I wrote the arrow parts of vector 033 as well.  Works OK.  Comments
  welcome.  I'd personally enjoy both being included in ConTeXt at
  some point.

 sure,
 
 concerning these:
 
 [EMAIL PROTECTED]:}}
 
 an option is to add them to the default math vector, something
 
 \startmathcollection[default]
 
 \definemathcommand [EMAIL PROTECTED]  [...] {...}
 
 that way you get a lot for free

Thanks for the information!  Yes, that definitely saves a lot of work.
I really need to learn more of ConTeXts internals.  Ill convert to
this method instead,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] space between rows?

2005-06-09 Thread Nikolai Weibull
Nikolai Weibull wrote:

 Paul Tremblay wrote:

  Is there a way to put extra space bewteen rows with the standard
  Table module?

 \DR

But thats obviously not what you want...Sorry.  Perhaps you can use
\setuptables[height=h,depth=d]?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Horizontal shifting gives overfull hboxes

2005-06-07 Thread Nikolai Weibull
OK, not the first time I bring this up, and its not a serious issue,
but its very irritating having overfull hboxes that are in all ways
correct:

\version[temporary]
\definedescription
  [test]
  [location=left]
\starttext
\starttest{1 is 1}
Solution:
\placeformula[-]
  $$1 = 1$$
\stoptest
\stoptext

will give a very ugly black box to the left of the formula.  Any way of
solving this?  Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] List of figures with shorter captions

2005-05-30 Thread Nikolai Weibull
Tim 't Hart wrote:

  I was wondering if it's possible to let ConTeXt write a different
 text to the List of Figures.

See http://www.pragma-ade.com/general/magazines/mag-0001.pdf,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \textellipsis definition wrong

2005-05-29 Thread Nikolai Weibull
Im using 2005.01.31 and \textellipsis expands to \cdots, which isnt
what its supposed to do.  It should be \ldots, or preferably just
\dots.  Or, if thats not what you want to do, at least dont use
\textellipsis for U+2026 HORIZONTAL ELLIPSIS in unic-032.tex.

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Vertical alignment in tables

2005-05-24 Thread Nikolai Weibull
Id like to have a table like this:

1 23

Pic-
ture- 
spanning- Centered1 Centered2
some-
lines

Another-
Picture- 
spanning- Centered1 Centered2
some-
lines

The first column contains a figure using \externalfigure.  I want the
following two columns to be vertically centered in the space that the
picture occupies in each row of the table.

A quick response would be preferable, as I really should hand in the
paper containing the above table by tomorrow.  Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Unicode symbols in math mode

2005-05-20 Thread Nikolai Weibull
Hans Hagen wrote:

 Nikolai Weibull wrote:

  I was wondering if it would be easy to add UTF-8 transformations of
  symbols like  to \geq in math mode, much like  and  are 
  transformed to `` and '' (atleast I assume this to be true, as it
  works for me).

 no problem, but someone has to define the vector; there was some
 discussion on this some time ago; so, if you prepare the vector
 (analogue to unic-*.tex) ...

OK, then, Ill do it...and I did it...and its kind of sweet.  There are
some problems however:

1.  Not all symbols have a TeX equivant that I know about.  If anyone is
interested, please do go through the vector, looking for
\unknownchars and substitute in the appropriate TeX sequence.

2.  Many negated operators are traditionally written using \not.  The
Unicode transformations dont work with sequences like these.  I
dont know enough about the Unicode vector transformations to
assertain how to solve this problem.  Can someone perhaps tell me
how to solve this issue?

Thanks, and do enjoy the wonderful world of Unicode,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}


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


[NTG-context] Unicode symbols in math mode

2005-05-19 Thread Nikolai Weibull
I was wondering if it would be easy to add UTF-8 transformations of
symbols like  to \geq in math mode, much like  and  are transformed
to `` and '' (atleast I assume this to be true, as it works for me).

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ruby

2005-05-11 Thread Nikolai Weibull
Hans Hagen, May 11:

   when pondering about some ruby to bin for unix 

  Why would you want to do that?

 because ruby is not always installed (for some reason distribution do
 install tons of useless games and all kind of progs whose name i
 instantly forget, but no forget to install a recent ruby -); it's also
 handy when one runs from cd

Hm, true,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] typing questions

2005-04-28 Thread Nikolai Weibull
Taco Hoekwater, April 20:

 Peter Münster wrote:

  Is there a module for pretty-printing C-code?

 None that I know of, if anybody has a solution, I am interested myself
 as well

I wrote one a while ago.  It's not great, but it works quite well.  It
even processes preprocessor directives correctly, albeit a bit
hackishly.  It's not too fun working with the verbatim code, though.
It's a bit restrictive in what can be done.

Anyway, I've attached it here.  Perhaps we can make something standard
of it?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}


verb-c.tex
Description: verb-c.tex
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


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

2005-04-26 Thread Nikolai Weibull
Johan Sandblom, April 25:

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

I'm not sure you can use natural tables for this.  This works:

\splitfloat
  {\placetable{Title}}
  {\starttablehead
 \HL
 \NC \bf Column 1\NC \bf Column2 \NC\AR
 \HL
   \stoptablehead
   \starttabletail
 \HL
   \stoptabletail
   \starttables[|l|lp(25em)|]
 \NC \dots   \NC \dots   \NC\AR
 \dots
   \stoptables}

Enjoy,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Another verbatim bug?

2005-04-17 Thread Nikolai Weibull
Idris Samawi Hamid, April 17:

 \type{texfont --help}
 
 The bug is apparently in \type: it only generates one dash.

This doesn't happen on my system, but perhaps you're using a newer
ConTeXt version than I am,
nikolai (who's using the 2005.01.31 that ships with teTeX 3.0)

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] the right way to do \ref?

2005-04-15 Thread Nikolai Weibull
Paul Tremblay, April 14:

 see \ref[r][mark1] \par

Why not \at[mark1]?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Possible bug in verbatim

2005-04-15 Thread Nikolai Weibull
Idris Samawi Hamid, April 14:

 \type{ {A} }

Wait, what?  You can have nested braces in \type?  I had no idea!  That
actually saves me a lot of trouble, thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Defining references points

2005-04-14 Thread Nikolai Weibull
Matthias Weber, April 13:

 \pagereference[name] or \textreference[name]{text}
 
 to place a label, and \at{page}[name]  to refer to the page number.

Actually, it turns out that \reference worked best, but thanks for
pointing them out for me.  I was actually using them, only in the wrong
way...I also found them in cont-enp.pdf now and understood them better.
Silly me.

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Defining references points

2005-04-13 Thread Nikolai Weibull
I have tried figuring out how to define a reference point at any given
location in a document, but haven't been able to come to a solution,
so...how do I do it?  What I'd really like to do would be to write:

\placerefpoint[name][description]

and then be able to write

see \about[name], \atpage[name].

with the obvious semantics.

Thanks,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \definetype[...][option=...] problems

2005-04-13 Thread Nikolai Weibull
Try running

\setupcolors[state=start]
\definetype[JS][option=JS]
\starttext
\JS{function}\par
\JS{function }\par
\JS{ function}\par
\JS{ function }
\stoptext

The first paragraph will only be the first character, f, the reason is
made clear from the following two paragraphs.

In the second paragraph, function comes out, but it isn't highlighted as
a keyword, as the initial f has been consumed and thus the unction
part doesn't match any keywords.  I guess this is due to the
type-handling checking for double characters, like in \type ... ?

In the third paragraph, only the initial space is output.  The rest will
never be output, as \PLsequence never gets a chance to be printed.

Only in the fourth paragraph is function output correctly, although it
is now surrounded by two spaces.

Any suggestions on possible solutions, other than removing the
option=JS?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] table won't break across page

2005-04-10 Thread Nikolai Weibull
Paul Tremblay, April 10:

 I am trying to create a table that breaks across pages. I used the
 example from the wiki. The table repeated its headers like it should
 have, but it did not break across a page; it stuck the table on one
 page. 

The example on the wiki is messed up.  I guess I could have fixed it,
but I haven't had time:

\splitfloat
  {\placetable{Percentage of People without}}
  {\starttablehead
   
   \stoptablehead
   \starttabletail
   
   \stoptabletail
   \starttables[]
   
   \stoptables}

Enjoy,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] table won't break across page

2005-04-10 Thread Nikolai Weibull
Paul Tremblay, April 10:

 On Sun, Apr 10, 2005 at 10:45:37AM +0200, Nikolai Weibull wrote:

  \splitfloat
{\placetable{Percentage of People without???}}
{\starttablehead
 ???
 \stoptablehead
 \starttabletail
 ???
 \stoptabletail
 \starttables[???]
 ???
 \stoptables}

Your mailer seems to mess up the charset.  You're sending us-ascii
responses to utf-8 mail and including the utf-8 sequences (the ???'s),
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] table won't break across page

2005-04-10 Thread Nikolai Weibull
Paul Tremblay, April 10:

  Your mailer seems to mess up the charset.  You're sending us-ascii
  responses to utf-8 mail and including the utf-8 sequences (the ???'s),

 When I got your email, I saw the ???. I assumed you put them in to
 indicate I should fill in the blank. What characters were you trying to
 convey here? I wasn't aware that my emailer was messing things up. It is
 the mutt emailer.

Those are supposed to be ellipses of the horizontal and vertical kind to
the effect that you perceived them to be (as ?, though).  Anyway, you
can compile mutt with unicode support.  You need to enable unicode
support in ncurses as well.  Anyway, it doesn't matter much I suppose,
but I guess it's another one of those problems with mutt...,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Activating urls

2005-04-08 Thread Nikolai Weibull
Patrick Gundlach, April 8:

 \from[Adobe].

Aha, is that the right way to do it?  I actually get fully working
hyperlinks with \url (as far as I can tell), but perhaps \from is the
right macro.  Sorry about confusion,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Activating urls

2005-04-08 Thread Nikolai Weibull
Patrick Gundlach, April 8:

 I get a 'half working' hyperlink. Try to replace '\url' by '\from'.

Actually, for me, both work in acroread (7),
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Activating urls

2005-04-07 Thread Nikolai Weibull
Idris Samawi Hamid, April 7:

 Am I missing yet something else?

How are you viewing this?  Perhaps your application doesnt support
hyperlinks, or they have been disabled in it?,
nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problem with the bib module (yeah, so what else is new)

2005-03-30 Thread Nikolai Weibull
OK, another one of those hey, the bib module has an issue-kind of
mails.  The problem is that \bibdoif and its relatives don't work.
They always evaluate to true.  I have tried to figure out why this is
so, but I'm just not good enough at reading TeX macros (yet).  The main
problem is that I want to do something like this for my
\setuppublicationlist:

\doglobal\newif\ifBIBLoutputbeforesurname
\global\BIBLoutputbeforesurnamefalse

\def\BIBLwholename#1#2#3#4#5%
  
{\bibdoif{#1}{#1\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}%
   
\bibdoif{#4}{#4\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}%
   \bibdoif{#2}{#2\unskip\bibalternative\c!vonsep\BIBLoutputbeforesurnametrue}%
   \ifBIBLoutputbeforesurname \else
 \unskip%
 \BIBLoutputbeforesurnamefalse%
   \fi
   #3\bibalternative\c!surnamesep%
   \bibdoif{#5}{#5\unskip}}

The problem is that one can't have

\author[]{}[]{}{Organization}

without extra spaces appearing before the Organization.  Another issue is that
extra spaces occur between the first and last name in the \normalauthor
style,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Problem with \type in captions

2005-03-29 Thread Nikolai Weibull
\starttext
\placefigure
  {\type{0|}}
  {}
\stoptext

gives me

! Argument of \next has an extra }.
inserted text
\par
to be read again
   }
argument ...p {\strutdepth }\begstrut \type {0|}
  \endstrut \endgraf
\doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4
  }\dostopattributes
\putcompletecaption ...trut #3\endstrut \endgraf }
  \fi \dostopattributes
\docheckcaptioncontent ...ecaption {#4}{#2}{#3}{0}
  }\ifdim \wd \tempcaptionbo...
...
l.4   {}

Remove the 0 and it works fine.  Is there a quick fix?,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Problem with \type in captions

2005-03-29 Thread Nikolai Weibull
* Hans Hagen (Mar 30, 2005 01:10):
 that's because the caption is passed as an argument and the catcode is 
 frozen then (being active, the | expects something |...| ; try 
 \type{0}\type{|} since the first token of type is not expanded at all

Yeah, that will work.  The problem is, though, that I'd really like it
to be in one \type as I am actually using something called \TypedRegex
that delimits the regular expression argument with quotes.

I guess I could fake the quotes and use the split-\type trick,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] OT: metapost question

2005-03-28 Thread Nikolai Weibull
* Taco Hoekwater (Mar 29, 2005 00:10):
 N := 100;
 for k=1 step 1 until N:
   beginfig(k);
drawdot (100,100) withpen pencircle scaled k;
   endfig;
 endfor;
 end.

Wow, I never realized that.  Man, I really gotta try to remember what
can be done with macro processors...,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Title-page overlay

2005-03-20 Thread Nikolai Weibull
I would like to put a rather large and complicated regular expression
into the title-page of a document I'm writing.  So far, I haven't had
much luck defining an overlay that uses \starttyping ... \stoptyping.

Basically, what I figured I should do was to write

\defineoverlay
  [TitleGraphic]
  [{
\starttyping
...
\stoptyping
}]

and then

\setupbackgrounds[page][background=TitleGraphic]

But that doesn't work:

! Argument of \copyverbatimline has an extra }.

Have any suggestions on what I might try?  Basically, what I want is a
background with some arbitrary text, more or less like the pdfTeX user
manual document does it [1],
nikolai

[1] http://www.pragma-ade.com/pdftex/pdftex-a.pdf

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Title-page overlay

2005-03-20 Thread Nikolai Weibull
* Willi Egger (Mar 20, 2005 18:00):
 May be you should try a buffer to put the typing in. In the overlay
 you can call the buffer with \typebuffer[...]

\startbuffer[title]
...
\stopbuffer

\defineoverlay
  [TitleGraphic]
  [{\startcolor[titlegraphic]\typebuffer[title]\stopcolor}]

\setupbackgrounds[page][background=TitleGraphic]

The problem with that is that everything winds up on one line for some
reason,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: Title-page overlay

2005-03-20 Thread Nikolai Weibull
* Patrick Gundlach (Mar 20, 2005 19:20):
 Hello Nicolai,

k, please.

 put your \typebuffer stuff in \framed[align=lohi]

That was a very good suggestion, thank you.  It worked out fine.  This
is what I do now:

\defineoverlay
  [TitleGraphic]
[{\framed

[align=middle,width=\overlaywidth,height=\overlayheight,top=\vss,bottom=\vss,foregroundcolor=titlegraphic]
{\typebuffer[titlebackground]}}]

Thanks,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: minimalistic.org   :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Re: book on context?

2005-03-15 Thread Nikolai Weibull
* Hans Hagen (Mar 15, 2005 13:20):
   Is there actually a hard-copy book for ConTeXt? 

  No, there is none.

 but there will be one; steve peter is working on it

That's great news.  I've really wanted a book on ConTeXt.  I'm getting
tired of seeing a bunch of books on LaTeX but none on ConTeXt.  I'd pay
dearly for a well-written book on ConTeXt,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] acrobat reader for linux

2005-03-15 Thread Nikolai Weibull
* Tom Fossen (Mar 16, 2005 00:40):
 Acrobat reader 7.0 for linux is now available. 

 Awaiting comments from heavy users,

Better; still not great,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \raggedright?

2005-03-12 Thread Nikolai Weibull
* Gerben Wierda (Mar 13, 2005 00:50):
 I tried to get one piece in a justified text to behave as follows:
 right aligned and with a jagged left edge. But what I tried influenced
 my entire document.

\starttext
\startalignment[left]
Blah blah blah
\stopalignment
\stoptext

Don't ask why the parameter to \startalignment is left, not right.  Look
at the context wiki [1] for information on why this is so,
nikolai

[1] http://contextgarden.net/Main_Page

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] ConTeXt equivalent for \ensuremath?

2005-03-11 Thread Nikolai Weibull
* Gerben Wierda (Mar 11, 2005 15:50):
 I modeled this after the LaTeX sources because I had to move on:

 \newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne%
 \else\expandafter\EnsuredMath\fi} \long\def\FirstOfOne#1{#1}
 \long\def\EnsuredMath#1{$\relax#1$}

 but is there a ConTeXt way of doing this?

\mathematics{...},
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Right aligned caption text.

2005-02-12 Thread Nikolai Weibull
I would like two different methods of typesetting the captions of
figures.  Short captions should be aligned in the middle, while longer
ones (spanning more than one line) should be aligned to the right (well,
ragged right...).  What I did to achieve this was to

\definefloat[describedfigure][describedfigures][figure]

\setupcaption
  [describedfigure]
  [align=right]

\placedescribedfigure
  []
  [figure:...]
  {A long description of the figure...}
  {...}

and this works fine (is there a simpler way?).  What I would like now is
to have the caption of describedfigure to have a small margin, so it
doesn't quite fill the width of the described figure.  I couldn't find
this described in details.pdf (http://www.pragma-ade.com/ is down at the
moment so I couldn't check for any other doc's either).

Any suggestions?,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Fonts, Fonts, Fonts

2005-02-08 Thread Nikolai Weibull
Always with the fonts on this list...

Anyway, I am running some recent beta of tetex and am still having
problems getting fonts loaded in ConTeXt.

\starttext
\showbodyfont[cmr,12pt]
\showbodyfont[lbr,12pt]
\stoptext

seems innocent enough, but produces two identical tables.  pdfetex is
complaining about an all-base.map:

Warning: pdfetex (file all-base.map): cannot open font map file

and there is no such file anywhere (and a grep through /usr/share/texmf,
/etc/texmf, and /var/lib/texmf turns up nothing).

Could someone provide me with a simple rundown on what I should do.  I
would really like to try typesetting my master's thesis in another font
than cmr before I hand it in.  Any suggestions are welcome.

Thanks,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Installing Bitstream fonts

2005-02-08 Thread Nikolai Weibull
* cormullion (Feb 09, 2005 00:10):
 I found a font package called bitstream-vera4context on a website and
 downloaded it. Unfortunately I cant work out how to install them on
 my MacOS X system. Anyone care to give me the necessary mystic
 incantation?

You could check out mag-0009.pdf I guess, it has some information about
truetype fonts.  I don't run MacOS X so I can't really tell you much
more,
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Yet another nath problem

2005-01-24 Thread Nikolai Weibull
[EMAIL PROTECTED] is bug-ridden.  It \def's , but doesn't restore it upon
exit (with [EMAIL PROTECTED]).  One solution is to simply add a
\bgroup...\egroup pair to the two.  That works for now,
nikolai

P.S.
It seems that the \longrightarrow problem still remains.  Was there no
fix applied for this yet?  We had several possible solutions if I
remember correctly, e.g.,

\let\unprotectedlongrightarrow\longrightarrow
\unexpanded\def\longrightarrow{\unprotectedlongrightarrow}

This is all with the

%D last updated: 2004.11.18

release; the one included in tetex-2.99.9.20050111
D.S.

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] dictionary for TeX,/ConTeXt

2005-01-15 Thread Nikolai Weibull
* Ciro A. Soto (Jan 15, 2005 18:10):
 Hello, I would like to know what is the best way to check spelling in
 a TeX-prepared document.  I could use ispell (linux/unix), but I
 wonder if there is a better way with OpenOffice, or other package.
 Besides, ispell wouldn't check my spanish words like Am\'erica
 because of the accent.

I'm not 100% sure, but I'm guessing aspell [1] may be your solution,
nikolai

[1] http://aspell.sourceforge.net/

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] next version

2005-01-06 Thread Nikolai Weibull
* Hans Hagen [EMAIL PROTECTED] [Jan 06, 2005 17:50]:
 - csr/plr/aer/vnr will be dropped in favor of lmr (also makes minimals
 smaller)

What will this entail, exactly?
nikolai

-- 
::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden:::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);}
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   >