Re: [NTG-context] LilyPond module 2009-05-27

2009-05-29 Thread Henning Hraban Ramm

Am 2009-05-28 um 20:43 schrieb Mojca Miklavec:


On Wed, May 27, 2009 at 15:30, Henning Hraban Ramm wrote:

Download: http://modules.contextgarden.net/t-lilypond

Documentation: http://wiki.contextgarden.net/LilyPond
and, of course: http://lilypond.org/doc/v2.12/Documentation/

Changes:
- Code cleanup (partly by Wolfgang)
- Works with LuaTeX (ConTeXt MkIV) *only*! Also dropped support for  
EPS

inclusion.


Maybe you could create t-lilypond.mkii and t-lilypond.mkiv. That way
you could keep the old functionality (even if completely weird code is
needed) still there for a while.




Maybe I could, but who uses MkII can still just take an old release,  
don't you think?


I'm pretty sure the last two releases also didn't work with MkII any  
more...


I won't be able to provide at least the subdirectory feature for MkII  
anyway.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] converters (was: TexPaste alpha)

2009-05-29 Thread Henning Hraban Ramm

Am 2009-05-28 um 09:45 schrieb luigi scarso:

I guess I should build a new converter suite (there's also a  
InDesign Tags to ConTeXt converter anywhere on my harddisk).

But I won't make GUI apps, just scripts.
That's sound good !
If in python, even better !
If only scripts, the best !

Can we have more details ?


Which conversion do you need?

If it's InDesign to ConTeXt, there's always custom programming needed  
- e.g. you need to know what ID paragraph style should become what  
ConTeXt section. (sample attached)


I'm not good in building parsers, using mostly regular expression  
replacements, so my converters are always limited, and manual cleanup  
is necessary - but they save a lot of manual work anyway!



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
#!/usr/bin/env python
# -*- coding: utf-8 -*-


Universelle Textcodierung
2009-03-10 by Henning Hraban Ramm, fiëe virtuëlle

quellcodierung_to_zielcodierung.py [Optionen] Quelldatei [Zieldatei]

Es können auch ganze Verzeichnisse bearbeitet werden.

Optionen:
--filter=Dateiendung
--overwrite  (sonst wird die Originaldatei gesichert)
--hidden (sonst werden versteckte Dateien ignoriert)


import os, os.path, sys, codecs, getopt, shutil
try:
import latex
except:
pass

modes = ('filter', 'overwrite', 'hidden')
mode = {}

def help(message=):
print message
print __doc__
sys.exit(1)

def backup(datei):
original = datei
pfad, datei = os.path.split(datei)
datei, ext = os.path.splitext(datei)
count = 0
while os.path.exists(os.path.join(pfad, %s.%d%s % (datei, count, ext))):
count += 1
neudatei = os.path.join(pfad, %s.%d%s % (datei, count, ext))
print Sichere %s als %s % (original, neudatei)
shutil.copy(original, neudatei)
return neudatei

def is_hidden(datei):
	return (datei.startswith('.') or os.sep+'.' in datei)

def convert(source, target, so_enc, ta_enc):
from_exists = os.path.exists(source)
to_exists = os.path.exists(target)
from_isdir = os.path.isdir(source)
to_isdir = os.path.isdir(target)
from_path, from_name = os.path.split(source)
to_path, to_name = os.path.split(target)
#from_name = os.path.basename(source)
#to_name = os.path.basename(target)

if not from_exists:
	help(Quelle '%s' nicht gefunden! % from_name)

if from_isdir:
	if is_hidden(source) and not mode['hidden']:
		print Ignoriere verstecktes Verzeichnis %s % source
		return
if not to_isdir:
help(Wenn die Quelle ein Verzeichnis ist, muss auch das Ziel ein Verzeichnis sein!)
	print Verarbeite Verzeichnis %s % source
dateien = os.listdir(source)
#if not mode['hidden']:
#	dateien = [d for d in dateien if not is_hidden(d)]
if mode['filter']:
dateien = [d for d in dateien if d.endswith(mode['filter'])]
for datei in dateien:
	s = os.path.join(source, datei)
	t = os.path.join(target, datei)
	convert(s, t, so_enc, ta_enc)
else:
	if is_hidden(from_name) and not mode['hidden']:
		print Ignoriere versteckte Datei %s % source
		return
