[NTG-context] getnonfreefonts with LMTX

2021-03-14 Thread Philipp A.
Hi!

The LMTX distribution comes with few binaries, texlua being none of them.

The getnonfreefonts  script
seems simple enough, but it relies on a global “kpse” which it uses to get
kpse variables. Therefore luametatex --luaonly can’t execute it.

Is there a way to get those fonts with the standalone LMTX distribution?

Best, Phil
___
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] Bib support broken in lmtx

2021-01-30 Thread Philipp A.
Am I caught in a spam filter somewhere?

Am So., 3. Jan. 2021 um 13:30 Uhr schrieb Philipp A. :

> So, where do I go with this?
>
> Can nobody reproduce it? Should I submit it to the bug tracker? How can I
> help to get this resolved?
>
> Am Sa., 26. Dez. 2020 um 11:29 Uhr schrieb Philipp A.  >:
>
>> Thank you, but whitespace is ignored in .bib file syntax. To prove that
>> whitespace handling isn’t the bug, just try accessing it:
>>
>> \startluacode
>> local current = publications.datasets.default
>> tex.print('\\starttyping')
>> tex.print(table.serialize(current.luadata))
>> -- to show that the key doesn’t contain weird invisible characters, I’ll
>> type it here:
>> tex.print(table.serialize(current.luadata.angerer2016))
>> tex.print('\\stoptyping')
>> \stopluacode
>>
>> will display:
>>
>> t={
>>   ["angerer2016"]={
>> ["author"]="Angerer...",
>> ["category"]="article",
>> ...
>>   },
>> }
>> t={
>>   ["author"]="Angerer...",
>>   ["category"]="article",
>>   ...
>> }
>>
>> *Another thing*: Uncommenting the \placelistofpublications makes it
>> work, but not in my real document. I didn’t go through the trouble of
>> reproducing when *that* stops working, as I think the root cause can
>> probably be found with my minimal example.
>>
>> Best, Phil
>>
>> Am Fr., 25. Dez. 2020 um 19:24 Uhr schrieb :
>>
>>> Don't know if that's related, but you should probably removethe space
>>> before the key in your bibfile.
>>> 
>>> Von: ntg-context  im Auftrag von Philipp A.
>>> 
>>> Gesendet: Freitag, 25. Dezember 2020 18:36:33
>>> An: ConTeXt Mailing List
>>> Betreff: [NTG-context] Bib support broken in lmtx
>>>
>>> Hi! A pretty minimal document using a bibliography is broken for me:
>>>
>>> test.lmtx:
>>> \enableregime[utf-8]
>>> \mainlanguage[en]
>>>
>>> \usebtxdataset[default][test.bib]
>>> \setupbtx[dataset=default]
>>> \usebtxdefinitions[apa]
>>>
>>> \starttext
>>>
>>> \cite[authoryear][angerer2016]
>>>
>>> %\placelistofpublications[default][method=dataset]
>>>
>>> \stoptext
>>>
>>> test.bib:
>>> @Article{ angerer2016,
>>> author = {Angerer, Philipp and Haghverdi, Laleh and B{\"{u}}ttner, Maren
>>> and Theis, Fabian J and Marr, Carsten and Buettner, Florian},
>>> doi = {10.1093/bioinformatics/btv715},
>>> issn = {14602059},
>>> journal = {Bioinformatics},
>>> language = {en},
>>> number = {8},
>>> pages = {1241--1243},
>>> title = {{Destiny: Diffusion maps for large-scale single-cell data in
>>> R}},
>>> url = {
>>> http://bioinformatics.oxfordjournals.org/lookup/doi/10.1093/bioinformatics/btv715
>>> files/103/Angerer et al. - 2016 - destiny diffusion maps for large-scale
>>> single-cel.pdf},
>>> volume = {32},
>>> year = {2016}
>>> }
>>>
>>> This log occurs:
>>>
>>> ❯ context test.lmtx
>>> resolvers   | formats | executing runner 'run luametatex format':
>>> ~/Library/ConTeXt/tex/texmf-osx-64/bin/luametatex --jobname="test"
>>> --fmt=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
>>> --lua=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
>>> --c:currentrun=1 --c:fulljobname="./test.lmtx" --c:input="./test.lmtx"
>>> --c:kindofrun=1 --c:maxnofruns=9
>>> --c:texmfbinpath="~/Library/ConTeXt/tex/texmf-osx-64/bin"
>>> system  >
>>> system  > ConTeXt  ver: 2020.12.24 17:30 LMTX  fmt: 2020.12.25
>>> int: english/english
>>> system  >
>>> system  > 'cont-new.mkxl' loaded
>>> open source > level 1, order 1, name
>>> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
>>> system  > beware: some patches loaded from cont-new.mkiv
>>> close source> level 1, order 1, name
>>> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
>>> system  > files > jobname 'te

Re: [NTG-context] Bib support broken in lmtx

2021-01-03 Thread Philipp A.
So, where do I go with this?

Can nobody reproduce it? Should I submit it to the bug tracker? How can I
help to get this resolved?

Am Sa., 26. Dez. 2020 um 11:29 Uhr schrieb Philipp A. :

> Thank you, but whitespace is ignored in .bib file syntax. To prove that
> whitespace handling isn’t the bug, just try accessing it:
>
> \startluacode
> local current = publications.datasets.default
> tex.print('\\starttyping')
> tex.print(table.serialize(current.luadata))
> -- to show that the key doesn’t contain weird invisible characters, I’ll
> type it here:
> tex.print(table.serialize(current.luadata.angerer2016))
> tex.print('\\stoptyping')
> \stopluacode
>
> will display:
>
> t={
>   ["angerer2016"]={
> ["author"]="Angerer...",
> ["category"]="article",
> ...
>   },
> }
> t={
>   ["author"]="Angerer...",
>   ["category"]="article",
>   ...
> }
>
> *Another thing*: Uncommenting the \placelistofpublications makes it work,
> but not in my real document. I didn’t go through the trouble of reproducing
> when *that* stops working, as I think the root cause can probably be
> found with my minimal example.
>
> Best, Phil
>
> Am Fr., 25. Dez. 2020 um 19:24 Uhr schrieb :
>
>> Don't know if that's related, but you should probably removethe space
>> before the key in your bibfile.
>> 
>> Von: ntg-context  im Auftrag von Philipp A. <
>> flying-sh...@web.de>
>> Gesendet: Freitag, 25. Dezember 2020 18:36:33
>> An: ConTeXt Mailing List
>> Betreff: [NTG-context] Bib support broken in lmtx
>>
>> Hi! A pretty minimal document using a bibliography is broken for me:
>>
>> test.lmtx:
>> \enableregime[utf-8]
>> \mainlanguage[en]
>>
>> \usebtxdataset[default][test.bib]
>> \setupbtx[dataset=default]
>> \usebtxdefinitions[apa]
>>
>> \starttext
>>
>> \cite[authoryear][angerer2016]
>>
>> %\placelistofpublications[default][method=dataset]
>>
>> \stoptext
>>
>> test.bib:
>> @Article{ angerer2016,
>> author = {Angerer, Philipp and Haghverdi, Laleh and B{\"{u}}ttner, Maren
>> and Theis, Fabian J and Marr, Carsten and Buettner, Florian},
>> doi = {10.1093/bioinformatics/btv715},
>> issn = {14602059},
>> journal = {Bioinformatics},
>> language = {en},
>> number = {8},
>> pages = {1241--1243},
>> title = {{Destiny: Diffusion maps for large-scale single-cell data in R}},
>> url = {
>> http://bioinformatics.oxfordjournals.org/lookup/doi/10.1093/bioinformatics/btv715
>> files/103/Angerer et al. - 2016 - destiny diffusion maps for large-scale
>> single-cel.pdf},
>> volume = {32},
>> year = {2016}
>> }
>>
>> This log occurs:
>>
>> ❯ context test.lmtx
>> resolvers   | formats | executing runner 'run luametatex format':
>> ~/Library/ConTeXt/tex/texmf-osx-64/bin/luametatex --jobname="test"
>> --fmt=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
>> --lua=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
>> --c:currentrun=1 --c:fulljobname="./test.lmtx" --c:input="./test.lmtx"
>> --c:kindofrun=1 --c:maxnofruns=9
>> --c:texmfbinpath="~/Library/ConTeXt/tex/texmf-osx-64/bin"
>> system  >
>> system  > ConTeXt  ver: 2020.12.24 17:30 LMTX  fmt: 2020.12.25
>> int: english/english
>> system  >
>> system  > 'cont-new.mkxl' loaded
>> open source > level 1, order 1, name
>> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
>> system  > beware: some patches loaded from cont-new.mkiv
>> close source> level 1, order 1, name
>> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
>> system  > files > jobname 'test', input './test.lmtx', result
>> 'test'
>> fonts   > latin modern fonts are not preloaded
>> languages   > language 'en' is active
>> open source > level 1, order 2, name './test.lmtx'
>> publications> adding bib data to set 'default' from source 'test.bib'
>> open source > level 2, order 3, name
>> ~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi

Re: [NTG-context] Bib support broken in lmtx

2020-12-26 Thread Philipp A.
Thank you, but whitespace is ignored in .bib file syntax. To prove that
whitespace handling isn’t the bug, just try accessing it:

\startluacode
local current = publications.datasets.default
tex.print('\\starttyping')
tex.print(table.serialize(current.luadata))
-- to show that the key doesn’t contain weird invisible characters, I’ll
type it here:
tex.print(table.serialize(current.luadata.angerer2016))
tex.print('\\stoptyping')
\stopluacode

will display:

t={
  ["angerer2016"]={
["author"]="Angerer...",
["category"]="article",
...
  },
}
t={
  ["author"]="Angerer...",
  ["category"]="article",
  ...
}

*Another thing*: Uncommenting the \placelistofpublications makes it work,
but not in my real document. I didn’t go through the trouble of reproducing
when *that* stops working, as I think the root cause can probably be found
with my minimal example.

Best, Phil

Am Fr., 25. Dez. 2020 um 19:24 Uhr schrieb :

> Don't know if that's related, but you should probably removethe space
> before the key in your bibfile.
> 
> Von: ntg-context  im Auftrag von Philipp A. <
> flying-sh...@web.de>
> Gesendet: Freitag, 25. Dezember 2020 18:36:33
> An: ConTeXt Mailing List
> Betreff: [NTG-context] Bib support broken in lmtx
>
> Hi! A pretty minimal document using a bibliography is broken for me:
>
> test.lmtx:
> \enableregime[utf-8]
> \mainlanguage[en]
>
> \usebtxdataset[default][test.bib]
> \setupbtx[dataset=default]
> \usebtxdefinitions[apa]
>
> \starttext
>
> \cite[authoryear][angerer2016]
>
> %\placelistofpublications[default][method=dataset]
>
> \stoptext
>
> test.bib:
> @Article{ angerer2016,
> author = {Angerer, Philipp and Haghverdi, Laleh and B{\"{u}}ttner, Maren
> and Theis, Fabian J and Marr, Carsten and Buettner, Florian},
> doi = {10.1093/bioinformatics/btv715},
> issn = {14602059},
> journal = {Bioinformatics},
> language = {en},
> number = {8},
> pages = {1241--1243},
> title = {{Destiny: Diffusion maps for large-scale single-cell data in R}},
> url = {
> http://bioinformatics.oxfordjournals.org/lookup/doi/10.1093/bioinformatics/btv715
> files/103/Angerer et al. - 2016 - destiny diffusion maps for large-scale
> single-cel.pdf},
> volume = {32},
> year = {2016}
> }
>
> This log occurs:
>
> ❯ context test.lmtx
> resolvers   | formats | executing runner 'run luametatex format':
> ~/Library/ConTeXt/tex/texmf-osx-64/bin/luametatex --jobname="test"
> --fmt=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
> --lua=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
> --c:currentrun=1 --c:fulljobname="./test.lmtx" --c:input="./test.lmtx"
> --c:kindofrun=1 --c:maxnofruns=9
> --c:texmfbinpath="~/Library/ConTeXt/tex/texmf-osx-64/bin"
> system  >
> system  > ConTeXt  ver: 2020.12.24 17:30 LMTX  fmt: 2020.12.25
> int: english/english
> system  >
> system  > 'cont-new.mkxl' loaded
> open source > level 1, order 1, name
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 1, order 1, name
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
> system  > files > jobname 'test', input './test.lmtx', result
> 'test'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > level 1, order 2, name './test.lmtx'
> publications> adding bib data to set 'default' from source 'test.bib'
> open source > level 2, order 3, name
> ~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
> close source> level 2, order 3, name
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> publications> analyzing previous publication run for 'default'
> publications> no entry 'angerer2016' found in dataset 'default'
> backend > xmp > using file
> '~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages   > flushing realpage 1, userpag

[NTG-context] Bib support broken in lmtx

2020-12-25 Thread Philipp A.
Hi! A pretty minimal document using a bibliography is broken for me:

test.lmtx:
\enableregime[utf-8]
\mainlanguage[en]

\usebtxdataset[default][test.bib]
\setupbtx[dataset=default]
\usebtxdefinitions[apa]

\starttext

\cite[authoryear][angerer2016]

%\placelistofpublications[default][method=dataset]

\stoptext

test.bib:
@Article{ angerer2016,
author = {Angerer, Philipp and Haghverdi, Laleh and B{\"{u}}ttner, Maren
and Theis, Fabian J and Marr, Carsten and Buettner, Florian},
doi = {10.1093/bioinformatics/btv715},
issn = {14602059},
journal = {Bioinformatics},
language = {en},
number = {8},
pages = {1241--1243},
title = {{Destiny: Diffusion maps for large-scale single-cell data in R}},
url = {
http://bioinformatics.oxfordjournals.org/lookup/doi/10.1093/bioinformatics/btv715
files/103/Angerer et al. - 2016 - destiny diffusion maps for large-scale
single-cel.pdf},
volume = {32},
year = {2016}
}

This log occurs:

❯ context test.lmtx
resolvers   | formats | executing runner 'run luametatex format':
~/Library/ConTeXt/tex/texmf-osx-64/bin/luametatex --jobname="test"
--fmt=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
--lua=~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 --c:currentrun=1 --c:fulljobname="./test.lmtx" --c:input="./test.lmtx"
--c:kindofrun=1 --c:maxnofruns=9
--c:texmfbinpath="~/Library/ConTeXt/tex/texmf-osx-64/bin"
system  >
system  > ConTeXt  ver: 2020.12.24 17:30 LMTX  fmt: 2020.12.25
 int: english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name
'~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name
'~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname 'test', input './test.lmtx', result 'test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './test.lmtx'
*publications> adding bib data to set 'default' from source 'test.bib'*
open source > level 2, order 3, name
~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
close source> level 2, order 3, name
'~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded

*publications> analyzing previous publication run for
'default'publications> no entry 'angerer2016' found in dataset
'default'*
backend > xmp > using file
'~/Library/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 1, order 3, name './test.lmtx'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path:
~/Library/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.004 seconds, 0 scans with
scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths:

mkiv lua stats  > stored bytecode data: 476 modules (0.204 sec), 95 tables
(0.012 sec), 571 chunks (0.216 sec)
mkiv lua stats  > traced context: maxstack: 1517, freed: 0, unreachable:
1517
mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 435 lists of 434
mkiv lua stats  > node memory usage: 6 attribute, 3 attribute_list, 1 glue,
36 glue_spec, 3 kern, 2 penalty, 1 temp, 1 whatsit
mkiv lua stats  > node list callback tasks: 8 unique task lists, 7
instances (re)created, 38 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: internal: 0, file: 0, direct: 0, late: 0,
function 0, total: 0 (0 per page)
mkiv lua stats  > randomizer: resumed with value 0.37495928832999
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf,
lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.112, afm 1.513, tfm 1.000, 7
instances, 3 shared in backend, 3 common vectors, 0 common hashes, load
time 0.156 seconds
*mkiv lua stats  > publications load time: 0.004 seconds, 1396 bytes, 1
definitions, 0 shortcuts*
mkiv lua stats  > font embedding time: 0.006 seconds, 1 fonts
mkiv lua stats  > result saved in file: test.pdf, compresslevel 1,
objectcompresslevel 3
mkiv lua stats  > used platform: osx-64, type: unix, binary subtree:
texmf-osx-64
mkiv lua stats  > used engine: luametatex version: 2.0808, functionality
level: 20201222, format id: 551, compiler: clang
mkiv lua stats  > tex properties: 740027 hash slots used of 2097152, 45811
control sequence

Re: [NTG-context] body text invades space for notes

2020-03-04 Thread Philipp A.
Hi Pablo,

Thank you for the help!
I’m not using lists on that page … what I do use is a figure with
location=left, which is probably the culprit, as it ends up pretty close to
the footnote.
Is there any interest in fixing this longstanding bug? It’s the only
feature that’s just consistently broken for me …

Best, Phil

Am Di., 25. Feb. 2020 um 22:15 Uhr schrieb Pablo Rodriguez :

> On 2/18/20 11:17 AM, Philipp A. wrote:
> > For me it’s even worse (in mkiv), a paragraph of body text completely
> > overlaps my footnote.
> >
> > Where are the bottom notes placed? In the footer? Or how does it work?
> > How to debug it?
>
> Hi Philipp,
>
> I’m afraid that this misbehaviour is caused by the use of lists in the
> same page.
>
> Even not using lists, the space before seems not to be honored when
> using \setupnote[footnote].
>
> Note handling seems to have been improved in both LMTX and MkIV. A
> side-effect of this new handling is the random clash between body and
> notes texts when using lists in the same page.
>
> BTW, foonotes cannot be placed in the footer.
>
> \showframe\showgrid
> \setuppapersize[A9]
> \starttext
> \dorecurse{3}{%
> text\footnote{note}\\}
> \stoptext
>
> Sorry, but I’m afraid that I don’t know any way of debugging it.
>
> Pablo
>
>
> > Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez:
> >
> > Dear list,
> >
> > I’m afraid to admit that ConTeXt notes are increasily problematic for
> > me. I don’t think this is special to me and I hope we can discuss the
> > general issue.
> >
> > Bottom notes are somewhat tricky in ConTeXt. The user expects that
> these
> > notes (either footnotes, or linenotes) aren’t moved to the next
> page. I
> > mean, no reader expects to find a full footnote in the next page from
> > the one that calls it. (At least, I have never seen that in any book
> > read or paged through.)
> >
> > There may be good reasons for that, but ConTeXt doesn’t enable this
> by
> > default. Both options "split=verystrict" and "scope=text" have to be
> > used in "\setupnote".
> >
> > This translated in wrong space before notes when paragraph form was
> > used. I was very interested to use these (line)notes for critical
> > editions, but sometimes the text run into the notes. I’m afraid that
> > left linenotes extremely problematic to be used.
> >
> > With the arrival of LMTX, space before footnotes is more problematic
> > than before. No paragraph notes, see the attached sample
> (wrong-6.png).
> > In other cases, ConTeXt seems to ignore totally that the page bottom
> > contains footnotes.
> >
> > I cannot provide minimal samples. Consider that if it were so easy to
> > reproduce, problably the issue would have been gone long ago.
> >
> > Even when one avoids the problematic bottom partition (which I did in
> > that case by removing the "before" option from
> "\setupnote[footnote]"),
> > there is clearly an issue with the footnote having its space before
> > remaining blank from the body text (wrong-2.png).
> >
> > My first question is why the bottom notes have problems to preserve
> the
> > space before them (and simultaneously remain in the same page where
> they
> > come from). This applies also for paragraph notes.
> >
> > My second question is what can be improved to achieve what may be
> > considered as a basic typographic feature.
> >
> > Sorry for not providing more than output samples. Bear with me. I may
> > not be an expert user, but I think I’m a frequent ConTeXt user. And I
> > don’t think it is totally wrong to consider this a basic feature that
> > needs to be improved.
> >
> > Many thanks for your help in advance,
> >
> > Pablo
>
>
>
> --
> http://www.ousia.tk
>
> ___
> 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
>
> ___
>
___
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] Customizing \cite alternatives

2020-02-22 Thread Philipp A.
Thank you for the pointer to the options!

- “otherstext” works, yay! (when inserted after “\usebtxdefinitions[apa]”)
- “etallimit” (not “etaldisplay”) is the option for the max number of
authors before they’re replaced by “et al”. (“etaldisplay” controls how
many authors go before “et al” if the list is truncated)

I think I’ll add a more complete example to the wiki, all of this is pretty
complex due to being sensitive to order and overrides and so on.

Best, Philipp

Am Do., 20. Feb. 2020 um 16:11 Uhr schrieb Thomas A. Schmitz <
thomas.schm...@uni-bonn.de>:

> On 20.02.20 14:16, Philipp A. wrote:
> > Makes sense, seems like no default is defined anymore, so it won’t
> > render without using a style.
> > I use apa, and the attached screenshot shows my problem.
>
> If you use APA, you have to set up the APA cite options. The manual is a
> bit on the short side here, but all the options are mentioned. If you
> want to change the way et al. is displayed (for APA, the default is
> \btxcomma\btxlabeltext{others}), you can do this:
>
> \setupbtx [apa:cite] [otherstext={ et al.}]
>
> The number of authors displayed is defined by the key etaldisplay, so
> you would do this:
>
> \setupbtx [apa:cite] [etaldisplay=4]
>
> Thomas
>
> ___
> 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
>
> ___
>
___
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] Customizing \cite alternatives

2020-02-20 Thread Philipp A.
Makes sense, seems like no default is defined anymore, so it won’t render
without using a style.
I use apa, and the attached screenshot shows my problem.

\startbuffer[testbib]
@Article{testone,
  author={Testperson, A. B.},
  title={Thing with one author},
  year={2001},
}
@Article{testtwo,
  author={Testperson, A. B. and Friendperson, C.},
  title={Thing with two authors},
  year={2002},
}
@Article{testmany,
  author={Ah and Bee and Cee and Dee and Ee and Eff and Gee},
  title={Thing with two authors},
  year={2002},
}
\stopbuffer

\definebtxdataset[main]
\usebtxdataset[main][testbib.buffer]
\setupbtx[dataset=main] % make cite use this
\setupbtx[default:cite][alternative=authoryear] % cite style
\usebtxdefinitions[apa] % load and activate list rendering
\definebtxrendering[main][apa][dataset=main, pagestate=start]

\starttext
\cite[authoryear][testone] \cite[authoryear][testtwo]
\cite[authoryear][testmany]

\cite[authoryears][testone] \cite[authoryears][testtwo]
\cite[authoryears][testmany]

\subject{bib}

\placebtxrendering[main][method=global]
\stoptext

Am Mi., 19. Feb. 2020 um 16:35 Uhr schrieb Thomas A. Schmitz <
thomas.schm...@uni-bonn.de>:

> It is difficult to answer your question because we don't know which
> specifications you use for your citations. You will have to provide a
> minimal example that allows us to see what you're doing.
>
> Thomas
>
> On 2/17/20 6:26 PM, Philipp A. wrote:
> > Hi List,
> >
> > I want the comma gone from “et al.” citations, and modify the cite
> > alternatives:
> >
> >   * [authoryear]: (Surname, et al., 2018) → (Surname et al., 2018)
> >   * [authoryears]: Surname, et al. (2018) → Surname et al. (2018)
> >
> > Also I’d like to configure how many names are the maximum before all
> > except the first are replaced by “et al.”
> > i.e. \setupcitething[maxauthors=3]: (One, Two, Three, & Four, 2018) →
> > (One et al., 2018)
> >
> > How can I do this? I didn’t find anything in the publications manual:
> > http://pragma-ade.nl/general/manuals/mkiv-publications.pdf
> >
> > Best, Philipp
>
> ___
> 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
>
> ___
>
___
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] body text invades space for notes

2020-02-18 Thread Philipp A.
For me it’s even worse (in mkiv), a paragraph of body text completely
overlaps my footnote.

Where are the bottom notes placed? In the footer? Or how does it work? How
to debug it?

Am Sa., 14. Dez. 2019 um 19:41 Uhr schrieb Pablo Rodriguez :

> Dear list,
>
> I’m afraid to admit that ConTeXt notes are increasily problematic for
> me. I don’t think this is special to me and I hope we can discuss the
> general issue.
>
> Bottom notes are somewhat tricky in ConTeXt. The user expects that these
> notes (either footnotes, or linenotes) aren’t moved to the next page. I
> mean, no reader expects to find a full footnote in the next page from
> the one that calls it. (At least, I have never seen that in any book
> read or paged through.)
>
> There may be good reasons for that, but ConTeXt doesn’t enable this by
> default. Both options "split=verystrict" and "scope=text" have to be
> used in "\setupnote".
>
> This translated in wrong space before notes when paragraph form was
> used. I was very interested to use these (line)notes for critical
> editions, but sometimes the text run into the notes. I’m afraid that
> left linenotes extremely problematic to be used.
>
> With the arrival of LMTX, space before footnotes is more problematic
> than before. No paragraph notes, see the attached sample (wrong-6.png).
> In other cases, ConTeXt seems to ignore totally that the page bottom
> contains footnotes.
>
> I cannot provide minimal samples. Consider that if it were so easy to
> reproduce, problably the issue would have been gone long ago.
>
> Even when one avoids the problematic bottom partition (which I did in
> that case by removing the "before" option from "\setupnote[footnote]"),
> there is clearly an issue with the footnote having its space before
> remaining blank from the body text (wrong-2.png).
>
> My first question is why the bottom notes have problems to preserve the
> space before them (and simultaneously remain in the same page where they
> come from). This applies also for paragraph notes.
>
> My second question is what can be improved to achieve what may be
> considered as a basic typographic feature.
>
> Sorry for not providing more than output samples. Bear with me. I may
> not be an expert user, but I think I’m a frequent ConTeXt user. And I
> don’t think it is totally wrong to consider this a basic feature that
> needs to be improved.
>
> Many thanks for your help in advance,
>
> Pablo
> --
> http://www.ousia.tk
>
>
> ___
> 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
>
> ___
>
___
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] Customizing \cite alternatives

