Re: [NTG-context] Context doesn't work

2008-12-10 Thread luigi scarso
On Tue, Dec 9, 2008 at 1:53 PM, Michael Talbot-Wilson 
[EMAIL PROTECTED] wrote:

 I've installed Context and attempted

 $ texexec fig3_2.tex

 The response is:

 the file 'texexec.rb' is not found

Try to install ruby 1.8

-- 
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] Context doesn't work

2008-12-10 Thread Taco Hoekwater


Michael Talbot-Wilson wrote:
 I've installed Context and attempted
 
 $ texexec fig3_2.tex
 
 The response is:
 
 the file 'texexec.rb' is not found
 
 setuptex was run and TEXROOT is correctly set.
 
 texexec is:
 
 #!/bin/sh
 texmfstart texexec.rb $@
 
 There seems to be nothing there which would enable the script to be
 located.
 
 Does texexec have to be changed to state the full path to the script?

No, discovering the actual file is handled by texmfstart

 Does that have to be done with anything else?

You do not say where you got your context distribution from, making it
hard to give good advise. It could be as simple as: run

  $ mktexlsr

first.

Best wishes,
Taco
___
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] texexec (and context) stops when using \externalocp

2008-12-10 Thread Taco Hoekwater


Khaled Hosny wrote:
 Trying to get some sort of 'implicit' bidi with luatex, I though
 of using an (extenal) OCP filter as it is much easier than messing with
 luatex nodes, and it respects TeX grouping.
 
 The attached example loads the do_bidi.py script as an \externalocp, it
 works fine with plain luatex, but not with 'texexec', using 'context' I get:
 
 MtxRun | fatal error, message: luatex: execution interrupted
 
 Any ideas? Is there a lua equivalent to \externalocp ?

Luatex crashes because it attempts to call a kpathsea function,
but the kpathsea search library is never initialized by context.

The crash is an oversight in luatex.exe that I will try to fix for
the next version. Whether hte default context mkiv will ever support
external OCPs is upto Hans, but I would not be surprised doubt it
never will.

To run the example, you can add

 \ctxlua{kpse.set_program_name('luatex')}

to the top of your file, then it will work.

Best wishes,
Taco
___
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] Context doesn't work

2008-12-10 Thread luigi scarso
On Wed, Dec 10, 2008 at 9:57 AM, luigi scarso [EMAIL PROTECTED]wrote:



 On Tue, Dec 9, 2008 at 1:53 PM, Michael Talbot-Wilson 
 [EMAIL PROTECTED] wrote:

 I've installed Context and attempted

 $ texexec fig3_2.tex

 The response is:

 the file 'texexec.rb' is not found

 Try to install ruby 1.8

ahh sorry, I mean


Do you have ruby 1.8 ?


-- 
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] Experience on writing a thesis with MKIV

2008-12-10 Thread Taco Hoekwater


Aditya Mahajan wrote:
 Does is make sense to add a keyword all so that
 
 \setupcite[all][...] is equal to
 \setupcite
   [author,authoryear,authoryears,
year,serial,authornum,page,short,type,doi,url,num]
   [...]
 
 
 Also, can we add style and color options to \cite. These can be either
 passed to \setupinteraction in \docite or simply added using attributes
 in the output of \cite.

I certainly don't mind, but I am deep into other stuff right now.
If you have a patch, I can apply that at any time you want. Otherwise,
it will be January before I revisit the bib code.

Best wishes,
Taco
___
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] PDF page numbers

2008-12-10 Thread Marcin Borkowski
Dnia Tue, Dec 09, 2008 at 01:27:01PM +0100, Mojca Miklavec napisa#322;(a):
 Hello Derek,
 
 On Tue, Dec 9, 2008 at 11:53 AM, Derek CORDEIRO wrote:
  I find
  myself stumbling on simple things(I'm a beginner). For example, the
  following works fine.
 
  \usetypescriptfile[type-gyr]
  \usetypescript[palatino]
  \setupbodyfont[palatino,11pt]
 
  but the following does not work.
 
  \usetypescriptfile[type-gyr]
  \usetypescript[schoolbook][ec]
  \setupbodyfont[schoolbook,11pt]
 
 Some definitions/mappings are missing in the core.
 This should work in next version of ConTeXt and you will not need
 \usetypescriptfile[type-gyr] any more.

Just out of curiosity: what do you mean by next version?  Next beta or
MkV;)?