if to_isdir:
target = os.path.join(target, from_name)
if not mode['overwrite']:
if source==target:
source=backup(source)
elif os.path.exists(target):
backup(target)
print Konvertiere %s (%s)\n\tnach %s (%s) % (source, so_enc, target, ta_enc)
so_file = file(source, rU)
lines = so_file.readlines()
so_file.close()
ta_file = file(target, w)
for l in lines:
ta_file.write(unicode(l, so_enc).encode(ta_enc))
ta_file.close()


opts, args = getopt.getopt(sys.argv[1:], ohf:, [overwrite,hidden,filter=])

if len(args)1:
help(Zu wenige Parameter angegeben!)

for m in modes:
mode[m] = False
for (o, a) in opts:
if o=='-'+m[0] or o=='--'+m:
if a:
print Modus %s = %s % (m, a)
else:
a = True
print Modus %s aktiv % m
mode[m] = a

#print modes:, mode
#print opts :, opts
#print args :, args

# gewünschte Codierung aus dem Dateinamen ablesen
scriptname = os.path.splitext(os.path.basename(sys.argv[0]))[0]
from_enc, to_enc = scriptname.split(_to_)

from_name = to_name = args[0]
if len(args)1: to_name = args[1]

convert(from_name, to_name, from_enc, to_enc)

#!/usr/bin/env python
# -*- coding: utf-8 -*-

Convert InDesign tagged text to ConTeXt

import sys, os
import re

quote = u'$_%'

rePatterns = {
	# paragraph styles
	ur'^pstyle:Ü 1\.((\d\.)*\s+)?(.+)$' : ur'\\chapter{\3}\n',
	ur'^pstyle:Ü 1\.1((\d\.)*\s+)?(.+)$' : ur'\\section{\3}\n',
	ur'^pstyle:Ü 1\.1\.1((\d\.)*\s+)?(.+)$' : ur'\\subsection{\3}\n',
	ur'^pstyle:Ü 1\.1\.1\.1((\d\.)*\s+)?(.+)$' : ur'\\subsubsection{\3}\n',
	

Re: [NTG-context] converters (was: TexPaste alpha)

2009-05-29 Thread luigi scarso
On Fri, May 29, 2009 at 10:14 AM, Henning Hraban Ramm hra...@fiee.netwrote:

 Am 2009-05-28 um 09:45 schrieb luigi scarso:

  I guess I should build a new converter suite (there's also a InDesign Tags
 to ConTeXt converter anywhere on my harddisk).
 But I won't make GUI apps, just scripts.
 That's sound good !
 If in python, even better !
 If only scripts, the best !

 Can we have more details ?


 Which conversion do you need?

 If it's InDesign to ConTeXt, there's always custom programming needed -
 e.g. you need to know what ID paragraph style should become what ConTeXt
 section. (sample attached)

 I'm not good in building parsers, using mostly regular expression
 replacements, so my converters are always limited, and manual cleanup is
 necessary - but they save a lot of manual work anyway!


Thank you very much!

-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] updates without rsync

2009-05-29 Thread richard . stephens
 On Thu, May 28, 2009 at 10:23,  richard.steph...@converteam.com wrote:
 
  I am using ConTeXt on a company Windows PC behind two firewalls with no
  possibility of accessing or changing the firewalls. I've tried to
update
  using the minimals installation and rsync, but nothing gets through.
What
  is the recommended method of updating to the latest ConTeXt when rsync
is
  not an option?
 
  The last time I tried, I downloaded cont-tmf.zip from
  http://www.pragma-ade.com/download-1.htm  and unzipped the contents to
  overwrite everything in texmf-local. Is this still the best way?

I've got myself in a terrible mess now! I downloaded cont-tmf.zip and
unzipped the contents, then tried to follow Hans' instructions, i.e.:
mktexlsr
luatools --generate
luatools --selfupdate
mtxrun   --selfupdate
texexec --make (for mkii)
context --make (for mkiv)

Unfortunately, none of these commands runs without errors! SO, I decided to
reinstall from scratch. That's where my problems really started!

I searched around the Wiki and found lots of pages on installation, but
none of them seem quite right.
I looked at  http://www.pragma-ade.com/general/manuals/minstall.pdf  but it
looks old and does not seem to relate to the stuff I've downloaded.

From various places, I think I need to do the following, but some details
are missing:

