Re: [NTG-context] Cannot run Lilypond

2009-06-04 Thread Henning Hraban Ramm

Am 2009-06-03 um 16:54 schrieb Mojca Miklavec:

pstopdf is part of the ConTeXt distribution and should give you  
something

like:
PsToPdf | version 2.0.1 - 2002-2006 - PRAGMA ADE/POD

Yes, but pstopdf relies on existance of ghostscript in path. pstopdf
is just a wrapper. If you don't have ghostscript installed, this is
unlikely to work.


I know, but Vyatcheslav said, pstopdf would say nothing, and that  
would be too less, even if GS isn't installed.


But ... I had some impression that lilypond is able to generate pdfs  
on the fly?



It has GS compiled in (or as a library or the like), but unfortunately  
it can't generate PDF snippets, only whole pages.
And it generates always PostScript first (after a normal LP run you've  
a useless .ps file).


EPS snippets (that we use here) were a special feature for the LaTeX  
lilypond-book process, that's why there were even more junk files  
created before v.12.2



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] usemodule[bib] upsets abbreviations

2009-06-04 Thread richard . stephens
 richard.steph...@converteam.com wrote:
  Using today's beta (2009-06-03), my abbreviations seem to be upset by
the
  \usemodule[bib] command.
  Here is a simple test case in which the first line is okay, but the
second
  line, with ! after the abbreviation, fails.
 
  \enableregime[il1]
  \abbreviation {KF} {Kalman filter}
  \usemodule[bib]

 Either update the bib module from http://modules.contextgarden.net
 (please do), or add a \protect at this location of your input
 file (ugly hack).

 Best wishes,
 Taco

I updated the bib module and it works.

Thanks a lot.

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
___


[NTG-context] Where to store typescripts ?

2009-06-04 Thread Nicolas Girard
Hi,

Where should typescript files be stored ?
Is it possible to store them in user space, eg in a subdirectory of
Luatex cache (when using luatex) ?

Thanks in advance!
Nicolas
___
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] Where to store typescripts ?

2009-06-04 Thread luigi scarso
On Thu, Jun 4, 2009 at 10:34 AM, Nicolas Girard nicolas.gir...@nerim.netwrote:

 Hi,

 Where should typescript files be stored ?


If you have minimals(-beta)
try
minimals/tex/texmf-context/tex/context/user

-- 
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] Where to store typescripts ?

2009-06-04 Thread Hans Hagen

luigi scarso wrote:

On Thu, Jun 4, 2009 at 10:34 AM, Nicolas Girard nicolas.gir...@nerim.netwrote:


Hi,

Where should typescript files be stored ?



If you have minimals(-beta)
try
minimals/tex/texmf-context/tex/context/user


personal ones?

minimals/tex/texmf-fonts/tex/context/user
minimals/tex/texmf-project/tex/context/user

-
  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] Cannot run Lilypond

2009-06-04 Thread Lutz Haseloff
2009/6/4 Henning Hraban Ramm hra...@fiee.net

 Am 2009-06-03 um 16:54 schrieb Mojca Miklavec:

  pstopdf is part of the ConTeXt distribution and should give you something
 like:
 PsToPdf | version 2.0.1 - 2002-2006 - PRAGMA ADE/POD

 Yes, but pstopdf relies on existance of ghostscript in path. pstopdf
 is just a wrapper. If you don't have ghostscript installed, this is
 unlikely to work.


 I know, but Vyatcheslav said, pstopdf would say nothing, and that would
 be too less, even if GS isn't installed.

  But ... I had some impression that lilypond is able to generate pdfs on
 the fly?



 It has GS compiled in (or as a library or the like), but unfortunately it
 can't generate PDF snippets, only whole pages.


Not true on my Windows machine. After every run of LP there is a
filename-lilypond-1-1.pdf with exactly the same size as the pstopdf
generated.

Lilypond writes:
...
Systeme erstellen...
Layout nach »lilytest-lilypond-1-1.eps« ausgeben...
Konvertierung nach »./lilytest-lilypond-1-1.pdf«...
Layout nach »lilytest-lilypond-1.eps« ausgeben...
Konvertierung nach »./lilytest-lilypond-1.pdf«...
...



 And it generates always PostScript first (after a normal LP run you've a
 useless .ps file).


I get two .eps: filename-lilypond-1.eps and filename-lilypond-1-1.eps.




 EPS snippets (that we use here) were a special feature for the LaTeX
 lilypond-book process, that's why there were even more junk files created
 before v.12.2


 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

 ___

___
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] Where to store typescripts ?

2009-06-04 Thread Nicolas Girard
2009/6/4 luigi scarso luigi.sca...@gmail.com:


 On Thu, Jun 4, 2009 at 10:34 AM, Nicolas Girard nicolas.gir...@nerim.net
 wrote:

 Hi,

 Where should typescript files be stored ?

 If you have minimals(-beta)
 try
 minimals/tex/texmf-context/tex/context/user


