Re: [NTG-context] How about a forum

2010-12-12 Thread Johannes Graumann
Try the mailing list as carried by gmane.org

Joh

Achim Jander wrote:

 Hi everybody,
 I am trying to get into Context again. The documentation seems to be
 somewhat better than one year ago (my last attempt) but still very
 suboptimal. Many information (as well on Contextgarden as on Pragma) is
 outdated, for example, the xml document on Pragma is dated 2001, the
 first document on the context wiki does not mention mkiv (ok, at least
 now there is a hint that something should be done about that). For a
 newbie like me, the best chance of information seems to be the
 mailing-list, where one can find a lot of gems.
 After spending this cold and snowy sunday afternoon with the
 mailing-list (and i got no further than to september 2010) I am
 wondering why there ist no forum for Context. I spend a lot of time
 getting into new themes, and I always like the functions of forums.
 I think in a forum the acces to the relavant information could be very
 quicklier than in a Mailing-List - which is in my opinion a relict of
 the information possibilities of the 1990 (last century, only a minute
 away from the middle ages :-).
 Dont get me wrong, I like the unbelievable support which is done on the
 mailing-list, but i think today there could be more efficient
 possibilities. Any suggestions on that?
 Thanks,
 Achim
 
 
___
 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
 
___


___
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] Unwanted spaces removing

2010-12-10 Thread Johannes Graumann
\setupknowledge[gaps=none]

;)

Joh

Jaroslav Hajtmar wrote:

 Great. How easy!!! It works very well now!
 I have gaps in basic knowledges ...
 
 Thanx very much to Peter !!!
 
 Jaroslav Hajtmar
 
 
 Dne 7.12.2010 13:09, Peter Münster napsal(a):
 \setupfloats[spacebefore=none, spaceafter=none]
 \starttext
 \input knuth
 \placefigure[here, none]{}{\externalfigure[cow]}
 \input tufte
 \stoptext

 Peter

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


___
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] startxmlsetups escaping a :?

2010-05-25 Thread Johannes Graumann
Hi,

How do I escape a : in an 
  \startxmlsetups
?
the element is actually called text:p and does not refer to
text
  p
   something
  /p
/text

but to 
text:p
  something
/text:p

This is the current MarkV Beta ...

Thanks, Joh

___
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] ggplot2: Adding points to a density plot

2010-03-31 Thread Johannes Graumann
Hi,

Consider something like
 library(ggplot2)
 movies$decade - round_any(movies$year, 10)
 m - qplot(rating,data=movies,colour=factor(decade),geom=density)
 m
(modified from ?stat_density).

I'd like to add on the line y=0 a dot for the median of each decade 
category (using the same colour coding as the fill). I'm failing miserably 
at all my
 m + geom_point
based approaches and would appreciate if someone could show me the ggplot2 
way of achieving this.

Thanks, Joh

___
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] ggplot2: Adding points to a density plot

2010-03-31 Thread Johannes Graumann
Grrr ... wrong newsgroup.

Sorry,

Joh

Johannes Graumann wrote:

 Hi,
 
 Consider something like
 library(ggplot2)
 movies$decade - round_any(movies$year, 10)
 m - qplot(rating,data=movies,colour=factor(decade),geom=density)
 m
 (modified from ?stat_density).
 
 I'd like to add on the line y=0 a dot for the median of each decade
 category (using the same colour coding as the fill). I'm failing
 miserably at all my
 m + geom_point
 based approaches and would appreciate if someone could show me the ggplot2
 way of achieving this.
 
 Thanks, Joh
 
 
___
 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
 
___


___
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] Minimals Setup witout rsync?

2009-12-07 Thread Johannes Graumann
Timestamp:
2009-05-11 13:30
Ouch.

Can that be synchronized with the rsync-able repository?

Thanks, Joh


Wolfgang Schuster wrote:

 
 Am 04.12.2009 um 14:27 schrieb Johannes Graumann:
 
 Hi,
 
 How would one install the minimals when sitting behind a restrictive
 firewall not allowing rsyncing with the outside world?
 
 http://pragma-ade.com/download-4.htm
 
 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
 
___


___
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] Minimals Setup witout rsync?

2009-12-07 Thread Johannes Graumann
Geee, that was easy!

$context --version
  MTXrun | main context file: /opt/ConTeXt/tex/texmf-   
context/tex/context/base/context.tex
  MTXrun | current version: 2009.12.03 00:41

Thanks a lot!

Joh

Alan BRASLAU wrote:

 On Monday 07 December 2009 10:49:45 Johannes Graumann wrote:
 Timestamp:
 2009-05-11 13:30
 Ouch.
 
 Can that be synchronized with the rsync-able repository?
 
 Thanks, Joh
 
 Wolfgang Schuster wrote:
  Am 04.12.2009 um 14:27 schrieb Johannes Graumann:
  Hi,
 
  How would one install the minimals when sitting behind a restrictive
  firewall not allowing rsyncing with the outside world?
 
  http://pragma-ade.com/download-4.htm
 
  Wolfgang
 
 See also attached mail.
 
 If you can connect to a machine on the outside world
 that has nc and itself allows rsync.
 
 Alan


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

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


[NTG-context] zip usage

2009-12-07 Thread Johannes Graumann
Hello,

This doesn't seem to work anymore:

\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}

What's a newer syntax? Thanks, Joh


___
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] Minimals Setup witout rsync?

2009-12-04 Thread Johannes Graumann
Hi,

How would one install the minimals when sitting behind a restrictive 
firewall not allowing rsyncing with the outside world?

Thanks, Joh

___
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] Minimals - problems with format: metafun.mp

2008-11-03 Thread Johannes Graumann
No changes in error message. I attach the code that doesn't work like so:

context --ctx=t-openoffice Attempt.odt

luigi scarso wrote:

 On Sun, Nov 2, 2008 at 7:53 PM, Johannes Graumann
 [EMAIL PROTECTED]wrote:
 
 Hello,

 In a bit to finally get Wolfgang's present to me (see XML thread
 somewhere) finally compiled, I update my minimals via the
 first-install.sh script and
 run luatools --generat  context --make afterwards. Now I get the 
 error below. Where might I err?

 Can you try these steps ?
 1) cd /opt/ConTeXtMinimals
 2) ./first-install.sh
 3) cd tex
 4) . setuptex
 5) context --generate
 6) context --make
 
 Here minimals is ok
 minimals
 Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC
 2008 i686 GNU/Linux
 This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
 ConTeXt MtxRun | current version: 2008.10.31 13:58


Attempt.odt
Description: application/vnd.oasis.opendocument.text


t-openoffice.ctx
Description: XML document
%context --ctx=t-openoffice BoldAndItalicContent.xml

\startenvironment t-openoffice.tex

  \startluacode