1. Install Ruby
2. Install Perl
3. Download cont-tmf.zip and unzip contents to installdir
4. Set environment variables:
  OSFONTDIR = C:\WINDOWS\Fonts
  TEXMF = installdir\scripts\context\stubs\mswin
  TEXMFCACHE = C:\TEMP
  TEXMFCNF = installdir\web2c
  TEXMFOS = ??
  others 
5. From command window, run installation scripts:
  mktexlsr
  luatools --generate
  luatools --selfupdate
  mtxrun   --selfupdate
  texexec --make (for mkii)
  context --make (for mkiv)
6. To generate new pdf run:
  context --pdf  myfile.tex
7. Anything else I've missed 

Thanks to all,

Richard



Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-mail 
___
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] updates without rsync

2009-05-29 Thread Hans Hagen

richard.steph...@converteam.com wrote:


7. Anything else I've missed 


in the pragma website there are snapshots of the minimals (just zipped 
garden minimals); you can take one of those a starting point and unzip 
the latest (beta) versions of context in texmf-context


further proceed as described on the wiki


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Bug in module units

2009-05-29 Thread Willi Egger

Hi,

There is most probably a bug related to the module units. Only the  
last argument is typeset:



\usemodule[units]

\starttext
\Centi \Meter

\Centi \Liter

\Milli \Meter

\Square \Kilo \Meter
\stoptext


Kind regards

Willi
___
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] Bug in module units

2009-05-29 Thread Wolfgang Schuster


Am 29.05.2009 um 14:18 schrieb Willi Egger:


Hi,

There is most probably a bug related to the module units. Only the  
last argument is typeset:


m-units.tex:

%D When a dimension has no leading number, we can use \type
%D {\Unit}, and when no unit is appended, \type {\NoUnit} is
%D to be used, just to prevent the prefix migrating to the
%D next occasion.

Wolfgang

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

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


Re: [NTG-context] updates without rsync

2009-05-29 Thread Peter Münster
On Thu, 28 May 2009, richard.steph...@converteam.com wrote:

 I am using ConTeXt on a company Windows PC behind two firewalls with no
 possibility of accessing or changing the firewalls. I've tried to update
 using the minimals installation and rsync, but nothing gets through. What
 is the recommended method of updating to the latest ConTeXt when rsync is
 not an option?

Perhaps this could be an easy option:
1.) install on PC with direct internet connection (no firewall problems)
2.) put the context directory on a usb-stick
3.) copy from usb-stick to PC behind firewall

If this is not possible, perhaps the firewall is open for http? Then
someone else with a Windows PC could prepare for you an archive and put it
on an http-server?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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] Latest beta and MKII problem

2009-05-29 Thread Bowen Alan C.
The latest beta (ConTeXt  ver: 2009.05.28 14:36 MKII  fmt: 2009.5.28   
int: english/english) no longer processes my files: all I get is  
complaints about an extra \else. That is,


\definehead[LevelCHead][chapter]
\setuphead[LevelCHead][style={\tf 
\it},alternative=text,number=no,page=no]


\starttext

Hello world!

\LevelCHead{Hello world!} Donec placerat. Nullam nibh dolor, blandit  
sed, fermentum id, imperdiet sit amet, neque. Nam mollis ultrices  
justo. Sed tempor.


\stoptext

gets

! Extra \else.
\doplaceheadtext ...er #2}\makestrutofbox 0 \else
  \setbox 0= 
\ifvertical \vbo...