Hi Luigi,
thanks for your answer.
I'm using the latest mkiv installed over texlive 2008.
It is a system directory ; is it the only one ?

Anyway I couldn't get my typescript file to work.
Here's what I did:

(assume TF is 
http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
)

1. put the contents of TF in a test document along with
\usetypescript[delicious]
The document compiled fine and the Delicious fonts were properly included.

2. copied TF in tex/context/user/ as adviced
3. ran mktexlsr, just in case
4. In the test document, removed the contents of TF and replaced it with
\usetypescriptfile[type-exljibris]

The compilation ran smoothly, I should say too smoothly, because I
couldn't find any font-related error message, neither in the output,
nor in the log file. And however, ConTeXt used lmodern fonts instead
of the Delicious fonts.

Cheers,
Nicolas
___
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] Where to store typescripts ?

2009-06-04 Thread luigi scarso
On Thu, Jun 4, 2009 at 11:11 AM, Nicolas Girard nicolas.gir...@nerim.netwrote:

 2009/6/4 luigi scarso luigi.sca...@gmail.com:
 
 
  On Thu, Jun 4, 2009 at 10:34 AM, Nicolas Girard 
 nicolas.gir...@nerim.net
  wrote:
 
  Hi,
 
  Where should typescript files be stored ?
 
  If you have minimals(-beta)
  try
  minimals/tex/texmf-context/tex/context/user
 

 Hi Luigi,
 thanks for your answer.
 I'm using the latest mkiv installed over texlive 2008.
 It is a system directory ; is it the only one ?

 Anyway I couldn't get my typescript file to work.
 Here's what I did:

 (assume TF is
 http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
 )

 1. put the contents of TF in a test document along with
 \usetypescript[delicious]
 The document compiled fine and the Delicious fonts were properly included.

 2. copied TF in tex/context/user/ as adviced
 3. ran mktexlsr, just in case

hmm
try context --generate


x Wolfgang
maybe is better to add some instructions on usage at the end ...

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


[NTG-context] Page number updates

2009-06-04 Thread richard . stephens

Hello again,

I want to set up a header which stretches across the margins as well as the
text area, so I've defined a layer for use as a background, as follows:

\setuplayout[backspace=3.5cm,leftmargin=0.5cm,leftmargindistance=1.0cm]
\definelayer[pagenumber][width=3cm,height=3cm]
\startsetups layer
\setlayer[pagenumber]{Page \pagenumber}
\stopsetups
\setupbackgrounds[header][leftmargin][setups=layer,background=pagenumber]

\starttext
\dorecurse{4}{\page[empty]}
\stoptext

Unfortunately, the page numbers are all '1'.

If I change the line:

\setupbackgrounds[header][leftmargin][setups=layer,background=pagenumber]

to

\setupbackgrounds[page][setups=layer,background=pagenumber]

the page numbering works, so I can get what I want by adjusting the offsets
of the layer.
My question is: should the first one work?

Regards,

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] Cannot run Lilypond

2009-06-04 Thread Henning Hraban Ramm

Am 2009-06-04 um 11:06 schrieb Lutz Haseloff:

It has GS compiled in (or as a library or the like), but  
unfortunately it can't generate PDF snippets, only whole pages.


Not true on my Windows machine. After every run of LP there is a  
filename-lilypond-1-1.pdf with exactly the same size as the pstopdf  
generated.


Ok, you're right - a normal LP run (PDF backend) cannot create  
snippets, but the EPS-backend run does - *plus* it converts eps to pdf  
by itself. I didn't know the latter; I guess it was introduced only  
some versions before.


Try to compile the .tmp file with a normal LilyPond call, and you get  
a page-size PDF. The intermediate .ps file is deleted by LilyPond  
itself, but you can see it sometimes flash. LilyPond does the  
conversion to PDF in a second step, AFAIK with its build-in GhostScript.


This is a normal LilyPond run (in German); it mentions the  
intermediate .ps file and the conversion:


hraban$ lilypond test.ly
GNU LilyPond 2.12.2
»test.ly« wird verarbeitet
Analysieren...
Interpretation der Musik...
Vorverarbeitung der grafischen Elemente...
Ideale Seitenanzahl wird gefunden...
Musik wird auf eine Seite angepasst...
Systeme erstellen...
Layout nach »test.ps« ausgeben...
Konvertierung nach »./test.pdf«...


This is the LilyPond run as executed by t-lilypond:

hraban$ lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts - 
ddelete-intermediate-files -otest test.ly

