Re: [NTG-context] Stange error with \definepalet

2011-04-10 Thread Wolfgang Schuster

Am 10.04.2011 um 00:22 schrieb Aditya Mahajan:

 Hi,
 
 \definepalet
  [test]
  [one=red,
   two=blue,
  ]
 
 \normalend
 
 gives
 
 ]\doprocesscommaitem ]\relax \global \advance \commalevel \minusone  \ETC.
 ! File ended while scanning use of \dodododefinepalet.
 
 while
 
 \definepalet
  [test]
  [one=red,
   two=blue]
 
 \normalend
 
 compiles correctly. Shouldn't the both be equal?

\definepalet use it’s own code to parse assignments which can’t handle
empty entries like \getparameters, your first example is therefore wrong.

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


Re: [NTG-context] dashed underbar: wiki

2011-04-10 Thread Mojca Miklavec
2011/4/8 Aditya Mahajan wrote:
 On Fri, 8 Apr 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 Hello,

 I tried to add the Wolfgang's solution to wiki, the last example on

 http://wiki.contextgarden.net/TextBackground

 But the rendered example doesn't show any (dashed) background, although
 the standalone test file does.

 Why?

 The underbar is drawn using metapost. The wiki still uses MkII, and does not
 have write18 enabled. So, you need to add \runMPgraphicsfalse in the file (I
 think that that should be added to cont-usr.tex on the wiki).

I have added that command before \starttext in the wiki extension.

Aditya - can you please test it?

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

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

[NTG-context] Loss of footnotes while using background colour

2011-04-10 Thread Charles Doherty
Dear all,

I am making a manual for students of Irish hagiography. I am setting source 
material whether original or in translation against a middle gray background. 
When I do this as you see in the attached sample file the footnotes are not 
printed. I would be grateful if anyone can give me a solution. Note that a 
footnote inside a margin text does not print either. I am using Mark IV — log 
file is also attached.

Thanks,
Charlie



ClogherTest.tex
Description: TeX document


ClogherTest.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] dashed underbar: wiki

2011-04-10 Thread Aditya Mahajan

On Sun, 10 Apr 2011, Mojca Miklavec wrote:


2011/4/8 Aditya Mahajan wrote:

On Fri, 8 Apr 2011, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


Hello,

I tried to add the Wolfgang's solution to wiki, the last example on

http://wiki.contextgarden.net/TextBackground

But the rendered example doesn't show any (dashed) background, although
the standalone test file does.

Why?


The underbar is drawn using metapost. The wiki still uses MkII, and does not
have write18 enabled. So, you need to add \runMPgraphicsfalse in the file (I
think that that should be added to cont-usr.tex on the wiki).


I have added that command before \starttext in the wiki extension.

Aditya - can you please test it?


If I remove \runMPgraphicsfalse from the last example on 
http://wiki.contextgarden.net/TextBackground, I do not get the underbar.


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

[NTG-context] two problems with natural tables

2011-04-10 Thread Florian Wobbe
Hi,

1) I tried the following minimal example from 
http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html

\placetable[split]{Test}
{\bTABLE[split=yes]
\dorecurse{60}{
\bTR \bTD hello \eTD \eTR
}
\eTABLE}

with the current context versions which works fine. However, if I insert the 
code in a big project with many setups it fails with the attached error 
message. So there are setups which cause this error. Unfortunately I couldn't 
figure out what causes the problem.

I could determine the context version at which my big document fails: 
2010.12.22 14:07. The example still works in 2010.12.21 10:50.

Anyone got an idea which setups might cause this issue?

2) How do I get a small and bold header? This does not work:

\bTABLE
\setupTABLE[style=\tfx]
\setupTABLE[row][1][style=\bfx] % redundant w/ line 5
\bTABLEhead
\bTR[style=\bfx] \bTH Header \eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD hello \eTD \eTR
\bTR \bTD world \eTD \eTR
\eTABLEbody
\eTABLE

Thanks!
Florian


! Missing number, treated as zero.

system   tex  error on line 178 in file test.tex: Missing number, 
treated as zero ...

173 \placetable[split]{Test}
174 {\bTABLE[split=yes]
175 \dorecurse{60}{
176 \bTR \bTD hello \eTD \eTR
177 }
178   \eTABLE}

