Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-13 Thread Axel Kielhorn
Hello Otared,

> Thank you very much for your attention and your hints, which solved my 
> problems with ConTeXt from TeXLive2020.
> 
> Indeed following your suugestion, I removed the 
>   /opt/local/etc/texmf/
> directory, as well as all other tex related directories and files in 
> /opt/local/, and then installed again MacTeX2020. 
> In oder to be on the safe side, I rebuilt also the locate database, then 
> rebooted my machine: after that I could  run
>   luatools --generate
> and now with
>   context --version
> I have current version: 2020.03.10 14:44.
> 
> However I don't know why I had tex related files in /opt/local/, which is 
> used by MacPorts…

Some programs have dependencies on texlive.
These are usually programs that create pdf via TeX.

Glad I could help you.

Greetings
Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-12 Thread Axel Kielhorn


> Am 11.08.2020 um 16:57 schrieb Otared Kavian :
> 
> I don't have these files at this place, but in
>   /opt/local/etc/texmf/
> I do have 
>   /opt/local/etc/texmf/texmf.cnf
>   /opt/local/etc/texmf/texmfcnf.lua
> the first one being created automatically when I tried to do mtxrun 
> --generate after installing TeXLive2020. Ir says its content should not be 
> modified directly and that its content is based on of the file
>   /opt/local/etc/texmf/texmf.cnf.d
> The content of the above directory dates from 2019, and maybe that is why my 
> logfile reports things being done with TeXLive2019. 
> 
> The content of the file 
>   /opt/local/etc/texmf/texmfcnf.lua
> is written by Hans in date = "2012-05-24" time = "12-12-12".
> 
> Replacing /opt/local/etc/texmf/texmf.cnf with some other texmf.cnf does not 
> help, since it is overwritten when one does 
>   mtxrun --generate
> 
> So the problem remains… Maybe I have to contact people who prepare MacTeX2020 
> and ask for help with them.

This looks like a Macports installation.

When I call the Macports version of context I get:

context --help
resolvers   | caches | path '/Users/axel/.texlive2020/texmf-var' created
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

If you want to use the Macports version of ConTeXt please install

port install textlive-context

after installing that I get:

context --help
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | basic options:
mtx-context |
mtx-context | --run  process (one or more) files (default 
action)
mtx-context | --make create context formats
mtx-context |
mtx-context | --ctx=name use ctx file (process management 
specification)
mtx-context | --noctxignore ctx directives and flags
mtx-context | --interfaceuse specified user interface (default: 
en)
mtx-context |
mtx-context | --autopdf  close pdf file in viewer and start pdf 
viewer afterwards
mtx-context | --purgepurge files either or not after a run 
(--pattern=...)
mtx-context | --purgeall purge all files either or not after a 
run (--pattern=...)
mtx-context |
mtx-context | --usemodule=list   load the given module or style, 
normally part of the distribution
mtx-context | --environment=list load the given environment file first 
(document styles)
mtx-context | --mode=listenable given the modes (conditional 
processing in styles)
mtx-context | --path=listalso consult the given paths when 
files are looked for
mtx-context | --arguments=list   set variables that can be consulted 
during a run (key/value pairs)
mtx-context | --randomseed=numberset the randomseed
mtx-context | --result=name  rename the resulting output to the 
given name
mtx-context | --trackers=listset tracker variables (show list with 
--showtrackers)
mtx-context | --directives=list  set directive variables (show list 
with --showdirectives)
mtx-context | --silent=list  disable logcatgories (show list with 
--showlogcategories)
mtx-context | --stripstrip Lua code (only meant for 
production where no errors are expected)
mtx-context | --errors=list  show errors at the end of a run, quit 
when in list (also when --silent)
mtx-context | --htmlerrorpagegenerate html error page instead 
(optional: =scite)
mtx-context | --noconsoledisable logging to the console 
(logfile only)
mtx-context | --purgeresult  purge result file before run
mtx-context |
mtx-context | --forcexml force xml stub
mtx-context | --forcecld force cld (context lua document) stub
mtx-context | --forcelua force lua stub (like texlua)
mtx-context | --forcemp  force mp stub
mtx-context |
mtx-context | --arrange  run extra imposition pass, given that 
the style sets up imposition
mtx-context | --noarrangeignore imposition specifications in 
the style
mtx-context |
mtx-context | --jit  use luajittex with jit turned off 
(only use the faster virtual machine)
mtx-context | --jitonuse luajittex with jit turned on (in 
most cases not faster, even slower)
mtx-context |
mtx-context | --once only run once (no multipass data file 
is produced)
mtx-context | --runs process at most this many times
mtx-context | --forcedruns   process this many times (permits for 
optimization trial runs)
mtx-context |
mtx-context | --batchmoderun without stopping and do not show 
messages on the console
mtx-context | --nonstopmode  run without stopping
mtx-context |
mtx-context | --nosynctexnever 

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Axel Kielhorn

> The luatools script was there to offer some kpse like functionality but it 
> has been obsolete for ages (the generate was in mtx-base at that time). Just 
> use
> 
>  mtxrun --generate

Should the comment in the engine file change?

Context is called with:

mtxrun --script context --autogenerate --synctex=1 "$1“

Greetings
Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Axel Kielhorn


> Am 10.08.2020 um 14:59 schrieb Otared Kavian :
> 
> It is possible that the version of mtxrun or luatools scripts in TeXLive are 
> not working.

Well, one more suggestion:
Use TeX Live Manager to update TeX-Live.
I didn’t see any comments about context not working, but maybe the update fixes 
something.
(You can filter for context related packages.)

There has been one update to „context“ in June 2020.

> I don't remember what I did with TeXLive2019 to fix the issue, but my concern 
> is that if including ConTeXt in TeXLive is intended for people to use it, 
> then it SHOULD run without such tweakings which, even for someone who is a 
> regular user of ConTeXt, are not easy to find.

Well, it works here on a (relatively) clean install of 10.13.

> The solution consisting of installing a standalone tree of ConTeXt, is not a 
> real solution because many people do not know how to do it and, even if they 
> could, then what would be the point of doing so much work for people who 
> include a ConTeXt tree in TeXLive?

It should work.

> Anyway, I apologize for my acrimonius remarks, and I thank you again for your 
> help.

One more thing:
Please look at environment variables starting with TEX and comment them, they 
will cause problems.

And another one:
Please look into the home directory for a local .texlive2020 folder.
There shouldn’t be any and it shouldn’t contain anything context related.

Greetings
Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Axel Kielhorn


> Am 10.08.2020 um 12:03 schrieb Otared Kavian :
> 
> Hi all,
> 
> I suggested to a friend, who is using plain TeX and LaTeX, to switch to 
> ConTeXt, and since he is using TeXShop on MacOSX with a version of 
> TeXLive2020 (named MacTeX2020), I thought he would just typeset a simple test 
> document with the option « ConTeXt (LuaTeX) » from the menu in TeXShop, where 
> it does appear.
> 
> Unfortunately when doing this all he gets in the log file is:
> 
> /sw/bin/init.csh: No such file or directory.
> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
> 
> and I could not help him make the format (I do not have access to his 
> machine, and I was trying to explain what to do on the phone).

The TeXshop engine file says:

# Before using this engine, you must run the following command once in 
Terminal: luatools --generate

I probably did this when I installed TeXLive.

But I’m a little irritated by /sw/bin/.
Is this a real MacTeX installation and not something like homebrew?

Let’s start with the simple things:

What is the result of:
which context

it should be:
/Library/TeX/texbin/context