Greets

-- 
Marcin Borkowski (http://mbork.pl)

888 * Nie lękaj się * Ja zawsze będę z Tobą!
___
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] PDF page numbers

2008-12-10 Thread Derek CORDEIRO
2008/12/10 Marcin Borkowski [EMAIL PROTECTED]

 Dnia Tue, Dec 09, 2008 at 01:27:01PM +0100, Mojca Miklavec napisa#322;(a):
  Hello Derek,
 
  On Tue, Dec 9, 2008 at 11:53 AM, Derek CORDEIRO wrote:
   I find
   myself stumbling on simple things(I'm a beginner). For example, the
   following works fine.
  
   \usetypescriptfile[type-gyr]
   \usetypescript[palatino]
   \setupbodyfont[palatino,11pt]
  
   but the following does not work.
  
   \usetypescriptfile[type-gyr]
   \usetypescript[schoolbook][ec]
   \setupbodyfont[schoolbook,11pt]
 
  Some definitions/mappings are missing in the core.
  This should work in next version of ConTeXt and you will not need
  \usetypescriptfile[type-gyr] any more.

 Just out of curiosity: what do you mean by next version?  Next beta or
 MkV;)?


I was tempted to ask the same question :)

BTW, Is there anyway to report errors in the user manual(cont-eni.pdf, not
the beginners manual, I found the wiki page for that)?

-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Blog: http://www.derekcordeiro.com
Follow Me: http://twitter.com/derekcordeiro
___
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] texexec (and context) stops when using \externalocp

2008-12-10 Thread Khaled Hosny
On Wed, Dec 10, 2008 at 10:11:05AM +0100, Taco Hoekwater wrote:
 
 
 Khaled Hosny wrote:
  Trying to get some sort of 'implicit' bidi with luatex, I though
  of using an (extenal) OCP filter as it is much easier than messing with
  luatex nodes, and it respects TeX grouping.
  
  The attached example loads the do_bidi.py script as an \externalocp, it
  works fine with plain luatex, but not with 'texexec', using 'context' I get:
  
  MtxRun | fatal error, message: luatex: execution interrupted
  
  Any ideas? Is there a lua equivalent to \externalocp ?
 
 Luatex crashes because it attempts to call a kpathsea function,
 but the kpathsea search library is never initialized by context.
 
 The crash is an oversight in luatex.exe that I will try to fix for
 the next version. Whether hte default context mkiv will ever support
 external OCPs is upto Hans, but I would not be surprised doubt it
 never will.
 
 To run the example, you can add
 
  \ctxlua{kpse.set_program_name('luatex')}
 
 to the top of your file, then it will work.

Thanks for the quick help, you saved my day!

Regars,
 Khaled

-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] \framed question

2008-12-10 Thread Alan STONE
Hi,

How do you get a frame's topframe overlap with the layout header topframe
?


   topspace
  --- frame's topframe =
layout header topframe
|header |


|   |
|text  |

-- 
Best,
Alan

* TeX engine = LuaTeX
*ConTeXt minimals ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.21  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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] Experience on writing a thesis with MKIV

2008-12-10 Thread Mohamed Bana

This is very strange, I did a fresh checkout and everything *just* worked.

$ luatex --version
This is LuaTeX, Version snapshot-0.30.3-2008112812, build unknown
...
$ context --version
MtxRun | main context file: 
/home/mbana/context-minimals/tex/texmf-context/tex/context/base/context.tex

MtxRun | current version: 2008.11.10 21:40



Hopefully this will be my last question; how do you compile individual 
chapters?




Aditya Mahajan wrote:

On Tue, 9 Dec 2008, Taco Hoekwater wrote:


Aditya Mahajan wrote:

On Tue, 9 Dec 2008, Mohamed Bana wrote:

sorry about the late reply, my minimals broke so i had to wait for a 
fix.



t-bib-2008.12.01.zip

$ luatex --version
This is LuaTeX, Version snapshot-0.30.3-2008112812, build unknown

$ context --version
MtxRun | main context file: 
/home/mbana/context-minimals/tex/texmf-context/tex/context/base/context.tex 
MtxRun | current version: 2008.11.10 21:40