GNU LilyPond 2.12.2
»test.ly« wird verarbeitet
Analysieren...
Interpretation der Musik...
Vorverarbeitung der grafischen Elemente...
Ideale Seitenanzahl wird gefunden...
Musik wird auf eine Seite angepasst...
Systeme erstellen...
Layout nach »test-1.eps« ausgeben...
Konvertierung nach »./test-1.pdf«...
Layout nach »test.eps« ausgeben...
Konvertierung nach »./test.pdf«...
.../LilyPond.app/Contents/Resources/share/lilypond/current/scm/backend- 
library.scm:149:21: In procedure delete-file in expression (delete- 
file (string-append base . ...)):
.../LilyPond.app/Contents/Resources/share/lilypond/current/scm/backend- 
library.scm:149:21: No such file or directory


You see it creates from the one input file two EPS and PDF files each,  
that seem exactly the same - I'll investigate and ask on the LilyPond  
mailing list.
The error message isn't nice either, but it doesn't seem to hurt -  
maybe it's about the useless files, since it mentions delete-file.




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
___


[NTG-context] Captials in section head

2009-06-04 Thread richard . stephens

I need all section heads to be in full-size capitals, so I tried:

\setuphead[section][textcommand=\uppercase]

\starttext
\section{New section}
\input knuth
\stoptext

But I still get lowercase.
Using 'textcommand=\cap' gives me small capitals, but I want full-size
capitals.
Is there a way to get what I want?

Thanks,

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] Captials in section head

2009-06-04 Thread Wolfgang Schuster


Am 04.06.2009 um 14:56 schrieb richard.steph...@converteam.com:



I need all section heads to be in full-size capitals, so I tried:

\setuphead[section][textcommand=\uppercase]

\starttext
\section{New section}
\input knuth
\stoptext

But I still get lowercase.
Using 'textcommand=\cap' gives me small capitals, but I want full-size
capitals.
Is there a way to get what I want?


In MkIV you can say \setuphead[section][style=WORD] or  
\setuphead[section][style=\WORD]


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] Reference to equation fails

2009-06-04 Thread richard . stephens

There seems to be a problem in the referencing to equations in the version
of MKIV I'm using:
ConTeXt  ver: 2009.06.03 11:48 MKIV  fmt: 2009.6.3  int: english/english

In the following code, the reference to the equation fails, resulting in
'??'. Using MKII everything is fine.

\starttext
\placeformula[eq:pythag]
\startformula
a^2 = b^2 + c^2
\stopformula
Pythagoras proposed \in{equation}[eq:pythag].
\stoptext

Best regards,

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] Where to store typescripts ?

2009-06-04 Thread Nicolas Girard
2009/6/4 luigi scarso luigi.sca...@gmail.com:
 hmm
 try context --generate


Tried that, and it didn't work.

Nicolas
___
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] Where to store typescripts ?

2009-06-04 Thread luigi scarso
On Thu, Jun 4, 2009 at 4:00 PM, Nicolas Girard nicolas.gir...@nerim.netwrote:

 2009/6/4 luigi scarso luigi.sca...@gmail.com:
  hmm
  try context --generate
 

 Tried that, and it didn't work.

 Nicolas

 ___
 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

 ___


Did you put something like
 \usetypefile[delicious]
or
\usetypefile[exljbris]http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
before \usetypescript ?
-- 
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] Printen van code met een PDF overlay, makkelijk met ConTeXt?

2009-06-04 Thread Gerben . Wierda
 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}]

Dank. Om het completer te maken. Stel ik heb een serie ASCII files met
broncode. Deze files wil ik printen
- landscape
- in fixed width font en zonder de tekstfiles te hoeven aanpassen
- met regelnummers
- met PDF overlay (als hierboven)
- met juiste vertaling van tabs naar posities

Wat is dan de (slimste) ConTeXt oplossing?

G

___
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-06-04 Thread Wolfgang Schuster
Can you ask your questions in english, your question could be relevant  
for other
users too and it would be a shame if the don't understand it because  
you use dutch.


Wolfgang

Am 04.06.2009 um 16:10 schrieb gerben.wie...@rna.nl:


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


Dank. Om het completer te maken. Stel ik heb een serie ASCII files met
broncode. Deze files wil ik printen
- landscape
- in fixed width font en zonder de tekstfiles te hoeven aanpassen
- met regelnummers
- met PDF overlay (als hierboven)
- met juiste vertaling van tabs naar posities

Wat is dan de (slimste) ConTeXt oplossing?

G


___
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] Where to store typescripts ?

2009-06-04 Thread luigi scarso
On Thu, Jun 4, 2009 at 4:07 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 04.06.2009 um 16:00 schrieb Nicolas Girard:

  2009/6/4 luigi scarso luigi.sca...@gmail.com:

 hmm
 try context --generate


 Tried that, and it didn't work.


 Dou you have also type-exljbris.tex?


why don't  put an example of use at the end of the typescript ?

-- 
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] Captials in section head