If that doesn’t work try:

which pdflatex

The result is probably not

/Library/TeX/texbin/pdflatex

but should give some indication where to look.

There may be an old installation of MacTeX without Context somewhere in the 
path.

If this is an old TeXShop installation, the Context engine may need an update 
because it points to the old PATH.
Simply copy the engine from ~/Library/TeXShop/Engines/inactive/ConTeXt to 
~/Library/TeXShop/Engines

Hope this helps
Axel


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bar within math (amended)

2020-06-11 Thread Axel Kielhorn


> Am 09.06.2020 um 20:41 schrieb Wolfgang Schuster 
> :
> 
> Use a textbackground to highlight parts of your text.
> 
> \definetextbackground
>  [Highlight]
>  [frame=off,
>   background=color,
>   backgroundcolor=yellow]
> 
> \starttext
> 
> \m{1 + 2 = \unit{3 kilo newton}}
> 
> \m{1 + 2 = \Highlight{\unit{3 kilo newton}}}
> 
> \stoptext
> 
> Wolfgang
> 

Is there a way to highlight just the words and leave the space white?
Something like \overstrikes?

Greetings
Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] lmtx vs mkiv

2020-04-05 Thread Axel Kielhorn


> Am 03.04.2020 um 11:07 schrieb Hans Hagen :
> 
> For that reason the latest lmtx installer now (for the time being) also 
> includes the luatex binary (plus mkiv files needed) so that one can install 
> lmtx and run both engines. Instead of the --luatex switch one can also force 
> the engine in the usual way with "% engine=luatex" at the top line of the 
> source file (but no pdftex and xetex in this installer).

I updated LMTX on MacOSX 10.13 today.

The luatex binary in not executable, thus when I run

axel$ context --luatex --version
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/usr/local/texlive/LMTX/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context 
--luatex --version --redirected
mtx-context | ConTeXt Process Management 1.02
mtx-context |
mtx-context | main context file: /Volumes/Macintosh 
HD/usr/local/texlive/2019/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.03.21 21:39

it picks up the TeX-Live version.

after I 

axel$ chmod 744 luatex 

I get the correct version:

axel$ context --luatex --version
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/usr/local/texlive/LMTX/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context 
--luatex --version --redirected
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: /Volumes/Macintosh 
HD/usr/local/texlive/LMTX/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.04.03 10:31
mtx-context | main context file: /Volumes/Macintosh 
HD/usr/local/texlive/LMTX/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.04.03 10:31

Greetings
Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ePub issues: XML structure

2020-03-12 Thread Axel Kielhorn


> Am 12.03.2020 um 08:09 schrieb Henning Hraban Ramm :
> 
>> Am 2020-03-11 um 22:42 schrieb Axel Kielhorn :
>> 
>> Actually your workshop is the reason I plan to attend the meeting.
> 
> Nice to hear, you’re welcome!

As a preparation I have updated my german intro at:

https://github.com/AKielhorn/Context-Intro

> 
>> I hope Corona does not interfere.
> 
> me too! Yesterday the DANTE board wrote they’re still considering.
> Well, my bed is paid for, and won’t get refunded.

We’ll see.

Greetings Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ePub issues: XML structure

2020-03-11 Thread Axel Kielhorn


> Am 11.03.2020 um 20:59 schrieb Henning Hraban Ramm :
> 
> Hi Axel,
> will I meet you by chance at the DANTE in Lübeck?
> 
> In that case it would be nice if you could assist me with my "ConTeXt for 
> beginners workshop" to tell something about Lua & XML.
> 
> Greetlings, Hraban

Actually your workshop is the reason I plan to attend the meeting.

I hope Corona does not interfere.

Greetling[1], Axel

[1] There are no Tikzgreetlings, as far as I know.


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Axel Kielhorn
Hello Hans and mailing list!

Thank you so much.

With this example and the help I received earlier from Massi, 
I’ve been able to write my first finalizer today.

It is amazing how powerful luatex is.

My project needs some cleanup and documentation but I hope to put it on GitHub 
soon.
After that I will try to put a minimal version into the wiki.

Greetings Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Axel Kielhorn


> Am 11.03.2020 um 15:19 schrieb Hans Hagen :
> 
> On 3/11/2020 3:12 PM, Axel Kielhorn wrote:
>>> Am 11.03.2020 um 15:01 schrieb Hans Hagen :
>>> 
>>> On 3/11/2020 2:14 PM, Axel Kielhorn wrote:
>>>> 
>>>> Had to change it to:
>>>> \startluacode
>>>>function xml.finalizers.tex.MyDate(e,what,how)
>>>>local ee = e[1].at[what]
>>>>local t = (string.split(ee,"-"))
>>>>context.date(
>>>>{ y = t[1], m = t[2], d = t[3] },
>>>>{ how }
>>>>)
>>>>end
>>>> \stopluacode
>>> You mean the () around the split? weird. Anyway, there's also a time 
>>> splitter (dedicated to Alan who needed one):
>> No, sorry that’s an artifact from testing.
>> I had to assign:
>> local ee = e[1].at[what]
>> and
>> string.split(ee,"-")
>> in two steps while the original had
>> local t = string.split(e[1].at[what],"-")
> still strange because it's one value, if it were multiple you could do

This is strange.
Now it works.

Earlier I had context.date complaining that it got a table and not a string.
That’s why I took the t = assignment apart into pieces.

Now I copied the code from the original reply and it works.

Sorry for the noise.

Axel


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] XML to ConTeXt: converting date attribute from ISO date

2020-03-11 Thread Axel Kielhorn