2020-02-17 Thread Philipp A.
Hi List,

I want the comma gone from “et al.” citations, and modify the cite
alternatives:

   - [authoryear]: (Surname, et al., 2018) → (Surname et al., 2018)
   - [authoryears]: Surname, et al. (2018) → Surname et al. (2018)

Also I’d like to configure how many names are the maximum before all except
the first are replaced by “et al.”
i.e. \setupcitething[maxauthors=3]: (One, Two, Three, & Four, 2018) → (One
et al., 2018)

How can I do this? I didn’t find anything in the publications manual:
http://pragma-ade.nl/general/manuals/mkiv-publications.pdf

Best, Philipp
___
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 to approach a ConTeXt language server?

2020-02-05 Thread Philipp A.
Thank you, that’s great information!

What’s the “export XML”?

Am Di., 4. Feb. 2020 um 19:09 Uhr schrieb Henning Hraban Ramm <
te...@fiee.net>:

>
> > Am 2020-02-04 um 16:45 schrieb Philipp A. :
> >
> > Language servers are the new big deal in editor and IDE development:
> https://langserver.org/
> >
> > It would be cool to have a ConTeXt one for autocompletion (for ConTeXt:
> command names, \cite IDs, labels, named parameters, …), go-to-definition,
> hover information (docs about a command) and so on.
> > The way it works is that you have a server process that is the source of
> truth for all this information, and the editor passes requests to it.
> > The editor tells the server when it opens/closes files and when the user
> requests something of the above.
> >
> > The way I’d implement it in ConTeXt is to keep a list of open ConTeXt
> projects in the server (obtained by following \include, \component,
> \product, \environment, \project).
> > Now my questions begin:
> >   • Then I’d make context load the project without compiling it to a
> PDF but make it execute some Lua (how do I do this?)
> >   • I’d need a way to get all available commands with their
> signatures into Lua. I assume this is done here, but how?
> http://www.pragma-ade.nl/general/qrcs/setup-en.pdf
>
> Look for the interface files i-*.xml
>
> >   • Optimally, for hover information and completion, I’d want some
> help/doc text for each command that has some. Is there a way to get it?
>
> No, there isn’t. It could be in the interface files if someone would put
> in the work.
>
> >   • Optimally, for label autocompletion, I’d also like a list of
> defined labels. Since I played around with bibliographies I already know
> how to query the bibliography DB from Lua.
> >   • Optimally I’d also want some parse tree of each document, but I
> assume the way macros work, this doesn’t exist? This would make things
> easier that I’d otherwise have to (imperfectly) parse out of the document
> (due to things like catcode changes, but I guess I can pretend they don’t
> exist and \unprotect is always on)
>
> You could run ConTeXt and use the export XML.
>
> >   • Optimally, for go-to-definition, I’d also want a list of files
> ConTeXt loaded so I can find definitions in it.
> > Can anyone help me, especially with 1-2? To get me started, it would be
> great to have an example script and a command line to invoke it, which
> makes ConTeXt load a main tex file, execute some Lua, and exit without
> creating a document or writing anything else to the channel Lua writes to
> (stdout?).
>
> Look at the .tuc file that’s created in a ConTeXt run, it’s a Lua table
> and contains “all“ the information about the project.
>
>
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
>
>
> ___
> 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
>
> ___
>
___
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] Official file ending?