2009-06-04 Thread richard . stephens

 Am 04.06.2009 um 14:56 schrieb richard.steph...@converteam.com:

 
  I need all section heads to be in full-size capitals, so I tried:
 
  \setuphead[section][textcommand=\uppercase]
 
  \starttext
  \section{New section}
  \input knuth
  \stoptext
 
  But I still get lowercase.
  Using 'textcommand=\cap' gives me small capitals, but I want full-size
  capitals.
  Is there a way to get what I want?

 In MkIV you can say \setuphead[section][style=WORD] or
 \setuphead[section][style=\WORD]

 Wolfgang

That's fantastic, thanks Wolfgang.

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] Where to store typescripts ?

2009-06-04 Thread Nicolas Girard
Wow. Now, I'm lost -- and i still can't make it work anyway.
Could you explain right from the start ?

Let's assume (as it is the case on my system) that the Delicious fonts
are properly installed *and* the font database knows about it.
Let's assume context = LuaTeX mkiv

Now,

1. if I want to create a typescript file supporting some XX fonts, do
I need to name the file type-XX.some_extension, or is it only a
convention and the file could also be named XX.some_extension or even
whatever.some_extension ?

2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both allowed ?

3. Assuming I properly install such
http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
file, should I load it using
  \usetypescriptfile[type-exljbris]
or
  \usetypescriptfile[exljbris]
?

4. What is the relationship between type-exljbris.mkiv and
type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ?
5. In order to install one or several typescript files, I should first
copy them, either in
tex/texmf-fonts/tex/context/user
or in
tex/texmf-project/tex/context/user
right ?
But then,
what is it necessary to run ?
- context --generate ?
- mtxrun --script fonts --reload ?
- both ?

6. How comes ConTeXt can silently substitute my fonts, without even
outputting any error message ?
How to change this behaviour ?
How to disable font substitution ?


Hopefully you forgive me for asking so many questions. Beware, answers
will be recorded and published in the wiki ;-)
Cheers,
Nicolas
___
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] labels and new structure code

2009-06-04 Thread Thomas A. Schmitz

Hi all, Hans,

here is a bug that remains with the new structure code after Hans  
fixed many things two weeks ago. I want a counter that is reset at  
every odd chapter. This works as expected in mkii (and used to work in  
mkiv), but complains about a Missing number, treated as zero and  
fails to compile in current beta:


\setupcolors[state=start]

\setuphead
   [section]
   [command={{\determineheadnumber[section]}\ifodd\currentheadnumber 
\resetSlideNumber\incrementSlideNumber \else\incrementSlideNumber \fi},

expansion=yes]

\definelabel[SlideNumber][headstyle=normal,way=bytext]

\define\SLN{\color[red]{ [\nextSlideNumber]}}

\starttext

\section{One}

should be 2: \SLN

\section{Two}

should be 4: \SLN

\section{Three}

should be 2 again: \SLN

\section{Four}

should be 4 again: \SLN

\stoptext

Even if you comment out the command=... line, you'll see that labels  
in mkiv still don't quite do what they should.


All best

Thomas
___
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] Where to store typescripts ?

2009-06-04 Thread luigi scarso
On Thu, Jun 4, 2009 at 4:44 PM, Nicolas Girard nicolas.gir...@nerim.netwrote:

 Wow. Now, I'm lost -- and i still can't make it work anyway.
 Could you explain right from the start ?

 Let's assume (as it is the case on my system) that the Delicious fonts
 are properly installed *and* the font database knows about it.
 Let's assume context = LuaTeX mkiv

 Now,

 1. if I want to create a typescript file supporting some XX fonts, do
 I need to name the file type-XX.some_extension, or is it only a
 convention and the file could also be named XX.some_extension or even
 whatever.some_extension ?

 2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both allowed
 ?

 3. Assuming I properly install such
 http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
 file, should I load it using
  \usetypescriptfile[type-exljbris]
 or
  \usetypescriptfile[exljbris]
 ?

 4. What is the relationship between type-exljbris.mkiv and
 type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ?
 5. In order to install one or several typescript files, I should first
 copy them, either in
 tex/texmf-fonts/tex/context/user
 or in
 tex/texmf-project/tex/context/user
 right ?
 But then,
 what is it necessary to run ?
 - context --generate ?
 - mtxrun --script fonts --reload ?
 - both ?

 6. How comes ConTeXt can silently substitute my fonts, without even
 outputting any error message ?
 How to change this behaviour ?
 How to disable font substitution ?


 Hopefully you forgive me for asking so many questions. Beware, answers
 will be recorded and published in the wiki ;-)
 Cheers,
 Nicolas

 ___
 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

 ___


Here my example
I have
minimals/tex/texmf-context/tex/context/user/type-catalog.tex

and eventually
context --generate