\dodododoconstructhead ...{\finalsectionnumber }}}
  \writesection {#1} 
{-}{#4}\...

l.9 \LevelCHead{Hello world!}
  Donec placerat. Nullam nibh dolor,  
blandit sed...


?


Alan

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

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


Re: [NTG-context] updates without rsync

2009-05-29 Thread richard . stephens


Lutz Haseloff lutz.hasel...@googlemail.com wrote on 29/05/2009 11:04:55:

 Hi Richard,


 1. Install Ruby

 right


 2. Install Perl

 I think, Perl is not needed anymore.

 Download
http://www.pragma-ade.com/context/install/minimals-snapshot-mswin.zip

 I unzip it in c:\, you get c:\context\texmf-context and some more
directories


 3. Download cont-tmf.zip and unzip contents to installdir

 make c:\context\texmf-context empty and unzip cont-tmf.zip into it


 4. Set environment variables:
      OSFONTDIR = C:\WINDOWS\Fonts
      TEXMF = installdir\scripts\context\stubs\mswin
      TEXMFCACHE = C:\TEMP
      TEXMFCNF = installdir\web2c
      TEXMFOS = ??
      others 

 no, go to c:\context an run setuptex.bat

 I have an icon on my desktop with:
 C:\WINDOWS\system32\cmd.exe /K cd c:\context  .\setuptex.bat


 5. From command window, run installation scripts:
      mktexlsr
      luatools --generate
      luatools --selfupdate
      mtxrun   --selfupdate
      texexec --make (for mkii)
      context --make (for mkiv)

 open a terminal window
 c: enter
 cd context enter
 setuptex enter

 the above commands should now work without errors


 6. To generate new pdf run:
      context --pdf  myfile.tex

 You have to run setuptex.bat in c:\context before you can compile
texfiles

 I automated this for the terminal and for the Scite Editor.


 7. Anything else I've missed 

 That should do it

 For updating luatex, download ftp://akagi.ms.u-tokyo.ac.
 jp/pub/TeX/win32/luatex-dev-w32.tar.bz2
 and unzip the files in bin into c:\context\texmf-mswin\bin.
 After that run context --make


 You're welcome

 Greetings Lutz

Thank-you very much for the above. Still a few problems though!

I have installed it to C:\tools\context. Everything goes well until
'mktexlsr' which returns:
 Cannot open C:/tools/context/texmf-project/ls-R to write.
 Cannot open C:/tools/context/texmf-fonts/ls-R to write.
 Cannot open C:/tools/context/texmf-extra/ls-R to write.
because the folders do not exist. So I've created empty folders just in
case and no more warnings!

Then all goes well until 'context --pdf myfile.tex' which returns:
 luatex.exe:
c:/tools/context/texmf-cache/tuatex-cache/b7bcb6722e1fe509b85ff004c33e8274/formats/cont-en.fmt:
 No such file or directory
 MtxRun | fatal error, code 1

and 'texexec --pdf myfile.tex' returns:
 c:\tools\context\texmf-mswin\bin\mtxrun.lua:8603: attempt to concatenate a
nil value

Any ideas?

Richard



Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for any 
purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-mail 
___
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] updates without rsync

2009-05-29 Thread Peter Rolf

richard.steph...@converteam.com schrieb:

Lutz Haseloff lutz.hasel...@googlemail.com wrote on 29/05/2009 11:04:55:

  

Hi Richard,



  

1. Install Ruby

right


2. Install Perl

I think, Perl is not needed anymore.

Download


http://www.pragma-ade.com/context/install/minimals-snapshot-mswin.zip
  

I unzip it in c:\, you get c:\context\texmf-context and some more


directories
  

3. Download cont-tmf.zip and unzip contents to installdir

make c:\context\texmf-context empty and unzip cont-tmf.zip into it


4. Set environment variables:
 OSFONTDIR = C:\WINDOWS\Fonts
 TEXMF = installdir\scripts\context\stubs\mswin
 TEXMFCACHE = C:\TEMP
 TEXMFCNF = installdir\web2c
 TEXMFOS = ??
 others 

no, go to c:\context an run setuptex.bat

I have an icon on my desktop with:
C:\WINDOWS\system32\cmd.exe /K cd c:\context  .\setuptex.bat


5. From command window, run installation scripts:
 mktexlsr
 luatools --generate
 luatools --selfupdate
 mtxrun   --selfupdate
 texexec --make (for mkii)
 context --make (for mkiv)

open a terminal window
c: enter
cd context enter
setuptex enter

the above commands should now work without errors



  

6. To generate new pdf run:
 context --pdf  myfile.tex

You have to run setuptex.bat in c:\context before you can compile


texfiles
  

I automated this for the terminal and for the Scite Editor.


7. Anything else I've missed 



  

That should do it

For updating luatex, download ftp://akagi.ms.u-tokyo.ac.
jp/pub/TeX/win32/luatex-dev-w32.tar.bz2
and unzip the files in bin into c:\context\texmf-mswin\bin.
After that run context --make


You're welcome

Greetings Lutz



Thank-you very much for the above. Still a few problems though!

I have installed it to C:\tools\context. Everything goes well until
'mktexlsr' which returns:
 Cannot open C:/tools/context/texmf-project/ls-R to write.
 Cannot open C:/tools/context/texmf-fonts/ls-R to write.
 Cannot open C:/tools/context/texmf-extra/ls-R to write.
because the folders do not exist. So I've created empty folders just in
case and no more warnings!

Then all goes well until 'context --pdf myfile.tex' which returns:
 luatex.exe:
c:/tools/context/texmf-cache/tuatex-cache/b7bcb6722e1fe509b85ff004c33e8274/formats/cont-en.fmt:
  

tuatex-cache ?

copypaste error or a typo in your environment variable?

btw: the option --pdf is no longer needed, as pdf is the default output 
format


Best wishes, Peter


 No such file or directory
 MtxRun | fatal error, code 1

and 'texexec --pdf myfile.tex' returns:
 c:\tools\context\texmf-mswin\bin\mtxrun.lua:8603: attempt to concatenate a
nil value

Any ideas?

Richard



Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration Number: 2416188  
Registered in England and Wales.  
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.  

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.  

Please consider the environment before printing this e-mail 
___

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

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

  


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

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


Re: [NTG-context] Latest beta and MKII problem

2009-05-29 Thread Hans Hagen

Bowen Alan C. wrote:
The latest beta (ConTeXt  ver: 2009.05.28 14:36 MKII  fmt: 2009.5.28  
int: english/english) no longer processes my files: all I get is 
complaints about an extra \else. That is,


repaired (a file got lost; i'm reshuffling some files as part of the 
mkii/mkiv split)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Bug in module units

2009-05-29 Thread Willi Egger

Thanks Wolfgang,

however you might test the following and the problem remains:

\usemodule[units]

\starttext
3\Centi \Meter

4\Centi \Liter

5\Milli \Meter

6\Square \Kilo \Meter
\stoptext

Willi
On May 29, 2009, at 2:26 PM, Wolfgang Schuster wrote:



Am 29.05.2009 um 14:18 schrieb Willi Egger:


Hi,

There is most probably a bug related to the module units. Only the  
last argument is typeset:


m-units.tex:

%D When a dimension has no leading number, we can use \type
%D {\Unit}, and when no unit is appended, \type {\NoUnit} is
%D to be used, just to prevent the prefix migrating to the
%D next occasion.

Wolfgang

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


maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ 
ntg-context

webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


___
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] Bug in module units