document.commands = document.commands or { }
function document.commands.somehexcolor(str)
  local r, g, b = str:match(#(..)(..)(..))
  r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0, tonumber(b,16) or 0
  tex.sprint(string.format(\\colored[r=%s,g=%s,b=%s],r/255,g/255,b/255))
end
  \stopluacode

  \startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
  \stopxmlsetups
  \xmlregistersetup{office}

  \startxmlsetups text:p
\xmlflush{#1}\endgraf
  \stopxmlsetups

  \startxmlsetups text:span
\bgroup
  \let\leftofspan \relax
  \let\rightofspan\relax
  \xmlfilter{main}{office:automatic-styles/style:[EMAIL PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
  \leftofspan
  \xmlflush{#1}
  \rightofspan
\egroup
  \stopxmlsetups

  \startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes
\xmlval{fo:font-style} {\xmlatt{#1}{font-style}}{}
%\xmlval{fo:color}  {\xmlatt{#1}{color}}{}
\getvalue{fo:color}{\xmlatt{#1}{color}}
\xmlval{style:text-position}   {\xmlatt{#1}{text-position}}{}
\xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{}
  \stopxmlsetups

  \xmlmapvalue{fo:font-weight}{bold}{\bf}
  \xmlmapvalue{fo:font-style}{italic}{\em}

  \xmlmapvalue{fo:color}{#ff}{\colored[h=ff]}
  \setvalue{fo:color}#1{\expandafter\colored\expandafter[h=#1]}
  %\setvalue{fo:color}#1{\edef\temp{\noexpand\ctxlua{document.commands.somehexcolor(\letterhash\uppercase{#1})}}\temp}

  \catcode`\%=11
  \xmlmapvalue{style:text-position}{sub 58%}  {\def\leftofspan##1\rightofspan{\low {##1}}}
  \xmlmapvalue{style:text-position}{super 58%}{\def\leftofspan##1\rightofspan{\high{##1}}}
  \catcode`\%=14

  \definetextbackground
[underline]
[location=text,
 alternative=1,
 background=,
 framecolor=black,
 frame=off]

  %\xmlmapvalue{style:text-underline-style}{solid}{\def\leftofspan##1\rightofspan{\startunderline##1\stopunderline}}
  \xmlmapvalue{style:text-underline-style}{solid}{\let\leftofspan\startunderline\let\rightofspan\stopunderline}

  \setupcolors[state=start]
  
  \starttext
%\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
\usezipfile[\inputfilename.odt]
\xmlprocess{main}{*/content.xml}{}
  \stoptext
  
\stopenvironment



___
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] Minimals - problems with format: metafun.mp

2008-11-02 Thread Johannes Graumann
Hello,

In a bit to finally get Wolfgang's present to me (see XML thread somewhere) 
finally compiled, I update my minimals via the first-install.sh script and run 
luatools --generat  context --make afterwards. Now I get the  error below. 
Where might I err?

Thanks, Joh

context --version
MtxRun | main context file: 
/opt/ConTeXtMinimals/tex/texmf-context/tex/context/base/context.tex
MtxRun | current version: 2008.10.31 13:58

systems: randomizer starts with 1392096869
mplib  : making format: metafun.mp, name: 
/opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem
mplib  : problems with format: metafun.mp, name: 
/opt/ConTeXtMinimals/tex/texmf-cache/luatex-cache/context/cf1ede6f9a7dea65673b0113ca44a3cc/formats/cont-en-metafun.mem
! LuaTeX error ...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: 
'for' initial value must be a number
stack traceback:
...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:384: in 
function 'free_boxes'
...mals/tex/texmf-context/tex/context/base/mlib-pps.lua:768: in 
function 'graphic_base_pass'
...mals/tex/texmf-context/tex/context/base/mlib-ctx.lua:19: in function 
'graphic'
main ctx instance:1: in main chunk.
\processMPgraphic ... \MPuserinclusions ;\!!es ) }
  \global \settrue \METAFUNi...
\getMPdrawing ...ic \expandafter {\MPdrawingdata }
  \fi
\dopositionaction ...fMPdrawingdone \getMPdrawing
  \fi \resetMPdrawing \popMP...
argument ...n {\v!text -1::\MPanchoridentifier }
  \hss }\ht \scratchbox \ove...
\firstoftwoarguments #1#2-#1

\positionoverlay ...hbox to \overlaywidth {\hss }}
  \vfill }\fi
...
l.72   \stoptext

?

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

2008-10-27 Thread Johannes Graumann
! Undefined control sequence.
l.1 \colored
[r=1,g=0.2,b=0.27]
\WhatAMess ...ocument.commands.somehexcolor(#1)}

l.16  {test \WhatAMess{\letterhash FF3344}
   test}
?

That's why I went color ...

Joh

Wolfgang Schuster wrote:

 On Sun, Oct 26, 2008 at 3:05 PM, Johannes Graumann
 [EMAIL PROTECTED] wrote:
 
 This is sending me down the right paths (at least showing me the sign
 post ;0) - I know I'm a pain in the neck, but the attached minimal
 (mirroring your proposal with the colored snippet fixed) compiles to to
 black tests ...

 What's wrong?
 
 Hans used \colored and you use \color.
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

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


Re: [NTG-context] XML

2008-10-26 Thread Johannes Graumann
This is sending me down the right paths (at least showing me the sign post ;0) 
- I know I'm a pain in the neck, but the attached minimal (mirroring your 
proposal with the colored snippet fixed) compiles to to black tests ...  

What's wrong?

Thanks, Joh

Hans Hagen wrote:

 \starttext
 
 \startluacode
 document.commands = document.commands or { }
 function document.commands.somehexcolor(str)
 local r, g, b = str:match(#(..)(..)(..))
 r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0,
 tonumber(b,16) or 0
 
 tex.sprint(string.format(\\colored[r=%s,g=%s,b=%s],r/255,g/255,b/255))
 end
 \stopluacode
 
 \setupcolors[state=start]
 
 \def\WhatAMess#1{\ctxlua{document.commands.somehexcolor(#1)}}
 
 {test \WhatAMess{\letterhash FF3344} test}
 
 \stoptext
 
\starttext

\startluacode
 document.commands = document.commands or { }
 function document.commands.somehexcolor(str)
 local r, g, b = str:match(#(..)(..)(..))
 r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0, tonumber(b,16) or 0
 	 tex.sprint(string.format(\\color[r=%s,g=%s,b=%s],r/255,g/255,b/255))
 end
\stopluacode

\setupcolors[state=start]

\def\WhatAMess#1{\ctxlua{document.commands.somehexcolor(#1)}}

{test \WhatAMess{\letterhash FF3344} test}

\stoptext


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

2008-10-22 Thread Johannes Graumann
Wolfgang Schuster wrote:

 I attached a fixed version, the errors in your version are:
Thank you for your time!

 - your wrote do:style:textproperties instead of
 do:style:text-properties
   for the text:span element , the hyphen was missing
Ok, that was plain stupid.

 - the begin of the line in \startxmlsetups text:span ... \stopxmlsetups
   contained a lot of control codes and they inserted the whitespace,
   could be a problem with your editor, which one do you use?
I realized that once I saw the post on the newsgroup ... kate must have screwed 
up. I'm in the still relatively unstable kde4, which may have contributed.

Thanks again, Joh

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

2008-10-22 Thread Johannes Graumann
I keep gnawing on this now ...

Added the following (see attachment):

\xmlval{fo:color}{\xmlatt{#1}{color}}{}

and

\xmlmapvalue{fo:color}{#ff}{\color[red]}

Which works just fine (given you use \setupcolors[state=start] as well), but 
is there a way to generically paste the ff bit into the place of red? I 
played around with system=rgb, but context won't take ff as a parameter 
...

Another question: underlining in ConTeXt (as far as I can discern) needs a 
\startunderline/\stopunderline pair, no? Accordingly the combination of

\xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{}

and

\xmlmapvalue{style:text-underline-style}{solid}{?}

doesn't work ... what's the proper construct to have xmlflush flanked by 
underline statements?

And even more ... how to match

style:text-properties style:text-position=sub 58%/

generically, such that sub* (which doesn't work) might be used in a 
combination of

\xmlval{style:text-position}{\xmlatt{#1}{text-position}}{}

and

\xmlmapvalue{style:text-position}{sub*}{\subscript}

and any percentage following sub will be matched? Essentially I'm asking here 
how to use the regex sub.* in xmlmapvalue ...

Thanks for your time - the learning curve is steep. Where can one look up stuff 
like this?

Joh

Attempt.odt
Description: application/vnd.oasis.opendocument.text


t-openoffice.ctx
Description: XML document
%context --ctx=t-openoffice BoldAndItalicContent.xml

\startenvironment t-openoffice.tex

  \startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
  \stopxmlsetups
  \xmlregistersetup{office}

  \startxmlsetups text:p
\xmlflush{#1}\endgraf
  \stopxmlsetups

  \startxmlsetups text:span
\bgroup
  \xmlfilter{main}{office:automatic-styles/style:[EMAIL PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
  \xmlflush{#1}
\egroup
  \stopxmlsetups

  \startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes
\xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
\xmlval{fo:color}{\xmlatt{#1}{color}}{}
\xmlval{style:text-position}{\xmlatt{#1}{text-position}}{}
%\xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{}
  \stopxmlsetups

  \xmlmapvalue{fo:font-weight}{bold}{\bf}
  \xmlmapvalue{fo:font-style}{italic}{\it}
  \xmlmapvalue{fo:color}{#ff}{\color[ff]}
  
%  \xmlmapvalue{style:text-position}{sub 58\%}{\subscript}
%  \xmlmapvalue{style:text-position}{super*}{\superscript}
  %\xmlmapvalue{style:text-underline-style}{solid}{\startunderline}{\stopunderline}

  \starttext
\setupcolors[state=start]
%\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
\usezipfile[\inputfilename.odt]
\xmlprocess{main}{*/content.xml}{}
  \stoptext
  
\stopenvironment


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

2008-10-19 Thread Johannes Graumann
Wolfgang Schuster wrote:
 \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties
 /command(do:style:text-properties)}
  \xmlflush{#1}
   \egroup
 \stopxmlsetups
 
   \startxmlsetups text:span
 \bgroup
   \xmlfilter{main}{office:automatic-styles/style:[EMAIL 
 PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
   \xmlflush{#1}
 \egroup
   \stopxmlsetups

Hello Wolfgang,

I just don't get it to run. Using the attached and 
context --ctx=t-openoffice Attempt.odt
I get the result in the pdf ... strange whitespace and no bold anywhere to be 
seen. Can you give me another nudge ... I start to understand what Hans and you 
are actually doing, but this is still beyond me.

Cheers, Joh

Attempt.odt
Description: application/vnd.oasis.opendocument.text


Attempt.pdf
Description: Adobe PDF document


t-openoffice.ctx
Description: XML document
%context --ctx=t-openoffice BoldAndItalicContent.xml

\startenvironment t-openoffice.tex

  \startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
  \stopxmlsetups
  \xmlregistersetup{office}

  \startxmlsetups text:p
\xmlflush{#1}\endgraf
  \stopxmlsetups

  \startxmlsetups text:span
    \bgroup
      \xmlfilter{main}{office:automatic-styles/style:[EMAIL PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:textproperties)}
  \xmlflush{#1}
    \egroup
  \stopxmlsetups

  \startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes
\xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
  \stopxmlsetups

  \xmlmapvalue{fo:font-weight}{bold}{\bf}
  \xmlmapvalue{fo:font-style}{italic}{\it}

  \starttext
%\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
\usezipfile[\inputfilename.odt]
\xmlprocess{main}{*/content.xml}{}
  \stoptext
  
\stopenvironment

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

2008-10-16 Thread Johannes Graumann
Wolfgang Schuster wrote:
   \startxmlsetups text:span
 \bgroup
   \xmlfilter{main}{office:automatic-styles/style:[EMAIL 
 PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
   \xmlflush{#1}
 \egroup
   \stopxmlsetups

Just saw this now ... will try tonight. Thanks!

Joh

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

2008-10-16 Thread Johannes Graumann
Wolfgang Schuster wrote:
   \startxmlsetups text:span
 \bgroup
   \xmlfilter{main}{office:automatic-styles/style:[EMAIL 
 PROTECTED]:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
   \xmlflush{#1}
 \egroup
   \stopxmlsetups

Just saw this now ... will try tonight. Thanks!

Joh

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

2008-10-09 Thread Johannes Graumann
Wolfgang Schuster schuster.wolfgang at googlemail.com writes:

 \xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
 
 or
 
 \usezipfile[\inputfilename.odt]
 \xmlprocess{main}{*/content.xml}{}

Thank you very much - very nice!

 You could use this for the start but it behavious a little bit weird.
 
   \unprotect
 
   \def\switchfontstyle
 {\ifx\fontalternative\c!tf \it \else
  \ifx\fontalternative\c!bf \bi \else
\it \fi\fi}
 
   \protect
 
   \xmlmapvalue {fo:font-style}  {italic} {\switchfontstyle}

Hmm ... if I understand this correctly this is aimed at dealing with nested
bold/italic attributes? 
While I'm certainly going to fall over this rather soon, I think the issue here
is that the following excerpt, where T1 and T2 correspond to bold and italic
definitions further up, is misinterpreted such that the opening text:span of
the T1 section is taken for the beginning of the T2 section instead and T2
is accordingly applied to the whole construct ...

text:p text:style-name=Standard
   Versuch 
   text:span text:style-name=T1
  Bold Versuch 
   /text:span
   text:span text:style-name=T2
  Italic Versuch
   /text:span
/text:p

Where in Hans' snippet below might that be fixable?

\startxmlsetups office
   \xmlsetsetup{main}{text:p|text:span}{*}
\stopxmlsetups
xmlregistersetup{office}

\startxmlsetups text:p
   \xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups text:span
   \bgroup
 
\xmlfilter{main}{office:automatic-styles/style:style/style:text-properties
/command(do:style:text-properties)}
  \xmlflush{#1}
   \egroup
\stopxmlsetups

Thanks for any further hints,

Joh

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

2008-10-08 Thread Johannes Graumann
luigi scarso wrote:

 A bit OT
 Do you know
 http://opendocumentfellowship.com/development/projects/odfpy

To do what in this context :) ?

Joh


___
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] xml mapping on the fly - revisit

2008-07-31 Thread Johannes Graumann
Hello,

I have been trying to extend the example sent by Hans as shown below and run 
into trouble. Can I please have another nudge?

On a side note - \xmlprocess{main}{zip::\env{odt}::content.xml}{} used to 
work in this context (;0) but doesn't anymore. What's currently accepted?

Thanks, Joh

\startenvironment t-openoffice.tex

  \startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
  \stopxmlsetups
  \xmlregistersetup{office}

  \startxmlsetups text:p
\xmlflush{#1}\par
  \stopxmlsetups

  \startxmlsetups text:span
\bgroup
  
\xmlfilter{main}{office:automatic-styles/style:style/style:text-properties/command(do:style:text-properties)}
  \xmlflush{#1}
\egroup
  \stopxmlsetups

  \startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in 
attributes
\xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
  \stopxmlsetups

  \xmlmapvalue {fo:font-weight} {bold} {\bf}
  \xmlmapvalue {fo:font-style} {italic} {\it}

  \starttext
%\xmlprocess{main}{zip::\env{odt}::content.xml}{}
\xmlprocess{main}{content.xml}{}
  \stoptext

\stopenvironment

Hans Hagen wrote:

 Johannes Graumann wrote:
 Hello,
 
 I while ago
 (http://archive.contextgarden.net/message/20080214.090451.b23da5b9.en.html)
 I asked whether the creation of a xml mapping tag was possible using mark
 V. I'm about to revisit this after some long absence and would like to
 know whether there's anything new and nifty which might help achieving
 this.
 
 Thanks for your hints,
 
 \starttext
 
 \startxmlsetups office
  \xmlsetsetup{main}{text:p|text:span}{*}
 \stopxmlsetups
 
 \xmlregistersetup{office}
 
 \startxmlsetups text:p
  [p: \xmlflush{#1}]
 \stopxmlsetups
 
 \startxmlsetups text:span
  \bgroup
  
 \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties/command(do:style:text-properties)}
  [span: \xmlflush{#1}]
  \egroup
 \stopxmlsetups
 
 \startxmlsetups do:style:text-properties
  \xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo:
 namespaces in attributes
 \stopxmlsetups
 
 \xmlmapvalue {fo:font-weight} {bold} {\bf}
 
 \startbuffer
 ?xml version='1.0'?
 office
  office:automatic-styles
  style:style style:name=T1 style:family=text 
  style:text-properties fo:font-weight=bold
 style:font-weight-asian=bold style:font-weight-complex=bold /
  /style:style
  /office:automatic-styles
  office:body
  office:text
  text:p text:style-name=Standard
  oeps
  text:span text:style-name=T1oeps/text:span
  oeps
  /text
  /office:text
  /office:body
 /office
 \stopbuffer
 
 \xmlprocessbuffer{main}{}{}
 
 
 -
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
 ___


content.xml
Description: XML 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
___


[NTG-context] xml mapping on the fly - revisit

2008-07-14 Thread Johannes Graumann
Hello,

I while ago
(http://archive.contextgarden.net/message/20080214.090451.b23da5b9.en.html)
I asked whether the creation of a xml mapping tag was possible using mark
V. I'm about to revisit this after some long absence and would like to know
whether there's anything new and nifty which might help achieving this.

Thanks for your hints,

Joh

___
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] xml mapping on the fly - revisit

2008-07-14 Thread Johannes Graumann
... deafening speechlessness ... interrupted by the sound of a tear of joy 
hitting the keyboard ... 

LOVELY! I'm off to play!

Can you elaborate a bit on what % todo: namespaces in attributes means and 
what the goal here would be? 

Joh

Hans Hagen wrote:

 Johannes Graumann wrote:
 Hello,
 
 I while ago
 (http://archive.contextgarden.net/message/20080214.090451.b23da5b9.en.html)
 I asked whether the creation of a xml mapping tag was possible using mark
 V. I'm about to revisit this after some long absence and would like to
 know whether there's anything new and nifty which might help achieving
 this.
 
 Thanks for your hints,
 
 \starttext
 
 \startxmlsetups office
  \xmlsetsetup{main}{text:p|text:span}{*}
 \stopxmlsetups
 
 \xmlregistersetup{office}
 
 \startxmlsetups text:p
  [p: \xmlflush{#1}]
 \stopxmlsetups
 
 \startxmlsetups text:span
  \bgroup
  
 \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties/command(do:style:text-properties)}
  [span: \xmlflush{#1}]
  \egroup
 \stopxmlsetups
 
 \startxmlsetups do:style:text-properties
  \xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo:
 namespaces in attributes
 \stopxmlsetups
 
 \xmlmapvalue {fo:font-weight} {bold} {\bf}
 
 \startbuffer
 ?xml version='1.0'?
 office
  office:automatic-styles
  style:style style:name=T1 style:family=text 
  style:text-properties fo:font-weight=bold
 style:font-weight-asian=bold style:font-weight-complex=bold /
  /style:style
  /office:automatic-styles
  office:body
  office:text
  text:p text:style-name=Standard
  oeps
  text:span text:style-name=T1oeps/text:span
  oeps
  /text
  /office:text
  /office:body
 /office
 \stopbuffer
 
 \xmlprocessbuffer{main}{}{}
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


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

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


Re: [NTG-context] XML: mapping definiton on the fly?

2008-02-15 Thread Johannes Graumann
Hans Hagen wrote:

 Johannes Graumann wrote:
 Hans,
 
 Can you drop any hints as to whether this is even possible and whether
 there's something exemplary around I may meditate about?
 
 this kind of questions always puts me in need to think about it mode
 which may take some time
 
 anyhow, one solution is ...
 
 \startluacode
for e, d, t in xml.elements(lxml.id(#1)) do
 tex.sprint(...)
end
 \stopluacode
 
 of course ... untested
 
 for nicer solutions i need more time
Take all the time you need ... just let me know when the right time comes
for some gentle prodding ... ;0)
I'll go meditate over your hints for a while in the meantime ...

Thank you for the tools!

Joh

___
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] XML: mapping definiton on the fly?

2008-02-15 Thread Johannes Graumann
Hans,

Can you drop any hints as to whether this is even possible and whether
there's something exemplary around I may meditate about?

Thanks, Joh

Johannes Graumann wrote:

 Dear XML-processing inclined,
 
 I was wondering whether with MarkV it is possible to parse an XML file
 that contains style definitions as well as there usage and create context
 mappings for them on the fly. In the example fragment below this would
 mean:
 - scan the file until hitting the office:automatic-styles tag
 - analyze the style definition, find it to be
 of family text
 of name T1
 requiring bold fonts
 - construct a context/XML mapping along the lines of
 \startxmlsetups T1
   \bf{\xmlflush{#1}}
 \stopxmlsetups
 - keep on scanning, when hitting the style invocation: use the dynamically
 generated mapping.
 
 Please excuse the hobbyists nomenclature. Thank you for your time and
 insight,
 
 Joh
 
 
 ?xml version=1.0 encoding=UTF-8?
 ...
 office:automatic-styles
   style:style
 style:name=T1
 style:family=text
   
 style:text-properties
   fo:font-weight=bold
   style:font-weight-asian=bold
   style:font-weight-complex=bold
 /
   /style:style
 /office:automatic-styles
 office:body
   office:text
   ...
 text:p
   text:style-name=Standard
 
   Dies text:span text:style-name=T1ist/text:span ein
   Text.
 /text:p
   /office:text
 /office:body
 ...
 

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


[NTG-context] XML: mapping definiton on the fly?

2008-02-14 Thread Johannes Graumann
Dear XML-processing inclined,

I was wondering whether with MarkV it is possible to parse an XML file that
contains style definitions as well as there usage and create context
mappings for them on the fly. In the example fragment below this would
mean:
- scan the file until hitting the office:automatic-styles tag
- analyze the style definition, find it to be
of family text
of name T1
requiring bold fonts
- construct a context/XML mapping along the lines of
\startxmlsetups T1
  \bf{\xmlflush{#1}}
\stopxmlsetups
- keep on scanning, when hitting the style invocation: use the dynamically
generated mapping.

Please excuse the hobbyists nomenclature. Thank you for your time and
insight,

Joh


?xml version=1.0 encoding=UTF-8?
...
office:automatic-styles
  style:style 
style:name=T1 
style:family=text
  
style:text-properties 
  fo:font-weight=bold 
  style:font-weight-asian=bold 
  style:font-weight-complex=bold
/
  /style:style
/office:automatic-styles
office:body
  office:text
  ...
text:p 
  text:style-name=Standard

  Dies text:span text:style-name=T1ist/text:span ein 
  Text.
/text:p
  /office:text
/office:body
...

___
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] DEB of Context 2008-01-28 anybody?

2008-02-13 Thread Johannes Graumann
Hans Hagen wrote:

 here are my logs
 
 context --ctx=COOnTeXML.ctx Versuch.odt  1.log
 texexec --ctx=COOnTeXML.ctx Versuch.odt  2.log
 
 (context == mtxrun --script context which is the future way to go with
 luatex)

So there's absolutely no hint on why I can't get this to work one can deduct
from the log below?

Joh

texexec --ctx=COOnTeXML.ctx Versuch.odt
TeXExec | processing document 'Versuch.odt'
TeXExec | loading ctx file COOnTeXML.ctx
TeXExec | preprocessing: open office processing
TeXExec | using flags purge texengine=luatex interface=en
TeXExec | using environments t-openoffice.tex
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file Versuch.top
TeXExec | using randomseed 506
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

LuaTools | using format
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en.fmt
LuaTools | no luc/lua with
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en
LuaTools | 
LuaTools | runtime: 0.002 seconds
TeXUtil | unable to locate Versuch.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | TeX run 2
TeXExec | writing option file Versuch.top
TeXExec | using randomseed 506
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

LuaTools | using format
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en.fmt
LuaTools | no luc/lua with
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en
LuaTools | 
LuaTools | runtime: 0.002 seconds
TeXUtil | unable to locate Versuch.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
CtxTools | purging temporary files : Versuch.odt
CtxTools | checking files that match 'Versuch-*.*'
CtxTools | checking files that match 'Versuch.*'
CtxTools | removed : Versuch.tmp
CtxTools | removed : Versuch.tuo
CtxTools | removed files : 2
CtxTools | kept files : 0
CtxTools | persistent files : 0
CtxTools | reclaimed bytes : 384
TeXExec | runtime: 0.225277


___
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] DEB of Context 2008-01-28 anybody?

2008-02-13 Thread Johannes Graumann
Hans Hagen wrote:
 it look like you don't run luatex at all
 
 run texexec with --verbose to see what command is issued

Here it is. What does unable to fix backend map path indicate?

Joh

#texexec --ctx=COOnTeXML.ctx --verbose Versuch.odt
TeXExec | processing document 'Versuch.odt'
TeXExec | using search method 'kpsewhich'
TeXExec | loading ctx file COOnTeXML.ctx
TeXExec | preprocessing: open office processing
TeXExec | using flags texengine=luatex interface=en
TeXExec | using search method 'kpsewhich'
TeXExec | using environments t-openoffice.tex
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file Versuch.top
TeXExec | using randomseed 1110
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en
TeXExec | unable to fix backend map path
TeXExec | running: luatools --fmt=cont-en Versuch.odt

LuaTools | using format
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en.fmt
LuaTools | no luc/lua with
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en
LuaTools |
LuaTools | runtime: 0.002 seconds
TeXUtil | unable to locate Versuch.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 0.095957
TeXExec | option 'verbose' is set to 'true'
TeXExec | option 'environments' is set to 't-openoffice.tex'
TeXExec | option 'randomseed' is set to '1110'
TeXExec | option 'filename' is set to 'Versuch.odt'
TeXExec | option 'ctxfile' is set to 'COOnTeXML.ctx'
TeXExec | option 'mainlanguage' is set to 'standard'
TeXExec | option 'bodyfont' is set to 'standard'
TeXExec | option 'language' is set to 'standard'
TeXExec | option 'engine' is set to 'standard'
TeXExec | option 'distribution' is set to 'web2c'
TeXExec | option 'texformats' is set to 'standard'
TeXExec | option 'mpsformats' is set to 'metafun'
TeXExec | option 'progname' is set to 'standard'
TeXExec | option 'interface' is set to 'en'
TeXExec | option 'runs' is set to '8'
TeXExec | option 'backend' is set to 'standard'


___
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] DEB of Context 2008-01-28 anybody?

2008-02-13 Thread Johannes Graumann
Taco Hoekwater wrote:

 
 
 Johannes Graumann wrote:
 
 LuaTools | no luc/lua with
 name
 ///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en
 
 It looks like there is no cont-en.luc nor cont-en.lua in
 /home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats
 
 This is usually because you don't have a texluac command installed.
 (a copy or symlink of luatex under the name texluac)
I have installed the minimals.

#which texluac
/home/balin/context/tex/texmf-linux-64/bin/texluac
# texluac
Missing script file

How to fix this?

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-13 Thread Johannes Graumann
Taco Hoekwater wrote:

 Johannes Graumann wrote:
 Taco Hoekwater wrote:
 

 Johannes Graumann wrote:
 LuaTools | no luc/lua with
 name
 ///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en
 It looks like there is no cont-en.luc nor cont-en.lua in
 /home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats

 This is usually because you don't have a texluac command installed.
 (a copy or symlink of luatex under the name texluac)
 I have installed the minimals.
 
 #which texluac
 /home/balin/context/tex/texmf-linux-64/bin/texluac
 # texluac
 Missing script file
 
 That's ok. Apparently, something else went wrong during --make.
 What is the output of
 
# texexec --make --luatex en

Thanks for the hint. Different error now: how to remedy 
'LuaTools | running command:
luatex --ini --lua=cont-en.luc 
/home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex
\\dump
(/home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex
! I can't find file `context.tex'.
l.16 \input context.tex'

?

Thans, Joh

texexec --make --luatex en
TeXExec | using search method 'kpsewhich'
TeXExec | updating file database
mktexlsr: Updating /home/balin/context/tex/texmf/ls-R...
mktexlsr: Updating /home/balin/context/tex/texmf-context/ls-R...
mktexlsr: Done.

LuaTools | version 1.1.1 - 2006+ - PRAGMA ADE / CONTEXT

LuaTools | skipping /home/balin/context/tex/texmf-local/web2c/texmf.cnf
LuaTools | loading /home/balin/context/tex/texmf/web2c/texmf.cnf
LuaTools | preparing configuration
in 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/593b6ceb5e49efe1d389dd93d46b558c.tma
LuaTools | saving configuration
in 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/593b6ceb5e49efe1d389dd93d46b558c.tma
LuaTools | compiling configuration
to 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/593b6ceb5e49efe1d389dd93d46b558c.tmc
LuaTools | locating list of /home/balin/context/tex//texmf-project
LuaTools | locating list of /home/balin/context/tex//texmf-fonts
LuaTools | locating list of /home/balin/context/tex//texmf-local
LuaTools | locating list of /home/balin/context/tex//texmf-context
LuaTools | locating list of /home/balin/context/tex//texmf-extra
LuaTools | locating list of /home/balin/context/tex//texmf
LuaTools | scanning path /home/balin/context/tex//texmf-context
LuaTools | 1313 files found on 126 directories with 0 uppercase remappings
LuaTools | scanning path /home/balin/context/tex//texmf
LuaTools | 3122 files found on 93 directories with 60 uppercase remappings
LuaTools | preparing files
in 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/ea2adb157b25b207164bd3f25119b32e.tma
LuaTools | saving files
in 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/ea2adb157b25b207164bd3f25119b32e.tma
LuaTools | compiling files
to 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/ea2adb157b25b207164bd3f25119b32e.tmc
LuaTools | preparing files
in 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/27d266422110caa5a96fdc4e30f9d3ca.tma
LuaTools | saving files
in 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/27d266422110caa5a96fdc4e30f9d3ca.tma
LuaTools | compiling files
to 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/trees/27d266422110caa5a96fdc4e30f9d3ca.tmc
LuaTools |
LuaTools | runtime: 0.105 seconds
TeXExec | using tex engine luatex
TeXExec | using tex format
path /home/balin/context/tex/texmf-context/web2c/luatex
TeXExec | generating tex format cont-en

LuaTools | creating initialization file cont-en
LuaTools | using library
path : /home/balin/context/tex//texmf-context/tex/context/base
LuaTools | using lua libraries: l-string.lua l-lpeg.lua l-table.lua
l-boolean.lua l-number.lua l-set.lua l-unicode.lua l-md5.lua l-os.lua
l-io.lua l-file.lua l-dir.lua l-utils.lua l-tex.lua luat-lib.lua
luat-inp.lua luat-tmp.lua luat-zip.lua luat-tex.lua
LuaTools | using compiled initialization file cont-en.luc
LuaTools | using lua initialization file cont-en.luc
LuaTools | running command:
luatex --ini --lua=cont-en.luc 
/home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex
\\dump
(/home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex
! I can't find file `context.tex'.
l.16 \input context.tex

Please type another input file name:

___
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] DEB of Context 2008-01-28 anybody?

2008-02-13 Thread Johannes Graumann
Mojca Miklavec wrote:
 but running setuptex means: [dot] setuptex. Else it has no effect.
 
 Here's the whole procedure once more:
 
 rsync -av
 rsync://contextgarden.net/minimals/setup/osx-intel/first-setup.sh .
 ./first-setup.sh
 # then, you might need to skip a bunch of currently broken greek patterns)
 cd tex
 # note the dot !!!
 . setuptex
 # generate luatex format - only because its autogeneration
 # is broken at the moment
 texexec --make --lua en

This did it and made everything in this gigantoine thread work ... thanks!
How do I do a upgrade, rather than a fresh install?
Running ./first-setup.sh again?

Thanks!

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-13 Thread Johannes Graumann
Johannes Graumann wrote:
 Thanks for the hint. Different error now: how to remedy
 'LuaTools | running command:
 luatex --ini --lua=cont-en.luc
 /home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex
 \\dump
 (/home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex ! I
 can't find file `context.tex'. l.16 \input context.tex'
 

It's there ...

find -iname context.tex
./context/tex/texmf-context/tex/context/base/context.tex

.but not found?

Joh


___
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] DEB of Context 2008-01-28 anybody?

2008-02-13 Thread Johannes Graumann
Mojca Miklavec wrote:

 On Feb 13, 2008 3:43 PM, Johannes Graumann wrote:
 Johannes Graumann wrote:
  Thanks for the hint. Different error now: how to remedy
  'LuaTools | running command:
  luatex --ini --lua=cont-en.luc
  /home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex
  \\dump
  (/home/balin/context/tex//texmf-context/tex/context/base/cont-en.tex !
  I can't find file `context.tex'. l.16 \input context.tex'
 

 It's there ...

 find -iname context.tex
 ./context/tex/texmf-context/tex/context/base/context.tex

 .but not found?
 
 Hmmm ... I have thought that this only happens on windows (as it works
 fine here). The file name database is apparently broken (see double
 '//'), but no idea why. And no idea why it doesn't work on your
 computer whili it does on mine.
 
 How did you call setuptex? What does
export | grep TEX
 return?
Nothing, whether I run setuptex or no ... I must be missing something in
setting up the minimal ...

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-12 Thread Johannes Graumann
I guess this means my attempt to setup the minimal failed miserably. I'll
have to try again.

Joh

Hans Hagen wrote:

 here are my logs
 
 context --ctx=COOnTeXML.ctx Versuch.odt  1.log
 texexec --ctx=COOnTeXML.ctx Versuch.odt  2.log
 
 (context == mtxrun --script context which is the future way to go with
 luatex)
 
 -
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] DEB of Context 2008-01-28 anybody?

2008-02-12 Thread Johannes Graumann
My version is:
texexec --check
TeXExec | current distribution: web2c
TeXExec | context source date: 2008.02.09 01:29
TeXExec | format
path: . /home/balin/context/tex/texmf-project/web2c/unsetengine 
/home/balin/context/tex/texmf-fonts/web2c/unsetengine 
/home/balin/context/tex/texmf-local/web2c/unsetengine 
/home/balin/context/tex/texmf-context/web2c/unsetengine 
/home/balin/context/tex/texmf-extra/web2c/unsetengine 
/home/balin/context/tex/texmf/web2c/unsetengine 
/home/balin/context/tex/texmf-project/web2c 
/home/balin/context/tex/texmf-fonts/web2c 
/home/balin/context/tex/texmf-local/web2c 
/home/balin/context/tex/texmf-context/web2c 
/home/balin/context/tex/texmf-extra/web2c /home/balin/context/tex/texmf/web2c
TeXExec | start of analysis
TeXExec | end of analysis
TeXExec | 
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.4 - 2004/2008 - PRAGMA ADE

There is no log (no matter whether I use purge or not)!

Here's the output of the command line ...

 texexec --ctx=COOnTeXML.ctx Versuch.odt
TeXExec | processing document 'Versuch.odt'
TeXExec | loading ctx file COOnTeXML.ctx
TeXExec | preprocessing: open office processing
TeXExec | using flags purge texengine=luatex interface=en
TeXExec | using environments t-openoffice.tex
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file Versuch.top
TeXExec | using randomseed 506
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

LuaTools | using format
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en.fmt
LuaTools | no luc/lua with
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en
LuaTools | 
LuaTools | runtime: 0.002 seconds
TeXUtil | unable to locate Versuch.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | TeX run 2
TeXExec | writing option file Versuch.top
TeXExec | using randomseed 506
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

LuaTools | using format
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en.fmt
LuaTools | no luc/lua with
name 
///home/balin/luatex-cache/context/df978da3a6143ec9969278aafe7c9243/formats/cont-en
LuaTools | 
LuaTools | runtime: 0.002 seconds
TeXUtil | unable to locate Versuch.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 0
TeXUtil | temporary files: 0
TeXUtil | commands: 0
TeXUtil | programs: 0
TeXUtil | tuo file saved
CtxTools | purging temporary files : Versuch.odt
CtxTools | checking files that match 'Versuch-*.*'
CtxTools | checking files that match 'Versuch.*'
CtxTools | removed : Versuch.tmp
CtxTools | removed : Versuch.tuo
CtxTools | removed files : 2
CtxTools | kept files : 0
CtxTools | persistent files : 0
CtxTools | reclaimed bytes : 384
TeXExec | runtime: 0.225277

___
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] DEB of Context 2008-01-28 anybody?

2008-02-12 Thread Johannes Graumann
I'm just to stupid to get this done ... can I ask for one more glance at my
combined folly? Why doesn't this compile?

texexec --ctx=COOnTeXML.ctx Versuch.odt

Joh

Hans Hagen wrote:

 the cleanest way is:
 
 \startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
 \stopxmlsetups
 
 \xmlregistersetup{xml:mysetups}
 
 \startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
 \stopxmlsetups
 
 \usezipfile[\inputfilename]
 
 \starttext
  \xmlprocess{main}{*/content.xml}{}
 \stoptext
 
 and then:
 
 texexec --lua --purge --environment=yourstyle.tex Versuch.odt
 
 (you need to add the .tex, there is a buglet)
 
 however, more fun is:
 
 texexec --ctx=openoffice Versuch.odt
 
 with (someplace in your tree) openoffice.ctx
 
 ?xml version='1.0' standalone='yes'?
 
 ctx:job
  ctx:messageopen office processing/ctx:message
  ctx:preprocess/
  ctx:flags
  ctx:flagpurge/ctx:flag
  ctx:flagtexengine=luatex/ctx:flag
  ctx:flaginterface=en/ctx:flag
  /ctx:flags
  ctx:process
  ctx:resources
  ctx:environmentt-openoffice.tex/ctx:environment
  /ctx:resources
  /ctx:process
  ctx:postprocess/
 /ctx:job
 
 and t-openoffice.tex as style
 
 
 
 
 -
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

___

?xml version='1.0' standalone='yes'?

ctx:job
 ctx:messageopen office processing/ctx:message
 ctx:preprocess/
 ctx:flags
 ctx:flagpurge/ctx:flag
 ctx:flagtexengine=luatex/ctx:flag
 ctx:flaginterface=en/ctx:flag
 /ctx:flags
 ctx:process
 ctx:resources
 ctx:environmentt-openoffice.tex/ctx:environment
 /ctx:resources
 /ctx:process
 ctx:postprocess/
/ctx:job

\startenvironment t-openoffice.tex

\startxmlsetups xml:COOnTeXML
 \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups

\xmlregistersetup{xml:COOnTeXML}

\startxmlsetups xml:paragraph
 \xmlflush{#1}\endgraf
\stopxmlsetups

\usezipfile[\inputfilename]

\starttext
 \xmlprocess{main}{*/content.xml}{}
\stoptext

\stopenvironment



Versuch.odt
Description: application/vnd.oasis.opendocument.text
___
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] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
Hans Hagen wrote:

 Johannes Graumann wrote:
 
 
 \starttext
 %  \xmlprocess{main}{zip::\env{odt}::content.xml}{}
   \xmlprocess{main}{\usezipfile[\env{odt}][content.xml]}{}
 \stoptext
 
 \usezipfile[\env{odt}]
 
 \xmlprocess{main}{content.xml} or \xmlprocess{main}{*/content.xml}
 
 you can also play with
 
 \xmlprocess{main}{zip:///\env{odt}?name=content.xml}
 
 (untested of course)

Hans, no matter how I turn this, no pdf is ever produced ... versions
appended below. What else might be going wrong?

Joh

texmfstart texexec --check
TeXExec | current distribution: web2c
TeXExec | context source date: 2008.02.09 01:29
TeXExec | format
path: . /home/balin/context/tex/texmf-project/web2c/unsetengine 
/home/balin/context/tex/texmf-fonts/web2c/unsetengine 
/home/balin/context/tex/texmf-local/web2c/unsetengine 
/home/balin/context/tex/texmf-context/web2c/unsetengine 
/home/balin/context/tex/texmf-extra/web2c/unsetengine 
/home/balin/context/tex/texmf/web2c/unsetengine 
/home/balin/context/tex/texmf-project/web2c 
/home/balin/context/tex/texmf-fonts/web2c 
/home/balin/context/tex/texmf-local/web2c 
/home/balin/context/tex/texmf-context/web2c 
/home/balin/context/tex/texmf-extra/web2c /home/balin/context/tex/texmf/web2c
TeXExec | start of analysis
TeXExec | end of analysis
TeXExec | 
TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD
TeXExec | TeXUtil   | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD
TeXExec | CtxTools | version 1.3.4 - 2004/2008 - PRAGMA ADE

___
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] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
Johannes Graumann wrote:

 I'll try tonight. Thanks, Joh
 
 Hans Hagen wrote:
 
 Johannes Graumann wrote:
 Hans Hagen wrote:
 
 i posted something about this a few weeks ago ... thing slike
 registering zip files, reading from zip:// etc
 Are you referring to this:

http://archive.contextgarden.net/message/20080131.07.9fb1c327.en.html
 ?
 
 yes

Hans, I do not get this to work.

My *.tex file looks like so:

% texmfstart texexec --lua COOnTeXML.tex --arg=odt=someotherfile.zip
\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
%  \xmlprocess{main}{zip::\env{odt}::content.xml}{}
  \xmlprocess{main}{\usezipfile[\env{odt}][content.xml]}{}
\stoptext

and is being invoked like so:

texmfstart
texexec --lua --purge --arg=odt=versuch.odt --result=versuch.odt.pdf
COOnTeXML.tex

Nothing happens ... can you spot the error?

Thanks, Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
Thanks for your time.

Hans Hagen wrote:

 you'll have to make me a test file then
Attached.

As described earlier this is supposed to compile like so:

texmfstart
texexec --lua --purge --arg=odt=Versuch.odt --result=Versuch.odt.pdf
COOnTeXML.tex

where COOnTeXML reads:

\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
  \usezipfile[\env{odt}]
  \xmlprocess{main}{content.xml}
\stoptext


Versuch.odt
Description: application/vnd.oasis.opendocument.text
___
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] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
Hans Hagen wrote:

 i posted something about this a few weeks ago ... thing slike
 registering zip files, reading from zip:// etc
Are you referring to this:
http://archive.contextgarden.net/message/20080131.07.9fb1c327.en.html
?

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
Thank you so much for your time and help! I'll look at this tonight. What
xml editor are you using?

Joh

Hans Hagen wrote:

 the cleanest way is:
 
 \startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
 \stopxmlsetups
 
 \xmlregistersetup{xml:mysetups}
 
 \startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
 \stopxmlsetups
 
 \usezipfile[\inputfilename]
 
 \starttext
  \xmlprocess{main}{*/content.xml}{}
 \stoptext
 
 and then:
 
 texexec --lua --purge --environment=yourstyle.tex Versuch.odt
 
 (you need to add the .tex, there is a buglet)
 
 however, more fun is:
 
 texexec --ctx=openoffice Versuch.odt
 
 with (someplace in your tree) openoffice.ctx
 
 ?xml version='1.0' standalone='yes'?
 
 ctx:job
  ctx:messageopen office processing/ctx:message
  ctx:preprocess/
  ctx:flags
  ctx:flagpurge/ctx:flag
  ctx:flagtexengine=luatex/ctx:flag
  ctx:flaginterface=en/ctx:flag
  /ctx:flags
  ctx:process
  ctx:resources
  ctx:environmentt-openoffice.tex/ctx:environment
  /ctx:resources
  /ctx:process
  ctx:postprocess/
 /ctx:job
 
 and t-openoffice.tex as style
 
 
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

___


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

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


Re: [NTG-context] DEB of Context 2008-01-28 anybody?

2008-02-11 Thread Johannes Graumann
I'll try tonight. Thanks, Joh

Hans Hagen wrote:

 Johannes Graumann wrote:
 Hans Hagen wrote:
 
 i posted something about this a few weeks ago ... thing slike
 registering zip files, reading from zip:// etc
 Are you referring to this:
 http://archive.contextgarden.net/message/20080131.07.9fb1c327.en.html
 ?
 
 yes
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

___


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

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


Re: [NTG-context] DEB of Context 2008-01-28 anybody?

2008-02-09 Thread Johannes Graumann
Joel C. Salomon wrote:

 On Feb 6, 2008 11:35 AM, Johannes Graumann [EMAIL PROTECTED]
 wrote:
 Is there a *.deb release for the current context version, or what are the
 plans for it?
 
 Norbert Preining is on vacation, so I'm guessing no.  The most recent
 version he's got on his site
 (http://people.debian.org/~preining/TeX/context/) is 2008.01.02.
That's unfortunate (for me - not for him ;0) ...

 I'm hesitant to go with a distribution independent context install ...
 
 Do you absolutely, positively need the most recent version, or did you
 want to test it?
I do need the new version which is supposed to support zip-file reading in
XML mode ...

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-09 Thread Johannes Graumann
Wolfgang Schuster wrote:

 ctxtools --updatecontent
Thanks for the hint, but that doesn't seem to work ...

# ctxtools --updatecontext 
CtxTools 
updating /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive
CtxTools | unable to change
to /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive

I do not understand enough of the ctxtools.rb script to figure out what
might be going on in the debian case ...

Joh


___
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] DEB of Context 2008-01-28 anybody?

2008-02-09 Thread Johannes Graumann
Wolfgang Schuster wrote:

 On Feb 9, 2008 4:09 PM, Johannes Graumann [EMAIL PROTECTED]
 wrote:
 Wolfgang Schuster wrote:

  ctxtools --updatecontent
 Thanks for the hint, but that doesn't seem to work ...

 # ctxtools --updatecontext
 CtxTools
 updating
 /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive
 CtxTools | unable to change to
 /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive

 I do not understand enough of the ctxtools.rb script to figure out what
 might be going on in the debian case ...
 
 I have no idea about TeX installation on Linux but you could try to
 download the zip from Hans side and unzip it in your local TeX directory.
I had local installs before. It's exactly what I want to prevent and ask for
a Deb for ...

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-09 Thread Johannes Graumann
Aditya Mahajan wrote:

 # ctxtools --updatecontext
 CtxTools
 updating
 /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive
 CtxTools | unable to change to
 /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive

 I do not understand enough of the ctxtools.rb script to figure out what
 might be going on in the debian case ...
 
 You need to run
 
   sudo ctxtools --updatecontext

The attempt documented above was run as root. So that's not it. Problem is,
I suppose that the command assumes a local pre-existing tree, which I don't
have.

Joh



___
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] DEB of Context 2008-01-28 anybody?

2008-02-09 Thread Johannes Graumann
Wolfgang Schuster wrote:

 On Feb 9, 2008 4:09 PM, Johannes Graumann [EMAIL PROTECTED]
 wrote:
 Wolfgang Schuster wrote:

  ctxtools --updatecontent
 Thanks for the hint, but that doesn't seem to work ...

 # ctxtools --updatecontext
 CtxTools
 updating
 /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive
 CtxTools | unable to change to
 /etc/texmf:/var/lib/texmf:/usr/share/texmf:/usr/share/texmf-texlive

 I do not understand enough of the ctxtools.rb script to figure out what
 might be going on in the debian case ...

Well, well ... I've given up my resistance, deinstalled the debian packages
and got http://minimals.contextgarden.net/setup/context-setup-linux-64.zip.
I extracted it, run 'first-setup.sh' and 'tex/setuptex' from it, as well as
added '~/context/tex/texmf-linux-64/bin' to my path.
Problem is: the error remains the same as above:

#ctxtools --updatecontext
CtxTools |
updating /home/balin/context/tex/texmf-context:/home/balin/context/tex/texmf
CtxTools | unable to change
to /home/balin/context/tex/texmf-context:/home/balin/context/tex/texmf

What is it that I'm doing wrong?

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-09 Thread Johannes Graumann
Mojca Miklavec wrote:
 The reported error is not your fault (might be a
 did-not-consider-all-the-border-cases-bug in ctxtools), but if you
 have used the minimals from the garden, you already have the latest
 version of ConTeXt and there's no need to update it. The minimals are
 created exactly for that reason - to be able to update with rsync
 instead of having to download everything when only a few lines change.
 (A command-line for updating will be provided once things stabilize.)
Thanks for the heads up ...

 The only problem is that I don't have the luaTeX binary for linux-64
 yet (usually it's Taco the one who submits it, but you may as well
 checkout svn://scm.foundry.supelec.fr/svn/luatex, run the build script
 and send me the binary).
Let's see whether I have to go there ...

 Does the rest (apart from update) work as expected?
No, that's what I am fretting about. Hans (and subsequently Wolfgang) stated
that zip processing with this newest version should also work from within
XML-mode of Context, something I'm very anxious to have for this pet
project of mine of mapping ooffice xml into Context ...
Does this depend on the newest luatex version?

Joh

___
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] DEB of Context 2008-01-28 anybody?

2008-02-06 Thread Johannes Graumann
Hi all,

Is there a *.deb release for the current context version, or what are the
plans for it? I'm hesitant to go with a distribution independent context
install ...

Joh

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

2008-01-29 Thread Johannes Graumann
Hans Hagen wrote:

 Hi,
 
 i uploaded a fix for the reported problems; the uploaded version also
 uses lua for locating files that have to be included; this should work
 with the mkiv xml too (i forgot who asked for that but i needed it
 myself too)

Does this include zip file reading while using XML mode?

Joh

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

2008-01-29 Thread Johannes Graumann
Hans Hagen wrote:

 Hi,
 
 i uploaded a fix for the reported problems; the uploaded version also
 uses lua for locating files that have to be included; this should work
 with the mkiv xml too (i forgot who asked for that but i needed it
 myself too)

Hello Norbert,

Can I help lifting this into a deb asap?

Joh

___
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] last version of context 2007

2008-01-06 Thread Johannes Graumann
Are there any advances regarding reading zipped xml input via luatex?

Thanks, Joh

Hans Hagen wrote:

 Hi,
 
 At 31/12/2007 we uploaded an end-of-year release ..
 
 http://wiki.contextgarden.net/Context_2007.12.31
 
 
 we could not update the wiki in time, so here is a delayed
 
 happy new year
 
 
 
 Taco  Hans
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

___


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

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


Re: [NTG-context] luatex and context for Debian

2007-12-24 Thread Johannes Graumann
Great! amd64 will be much appreciated ... where to get your gpg key from?

Frohes Fest!

Joh

Norbert Preining wrote:

 Dear all,
 
 I have updated luatex and context so currently I can even run MkIV
 documents ;-)
 
 Debian/sid users should have them already.
 
 Debian/etch users should get luatex 0.20.2-1 from
 deb http://people.debian.org/~preining/TeX/ luatex/
 deb-src http://people.debian.org/~preining/TeX/ luatex/
 Currently I have only i386 packages, but will build amd64 for etch soon.
 And maybe powerpc builds can be organized.
 
 For context 2007.12.18-1 please add
 deb http://people.debian.org/~preining/TeX/ context/
 deb-src http://people.debian.org/~preining/TeX/ context/
 
 Just for completeness, it is good to have:
 texlive:
 deb http://people.debian.org/~preining/TeX/ tl2007/
 deb-src http://people.debian.org/~preining/TeX/ src/
 
 latin modern:
 deb http://people.debian.org/~preining/TeX/ lmodern/
 deb-src http://people.debian.org/~preining/TeX/ lmodern/
 
 
 For Ubuntu users of the development version (i.e., that tracking sid
 more or less) luatex can be found at
 deb http://people.debian.org/~preining/TeX/ luatex-sid/
 deb-src http://people.debian.org/~preining/TeX/ luatex-sid/
 
 Please comment if you find something missing.
 
 Norbert
 
 ---
 Dr. Norbert Preining [EMAIL PROTECTED]Vienna University of
 Technology
 Debian Developer [EMAIL PROTECTED] Debian TeX
 Group
 gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5
 B094
 ---
 HASSOP (n.) The pocket down the back of an armchair used for storing
 two-shilling bits and pieces of Lego.
 --- Douglas Adams, The Meaning of Liff


___
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] MKIV and XML documentation

2007-12-23 Thread Johannes Graumann
Just trying to keep this on the radar ... ;0)

Merry Chrismas!

Joh

Hans Hagen wrote:

 Wolfgang Schuster wrote:
 
 Looks like ConTeXt is not able to open zip files in xml mode, you should
 Hans for this feature.
 
 i probably have to call a different function (locator); i'll have a look
 at it (not today, no time)
 
 Hans
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

___


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

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


Re: [NTG-context] MKIV and XML documentation

2007-12-19 Thread Johannes Graumann
Thanks Hans! Please keep me informed ... I will bug you then and again ;0)

Joh

Hans Hagen wrote:

 Wolfgang Schuster wrote:
 
 Looks like ConTeXt is not able to open zip files in xml mode, you should
 Hans for this feature.
 
 i probably have to call a different function (locator); i'll have a look
 at it (not today, no time)
 
 Hans
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

___


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

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


Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Johannes Graumann
Thanks! I remembered this, but had lost track of where to find it ...
Can someone please have a quick look at the following:

\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
  \processXMLfilegrouped{zip::\env{odt}::content.xml}
\stoptext

Why do I get nothing but a tuo file when processing like so:
texmfstart \
texexec --lua --purge --arg=odt=Versuch.odt --result=Versuch.odt.pdf \
COOnTeXML.tex
where the code above is in COOnTeXML.tex and Versuch.odt contains a text:p
tag ...

Thanks, Joh

Hans Hagen wrote:

 Johannes Graumann wrote:
 Dear all,
 
 What is currently the best source for documentation on mark iv's xml
 capabilities?
 
 there is a chapter in mk.pdf; next year i'll write a manual (and i'll
 probably give a tutorial at the context conference)
 
 Hans
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -

___
 If your question is of interest to others as well, please add an entry to
 the Wiki!
 
 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

___


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

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


Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Johannes Graumann
Wolfgang Schuster wrote:

 2007/12/18, Johannes Graumann [EMAIL PROTECTED]:
 Thanks! I remembered this, but had lost track of where to find it ...
 Can someone please have a quick look at the following:

 \startxmlsetups xml:mysetups
   \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
 \stopxmlsetups

 \xmlregistersetup{xml:mysetups}

 \startxmlsetups xml:paragraph
   \xmlflush{#1}\endgraf
 \stopxmlsetups

 \starttext
   \processXMLfilegrouped{zip::\env{odt}::content.xml}
 \stoptext
 
 replace this with
 
 \starttext
 \xmlprocess{main}{zip::\env{odt}::content.xml}{}
 \stoptext
 
 \processXMLfilegrouped did not work in combination with xmlregistersetup
 
Thanks for the hint, but

\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
  \xmlprocess{main}{zip::\env{odt}::content.xml}{}
\stoptext

doesn't give anything different than what I was trying before ...

Joh

___
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] MKIV and XML documentation

2007-12-18 Thread Johannes Graumann
Wolfgang Schuster wrote:

 2007/12/18, Johannes Graumann [EMAIL PROTECTED]:
 Wolfgang Schuster wrote:

  2007/12/18, Johannes Graumann [EMAIL PROTECTED]:
  Thanks! I remembered this, but had lost track of where to find it ...
  Can someone please have a quick look at the following:
 
  \startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
  \stopxmlsetups
 
  \xmlregistersetup{xml:mysetups}
 
  \startxmlsetups xml:paragraph
\xmlflush{#1}\endgraf
  \stopxmlsetups
 
  \starttext
\processXMLfilegrouped{zip::\env{odt}::content.xml}
  \stoptext
 
  replace this with
 
  \starttext
  \xmlprocess{main}{zip::\env{odt}::content.xml}{}
  \stoptext
 
  \processXMLfilegrouped did not work in combination with
  xmlregistersetup
 
 Thanks for the hint, but

 \startxmlsetups xml:mysetups
   \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
 \stopxmlsetups

 \xmlregistersetup{xml:mysetups}

 \startxmlsetups xml:paragraph
   \xmlflush{#1}\endgraf
 \stopxmlsetups

 \starttext
   \xmlprocess{main}{zip::\env{odt}::content.xml}{}
 \stoptext

 doesn't give anything different than what I was trying before ...
 
 Can you send a real example (Openoffice file plus TeX file).

Attached. Thanks for your time. Joh
% texmfstart texexec --lua COOnTeXML.tex --arg=odt=someotherfile.zip
\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:paragraph
  \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
  \xmlprocess{main}{zip::\env{odt}::content.xml}{}
\stoptext


Versuch.odt
Description: application/vnd.oasis.opendocument.text
___
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] MKIV and XML documentation

2007-12-17 Thread Johannes Graumann
Dear all,

What is currently the best source for documentation on mark iv's xml
capabilities?

Thanks, Joh


___
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] Mark IV and pre-processing input file processing.

2007-11-12 Thread Johannes Graumann
Wolfgang Schuster wrote:

 I know this is nearly the same as a openoffice document (also a zip
 archive with many files) but why not.
This is in fact what I'm trying to setup: a Mark IV mapping environment to
typeset odt's (mainly the content.xml part) by just calling ConTeXt on
the odt.
I'm in an academic environment wher Word dominates and the change tracking
features of a WYSIWYG-moloch like Word or OOWriter are heavily used. This
direct mapping strategy seems to me the most straight forward way of living
with that tradition/necessity and still achieve nice typesetting. I read
about The odt-markdown-context route on a recent thread, but my solution
(if it ever comes about) seems theoretically more robust - aside from
catering to my manic tinkerism ...

Joh

___
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] Mark IV and pre-processing input file processing.

2007-11-06 Thread Johannes Graumann
Hello,

I started playing around with ConTeXt/LuaTeX and have a question here wich
is related to a pet project of mine: is it possible to tell Mark IV
something like this
 texmfstart texexec --lua --environments=myfile.tex someotherfile.zip
where 'myfile.tex' should contain a lua routine which would
unzip 'someotherfile.zip' to /tmp and call LuaConTeXt on a file actually
contained in the archive (among others)?

While I'm sure this can be done in Lua, I wonder whether somebody can point
me at how to access the names of files to be processed
('someotherfile.zip') from the running process ...

Not sure whether I can make myself understood here ... please ask if I'm not
making sense,

Joh

___
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] Mark IV and pre-processing input file processing.

2007-11-06 Thread Johannes Graumann
Wolfgang Schuster wrote:

 2007/11/6, Johannes Graumann [EMAIL PROTECTED]:

 Hello,

 I started playing around with ConTeXt/LuaTeX and have a question here
 wich is related to a pet project of mine: is it possible to tell Mark IV
 something like this
  texmfstart texexec --lua --environments=myfile.tex someotherfile.zip
 where 'myfile.tex' should contain a lua routine which would
 unzip 'someotherfile.zip' to /tmp and call LuaConTeXt on a file actually
 contained in the archive (among others)?

 While I'm sure this can be done in Lua, I wonder whether somebody can
 point
 me at how to access the names of files to be processed
 ('someotherfile.zip') from the running process ...

 Not sure whether I can make myself understood here ... please ask if I'm
 not
 making sense,

 Joh
 
 
 Take a look into Hans Mark manual.
 
 http://pragma-ade.nl/general/manuals/mk.pdf

Thanks for that! I found the zipping reference and got it to work.
Returning now to the example above (texmfstart
texexec --lua --environments=myfile.tex someotherfile.zip), what I would
like to do is using lua in myfile.tex to extract the filename to be texed
(someotherfile.zip) and rewrite it on the fly to a zip-archive content
along the lines of
\input zip::someotherfile.zip::somezipcontent.tex

Is that possible? texmfstart texexec --verbose produces something like
TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access
this during processing using lua?

Thanks for any insights,

Joh


___
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] Mark IV and pre-processing input file processing.

2007-11-06 Thread Johannes Graumann
Hans Hagen wrote:

 Thanks for that! I found the zipping reference and got it to work.
 Returning now to the example above (texmfstart
 texexec --lua --environments=myfile.tex someotherfile.zip), what I would
 like to do is using lua in myfile.tex to extract the filename to be
 texed (someotherfile.zip) and rewrite it on the fly to a zip-archive
 content along the lines of
 \input zip::someotherfile.zip::somezipcontent.tex
 
 Is that possible? texmfstart texexec --verbose produces something like
 TeXExec | option 'filename' is set to 'someotherfile.tex', so how to
 access this during processing using lua?
 
 texmfstart texexec --lua myfile.tex --arg=name=someotherfile.zip
 
 mak emyfile.tex your main tex file (use --global if needed) and then use
 \env{name}

Thanks Hans! Not as elegant as I had hoped, but it does what I want when I
use \input zip::\env{name}::somezipcontent.tex in myfile.tex ... 
Now is there any way to define the output-filename from within myfile.tex?
This would be analogous to texexec's '--result' option, but from within the
texfile to change the output-name with the help of the newly
defined '\env{name}' - in the example to '\env{name}.pdf'.

Thanks, Joh



___
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] Booktabs equivalent in Context

2007-08-08 Thread Johannes Graumann
Hello,

I'm one of the booktab-equivalent requesters and in my case the request is
motivated by the (sadly German-only)
http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf
Please compare examples on pages 4 and 5 for the cmidrule functionality I'm
missing in ConTeXt. The clarity you can give classy looking tables with
trimmed cmidrules is even more evident in the example on page 9. There's
lots of more use of this in the document, but it gets too esoteric to be
easily grasped quickly (IMHO).

Joh

Aditya Mahajan wrote:

 Hi,
 
 The question of how to get tables equivalent to latex's booktabs
 package has been discussed quite a few times in the past. Booktabs
 package provides (top|mid|bottom)rule commands and a cmidrule command.
 The top and bottom rules are 0.08em thick, the midrule is 0.05em thick,
 and the cmidrules are 0.03em thick. The cmidrules do not extend beyond
 the columns edge. Here is an example of how to do something similar
 using tables in context http://wiki.contextgarden.net/Table#Booktabs.
 
 To me this looks exactly similar to the example in the booktabs manual.
 Am I missing something, or is it fair to say that context can generate
 booktabs like tables?
 
 Patrick, any commnets?
 
 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] The ConTeXt Companion

2007-04-26 Thread Johannes Graumann
Stable users that is.

Joh (on unstable, which even has a packaged LuaTeX snapshot - thanks guys!)

Martin Schröder wrote:

 2007/4/14, Idris Samawi Hamid [EMAIL PROTECTED]:
 As for MKII/pdfTeX1, it makes no sense making a book for a stalled
 branch;
 
 debian users will continue to use pdfTeX1 for at least 10 years, I fear.
 :-)
 
 Best
Martin

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


[NTG-context] XML compilation trouble

2007-03-22 Thread Johannes Graumann
Hello,

A document that compiled fine yesterday with 'texmfstart
texexec --environment Labbook.tex Labbook.xml' today gives me this at the
end of the log running by:

xml : loading module ent
(/usr/share/texmf/tex/context/base/xtag-ent.tex))
*

Any pointers as to what I'm screwing up? If I hit Ctrl-C and x, the process
produces all text elements of the XML document pasted together ...

Thanks for any help, Joh

texmfstart texexec --environment Labbook.tex Labbook.xml
TeXExec | processing document 'Labbook.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file Labbook.top
TeXExec | using randomseed 937
TeXExec | tex engine: pdftex
TeXExec | tex format: cont-en
This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5)
 (/usr/share/texmf/web2c/natural.tcx)
entering extended mode
(./Labbook.tex

ConTeXt  ver: 2007.01.23 13:32 MKII  fmt: 2007.2.16  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/share/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3
de-texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3
fr-ec:ec-6-2:3
 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3
it-texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3
nl-ec:ec-
13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3
sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : Labbook.top loaded
(./Labbook.top
specials: loading definition file tpd
(/usr/share/texmf/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)

Re: [NTG-context] XML compilation trouble

2007-03-22 Thread Johannes Graumann
Bang! Dumm... shot himself ... last words: thanks!

Joh

Taco Hoekwater wrote:

 
 
 Johannes Graumann wrote:
 Hello,
 
 A document that compiled fine yesterday with 'texmfstart
 texexec --environment Labbook.tex Labbook.xml' today gives me this at the
 
 Have you tried --environment=Labbook.tex ?
 
 Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Long and short captions

2007-01-23 Thread Johannes Graumann
Asked the same thing a while ago and Hans put 'selectors' in the ConTeXt
core as an answer. See the end of
http://www.ntg.nl/pipermail/ntg-context/2006/018204.html for an example.
You shouldn't need any of the macro code any more ...

HTH, Joh

Robin Kirkham wrote:

 Hi again,
 
 Is there a way in ConTeXt to have long and short versions of a
 figure caption, as one can in LaTeX? The long caption is placed
 with the figure, the short one for the list of figures.
 
 Thanks,
 
 Robin


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Unicode Character Problem

2007-01-16 Thread Johannes Graumann
Mojca Miklavec wrote:

 I'm having trouble defining a new unicode character:

 'versuch.tex' reads:
   \defineXMLentity[\#9633]  {\symbol[8]}
 
 It should be
  \defineXMLentity[9633]  {\symbol[8]}
That's not right. I verify my xml with kxmleditor and '#9633;' is accepted,
while '9633;' causes an error to be thrown.

 XeTeX is already there (and your square sample is also working there
 out-of-the-box once you set a proper font).
I'll look into that. 

Thanks, Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Unicode Character Problem

2007-01-09 Thread Johannes Graumann
I think I figured this out: '9633' is not in a unicode block as predefined in
unic-xxx.tex

So this doesn't work ... looks like I have to wait for LuaTeX ...

Joh


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Unicode Character Problem

2007-01-08 Thread Johannes Graumann
Hello,

I'm having trouble defining a new unicode character:

'versuch.tex' reads:
  \defineXMLentity[\#9633]  {\symbol[8]}

'versuch.xml' reads:
  #9633;

Trying to compile this like so:
  texmfstart texexec --environment=versuch.tex versuch.xml

Yields the error below. What am I doing wrong (this works for other things like
'\defineXMLentity[\#8211]{--}')?

Thanks for your insights!

Joh

kpathsea: Running mktexmf UnicodeRegular25
! I can't find file `UnicodeRegular25'.
* ...mag:=1; nonstopmode; input UnicodeRegular25

Please type another input file name
! Emergency stop.
* ...mag:=1; nonstopmode; input UnicodeRegular25

Transcript written on mfput.log.
grep: UnicodeRegular25.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input
UnicodeRegular25' failed to make UnicodeRegular25.tfm.
kpathsea: Appending font creation commands to missfont.log.

! Font \unicodefont=UnicodeRegular25 at 12.0pt not loadable: Metric (TFM) file
not found.
recently read \bodyfontsize

\unicodeglyph ... \currentfontscale \bodyfontsize
  \unicodestrut \unicodefont...

\uchar ...+\unicodetwo \relax \handleunicodeglyph
  \endgroup
l.1 #9633;

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] definedescription and XML

2007-01-04 Thread Johannes Graumann
Hello all,

After a good break I'm back at my XML obsession and am running into the
following issue: my environment-file contains these definitions

\defineXMLnested
  [reagentlist]
  [sample=]
  
{\definedescription[definition][width=broad,distance=1em,sample={\XMLop{sample}}]}
  {}
\defineXMLnested
  [reagent]
  [label=]
  {\startdefinition{\XMLop{label}}}
  {\stopdefinition}

but in use, the definition-label-width is optimized for every single case,
rather than for the 'sample', meaning I get

One x
x
Twentyone xxx
  xxx

rather than 

One   xxx
  xxx
Twentyone xxx
  xxx

Can anyone please enlighten me as to what I'm missing here?

Thanks, Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] definedescription and XML

2007-01-04 Thread Johannes Graumann

Hans,

Thanks so much for your help once again!

Joh
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] beta bib module issues

2006-06-29 Thread Johannes Graumann
Taco Hoekwater wrote:
 * add \type{symbol=none} to \type{\setuplist} in unnumbered
mode to prevent typesetting of bare numbers
 Works now - thanks!

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Bug with 'inmargin' head-setup in Beta

2006-06-28 Thread Johannes Graumann
Hans Hagen wrote:

  \c!strut=\@@koindentnext,
 
 should be
 
 \c!strut=\@@kostrut,

That indeed fixes it.

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] t-bib-2006.06.23 problem

2006-06-28 Thread Johannes Graumann
Hello,

The current t-bib beta (t-bib-2006.06.23) available at
http://dl.contextgarden.net/modules/t-bib-2006.06.23.zip has a problem:

% Use Taco's bib module for the citations
\usemodule[t-bib]
% Cite the bibliography lists according to the entry order in the *.bib file
\setuppublications[sorttype=bbl]
% Bibliography information is here:
\setupbibtex[database={../Bibliography/bibliography.bib}]

Results in bibliography lists where the entries are (uncalled-for) numbered
and the numbers collide with the author names (see
http://shortlink.co.uk/9n6).

Joh


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bug with 'inmargin' head-setup in Beta

2006-06-27 Thread Johannes Graumann
Hello,

Consider this code example - the section titles are preceded by inapropriate
vertical whitespace.

\setupheads[alternative=inmargin]
\starttext
  \section{Hello}
\subsection{Wie geht's?}
  \subsubsection{Gut'n Tach!}
\stoptext

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib and hyperlinkded references?

2006-06-21 Thread Johannes Graumann
Taco Hoekwater wrote:

 Maybe a cutpaste error? It works fine over here, on my local
 copy of your thesis. Fragment attached
Indeed! Sorry for bothering you!

 I've just uploaded a new version. The new option
 
\setupcite[interaction=stop] % default=start
 
 disables hyperlinks.
Very nice ... included a 
\doifelse{\XMLop{interaction}}{no}
  {\setupcite[interaction=stop]}
  {}
Into my chapter definition and call the abstract chapter with 
chapter interaction=no
/chapter

Works just the way I need it.

Thanks!

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Split Table Desperation - again!

2006-06-21 Thread Johannes Graumann
Hello,

While the recent modifications to the split table mechanisms provided by
Hans help me out with my most annoying monster table using the XML mapping
code below (see
http://www.idyll.org:8081/JohSite/context/p46-50_split_working.pdf/view for
the typeset table; clearly to much whitespace, but everything is typeset
and page boundaries are honored) and several other -smaller- tables in the
same tome (see
http://www.idyll.org:8081/JohSite/context/p45_unsplit_working.pdf/view for
a typeset example), one medium-sized table that clearly should not be split
gets split none the less (see
http://www.idyll.org:8081/JohSite/context/p162-163_unnecessary_split.pdf/view) 
...
and I have no idea why.

Puzzled and helpless, Joh

XML mapping code:

% 'table' - table definition
\defineXMLnested
  [table]
  [lines=auto]
  {
\defineXMLsave[floattitle]
\defineXMLsave[caption]
\defineXMLsave[header]
\defineXMLsave[body]
\defineXMLsave[footer]
  }
  {
\splitfloat[lines=\XMLop{lines}]
  {
\expanded{%
  \placetable
[\XMLpar{table}{location}{}]
[\XMLpar{table}{label}{unknown}]
{\select{caption}{\XMLflush{floattitle}
{{\bf\XMLflush{floattitle}} \XMLflush{caption}}}
}
  }
  {
\setupTABLE[row][1][topframe=on]
\setupTABLE[row][last][bottomframe=on]
\bTABLE[frame=off,split=repeat,splitmethod=b,style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]}]
  \bTABLEhead\XMLflush{header}\eTABLEhead
  \bTABLEbody\XMLflush{body}\eTABLEbody
  \bTABLEfoot\XMLflush{footer}\eTABLEfoot
\eTABLE
  }
  }

% 'td' - table cell definition defaulting to single row/column, automatic
width determination, left alignment
\defineXMLnested
  [td]
  [rows=1,cols=1,width=,bottomframe=,topframe=,align=right]
  {
\doifelse{\XMLop{width}}{}%
  {
\doifelse{\XMLop{bottomframe}}{}%
  {
\doifelse{\XMLop{topframe}}{}%
 
{\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols}]}}
 
{\expanded{\bTD[align=\XMLop{align},topframe=\XMLop{topframe},nr=\XMLop{rows},nc=\XMLop{cols}]}}
  }
  {
\doifelse{\XMLop{topframe}}{}%
 
{\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},bottomframe=\XMLop{bottomframe}]}}
 
{\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},bottomframe=\XMLop{bottomframe},topframe=\XMLop{topframe}]}}
  }
  }
  {
\doifelse{\XMLop{bottomframe}}{}%
  {
\doifelse{\XMLop{topframe}}{}%
 
{\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width}]}}
 
{\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width},topframe=\XMLop{topframe}]}}
  }
  {
\doifelse{\XMLop{topframe}}{}%
 
{\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width},bottomframe=\XMLop{bottomframe}]}}
 
{\expanded{\bTD[align=\XMLop{align},nr=\XMLop{rows},nc=\XMLop{cols},width=\XMLop{width},bottomframe=\XMLop{bottomframe},topframe=\XMLop{topframe}]}}
  }
  }
  }
  {\par\eTD}

% 'tr' - table row definition, defaulting to no bottomframe
\defineXMLnested
  [tr]
  [bottomframe=,rulethickness=0.5pt]
  {\doifelse{\XMLop{bottomframe}}{}%
{\expanded{\bTR}}%
   
{\expanded{\bTR[bottomframe=\XMLop{bottomframe},rulethickness=\XMLop{rulethickness}]}}
  }
  {\eTR}


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib and hyperlinkded references?

2006-06-20 Thread Johannes Graumann
Taco Hoekwater wrote:

 I've just uploaded a new beta to the modules section at contextgarden.
 
 It took me much longer than I had anticipated, mainly because there
 was a massive bug in the per-chapter bibliography code: it generated
 duplicate named references for all but the simplest of documents.
 
 I hope to have the bug fixed now, and interaction working as it should.
 
 There is only one limitation, and that will stay: you cannot have
 hyperlinks while \setupcite[compress=yes] is in effect.

Thanks Taco!

I run across three problems:
1) with my setup (XML mapped into ConTeXt convolution) the links from
citations exists, but don't point to the right pages in the chapter
specific bibliographies - at least after a single texexec run. Another run
is necessary and everything seems all right.
2) While the linking works for the 'authoryears' citation style, I don't get
any hyperlinks from plain 'authoryear' formated references as well as for
the custom-defined 'authoryearx' ones that go as follows:
\setupcite
[authoryearx]
[\c!andtext={ and },
 \c!otherstext={ et al.},
 \c!pubsep={; },
 \c!lastpubsep={; and },
 \c!compress=\v!no,
 \c!inbetween={~},
 \c!left={},
 \c!right={}]
3) The structure of my document looks as follows
Acknowledgments
Abstract
TOC
LOF
LOT
Introduction (chapter with chapter-specific bibliography) ...
I cited some references in the Abstract, which my proofreader wanted to have
listed in the chapter-specific bibliography of the introduction chapter,
which I accomplished by re-citing the stuff in the respective chapter
using 'nocite'. Naturally, links in the 'Abstract' don't have anywhere to
point to and the citations appear empty. Do you have any idea how to
overcome that? I'd be already happy if I could override the linking
behavior for the handfull of references in the abstract - meaning: have
hyperlinked references everywhere in the document BUT the abstract.

Joh


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib and hyperlinkded references?

2006-06-20 Thread Johannes Graumann
Sorry ... missing some info here ...

Johannes Graumann wrote:

 Taco Hoekwater wrote:
 
 I've just uploaded a new beta to the modules section at contextgarden.
 
 It took me much longer than I had anticipated, mainly because there
 was a massive bug in the per-chapter bibliography code: it generated
 duplicate named references for all but the simplest of documents.
 
 I hope to have the bug fixed now, and interaction working as it should.
 
 There is only one limitation, and that will stay: you cannot have
 hyperlinks while \setupcite[compress=yes] is in effect.
 
 Thanks Taco!
 
 I run across three problems:
 1) with my setup (XML mapped into ConTeXt convolution) the links from
 citations exists, but don't point to the right pages in the chapter
 specific bibliographies - at least after a single texexec run. Another run
 is necessary and everything seems all right.
 2) While the linking works for the 'authoryears' citation style, I don't
 get any hyperlinks from plain 'authoryear' formated references as well as
 for the custom-defined 'authoryearx' ones that go as follows:
% Enable 'authoryearx' citation call (see below) - Thanks to Taco Hoekwater!
  \def\bibauthoryearxref[#1]%
  {\ixbibauthoryear{#1}%
{{\currentbibauthor}\bibalternative\c!inbetween
  \bibalternative\v!left{\currentbibyear}\bibalternative\v!right}
{\bibalternative\c!pubsep{\currentbibauthor}\bibalternative\c!inbetween
  \bibalternative\v!left  {\currentbibyear}\bibalternative\v!right}
 
{\bibalternative\c!lastpubsep{\currentbibauthor}\bibalternative\c!inbetween
  \bibalternative\v!left  {\currentbibyear}\bibalternative\v!right}
  }
 \setupcite 
 [authoryearx]
 [\c!andtext={ and },
  \c!otherstext={ et al.},
  \c!pubsep={; },
  \c!lastpubsep={; and },
  \c!compress=\v!no,
  \c!inbetween={~},
  \c!left={},
  \c!right={}]
 3) The structure of my document looks as follows
 Acknowledgments
 Abstract
 TOC
 LOF
 LOT
 Introduction (chapter with chapter-specific bibliography) ...
 I cited some references in the Abstract, which my proofreader wanted to
 have listed in the chapter-specific bibliography of the introduction
 chapter, which I accomplished by re-citing the stuff in the respective
 chapter using 'nocite'. Naturally, links in the 'Abstract' don't have
 anywhere to point to and the citations appear empty. Do you have any idea
 how to overcome that? I'd be already happy if I could override the linking
 behavior for the handfull of references in the abstract - meaning: have
 hyperlinked references everywhere in the document BUT the abstract.
 
 Joh


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib and hyperlinkded references?

2006-06-20 Thread Johannes Graumann
Taco Hoekwater wrote:

 Johannes Graumann wrote:
 I run across three problems:
 1) with my setup (XML mapped into ConTeXt convolution) the links from
 citations exists, but don't point to the right pages in the chapter
 specific bibliographies - at least after a single texexec run. Another
 run is necessary and everything seems all right.
 
 I expected that. I'm not sure how to explain to texexec that the
 module needs another TeX run to resolved the secondary references.
 Will talk to Hans about that.
Not a biggie ... I can deal for now.

 2) While the linking works for the 'authoryears' citation style, I don't
 get any hyperlinks from plain 'authoryear' formated references as well as
 for
 
 For authoryear, you need a separate \setupcite[authoryear][compress=no]
 because the single-argument \setupcite only works for the default type.
 Is that the problem (it works for me)?
Thanks!


 the custom-defined 'authoryearx' ones that go as follows:
 \setupcite
 [authoryearx]
 
 This new defn should do it (untested):
 
% Enable 'authoryearx' citation
\def\bibauthoryearxref[#1]%
  {\ixbibauthoryear{#1}%
{\bibmaybeinteractive{#1}{{\currentbibauthor}%
 \bibalternative\c!inbetween
 \bibalternative\v!left
 {\currentbibyear}%
 \bibalternative\v!right}}
{\bibalternative\c!pubsep
 \bibmaybeinteractive{#1}{{\currentbibauthor}%
 \bibalternative\c!inbetween
 \bibalternative\v!left
 {\currentbibyear}%
 \bibalternative\v!right}}
{\bibalternative\c!lastpubsep
 \bibmaybeinteractive{#1}{{\currentbibauthor}%
 \bibalternative\c!inbetween
 \bibalternative\v!left
 {\currentbibyear}%
 \bibalternative\v!right}}}
This produces the following error:
Runaway argument?
klose:75,ofarrell:75]\else \processcommalist [authoryearx]\docitation \ETC.
! File ended while scanning use of \bibauthoryearxref.
inserted text
\par
to be read again
   \relax
\dodoreadfile ...\preprocesssuffix \or \fi \relax
  \the \everyafterreadfile
\processXMLfilegrouped ...bleXML \processfile {#1}
  \relax \ifmmode \else
\par...
l.65 include file=../XML/intro.xml/

?
I've been unable to pin down where there might be a missing brace ...

 I'll implement some interaction controls for \cite/\setupcite tomorrow,
 since that is the easiest way out. So: new version tomorrow.

Thanks, Taco!

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib and hyperlinkded references?

2006-06-19 Thread Johannes Graumann
Taco Hoekwater wrote:

 Can be fixed rather easily (tomorrow)

That would be marvelous!

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] splitting tables

2006-06-17 Thread Johannes Graumann
Hello,

I'd like to explicitly thank Hans for these changes to the table splitting,
which is giving my thesis the last touches. 

Thanks you for your openness towards ConTeXt's users - even the more
obnoxiously insisting ones ;0)

Joh

Hans Hagen wrote:

 Hi,
 
 I will upload an alpha release with a cleaned up table (float) split
 mechanism. The splitter works for all three table types, either or not
 in floats with repeated head (and tail) sections, optionally with
 automatic (may become default) caption height detection etc. It works ok
 on some simple test files, but I have no time to test more obscure
 situations.
 
 I'm not that sure if everything is downward compatible, but splitting is
 always tricky (and demanded some intervention) anyway. So, if you are
 using this kind of functionality, go ahead, download and test ..
 
 \setupTABLE[split=repeat]
 
 \input tufte \endgraf
 \splitfloat[lines=11]
   {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}}
   {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE}
 \input tufte \page
 
 \input tufte \endgraf
 \splitfloat[lines=0]
   {}
   {\bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE}
 \input tufte \endgraf \page
 
 \input tufte \endgraf
 \bTABLE\dorecurse{100}{\bTR \bTD test \eTD \eTR}\eTABLE
 \input tufte \page
 
 \setuptabulate[split=yes]
 
 \input tufte \endgraf
 \splitfloat[lines=11]
   {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}}
   {\starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate}
 \input tufte \page
 
 \input tufte \endgraf
 \splitfloat[lines=0]
   {}
   {\starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate}
 \input tufte \page
 
 \input tufte \endgraf
 \starttabulate\dorecurse{200}{\NC test \NC test \NC \NR}\stoptabulate
 \input tufte \page
 
 \setuptables[split=yes]
 
 \newtoks\TestToks
 
 \TestToks\emptytoks
 \appendtoks\starttablehead\to\TestToks
 \dorecurse{3}{\appendtoks\VL head \VL head \VL \SR\to\TestToks}
 \appendtoks\stoptablehead\to\TestToks
 \appendtoks\starttabletail\to\TestToks
 \dorecurse{3}{\appendtoks\VL tail \VL tail \VL \SR\to\TestToks}
 \appendtoks\stoptabletail\to\TestToks
 \appendtoks\starttables[|c|c|]\to\TestToks
 \dorecurse{100}{\appendtoks\VL test \VL test \VL \SR\to\TestToks}
 \appendtoks\stoptables\to\TestToks
 
 \input tufte \endgraf
 \splitfloat[lines=auto] % [lines=11]
   {\placetable{\dorecurse{10}{test\recurselevel\endgraf}}}
   {\the\TestToks}
 \input tufte \page
 
 \input tufte \endgraf
 \splitfloat[lines=0]
   {}
   {\the\TestToks}
 \input tufte \page
 
 \input tufte \endgraf
 \the\TestToks
 \input tufte \page
 
 Watch the lines=auto option! Mechanisms like this will never be perfect,
 but I think that the cleanup is not that bad. Especially the \startable
 bits and pieces needs some more testing, but then, i need to cleanup up
 that code anyway (write a cleaner version of that whole table mechanism).
 
 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
 -


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Beta Bibliography module

2006-06-17 Thread Johannes Graumann
Thanks Taco, for these changes. Have been using a preliminary version of
this for a while in my 200 pages thesis with chapter specific
bibliographies of hundred entries and up. Works marvelously!

Joh

Taco Hoekwater wrote:

 Hi all,
 
 
 I've just released a beta of the bibliography module for testing.
 It can be downloaded from http://modules.contextgarden.net/bib
 as usual, and the version is now 2006.06.16
 
 News, compared to the previous (April 11) version that is in the
 core distribution:
 
 * Better support for per-chapter bibliographic lists
(citations now repeat in each chapter)
 
 * The \lang (LANGUAGE) database field is now honoured
(if the content is a valid ConTeXt language, that is)
 
 * \biburl fields are now typeset using \hyphenatedurl
 
 * \month field conversion can now be controlled through
\setuppublication[monthconversion=]
 
 * The module now uses \undefinedreference for undefined references
 
 * \usemodule[bibltx] provides \newcommand for legacy databases
 
 * Documentation updated (\nocite is documented now)
 
 Have fun,
 
 Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to hyperlink pdf?

2006-06-16 Thread Johannes Graumann
Hello,

How do I get the entries in TOC/LOF/LOT, t-bib bibliographic references and
in-text references to other text parts (paragraphs, figures, tables)
hyperlinked so that clicking on the respective references will lead me to
the object referred to?

Thanks for your help,

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Bad Split TABLEs

2006-06-12 Thread Johannes Graumann
Hello,

LONG tables form a significant part of my thesis. I put the thesis together
entirely in XML and have a stylesheet matching that XML into ConTeXt.
While ConTeXt is doing a great job with the rest, split TABLEs are not
working - despite Hans' repeatedly answering my pleas with patches. I
concluded that I might have a problem of my XML-to-ConTeXt matching rather
than ConTeXt itself at hand and pulled a part of my thesis flanking and
including the most unwieldy multipage table into ConTeXt proper (see
attachment). The problems persist and I'd like to poll the accumulated
ConTeXtitians on hints towards a solution of them, specifically:
- split tables without body content
- textbody text and tables overflowing the pages.
- multiple splits per page

I'd be very happy about any hints on how to remedy this document-spoiler ...

Thanks, Joh

% Papersize is 'letter'
\setuppapersize[letter][letter]

% CIT thesis regulations: 1 in margins, 1.5 in on the binding side
% Johannes: no footer
\setuplayout[
  backspace=1.5in,
  cutspace=1in,
  width=fit,
  topspace=1in,
  bottomspace=1in,
  height=fit,
  footer=0in
]
%\showlayout
%\showframe

% Setup micro-typesetting/character protrusion
% ConTeXt preloads Latin-Modern, this needs to be taken care of here and 
followed by the 'reset' below
\usetypescript[serif,sans,mono][hanging][normal]
\setupalign[hanging]

% Setup font usage: modern-base/textansi enables things like non-cursive 'mu'
\usetypescript[modern-base][texnansi]
\setupbodyfont[reset]
\setupbodyfont[12pt,modern]

% CIT thesis regulations: double spacing required! (BR!))
\setupinterlinespace[line=2\bodyfontsize]

% CIT thesis regulations: All pages except the title page to be numbered at 
least 3/4 from the top of the page - so globally I fix this to 'no' and 
revisit it in 'frontmatter', 'bodymatter', ...
\setuppagenumbering[location=]

% Setup paragraph indentation according to CIT proofreader's recommendation
\setupindenting[next,medium,yes]

% Setup footnotes to reset the counter by chapter according to CIT 
proofreader's recommendation:
\setupfootnotes[way=bychapter]

% URLs are supposed to be typeset in typewriter type fonts but sadly this does 
not work ... 
\setupurl[style=tt]

% Take care of title formating:
% a) title numbers are to be typeset in the margin
\setupheads[alternative=inmargin]
% b) all titles are to be typeset sans serifs and with decending font size
\setuphead[chapter][style=ssd]
\setuphead[section][style=ssb]
\setuphead[subsection][style=ssa]

% Formatting captions
% All captions: font smaller than body text, standard line spacing, as wide as 
the body
\setupcaptions[style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]},width=\textwidth]
% Table captions only: caption precedes the table
\setupcaption[table][location=top]

% Extra hyphenation  patterns:
\hyphenation{a-ce-to-ni-trile u-bi-qui-tin gu-th-rie}



\defineselector[caption][max=2,n=2]
\start
  \setupselector[caption][n=1]
  %\completelistoftables[criterium=text]
  \writetolist[chapter]{}{Tables}{}
\stop
\starttext
  Remarkably, our comparative analysis of Gcn5p purifications yielded strong 
candidates for six new Gcn5p interactors. YCR082W, a nonessential gene product 
(Winzeler et al. 1999; Giavert et al. 2002) with unknown function, was found in 
all five Gcn5p purifications but was not recovered with any of the other baits 
that we analyzed. YCR082W exhibits a two--hybrid interaction with Ahc1p (Uetz 
et al. 2000; Ito et al. 2001), which together with Gcn5p is a member of the ADA 
histone acetyltransferase complex (Eberharter et al. 1999). Another candidate 
is Msn4p, a nonessential (Estruch et al. 1993; Winzeler et al. 1999) major 
transcriptional regulator of stress responses (Treger et al. 1998). Msn4p was 
recovered in four of the five Gcn5p pull down experiments but was not recovered 
with any of the other baits. This finding is interesting in the light of 
evidence that promoters activated by Msn4p and its partner Msn2p show increased 
histone H4 acetylation (Deckert et al. 2001). Other p
 otential interaction partners include YPL047W (present in two of the HPM 
purifications and the TAP purification), histones Hta1p/Hta2p and Imd4p (in 
TAP, modified TAP and one HPM pulldown). Other gene products recovered in more 
than two of the experiments are mostly ribosomal proteins that are likely 
contaminants. Finally, the interaction observed between Gcn5p and Swi1p in the 
TAP tag experiment was previously proposed only on the basis of their 
synthetically lethal genetic interaction (Pollard et al 1997).\par
  \subsection{Screening for Interactions}
Having established the relative reproducibility of TAP--MudPIT and the 
comparability of the HPM tag to other available bipartite affinity tags, we set 
out to address three issues. First, we wished to determine what fraction of 
TAP--MudPIT experiments yield usable results. Second, we hoped to determine 
whether the parallel application of MudPIT to 

Re: [NTG-context] 'Dot' after Float label Howto?

2006-05-26 Thread Johannes Graumann
Hans Hagen wrote:

 ok, fixed, teh next release will properly do:

Thanks, Hans!

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib and explicitly italizising title parts

2006-05-25 Thread Johannes Graumann
Johannes Graumann wrote:

 title = {{\it {S}accharomyces cerevisiae\/}}
 
 now lacks the required upper case for the 'S' - is there any TeX command
 analogous to '\it' forcing capitalization?

Solved. Extra pair of braces around italisized content.

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] 'Dot' after Float label Howto?