%%type-catalog.tex %
\starttypescript [serif] [catalog]
 \setups[font:fallback:serif]
 \definefontsynonym [Serif]   [CharisSIL-Regular]
 \definefontsynonym [SerifItalic] [CharisSIL-Italic]
 \definefontsynonym [SerifBold]   [CharisSIL-Bold]
 \definefontsynonym [SerifBoldItalic] [CharisSIL-BoldItalic]
\stoptypescript

\starttypescript [serif] [catalog]
 \definefontsynonym [CharisSIL-Regular]
[file:CharisSILR][features=default]
 \definefontsynonym [CharisSIL-Italic]
[file:CharisSILI][features=default]
 \definefontsynonym [CharisSIL-Bold]
[file:CharisSILB][features=default]
 \definefontsynonym [CharisSIL-BoldItalic]
[file:CharisSILBI][features=default]
\stoptypescript

\starttypescript [sans] [catalog]
 \setups[font:fallback:sans]
 \definefontsynonym [Sans]   [Delicious-Regular]
 \definefontsynonym [SansItalic] [Delicious-Italic]
 \definefontsynonym [SansBold]   [Delicious-Bold]
 \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic]
 \definefontsynonym [SansCaps]   [Delicious-Caps]
\stoptypescript

\starttypescript [sans] [catalog]
 \definefontsynonym [Delicious-Regular][name:Delicious-Roman]
[features=default]
 \definefontsynonym [Delicious-Italic] [name:Delicious-Italic]
[features=default]
 \definefontsynonym [Delicious-Bold]   [name:Delicious-Bold]
[features=default]
 \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic]
[features=default]
 \definefontsynonym [Delicious-Caps]   [name:Delicious-SmallCaps]
[features=default]
\stoptypescript

\starttypescript [catalog]
 \definetypeface [catalog] [rm] [serif] [catalog] [default]
 \definetypeface [catalog] [ss] [sans] [catalog] [default]
\stoptypescript
%


%%%test.tex%%%
\usetypefile[catalog]
\usetypescript[catalog]
\setupbodyfont[catalog,8pt,serif]
\starttext
\rm
\input tufte
\ss
\input tufte
\stoptext
%%

$ context test.tex
$pdffonts test.pdf

name type  emb sub uni object ID
 - --- --- --- -
HMORXY+CharisSIL CID TrueType  yes yes yes  4  0
EVRTHR+Delicious-Roman   CID Type 0C   yes yes yes  5  0


--
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] Where to store typescripts ?

2009-06-04 Thread luigi scarso
On Thu, Jun 4, 2009 at 5:28 PM, Nicolas Girard nicolas.gir...@nerim.netwrote:

 2009/6/4 luigi scarso luigi.sca...@gmail.com:
 
 
 
  On Thu, Jun 4, 2009 at 4:44 PM, Nicolas Girard nicolas.gir...@nerim.net
 
  wrote:
 
  Wow. Now, I'm lost -- and i still can't make it work anyway.
  Could you explain right from the start ?
 
  Let's assume (as it is the case on my system) that the Delicious fonts
  are properly installed *and* the font database knows about it.
  Let's assume context = LuaTeX mkiv
 
  Now,
 
  1. if I want to create a typescript file supporting some XX fonts, do
  I need to name the file type-XX.some_extension, or is it only a
  convention and the file could also be named XX.some_extension or even
  whatever.some_extension ?
 
  2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both
 allowed
  ?
 
  3. Assuming I properly install such
 
 http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
  file, should I load it using
   \usetypescriptfile[type-exljbris]
  or
   \usetypescriptfile[exljbris]
  ?
 
  4. What is the relationship between type-exljbris.mkiv and
  type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ?
  5. In order to install one or several typescript files, I should first
  copy them, either in
 tex/texmf-fonts/tex/context/user
  or in
 tex/texmf-project/tex/context/user
  right ?
  But then,
  what is it necessary to run ?
  - context --generate ?
  - mtxrun --script fonts --reload ?
  - both ?
 
  6. How comes ConTeXt can silently substitute my fonts, without even
  outputting any error message ?
  How to change this behaviour ?
  How to disable font substitution ?
 
 
  Hopefully you forgive me for asking so many questions. Beware, answers
  will be recorded and published in the wiki ;-)
  Cheers,
  Nicolas
 
 
 ___
  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
 
 
 ___
 
  Here my example
  I have
  minimals/tex/texmf-context/tex/context/user/type-catalog.tex
 
  and eventually
  context --generate
 
  %%type-catalog.tex %
  \starttypescript [serif] [catalog]
   \setups[font:fallback:serif]
   \definefontsynonym [Serif]   [CharisSIL-Regular]
   \definefontsynonym [SerifItalic] [CharisSIL-Italic]
   \definefontsynonym [SerifBold]   [CharisSIL-Bold]
   \definefontsynonym [SerifBoldItalic] [CharisSIL-BoldItalic]
  \stoptypescript
 
  \starttypescript [serif] [catalog]
   \definefontsynonym [CharisSIL-Regular]
  [file:CharisSILR][features=default]
   \definefontsynonym [CharisSIL-Italic]
  [file:CharisSILI][features=default]
   \definefontsynonym [CharisSIL-Bold]
  [file:CharisSILB][features=default]
   \definefontsynonym [CharisSIL-BoldItalic]
  [file:CharisSILBI][features=default]
  \stoptypescript
 
  \starttypescript [sans] [catalog]
   \setups[font:fallback:sans]
   \definefontsynonym [Sans]   [Delicious-Regular]
   \definefontsynonym [SansItalic] [Delicious-Italic]
   \definefontsynonym [SansBold]   [Delicious-Bold]
   \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic]
   \definefontsynonym [SansCaps]   [Delicious-Caps]
  \stoptypescript
 
  \starttypescript [sans] [catalog]
   \definefontsynonym [Delicious-Regular][name:Delicious-Roman]
  [features=default]
   \definefontsynonym [Delicious-Italic] [name:Delicious-Italic]
  [features=default]
   \definefontsynonym [Delicious-Bold]   [name:Delicious-Bold]
  [features=default]
   \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic]
  [features=default]
   \definefontsynonym [Delicious-Caps]   [name:Delicious-SmallCaps]
  [features=default]
  \stoptypescript
 
  \starttypescript [catalog]
   \definetypeface [catalog] [rm] [serif] [catalog] [default]
   \definetypeface [catalog] [ss] [sans] [catalog] [default]
  \stoptypescript
  %
 
 
  %%%test.tex%%%
  \usetypefile[catalog]
  \usetypescript[catalog]
  \setupbodyfont[catalog,8pt,serif]
  \starttext
  \rm
  \input tufte
  \ss
  \input tufte
  \stoptext
  %%
 
  $ context test.tex
  $pdffonts test.pdf
 
  name type  emb sub uni object
 ID
   - --- --- ---
 -
  HMORXY+CharisSIL CID TrueType  yes yes yes
 4  0
  EVRTHR+Delicious-Roman   CID Type 0C   yes yes yes
 5  0
 
 
  --
  luigi
 
 
 ___
  If your question is of interest to others as 

