[NTG-context] [OT] Lua enters the top 10 languages of the TIOBE index

2011-06-07 Thread luigi scarso
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

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

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


Re: [NTG-context] undefined control sequence bug with German umlaut in bibliography

2011-06-07 Thread Ulrike Fischer
Am Sat, 04 Jun 2011 11:26:37 +0200 schrieb Taco Hoekwater:

 Thank you everybody for your answers.  Writing Tr{\a}ger as Thomas
 suggested works well, but unfortunately, I'm using Mendeley Desktop
 for the management of my bibtex file and I can't seem to be able to
 influence the way in which it encodes the special characters.

 Find a different program, then. Bibtex does *not* deal with UTF-8 
 correctly, period. (complaints to Oren Patashnik please ;))

Doesn't context support biber? Or could Julian save its bib in an
8bit-encoding and context read the bbl as 8bit?


-- 
Ulrike Fischer 

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

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


[NTG-context] [OT] Lua for Windows

2011-06-07 Thread luigi scarso
Lua for Windows is a 'batteries included environment' for the Lua
scripting language on Windows.
http://code.google.com/p/luaforwindows/

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

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


[NTG-context] Question about the vim module

2011-06-07 Thread m00nlight
\usemodule[vim]
\definevimtyping[SHH][syntax=sh]
\starttext



\startSHH

sudo airodump-ng -c channel --bssid target router's mac -w save file name mon0

\stopSHH




\stoptext

before the bssid there are twohyphen,but the pdf file only have one . How can I 
fix 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question about the vim module

2011-06-07 Thread Marco
On 2011-06-07 m00nlight dot_wangyu...@yeah.net wrote:

 \usemodule[vim]
 \definevimtyping[SHH][syntax=sh]
 \starttext
 
 \startSHH
 sudo airodump-ng -c channel --bssid target router's mac -w save file name
 mon0
 \stopSHH
 
 \stoptext
 
 before the bssid there are twohyphen,but the pdf file only have one .

\usetypescript [modern] [texnansi]
\setupbodyfont [modern]

Or use MkIV.

Marco


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

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


[NTG-context] Page with subsection following a subsection

2011-06-07 Thread Cecil Westerhof
I would like to have a subsection start on a new page. This can be done with:
\setuphead[subsection][before={\page}]

But when I have had a section before the subsection instead of a
subsection before the subsection, I do not want a new page.
(Subsections I want to have divided, but the combo section/subsection
not.) Is this possible?

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

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


[NTG-context] In need of more detailed widget descriptions!

2011-06-07 Thread Verhaag, G.C.H.M.

Hi,

I'm struggling with widgets and went already through the Widget 
Uncovered manual, but experience problems running various examples under 
MkIV!


MAIN QUESTION:

Is the manual still valid for MkIV?

When I use for example the command \tracefieldstrue an Undefined control 
sequence error is triggered!


ADDITIONAL QUESTION:

Is it possible to give a simple example on how to write a validation 
function using JavaScrip or Lua?


I already looked at the module m-fields.mkiv but I still do need some 
additional explanation on that, sorry!


Regards,
Gerard Verhaag

P.S. Use ConTeXt  ver: 2011.05.16 11:00 MKIV
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Page with subsection following a subsection

2011-06-07 Thread Marco
On 2011-06-07 Cecil Westerhof cldwester...@gmail.com wrote:

 I would like to have a subsection start on a new page. This can be done
 with: \setuphead[subsection][before={\page}]
 
 But when I have had a section before the subsection instead of a
 subsection before the subsection, I do not want a new page.
 (Subsections I want to have divided, but the combo section/subsection
 not.) Is this possible?

Yes, it is:

\setuphead [subsection] [page=yes]
\starttext
\dorecurse{5}{%
\startsection [title=Sec]
\stopsection
\startsection [title=New Sec]
  \startsubsection [title=Sub Sec]
  \stopsubsection
  \startsubsection [title=New Sub Sec]
  \stopsubsection
\stopsection}
\stoptext

Marco


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

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


[NTG-context] math in antp with MKIV

2011-06-07 Thread Mojca Miklavec
Hello,

I'm trying to use

\usetypescript[antykwa-poltawskiego]
\setupbodyfont[antykwa-poltawskiego,10pt]

\starttext
\eTeX
\stoptext

but it fails miserably. An easy workaround is to use greek letters,
but also the whole math is somewhat broken. In MKII the font would
fall back on Latin Modern in case that there are no math glyphs, but
ConTeXt MKIV complains about

! Math error: parameter \Umathquad\displaystyle is not set.

system   tex  error on line 6 in file a.tex: Math error:
parameter \Umathquad\displaystyle is not set ...

What would be the remedy for that?

(Tested with TeX Live 2011.)

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

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


Re: [NTG-context] math in antp with MKIV

2011-06-07 Thread Marco
 \usetypescript[antykwa-poltawskiego]
 \setupbodyfont[antykwa-poltawskiego,10pt]
 
 \starttext
 \eTeX
 \stoptext

Works here:

ConTeXt  ver: 2011.05.05 12:10
This is LuaTeX, Version beta-0.66.0-2011041313
SunOS, x86

 (Tested with TeX Live 2011.)

Tested with minimals (and I wonder why luatex is still
version 0.66, wasn't there a 0.70.??? some weeks ago?)

Marco


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

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


[NTG-context] Custom function

2011-06-07 Thread Alexandre Leray

Hello,

I'm rather new to ConTeXt and would like to simplify my document, in
order to simplify processing of documents.

I have this:

\defineparagraphs[infos][n=1]
\setupparagraphs[infos][1][
style={\switchtobodyfont[6pt]},
%command=,
]

\starttext

\startinfos
\smash{\lower22pt\hbox{
\margintext[left]{
Edition de Trilogie de l'enfer en novembre 2011 chez Sens
Tonka
}}}
\stopinfos

\input tufte
\stoptext

I would like to avoid putting \inmargin and
\smash{\lower22pt\hbox{... by hand and add it directly to the
setupparagraphs.

Can I do such a thing?

Thanks for help!

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

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


Re: [NTG-context] math in antp with MKIV

2011-06-07 Thread luigi scarso
On Wed, Jun 8, 2011 at 1:52 AM, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 Hello,

 I'm trying to use

 \usetypescript[antykwa-poltawskiego]
 \setupbodyfont[antykwa-poltawskiego,10pt]

 \starttext
 \eTeX
 \stoptext

 but it fails miserably. An easy workaround is to use greek letters,
 but also the whole math is somewhat broken. In MKII the font would
 fall back on Latin Modern in case that there are no math glyphs, but
 ConTeXt MKIV complains about
This works with a recent minimals
\usetypescript[antykwa-torunska]
\setupbodyfont[antykwa,10pt]

\starttext
\eTeX \crlf
$\mathrm{sin}\pi=0$

\stoptext

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

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