2020-02-05 Thread Philipp A.
Ha, I was just writing about my confusion, thank you for clearing this up.

So how about I add those four to Wikipedia and the ConTeXt wiki?

Am Mi., 5. Feb. 2020 um 10:23 Uhr schrieb Hans Hagen :

> On 2/4/2020 8:27 PM, kaddour kardio wrote:
> > Since ConTeXT is closer to plain TeX than LaTeX, it is more legitimate
> > to got the "dot tex" than latex :)
> >
> > Le mar. 4 févr. 2020 à 17:57, Pablo Rodriguez  > <mailto:oi...@gmx.es>> a écrit :
> >
> > On 2/3/20 3:28 PM, Hans Hagen wrote:
> >  > On 2/3/2020 3:07 PM, Philipp A. wrote:
> >  >> Hi!
> >  >>
> >  >> Most text editors have LaTeX specific syntax highlighting, so it
> > makes
> >  >> sense to give your ConTeXt file a ending it can be distinguished
> > with.
> >  >> Is there a blessed one?
> >  >>
> >  >>   * .ctx: Would mirror the semi-common .ltx, but is used for XML
> > files
> >  >> inside of ConTeXt itself
> >  >
> >  > context ctx files are xml files indeed
> >  >
> >  >>   * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would
> > it make
> >  >> sense to give text documents that extension?
> >  >
> >  > you can do that (or mkvi or lmtx or ...)
> >
> > Since there are already *.mkxl files in the ConTeXt distribution, I
> > think it may make sense to name the LMTX version MkXL.
> >
> > In any case, MkXL is simpler and clearer that MkIV with LMTX.
> mkiv (four)   : files that expect mkiv (or lmtx)
> mkvi (six): mkiv (or lmtx) files that pass a filter
> mkxl (fourty) : files that expect lmtx
> mklx (sixty)  : lmtx files that pass a filter
>
> (there are some more, like template files and so)
>
> I suppose that latex syntax highlighting filters support tex and sty and
> maybe suffixes i'm noti aware of. So a context specific highlighter
> could support mkiv, mkvi, mkxk and mkvi. At least that's what I do here.
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How to approach a ConTeXt language server?

2020-02-04 Thread Philipp A.
Language servers are the new big deal in editor and IDE development:
https://langserver.org/

It would be cool to have a ConTeXt one for autocompletion (for ConTeXt:
command names, \cite IDs, labels, named parameters, …), go-to-definition,
hover information (docs about a command) and so on.
The way it works is that you have a server process that is the source of
truth for all this information, and the editor passes requests to it.
The editor tells the server when it opens/closes files and when the user
requests something of the above.

The way I’d implement it in ConTeXt is to keep a list of open ConTeXt
projects in the server (obtained by following \include, \component,
\product, \environment, \project).
Now my questions begin:

   1. Then I’d make context load the project without compiling it to a PDF
   but make it execute some Lua (how do I do this?)
   2. I’d need a way to get all available commands with their signatures
   into Lua. I assume this is done here, but how?
   http://www.pragma-ade.nl/general/qrcs/setup-en.pdf
   3. Optimally, for hover information and completion, I’d want some
   help/doc text for each command that has some. Is there a way to get it?
   4. Optimally, for label autocompletion, I’d also like a list of defined
   labels. Since I played around with bibliographies I already know how to
   query the bibliography DB from Lua.
   5. Optimally I’d also want some parse tree of each document, but I
   assume the way macros work, this doesn’t exist? This would make things
   easier that I’d otherwise have to (imperfectly) parse out of the document
   (due to things like catcode changes, but I guess I can pretend they don’t
   exist and \unprotect is always on)
   6. Optimally, for go-to-definition, I’d also want a list of files
   ConTeXt loaded so I can find definitions in it.

Can anyone help me, especially with 1-2? To get me started, it would be
great to have an example script and a command line to invoke it, which
makes ConTeXt load a main tex file, execute some Lua, and exit without
creating a document or writing anything else to the channel Lua writes to
(stdout?).

Best, Philipp
___
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] Official file ending?

2020-02-04 Thread Philipp A.
Thank you all! What is lmtx? Is there any link with infos?

Am Di., 4. Feb. 2020 um 00:53 Uhr schrieb Floris van Manen :

>
>
> On 04-02-2020 00:31, Exp wrote:
> >
> > Mkiv is a good choice for the moment. If there would be no Mkvi and so
> > on, it is good forever.
>
> .tex is used for both tex (as well as latex as well as other wrappers).
>
> how about for the new context era:
> .lmtx
>
>
> .F
>
>
> ___
> 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
>
> ___
>
___
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] Official file ending?

2020-02-03 Thread Philipp A.
Hi!

Most text editors have LaTeX specific syntax highlighting, so it makes
sense to give your ConTeXt file a ending it can be distinguished with.
Is there a blessed one?

   - .ctx: Would mirror the semi-common .ltx, but is used for XML files
   inside of ConTeXt itself
   - .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would it make
   sense to give text documents that extension?
   - Something else? (.tex doesn’t count, it’s shared with LaTeX files and
   plain TeX files)

Best, Philipp
___
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 command line interface documentation?

2019-11-19 Thread Philipp A.
That’s pretty cool, overriding that hook allows to build a ConTeXt language
server for editors like VS Code!
https://microsoft.github.io/language-server-protocol/