Re: [NTG-context] Where to store typescripts ?

2009-06-04 Thread Wolfgang Schuster


Am 04.06.2009 um 17:28 schrieb Nicolas Girard:


Apparently,
 \usetypescriptfile[catalog]
 \usetypescript[catalog]
doesn't work, whereas
 \usetypefile[catalog]
 \usetypescript[catalog]
does.

Is there any reason for this ?


The convention for typescript files is to save them as type-fontname| 
foundry|tex and load it either with


  \usetypescriptfile[type-...]

or

  \usetypefile[...]

where ConTeXt prepends 'type-' when it load the file but  
\usetypescriptfile is the preferred command because it takes care of  
\starttypescriptcollection/\stoptypescriptcollection environments.


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] Bug in treatment of spaces in mathmode mkiv

2009-06-04 Thread Otared Kavian
Sorry for reposting this message sent this morning: I thought it  
didn't go through…


Hi Hans,

I noticed that in math mode the spacement of some symbols are  
incorrect while using mkiv (they are correct in mkii).

Here is an example

% begin example

\starttext
Set $a := bc^{-1}$.
\stoptext

% end example

In this example, there should be a space before and after := as one  
may see it readily in mkii (and indeed in plain TeX…).


Best regards: OK
___
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] Where to store typescripts ?

2009-06-04 Thread Wolfgang Schuster


Am 04.06.2009 um 16:44 schrieb Nicolas Girard:


Wow. Now, I'm lost -- and i still can't make it work anyway.
Could you explain right from the start ?

Let's assume (as it is the case on my system) that the Delicious fonts
are properly installed *and* the font database knows about it.
Let's assume context = LuaTeX mkiv

Now,

1. if I want to create a typescript file supporting some XX fonts, do
I need to name the file type-XX.some_extension, or is it only a
convention and the file could also be named XX.some_extension or even
whatever.some_extension ?


You can use whatever.tex for the name of the file but the convention  
is

to name it type-whatever.tex.

2. what should be the extension for mkiv ? .mkiv ? .tex ? Are both  
allowed ?


You could write extra files to follow the different naming conventions
for XeTeX and LuaTeX and name the files type-whatever.mkii/mkiv and
load it in the type-tex file with \loadmarkfile{type-...}.


3. Assuming I properly install such
http://bitbucket.org/wolfs/typescripts/src/7050bb6918bb/type-exljbris.mkiv
file, should I load it using
 \usetypescriptfile[type-exljbris]
or
 \usetypescriptfile[exljbris]
?


You load in your document type-exljbris.tex, the mkii/mkiv files are
loaded from type-exljbris.tex dependend what engine you use and never
by yourself.