2006-05-25 Thread Johannes Graumann
nico wrote:

 I thought that stopper would do it, but either I misuse it, or there's a
 bug in there: the dot appears twice!

Strange. If you have sub figures (like Figure 1.2.a) the stopper strategy
works. Just with normal figures (Figure 1.2) there are two dots ...

Looks like a bug to me.

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib (extra special experimental version), XML and nocite

2006-05-24 Thread Johannes Graumann
Taco Hoekwater wrote:

 \def\nocite[#1]%
{\processcommalist[#1]\addthisref
 \processcommalist[#1]\docitation}
Changing the 'nocite' definition to this did it.

Thanks!

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] t-bib and explicitly italizising title parts

2006-05-24 Thread Johannes Graumann
Taco Hoekwater wrote:

@ARTICLE{article-minimal,
 author = {L[eslie] A. Aamport},
 title = {The {\it Gnats\/} and Gnus Document Preparation System},
 journal = {\mbox{G-Animal's} Journal},
 year = 1986,
}
This works indeed - I was missing the '\/' bit. However, now I have trouble
to keep explicit capitalization inside the italisized strech ... Something
like

title = {{\it {S}accharomyces cerevisiae\/}}

now lacks the required upper case for the 'S' - is there any TeX command
analogous to '\it' forcing capitalization?

Thanks, Joh


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] 'Dot' after Float label Howto?

2006-05-24 Thread Johannes Graumann
Hello,

My proofreader wants the float labels (Figure 2.5) to end with a dot as
well (as in Figure 2.5.).
Can somebody please point me at how to achieve that?

Thanks, Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] t-bib (extra special experimental version), XML and nocite

2006-05-23 Thread Johannes Graumann
Hello,

I'm trying to get my XML citation definitions, which look like so:

cite id=verma:04,mayor:05a,griffin:05 opt=no/

to differentiate between no and t-bib options I hand into the opt flag
like this:

\defineXMLargument
  [cite]
  [opt=]
  {%
\doifelse{\XMLop{opt}}{no}
  {%
\expanded{\nocite[\XMLop{id}]}%
  }
  {%
\expanded{\cite[\XMLop{opt}][\XMLop{id}]}%
  }
  }

With this definition something like:

cite id=verma:04,mayor:05a,griffin:05 opt=authoryears/

works just fine, but 

cite id=verma:04,mayor:05a,griffin:05 opt=no/ fails to show up in the
biblist.
I'm not sure whether this is related to the fact that I'm using an
experimental t-bib version which Taco provided to enable correct chapter
specific bibliographies.

If you have any insight into what I'm doing wrong: please help.

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] t-bib and explicitly italizising title parts

2006-05-23 Thread Johannes Graumann
Hello,

Is there any way using '\it' in the title of a bib-entry, so that
ConTeXt/t-bib will hand it though into the bibliography listing?
I have a lot of publications in my lists that contain species names in there
titles, which are by convention typeset in italics.

Thanks for any hints,

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Margin definition trouble.

2006-05-20 Thread Johannes Graumann
Mojca Miklavec wrote:

 Did you use width=fit and height=fit? They are not automatically applied.

Thanks, Fixed now.

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Text style in bookmarks

2006-05-20 Thread Johannes Graumann
nico wrote:

 Hi Willi,
 
 On Sat, 20 May 2006 20:14:30 +0200, Willi Egger [EMAIL PROTECTED] wrote:
 
 Provided I understnad you correctly, then you could play with code as:

 \setuphead
 
 Thanks, but it is not a global heading style I look for, but the ability
 to do things like this:
 
 \section{This {\tt file} {\em is} {\bf quite important}}
 
 So that it appears This file is quite important in the bookmark, instead
 of This {file} {is} {quite important}.

Hehe - may be first time I can help ;0)

Recently I asked for something similar: how to get a short version of a
figure caption into the List of Figures while maintaining the long version
in the actual caption. As a solution Hans came up with the 'selector'
feature below (not sure wheather the last release has it yet). Look in the
archive ...

If I understand you correctly this may be applicable to your problem.

Joh

%
% Float definitions %
%

% Define selectors for short caption versions (Hans Hagen)
%%

\unprotect

% let's reuse this one in selectors (from syst-ext) 

\def\dofilterfromstr#1#2% max n
  {\ifcase#1\or
 \ifcase#2\or
   \strippedcsname\firstofoneargument
 \else
   \strippedcsname\gobbleoneargument
 \fi
   \or
 \ifcase#2\or
   \strippedcsname\firstoftwoarguments
 \or
   \strippedcsname\secondoftwoarguments
 \else
   \strippedcsname\gobbletwoarguments
 \fi
   \or
 \ifcase#2\or
   \strippedcsname\firstofthreearguments
 \or
   \strippedcsname\secondofthreearguments
 \or
   \strippedcsname\thirdofthreearguments
 \else
   \strippedcsname\gobblethreearguments
 \fi
   \or
 \ifcase#2\or
   \strippedcsname\firstoffourarguments
 \or
   \strippedcsname\secondoffourarguments
 \or
   \strippedcsname\thirdoffourarguments
 \or
   \strippedcsname\fourthoffourarguments
 \else
   \strippedcsname\gobblefourarguments
 \fi
   \or
 \ifcase#2\or
   \strippedcsname\firstoffivearguments
 \or
   \strippedcsname\secondoffivearguments
 \or
   \strippedcsname\thirdoffivearguments
 \or
   \strippedcsname\fourthoffivearguments
 \or
   \strippedcsname\fifthoffivearguments
 \else
   \strippedcsname\gobblefivearguments
 \fi
   \fi}

\def\filterfromvalue#1#2#3% value max n
  [EMAIL PROTECTED]@EAEAEA\csname   % we use the fact that an
 [EMAIL PROTECTED]   % undefined cs has become \relax
   \strippedcsname\gobbleoneargument % which we then gobble here
 \else
   \dofilterfromstr{#2}{#3}%
 \fi
 \endcsname\csname#1\endcsname}

\def\filterfromnext#1#2% max n {..}{..}{..}{..}
  {\csname\dofilterfromstr{#1}{#2}\endcsname}

% new, selectors

\definesystemvariable{sx}

\def\defineselector{\dodoubleargument\dodefineselector}
\def\setupselector {\dodoubleargument\dosetupselector}

\def\dodefineselector[#1][#2]{\getparameters[\??sx#1][\c!max=2,\c!n=1,#2]}
\def\dosetupselector [#1][#2]{\getparameters[\??sx#1][#2]}

\unexpanded\def\select#1%
  {\filterfromnext
 {\executeifdefined{\??sx#1\c!max}1}
 {\executeifdefined{\??sx#1\c!n  }1}}

\protect

% Define the caption selector
\defineselector[caption][max=2,n=2]

% Format captions
%

\setupcaptions[style={\switchtobodyfont[small]\setupinterlinespace[line=2.8ex]},width=\textwidth]
\setupcaption[table][location=top]

% Setup List Of Figures
%%%
\defineXMLargument
  [listoffigures]
  {
\start
  \setupselector[caption][n=1]
  \completelistoffigures[criterium=text]
  %\writetolist[chapter]{Figures}{}
\stop
  }

% in the text:
\placefigure
  {\select{caption}{shortcaption}{Longcaption}}


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Margin definition trouble.

2006-05-19 Thread Johannes Graumann
Hello,

I define my margins like so:

% Papersize is 'letter'
\setuppapersize[letter][letter]

% CIT thesis regulations: 1 in margins, 1.5 in on the binding side
% Johannes: no footer
\setuplayout[
  margin=1in,
  backspace=1.5in,
  footer=0in
]

but the margins on top, bottom and right differ significantly from 1 in (ca.
1 in 3/16) and on the left from 1.5 in (ca. 1 in 11/16). This is in the
printout. Do I have to go adjusting this arbitrarily, printing it and
checking manually?

Can anybody tell me what I'm doing wrong?

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Margin definition trouble.

2006-05-19 Thread Johannes Graumann
Mojca Miklavec wrote:

 Margin as the dimension parameter in \setuplayout is not the distance
 between text and the border, but the width of an auxiliary field on
 the left and right (chech the command above to see those fields).

Thanks for pointing out my folly. I did some more digging in the
ConTeXtgarden and came up with the following:

\setuplayout[
  topspace=1in, % the space at the very top of the page
  backspace=1.5in,  % the space in the left hand side of the page 
  cutspace=1in, % the space on the right hand side of the page
  bottomspace=1in,
  footer=0in
]

This gets me significantly closer to where I need to be, but the right edge
is more at 15/16 than at 1 in and the bottom one more at 17/16.

Any hints on how to get it even closer?

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new release

2006-05-11 Thread Johannes Graumann
Hans Hagen wrote:
 in core-sys.tex, replace:
 
 \ifx\disableXML\undefined \let\disableXML\relax \fi
 
 \def\loadsystemfiles
   {\reportprotectionstate
\readsysfile\f!newfilename
  {\showmessage\m!systems2\f!newfilename}%
  \donothing
\readsysfile\f!oldfilename
  {\showmessage\m!systems2\f!oldfilename}%
  \donothing
\loadallsystemfiles\f!filfilename
  \donothing
\loadallsystemfiles\f!sysfilename
  {\loadallsystemfiles{\f!sysfilename.rme}\donothing % new, fall back
   \doglobal\appendtoks
 \bgroup
 \disableXML
 \loadallsystemfiles\f!errfilename\donothing
 \egroup
   \to\everygoodbye}}

I have appended this to core-sys.tex (just before the final '\protect
\endinput'; latest version of 11.5.) and used 'texexec.rb --make'.
I get the same error - even for a document containing nothing but this:

\defineXMLenvironment
   [document]
   {\starttext}
   {\stoptext}
\startXMLdata
  document/document
\stopXMLdata

How do we proceed from here?

Joh

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  1   2   3   >