[NTG-context] Reference for the \but command
Hello, Where can I find the list of all keywords recognized by the \but command to set up interaction? (Honest, I searched the manual!) thx -- Jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Reference for the \but command
On Sat, 13 May 2006, Jean Magnan de Bornier wrote: Where can I find the list of all keywords recognized by the \but command to set up interaction? (Honest, I searched the manual!) TeXshow says, that there is only one argument: the reference \but[ref] Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] about texmfstart
Dear Aditya, I did what you told me, set RUBYLIB=/texmf.local/scripts/context/ruby export $RUBYLIB But there is no change in the output of texmfstart --verbose texexec. I copied texexec.rb in the home directory, then I got ~ mac$ texmfstart --verbose texexec texmfstart version 1.8.6 expanding 'texexec' to 'texexec.rb' locating 'texexec.rb' in current path '.' registering 'texexec' as '/Users/mac/texexec.rb' 'texexec.rb' located in current path registering 'THREAD' as '/Users/mac' starting texexec using 'system' call: ruby /Users/mac/texexec.rb /Users/mac/texexec.rb:10:in `require': No such file to load -- base/ switch (LoadError) from /Users/mac/texexec.rb:10 According to this message, it locate texexec.rb. However, the commnad texmfstart texexec --make en did nothing but only a message like this. /Users/mac/texexec.rb:10:in `require': No such file to load -- base/ switch (LoadError) from /Users/mac/texexec.rb:10 Would you please tell me what I have to do more? Thank you for reading. Best regards, Dalyoung ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bibdemo.tex example needs a few defs
The bibdemo.tex example on the Wiki http://wiki.contextgarden.net/Bibliography fails with complaints about \newcommand being undefined. The problem is that xampl.bib (which here is /usr/share/texmf-tetex/bibtex/bib/base/xampl.bib on this teTeX 3.0 distribution) has this: @preamble{ \newcommand{\noopsort}[1]{} # \newcommand{\printfirst}[2]{#1} # \newcommand{\singleletter}[1]{#1} # \newcommand{\switchargs}[2]{#2#1} } So bibtex puts those LaTeX commands at the top of the .bbl file, and ConTeXt doesn't know about \newcommand. A temporary workaround is to define those commands by hand (see below). A better workaround is to define \newcommand. latex.ltx has a long and involved one, but maybe there's a nicer ConTeXt way? Meanwhile, the following example works (context version 2006.04.17 23:14): \usemodule[bib] \def\newcommand#1[#2]#3{} \newcommand{\noopsort}[1]{} \def\noopsort#1{} \def\printfirst#1#2{#1} \def\singleletter#1{#1} \def\switchargs#1#2{#2#1} \setupbibtex[database=xampl] \starttext As \cite[article-full] already indicated, bibtex is a \LaTeX-centric program. \completepublications \stoptext I'll put this version on the wiki, if there's no clean solution (unless I've missed an easy fix to the \newcommand problem). -Sanjoy ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] brace error after a \placefigure
On Sat, 13 May 2006 04:08:58 -0400, Sanjoy Mahajan [EMAIL PROTECTED] wrote: I can't figure out what causes the brace error with this test.tex example file: \starttext \placefigure[margin]{A caption}{\externalfigure[]} {test}. \stoptext Yes, strange. Looks like a grouping issue around this in page-flt: \ifmargeblokken % waarschijnlijk gebroken ! ! ! ! \doifinset\v!margin{#2} {\endgraf \bgroup\everypar{\egroup\the\everypar}% \hsize\@@mbwidth}% \fi inmargin seems to work, but i don't know if it should do the same thing. Regards, BG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Reference for the \but command
Le 13 mai à 14:21:17 Peter Münster [EMAIL PROTECTED] écrit notamment: | On Sat, 13 May 2006, Jean Magnan de Bornier wrote: | Where can I find the list of all keywords recognized by the \but command | to set up interaction? | (Honest, I searched the manual!) | TeXshow says, that there is only one argument: the reference | \but[ref] Thanks; but let me be more precise about what I'm looking for: in the demo file d-en-all I see this: \startinteractionmenu[right] \but [content] contents \\ \but [sample]sample \\ \but [PreviousJump] back \\ \but [CloseDocument] exit \\ \vfill \stopinteractionmenu So I wonder, is there some place where the list of all terms like PreviousJump are defined (I suppose they are defined somewhere as I don't see their definition in this file)? thx, -- Jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Reference for the \but command
It appears they are defined in http://source.contextgarden.net/tex/context/base/core-ref.tex slightly more than halfway down. Regards, Johan 2006/5/13, Jean Magnan de Bornier [EMAIL PROTECTED]: Le 13 mai à 14:21:17 Peter Münster [EMAIL PROTECTED] écrit notamment: | On Sat, 13 May 2006, Jean Magnan de Bornier wrote: | Where can I find the list of all keywords recognized by the \but command | to set up interaction? | (Honest, I searched the manual!) | TeXshow says, that there is only one argument: the reference | \but[ref] Thanks; but let me be more precise about what I'm looking for: in the demo file d-en-all I see this: \startinteractionmenu[right] \but [content] contents \\ \but [sample]sample \\ \but [PreviousJump] back \\ \but [CloseDocument] exit \\ \vfill \stopinteractionmenu So I wonder, is there some place where the list of all terms like PreviousJump are defined (I suppose they are defined somewhere as I don't see their definition in this file)? thx, -- Jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?
On Thu, 11 May 2006, Hans Hagen wrote: ? wrote: One remark for the texexec developer: it seems, when searching for executables, the order in $PATH is not respected. For example: I had /opt/teTeX/bin/dvips and /usr/bin/dvips and PATH=/opt/teTeX/bin:... but it was /usr/bin/dvips that was called to create the PS-file. hm, i just call dvips -) I think, I must have made a mistake somewhere, since I cannot reproduce this behaviour. But there is another problem with the following test file: %%% This needed to get upright \textmu: \setupencoding[default=texnansi] \usetypescript[modern-base][\defaultencoding] \setupbodyfont[modern] %%% \starttext bla and \textmu \stoptext When running texexec --dvi test, the output of dvips is This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com) ' TeX output 2006.05.13:1508' - test.ps tex.protexnansi-lm.enctexps.pro. lmr10.pfb[1] and the PostScript page is completely empty (blanc). When running dvips -u +original-base -u +ec-public-lm -u +ec-base -u +8r-base -u +t5-base -u +original-ams-base -u +original-ams-euler -u +original-public-lm -u +texnansi-base -u +texnansi-public-lm test (same command is used by texexec), the output of dvips is This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com) ' TeX output 2006.05.13:1510' - test.ps tex.protexps.pro. [1] and the PostScript file has an ugly font and nothing for \textmu. When running dvips test, the output of dvips is This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com) ' TeX output 2006.05.13:1510' - test.ps tex.prolm-texnansi.enctexps.pro. lmr10.pfb[1] and the PostScript file is ok. So here my questions: - Why does texexec use these options for dvips? - Where can I tell texexec to use just dvips without options? - Why is there a difference between running dvips by texexec or by command line, does texexec modify perhaps the environment? - Why do I have this behaviour only with texnansi but not with ec encoding? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?
On Thu, 11 May 2006, Peter Münster wrote: Using teTeX-3.0, here is what I've done to switch from perl texexec to the ruby one: chmod +x /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb cd /usr/local/bin ln -s /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb texmfstart copy these 3 lines into /opt/teTeX/bin/texexec: #!/bin/sh export RUBYLIB=/opt/teTeX/texmf-context/scripts/context/ruby exec texmfstart texexec.rb $@ I've just seen, that there are a lot of symbolic links in the teTeX installation to /opt/teTeX/bin/texexec, so please forget my advice above. Now I'm doing it like this: - keep the link for texmfstart - copy these 3 lines into /usr/local/bin/texexec: #!/bin/sh export RUBYLIB=/opt/teTeX/texmf-context/scripts/context/ruby exec texmfstart `basename $0` $@ - /usr/local/bin must come before the /opt/teTeX/bin in your PATH - in /usr/local/bin you can create other symbolic links to texexec, for example texutil and texsync Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Reference for the \but command
Le 13 mai à 17:49:35 Johan Sandblom [EMAIL PROTECTED] écrit notamment: | It appears they are defined in | http://source.contextgarden.net/tex/context/base/core-ref.tex | slightly more than halfway down. | Regards, Johan Thank you, I will try to understand that file... | 2006/5/13, Jean Magnan de Bornier [EMAIL PROTECTED]: | Le 13 mai à 14:21:17 Peter Münster [EMAIL PROTECTED] écrit notamment: | | | On Sat, 13 May 2006, Jean Magnan de Bornier wrote: | | | Where can I find the list of all keywords recognized by the \but command | | to set up interaction? | | (Honest, I searched the manual!) | | | TeXshow says, that there is only one argument: the reference | | \but[ref] | | Thanks; but let me be more precise about what I'm looking for: | in the demo file d-en-all I see this: | | \startinteractionmenu[right] |\but [content] contents \\ |\but [sample]sample \\ |\but [PreviousJump] back \\ |\but [CloseDocument] exit \\ |\vfill | \stopinteractionmenu | | So I wonder, is there some place where the list of all terms like | PreviousJump are defined (I suppose they are defined somewhere as I | don't see their definition in this file)? | thx, | -- | Jean | ___ | ntg-context mailing list | ntg-context@ntg.nl | http://www.ntg.nl/mailman/listinfo/ntg-context | -- Jean ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \startbackmatter requires \chapter to get bibliography?
I just noticed the following behavior of \startbackmatter: A \placepublications needs a \chapter{...} before it, otherwise no bibliography is generated (i.e. p.2 is empty). Consistent with that behavior, \completepublications works fine without needing a \chapter beforehand. Here's the minimal file: \usemodule[bib] \setupbibtex[database=book] \starttext See \cite[van-Dyke:82] \startbackmatter %\chapter{References} \placepublications \stopbackmatter \stoptext With this .bbl file: \setuppublicationlist[samplesize={vD82},totalnumber=1] \startpublication[k=van-Dyke:82,t=book, a={{van Dyke}},y=1982, n=1,s=vD82] \author[]{Milton}[M.]{van}{Dyke} \pubyear{1982} \title{An Album of Fluid Motion} \city{Stanford, Calif.} \pubname{Parabolic Press} \stoppublication ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] about texmfstart
On Sat, 13 May 2006, Dalyoung wrote: Dear Aditya, I did what you told me, set RUBYLIB=/texmf.local/scripts/context/ruby export $RUBYLIB I assume that by ... you mean the exact path of texmf.local But there is no change in the output of texmfstart --verbose texexec. I copied texexec.rb in the home directory, then I got What is the output of export RUBYLIB=path-to-texmf-local/scripts/context/ruby ruby path-to-texmf-local/scripts/context/ruby/texmfstart texexec.rb --version ~ mac$ texmfstart --verbose texexec texmfstart version 1.8.6 expanding 'texexec' to 'texexec.rb' locating 'texexec.rb' in current path '.' registering 'texexec' as '/Users/mac/texexec.rb' 'texexec.rb' located in current path registering 'THREAD' as '/Users/mac' starting texexec using 'system' call: ruby /Users/mac/texexec.rb /Users/mac/texexec.rb:10:in `require': No such file to load -- base/ switch (LoadError) from /Users/mac/texexec.rb:10 According to this message, it locate texexec.rb. However, the commnad texmfstart texexec --make en did nothing but only a message like this. /Users/mac/texexec.rb:10:in `require': No such file to load -- base/ switch (LoadError) from /Users/mac/texexec.rb:10 Would you please tell me what I have to do more? Thank you for reading. Best regards, Dalyoung ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context