4. What is the relationship between type-exljbris.mkiv and
type-exljbris.tex ? Is type-exljbris.tex necessary when using mkiv ?


See above.


5. In order to install one or several typescript files, I should first
copy them, either in
   tex/texmf-fonts/tex/context/user
or in
   tex/texmf-project/tex/context/user
right ?


Yes but I can create a package with all files you can the load from
the modules section or with the minimals updater.


But then,
what is it necessary to run ?
- context --generate ?
- mtxrun --script fonts --reload ?
- both ?


When you saved the typescript files (tex + mkii/mkiv) in the above  
folder
call 'context --generate' to let ConTeXt know there are new files  
available.


The second command 'mtxrun --script fonts --reload' is used to let  
ConTeXt

look for new fonts but this normally happen by default when you request
a new font which is unknown to ConTeXt. The only case (I know at the  
moment)
when you need the command is when you have install a new font which  
has the
same name as a old one but a different file extension, did not happen  
very

often a few fonts are available in TT and OT format.


6. How comes ConTeXt can silently substitute my fonts, without even
outputting any error message ?
How to change this behaviour ?
How to disable font substitution ?


This happens only when the font you requested is not available
or you try to load not existing typescripts.

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] Where to store typescripts ?

2009-06-04 Thread Nicolas Girard
2009/6/4 luigi scarso luigi.sca...@gmail.com:

 so does it work now for you ?

Yes it does.
Thanks everybody for your assistance.

I've summarized what I understood from this thread here:
http://wiki.contextgarden.net/Fonts_in_LuaTex#The_standard_way:_Typescripts
Please have a look  correct my mistakes.

Cheers,
Nicolas
___
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] Where to store typescripts ?

2009-06-04 Thread Nicolas Girard
2009/6/4 Wolfgang Schuster schuster.wolfg...@googlemail.com:


Thanks Wolfgang ! I think pretty much everything you said should now
be in http://wiki.contextgarden.net/Fonts_in_LuaTex , except for font
substitution, which I find quite annoying. Anyway...

Cheers,
Nicolas
___
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] simple-slides: Last slide not formatted

2009-06-04 Thread Michael Bynum
I am having a problem with the last slide of my presentation using the
simple-slide module.  No matter what style I use, the last slide
doesn't follow the style chosen and doesn't contain the specified
title.  In the example below, the title slide and slides 1 - 3 are
correctly formatted, but slide 4 only displays the text This is the
forth slide in black text on a white background.  Is there something
I'm doing wrong?

\usemodule[simpleslides][style=BigNumber]
\setupTitle
[ title={Title of Presentation},
  author={Author of Presentation},
  date={Today},
]

\starttext
\placeTitle

\SlideTitle {The first slide}
This is the first slide.

\SlideTitle {The second slide}
This is the second slide.

\SlideTitle {The third slide}
This is the third slide.

\SlideTitle {The forth slide}
This is the forth slide.

\stoptext



Thanks,
Mike
___
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] simple-slides: Last slide not formatted

2009-06-04 Thread Thomas A. Schmitz


On Jun 4, 2009, at 8:28 PM, Michael Bynum wrote:


I am having a problem with the last slide of my presentation using the
simple-slide module.  No matter what style I use, the last slide
doesn't follow the style chosen and doesn't contain the specified
title.  In the example below, the title slide and slides 1 - 3 are
correctly formatted, but slide 4 only displays the text This is the
forth slide in black text on a white background.  Is there something
I'm doing wrong?


I get correct output with the sample code you sent, both with mkii and  
mkiv. What version of ConTeXt are you running, which engine are you  
using?


Thomas
___
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] simple-slides: Last slide not formatted

2009-06-04 Thread Michael Bynum
ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2009.4.16  int: english/english
texexec --version:  TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

I attached the pdf that I generate.


Mike


On Thu, Jun 4, 2009 at 2:42 PM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:

 On Jun 4, 2009, at 8:28 PM, Michael Bynum wrote:

 I am having a problem with the last slide of my presentation using the
 simple-slide module.  No matter what style I use, the last slide
 doesn't follow the style chosen and doesn't contain the specified
 title.  In the example below, the title slide and slides 1 - 3 are
 correctly formatted, but slide 4 only displays the text This is the
 forth slide in black text on a white background.  Is there something
 I'm doing wrong?

 I get correct output with the sample code you sent, both with mkii and mkiv.
 What version of ConTeXt are you running, which engine are you using?

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



presentation.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] simple-slides: Last slide not formatted

2009-06-04 Thread Thomas A. Schmitz


On Jun 4, 2009, at 8:51 PM, Michael Bynum wrote:

ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2009.4.16  int: english/ 
english
texexec --version:  TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/ 
POD


I attached the pdf that I generate.


Mike