2009-05-29 Thread Wolfgang Schuster


Am 29.05.2009 um 16:23 schrieb Willi Egger:


Thanks Wolfgang,

however you might test the following and the problem remains:


It's time for a MkIV version of the units module without such hacks like
'textstyle=\dimension' :) or someone can convince Joseph Wright to write
a ConTeXt port of the siunitx package.

Wolfgang

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

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


[NTG-context] Printen van code met een PDF overlay, makkelijk met ConTeXt?

2009-05-29 Thread Gerben Wierda

Beste allemaal,

ik wil broncode uitprinten met regelnummers op pagina's met een  
bepaalde overlay. Ik heb dus ascii text files als input (de code) een  
overlay in PDF en wil deze gecombineerd printen.


Ik zat te denken: is een ConTeXt based workflow hier een mogelijke  
oplossing? De regelnummers e.d. kan ik eventueel met het pr programma  
genereren.


Met vriendelijke groet,

Gerben
___
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] Latest beta and MKII problem

2009-05-29 Thread Bowen Alan C.

Thanks, Hans!

Alan
On May 29, 2009, at 09;50,46 , Hans Hagen wrote:


Bowen Alan C. wrote:
The latest beta (ConTeXt  ver: 2009.05.28 14:36 MKII  fmt:  
2009.5.28  int: english/english) no longer processes my files: all  
I get is complaints about an extra \else. That is,


repaired (a file got lost; i'm reshuffling some files as part of the  
mkii/mkiv split)


Hans

-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an  
entry to the Wiki!


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


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

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


Re: [NTG-context] updates without rsync

2009-05-29 Thread Diego Depaoli
2009/5/29 Peter Münster pmli...@free.fr:
 If this is not possible, perhaps the firewall is open for http? Then
 someone else with a Windows PC could prepare for you an archive and put it
 on an http-server?
Why not do it directly on minimals.contextgarden.net?

[OT - for binaries maintainer] Even sources should be packaged in a zip file.
After recent Mojca's changes I rsynced for a while