Sadly I’m still a bit lost: When calling `context file_with_error.tex`, I
see “This is LuaTeX, Version 1.10 … tex error on line … ?” and it waits for
input.
You said that context stops when encountering an error which isn’t the case
for me. Any ideas why?

Best, Philipp

Am Di., 19. Nov. 2019 um 10:34 Uhr schrieb Hans Hagen :

> Concerning errors, one can say
>
> context --directives="system.showerror" somefile
>
> and on an error an html file is generated (old feature) ... i still
> couldn't figure out a way to reliable launch a browser and target the
> same tab (so autolaunch is disabled for now)
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] context command line interface documentation?

2019-11-18 Thread Philipp A.
Hi Hans,

Very sorry that it was phrased so negatively. I like ConTeXt enough that I
wrote my master’s thesis in it, and am now writing my doctor’s thesis in it.
I had a long day that day and didn’t expect to have to dive so deep to find
out what I want is impossible. I think my language mostly reflected my
thought process going through it, not lack of respect towards your work.
I hope my bug report here is still helpful and provides all information
necessary to improve ConTeXt, and would like to help if there’s an easy way
to contribute (Pull requests?)

context --silent -nostatistics
>

Thank you! I see it’s in the “experts” section in mtx-context.xml. I added
it to the wiki, as it seems the most immediately useful (and non-experty)
among those options.
I think it would be best if the help would just be generated from that file
to reduce the sources of truth in existence.


> context quits at the first error as recovering is (1) seldom useful, (2)
> can interfere badly with tex/mp/lua and make things worse), (3) context
> tries to show a bit more precise location where the erro comes from (not
> always easy in tex) ... some of these modes originate in paper terminal
> times and it's very unlikely that context will change it's current way of
> doing things
>

What you’re describing is the behavior I’m trying to achieve. The error
location reporting works for me, but context will still continue after an
error for me:
If I don’t specify --nonstopmode or so it’ll try to recover, and even when
I specify it, there will be other output after the error.

>  What’s a “list”? comma separated? Do I need string delimiters?
>
> comma separated and only quoted when spaces (as usual with spaces)
>

You mean quoted as in “to prevent my terminal from interpreting it wrong”,
right?
Not that the script actually expects quotes in argv?

grepping for stats will bring you to nostats and nostatistics and "context
> --help --expert" shows that flag too
>

All of which is undocumented. I’d like to help here, so I added it to the
wiki, but it would be useful to mention this in --help, too!

remarks like the last one are very unlikely to trigger people to write
> additional documentation (a manual or wiki page) ... context comes for
> free, support comes for free ... there is not much one can demand i guess
>
> Hans
>

Again, I’m really sorry! I’d like to help, but I don’t have the time
currently for more than drive-by pull requests and wiki edits. I’m doing
the latter and if the former is possible, I’ll try my hand. Is it?

Best, Philipp
___
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] PDF layer links

2019-11-12 Thread Philipp A.
I filed http://tracker.luatex.org/view.php?id=1016

Am Fr., 8. Nov. 2019 um 18:29 Uhr schrieb Philipp A. :

> Thank you, but I want colored text, not a border.
>
> Also bugs should be fixed regardless of workarounds…
>
> Am Mi., 6. Nov. 2019 um 19:17 Uhr schrieb Pablo Rodriguez :
>
>> On 11/6/19 5:07 PM, Philipp A. wrote:
>> > Hi,
>> >
>> > I asked this question some time ago:
>> > https://tex.stackexchange.com/q/354731/2867
>>
>> Hi Philipp,
>>
>> I think this approach is easier to achieve what you want:
>>
>> \setupinteraction
>> [state=start,
>>  style=,
>>  color=,
>>  contrastcolor=,
>>  focus=standard]
>> \enabledirectives[references.border=red]
>> %~ \enabledirectives[references.border]% defaults to grey
>> \define[1]\MyURL{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}}
>> \starttext
>> \startTEXpage[offset=1em]
>> \MyURL{https://wiki.contextgarden.net}
>> \stopTEXpage
>> \stoptext
>>
>> At least, this works best with Acrobat.
>>
>> I hope it helps,
>>
>> Pablo
>> --
>> http://www.ousia.tk
>>
>> ___
>> 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
>>
>> ___
>>
>
___
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] context command line interface documentation?

2019-11-12 Thread Philipp A.
Hi,

I want context to shut up, specifically the “mkiv lua stats” at the end are
useless to me and make me scroll up for actual error messages, but better
would be to just stop after the first error.
I consulted the --help docs but found them entirely unhelpful. Also there’s
no examples. As doing it wrong results in no error message or indeed any
kind of effect, I was in the dark.

First I consulted the --help and found: “--silent=list disable logcatgories
(show list with --showlogcategories)”. What’s a “list”? comma separated? Do
I need string delimiters?
Whatever, executing “context --showlogcategories” tells me the log category
“mkiv lua stats” exists, so: “context --silent='mkiv lua stats' doc.tex”
does … nothing, the lua stats are still there mocking me.

OK, let’s do what you do when there’s no documentation; dive in the code:
“grep -C3 'batchmode'
/usr/share/texmf-dist/scripts/context/lua/mtx-context.lua”
This tells me that there’s a “errorstopmode” in luatex but no way to make
the context script invoke “luatex -interaction=errorstopmode”, great.
Diving deeper, “setblocked” in mtxtun.lua checks if --silent=all is
specified, nice! But that affects everything EXCEPT for the “mkiv lua
stats”.

Therefore the two most useful ways to run context (--errorstopmode and
--silent='mkiv lua stats') seem impossible unless one writes a wrapper
script.
Would be cool to have this fixed. And to have actually useful documentation
instead of having to deep-dive into mtxrun.lua.

Best, Philipp

PS: I filed http://tracker.luatex.org/view.php?id=1014 and
http://tracker.luatex.org/view.php?id=1015
___
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] PDF layer links

2019-11-08 Thread Philipp A.
Thank you, but I want colored text, not a border.

Also bugs should be fixed regardless of workarounds…

Am Mi., 6. Nov. 2019 um 19:17 Uhr schrieb Pablo Rodriguez :

> On 11/6/19 5:07 PM, Philipp A. wrote:
> > Hi,
> >
> > I asked this question some time ago:
> > https://tex.stackexchange.com/q/354731/2867
>
> Hi Philipp,
>
> I think this approach is easier to achieve what you want:
>
> \setupinteraction
> [state=start,
>  style=,
>  color=,
>  contrastcolor=,
>  focus=standard]
> \enabledirectives[references.border=red]
> %~ \enabledirectives[references.border]% defaults to grey
> \define[1]\MyURL{{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}}
> \starttext
> \startTEXpage[offset=1em]
> \MyURL{https://wiki.contextgarden.net}
> \stopTEXpage
> \stoptext
>
> At least, this works best with Acrobat.
>
> I hope it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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
>
> ___
>
___
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 layer links

2019-11-06 Thread Philipp A.
Hi,

I asked this question some time ago:
https://tex.stackexchange.com/q/354731/2867
Today I found out about viewer layers. Sadly they seem to be buggy in the
ConTeXt version in TeXlive 2019.52575
When I compile the following document, the “view” layer seems to gobble up
the rest of the document: Hiding it makes “More text” vanish.
Also, I don’t know if [state=stop,printable=yes] does what I want, i.e.
being visible by default on print media. If not, how to achieve that?

Best, Philipp

\defineviewerlayer[print][state=stop,printable=yes]
\defineviewerlayer[view][state=start,printable=no]

\def\viewcolor#1#2{%
\startviewerlayer[view]\color[#1]{#2}\stopviewerlayer%
\startviewerlayer[print]\llap{#2}\stopviewerlayer%
}

\starttext
Hi!

\viewcolor{red}{This is only red on screen}.

More text.
\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] Adrian Frutiger

2015-10-04 Thread Philipp A.
yeah, thanks!

since i live next to the olympiadorf (olympic village of 1972), this
reminded me that i wanted to acquire the colors from then and build sth
with them.

hmm, maybe wikipedia’s copy of waldi

is close enough.

Rudolf Bahr  schrieb am So., 4. Okt. 2015 um 11:33 Uhr:

>
> On Thu, Sep 17, 2015 at 10:32:29AM +0200, luigi scarso wrote:
> > http://www.linotype.com/720-34866/adrianfrutigerremembered.html
> >
> Thank you Luigi for pointing to an interesting article!
>
> Rudolf
>
> ___
> 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] Wiki broken: “internal error: pdfcrop failed” for new

2015-06-20 Thread Philipp A.
Hi, as you see with the second example here:
http://wiki.contextgarden.net/Multiline_equations#Working_with_equation_numbering

perfectly valid code that isn’t already rendered and cached fails to be
shown.

Someone needs to fix the wiki!

cheers, p
___
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] Asterisk

2015-06-09 Thread Philipp A.
just copy some symbol from here:
http://en.wikipedia.org/wiki/Asterisk#Encodings

and be sure to use a font containing them.

alternatively define a command which temporarily switches to such a font
in, displays the symbol, and switches back.

Procházka Lukáš Ing. - Pontex s. r. o.  schrieb am Di., 9.
Juni 2015 um 09:25 Uhr:

> Hello,
>
> how to typeset "centerd asterisk" ("*") in Ctx?
>
> I mean the symbol which is used in the third level of itemization (
> http://wiki.contextgarden.net/Enumerations) or which can be typeset by
> \textasteriskcentered in LaTeX.
>
> (I cannot find the symbol definition in Ctx itemize-command definition
> (source files) and simple writing "\textasteriskcentered" doesn't work.)
>
> Thank you in advance.
>
> Best regards,
>
> Lukas
>
>
> --
> Ing. Lukáš Procházka | mailto:l...@pontex.cz
> Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
> Bezová 1658
> 147 14 Praha 4
>
> Tel: +420 241 096 751
> Fax: +420 244 461 038
>
>
> ___
> 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] \margintext / \inmargin doesn't work as only thing after header

2015-03-19 Thread Philipp A.
thank you!

what’s \strut? can’t find it in the wiki…

Hans Hagen  schrieb am Do., 19. März 2015 um 11:52 Uhr:

> On 3/19/2015 11:39 AM, Philipp A. wrote:
> > |\enableregime[utf-8]
>
> ^^^ no need for that
>
> > \mainlanguage[de]
> >
> > \starttext
> >
> > \subject{Works}
> >
> > 1
> > \margintext{a}
> >
> > \subject{Doesn’t work}
> >
> > \margintext{b}
>
> \margintext{c} \strut
>
> > \stoptext|
>
> margintexts need to bind to something
>
> --
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>  tel: 038 477 53 69 | voip: 087 875 68 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  : 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] \margintext / \inmargin doesn't work as only thing after header

2015-03-19 Thread Philipp A.
example:

\enableregime[utf-8]
\mainlanguage[de]

\starttext

\subject{Works}

1
\margintext{a}

\subject{Doesn’t work}

\margintext{b}

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

[NTG-context] Simplefonts: light font weight?

2014-12-08 Thread Philipp A.
Hi,

simplefonts has the following list of weights: condensed, light, normal,
medium, heavy (source

)

how do i use them as argument for any kind of style named argument, e.g.
`\setuphead[chapter][style=light]` doesn’t work.

best, philipp
___
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] \setbreakpoints[compound] in tables

2014-04-04 Thread Philipp A.
hi, when inputting table data using \processdatabasefile, my initial
\setbreakpoints[compound] seems to have no effect.

is there a way to make it work?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] \placebookmarks only assigns pages for PDF bookmarks for sections that have been referenced

2014-03-28 Thread Philipp A.
title says it.