> Am 15.08.2018 um 14:04 schrieb Hans Hagen :
> 
> On 8/15/2018 12:27 PM, Mike O'Connor wrote:
>> G’Day,
>> Having a first go at converting TEI XML to ConTeXt.
>> Steep learning curve, but easier (for me) than XSLT, and first results were 
>> amazing.  Using http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf as a 
>> guide.
>> Currently stuck on converting an ISO format date (eg. 1908-01-10) into 
>> something more readable (eg. 10 January 1908) in the output.  I presume I 
>> should create a function (?luacode) that can take any ISO value and output 
>> the readable form.  The following works but seems to me inefficient.
>> Grateful for any pointers.
>> Mike
>> Here is my MWE:
>> \startbuffer[demo]
>> 
>> 
>> 
>> 
>> 
>> 10.I.08
>> 
>> 
>> 19 Mar '08
>> 
>> 
>> 
>> 
>> 
>> \stopbuffer
>> \startxmlsetups xml:initialize
>> \xmlsetsetup{#1}{date}{xml:date}
>> \stopxmlsetups
>> \xmlregistersetup{xml:initialize}
>> \startxmlsetups xml:date
>> \xmldoifelse {#1}{.[@type='divDate']} {
>> \def\docdate{\ctxlua{
>> local tyear = string.sub('\xmlatt{#1}{when-iso}',1,4)
>> local tmonth = string.sub('\xmlatt{#1}{when-iso}',6,7)
>> local tday = string.sub('\xmlatt{#1}{when-iso}',9,10)
>> context.date{d = tday, m = tmonth, y = tyear}
>> }}
>> \docdate[day,month,year] = Document Date \par
>> } {
>> \def\docdate{\ctxlua{
>> local tyear = string.sub('\xmlatt{#1}{when-iso}',1,4)
>> local tmonth = string.sub('\xmlatt{#1}{when-iso}',6,7)
>> local tday = string.sub('\xmlatt{#1}{when-iso}',9,10)
>> context.date{d = tday, m = tmonth, y = tyear}
>> }}
>> \docdate[day,month,year] = Event Date\par
>> }
>> \stopxmlsetups
>> \starttext
>> \xmlprocessbuffer{main}{demo}{}
>> \stoptext
> Can be wikified ...
> 
> \startluacode
>function xml.finalizers.tex.MyDate(e,what,how)
>local t = string.split(e[1].at[what],"-")
>context.date(
>{ y = t[1], m = t[2], d = t[3] },
>{ how }
>)
>end
> \stopluacode
> 
> \startxmlsetups xml:date
> 
>   \xmldoifelse {#1}{.[@type='divDate']} {
>\xmlfilter{#1}{./MyDate("when-iso","day,month,year")}\
>   Document Date \par
>} {
>\xmlfilter{#1}{./MyDate("when-iso","day,month,year")}\
>Event Date\par
> 
>   }
> \stopxmlsetups

I couldn’t get this to work.
Had to change it to:

\startluacode
   function xml.finalizers.tex.MyDate(e,what,how)
   local ee = e[1].at[what]
   local t = (string.split(ee,"-"))
   context.date(
   { y = t[1], m = t[2], d = t[3] },
   { how }
   ) 
   end
\stopluacode

mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: /Volumes/Macintosh 
HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.01.30 14:13
mtx-context | main context file: /Volumes/Macintosh 
HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.01.30 14:13

Greetings Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Need help processing XML in luacode

2020-03-11 Thread Axel Kielhorn
Hello Massi,

thanks for you help.


> Am 10.03.2020 um 20:53 schrieb mf :
> 
> In your tex file, try this:
> 
> \startluacode
> settings = {}
> docstruktur = {}
> doclistfile = "doclist.xml"
> 
> local striplines = utilities.strings.striplines
> 
> cropstring = function(s)
>  -- return striplines(s, "prune and collapse")
>  return striplines(s)
> end

Well, with this definition I can actually inline that.

> local xmltext= xml.text
> 
> doc = xml.load(doclistfile, settings)
> 
> for v in xml.collected(doc,"/doclist/psdoc/") do
> --  print (v)
> --  print (xml.text(v,"/docnr"))
>  local docnr = cropstring(xml.text(v,"/docnr"))
>  print (docnr)
>  local docname = cropstring(xmltext(v,"/docname"))
>  -- es kann mehrere DOCAN geben!
>  local docan = (cropstring(xmltext(v,"/docan")))
>  local docverantwortlich = (cropstring(xmltext(v,"/docverantwortlich")))

>  docstruktur[docnr]={
>docname = docname,
>docan = docan,
>docverantwortlich = docverantwortlich
>  }

Great, that is even shorter.

> end
> \stopluacode

I’m cleaning up my backend code to make it more Lua like.

Greetings
Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Need help processing XML in luacode

2020-03-10 Thread Axel Kielhorn
Hi,

after one year I’m back at a project processing XML with ConTeXt.

Here is what I want to do:
I have an XML file that I want to format with ConTeXt.
I got this working last year.

Now I want to take some information from a second file.

My idea is to read the second file, store the data into a table and 
write auxiliary functions to access the data and insert them into the TeX 
output.

When I process the included files with

context --environment=prozess-style-ecm.tex prozess.xml

I get

[ctxlua]:19: table index is nil

12 
13 doc = xml.load(doclistfile, settings)
14 
15 for v in xml.collected(doc,"/doclist/psdoc/") do
16  -- print ((xml.filter(v,"//docnr/stripped()")))
17  docnr = (cropstring(xml.filter(v,"/docnr/text()")))
18  docname = (cropstring(xml.filter(v,"/docname/text()")))
19  -- es kann mehrere DOCAN geben!
20  docan = (cropstring(xml.filter(v,"/docan/text()")))
21  docverantwortlich = 
(cropstring(xml.filter(v,"/docverantwortlich/text()")))
22 >>   docstruktur[docnr]={}

The xml.collected works, but the xml.filter returns nil.

What did I miss?

mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file: /Volumes/Macintosh 
HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2020.01.30 14:13
mtx-context | main context file: /Volumes/Macintosh 
HD/usr/local/texlive/context-109/tex/texmf-context/tex/context/base/mkiv/context.mkxl
mtx-context | current version: 2020.01.30 14:13

The same code works when I use it in a Lua file that I call with

mtxrun --script panalyse.lua

Greetings Axel




doclist.xml
Description: XML document


prozess.xml
Description: XML document


prozess-style-ecm.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Documentation of change / Evolving documents

2019-10-11 Thread Axel Kielhorn
Hello!

I have added my document about evolving documents to the Wiki at:

https://wiki.contextgarden.net/Changes_Evolution

and included it into the list of sample documents.

Share and enjoy

Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Documentation of change / Evolving documents

2019-09-29 Thread Axel Kielhorn

> Am 29.09.2019 um 10:50 schrieb Wolfgang Schuster 
> :
> 
> Henning Hraban Ramm schrieb am 29.09.2019 um 10:36:
>>> Am 2019-09-29 um 08:59 schrieb Axel Kielhorn :
>>> 
>>> But I would prefer to write
>>> 
>>> \startChangeA{V. 2.0}
>>> Mit den Befehlen \type{\Changea}, \type{\Changer} und \type{\Changec} 
>>> werden hinzugefügte, gelöschte oder geänderte Satzteile gekennzeichnet. Der 
>>> Befehl \type{\Changec} hat zwei Argumente: alter Text und neuer Text.
>>> \stopChangeA
>> See https://wiki.contextgarden.net/Command/definestartstop
> 
> Another option: https://wiki.contextgarden.net/Command/startuserdata
> 
> Wolfgang

Thanks!
I’ll look into next weekend.

Greetings Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Documentation of change / Evolving documents

2019-09-29 Thread Axel Kielhorn

> Am 19.01.2019 um 09:06 schrieb Axel Kielhorn :

Earlier this year I wrote a first attempt to document evolving documents.
In the meantime this document has evolved and I included the current version 
here.

There is only one thing I don’t like:

Currently I write:

\ChangeA{V. 2.0}{Mit den Befehlen \type{\Changea}, \type{\Changer} und 
\type{\Changec} werden hinzugefügte, gelöschte oder geänderte Satzteile 
gekennzeichnet. Der Befehl \type{\Changec} hat zwei Argumente: alter Text und 
neuer Text.}

But I would prefer to write

\startChangeA{V. 2.0}
Mit den Befehlen \type{\Changea}, \type{\Changer} und \type{\Changec} werden 
hinzugefügte, gelöschte oder geänderte Satzteile gekennzeichnet. Der Befehl 
\type{\Changec} hat zwei Argumente: alter Text und neuer Text.
\stopChangeA

Or maybe:
\startChangeA[version={V. 2.0}]

Once this is fixed I’d like to translate it to english and put it into the Wiki.

Greetings
Axel



context_change.tex
Description: Binary data



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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem with UTF8 chars in XML elements

2019-05-05 Thread Axel Kielhorn

> Am 05.05.2019 um 14:58 schrieb Pablo Rodriguez :
> 
> Dear list,
> 
> I have the following sample:
> 
>\startbuffer[demo]
>
>
>Title
>
>\stopbuffer
> 
>\startxmlsetups xml:sample
>\xmlsetsetup{#1}{doc|título}{xml:*}
>\stopxmlsetups
> 
>\xmlregistersetup{xml:sample}
> 
>\startxmlsetups xml:doc
>\xmlflush{#1}
>\stopxmlsetups
> 
>\startxmlsetups xml:título
>\title{\xmlflush{#1}}
>\stopxmlsetups
> 
>\starttext
> \xmlprocessbuffer{main}{demo}{}
>\stoptext
> 
> ConTeXt has problems parsing . To the best of my knowledge, this
> is a valid XML element name (sorry, but I don’t have a better reference:
> https://en.wikipedia.org/wiki/XML#International_use]).

I had the same problem with an „ä“ in one of my elements.

Took some time to discover that.

Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Reading XML with lua

2019-05-03 Thread Axel Kielhorn
Hi,

I’ m finally at a point where I can read an XML file look at it and write it 
back.

Right now I have two problems:

1. There are many empty entries in the table.
This makes processing the file a little tedious since I have to filter the real 
entries.

2. Some entries contain leading and trailing whitespace and linkebreaks.
These are the result of formatting the XML file.
Shouldn't
strip_cm_and_dt
take care of them?
Or do I use that incorrectly?

I have included my lua file and an example xml.
You can run it with
mtxrun —script p.lua

Greetings Axel





doclist.xml
Description: XML document


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \xmlloadfile not longer defined?

2019-05-03 Thread Axel Kielhorn
Hi,

according to xml-mliv.pdf there is a command

\xmlloadfile

But I get:

tex error   > tex error on line 168 in file 
/Users/axel/Documents/Text/Dokumente_ConTeXt/Prozessbeschreibung/prozess-style-buffer.tex:
 ! Undefined control sequence

l.168 \xmlloadfile
{doclist.xml}{doclist}{}

and grep does not find it.

\xmlload

works.

Greetings Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn

> Am 22.04.2019 um 11:40 schrieb Pablo Rodriguez :
> 
> I have some questions about your source file:
> 
>  \startxmlsetups xml:prozess
> \mainlanguage[de]
> 
> If this is hardcoded (I mean, you don’t read it from any XML code), I
> would avoid setting the \mainlanguage here.
> 
> And you already set it in lines 82-83:
> 
>  \language[de]
>  \mainlanguage[de]
> 
> BTW, is there any reason to set both \language and \mainlanguage?
> (\mainlanguage should be enough.)

A leftover from merging two documents.
Once should be sufficient.
I’m not sure if it was a good idea to use german names for the elements.
Using english names and making the language configurable may be the next step.


>> I want to set page headers based on information I get from the XML:
>> 
>> \startxmlsetups xml:prozess
>>  \setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date]
>> 
>> This works on the first page (when the document has more than one
>> page) but headers and footers are empty on subsequent pages.
>> 
>> Something (xmlflush?) overwrites my setup.
>> Any idea how I can fix that?
> 
> I have a workaround for that:
> 
>  \title{\xmltext{#1}{/pnr} \xmltext{#1}{/pname}}
> 
> And in your preamble:
> 
>  \setupheadertexts[title][\date]
>  \setuphead[title]
>[placehead=empty,
> before=,
> after=,
> page=,]
> 
>> I want to use xmlconcat here, since there may be more than one docan, but I 
>> only get the „, “
>> 
>> \startxmlsetups xml:psoutdoc
>> %\inmargin{\xmltext{#1}{/docan} $\Leftarrow$}  {\bf 
>> \xmltext{#1}{/docnr}}\xmlflush{#1}
>>\inmargin{\xmlconcat{#1}{/docan}{, } $\Leftarrow$}  {\bf 
>> \xmltext{#1}{/docnr}}\xmlflush{#1}
>>\xmlsave{#1}{outfile.xml}
>>\blank
>> \stopxmlsetups
> 
> I would avoid using:
> 
>  \startxmlsetups xml:docname
>\xmlflush{#1}
>  \stopxmlsetups
> 
> instead of "\xmltext{#1}{/docname}" in the proper places.

Right, I startet out \xmlflush{}ing everything and turned it into \xmltext 
later.
I missed this one.

> You need to add to get proper content:
> 
>  \startxmlsetups xml:docan
>\xmlflush{#1}
>  \stopxmlsetups
> 
> I would replace docname with docan in both places (xmlsetsetup and its
> proper \starxmlsetups).

Great, it works now.

> BTW, what should be child notes to #1? An special lpath or what?

I want to add
\xmltext{#1}{../../pverantwortlich}
to psindoc

And
\xmltext{#1}{../../pverantwortlich}
to psoutdoc

before writing the ps[in|out]doc to an extra file.

But thinking about it, it may be easier to load a  tree from 
a separate file
and add / edit the doc entries based on the .
(s are unique.)

This part isn’t even in my head now.

> Just in case it helps,

It did, thanks!
Right now the document does what I wanted to do in ConTeXt.
I’m tempted to write the remaining functions in lua instead of python.

Still a lot to learn ahead.

Greetings Axel



___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Processing XML: Header and footer, data manipulation

2019-04-22 Thread Axel Kielhorn
Hello,

Pablo Rodríguez wrote in „From pandoc to ConTeXt“:

„So, if I was able to do this, probably anybody can do it.“

Well, I tried and indeed it isn’t as difficult as i thought.
(Once I learned that an entity must not contain non-ASCII characters.)

Some questions remain:

I want to set page headers based on information I get from the XML:

\startxmlsetups xml:prozess
  \mainlanguage[de]
  \setupheadertexts[\bf\xmltext{#1}{/pnr} \xmltext{#1}{/pname}][\date]
  {\bTABLE
\setupTABLE[frame=off]
\setupTABLE[offset=1mm]
\setupTABLE[c][1][align=right, width=14cm]
\setupTABLE[c][2][align=left,  width=6cm]
\setupTABLE[c][3][align=right, width=4cm]
\bTR \bTD \bfb\xmltext{#1}{/pnr}   \eTD \bTD Version:\eTD \bTD 
\bf\xmltext{#1}{/pversion}\eTD \eTR
\bTR \bTD \bfb\xmltext{#1}{/pname} \eTD \bTD Verantwortlich: \eTD \bTD 
\bf\xmltext{#1}{/pverantwortlich}\eTD\eTR
  \eTABLE}
  \blank
  \xmlflush{#1}
\stopxmlsetups

This works on the first page (when the document has more than one page) but 
headers and footers are empty on subsequent pages.

Something (xmlflush?) overwrites my setup.
Any idea how I can fix that?

I want to use xmlconcat here, since there may be more than one docan, but I 
only get the „, “

\startxmlsetups xml:psoutdoc 
%\inmargin{\xmltext{#1}{/docan} $\Leftarrow$}  {\bf 
\xmltext{#1}{/docnr}}\xmlflush{#1}
\inmargin{\xmlconcat{#1}{/docan}{, } $\Leftarrow$}  {\bf 
\xmltext{#1}{/docnr}}\xmlflush{#1}
\xmlsave{#1}{outfile.xml}
\blank
\stopxmlsetups

I want to write the nodes psindoc and psoutdoc to a separate file.
\xmlsave overwrites the file, is there a way to append to the file? (or append 
to a buffer and write the buffer?)

\startxmlsetups xml:psindoc
\inmargin{\xmltext{#1}{/docverantwortlich} $\Rightarrow$} {\bf 
\xmltext{#1}{/docnr}}\xmlflush{#1}
\xmlsave{#1}{outfile.xml}
\blank
\stopxmlsetups

Can I add child notes to #1?

The last two questions probably require LUA, what is a good way to start 
learning LuaTeX?

I enclosed a small test file.

Greetings Axel

PS: This may result in an article for „Die TeXnische Komödie“.




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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Automatic thousands separation in \unit

2019-02-02 Thread Axel Kielhorn

> Am 31.01.2019 um 15:00 schrieb Clyde Johnston :
> 
> Maybe this should be a language specific parameter.  How would you achieve a 
> similar result with the Indian numbering system, for instance?
>  
> Also, decimal and thousands separators vary from country to country.  In 
> France, for example, they use the comma for the decimal separator, and space 
> for the thousand separator.
>  
> Clyde

Shouldn’t \spaceddigits use the separator as defined by \setdigitmode and 
\setdigitorder?

Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Documentation of change / Evolving documents

2019-01-19 Thread Axel Kielhorn
Hi,

I often have documents that are not finished but need to change over time.
A client changes their mind, laws are changed, …

While working with the document, I want to see the changes.
When the document is finally finished, I only want to see the change history.

I came up with the following.
When the mode is „change“  the date (or version) is shown in the margin and the 
change is printed in red.
Without mode „change“ only the change history is printed.

What I want now is to change the layout of the register.
Adding some vspace around the date and printing the date in bold.
Is there a way to achieve this or am I on the wrong way?
(Should the date be the indicator, thus giving me the layout I want?)

\enablemode[change]

\setuppapersize [A4][A4]
\setuplayout[width=middle,  backspace=1.5in, cutspace=1.5in,
 height=middle, topspace=0.75in, bottomspace=0.75in]

\setupbodyfont[11pt]

\defineregister [change]
\setupregister  [change] [
  indicator=no  %% no letter
  style=sansbold,   %% headings
  textstyle=slanted,%% entries
  pagestyle=bolditalic, %% page refs
  n=1,  %% columns
]

\def\ChangeV#1#2{\change{#1+#2}\doifmode{change}{\inmargin{\tx #1}{\red 
#2\par}}}
\def\ChangeD#1#2{\change{#1+#2}\doifmode{change}{\inmargin{\tx #1}{\red 
#2\par}}}

\starttext

\ChangeV{V. 1.0}{Fertig!}
\input knuth

\ChangeD{2018-12-22}{Fertig!}

\ChangeD{2018-12-23}{Letzter Fehler beseitigt.}
\input knuth

\ChangeD{2018-12-23}{Allerletzter Fehler beseitigt.}

Ende

\startsection[title={History}]

\placechange

\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] PDF/A and \chemical

2019-01-03 Thread Axel Kielhorn
A happy new year to everyone!

I’m trying to generate PDF/A compliant files and have a Problem with chemical 
formulas in text.
The following does not work:

\setupinteraction
[title=TITLE,
 subtitle=SUBTITLE,
 author=AUTHOR,
 keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}]

%% For PDF/A
\setupbackend[
format={pdf/a-1b:2005}, % or pdf/a-1a:2005
profile={default_cmyk.icc,default_rgb.icc,default_gray.icc},
intent=ISO coated v2 300\letterpercent\space (ECI)]

%% Tagged PDF
%% method=auto ==> default tags by Adobe
\setupbackend[export=yes]
\setupstructure[state=start,method=auto]

\starttext

\chapter[chap:testing]{Testing}

Das kann man auch als Textformel darstellen: \chemical{2 H_2,PLUS,O_2,GIVES,2 
H_2O}.

\input tufte

\stoptext

If I include the \chemical command inside a

\startchemicalformula \stopchemicalformula

everything works.

What am I missing?

Greetings Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnotes and endnotes

2018-11-18 Thread Axel Kielhorn

> Am 17.11.2018 um 15:43 schrieb Pablo Rodriguez :
> 
> On 11/17/18 1:51 PM, Axel Kielhorn wrote:
>> Hello,
> 
> Hi Axel,
> 
>> I want to show the translator notes in a different way. Right now I
>> have the footnote in green, but the footnote marker in the text does
>> change neither font nor color?> Shouldn’t the marker be green and
>> bold? Setting numberconversion works, but the other options seem to
>> be without effect.
> 
>\setupnote[translaternote][textstyle=\bf, textcolor=green]

With this information I found:

https://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote

The headcolor in \setupnotation is actually the color of the marker in the note
while the maker in the text is defined with \setupnote.

I guess I have to request edit rights for the garden.
DONE

> 
>> I want to include longer notes as endnotes. I can change the marker
>> shown with the notes to (1) but he marker in the text does not
>> change. Thus you can’t distinguish between a footnote and an
>> endnote.
> 
> As far as I know, left and right arent’t options in \setupnote.

The page mentioned above offers the following solution:

\definenote[commentnote][endnote]  
  \setupnotation[commentnote] [color=red,left={(},right={)}]
  \setupnote [commentnote] [textcommand=\mycommentcommand]
\define[1]\mycommentcommand{\high{\tfxx(#1)}}

Thanks for pointing me in the right direction.

Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Footnotes and endnotes

2018-11-17 Thread Axel Kielhorn
Hello,

I have some problems with footnotes and endnotes.

I have two kinds of footnotes:
Those by the original author and those by the translator.

I want to show the translator notes in a different way.
Right now I have the footnote in green, but the footnote marker in the text 
does change neither font nor color?
Shouldn’t the marker be green and bold?
Setting numberconversion works, but the other options seem to be without effect.

I want to include longer note as endnotes.
I can change the marker shown with the notes to (1) but he marker in the text 
does not change.
Thus you can’t distinguish between a footnote and an endnote.

I tried a footnote within a footnote, that didn’t work, should it?
(I don’t actually need this, I was just curious.)

When I define commentnote based on endnote I get the same numbering.
How can I either
- use different counters for both kind of notes or
- print both notes with the same placenotes command, in the right order?

Greetings
Axel

\starttext

\definenote[authornote][footnote]  
  \setupnotation[authornote]  [style=bold]
\definenote[translaternote][rule=off]  
  \setupnotation[translaternote]  [headstyle=bold, numberconversion=a, 
headcolor=green, style=bolditalic, color=green]
  % No color for the footnotemark?
\definenote[translaterpnote][rule=off] 
  \setupnotation[translaterpnote] [way=bypage, numberconversion=set 
2,headstyle=bold]
\definenote[commentnote][endnote]  
  \setupnotation[commentnote] [color=red,left={(},right={)}]
  % How to style the footnotemark in the text?
  \setupnotation[endnote] [left={(},right={)}]

\startsection[
  reference=fußnoten,
  title={Fußnoten}
  ]
\index{Fußnoten}

\input ward\footnote{Eine normale Fußnote. Mit etwas Text, damit die Seite voll 
wird. \input ward}

\input ward\translaternote{Eine Fußnote des Übersetzters}
\commentnote{Mehr Informationen gibt es in den Endnoten am Ende des Kapitels.}

\input ward\translaterpnote{Alternativ kann man die Übersetzernoten auch 
seitenweise nummerieren.
Zur Unterscheidung von normalen Fußnoten hier mit Zeichen statt Zahlen.}

\input ward\footnote{Was ist mit Fußnoten in Fußnoten?\footnote{Das geht 
natürlich auch.}} % Why not?

\input ward\endnote{Eine normale Endnote, ohne spezielle Formatierung. Man kann 
sie nicht von einer Fußnote unterscheiden.} 

\input ward\translaterpnote{Die zweite Fußnote auf der Seite.} 


\startsubsection[title={Endnoten}]

\placenotes[endnote]

\placenotes[commentnote]

\stopsubsection

\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] TextMate ConTeXt bundle

2018-11-16 Thread Axel Kielhorn

> Am 14.11.2018 um 17:57 schrieb Pablo Rodriguez :
> 
> On 11/14/18 1:55 PM, Manuel Blanco wrote:
>> 
>> 
>> ConTeXt, but I don't think there's an _updated_ structured
>> introduction. For instance regarding fonts I read here
>> https://tex.stackexchange.com/questions/448812/the-definitive-guide-to-context-mkiv-documentation/448813#448813
>> that the latest documentation is
>> http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf
> 
> Hi Manuel,
> 
> maybe the problem with ConTeXt is that the newcomers that complain about
> the lack of introductions never write them (even when they learn how to
> use ConTeXt).

I’m trying to do that, but I’m a slow learner.

The version I write is in german, but once it is finished it should be easy to 
translate it into english.

Having a short introduction was a great help when I learned LaTeX, writing an 
introduction will probably be a great help to learn ConTeXt.

There is still a lot missing, but you can get a glimpse at:

https://github.com/AKielhorn/Context-Intro

Greetings
Axel


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Projects and URLs

2018-11-03 Thread Axel Kielhorn
> Am 02.11.2018 um 13:08 schrieb Wolfgang Schuster 
> :
> 
> Axel Kielhorn schrieb am 02.11.18 um 10:10:
>> Hello!
>> 
>> Where is the best way to define URLs in a project?
>> 
>> I currently define them when I need them, but wouldn’t it be better to keep 
>> them in a project file and have only one location to edit when they change?
> 
> When you use \useurl in combination with \url or \from you can define them in 
> a environment file. To make themeasier to handle you can use a separate 
> environment file only for the urls.
> 
> 
> \setupinteraction[state=start]
> 
> \useurl [garden] [https://wiki.contextgarden.net/] [ConTeXt garden]
> 
> \starttext
> 
> \url [garden]
> 
> \from[garden]
> 
> \stoptext


Is there a way to loop over all defined urls to generate a link list (like a 
bibliography)?

Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] German introduction to context

2018-11-02 Thread Axel Kielhorn

> Am 02.11.2018 um 12:28 schrieb Hans Hagen :
> 
> On 11/2/2018 10:07 AM, Axel Kielhorn wrote:
>> Hello!
>> As promised I’ve uploaded my ConTeXt introduction to github.
>> You can find it at
>> https://github.com/AKielhorn/Context-Intro
>> I used MkIV syntax for \startsection \stopsection but gave up on 
>> \startparagraph \stoparagraph.
>> Is there a way to auto convert that or do I have to add these command once I 
>> want to generate tagged PDF?
> 
> normally \startparagraph is not needed

Good to hear that.

Should I remove them to avoid confusion?

> 
>> Feel free to comment, this is the second time I use ConTeXt and I wanted to 
>> keep notes about the things I need.
> why not also put a pdf there

Changed gitignore, I’ll include the PDF with the next version.

Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Projects and URLs

2018-11-02 Thread Axel Kielhorn
Hello!

Where is the best way to define URLs in a project?

I currently define them when I need them, but wouldn’t it be better to keep 
them in a project file and have only one location to edit when they change?

Greetings Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] German introduction to context

2018-11-02 Thread Axel Kielhorn
Hello!

As promised I’ve uploaded my ConTeXt introduction to github.
You can find it at 
https://github.com/AKielhorn/Context-Intro

I used MkIV syntax for \startsection \stopsection but gave up on 
\startparagraph \stoparagraph.

Is there a way to auto convert that or do I have to add these command once I 
want to generate tagged PDF?

Feel free to comment, this is the second time I use ConTeXt and I wanted to 
keep notes about the things I need.

Future plan:
Learn more about bibliography.
Create PDF/A (or /UA).
More math as I need it.

Alternative environments to change the look.

Greetings Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] German introduction to context

2018-10-22 Thread Axel Kielhorn

> Am 21.10.2018 um 16:33 schrieb Pablo Rodriguez :
> 
> Hi Axel,
> 
> how about creating a repository at GitLab with the contents you provide?
> 
> This would make contributions easier.

I’m planing to do this, but I want to turn it into a project first (probably 
overkill but a good example) and add some of the things I learned recently.

Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] German introduction to context

2018-10-21 Thread Axel Kielhorn
Hello,

I’m looking for an introduction in german.
What I need is:
- Structure chapter/section …
- Emphasis bold/italic
- lists itemize
- floats
- TABLE
- index
- references
- math (with units)
- chemistry (only basic stuff)

Several years ago I started to prepare a talk for a DANTE meeting, trying to 
show how to generate epub from context.
Since I got a new job in early 2015 I didn’t have time to finish the talk or go 
to the meeting.
I’ll use the enclosed text as a starting point, unless someone already has a 
usable manual.

Note: Dominik Wagenführ was an editor of the now defunct „Freies Magazin“ and 
he supplied a LaTeX document of examples that needed to be converted into ePub. 
Thus the enclosed document is mainly concerned about epub.

Greetings Axel

<>


PS: Comments are welcome.___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Formulas in TABLE with character alignment

2018-10-09 Thread Axel Kielhorn

> Am 09.10.2018 um 11:54 schrieb Hans Hagen :
> 
>\bTR[aligncharacter=no] \bTD\eTD \bTD \chemical{NH_3} 
> \eTD \bTD R407C \eTD \bTD R134a  \eTD \eTR

Great, such a simple and elegant solution.

Thanks Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Formulas in TABLE with character alignment

2018-10-09 Thread Axel Kielhorn
Hello,

I decided to use TABLE because I may need some more complex layouts later and 
want to use just one way to define a table.

One of the great things about TABLE is the possibility to align columns.
The table below works fine when I comment the first \bTR line.
With the first line the result is strange.
I need some way to protect the words in the header, putting them in an \mbox 
didn’t help.

\starttext
{
\setupTABLE[row][each][frame=off]
\setupTABLE[c][1][width=0.1\textwidth]
\setupTABLE[c][2][width=0.1\textwidth,alignmentcharacter={,},aligncharacter=yes,align=middle]
\setupTABLE[c][3][width=0.1\textwidth,alignmentcharacter={,},aligncharacter=yes,align=middle]
\setupTABLE[c][4][width=0.1\textwidth,alignmentcharacter={,},aligncharacter=yes,align=middle]

\bTABLE
\bTABLEbody
\bTR \bTD\eTD \bTD \chemical{NH_3} \eTD \bTD R407C  
   \eTD \bTD R134a  \eTD \eTR
\bTR \bTD \math{t_s} \eTD \bTD \math{p_s}  \eTD \bTD \math{p_s} 
   \eTD \bTD \math{p_s} \eTD \eTR
\bTR \bTD \unit{Celsius} \eTD \bTD \unit{bar}  \eTD \bTD \unit{bar} 
   \eTD \bTD \unit{bar} \eTD \eTR
\bTR \bTD \unit{+35} \eTD \bTD 13,50  \eTD \bTD 14,47  \eTD \bTD 
8,865 \eTD \eTR
\bTR \bTD \unit{-40} \eTD \bTD  0,717 \eTD \bTD  0,956 \eTD \bTD 
0,516 \eTD \eTR
\eTABLEbody
\eTABLE
}
\stoptext

Greetings Axel
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn

> Am 05.10.2018 um 17:33 schrieb Wolfgang Schuster 
> :
> 
> I took a look at your example files and there a few things which can be 
> improved.
> 
> 
> Product file:
> 
> 1. You don’t need the actual name of the current file and use * instead
> 
> 2. You can use brackets as delimiters for the file name instead of a space 
> after the name

Does this mean I can use a space in the filename?
> 
> 3. In products you can put all content in a document environment which has 
> hooks to insert text etc. at the begin and end of the document (which can be 
> used to insert a titlepage or endpage). You can even use \startdocument (or 
> \setupdocument) to set the document name in the pdf viewer (yes it can also 
> be done with \setupinteraction but \startdocument is nicer).
> 
> A minimal file would be
> 
> \startproduct [*]
> 
> \project [project_skel]
> 
> \startdocument
> 
> \component [c_01]
> \component [c_02]
> 
> \stopdocument
> 
> \stopproduct
> 
> or

[..]

> Environment file:
> 
> 1. Don’t load the project from your environment file
> 
> 2. Don’t use \usepath to set the folders for the product files, use it 
> instead to set the folders for your component files which are loaded from the 
> products

Does this mean that I should use a product level environment file for the 
\usepath?
(Accessing things like ../img_global?)

> 3. You can remove the braces around the subfolder which aren’t necessary.

Thanks for the clarification.

I have updated my project.

Greetings Axel


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-05 Thread Axel Kielhorn

> Am 04.10.2018 um 20:59 schrieb Henning Hraban Ramm :
> 
> Am 2018-10-04 um 10:08 schrieb Axel Kielhorn :
> 
>> Thus having the whole file inside \start{project|product|component} \stop… 
>> would be a good idea and consistent.
> 
> That’s what I do.
> Since I wrote that wiki page (some years ago) I’ll change it.

I appreciate that.

How about offering a skeleton project for download?

Here is my corrected ECM with the following README:

This is a skeleton project.
You can copy it and change the files to contain your content.

The top level project collects metatdata to make all products have the same
layout. It is not meant to be processed by context.

The products are used to generate the whole book, but you can process each
component seperately to reduce the processing time.


<>



Greetings
Axel___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Axel Kielhorn

> Am 04.10.2018 um 09:27 schrieb Taco Hoekwater :
> 
>> According to my understanding I should be able to
>> context c_01 to get one chapter
>> context prd_A to get one product
>> context project_ecm to get the whole book.
> 
> Any whole book should be a product, and the Parts should just be components. 
> The project level is only there to connect meta-info across a book series. 
> You are not supposed to run ‘context’ on the project file.

I see.
I’ll probably keep it as three books.
It’s easy to change later as long as the components have different names.
Right now that’s just a limitation of the word processor.

> That said, it is definitely not your installation or understanding of the
> wiki page that creates the circular inclusion. The same happens here. I 
> discovered it works OK if I move the \product to within the \startcomponent,
> and I assume that is how it supposed to work:
> 
>  \startcomponent
>  \product prd_1
>   … 
>  \stopcomponent

Works here as well, thank you.
What about the project?
Right now it is outside the \start{product|component} and it works.

Now it is inside the \start{product|component} and it works as well.

Next question:
Should the environment be inside \startproject \stopproject?

It seems to make no difference.

Thus having the whole file inside \start{project|product|component} \stop… 
would be a good idea and consistent.

> At a guess, I think the wiki page is wrong. But before editing that,
> I would like to have confirmation of the above assumption.

Thanks for the quick response, now I can tell pandoc to convert the book to 
context:-)

Greetings Axel

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Need help with project: TeX capacity exceeded

2018-10-04 Thread Axel Kielhorn
Hello,

this is my second try to start with context and I can’t even do the first step.

I’m planing to convert a large but simple document to context.
The document consists of 3 Parts.
Each part has several chapters.

Thus I started to build a project with three products, see enclosed archive.

According to my understanding I should be able to
context c_01 to get one chapter
context prd_A to get one product
context project_ecm to get the whole book.

The first two steps lead to circular inclusion and the TeX capacity error.
The last step doesn’t load the products and creates no files.

I got my information from

https://wiki.contextgarden.net/Project_structure

and think I adapted them correctly, but obviously I didn’t.

I included the log files in case there is something broken with my setup.

Greetings
Axel

<>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt and LilyPond problem

2016-07-03 Thread Axel Kielhorn

> Am 29.06.2016 um 10:47 schrieb Robert Blackstone 
> :

> I think I have solved my problem.
> Somehow I managed to get Lilypond working from Terminal.  Then I placed the 
> ConTeXt-example with the LilyPond filter that I tried to compile in the same 
> directory als the lilypond binary. Compiling it, as usual, from TeXShop it 
> still did not start LilyPond and the .pdf still had: "[[output file missing"  
> where the musical example should have been.

You probably had to include 
/Applications/LilyPond.app/Contents/Resources/bin
into $PATH.

This PATH is only known in the Terminal.
When you call ConTeXt from the GUI (via TeXShop) you only have the default PATH.

Since TeXShop calls context via an engine file, you can add the PATH in the 
engine:

Change this line (actual path to context may differ):

set path= (/usr/local/texlive/context/tex/texmf-osx-64/bin /usr/local/bin $path 
)

to

set path= (/usr/local/texlive/context/tex/texmf-osx-64/bin /usr/local/bin 
/Applications/LilyPond.app/Contents/Resources/bin $path )

You will find the engines in:
~/Library/TeXShop/Engines

Axel
___
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] em-/en-dashes and newotf

2015-07-12 Thread Axel Kielhorn

 Am 12.07.2015 um 16:38 schrieb Pablo Rodriguez oi...@gmx.es:
 
 On 07/12/2015 04:12 PM, Hans Hagen wrote:
 [...]
 maybe some file is not loaded ... i uploaded a variant that might work 
 better
 
 Many thanks for the new beta.
 
 I’m afraid that this sample doesn’t work with latest beta either:
 
\usemodule[newotf]
 
\definefontfeature[noliga][liga=no]
 
\starttext
\startTEXpage[offset=1em]
fiflff no--liga:
\addfeature[noliga]fiflff
 
--- em--dash
\stopTEXpage
\stoptext
 
 I may be wrong, but I think that the non-deactivated OpenType feature is
 related to the non-activated em- and en-dashes.
 
 To the list members: could you test the sample above and tell em- and
 en-dashes work and if no-liga disables ligatures? Adding architecture
 may help.

I’m using 
current version: 2015.07.12 00:00
on MacOSX 10.10

I get ligatures in both cases and neither em nor en dash.

Now I have
current version: 2015.07.12 15:40
still on MacOSX 10.10

No ligatures in the second case and both en and em dash.

Axel


___
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] Context to epub: itemize

2015-02-16 Thread Axel Kielhorn
Hi,

I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
environment to work.

I follow http://wiki.contextgarden.net/ePub and get the structure described but 
when I look into the xhtml, there is no itemize environment. (At least no with 
Safari, Firefox or Calibre.) When use vi I see something that looks like my 
items in a very complex form.

I was expecting something like

ul
  li   /li
  li   /li
/ul

but i see

div class=itemgroup itemize level-1 symbol-1
  div class=item
div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
div class=itemcontentListenpunkt 1/div
  /div
  div class=item
div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
div class=itemcontentListenpunkt 2 
  div class=itemgroup itemize level-2 symbol-2
  div class=item
  div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
div class=itemcontentListenpunkt 2.1/div/div 
div class=item
div class=itemtagm:math display=inline 
xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
div class=itemcontentListenpunkt 2.2/div/div/div/div
/div

Shouldn't the itemtag definition come from the default.css instead of using 
MathML?

itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; }

I’m using: mtx-context | current version: 2015.02.03 23:55

and

context --script epub --make epub_mwe

to create the epub.

Axel



epub_mwe.tex
Description: Binary data



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

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

Re: [NTG-context] Context to epub: itemize

2015-02-16 Thread Axel Kielhorn

Am 16.02.2015 um 19:55 schrieb Hans Hagen pra...@wxs.nl:

 On 2/16/2015 5:17 PM, Axel Kielhorn wrote:
 Hi,
 
 I'm trying to generate epub from ConTeXt and I couldn't get the itemize 
 environment to work.
 
 I follow http://wiki.contextgarden.net/ePub and get the structure described 
 but when I look into the xhtml, there is no itemize environment. (At least 
 no with Safari, Firefox or Calibre.) When use vi I see something that looks 
 like my items in a very complex form.
 
 I was expecting something like
 
 ul
   li   /li
   li   /li
 /ul
 
 but i see
 
 div class=itemgroup itemize level-1 symbol-1
   div class=item
 div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
 div class=itemcontentListenpunkt 1/div
   /div
   div class=item
 div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo•/m:mo/m:math/div
 div class=itemcontentListenpunkt 2
   div class=itemgroup itemize level-2 symbol-2
   div class=item
   div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
 div class=itemcontentListenpunkt 2.1/div/div
 div class=item
 div class=itemtagm:math display=inline 
 xmlns:m=http://www.w3.org/1998/Math/MathML;m:mo−/m:mo/m:math/div
 div class=itemcontentListenpunkt 2.2/div/div/div/div
 /div
 
 Shouldn't the itemtag definition come from the default.css instead of using 
 MathML?
 
 itemgroup[symbol=1], div.itemgroup.symbol-1 { list-style-type : disc ; }
 
 I’m using: mtx-context | current version: 2015.02.03 23:55
 
 and
 
 context --script epub --make epub_mwe
 
 to create the epub.
 
 the bullets come from math fonts (currently, awaiting additional symbols in 
 the text fonts)


Yes I know.
Let me rephrase the question:

Should the symbols used in epub be identical to those used in the pdf or should 
the css determine the look of the symbols?
Especially when one considers that most current ebook readers can't display 
MathML.

Even if I substitute the Symbols:

\definesymbol[uni1][•]
\definesymbol[uni2][–]
\definesymbol[uni3][*]
\definesymbol[uni4][·]

\setupitemgroup [itemize] [1] [symbol=uni1]
\setupitemgroup [itemize] [2] [symbol=uni2]
\setupitemgroup [itemize] [3] [symbol=uni3]
\setupitemgroup [itemize] [4] [symbol=uni4]

I get a result that neither ADE nor Calibre interprets as a list.
(Wrapping it in ul /ul doesn't help.) 

Axel

___
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] \setupbackend and manual hyphenation

2015-02-12 Thread Axel Kielhorn
Hi!

I'm trying to use Context to export a document to epub.
Following the instructions on Contextgarden everything works up to a point:

When I add manual hyphenation for the word Trennalgorithmus and
\setupbackend[export=yes,xhtml=yes]
I get:

lua errorerror on line 1 in file /Volumes/Macintosh 
HD/Users/axel/Documents/Text/Dokumente_LaTeX/context/Dante 2015/Dominik 
Wagenführ - ePub/epub/epub_bug.tex:

.../context/tex/texmf-context/tex/context/base/back-exp.lua:2516: bad argument 
#1 to 'utfchar' (invalid value)
stack traceback:
[C]: in function 'utfchar'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2516: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in 
function 'collectresults'
.../context/tex/texmf-context/tex/context/base/back-exp.lua:2752: in 
function 'nodes_handlers_export'
[string local nodes_handlers_cleanuppage = nodes.hand...]:18: in 
function [string local nodes_handlers_cleanuppage = nodes.hand...]:10
(...tail calls...)
.../context/tex/texmf-context/tex/context/base/node-shp.lua:171: in 
function 'finalizebox'
[\directlua]:1: in main chunk

 1   % !TEX encoding = UTF-8 Unicode

See attached log file.

If I remove the hyphenation, everything works, but the hyphenation is wrong.

I'm using:
current version: 2015.02.03 23:55

Greetings Axel




epub_bug.tex
Description: Binary data


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

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

Re: [NTG-context] \setupbackend and manual hyphenation

2015-02-12 Thread Axel Kielhorn

Am 12.02.2015 um 16:10 schrieb Hans Hagen pra...@wxs.nl:

 for the moment use
 
 \setuphyphenation[method=expanded]

This works in the current beta, but not with the stable version in TeXLive 2014.

It doesn't matter since I need the beta to create epub, just wanted to mention 
it.

Thanks for the quick reply.

Axel
___
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] Context modules not on CATN and not in TeX Live (slightly OT)

2015-01-26 Thread Axel Kielhorn

Am 26.01.2015 um 14:03 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com:

 On Mon, Jan 26, 2015 at 1:40 PM, Keith Schultz wrote:
 Hi Alex,
 
 The simple answer to your question would be to use this page:
 
 http://www.ctan.org/upload/
 
 No, in case of ConTeXt that's not correct. The idea would be to handle
 everything automatically once the modules are uploaded to
 modules.contextgarden.net. Some discrepancies are intentional, some
 are bugs (read as: nobody noticed that a module was missing and/or
 bothered requesting it).

That's what I was hoping.

 I would suggest that you point them to the Standalone stable release,
 if you actually need the missing third party modules.
 
 No, wait, let's try to clear things up first.
 
 If modules should be on CTAN and aren't, I'll add them to CTAN. If
 modules are on CTAN, but not in TeX Live, we should figure out why
 they are excluded from TeX Live and either make sure that they are
 either added to TeX Live (if there are no problems with licencing,
 packaging etc.) or removed from CTAN (in case they are not really
 useful). We could keep some modules on CTAN if they are useful, but
 don't qualify for TL inclusion for some obscure reason.

Two modules that are on CTAN but not on TeX Live are the URW font support files.
The fonts are non-commercial thus the support files are not included.
The fonts are on CTAN and there is a utility to install them to texmf-local.

(Probably not needed for MkIV.)

 Don't use TeX Live could be the proper advice for someone who wants
 to use the latest version of ConTeXt, but one shouldn't confuse the
 user just because a module is missing in TL by accident.

I prefer the Everything is already on your computer, let's try it!
approach. Having to install (and maintain) a second system makes it difficult 
to convince someone to try ConTeXt.

Maybe the install instructions on the wiki should be amended for TL 2014.
I look into that once the visualcounter is in TeX Live:-)

Axel
___
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] Context modules not on CATN and not in TeX Live

2015-01-25 Thread Axel Kielhorn
Hi!

I'm trying to learn ConTeXt working through some examples I found on Context 
Garden and the internet.

Since I already have TeX Live 2014 installed I could run most of the examples.
When I ran into a problem, I installed the standalone version and compared the 
supplied modules.

The following modules are not part of Context in TeX Live 2014.

 animation/ GPL 3
 annotation/GPL 3
 cmscbf/GPL 2  on CTAN
 cmttbf/GPL 2  on CTAN
 fancybreak/GPL 3
 layout/GPL
 title/ GPL 3
 urwgaramond/   GPL 2  on CTAN
 urwgothic/ Public Domain  on CTAN
 visualcounter/ Simplified BSD License

Some are on CTAN, some are missing there.
Since TeX Live takes the files from CTAN, it would be nice to put the missing 
modules there. 
What is the correct way to do that?

I ask because I want to give a tutorial about ConTeXt at the Dante meeting in 
april and it would be nice to tell the audience that everything they need is 
already part of TeX Live and no extra installation is required.

Axel
-- 
Man sollte das mal mit ConTeXt betrachten.
___
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
___