Cheers
-- 
Diego Depaoli
___
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] Printen van code met een PDF overlay, makkelijk met ConTeXt?

2009-05-29 Thread Hans Hagen

Gerben Wierda wrote:

Beste allemaal,

ik wil broncode uitprinten met regelnummers op pagina's met een bepaalde 
overlay. Ik heb dus ascii text files als input (de code) een overlay in 
PDF en wil deze gecombineerd printen.


Ik zat te denken: is een ConTeXt based workflow hier een mogelijke 
oplossing? De regelnummers e.d. kan ik eventueel met het pr programma 
genereren.


\defineoverlay[myoverlay][\overlayfigure{myfile.pdf}]

\setupbackgrounds[page][overlay=myoverlay]

if it has to be on top:

\setupbackgrounds[page][overlay={foreground,myoverlay}]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Theorems with arguments like amsthm

2009-05-29 Thread Xan

Hi,

I have my environment of context that defines the theorems and lemmas 
like amsthm in latex. For example, for lemmas, I have:


\defineenumeration
 [lemma]
 
[text={Lemma},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,

stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic]

The question is how can I get the typical argument of lemmas: Lema 4.1 
(superadditive lemma)? How can I add the possibility that lemma _could_ 
have one argument (the phrase in parentesis)?.

I'm not a TeX programmer, such a ConTeXt user.

Any hint?

Thanks,
Xan.
___
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] latest beta problem (minimals)

2009-05-29 Thread Bowen Alan C.

The installation process is interrupted by report

I can't find file `core-dat.tex'.

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

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


Re: [NTG-context] Theorems with arguments like amsthm

2009-05-29 Thread Aditya Mahajan

On Fri, 29 May 2009, Xan wrote:


Hi,

I have my environment of context that defines the theorems and lemmas like 
amsthm in latex. For example, for lemmas, I have:


\defineenumeration
[lemma]
[text={Lemma},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic]

The question is how can I get the typical argument of lemmas: Lema 4.1 
(superadditive lemma)? How can I add the possibility that lemma _could_ have 
one argument (the phrase in parentesis)?.

I'm not a TeX programmer, such a ConTeXt user.

Any hint?


Use [title=yes] and then

\startlemma[reference]{A brilliant result}
...
\stoplemma

For details, see my article in last year's MAPS.