to be read again 
   {
\docompletefloat ...\vbox \floatcaptionattribute {
  \doifelsemainfloatbody \cu...
argument ...loat {table}{}{split}{Test}\nextbox 
  \else \docompletefloat {ta...
\thirdofthreearguments #1#2#3-#3
 
\xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi }
  \else \docompletefloat {#1...
\dodowithnextbox ...tefloat {table}{}{split}{Test}
  \doifnotinset \v!text {spl...
...
l.178 \eTABLE
 }

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

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


Re: [NTG-context] Typesetting url's in ConTeXt?

2011-04-10 Thread Marco Pessotto
Aditya Mahajan adit...@umich.edu writes:

 On Sun, 10 Apr 2011, Alasdair McAndrew wrote:

 There's a wiki page all about typesetting url's, but I can't seem to get
 them to work.  All I want to do is to display a url in a typewriter font,
 for document printing - I don't need a live link. What I want is for the
 output to be similar to that provided by LaTeX's url package, so that, for
 example: \url{https://This_is_a_url.html} would be appropriately typeset,
 including all such ascii characters as underscores.

 What's the canonical way to do this?

 \hyphenatedurl{}

 Aditya

Try this:

\setupinteraction[state=start]

\starttext

\goto{\hyphenatedurl{http://domain.tdl:/id=15ln=test\letterpercent 
20_test\#2}}[url(http://domain.tdl:/id=15ln=test\%20_test\#2)]

\stoptext


IIRC there has been a discussion about the percent (%) in url, so maybe
this workaround isn't needed anymore. Anyway, this is what I usually use.

-- 
Marco

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

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


[NTG-context] need help getting context to work on windows

2011-04-10 Thread vt8235
I would like some help setting context to work on my windows xp machine, I
don't know if here I am supposed to ask so you'll forgive me. So, I tried
edit the sample tex hello world in Scite editor and when I process it I get
this:

mtxrun --autogenerate --script context --autopdf --pdf simple_doc.tex

 mtxrun | forcing cache reload
 resolvers | resolving | unknown configuration file
 'C:///texmf-local/texmfcnf.lua'
 resolvers | resolving | unknown configuration file
 'C:///texmf-local/web2c/texmfcnf.lua'
 resolvers | resolving | unknown configuration file
 'C:///texmf/texmfcnf.lua'
 resolvers | resolving | unknown configuration file
 'C:///texmf/web2c/texmfcnf.lua'
 resolvers | resolving | unknown configuration file 'C:///texmfcnf.lua'
 resolvers | resolving |
 resolvers | resolving | warning: no lua configuration files found
 resolvers | resolving | no texmf paths are defined (using TEXMF)
 resolvers | resolving |
 mtxrun | the resolver databases are not present or outdated
 resolvers | resolving | using suffix based filetype 'lua'
 resolvers | resolving | using suffix based filetype 'lua'
 resolvers | resolving | remembered file 'mtx-context.lua'
 resolvers | resolving | using suffix based filetype 'lua'
 resolvers | resolving | unknown configuration file
 'C:///texmf-local/texmfcnf.lua'
 resolvers | resolving | unknown configuration file
 'C:///texmf-local/web2c/texmfcnf.lua'
 resolvers | resolving | unknown configuration file
 'C:///texmf/texmfcnf.lua'
 resolvers | resolving | unknown configuration file
 'C:///texmf/web2c/texmfcnf.lua'
 resolvers | resolving | unknown configuration file 'C:///texmfcnf.lua'
 resolvers | resolving |
 resolvers | resolving | warning: no lua configuration files found
 resolvers | resolving | no texmf paths are defined (using TEXMF)
 resolvers | resolving |
 resolvers | resolving | remembered file 'mtx-context.lua'
 resolvers | resolving | remembered file 'mtx-contexts.lua'
 resolvers | resolving | remembered file 'mtx-context.lua'
 resolvers | resolving | remembered file 'context.lua'
 mtxrun | unknown script 'context.lua' or 'mtx-context.lua'Exit code: 1


I mention that because the Gui installer dind't work for me , I had to
install context minimals from the command -line as instructed in the wiki so
I have it in C:\context\ and for Scite I've used the installer so it went in
C:\Program Files\Scite. I've also executed the setuptex.bat file. Also have
the 3 configuration files mentioned in the wiki in their place.
I am using last version, I have neither ruby nor perl installed, I am using
windows xp sp3, both administrator and limited user accounts, same problem.
Is there a way to get this work?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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