http://filebin.ca/jqqekq/thesis.pdf or http://filebin.ca/jqqekq
http://filebin.ca/uhvgex/thesis.log or http://filebin.ca/uhvgex


How are you compiling your files? Use context thesis and not 
texexec --lua thesis (texexec will run bibtex which will overwrite 
the existing bbl file, since you do not have any bib file, the bbl 
file will be empty).


Please note that my latest upload to modules.contextgarden runs
bibtex itself, in mkiv mode.


Ah, so that explains why Mohamed is not getting any citations. I was 
using latest minimals from yesterday which still have t-bib from 
2008.10.27.


Taco, I also have a feature request for the bib module. Currently, 
\setupcite is defined as


\def\dosetupcite[#1][#2]%
  {\ifsecondargument
 \def\dodosetupcite##1{\getparameters[\??pv##1][#2]}%
 \processcommalist[#1]\dodosetupcite
   \else % default case
 \getparameters[\??pv\@@citedefault][#1]%
   \fi }

This means that if I say

\setupcite[compress=no], this option is only passed to the default cite 
command. This means that when interaction is enabled, (and the bibl-* 
file says compress=yes), we get no styles for other cite styles. Does it 
make sense to add a keyword all so that


\setupcite[all][...] is equal to
\setupcite
  [author,authoryear,authoryears,
   year,serial,authornum,page,short,type,doi,url,num]
  [...]


Also, can we add style and color options to \cite. These can be either 
passed to \setupinteraction in \docite or simply added using attributes 
in the output of \cite.


Mohamed, to get the references to work comment

\setupbibtex  [database={IEEEfull,../collection}, sort=author]

in macros.tex and add

\dousepublications[thesis]

You can also use the official way: \usepublications[thesis], but I think 
that this will cause warnings about redefined labels. Perhaps a better 
way would be to change thesis.bbl to say thesis-ref.bbl and then use 
\usepublications[thesis-ref].


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
___ 





___
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] Experience on writing a thesis with MKIV

2008-12-10 Thread Aditya Mahajan

On Thu, 11 Dec 2008, Mohamed Bana wrote:


This is very strange, I did a fresh checkout and everything *just* worked.


Great. Because I had no idea why it was not working at your end :-)

Hopefully this will be my last question; how do you compile individual 
chapters?



From top directory


context chapters/chapter-01.tex


From the chapters directory


context chapter-01.tex

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
___


[NTG-context] UPdating context fails

2008-12-10 Thread David Arnold

All,

Running textlive2008 on mac (MacTex). The command:

sudo CtxTools --updatecontext

Fails with:

! Undefined control sequence.
argument \??cv :\c!n
   :\v!one
\setvalue #1-\expandafter \def \csname #1
  \endcsname
l.618 \setvalue{\??cv:\c!n:\v!one  }
{1}
?


Any suggestions?

D.
___
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] mptopdf

2008-12-10 Thread David Arnold
All, I sent this to OS X TeX list, but perhaps I can get some  
guidance here?


All,

After installing MacTeX (textlve2008), mptopdf fails:

pstricks $ mptopdf bruce
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %-line parsing enabled.
[MP to PDF] (./bruce.0{/Users/darnold/Library/texmf/fonts/map/pdftex/ 
updmap/pdf

tex.map}) [1]
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi  
600 rm-lmr12

mktexpk: don't know how to create bitmap font for rm-lmr12.
kpathsea: Appending font creation commands to missfont.log.

!pdfTeX error: pdftex (file rm-lmr12): Font rm-lmr12 at 600 not found
 == Fatal error occurred, no output PDF file produced!
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
 %-line parsing enabled.
[MP to PDF] (./bruce.1{/Users/darnold/Library/texmf/fonts/map/pdftex/ 
updmap/pdf

tex.map}) [1]
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi  
600 rm-lmr12

mktexpk: don't know how to create bitmap font for rm-lmr12.
kpathsea: Appending font creation commands to missfont.log.

!pdfTeX error: pdftex (file rm-lmr12): Font rm-lmr12 at 600 not found
 == Fatal error occurred, no output PDF file produced!

MPtoPDF 1.3.3 : bruce.* is converted to bruce-0.pdf + bruce-1.pdf


I tried:

tlmgr update context

No good. Same error as above after update.



Any suggestions?

david


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