a section/title/whatever that doesn’t have a \in or \at pointing at it gets
no page assigned.

so i have an outline in the bookmark bar, but only like 3 of the entries
link to a page.
___
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] Floats to the side of headers

2014-03-19 Thread Philipp A.
Hi, i have a float that happens just to be as high as the page when placed
with location=right.

how do i convince my header to be on the same page (i.e. at the top, with
the top of the floar to the right of it)
___
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] \cite documentation

2014-03-13 Thread Philipp A.
i know that \cite can be called like \cite[ref], \cite{ref},
\cite[options][ref], and \cite[options]{ref}

is there a difference between curly braces and brackets?

what options apart from “start”, “end”, “data”, and “alternative” does it
know, and how do “data” and “alternative” work?

best, philipp
___
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] \definecolor and TikZ

2012-05-24 Thread Philipp A.
my biggest contribution to ConTeXt so far seems to be asking a
stackoverflow question, and filing a tikz bugreport with attached code from
the answer on stackoverflow. i’m sure i can do more myself in the future -.-
___
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 colours in TikZ

2012-05-18 Thread Philipp A.
also check this:
http://tex.stackexchange.com/questions/27952/cmyk-context-colors-in-tikz
___
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] Style file for iPad?

2012-03-06 Thread Philipp A.
2012/3/6 Alasdair McAndrew 

> Is there a style file for formatting PDFs from ConTeXt for reading on an
> iPad?
>

 make an ebook instead. PDF files aren’t for screen reading, but for
printing.

semantic markup like it is used in ebook formats is much better suited for
screens of all sizes.
___
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] Titles break TikZ

2012-02-08 Thread Philipp A.
thank you. my install script keeps getting more monstrous:

#!/bin/zsh
./first-setup.sh --extras="t-simplefonts,t-tikz,t-filter,t-vim,t-lettrine"

cd context-rst
./upgrade.sh
cd ..

. ~/context/tex/setuptex
export OSFONTDIR="/usr/local/share/fonts;/usr/share/fonts;$HOME/.fonts"
mtxrun --script fonts --reload

#fix tikz
fontset="tex/texmf-context/tex/context/base/font-set.mkvi"
fontsetbak="font-set.mkvi.changed"

sed "s/{%\(dorecurse.*\)/{\1/" <"$fontset" >"$fontsetbak"
mv "$fontsetbak" "$fontset"

context --generate
context --make --all
___
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] Titles break TikZ

2012-02-08 Thread Philipp A.
once again i’m not quite sure what to do as i don’t really understand
what’s going on (just ignorance, not your fault, guys ;))

do i get it right that i have to locate “font-set.mkvi” and i will find the
following line, in which i have to remove the first “%” sign?

  {%\dorecurse\plusseven{\fontdimen\recurselevel\nullfont\zeropoint}% keep
en eye on this as:

thank you!
___
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] Titles break TikZ

2012-02-07 Thread Philipp A.
with some recent beta (sorry for vagueness), tikz stopped working after
titles. (i use first-setup.sh to install: these are the betas, not
something different, right?)

(quite) minimal example:

—✁—

\usemodule[tikz]

\def\pic{\framed{\starttikzpicture
\node[draw] (A) {A};
\node[draw] (B) at (1, 0) {B};

\draw[green, ->] (A) -- (B);
\draw[red,  <->] (A) -- (B);
\draw[blue, <- ] (A) -- (B);
\stoptikzpicture}}

\starttext
Works:

\pic

\section{This fucks things up}
Doesn’t work:

\pic
\stoptext

—✃—

result:

[image: tikztest.png]

(if this gets scrapped: https://imgur.com/GV1gK )
<>___
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] "overscored" or "overlined" text … (or whatever it should be called)

2012-01-25 Thread Philipp A.
2012/1/25 Aditya Mahajan 

> Better is to use: \StrikeMeFrame{\mathsurround\zeropoint$#1$}. But for
> this to work in subscripts and superscripts, you must use math palette.
> IIRC, \mframed does that. In principle:
>
> \mframed[background=strikeme]{**...}
>
> should work (untested).
>
> @Hans: Can we have \definemframed etc as well?
>
> Aditya
>

so this should work?

‒

\startuniqueMPgraphic{strikeme}
   path p ; p := OverlayBox topenlarged -ExHeight bottomenlarged -ExHeight ;
   draw llcorner p -- urcorner p withcolor OverlayColor ;
\stopuniqueMPgraphic

\defineoverlay[strikeme][\uniqueMPgraphic{strikeme}]

\def\strike#1{%
\ifmmode%
\mframed[background=strikeme,frame=off]{#1}%
\else%
\inframed[background=strikeme,frame=off]{#1}%
\fi}

\starttext
\startformula
{\strike2a + \strike ab \over \strike a} = a
\stopformula

Works in text, \strike{two}too!

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

Re: [NTG-context] "overscored" or "overlined" text … (or whatever it should be called)

2012-01-25 Thread Philipp A.
2012/1/25 Hans Hagen 

> \ifmmode
>

thanks. that was obvious…

$\StrikeMe{x}$
>

unfortunately this does the same as my tikz version: it exits math mode:

$\StrikeMe{\ifmmode math mode! \else no math mode :( \fi} \ifmmode math
mode. \else wat \fi$

returns

no math mode :( *mathmode.*
___
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] "overscored" or "overlined" text … (or whatever it should be called)

2012-01-25 Thread Philipp A.
while we are at it: how to do do strikethrough text? there is a changelog
on contextgarden which says it was added, but \strike or \strikethrough are
not defined.

i have (a diagonal) one here, but it doesn’t really work in math mode (the
text inside is normal). that being said, is there something like
\ifthiswascalledinmathmode{then}{else}?

\def\strike#1{\tikz[baseline=(c.base)]{
\node[inner sep=0pt] (c) {#1};
\draw (c.south west) -- (c.north east);
}}
___
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] Tikz module causes errors

2012-01-18 Thread Philipp A.
2012/1/17 Christophe Jorssen 

> If they aren't yet in the official repo, I would be happy to add those
> patches. Note that I'm not a ConTeXt user, so I won't be able to test
> them carefully.
>

which ones? all those in mojca’s repo ?

because getting them into mainline tikz would be awesome. some gems like
thisalready
made
itinto
the cvs, but we have still qite some bugs that are only fixed in
mojca’s repo. (e.g. matrices are still unusable if you don’t do
\unprotect\ReadFile{pgfmodulematrix.code.tex}\protect after loading the
tikz module afaik)

___
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] idea for a ConTeXt keyboard

2012-01-11 Thread Philipp A.
don’t forget http://webdemo.visionobjects.com/equation.html

it is an online handwriting-to-mathml/tex-converter!
___
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] Karnaugh Maps

2011-12-22 Thread Philipp A.
2011/12/22 luigi scarso 

> mkiv or mkii ?
> Anyway, metapost --- have you seen metafun ?
>

metafun or tikz is the answer. your request is pretty special, so you’ll
have to do the majority of the work yourself (in contrast to using
something like the circuit library for tikz)

i tikz, you’d do sth like:

\usetikzlibrary[matrix,fit]
\starttikzpicture
\matrix[
matrix of nodes,
ampersand replacement=\&
] (m) {
0 \& 0 \& 1\& \1 \\
0 \& 0 \& 1\& \1 \\
0 \& 0 \& 0\& \1 \\
0 \& 1 \& 1\& \1 \\
}

\node[red, fit = (m-1-3) (m-2-4)] {};
\node[green, fit = (m-1-4) (m-4-4)] {};
\node[green, fit = (m-4-2) (m-4-3)] {};
\stoptikzpicture

(untested)
___
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] simplefonts: math in headers

2011-12-16 Thread Philipp A.
thanks for the effort. i can’t say i understand anything about fonts if i
judge from what the results of above suggestions look like:

\usemodule[simplefonts]

\definesimplefonttypeface[mainface][Cambria]
\definesimplefonttypeface[mainface][Ubuntu] [style=sans]
\definesimplefonttypeface[mainface][cambria][style=math]

\setupbodyfont[mainface]

Well: header math is in unbold cambria, body text in courier or something
like this, and the math font features are not used (tiny parentheses around
matrices, fraction denominators and numerators are shrunk instead of using
small glyphs)

\setfalse\completeboldmathstrategy

\usemodule[simplefonts]
\setmainfont[Cambria]
\setmathfont[Cambria]
\setsansfont[Ubuntu]

too slim parentheses, but this is to be expected :D

\definetypeface[mainface][rm][specserif][Cambria]
\definetypeface[mainface][ss][specsans] [Ubuntu]
\definetypeface[mainface][mm][math] [cambria]

\setupbodyfont[mainface]

exactly the same as above. slim parentheses in header math, rest working.
cambria in the last line only works when lowercase, but is case-insensitive
in the rm and ss lines. does this solution disable the
completeboldmathstrategy automatically?

thanks for the fixes,
philipp
___
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] simplefonts: math in headers

2011-12-15 Thread Philipp A.
2011/12/15 Wolfgang Schuster 

> There is no way for me to fix this because it’s a context bug.  You can
> see the effect with the following example, when you load LM before Pagella
> the heading use LM Math but when you load Pagella before LM Palatino math
> is used for the heading.
>
> \setupbodyfont[modern]
> \setupbodyfont[pagella]
>
> \setuphead[section][style={\ss\bfb}]
>
> \starttext
> \section{Wat? $y=x^2$} $y=x^2$
> \stoptext
>
> Wolfgang
>


umm, so this happens because this bug exists and simplefonts sets the fonts
on module load?

is there a way to fix it or is an official fix on the way?

thanks for the info,
philipp
___
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] simplefonts: math in headers

2011-12-15 Thread Philipp A.
Bump:

2011/12/9 Philipp A. 

> hi, i have the following setup:
>
> \usemodule[simplefonts]
> \setmainfont[Cambria]
> \setsansfont[Ubuntu]
> \setmonofont[Envy Code R][regularfont=envycoder]
> \setmathfont[Cambria]
>
> \setuphead[section][style={\ss\bfb}]
>
> \starttext
> \section{Wat? $y=x^2$}
> \stoptext
>
> why is the math in the header typeset in computer modern instead of ubuntu
> and how do i fix it?
>
> PS: preferrably it should be bold, too. there is a wiki page, “Bold Math
> in Section Titles<http://wiki.contextgarden.net/Bold_Math_in_Section_Titles>”
> but it doesn’t explain how to do it with simplefonts.
>
___
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] [solved] How to create horizontal line for signature?

2011-12-13 Thread Philipp A.
i always use tikz anyway, so i can as well use it for something like this:

\tikz[baseline=(start)]\draw (0,0) coordinate (start) edge[label=below:Your
Name here] (4cm,0);

untested, tell me if it doesn’t work.

it should do the following: name a coordinate “start” and draw a line
horizontally 3cm with “Your Name here” as label below.
___
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] headers: numberconversion=something or \definestructureconversionset

2011-12-13 Thread Philipp A.
2011/12/12 Wolfgang Schuster 

> Am 08.12.2011 um 11:21 schrieb Philipp A.
>
> hi list,
>
> i want to make an exercise sheet style. exercises are already correctly
> rendered as “*Exercise <1>: *”, but sub-exercises should simply be
> like “*)*”.
>
> what i tried:
>
> \definestructureconversionset[ex][numbers,characters][numbers]
> \setupheads[numberconversion=ex]
>
>
> sectionconversionset=…
>
> and
>
> \setuphead[subsection][numberconversion=characters, …]
>
>
> sectionconversion=…
>
> but i have no idea what i’m doing in the first case and even less idea of
> what i’m doing wrong in the second.
>
> documentation would help in both cases, but contextgarden just has some
> (for me) incomprehensible examples.
>
>
> For a list with the correct names of the keys look here (the “conversion”
> in the pdf for \setuphead is wrong but i fixed it in my local version):
> https://bitbucket.org/wolfs/commands/downloads
>
> Wolfgang
>