Hmm, that's out of date. Can you upgrade to the current version? Or,  
as a workaround, try adding an extra \page just before \stoptext. I  
have a vague memory of having encountered this problem before, but is  
disappeared with some version.


Thomas
___
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] simple-slides: Last slide not formatted

2009-06-04 Thread Michael Bynum
Yeah, I can't rsync at work.  I saw the thread about not using rsync,
but I didn't want to bother with all of that if I didn't have too.
The \page trick worked for me though so thanks.
Mike



On Thu, Jun 4, 2009 at 3:14 PM, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:

 On Jun 4, 2009, at 8:51 PM, Michael Bynum wrote:

 ConTeXt  ver: 2008.05.21 15:21 MKII  fmt: 2009.4.16  int: english/english
 texexec --version:  TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD

 I attached the pdf that I generate.


 Mike

 Hmm, that's out of date. Can you upgrade to the current version? Or, as a
 workaround, try adding an extra \page just before \stoptext. I have a vague
 memory of having encountered this problem before, but is disappeared with
 some version.

 Thomas
 ___
 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 treatment of spaces in mathmode mkiv

2009-06-04 Thread Hans Hagen

Otared Kavian wrote:


% begin example

\starttext
Set $a := bc^{-1}$.
\stoptext

% end example

In this example, there should be a space before and after := as one 
may see it readily in mkii (and indeed in plain TeX…).


in char-def.lua both colon and equal should be 'relation'

note for aditya: we need to check more of them (more colons)

-
  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] new beta

2009-06-04 Thread Hans Hagen

hi,

i uploaded a new beta. a few small fixes, mostly related to metafun 
(i'll look into the reported structure bugs later)


in the process of updating the metafun manual, i also enabled the 
multiple mp instance; this is a typical example where luatex beats 
pdftex in runtime (on my machine 47 seconds for 350+ pages with over 
1700 mp graphics including a bunch of subruns; )


you can add definitions per instance, like:

\startMPdefinitions{extrafun}
color MyColor ; MyColor = red ;
\stopMPdefinitions

\startMPcode{metafun}
fill fullsquare scaled 1cm withcolor MyColor ;
\stopMPcode

new instances, like the predefined extrafun, are defined as

\defineMPinstance[extrafun][format=metafun,extensions=yes,initializations=yes]

so, if you use tricky mp code, you can create your own instance 
(predefined are metafun, extrafun, nofun and metapost)


you can redirect to an instance with a prefix:

\useMPgraphic{nofun::purempgraphic}

still somewhat experimental

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 treatment of spaces in mathmode mkiv

2009-06-04 Thread Otared Kavian



On 4 juin 09, at 22:18, Hans Hagen wrote:


Otared Kavian wrote:


% begin example
\starttext
Set $a := bc^{-1}$.
\stoptext
% end example
In this example, there should be a space before and after := as  
one may see it readily in mkii (and indeed in plain TeX…).


in char-def.lua both colon and equal should be 'relation'


Thanks Hans: it is fixed now with the latest beta mkiv.


note for aditya: we need to check more of them (more colons)



Do you mean other instances of colons used in math mode?
___
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] simple-slides: Last slide not formatted

2009-06-04 Thread Aditya Mahajan

On Thu, 4 Jun 2009, Michael Bynum wrote:


I am having a problem with the last slide of my presentation using the
simple-slide module.  No matter what style I use, the last slide
doesn't follow the style chosen and doesn't contain the specified
title.  In the example below, the title slide and slides 1 - 3 are
correctly formatted, but slide 4 only displays the text This is the
forth slide in black text on a white background.  Is there something
I'm doing wrong?

\usemodule[simpleslides][style=BigNumber]
\setupTitle
[ title={Title of Presentation},
 author={Author of Presentation},
  date={Today},
]

\starttext
\placeTitle

\SlideTitle {The first slide}
This is the first slide.

\SlideTitle {The second slide}
This is the second slide.

\SlideTitle {The third slide}
This is the third slide.

\SlideTitle {The forth slide}
This is the forth slide.

\stoptext


This works fine here for both mkii and mkiv. I am using the beta from 
2009.05.26. What is the version that you are using?


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] Bug in treatment of spaces in mathmode mkiv

2009-06-04 Thread Aditya Mahajan

On Thu, 4 Jun 2009, Hans Hagen wrote:


Otared Kavian wrote:


% begin example

\starttext
Set $a := bc^{-1}$.
\stoptext

% end example

In this example, there should be a space before and after := as one may 
see it readily in mkii (and indeed in plain TeX…).


in char-def.lua both colon and equal should be 'relation'

note for aditya: we need to check more of them (more colons)


colon needs a bit more care. The literal : should be a mathrel, while 
\colon should be a punctuation. I do not know how to set this using 
mathspec.


equal in the current char-def is wrong. The mathclass should be relation 
(rather than binary).


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
___