Theorems in ConTeXt (English), MAPS 36, 2008, 27-32
(http://www.ntg.nl/maps/36/index.html)

Unfortunately, the issue is not available online yet.

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

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


Re: [NTG-context] Theorems with arguments like amsthm

2009-05-29 Thread Xan

En/na Xan ha escrit:

On Fri, 29 May 2009, Xan wrote:

/ Hi,
//
// I have my environment of context that defines the theorems and lemmas like 
// amsthm in latex. For example, for lemmas, I have:

//
// \defineenumeration
// [lemma]
// 
[text={Lemma},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
// 
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic]
//
// The question is how can I get the typical argument of lemmas: Lema 4.1 
// (superadditive lemma)? How can I add the possibility that lemma _could_ have 
// one argument (the phrase in parentesis)?.

// I'm not a TeX programmer, such a ConTeXt user.
//
// Any hint?
/
Use [title=yes] and then

\startlemma[reference]{A brilliant result}
...
\stoplemma

  


But if I do that, there is no space between the parentesis and number 
(like Theorem 4.1(My great result) and the parentesis and the contents 
of the parentesis are in bold. How can I solve that?




For details, see my article in last year's MAPS.

Theorems in ConTeXt (English), MAPS 36, 2008, 27-32
(http://www.ntg.nl/maps/36/index.html)

Unfortunately, the issue is not available online yet.

Aditya
  

Yes, I tried to download it previosly (because I think it's missing 
documentation about something equivalent of amsthm in context) and I get 
that Can you give me it privately?


Regards, a lot,
Xan.

___
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] Theorems with arguments like amsthm

2009-05-29 Thread Xan

En/na Xan ha escrit:

En/na Xan ha escrit:

On Fri, 29 May 2009, Xan wrote:

/ Hi,
//
// I have my environment of context that defines the theorems and 
lemmas like // amsthm in latex. For example, for lemmas, I have:

//
// \defineenumeration
// [lemma]
// 
[text={Lemma},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em, 

// 
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,style=italic] 


//
// The question is how can I get the typical argument of lemmas: 
Lema 4.1 // (superadditive lemma)? How can I add the possibility 
that lemma _could_ have // one argument (the phrase in parentesis)?.

// I'm not a TeX programmer, such a ConTeXt user.
//
// Any hint?
/
Use [title=yes] and then

\startlemma[reference]{A brilliant result}
...
\stoplemma

  


But if I do that, there is no space between the parentesis and number 
(like Theorem 4.1(My great result) and the parentesis and the 
contents of the parentesis are in bold. How can I solve that?


Mmm... with \titledistance I have to put space between () and numbers. 
But what is the dimensions of one space? 1em?


Now it remains only the bold topic.
Thanks a lot,
Xan.




For details, see my article in last year's MAPS.

Theorems in ConTeXt (English), MAPS 36, 2008, 27-32
(http://www.ntg.nl/maps/36/index.html)

Unfortunately, the issue is not available online yet.

Aditya
 
Yes, I tried to download it previosly (because I think it's missing 
documentation about something equivalent of amsthm in context) and I 
get that Can you give me it privately?


Regards, a lot,
Xan.




___
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] Theorems with arguments like amsthm

2009-05-29 Thread Otared Kavian

Hi Xan,

Thanks to your example and Aditya's explanantion I learned too…
Here is how you can get what you want:

%%% begin example

\defineenumeration[lemma]%
[text={Lemma},
headstyle=bold,
between=\blank,
titledistance=0em,
textdistance=1em,
stopper={.\space},
location=serried,
left={\bgroup\bf},
right={\egroup},
width=fit,
style=italic,
title=yes,
titledistance=.3em,
titlestyle=sc] % or italic, or whatever you like


\starttext

\startlemma[reference]{ A brilliant result}
If $a=2$ then the set $H(a)$ is not empty.
\stoplemma

\stoptext

%%% end example


Best regards: OK

On 29 mai 09, at 21:52, Xan wrote:


En/na Xan ha escrit:

En/na Xan ha escrit:

On Fri, 29 May 2009, Xan wrote:

/ Hi,
//
// I have my environment of context that defines the theorems and  
lemmas like // amsthm in latex. For example, for lemmas, I have:

//
// \defineenumeration
// [lemma]
// [text={Lemma},headstyle=bold,between= 
\blank,titledistance=0em,textdistance=1em,
// stopper={.\space},location=serried,left={\bgroup 
\bf},right={\egroup},width=fit,style=italic]

//
// The question is how can I get the typical argument of lemmas:  
Lema 4.1 // (superadditive lemma)? How can I add the  
possibility that lemma _could_ have // one argument (the phrase  
in parentesis)?.

// I'm not a TeX programmer, such a ConTeXt user.
//
// Any hint?
/
Use [title=yes] and then

\startlemma[reference]{A brilliant result}
...
\stoplemma




But if I do that, there is no space between the parentesis and  
number (like Theorem 4.1(My great result) and the parentesis and  
the contents of the parentesis are in bold. How can I solve that?


Mmm... with \titledistance I have to put space between () and  
numbers. But what is the dimensions of one space? 1em?


Now it remains only the bold topic.
Thanks a lot,
Xan.




For details, see my article in last year's MAPS.

Theorems in ConTeXt (English), MAPS 36, 2008, 27-32
(http://www.ntg.nl/maps/36/index.html)

Unfortunately, the issue is not available online yet.

Aditya

Yes, I tried to download it previosly (because I think it's missing  
documentation about something equivalent of amsthm in context) and  
I get that Can you give me it privately?


Regards, a lot,
Xan.




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


%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 aveue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr



___
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] latest beta problem (minimals)

2009-05-29 Thread Hans Hagen

Bowen Alan C. wrote:

The installation process is interrupted by report

I can't find file `core-dat.tex'.


i'll fix it; in contex.mkii remove the line that loads it


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] latest beta problem (minimals)

2009-05-29 Thread Bowen Alan C.

That’s got it. Many thanks!

Alan

On May 29, 2009, at 17;35,03 , Hans Hagen wrote:


Bowen Alan C. wrote:

The installation process is interrupted by report
I can't find file `core-dat.tex'.


i'll fix it; in contex.mkii remove the line that loads it


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an  
entry to the Wiki!


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


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

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