very nice, thanks. i willput it on contextgarden as soon as i figured out
what exactly it does (i.e. how it works together with numbercommand)
___
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] ∫ and $\intop$ is not displayed correctly compared to $\int$.

2011-12-11 Thread Philipp A.
wow, there is really much magic going on in context. one reason why i love
it.

i once wrote a script that showed some nice little gui for a similar file
(i.e. xkb/symbols/??) that displayed the characters on a grid similar to
the keyboard layout and allowed displaying of the different layers. i used
it to customize the standard ubuntu keyboard layout to have some much-used
symbols, but haven’t really got around to try switching to another layout
than quertz (as it would tie me even stronger to my own pc and would take
significant time to master)

maybe it would be nice to have a similar program that displays the mappings
in the char-def.lua since i can’t search for the symbols directly, have no
overview and editing would involve looking up the codes or names in a char
map, finding it in the file, and so on.

xrightarrow and friends are nice, because they adjust their length to the
over-and underscripts and work without parameters, too. so $A → B →{woo} C$
would work flawlessly and look nice both in code and the 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ∫ and $\intop$ is not displayed correctly compared to $\int$.

2011-12-11 Thread Philipp A.
apart from this IMHO very useful change (mapping  to \int), maybe we should
create a unicode-math module which replaces some commands with symbols. i
find myself always using this for chemical and mathematical documents:

\catcode`→=\active
\def→{\xrightarrow}
\catcode`↔=\active
\def↔{\xleftrightarrow}
\catcode`√=\active
\def√{\sqrt}

PS: i recently posted two questions to this list which i got no
replies to:“simplefonts: math in headers” and“headers:
numberconversion=something or \definestructureconversionset”

do you see them or did they get lost in transmission?
___
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] simplefonts: math in headers

2011-12-09 Thread Philipp A.
hi, i have the following setup:

\usemodule[simplefonts]
\setmainfont[Cambria]
\setsansfont[Ubuntu]
\setmonofont[Envy Code R][regularfont=envycoder]
\setmathfont[Cambria]

\setuphead[section][style={\ss\bfb}]

\starttext
\section{Wat? $y=x^2$}
\stoptext

why is the math in the header typeset in computer modern instead of ubuntu
and how do i fix it?

PS: preferrably it should be bold, too. there is a wiki page, “Bold Math in
Section Titles ”
but it doesn’t explain how to do it with simplefonts.
___
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] headers: numberconversion=something or \definestructureconversionset

2011-12-08 Thread Philipp A.
hi list,

i want to make an exercise sheet style. exercises are already correctly
rendered as “*Exercise <1>: *”, but sub-exercises should simply be
like “*)*”.

what i tried:

\definestructureconversionset[ex][numbers,characters][numbers]
\setupheads[numberconversion=ex]

and

\setuphead[subsection][numberconversion=characters, …]

but i have no idea what i’m doing in the first case and even less idea of
what i’m doing wrong in the second.

documentation would help in both cases, but contextgarden just has some
(for me) incomprehensible examples.

thanks,
philipp

--

what i’d really love to have is the following commands, but i’ll figure it
out once i have above problem solved.

“\sheet” reads the current sheet number from the file name and gives “*Sheet
<1>*” as title level header.
“\exercise[]” gives “*Exercise <1>*” without and “*Exercise <1>:
*” as section level header.
“\subexercise[]” gives “*)*” without and “*: )*” with
description as subsection level header.
___
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] [OT] intelligent commas in math (in LaTeX)

2011-09-30 Thread Philipp A.
that would be very useful for sets and german decimals: $x = 1,33$ vs. $x ∈
{1, 2, 3, 4}$
___
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] new look for wiki

2011-09-29 Thread Philipp A.
2011/9/29 Alan Braslau 

> Thanks
> (But this should be the default - maybe it is now for new users.)
>
> Alan
>

i don’t know, but i suspect that we both changed this setting from default
at one point in the past, and so it now sticks to our decision.
___
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] new look for wiki

2011-09-28 Thread Philipp A.
2011/9/28 Alan Braslau 

> Again, very nice. But, unfortunately, I loose the style when I log in :(
>
> Alan
>

go here: http://wiki.contextgarden.net/Special:Preferences#mw-htmlform-skin
___
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] TikZ bug fixing (git, minimals, ...)

2011-09-14 Thread Philipp A.
hi mojca, do you want to swich from cvs to git or just create a git mirror
of the cvs repo? in the latter case, i’d be interested in why you don’t
swich to git entirely.

2011/9/13 Mojca Miklavec 

> When I tried to do conversion from CVS, the .cvsignore files are the
> only leftovers that somehow bother me (I would really like to get rid
> of .cvsignore files and put some gitignore somewhere, without my
> commit being visible), but then I noticed that .cvsignore ->
> .gitignore conversion is still on TODO list.
>
that cvs2git didn’t build it in makes me wonder what the big problem is.
both use shell-style wildcards, both can be anywhere in the path and apply
to that subpath, so there must be some hidden caveat…

The other thing that would make me happy would be the ability to apply
> some hook to do some transformation of code before comitting to git
> (let's say that I would want to reencode files into UTF-8 or that I
> would want to move or rename some files before the actual commit). If
> you know a simple way to do this, please let me know.
>
yes, there is such a thing. it is aptly named “pre-commit hook”:
http://book.git-scm.com/5_git_hooks.html

but since there are many settings in git (e.g. core.autocrlf for line
endings), i’d guess there are some for encoding, too. i might be mistaken,
though.

 Mojca
>
philipp
___
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] TikZ bug fixing (git, minimals, ...)

2011-09-12 Thread Philipp A.
thanks for picking up my rant in such a constructive manner :)

A quick googling showed me this tool,
cvs2git, whose “Development status” section really sounds promising:



*Development status*

Most of the work of converting a repository from CVS to a more modern
version control system is inferring the most likely history given the
incomplete information that CVS records. cvs2svn has a long history of
making sense of even the most convoluted CVS repositories, and cvs2git uses
this same machinery. Therefore, cvs2git inherits the robustness and many of
the features of cvs2svn . cvs2svn
can convert just about every CVS repository we have ever seen, and includes
a plethora of options for customizing your conversion.

The output of cvs2git is one or more dump files that can be imported into
git using the excellent git
fast-importtool.

Although cvs2git is considerably newer than cvs2svn, and much less well
tested, it is believed that cvs2git can (cautiously) be used for production
conversions. If you use cvs2git, please let us know how it worked for you!



I hope this means that PGF/TikZ becomes hosted on Github – I think the team
there does a great job and the concept of “pull requests” really fits any
open source project, no matter how hard the criteria for patches are.

hopefully,

philipp
___
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] Latest betas break tikz matrix

2011-09-12 Thread Philipp A.
Thank you both!

We should get the TikZ devs to accept patches already. does anyone know
anyone who has CVS access?

Apart from Aditya’s hack, I’d also like to see Joseph Wright’s
hackfor
ConTeXt’s CMYK colors in TikZ. Maybe we should create a module from
user-created TikZ hacks that make it work better with ConTeXt, and link to
it on ConTeXtgarden?

PS: Aditya, does your module provide everything you’d expect? like
\tikzstyle, \usetikzlibrary[something], \tikz\node{};, …? I don’t exactly
know the inner workings of plain TeX…

philipp
___
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] Latest betas break tikz matrix

2011-09-11 Thread Philipp A.
2011/2/23 Mathieu Boespflug <0xbadc...@gmail.com>

> Hi all,
>
> just as a followup and for the mailing list archives, the solution is
> to use both Aditya's suggestion to turn on \donknuthmode, as well
> replacing the & signs with their interpretations, namely
> \pgfmatrixnextcell. Thank you Aditya for the suggestion.
>
> Regards,
>
> Mathieu


umm, i can’t seem to get it to work. i use the mkiv minimals…

no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and
“replace ampersand=foo”, that i tried, seems to work.

can anyone give me a minimal example of a working tikz matrix in a context
document? (preferrably something that prevents me from littering everything
with “\pgfmatrixnextcell”)

thanks,
philipp
___
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] TikZ: \@flushglue undefined

2011-09-04 Thread Philipp A.
2011/9/4 Wolfgang Schuster 

> No, it’s a TikZ bug. The macro \@flushglue which is used by TikZ is defined
> in the LaTeX kernel but not in ConTeXt and as TikZ is format independent it
> has to ensure that the command exists.
>
> Wolfgang
>

thanks. do you have got a quick fix?

\unprotect
\def\@flushglue?
\protect
___
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] TikZ: \@flushglue undefined

2011-09-04 Thread Philipp A.
i don’t know if it’s a TikZ or a ConTeXt bug, but with the newest mkiv beta
installed with mtx-update.lua, tikz fails when using the option “text badly
centered” in combination with “text width”:

\usemodule[tikz]
\starttext
\tikz\node[text badly centered, text width=1cm]{fail};
\stoptext

gives:

\tikz@text@action ...p =0pt\rightskip \@flushglue
  \leftskip \@flushglue
\relax
...

as it doesn’t occur with LaTeX, i think it might be a ConteXt bug.
___
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] please fix command reference links on contextgarden

2011-08-22 Thread Philipp A.
2011/8/22 Mojca Miklavec 

> Thank you.
>
> It was a very nasty one to find, it is located here:
>http://wiki.contextgarden.net/MediaWiki:Monobook.js
>
> I fixed the link now, but we probably need to remove javascript
> alltogether and just create a normal link.
>
> Mojca
>

 thank you!
___
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] please fix command reference links on contextgarden

2011-08-22 Thread Philipp A.
> Can you please provide more details

of course

how can we reproduce the problem
>
go to e.g. http://wiki.contextgarden.net/Quotes and click on a command link,
e.g.

*single quotes* \quote{some text}

in the wiki, the fake link on \quote is a real one, calling
javascript:show_command('quote') on click.

and where is that function?
>
the function can be found in
http://wiki.contextgarden.net/index.php?title=-&action=raw&smaxage=0&gen=js&useskin=monobook&270,
which is loaded in the head of each contextgarden wiki page.

and as said, the problem is that

   - either the function should open the right url in the first place
   - or texshow should redirect properly

@texshow:
the resonse header contains the following lines:

HTTP/1.1 302 Found
Server: Apache/2.2.9 (Ubuntu) DAV/2 SVN/1.5.1 PHP/5.2.6-2ubuntu4.6 with
Suhosin-Patch Phusion_Passenger/2.2.4
Location: http://wiki.contextgarden.net/Category:Reference/en

so the apache webapp is misconfigured.

Thank you,
>Mojca
>
thank you for listening :D

(texshow used to be a separate application; it is now part of wiki)
>
 i kinda figured that ;)
___
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] please fix command reference links on contextgarden

2011-08-22 Thread Philipp A.
it does *still* not work.

the fuction is defined as such:

function show_command(URL) {
open_window().location.href='http://texshow.contextgarden.net/cmd/' + 
URL;
}

and thus redirects to some url under http://texshow.contextgarden.net/.

but no matter what that url is, the subdomain always redirects to the url
http://wiki.contextgarden.net/Category:Reference/en (no, not
http://wiki.contextgarden.net/Category:Reference/en/TheCommandName!)

please fix it, whoeveer runs texshow.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] ... and emoticons

2011-03-21 Thread Philipp A.
2011/3/21 Cecil Westerhof 

> 2011/3/20 Philipp A. 
>
>> On modern Linux distributions, there is support for the ellipsis (…) on
>> the keyboard layout; The combination is [AltGr+.]
>>
>
> Not all. In openSUSE that is not the case. I made it for myself. I have a
> file
> /SharedFunctions/Xmodmap.extra
> which I use with:
> xmodmap /SharedFunctions/Xmodmap.extra
>
> In this I have now:
> keysym period= period   greater ellipsis
>
> That does the trick.
>
> If you are interested in the complete file: I have it attached.
>
> --
> Cecil Westerhof


oh, i guess you’d like to file a bug request for this. it’s quite useful and
has no drawbacks at all.
i think one of the greatest reasons why linux isn’t adapted as desktop os is
that you can’t just say sth. like i did and assume it it right for everyone.
(missing OEM installs are the biggest reason, though)

but i don’t want to discuss this here ;)
it’s great to have both a reasonable keyboard layout and a text processor
which can understand the symbols. i hope one day i’ll get to print my own
keyboard with math symbols all over. it would greatly improve the
readability of context files when they contain unicode math stuff like
\startformula
∫₀³ xⁿφ₁₂(x) \, ⅆx \stopformula
___
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] ... and emoticons

2011-03-20 Thread Philipp A.
On modern Linux distributions, there is support for the ellipsis (…) on the
keyboard layout; The combination is [AltGr+.]

On Windows, there is at least Microsoft
KLC.
While the possibilities are inferior, simple key combinations like the one
above are easily achieved.

Is someone interested in a german standard layout with some additional
symbols? (×÷…·—–„“”‚‘’ẞ‽‰)
___
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] Compile script

2011-03-10 Thread Philipp A.
2011/3/3 Cecil Westerhof 

> I have been asking a lot of questions lately and getting very speedy
> replies. Time to give something back. ;-}
>
> I attached a script I made to easily compile ConTeXt files in the current
> directory. Default it looks if there are tex files where there is no pdf
> file, or the pdf file is older. Those are compiled.
>
> It is possible that a tex file has not changed, but a file that it depends
> on has. That is why there is the parameter --all. When this is given, all
> tex files are compiled. I hope it is useful to someone.
>
> --
> Cecil Westerhof


good idea. it would be cool to extend it to utilize texworks'
modelines,
which are a pretty straightforward way to tell programs which files are root
files and which command shjould be used to compile them (a bit like
shebangs).

i would like to see these standardized in some way (and a good start is to
tell everyone they are there)

flying sheep
___
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] Chinese TTC fonts can not be loaded with the beta (2011.02.11)

2011-02-13 Thread Philipp A.
2011/2/13 Li Yanrui (李延瑞) 

> Hi,
>
> For this example with simsun.ttc (it can be download from
> http://www.slax.org/modules.php?action=detail&id=2630):
>
> \definefont[song][name:nsimsun]
> \starttext
> \song 测试
> \stoptext
>
> ConTeXt MkIV said:
>
> fonts   > fallback modern rm 12pt is loaded
> system  > begin file b at line 3
> fonts   > otf loading > loading:
> selfautoparent:texmf-local/fonts/truetype/winfonts/simsun.ttc (hash:
> simsun-nsimsun)
> fonts   > otf loading > font loaded okay
> fonts   > otf loading > loading failed (file read error)
> fonts   > defining > forced type ttc of simsun not found
>
> I have tested the uming.ttc (AR PL UMing, it can be download from
> http://www.freedesktop.org/wiki/Software/CJKUnifonts/Download) and got
> the same error.
>
> --
> Best regards,
>
> Li Yanrui
>

i wanted to load a ttc at one point, too, and failed.

i found beer , a free
software collection, and ported it’s ttc2ttf tool to python (as a
challenge).

you can find my port here , but it doesn’t get
the magic numbers right. it works for me, though.
___
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] Speech bubbles

2011-02-08 Thread Philipp A.
@wolfgang: was my example helpful?
___
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] Speech bubbles

2011-02-03 Thread Philipp A.
Am 3.2.2011 schrieb Wolfgang Schuster:

> Am 03.02.2011 um 18:38 schrieb Philipp A.:
> > for the record: the TikZ package has built-in parameterized speech
> bubbles.
> Can you make a example?
>
> Wolfgang
>

of course.
you can read about it in the pgfmanual in chapter 39.7:

\usepackage[tikz]
\usetikzlibrary[shapes.callout]

\starttext
\starttikzpicture
\node[ellips callout, draw] {Hallo!};
\stoptikzpicture
\stoptext

using the options callout relative pointer=(coordinate) and callout absolute
pointer=(coordinate), you can modify where it points to, using standard node
options you can modify other aspects (positioning, padding, width, height,
color, line thickness, …)

beware: i have not tested above code, but it should be obvious.

Philipp
___
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] Speech bubbles

2011-02-03 Thread Philipp A.
for the record: the TikZ package has built-in parameterized speech bubbles.
___
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] handling key=value sets with lua

2011-01-09 Thread Philipp A.
2011/1/9 Hans Hagen 

> On 9-1-2011 11:13, Philipp A. wrote:
>
>  i wanted to instead define bigcrafting to work like this:
>> \bigcrafting
>>   [21=planks, 22=planks,
>>31=planks, 32=planks]
>>   [workbench]
>>
>> but \getparameters<
>> http://wiki.contextgarden.net/Commands_with_KeyVal_arguments>can’t
>> handle numerical values.
>>
>
> Why now?
>
> \getparameters[MyNameSpace][1=a,2=b]
>
> \getvalue{MyNameSpace1}
>
> works ok.
>

ok, i just knew of \MyNameSpaceKey, which doesn’t work if the key consists
numbers. thanks again!
ConTeXt seems to be your personal baby, isn’t it? ;)
___
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] handling key=value sets with lua

2011-01-09 Thread Philipp A.
hi list,

skip to the many %%% if you just want to help me ;)

i need to make a macro which consists of ten optional arguments. it wouldn’t
be too ugly to require to write the following to use it, since it outputs a
3×3 matrix with an adjacent tenth item, but tex can’t handle ten arguments
afaik.


syntax idea:
empty:
\bigcrafting%
{}{}{}%
{}{}{}{}%
{}{}{}%

partly filled:
\bigcrafting%
{}{}{}%
{planks}{planks}{}{workbench}%
{planks}{planks}{}%

how it should look:
[image: CraftingWorkbenchIO.png]

ok, since using empty “required” arguments aren’t elegent, either, i wanted
to get into key=value sets, but ran into the next problem:

i wanted to instead define bigcrafting to work like this:
\bigcrafting
  [21=planks, 22=planks,
   31=planks, 32=planks]
  [workbench]

but 
\getparameterscan’t
handle numerical values.

%%%

and while points of the compass like NE, S and C (for center) would work, it
sprang to my mind that a parser written in lua, whitch uses lua’s internal
hashtables would meet my furter needs better (like looping over the matrix
and testing if parameters are set) can somebody tell my how to access (and
test if they exist) the arguments (#1,[#2],…) of a command definition in
lua?
___
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] Handling EMBED tag in Tex

2011-01-07 Thread Philipp A.
2011/1/7 Wolfgang Schuster 

> Am 07.01.2011 um 15:02 schrieb Philipp A.:
> > out of curiosity: how do you get “·”?
>
> asciimath: “*”
> calcmath: i guess “·”
>
> Wolfgang
>

thanks :)
___
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] Handling EMBED tag in Tex

2011-01-07 Thread Philipp A.
2011/1/7 Wolfgang Schuster 

> Asciimath:
>
> ["xx"]= "\\times ",
>
> Calcmath:
>
> elseif how == '*' then
> texprint("\\times")
>
> These are the relevant parts from the asciimath and calcmath sources,
> to get the output “3 \times 3 = 9” in TeX you have to type with
> asciimath “3 xx 3 = 9” and with calcmath “3 * 3 = 9”.
>
> Wolfgang
>

ok, sorry, now i understand.

out of curiosity: how do you get “·”?
___
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] Handling EMBED tag in Tex

2011-01-07 Thread Philipp A.
2011/1/7 Wolfgang Schuster 

> Sorry but but i mixed calcmath and asciimath but nevertheless you should
> look
> at the source where you can find the hint that \times is produced with “xx”
> as input.
>
> Wolfgang
>

there are 3 math operators which can be “times”:
“·”, “×” and “∗” (not “*”)

which of it is it? i am confused by your “x”es and other stuff *shudder*
(modern linux systems have useful keyboard layouts to input these)
___
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] In-text itemizations break spacing

2011-01-04 Thread Philipp A.
2011/1/4 Wolfgang Schuster 

> Am 04.01.2011 um 18:51 schrieb Philipp A.:
>
> 2011/1/4 Wolfgang Schuster 
>
>> Make a example next time!
>>
>> [Example]
>>
>> Wolfgang
>>
>
> so [textdistance=medium] is the solution, thanks!
>
> nevertheless, i couldn’t find documentation about “textdistance”,
>
> The option was added last march and it’s now up to you to document it.
>
> The values for the key are
>
> none   : no distance between items
> small  : half the value of a normal space, can be stretched by half of a em
> medium : normal space distance, can be stretched by 1em
> big: 1em, can be stretched or shrinked by a space width
>  : e.g. 3pt plus 2pt minus 1pt
>

been there <http://wiki.contextgarden.net/Reference/en/setupitemgroup>, done
that <http://wiki.contextgarden.net/Reference/en/keyword:textdistance>.

> and i don’t think it to be very intuitive, that this changes the space to
> be more flexible.
>
> sorry but i forgot why we used these values, maybe a smaller stretch value
> for small and medium make sense
>

i don’t think so (or at least not much less), and i meant sth. different:
“textdistance=medium” does not mean “greater flexibility”, it does mean “no
change in flexibility, just in distance”. using medium as standard value
would be ok, though, because you get the flexible (=mostly better) behavior
as standard, and the rigid as option.

> would you mind telling me why this is the case, and why this isn’t standard
> behavior?
>
> backward compatibility, i would also prefer “medium” as default value
>

can’t we just screw backward compatibility at all costs here? i mean:
“medium” won’t make it worse in most cases, just better! (the maximum space
is 1em+1sp, so we probably will never get different hyphenation, but almost
always less overfull \hboxes)

also, \setbreakpoints[compound] should be standard in my opinion.

Wolfgang
>

thanks for the answer,

phil
___
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] In-text itemizations break spacing

2011-01-04 Thread Philipp A.
2011/1/4 Wolfgang Schuster 

> Make a example next time!
>
> [Example]
>
> Wolfgang
>

so [textdistance=medium] is the solution, thanks!

nevertheless, i couldn’t find documentation about “textdistance”, and i
don’t think it to be very intuitive, that this changes the space to be more
flexible.
would you mind telling me why this is the case, and why this isn’t standard
behavior?
___
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] In-text itemizations break spacing

2011-01-04 Thread Philipp A.
Hi ConTeXtans,

\startitemize[text] is a very cool command, but i run frequently into
“Overfull \hbox” errors.

It would be nice if some context magicians would change the ~1em-wide space
in front of the “•” or “(1.)” to scale and compensate the majority of line
width issues. (you can easily chop off or add loads of space to a 1em-space
without making it ugly)

i hope you dig my idea,
Philipp

PS: if somebody doesn’t know how \startitemize[text] looks like; about like
this: „Formen sind • Überspringen von Exons, • Benutzung alternativer 3’-
und 5’-Splice-Stellen, • und alle Kombinationen aus oben genanntem.“ (You’ll
need a proportional Font to see this and gmail and the mailing list need to
conserve the em quad…)
___
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] Dumb quotes and dashes, globally and in verbatim text

2010-12-22 Thread Philipp A.
2010/12/21 Wolfgang Schuster 

> For mkii you need the texnansi encoding for the fonts, mkiv has no problems
> with \type
> but haven’t told which engine you use neither did you provide a full
> example.
>
> Run this and you will get the correct output for \type:
>
> \usetypescript[modern][texnansi]
> \setupbodyfont[modern]
> \starttext
> - \type{-} -- \type{--} --- \type{---}
> \stoptext
>
> Wolfgang
>

i use mkiv, specifically the version you get via ./first-setup.sh
--extras="t-simplefonts,t-tikz"

i now found out that the simplefonts module cuses this:

\usemodule[simplefonts]
\starttext
\type{--}
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
2010/12/21 Wolfgang Schuster 

> Make a example where this occurs, in the following example all dashes are
> correct in the typing environment with mkii and mkiv.
>
> \starttext
>
> \startlines
> -
> --
> ---
> \stoplines
>
> \starttyping
> -
> --
> ---
> \stoptyping
>
> \stoptext
>
> Wolfgang
>

ok, sorry, \type{--} doesn’t work. (i thought i used the environment, but i
only used the macro)

it should work in \type, too, though.
___
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] Dumb quotes and dashes, globally and in verbatim text

2010-12-21 Thread Philipp A.
so i want to use ' and -- in my code, which is embedded via \starttyping
\stoptyping, but that’s impossible.
context replaces -- with – and ' with ’. that’s wrong. i need to be able to
tell context it shouldn’t do any “smart” stuff, since i’m smart enough to
press the ’-key if i want the character ’.

so what i ask for:

   1. we should change the standard behavior of context to “don’t replace
   --, ' and whatnot in verbatim areas”
   2. we should be able to trigger this globally, for people who have a
   useful keyboard layout and can type “special” characters as fast as ascii.

is the latter already built in somehow?
___
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] ascii ribbon

2010-12-18 Thread Philipp A.
wtf, crappy gmail!
this was supposed to go to philipp gesang only (because of his ascii-ribbon
signature)
sorry for posting it here, it was an accident.
___
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] ascii ribbon

2010-12-18 Thread Philipp A.
hi,
do you really support this obsolete statement?

if so: why?

   - html mail is supported by every mail reader nowadays, and nowhere near
   broken
   - semantic html is way better for blind people than plain text, since it
   is, well, semantically structured. something enclosed in em-tags will e.g.
   pronounced in a accentuated voice by the screen reader.
   - e mail sizes are no problem with today's hd capacity
   - every proper mail reader does block pics from foreign sources for
   privacy reasons

essentially: this was true, and isn't anymore.

if you think http://www.xkcd.com/386 , you are right, i'm like that :)

cu in the context forum,
philipp
___
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] why lua?

2010-12-17 Thread Philipp A.
hans, some of the things you said are a bit unclear to me:

2010/12/18 Hans Hagen 

>  Ah .. the extending vs the embedding debate ... well, an argument could
> have been that we don't want to extend python -)
>

see last paragraphs.

I've only used Pascal, Modula2, Perl (after all that compiling and linking I
> loved the scripting aspect but the language ... well ...), Ruby (brought me
> back happy Modula memories but it got so huge and had incompatible updates
> but is still my second choice), but I feel quite happy with Lua now.
>

give python a try. i love it because it has the writability of perl without
(de)referencing and funny symbols, and a class system like java/c++/… (no
prototyping and stuff)

well, i just like it. and since i don’t know lua (well, that’s not exactly
true, but i can’t write a normal sized script without looking things up),
and tend to do things like i would do them in other languages i know. e.g.:
how do you loop elegantly over table values? “for k,v in pairs(t) do print(v)
end” creates a throwaway variable k, which doesn’t seem right. some things
are totally counter-intuitive for me like tables beginning with index 1, and
so on.

so i guess it’s natural that i would like to use a scripting language i know
and like, like python.

Anyhow, I don't like languages that need religious arguments to become
> popular.


like… which one? i only know of the tabs vs. spaces and vim vs. emacs
religious wars. i can’t remember of any languages being subdued to that.

or are you talking about lua having been invented at a catholic university
and thus being a product of a sect somehow?

Hans
>

what i want to show you is kross
.
kross is the project for bringing consistent scripting to KDE, and it is
just awesome, since it allows you to write stuff in the scripting language
of your choice.

my dream for luatex/context would be a built-in lua interpreter (because lua
is so fucking small) and optional modules for other, heavier, scripting
languages (perl, ruby), which you don’t have to install. i don’t care if
python is embedded or extended, i just want to write \directpython{for num
in [9,2,4,8]: ctx.print(num**3)} (or sth. like that)

but don’t get me wrong, i love context and luatext, i just like other
languages better than lua (you weren’t content with latex and created
context, so this shouldn’t be alien to you)
___
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] why lua?

2010-12-17 Thread Philipp A.
2010/12/17 Jonas Stein 

> i'd like to make a small presentation for friends about
> context.
> Why do we use lua and not python or perl or...
>

you can. google for “luatex lunatic”.
you’ll have to build a little module defining the macros you use, though.
(like \ctxpython, \directpython and so on)

Where can i find the features for lua for this job?
>
> Kind regards,
>
> --
> Jonas Stein 
>
___
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] how to redefine section headers

2010-12-14 Thread Philipp A.
2010/12/14 Wolfgang Schuster 

> \setuplabeltext[de][aufgabe={Aufgabe ,}]
>
> \define[1]\TaskCommand
>   {\doifsomething{#1}{: #1}}
>
> \definehead[thetask][section]
>
> \setuphead
>   [thetask]
>   [style=sansbold,
>bodypartlabel=aufgabe,
>distance=0pt,
>deeptextcommand=\TaskCommand]
>
> \definecomplexorsimpleempty\task
>
> \def\complextask[#1]{\thetask{#1}}
>
> \mainlanguage[de]
>

thank you very much!

this is now officially my favoutite mailing list!

best regards,
philipp
___
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] how to redefine section headers

2010-12-14 Thread Philipp A.
hi!

i want to achieve the effect i see when using the following code, only in a
semantically correct way (and without defining a \MyHeader macro like in
some examples)

\setuphead[section][numbercommand=\headtext{section}~]
\setupheadtext[de][section=Aufgabe]
\def\task{\section{}}

so if my document looks like

\starttext
\task
\task
\stoptext

this should render to:
Aufgabe 1 Aufgabe 2

(i hope the mailing list delivers html mail)

And maybe somebody knows a cool way to do this:

\starttext
\task
\task[Graphs]
\stoptext


Aufgabe 1 Aufgabe 2: Graphs

thank you!
___
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] normal font incorrectly set to italic

2010-11-21 Thread Philipp A.
hi,
when i build my context mark iv font database via mtxrun --script font
--reload, for some fonts i get italics when i want normal fonts, most
notably with “cambria” and “envy code r”.

with cambria, this is likely due to the fact that the regular and math
variants are served within a .ttc file.
\setmainfont[Cambria][regularfont=Cambria
Math] does the trick (i use simplefonts), as well as some obscure chinese
ttc2ttf program i found on the web.

with envy code r, i have no idea.
mtxrun --script fonts --list --all --pattern="envy*" yields:
envycoderenvycoder
/home/phil/.fonts/Envy Code R 7/Envy Code R.ttf
envycoderboldenvycoderbold
/home/phil/.fonts/Envy Code R 7/Envy Code R Bold.ttf
envycoderitalic  envycoderitalic
/home/phil/.fonts/Envy Code R 7/Envy Code R Italic.ttf
envycodernormal  envycoderitalic
/home/phil/.fonts/Envy Code R 7/Envy Code R Italic.ttf

you can see the problem. how can i circumvent it?

thanks, phil
___
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] weird error: no return code

2010-03-25 Thread Philipp A.
 hi, the following document

\usemodule[tikz]
\starttext
\stoptext

yields the following error:

*
* ConTeXt output:
* cd "/home/flyingsheep/Dokumente/LaTeX/ConTeXt/oma"
* context --nonstopmode 'a4.tex'
*
This is LuaTeX, Version beta-0.50.0-2010010505
 \write18 enabled.
(/home/flyingsheep/Dokumente/LaTeX/ConTeXt/oma/a4.tex

ConTeXt  ver: 2010.03.20 22:59 MKIV  fmt: 2010.3.25  int: english/english

system  : cont-new loaded
(/usr/local/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/local/share/texmf/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/usr/local/share/texmf/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/etc/texmf/tex/context/user/cont-sys.rme
(/usr/local/share/texmf/tex/context/base/type-def.mkiv)
(/usr/local/share/texmf/tex/context/base/type-lua.tex)
(/usr/local/share/texmf/tex/context/base/type-siz.tex
(/usr/local/share/texmf/tex/context/base/type-siz.mkiv))
(/usr/local/share/texmf/tex/context/base/type-otf.tex
(/usr/local/share/texmf/tex/context/base/type-otf.mkiv)))
system  : a4.top loaded
(a4.top
)
fonts   : preloading latin modern fonts
bodyfont: 12pt rm is loaded
language: language en is active
(/usr/share/texmf/tex/context/pgf/frontendlayer/t-tikz.tex
(/usr/share/texmf/tex/context/pgf/basiclayer/t-pgf.tex
(/usr/share/texmf/tex/context/pgf/basiclayer/t-pgfcor.tex
(/usr/share/texmf/tex/context/pgf/systemlayer/t-pgfsys.tex
(/usr/share/texmf/tex/context/pgf/utilities/t-pgfrcs.tex
(/usr/share/texmf/tex/context/pgf/utilities/t-pgfmod.tex)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-common.tex)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfutil-context.def)
(/usr/share/texmf/tex/generic/pgf/utilities/pgfrcs.code.tex))
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys.code.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex)
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgf.cfg)
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
(a4.pgf)) (/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
(/usr/share/texmf/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex))
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcore.code.tex
(/usr/share/texmf/tex/generic/pgf/math/pgfmath.code.tex
(/usr/share/texmf/tex/generic/pgf/math/pgfmathcalc.code.tex
(/usr/share/texmf/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/share/texmf/tex/generic/pgf/math/pgfmathparser.code.tex)
(/usr/share/texmf/tex/generic/pgf/math/pgfmathoperations.code.tex
(/usr/share/texmf/tex/generic/pgf/math/pgfmathtrig.code.tex)
(/usr/share/texmf/tex/generic/pgf/math/pgfmathrnd.code.tex))
(/usr/share/texmf/tex/generic/pgf/math/pgfmathbase.code.tex)))
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex)
(/usr/share/texmf/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex)))
(/usr/share/texmf/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)
(/usr/share/texmf/tex/generic/pgf/modules/pgfmoduleplot.code.tex))
(/usr/share/texmf/tex/context/pgf/utilities/t-pgffor.tex
(/usr/share/texmf/tex/context/pgf/utilities/t-pgfrcs.tex)
(/usr/share/texmf/tex/generic/pgf/utilities/pgffor.code.tex))
(/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(/usr/share/texmf/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex)
(/usr/share/texmf/tex/generic/pgf/modules/pgfmodulematrix.code.tex)
(/usr/share/texmf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.texMTXrun
| run 1: luatex
--fmt="/home/flyingsheep/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en"
--lua="/home/flyingsheep/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en.lui"
--backend=pdf "./a4.tex"
MTXrun | fatal error: no return code, message: luatex: execution interrupted

I am using TexLive 2009 full and therefore mkIV

Can somebody help me?