Re: [NTG-context] lmtx

2021-01-19 Thread Jano Kula
Hello,

On Tue, 19 Jan 2021 at 12:11, Hans Hagen  wrote:

> On 1/19/2021 11:57 AM, Floris van Manen wrote:
> >
> >
> > On 18/01/2021 19:20, Hans Hagen wrote:
> >> You can run
> >>
> >>meta-imp-punk.mkxl
> >>
> >> to get an idea. There's also a typescript:
> >>
> >>type-imp-punk.mkxl
> >
> >
> > How to run these?
> Normally with:
>
> context --global 
>

when file has \continueifinputfile{} line. Below the command there is
an example. Didn't know the --global switch. It searches the file in the
distribution, but runs it in any actual folder, so one doesn't have to do a
local copy of the source file.

type-imp-punk.mkxl is a regular typescript file, which can be enabled by
\setupbodyfont[punk] in any of your documents.

Jano
___
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] expansion of xml userdata

2021-01-17 Thread Jano Kula
On Sun, 17 Jan 2021 at 21:27, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> > Do you know how to force expansion of userdata?
>
> You can drop "expansion=yes" when you use
>
> \normalexpanded{\startsection[..,..=..,..][..,..=..,..]}
>
> Wolfgang
>

Wow, this was fater then filling my glass. And it works even for userdata.
Thank you, Wolfgang.
Added to wiki \setuphead  and
Interaction .

To finish the story of expansion parameter, what is expansion=xml good for?

Jano
___
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] expansion of xml userdata

2021-01-17 Thread Jano Kula
Hello to everybody!

\setuphead[section][expansion=yes] expands xml reference to the actual
content in TUC file:

\xmlatt {xml:name::4}{title} → First section

for titles & bookmarks. The same is not true for userdata (mkiv & mkxl). Do
you know how to force expansion of userdata?

MWE attached.

Thank you,
Jano

\startbuffer[doc]



text


text


\stopbuffer

\setuphead[section][expansion=yes]
\setuplist[section][alternative=command,
command=\SectionListCommand]

\define[3]\SectionListCommand{%
   {\bf#1\par
   title: #2\par
   usertitle: \structurelistuservariable{usertitle}}\par
   \blank
   \endgraf}

\startxmlsetups xml:name
\xmlsetsetup{\xmldocument}{document|section}{xml:name:*}
\stopxmlsetups
\xmlregistersetup{xml:name}

\startxmlsetups xml:name:document
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:name:section
\startsection[title=\xmlatt{#1}{title}]
 [usertitle=\xmlatt{#1}{title}]
\stopsection
\stopxmlsetups

\starttext
\placelist[section]
\xmlprocessbuffer{xml:name}{doc}{}
\stoptext


xml-one-file-head-toc.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] HZ broken with latest 2020-12-27 LMTX

2021-01-07 Thread Jano Kula
Sorry for the hassle, now I have read the other thread confirming the fix.

Jano

On Thu, 7 Jan 2021 at 12:04, Jano Kula  wrote:

> Hello Hans,
>
> On Thu, 7 Jan 2021 at 11:48, Hans Hagen  wrote:
>
>> On 1/7/2021 11:22 AM, Jano Kula wrote:
>> > Hello,
>> >
>> > On Sun, 27 Dec 2020 at 22:45, Hans Hagen > > <mailto:j.ha...@xs4all.nl>> wrote:
>> >
>> > hm, so what was the last version that it still worked ok?
>> >
>> >
>> > not sure about last version, but it is working with version
>> >
>> > system  > ConTeXt  ver: 2020.12.10 22:26 LMTX  fmt: 2020.12.11
>> >   int: english/english
>> >
>> > Tested with expansion-001.tex from the test suite.
>> wasn't that already fixed?
>>
>
> It might be fixed, I haven't seen the confirmation, so I did answer the
> question having older version installed.
>
> Jano
>
>
___
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] HZ broken with latest 2020-12-27 LMTX

2021-01-07 Thread Jano Kula
Hello Hans,

On Thu, 7 Jan 2021 at 11:48, Hans Hagen  wrote:

> On 1/7/2021 11:22 AM, Jano Kula wrote:
> > Hello,
> >
> > On Sun, 27 Dec 2020 at 22:45, Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> > hm, so what was the last version that it still worked ok?
> >
> >
> > not sure about last version, but it is working with version
> >
> > system  > ConTeXt  ver: 2020.12.10 22:26 LMTX  fmt: 2020.12.11
> >   int: english/english
> >
> > Tested with expansion-001.tex from the test suite.
> wasn't that already fixed?
>

It might be fixed, I haven't seen the confirmation, so I did answer the
question having older version installed.

Jano
___
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] HZ broken with latest 2020-12-27 LMTX

2021-01-07 Thread Jano Kula
Hello,

On Sun, 27 Dec 2020 at 22:45, Hans Hagen  wrote:

> hm, so what was the last version that it still worked ok?
>

not sure about last version, but it is working with version

system  > ConTeXt  ver: 2020.12.10 22:26 LMTX  fmt: 2020.12.11
 int: english/english

Tested with expansion-001.tex from the test suite.

Jano
___
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] Setting and measuring boxes TeX/Lua

2020-11-27 Thread Jano Kula
Hello again, Hans!

On Thu, 26 Nov 2020 at 09:18, Hans Hagen  wrote:

> (this mechanism is already kind of old, there are also other cheats
> possible)
>

Diving into functions and using context.stepwise() worked, until I've got
to: /cldf-stp.lua:48: bad argument #1 to 'resume' (thread expected) and
other errors. It was triar/error approach, not exactly knowing how
context.stepwise() works, and I was some more lua functions and iterations
before needing expansion.

Therefore I've changed the strategy (cannot give up):

   - Create named buffers with formatted content (and store measures)
   before they are needed.
   - When needed, use the reference to the buffer.

Tests looked promising. After \starttext buffers and measures are known
(both TeX & Lua). Also tested in functions, etc.
But inside the first \xmlsetup, they are not expanded anymore, they are
typeset (like \typebuffer).

   - How to have them expanded in \xmlsetup?
   - Is other mechanism better suited for storing typeset blocks than
   buffers (and will survive \xmlsetup)?
   - If none of them is possible, what are the *other **cheats *then?

Thanks,
Jano

MWE attached

% BUFFERS
\startluacode
-- fill buffers
for i=1,1000 do
local content = "framed-" .. i
context.startbuffer( { i } )
context.StartBox()
context.bold(i)context.par()
context.color( { "red" }, content )
context.StopBox()
context.copy(false,0)
context.stopbuffer()
print(">>", i)
end
\stopluacode

\def\StartBox{\setbox0=\hbox\bgroup\framed[width=50mm,
   background=color,
   backgroundcolor=gray,
   frame=off,align={flushleft}]%
   \bgroup%
\vbox\bgroup}
\def\StopBox{\egroup\egroup\egroup}% close vbox, framed, hbox

\def\MeasureBuffer[#1]{\setbox0\hbox{\getbuffer[#1]}%
   ht: \the\ht0\par}


% XML
\startbuffer[doc]


section
section

\stopbuffer

\startxmlsetups xml:name
\xmlsetsetup{\xmldocument}{*}{-}
\xmlsetsetup{\xmldocument}{document}{xml:name:*}
\stopxmlsetups

\xmlregistersetup{xml:name}

\startxmlsetups xml:name:document
\Title{inside xml:name:document}
\Title{TeX}
\MeasureBuffer[333]
\getbuffer[333]
\Title{Lua}
\startluacode
context.MeasureBuffer({"444"})
context.getbuffer({"444"})
\stopluacode
\stopxmlsetups

\def\Title#1{\blank{\bf #1}\par}


\starttext

\Title{TeX}
\MeasureBuffer[111]
\getbuffer[111]

\Title{Lua}
\startluacode
context.MeasureBuffer({"222"})
context.getbuffer({"222"})
\stopluacode

\xmlprocessbuffer{xml:name}{doc}{}

\stoptext


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


Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello Hans!

On Wed, 25 Nov 2020 at 21:25, Hans Hagen  wrote:

> \startluacode
> context.stepwise (function()
>  context.step()
> end)
> \stopluacode
>

Thank you very much!

I was trying context.stepwise several times (and \dowithnextbox,
\nextboxht and
other things). I bet there was no example of empty context.step().

The usage was: stepping in TeX end with
context.step("\\texcommands\\with\\doubleslashes") without leaving Lua.
What is the purpose of empty context.step()? Knocking on TeX's door?

Jano
___
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] Setting and measuring boxes TeX/Lua

2020-11-25 Thread Jano Kula
Hello!

I would like to set framed boxes, measure their dimensions and proceed
based on the measurement. It is a combination of TeX and Lua ends.

   - Boxes are set on the TeX side. Stacking boxes (hbox, framed, vbox) in
   Lua looked too complex.
   - The content of the inner box is set on the Lua side (some
   computations).

On TeX side boxes and their dimensions are accessible, but not at Lua side,
until luacode is finished (iterations over boxes happen here). I would say
Hans already named the problem in the list: *that is always tricky as what
happens is postponing till the group ends*.

Do you have an idea how to expand the box sooner or would you use a
different approach?

Sorry for longer MWE (attached also).

Thank you,
Jano

\def\StartBox{\setbox0=\hbox\bgroup% open hbox
\framed[frame=on]\bgroup% open framed
\vbox\bgroup% open vbox (\par needed)
 }
\def\StopBox{\egroup\egroup\egroup% close vbox, framed, hbox
 \setvariable{Test}{Height}{\the\ht0}%
}%

\startluacode
ctx = context

function TestBox()
ctx("TeX Box: ")ctx.copy(false,0)ctx.par()
ctx("TeX Getvar: ") ctx.getvariable("Test", "Height")ctx.par()
var = tokens.getters.macro(tokens.getters.macro("??variables") ..
"Test:Height")
ctx("Lua Type: ")   ctx(type(var))ctx.par()
ctx("Lua Value: ")  ctx(var)ctx.par()
end
\stopluacode

\starttext

\startluacode
ctx.bold("First luacode (more boxes)")ctx.par()
ctx.StartBox()
ctx("AAA")ctx.par()
ctx("BBB")ctx.par()
ctx.StopBox()
TestBox()
ctx.StartBox()
ctx("CCC")ctx.par()
ctx.StopBox()
TestBox()
\stopluacode

\blank[4*big]

\startluacode
ctx.bold("Second luacode (last content of box0)")ctx.par()
TestBox()
\stopluacode

\stoptext


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


Re: [NTG-context] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Passing variables to Lua wikified
<https://wiki.contextgarden.net/CLD_passing_variables#Variables>.
Jano

On Wed, 25 Nov 2020 at 14:33, Jano Kula  wrote:

> Hello Hans!
>
> On Wed, 25 Nov 2020 at 12:33, Hans Hagen  wrote:
>
>> Never give up ...
>>
>>  \meaning\getvariable
>>
>
> Thank you for reminding me of this one.
>
> print(">>",tokens.getters.macro(tokens.getters.macro("??variables") ..
>> "test:something")
>>
>
> Not that trivial, but does the job.
>
> Thanks,
> Jano
>
___
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] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello Hans!

On Wed, 25 Nov 2020 at 12:33, Hans Hagen  wrote:

> Never give up ...
>
>  \meaning\getvariable
>

Thank you for reminding me of this one.

print(">>",tokens.getters.macro(tokens.getters.macro("??variables") ..
> "test:something")
>

Not that trivial, but does the job.

Thanks,
Jano
___
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] accessing tex variable on lua side

2020-11-25 Thread Jano Kula
Hello,

running in circles I have to give up on such an easy thing as passing a tex
variable to lua (knowing everything is stored in lua).

\setvariable{test}{something}{}
\starttext
\getvariable{test}{something}\par
% how to access the variable on lua end?
\startluacode
-- var =
\stopluacode
\stoptext

Thank you,
Jano
___
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] flushleft nbsp with unequal width

2020-11-23 Thread Jano Kula
Hello,

with \setupalign[flushleft] non-breakable space has different width than
regular space. With pure \rightskip0pt plus 1fill all spaces are equal. Is
this wanted behaviour or do I miss additional settings?

\showmakeup[glue]
\startTEXpage[width=80mm,offset=5mm]
\rightskip0pt plus 1fill
woo woo woo woo woo woo woo woo woo woo
\blank
\setupalign[flushleft]
woo woo woo woo woo woo woo woo woo woo
\stopTEXpage

MWE also in the attachment to preserve nbsp.

Regards,
Jano


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


Re: [NTG-context] Bug in overprint? (was: how to set overprint)

2020-11-16 Thread Jano Kula
Hello Andrés!

On Wed, 11 Nov 2020 at 01:25, Andres Conrado Montoya Acosta <
ela...@chiquitico.org> wrote:

> may I ask someone, who understands knockout and overprint in the printing
>> press, to check test cases in the attached file from the test suite, if
>> overprint is working or not in Mark IV, please?
>>
>> Regards,
>> Jano
>>
>>
> Hi Jano, as far as I can check with my pdf editors, it seems overprinting
> is working. The black ink is printed above the blue, with no white reserve
> below it.
>

Sorry for the delay, I had to downsample the screenshots after the original
reply didn't get through (too big) and in the end remove them completely.

Thank you for checking. Looks like a bug in Acrobat (older version
11.0.23), not ConTeXt.
What editors do you use?

After your test I was digging deeper. When I disable black plate in *Preview:
Separations* it doesn't show an overprint, the room under the letters is
white (original problem). When I remove one overprint manually in
Illustrator, Acrobat shows the remaining overprints. I've found out later,
I could use *Profile: Color Warnings*, where all overprints are visible,
but I would rather see it in separated plates.

Hope this helps someone in the future, too.
Jano
___
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] Reverse traversing of xml.collected()?

2020-11-10 Thread Jano Kula
Hello!

On Fri, 1 May 2020 at 14:06, Gerben Wierda  wrote:

>
>
> On 1 May 2020, at 13:30, Hans Hagen  wrote:
>
> On 5/1/2020 11:31 AM, Gerben Wierda wrote:
>
> I’d like to travese the contents of an xml.collected() in a reverse order.
>
> it's an iterator
>
> What is the correct way to do it?
>
> xml.all
>
>
It had been awhile, so for the record.

I was looking for something similar and found out that adding a third
argument to the xml.collected reverses the iterations. Looks like the
argument has to be true in a boolean sense, so puting any "string" there
will do the trick.

for v in xml.collected(doc, "/chapter/section", "string") do
...
end

Jano
___
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] Bug in overprint? (was: how to set overprint)

2020-11-09 Thread Jano Kula
Hello,

may I ask someone, who understands knockout and overprint in the printing
press, to check test cases in the attached file from the test suite, if
overprint is working or not in Mark IV, please?

Regards,
Jano


On Fri, 30 Oct 2020 at 11:02, Jano Kula  wrote:

>
>
> On Thu, 29 Oct 2020 at 23:12, Jano Kula  wrote:
>
>> Hello,
>>
>> whatever I try, I cannot get the overprinting right (checked in Output
>> Preview of Acrobat). Even overprint-001.tex from the test suite
>> (2020-09-19) doesn't seem to have it right (latest beta). What I'm missing
>> here?
>>
>> \setupcolors[intent=overprint]
>> \startTEXpage[offset=10mm]
>> \framed[frame=on,offset=10mm,
>> background=color,backgroundcolor=darkgreen]{
>> % \startcolorintent[overprint]
>> \startoverprint
>> text in black
>> \stopoverprint
>> % \stopcolorintent
>> }
>> \stopTEXpage
>>
>> Thank you,
>> Jano
>>
>
> Forgot to say, I've also tried to add
> \setupcolors[state=start,rgb=no,cmyk=yes]
> though I think, at least state=start isn't needed anymore.
> It doesn't change the overprint issue.
>
> Jano
>


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


Re: [NTG-context] index issues

2020-11-06 Thread Jano Kula
On Fri, 6 Nov 2020 at 12:24, Henning Hraban Ramm  wrote:

> Hello again,
>
> still struggling with indexes.
>
> I’ll prepare MWEs, but maybe you can answer some of these without?
>

Hello Hraban!

Without MWE try \showinjector
 and \setinjector
.

Jano
___
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 Standalone last version

2020-11-05 Thread Jano Kula
On Wed, 4 Nov 2020 at 08:58, Joaquín Ataz López  wrote:

> The last time I checked the date of the ConTeXt Standalone version I had
> installed was early last summer, and the version installed was April 30,
> 2020. But today I wanted to update the version and I see that the "new"
> version that has been installed is the version of January 30, 2020. That
> is: the version has been moved back.
>
> Does anyone know why it has regressed?
>

Mine latest is 2020.01.30 14:13 and I would guess it's a typo instead of
2020.10.30 (though time suggests it could be generated).
Likely nothing was regressed to January.

Jano
___
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] caching remote images

2020-11-04 Thread Jano Kula
Hello!

I'd like to cache images (order of hundreds) from a remote location (not
all the time mapped as drive, download speed and amount of data are also
the factors).

\usepath[dirfile://./resources/**] is likely for speeding up searching not
downloading and I don't know when new images are available (when to delete
dirlist.* files), as described in workflows-mkiv.pdf.

Looks like the cache parameter in \externalfigure is used only if some
conversion is going on.

I could create a conversion which does nothing or only envelopes JPG in PDF
as .jpg.pdf (loading could be faster) and then:

if cached file exists
use cached .jpg.pdf
else
if drive is mapped
download, convert and cache .jpg
else
skip file
end
end

The source file with one  will never change or I could re-cache from
time to time to have up-to-date images cached.

Before reinventing the wheel: isn't such functionality or part of it
already available?

Thanks,
Jano
___
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] index entries postponed if sections are empty

2020-11-01 Thread Jano Kula
Hello Hraban!

On Sat, 31 Oct 2020 at 17:56, Henning Hraban Ramm  wrote:

> Hi,
> I‘m despairing about my index – some sections contain only an image
> (\externalfigure), but I need to set several index entries for the image
> contents.
> The index entries get postponed until after the next chapter.
> I guess the problem is that there’s no (text) content, but \par and \strut
> didn’t help.
>
>
Add *\dontleavehmode*\index{Something}\index{A\recurselevel} before \index
command.

Regards,
Jano
___
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 set overprint

2020-10-30 Thread Jano Kula
On Thu, 29 Oct 2020 at 23:12, Jano Kula  wrote:

> Hello,
>
> whatever I try, I cannot get the overprinting right (checked in Output
> Preview of Acrobat). Even overprint-001.tex from the test suite
> (2020-09-19) doesn't seem to have it right (latest beta). What I'm missing
> here?
>
> \setupcolors[intent=overprint]
> \startTEXpage[offset=10mm]
> \framed[frame=on,offset=10mm,
> background=color,backgroundcolor=darkgreen]{
> % \startcolorintent[overprint]
> \startoverprint
> text in black
> \stopoverprint
> % \stopcolorintent
> }
> \stopTEXpage
>
> Thank you,
> Jano
>

Forgot to say, I've also tried to add
\setupcolors[state=start,rgb=no,cmyk=yes]
though I think, at least state=start isn't needed anymore.
It doesn't change the overprint issue.

Jano
___
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 set overprint

2020-10-29 Thread Jano Kula
Hello,

whatever I try, I cannot get the overprinting right (checked in Output
Preview of Acrobat). Even overprint-001.tex from the test suite
(2020-09-19) doesn't seem to have it right (latest beta). What I'm missing
here?

\setupcolors[intent=overprint]
\startTEXpage[offset=10mm]
\framed[frame=on,offset=10mm,
background=color,backgroundcolor=darkgreen]{
% \startcolorintent[overprint]
\startoverprint
text in black
\stopoverprint
% \stopcolorintent
}
\stopTEXpage

Thank you,
Jano
___
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] font rendering in bibliography

2020-10-28 Thread Jano Kula
Hello Xenos,

On Wed, 28 Oct 2020 at 10:50, Xenos Athenaios  wrote:

> Hi ConTeXt fellows !
>
> I am coming back with I hope a lighter MWE concerning the issue I am
> confronting to : it seems impossible to get italics within both body
> text, footnotes and bibliographical titles.
>

It is a font setup problem. Remove your font definitions and fallbacks and
change \setupbodyfont[mainface] to \setupbodyfont[dejavu] for the start (it
will cover greek and cyryllic, too).

Can you describe what you need? Are the requirements given (main font,
scripts, serif & sans, fallbacks fonts to other scripts)?

For example IBM Plex  will cover most
of what you need (except cjk for now) and there is a font definition file
type-imp-plex.mkiv in the distribution (not all fallbacks defined, yet).

Regards,
Jano
___
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] font rendering in bibliography

2020-10-27 Thread Jano Kula
Hello,

On Tue, 27 Oct 2020 at 12:15, Xenos Athenaios  wrote:

>
> Dear ConTeXt fellows,
>
> With ConTeXT ConTeXt Process Management 1.03
> current version: 2020.09.20, I encounter some issue with italics in the
> title of bibliographical references (I use a Jabref file along with
> ConTeXt). The title of books should be in italics, but it appears right
> now in the regular face. Do you have any idea of what it may be the
> origin of this problem ? Maybe it is within Jabref configuration that I
> can solve this issue ? (see attached file).
>

just looking at the PDF (knowing nothing about bibliographies), I can't see
any italics in the text, so the first thought is: is the italics font setup
correct? I would try italics in the main text or using context default
font. You can try \enabletrackers[publications.*] and
\enabletrackers[fonts.*] to see in log what's going on. If it doesn't help
a minimal working example is needed.

Regards,
Jano
___
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] space between chapter and chapter number (in words)

2020-10-24 Thread Jano Kula
Hello Julian!

On Thu, 15 Oct 2020 at 00:08, jbf  wrote:

> I wonder if someone could explain to me what controls (or how to
> control) the space between Chapter and chapter number in my TOC given
> the setup I have.
>
> At the moment I get ChapterOne instead of Chapter One, and I do not know
> what is causing that.
>

First of all you don't get space even in the chapter header and as such it
passes to TOC.
Adding a space in \setuplabletext will do the trick for both chapter
headers and TOC.

\setuplabeltext
   [en]
   [chapter=\bf Chapter\ ]

Regards,
Jano
___
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] inter-word spacing

2020-10-22 Thread Jano Kula
Hello Julian!

Thank you for your hints.

On Thu, 22 Oct 2020 at 11:48, jbf  wrote:

> 1. One factor will be whether you are using \definefontfeature
> [default][default]  [expansion=quality,protrusion=quality], which you
> obviously then need to call in with \setupalign.
> https://wiki.contextgarden.net/Command/setupalign
>
This doesn't influence the dimension of space. Well, it does, but it is a
side effect of alignment and line breaking algorithm. One cannot change the
space to a particular value/factor.

2. Another factor will be \setupspacing
> https://wiki.contextgarden.net/Command/setupspacing
>
This would work if the parameter could be *dimension* (\setupspacing[5pt]),
but it cannot.


> 3. A third factor might be the need to tweak things a bit once you take a
> look at what is produced, and where you might need to use a couple of other
> options, be it \, \nospace, \thinspace
>
If one will finetune every space in the paragraph, this could be a way, but
it's far from a nice solution.

\setuplanguage[en][spacing=packed].
>
> This latter especially because I want to avoid some rather ugly spaces
> after a period.
>
Which is an equivalent of \frenchspacing primitive (only regular space
after period). In most languages spacing=packed is likely the default
setting.

Not at all sure if all the above is what the purists would do, but from a
> practical point of view it works for me.
>
Purists wouldn't change kerning at all, because the font designer knows
best, what kerning should be used. Anyway, once the graphic designer starts
changing leterspacing (kerning), the space correction is sometimes needed,
too. ConTeXt changes the space proportionally to \setupcharacterkerning,
which is fine in most cases.

For this use case (short text in one font) primitive \spaceskip3.2pt will
do the job (ragged text thus no glue). I was searching for the more
abstract solution like \setupspacing[factor=1.05], because once in a while
the correction is needed. Or font goodies could be the way to change
spacing.

Regards,
Jano
___
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] inter-word spacing

2020-10-20 Thread Jano Kula
Hello,

trying to reproduce the hand-printed original as close as possible I'm
using \setupcharacterkerning. I can match character kerning, but inter-word
spaces are different. What is the right option, command or feature to
change it for current font and/or in the font definition? I haven't found
any.

MWE
% macros=mkiv
\setupcharacterkerning[large][factor=0.1]
\setcharacterkerning[large]
\starttext
\input knuth
\stoptext

Thank you,
Jano
___
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] content of xml node (element) in lua

2020-10-17 Thread Jano Kula
On Sat, 17 Oct 2020 at 12:02, Hans Hagen  wrote:

> On 10/17/2020 12:16 AM, mf wrote:
> > (sorry, I sent it before refining it)
> >
> > Il 16/10/20 20:57, Jano Kula ha scritto:
> >> Hello!
> >>
> >> Processing XML I want to manipulate content of XML elements inside Lua.
> >>
> >> I can define the Lua function xml.functions.name
> >> <http://xml.functions.name>(t), where processing happens, and use the
> >> command \xmlfunction{#1}{name} to pass the current node #1from ctx to
> >> lua as described in the xml-mkiv.pdf manual. To access the element
> >> content xml.text(t,"/element") Lua function is used.
> >>
> >> However, using the same function xml.text("#1",/element) directly
> >> inside Lua doesn't work for me. Node #1 is available, but not the
> >> content of /element.
> >
> > In your lua fragment, node #1 is available as "xml:name::4" or
> > "xml:name::6", but not as a lua table.
>
> when you're at the lua end you can use lxml.getid to access that node,
> assuming that you somehow pass #1 (being a string)
>
>
> > When node #1 is passed to a \xmlfunction, the function gets a lua table
> > as argument.
> >
> > To write direct lua code instead of a xmlfunction you'd need a function
> > to transform those "xml:name::..." into the lua tables representing the
> > xml elements in the xml tree.
> >
> > Which is what \xmlfunction does, so I wouldn't expect any performance
> gain.
>
> actually one has the same function at the lua end, so once you passed
> the node id you can use
>
> xml.first(lxml.getid("xml:name::4"),"foo/bar")
>
> and alike (the lxml.* function pipe back to tex)
>
> Hans
>
>
Hello,

just finished the exploration of the \xmlfunction definition based on
Massi's advice when Hans' answer arrived. This is the working code:

\startluacode
local node = "#1"
local content = xml.text(*lxml.getid(*"#1"*)*,"/color")
context.par() context("node: ") context(node)
context.par() context("lua: ")  context(content)
\stopluacode

Added a note to XML Lua <https://wiki.contextgarden.net/XML_Lua> wiki page.
I do understand the code better now, thank you.

Jano
___
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] content of xml node (element) in lua

2020-10-16 Thread Jano Kula
Hello!

Processing XML I want to manipulate content of XML elements inside Lua.

I can define the Lua function xml.functions.name(t), where processing
happens, and use the command \xmlfunction{#1}{name} to pass the current
node #1 from ctx to lua as described in the xml-mkiv.pdf manual. To access
the element content xml.text(t,"/element") Lua function is used.

However, using the same function xml.text("#1",/element) directly inside
Lua doesn't work for me. Node #1 is available, but not the content of
/element.

\startluacode
local node = "#1"
local content = xml.text("#1","/color")
context.par() context("node: ") context(node)
context.par() context("lua: ")  context(content)
\stopluacode

MWE (mkiv, beta) attached.

I haven't found an example, so is it even possible? If so, which way is
more efficient?

Thanks,
Jano


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

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


[NTG-context] \setregisterentry levels with colon (keys:1, entries:1) in lua

2020-10-10 Thread Jano Kula
Greetings!

One can can set register levels with keys and entries
\setregisterentry[MyIndex]
[keys:1=Sorting Key Level 1,
 entries:1=Entry Level 1,
 keys:2=Sorting Key Level 2,
 entries:2=Entry Level 2]

Rewriting the code in lua works until colon (:) is used.
\startluacode
context.setregisterentry({ "MyIndex" },
   { keys:1="C Level 1", entries:1="C Level 2"})
\stopluacode
which stops with error:  expected near '1'

Can the colon be escaped or underlying
   \xdef\currentregisterkeysa{\registerparameter{\c!keys:1}}%
   \xdef\currentregisterkeysb{\registerparameter{\c!keys:2}}%
   \xdef\currentregisterkeysc{\registerparameter{\c!keys:3}}%
redefined? Tried without success.

MWE (mkiv, latest beta) attached.

Thank you,
Jano


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

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


Re: [NTG-context] xml bookmarks

2020-10-07 Thread Jano Kula
On Wed, 7 Oct 2020 at 15:04, Pablo Rodriguez  wrote:

> On 10/7/20 1:28 PM, Jano Kula wrote:
> > Hello to everybody!
> >
> > I have a similar problem as Tomas two days ago. When inserting bookmarks
> > from XML the reference to the node is stored in TUC file
> >
> >   ["titledata"]={
> >["label"]="section",
> >["title"]="\\xmlatt {xml:name::4}{title}"
> >
> > and this reference ends up in bookmarks. Any advice on how to change it
> > to text in bookmarks?
>
> Hi Jano,
>
> I think I had a similar problem.
>
> You may try:
>
>   \setuphead
> [section]
> [expansion=yes]
>
> As I reported before "expansion=xml" was problematic for me (but it may
> work for you, if "expansion=yes" doesn’t).
>
> Just in case it helps,
>
> Pablo
> http://www.ousia.tk
>

Hi Pablo,

That's likely the problem of Tomas, too: when and how to do the expansion
(his use case is different). Thank you, problem solved and wikified
<https://wiki.contextgarden.net/Interaction#XML_source>.

Jano
___
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] xml bookmarks

2020-10-07 Thread Jano Kula
Hello to everybody!

I have a similar problem as Tomas two days ago. When inserting bookmarks
from XML the reference to the node is stored in TUC file

  ["titledata"]={
   ["label"]="section",
   ["title"]="\\xmlatt {xml:name::4}{title}"

and this reference ends up in bookmarks. Any advice on how to change it to
text in bookmarks?

Find attached MWE (mkiv, current beta), third section is inserted manually.

Thank you,
Jano


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

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


[NTG-context] Registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-08-07 Thread Jano Kula
Dear all!

The 14th ConTeXt Meeting  is in
preparation as originally planned. All pre-registered participants are
still planning to attend the meeting. The situation is changing every day
(mainly travel restrictions), so we have decided to hold the meeting in
case the Czech Republic doesn't have red light in most of the countries in
September and the number of participants doesn't drop below the critical
number.

We will not charge a cancellation fee to attendees, if their individual
situation changes. In case the meeting is cancelled as a whole in the end,
we will ask everybody registered (except students) to donate 20 € minimum
to the ConTeXt Group  as sort of
collective insurance. The collected money will be used as the cancellation
payment to the hosting property.

Abstracts  have
been updated and registration
 is open until we
reach full capacity.

See you in Sibřina!
Jano
___
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] Pre-registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-07-20 Thread Jano Kula
Dear list,

there are ten days left for pre-registration to ConTeXt Meeting 2020
<https://meeting.contextgarden.net/2020/>. Pre-registration counts as early
bird registration. In one week we will start to discuss the situation in
the mailing list of participants and make a final decision whether to go on
with the meeting preparations or cancel the meeting. From development in
the Czech Republic so far one can guess, there will possibly be only light
local restrictions (obligation to wear masks, serving only take-away food),
if needed.

The abstracts <https://meeting.contextgarden.net/2020/abstracts.shtml> of
some talks are already available. We have fifteen pre-registered
participants <https://meeting.contextgarden.net/2020/participants.shtml>,
just enough to make the meeting possible. People will mostly arrive by car,
some on foot or by bus/train.

We have space for ten more participants. If you have never been at the
meeting, do not hesitate to pre-register
<https://meeting.contextgarden.net/2020/register.shtml> with discounts.
Those who visited Sibřina two years ago already know what to expect (talks,
friends, food, wine, beer, music, countryside, ...). Close to the capital,
but far enough to be safe for the whole week.

Take care,
Jano





On Tue, 2 Jun 2020 at 16:48, Jano Kula  wrote:

> Dear ConTeXt users!
>
> The 14th ConTeXt Meeting <https://meeting.contextgarden.net/2020/> in the
> Czech Republic is in preparation as originally planned. As nobody is able
> to predict the situation in September, we have started pre-registration
> only and will discuss conditions at the end of July via the mailing list of
> pre-registered participants. We will take into account up-to-date travel
> restrictions and health risks and make the final decision on July 31, 2020,
> based also on the number of pre-registrations.
>
> Till then no payment is wanted. All pre-registered participants qualify
> for early bird discount to be paid during the first week of August.
> Pre-registration doesn't bind you to pay or attend the meeting.
>
> The ConTeXt Group board has discussed other options (on-line meeting,
> postponing the meeting), but these are unlikely to happen, in case the
> meeting is cancelled.
>
> *14th ConTeXt Meeting*
> *September 6–12, 2020, Sibřina, Czech Republic*
>
> For the second time we will held the meeting at the friendly farm U Škodů,
> at the eastern border of Prague. See the gallery from 2018
> <http://kostverlorenvaart.nl/context2018/> by Frans Goddijn.
>
> Topics will cover usage and development of LuaMetaTeX, ConTeXt, and
> everything related. Each meeting is source of inspiration for everybody,
> from beginner to expert. Friendly company is always looking for meeting new
> participants, users of LuaTeX, LuaMetaTeX, ConTeXt, Metapost, etc.
>
> There is a special discount for those, who attend the meeting for the
> first time and for students. Also ConTeXt Group members are qualified for
> the discount, so consider joining the group.
>
> For more details and pre-registration visit the 14th ConTeXt Meeting
> <https://meeting.contextgarden.net/2020/> page.
>
> Hope to see you in September,
> Jano
> on behalf of the ConTeXt Group <https://group.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] Pre-registration for 14th ConTeXt Meeting, September 6–12, 2020

2020-06-02 Thread Jano Kula
Dear ConTeXt users!

The 14th ConTeXt Meeting  in the
Czech Republic is in preparation as originally planned. As nobody is able
to predict the situation in September, we have started pre-registration
only and will discuss conditions at the end of July via the mailing list of
pre-registered participants. We will take into account up-to-date travel
restrictions and health risks and make the final decision on July 31, 2020,
based also on the number of pre-registrations.

Till then no payment is wanted. All pre-registered participants qualify for
early bird discount to be paid during the first week of August.
Pre-registration doesn't bind you to pay or attend the meeting.

The ConTeXt Group board has discussed other options (on-line meeting,
postponing the meeting), but these are unlikely to happen, in case the
meeting is cancelled.

*14th ConTeXt Meeting*
*September 6–12, 2020, Sibřina, Czech Republic*

For the second time we will held the meeting at the friendly farm U Škodů,
at the eastern border of Prague. See the gallery from 2018
 by Frans Goddijn.

Topics will cover usage and development of LuaMetaTeX, ConTeXt, and
everything related. Each meeting is source of inspiration for everybody,
from beginner to expert. Friendly company is always looking for meeting new
participants, users of LuaTeX, LuaMetaTeX, ConTeXt, Metapost, etc.

There is a special discount for those, who attend the meeting for the first
time and for students. Also ConTeXt Group members are qualified for the
discount, so consider joining the group.

For more details and pre-registration visit the 14th ConTeXt Meeting
 page.

Hope to see you in September,
Jano
on behalf of the ConTeXt Group 
___
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] \registerhyphenationexception not working

2020-03-07 Thread Jano Kula
Hello Hans,

\registerhyphenationexception as described in latest languages-mkiv.pdf and
i-context.pdf does nothing, contrary to \startexceptions, which behaves as
expected. Here is the minimal example:

\mainlanguage[cs]
\showmakeup[discretionary]
\registerhyphenationexception[cs][cíl-em]%
% \startexceptions[cs]
% cíl-em
% \stopexceptions
\startTEXpage
cílem
\stopTEXpage

By the way, what is the reason to print \showlayout on four pages?

Regards,
Jano
___
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] 14th ConTeXt Meeting (2020), Sibřina, Czech Republic

2020-01-31 Thread Jano Kula
Dear all,

as you may have noticed: the 14th ConTeXt Meeting will be held in Sibřina,
Czech Republic on

*September 6–12 (Sun–Sat), 2020*

Meeting people you know from the list is always a great pleasure and fun as
are discussed topics on LuaTeX, LuaMetaTeX, ConTeXt and their practical
usage. Talks are not compulsory neither to give nor to attend. Still
everyone is welcome to even few minutes presentation on her/his experiences
or troubles and challenges.

Registration will begin on May 1. There will be cheaper early-bird period
May–June and discount for newcomers. For more information see the meeting
page .

To have an impression of the meeting see photos from Sibřina in 2018

by
Frans.

See you in September!

Jano
on behalf of the ConTeXt Group
___
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] 12th ConTeXt Meeting (2018)

2018-08-09 Thread Jano Kula
Dear list,

we are finalizing the list of participants for the ConTeXt Meeting 2018
. There are few places left, if you
are interested. We cannot guarantee full service for registrations after
August 15, 2018.

You might still have doubts like one of the attendees:

"I was wondering if you could help me determine whether the ConTeXt meeting
would be of use for me.  While I have been aware of ConTeXt for some time,
I am still a relative novice.  I have used it to do some basic formatting
for letters, contracts and envelopes but I am yet to understand LuaTeX,
MetaPost and other add-ons.  I would like to learn more but I am concerned
I will not understand much of the programme.  Who is the target audience
for the meeting?  What is its main purpose?"


Here is the answer:

"The meeting is meant for everyone. Whatever experience you have, it is
always a great source of inspiration. Of course, you will not become a
master in the field in five days, but you will see how others are using
ConTeXt, what are their workflows and tools and can learn a lot. If you
show the audience, how you are using ConTeXt in 15-30 minutes (not
compulsory), you will get a feedback how to do things better. Meetings are
very informal, so no worries you wouldn't fit in. And you can always
discuss your use cases with Hans, Taco, Luigi, Alan and others. At least
they can show you how to start with different topics, which helps novices a
lot."


Rooms are ready, food & beer is ready. Even small pool is ready.
We are starting soon!

See you there,
Jano




On Fri, 15 Jun 2018 at 23:54, Alan Braslau  wrote:

> Gentle ConTeXt user,
>
>
> * Do you still struggle with lua?
>   (I do, because it is magic and mysterious)
>
> * Are you baffled by MetaPost?
>   (because MetaPost is beautiful and particular)
>
> * Are you itching to get Hans to fix this or fix that?
>   (or are you willing to learn what you are doing wrong)
>
> * Do you want to meet in person some of those who write and answer
>   emails on this mailing list?
>
> * Do you want to blow us away with some fabulous new idea, or impress
>   us with some really beautiful typeset text?
>
> * Do you want to attend fun lectures and presentations from morning
>   'till night?
>
> * Do you want to perhaps code until who knows when?
>
> * Or perhaps you wish to partake in some good Czech beer and some
>   excellent Czech wine (with moderation)?
>
> * Or simply, do you not want to miss out on a really great time??
>
> Then we wish to bring your attention the the 12th International ConTeXt
> Meeting to be held in Prague-Sibrina in the Czech Republic from Sunday
> September 2nd through Saturday September 8th, 2018.
> http://meeting.contextgarden.net
> *A fun time will be had by all!*
>
> Alan
>
>
>
>
> "... and may your night be restful"
>
> ___
> 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] location of converted images

2018-06-06 Thread Jano Kula
 Nice tip, works as expected, thank you, Hans.
Jano



On Wed, 6 Jun 2018 at 15:02, Hans Hagen  wrote:

> On 6/6/2018 12:31 PM, Jano Kula wrote:
> > Dear list,
> >
> > images converted on-the-fly (m_k_i_v_*)are stored in the same folder as
> > original images. Is there an option to change cache folder? Original
> > files are stored in the read-only location.
> >
> > Script convert offers --outputpath option, but I would like to make the
> > switch with script context, using mtxrun --script context .
>
> \starttext
>  \externalfigure[hacker.png][conversion=cmyk.pdf,cache=mkivcache]
> \stoptext
>
> > Taco's talk 'mtxrun scripts' at the meeting
> > <http://meeting.contextgarden.net/2018/abstracts.shtml> will hopefully
> > show us even more magic.
> >
> > Thank you,
> > Jano
> >
> >
> >
> ___
> > 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
> >
> ___
> >
>
>
> --
>
> -
>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
___

[NTG-context] location of converted images

2018-06-06 Thread Jano Kula
Dear list,

images converted on-the-fly (m_k_i_v_*) are stored in the same folder as
original images. Is there an option to change cache folder? Original files
are stored in the read-only location.

Script convert offers --outputpath option, but I would like to make the
switch with script context, using mtxrun --script context .

Taco's talk 'mtxrun scripts' at the meeting
 will hopefully show
us even more magic.

Thank you,
Jano
___
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] installing latest stable version

2018-05-26 Thread Jano Kula
 Hello Hans,
attached log from mtxrun --script fonts --reload might help.
Jano


On Sat, 26 May 2018 at 18:10, Jano Kula <jano.k...@gmail.com> wrote:

> Hello Hans,
>
> thank you. Knowing you are using Windows, here are Ubuntu steps:
>
>1. ctx beta installed as usual in dir with first-setup.sh
>2. source tex/setuptex (setting paths)
>3. cd tex/texmf-local
>4. ln -s /path/to/fonts fonts
>5. mtxrun --script fonts --reload
>6. mtxrun --script fonts --list --all
>
> Fonts in /path/to/fonts are not listed.
> The structure of the directory is:
> /path/to/fonts/opentype/brousil/RePublic/RePublic Bold It Std.otf
> /path/to/fonts/opentype/brousil/RePublic/RePublic Bold Std.otf
> /path/to/fonts/opentype/brousil/RePublic/RePublic Regular It Std.otf
> /path/to/fonts/opentype/brousil/RePublic/RePublic Regular Std.otf
>
> It used to work this way.
>
> Jano
>
> On Sat, 26 May 2018 at 17:07, Hans Hagen <j.ha...@xs4all.nl> wrote:
>
>> On 5/26/2018 4:46 PM, Jano Kula wrote:
>> > By the way, was there any change to the font searching lately?
>> > I used to create symlink /ctx-version/tex/texmf-local/fonts and after
>> > mtxrun --script fonts --reload these fonts were recognized.
>> > With beta it doesn't seem to work, I've double checked the older
>> > versions where same symlink behaves as usual.
>> i need a more precise description for checkign this
>>
>>
>> -
>>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
>>
>> ___
>
>


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

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

Re: [NTG-context] installing latest stable version

2018-05-26 Thread Jano Kula
Hello Hans,

thank you. Knowing you are using Windows, here are Ubuntu steps:

   1. ctx beta installed as usual in dir with first-setup.sh
   2. source tex/setuptex (setting paths)
   3. cd tex/texmf-local
   4. ln -s /path/to/fonts fonts
   5. mtxrun --script fonts --reload
   6. mtxrun --script fonts --list --all

Fonts in /path/to/fonts are not listed.
The structure of the directory is:
/path/to/fonts/opentype/brousil/RePublic/RePublic Bold It Std.otf
/path/to/fonts/opentype/brousil/RePublic/RePublic Bold Std.otf
/path/to/fonts/opentype/brousil/RePublic/RePublic Regular It Std.otf
/path/to/fonts/opentype/brousil/RePublic/RePublic Regular Std.otf

It used to work this way.

Jano

On Sat, 26 May 2018 at 17:07, Hans Hagen <j.ha...@xs4all.nl> wrote:

> On 5/26/2018 4:46 PM, Jano Kula wrote:
> > By the way, was there any change to the font searching lately?
> > I used to create symlink /ctx-version/tex/texmf-local/fonts and after
> > mtxrun --script fonts --reload these fonts were recognized.
> > With beta it doesn't seem to work, I've double checked the older
> > versions where same symlink behaves as usual.
> i need a more precise description for checkign this
>
>
> -
>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] installing latest stable version

2018-05-26 Thread Jano Kula
By the way, was there any change to the font searching lately?
I used to create symlink /ctx-version/tex/texmf-local/fonts and after mtxrun
--script fonts --reload these fonts were recognized.
With beta it doesn't seem to work, I've double checked the older versions
where same symlink behaves as usual.

Jano




On Sat, 26 May 2018 at 15:46, Jano Kula <jano.k...@gmail.com> wrote:

> Hello,
>
> installing latest stable standalone version on Ubuntu 16.04 x64:
> ./first-setup.sh --context=current --engine=luatex
>
> fails with:
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)  (INITEX)
>  system commands enabled.
> error in callback:
> ...018/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:194: attempt to
> call a nil value (upvalue 'isfile')
> .
> 
>
> <*> ...mf-context/tex/context/base/mkiv/cont-en.mkiv
>   dump
>
> Beta on the same machine installs correctly.
>
> Jano
>
>
___
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] installing latest stable version

2018-05-26 Thread Jano Kula
Hello,

installing latest stable standalone version on Ubuntu 16.04 x64:
./first-setup.sh --context=current --engine=luatex

fails with:
This is LuaTeX, Version 1.08.0 (TeX Live 2018)  (INITEX)
 system commands enabled.
error in callback:
...018/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:194: attempt to
call a nil value (upvalue 'isfile')
.


<*> ...mf-context/tex/context/base/mkiv/cont-en.mkiv
  dump

Beta on the same machine installs correctly.

Jano
___
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 Meeting 2018 – registration

2018-05-03 Thread Jano Kula
Dear list members,

registration for 12th ConTeXt Meeting 2018
, September 2–8 is now open. Early
bird payments are available till the end of June. New participants are
always welcome: for those who never visited the meeting and students
discounts are available.

The main theme for this meeting is *Unusual usage of ConTeXt*. Check
preliminary
abstracts , fees
 and don't forget to
register  before July
1, 2018.

Join the the friendly informal meeting of people who use and misuse ConTeXt
with passion!

Jano
on behalf of the ConTeXt Group board
___
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] 12th ConTeXt Meeting, Prague–Sibřina, Czech Republic

2018-02-28 Thread Jano Kula
Dear list,

ConTeXt Group is happy to announce the 12th ConTeXt Meeting.

The meeting will be held from Sunday to Saturday, September 2–8, 2018.
Its venue is a small farm U Škodů  in Sibřina

next to Prague, Czech Republic.

Details and registration will be available soon on the meeting page
.

Have a nice day and stay tuned,
Jano
___
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] Sorting of abbreviations in index

2017-10-09 Thread Jano Kula
On 9 October 2017 at 17:35, Henning Hraban Ramm  wrote:
>
>
> If you like, I’ll gladly send you a voucher copy of the book*, once it’s
> printed.
> *) https://www.dreiviertelhaus.de/editionka/gewerkschaftspolitik/


Sure, I'll check the page numbers in the register are right, especially at
the page borders.
Could be improved, if the printer wouldn't be knocking on the door.

Jano
___
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] Sorting of abbreviations in index

2017-10-09 Thread Jano Kula
Hello Hraban,

have a look into the TUC file to find out, what's going on. I'm sure, Hans
would come with a more efficient approach, but this works here. Especially
the abbreviation table is probably stored on the fly somewhere, not only in
the TUC file and the table could be stored once.

Change definition to:

\def\Abk#1{\ctxlua{WriteToIndex("#1")}{\sc\lowercase{#1}}}

Add lua code to preamble:

\startluacode
function WriteToIndex (abbr)
-- test, if table exits already
if structures.synonyms.collected["abbreviation"] then
local abbreviation_entries_table =
structures.synonyms.collected["abbreviation"]["entries"]
local abbreviation = abbr
local meaning = ""
for i=1,#abbreviation_entries_table do
   local def = abbreviation_entries_table[i]["definition"]
   if def["synonym"] == abbreviation then
   meaning = def["meaning"]
   end
end
context.Sach(meaning .. " (" .. abbreviation .. ")")
end
end
\stopluacode

Abbreviation isn't used then (no \infull), so you need criterium=all to
display the list:
\setupsynonyms [abbreviation] [textstyle=normal,criterium=all]

Complete example attached.

Regards,
Jano


On 24 September 2017 at 00:45, Henning Hraban Ramm  wrote:

> So, in extension of my previous question:
> I’m combining abbreviations and registers (index).
> My author wants organizations listed with full name and abbreviation, and
> I try to avoid many verbose entries in the text.
>
> If I use \infull within \index, entries get sorted at i – probably a
> problem of expansion. How can I solve this?
>
> \Sach[\infull{ADN}]{\infull{ADN} (ADN)} doesn’t help.
>
> -
>
> \mainlanguage[de]
> \setupsynonyms [abbreviation] [textstyle=normal]
>
> \abbreviation{Abt.}{Abteilung}
> \abbreviation{ADN}{Allgemeiner Deutscher Nachrichtendienst}
> \abbreviation{AFL}{American Federation of Labor}
> \abbreviation{ANC}{African National Congress}
> \abbreviation{AV}{Auslandsvertretung}
> \abbreviation{BArch}{Bundesarchiv}
>
> \defineregister[Sach][
>   pagestyle=normal,
>   compress=yes,
>   indicator=no,
> ]
> \setupregister[Sach][style=normal]
>
> \def\Abk#1{\Sach{\infull{#1} (#1)}{\sc\lowercase{#1}}}
> %\def\qAbk#1{\Sach{\infull{#1} (#1)}}
>
>
> \starttext
> \section{Intro}
> \Sach{Abenteuer}\Sach{Abba}\Sach{Alliteration}
> \Sach{Berta}\Sach{Cäsar}\Sach[Context]{\CONTEXT}\Sach{COBOL}\Sach{Cäsium}
> \Sach{Igel}\Sach{Jagertee}\Sach{Humboldt}\Sach{infulk}\Sach{infulm}
>
> \Abk{ADN}, \Abk{ANC}, \Abk{AV}
>
> \section{Abkürzungen}
> \placelistofabbreviations %[criterium=all]
>
> \section{Sachregister}
> \placeregister[Sach]
>
> %\infull{AV}
> %\infull{AFL}
>
> \stoptext
>
> -
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> 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
> 
> ___


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

Re: [NTG-context] \writetolist in mkiv

2014-10-13 Thread Jano Kula

Thank you, Wolfgang, here is the working example for the structure manual ;)

% \writetolist  local table of contents example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placelist[section][criterium=chapter]
\startsection[title=Section]
\placelist[subsection][criterium=section]
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\startsection[title=Section]
\placelist[subsection][criterium=section]
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\stopchapter}
\stoptext




On 12.10.2014 23:06, Wolfgang Schuster wrote:


Am 12.10.2014 um 22:57 schrieb Jano Kula jano.k...@gmail.com:


Hello Wolfgang,

On 12.10.2014 21:28, Wolfgang Schuster wrote:


Am 12.10.2014 um 20:39 schrieb Jano Kula jano.k...@gmail.com:


Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the section 
starts?

% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK


You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
same argument
of a setup-command, what you’re looking for is 
\placelist[chapter][criterium=local].

Wolfgang


Thanks, got it: \placelist[section][criterium=local] places the list of 
sections included in the chapter.

Still, how to do the same with subsections manually inserted by 
\writetolist[subsection]{}{Subsection title}?


\placelist[subsection][criterium=section]

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

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



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

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

[NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula

Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the 
section starts?


% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK
\startsection[title=Section]
Here we would like to see the local list of manual subsections
\placecontent[section,criterium=local] % local TOC not OK
\ManualSubsection{\recurselevel-1}
\ManualSubsection{\recurselevel-2}
\stopsection
\stopchapter}
\stoptext
% stop minimal example

Longer Story

Predefined \startchapter|section inserts titledata in TUC file:
  [titledata]={
   [label]=chapter,
   [title]=Chapter,
  },
  ...
  [titledata]={
   [label]=section,
   [title]=Section,
  },
while \writetolist[subsection]{whatever}{Manual Subsection #1} inserts 
userdata:

  [userdata]={
   [first]=whatever,
   [second]=Manual Subsection \\recurselevel -1,
  },
Is this the reason and can I force to write titledata in the TUC file?

Real case is of course more complicated and also PDF hyperlinks should work.

Thank you in advance,

Jano

___
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] \writetolist in mkiv

2014-10-12 Thread Jano Kula

Hello Wolfgang,

On 12.10.2014 21:28, Wolfgang Schuster wrote:


Am 12.10.2014 um 20:39 schrieb Jano Kula jano.k...@gmail.com:


Hello to everybody!

Minimal story
-
How to insert local TOC of manually created subsections after the section 
starts?

% start minimal example
\def\ManualSubsection#1{\blank%
{\bf Manual Subsection #1}\par%
\writetolist[subsection]{whatever}{Manual Subsection #1}%
\input tufte\relax}

\starttext
\dorecurse{3}{%
\startchapter[title=Chapter]
\placecontent[chapter,criterium=local] % local TOC OK


You can’t put a keyword (chapter) and a assignment (criterium=local) in the 
same argument
of a setup-command, what you’re looking for is 
\placelist[chapter][criterium=local].

Wolfgang


Thanks, got it: \placelist[section][criterium=local] places the list of 
sections included in the chapter.


Still, how to do the same with subsections manually inserted by 
\writetolist[subsection]{}{Subsection title}?


Jano

___
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] Is there some easy way to do tufte-style side note?

2012-05-28 Thread Jano Kula

Hello Andy,

On 05/27/2012 04:41 PM, Andy Thomas wrote:

Hello Jano,

On May 26, 2012, at 2:12 PM, Jano Kula wrote:


Hello Andy,
Side notes set ragged left (rigth justyfied) on left pages are quite difficult 
to read, I would make them ragged right (left justified) on all pages and.


I guess you want to say [...]  it would [not] break the overall design at all 
;) I like the look of ragged outer when just looking at a double page from far. 
It does make reading more difficult. I still cannot decide. In the end 
legibility should be more important, so ragged right is better like you said.


Sure, I wanted to say: it would not break the overall design at all :)


Just wondering, why is Optima-Regular embeded so many times?


We wanted to have a sans serif font for the viewgraphs that matches the Palatino (orig. 
1948). So we went for Optima (1952-1955 and also from Hermann Zapf). Wikipedia says 
Optima's capitals (like Palatino's) are directly derived from the classic Roman 
monumental capital model [...]. I think, it does look good together. We also wanted 
a TeX Gyre font as main font, so that it is available on every system.


Of course a good choice, but I meant something different. When I have a 
look at the Properties of the document in the Adobe Reader or just list 
the fonts with pdffonts command on linux, then Optima-Regular is 
listed 141 times. Figure labels use sans serif, so I'm wondering why so 
many times the font is included.


Jano

___
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] Is there some easy way to do tufte-style side note?

2012-05-26 Thread Jano Kula

Hello Andy,

On 05/23/2012 04:09 PM, Andy Thomas wrote:

I finished a first version of a tufte style sample document that is based on a 
predecessor in another macro language. The auto alignment of the marginals has 
to be improved, but the rest looks already quite decent.

Please see: 
https://pub.uni-bielefeld.de/luur/download?func=downloadFilerecordOId=2303165fileOId=2303168

for a full sample document.


Nice work! Decent and nice design, good typesetting, I assume some hand 
work which of course cannot be avoided to make the result pleasing.


Just two remarks to the layout. Figure descriptions set in to the block 
(narrow column) produces too large spaces in the lines often. Ragged 
text would suit it better, I think.


Side notes set ragged left (rigth justyfied) on left pages are quite 
difficult to read, I would make them ragged right (left justified) on 
all pages and it would break the overall design at all.


Just wondering, why is Optima-Regular embeded so many times?

Regards,

Jano

___
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] lua EOL in xmlsetups

2012-04-14 Thread Jano Kula

Hello to everybody,

why end of line is not accepted by \startluacode ... \stopluacode 
construct in xmlsetups? Is there a better way?


This works:
  \startluacode
  for i=10,1,-1 do tex.print(i) end
  \stopluacode

This doesn't work:
  \startluacode
  for i=10,1,-1 do
tex.print(i)
  end
  \stopluacode

Thanks,

Jano


book.xml source file:
-
?xml version=1.0 encoding=utf-8?
book
/book

book.tex file to test:
--
\startxmlsetups xml:base
  \xmlsetsetup{\xmldocument}{*}{-}
  \xmlsetsetup{\xmldocument}{book}%
  {xml:*}% default
\stopxmlsetups

\xmlregistersetup{xml:base}

\startxmlsetups xml:book
  \startluacode
  for i=10,1,-1 do
tex.print(i)
  end
  \stopluacode
\stopxmlsetups


\starttext
  \xmlprocessfile{main}{book.xml}{}
\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] rotated columns

2011-08-29 Thread Jano Kula

Thank you, Wolfgang,

I was trying to use columns, columnsets, paragraphs, but unfortunately 
not simplecolumns.


Jano


___
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] rotated columns

2011-08-27 Thread Jano Kula

Hello to everybody,

how to rotate balanced columns to avoid the prevdepth conflict? I've 
tried \rotate, \framed (to box the content), \vbox, \hbox, etc. with no 
luck.


\starttext
\startcolumns[n=2,balance=yes]
\input tufte
\stopcolumns
\stoptex

Thanks for the hints,

Jano


___
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] rotated columns

2011-08-27 Thread Jano Kula

Hi Wolfgang,

the example was too minimal :)

This is what I want to achieve:

\starttext
\rotate[rotation=90]{
\startframedtext
\startcolumns[n=2,balance=yes]
\input tufte
\stopcolumns
\stopframedtext
}
\stoptext

Rotation is done in \hbox. To get kind of minipage I frame it first, 
as you suggest somewhere else on the list. But then balanced columns are 
lost. Without framed text the prevdepth conflict appears. I do 
understand, the columns environment needs to know the available space to 
compute and balance columns, but playing with height parameter in 
\rotate or \startframedtext didn't help either.


This is still very simplified situation of the problem to typeset some 
material in balanced columns (which is the most natural way, not 
necessarily with this kind of columns) and then rotate the typeset 
material and put in into the margins (just the part of the whole typeset 
page).


Jano

___
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] punk is dead

2011-08-16 Thread Jano Kula

Hi Hans  comp.

is there any reason why the latest beta doesn't typeset random glyphs 
with rand feature as it used to at least a year ago?


*.tma and *.tmc files also differ in size.

ConTeXt  ver: 2011.08.04 00:42 MKIV
LuaTeX-0.70.1


\definefontfeature[punk]
[mode=node,script=latn,rand=yes,kern=yes,tlig=yes]

\starttypescript[serif][punknova]
 \definefontsynonym[Serif][file:punknova-regular][features=punk]
\stoptypescript

\starttypescript[punknova]
 \definetypeface[punknova][rm][serif][punknova][default]
\stoptypescript

\setupbodyfont[punknova]

\starttext
\rm \input knuth\par
\stoptext



BTW, is \installfontfeature deprecated as the font-ini.mkiv says: 
installing font features *was* experimental? Any other way to install 
font features from *.fea file instead of


\installfontfeature[otf][rock]
\definefontfeature
  [myfeature]
  [mode=node,rock=yes,featurefile=rockfile.fea]

Thank you,

Jano


___
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] Public Fonts for Minority Languages of Russia

2011-01-08 Thread Jano Kula

On 01/06/2011 07:25 AM, Martin Schröder wrote:

2011/1/5 Khaled Hosnykhaledho...@eglug.org:

On Wed, Jan 05, 2011 at 10:35:46PM +0100, luigi scarso wrote:

Fast Web View : Yes
How did you done with mkiv ?


pdfopt from GS?


qpdf is MUCH better...


Thanks, Martin, good tip.

Jano

___
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] MkII index bug?

2010-11-25 Thread Jano Kula

Hi Hans,

playing with the solution for Horacio the line \enableregime[utf] stops 
treating index entries and its subentries right in MkII.


%\enableregime[utf]
\starttext
\placeregister[index]
\page
A\index[arbol+rojo]{arbol+rojo}\page
B\index[araña+linda]{araña+linda}\page
C\index[arbol+verde]{arbol+verde}\page
D\index[araña+grande]{araña+grande}\page
E\index[arbol+blanco]{arbol+blanco}\page
\stoptext


Creator:ConTeXt - 2010.11.20 12:51
Producer:   pdfTeX-1.40.11


Jano

___
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] index sort question

2010-11-23 Thread Jano Kula

Hi Horacio,

On 11/21/2010 10:48 PM, Horacio Suarez wrote:

Jano, thankyou very much.

It is a songs book, and I need an author table of content.

Your solution is very good, works fine, but using \pagenumber or
incrementing a counter I can´t make it work.

I replace \pagenumber with a incremental number to assure the label sorting.

So using the original sample, instead of:

A\index[arbol+\pagenumber]{arbol+rojo}\page
B\index[araña+\pagenumber]{araña+linda}\page
C\index[arbol+\pagenumber]{arbol+verde}\page
D\index[araña+\pagenumber]{araña+grande}\page
E\index[arbol+\pagenumber]{arbol+blanco}\page


it is now

A\index[arbol1]{arbol+rojo}\page
B\index[araña2]{araña+linda}\page
C\index[arbol3]{arbol+verde}\page
D\index[araña4]{araña+grande}\page
E\index[arbol5]{arbol+blanco}\page


Even it´not elegant, the Author index is very nice!

Maybe yo know why I can´t make it work.


Are you using MarkII or MarkIV? In mkiv the above solution works here. 
In mkii \expadned makes it work as Vianney has already suggested.


Jano


___
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] index sort question

2010-11-19 Thread Jano Kula

Hello Horacio,

if you have only one index item per page, than on the second level you 
can use \pagenumber for sorting:


A\index[arbol+\pagenumber]{arbol+rojo}\page
B\index[araña+\pagenumber]{araña+linda}\page
C\index[arbol+\pagenumber]{arbol+verde}\page
D\index[araña+\pagenumber]{araña+grande}\page
E\index[arbol+\pagenumber]{arbol+blanco}\page


The first level should be sorted alphabetically, because
1) you need to group index items according to first word (arbol, araña)
2) if the first item in the publication would start with z, than you 
would have Z as the first letterhead in the register (according to 
what you want), not speaking about others, so you could get Z G I E A N 
L ... as an alphabet, and nobody would find anything.


Jano


On 11/18/2010 10:50 PM, Horacio Suarez wrote:

hello all

In a index, is there a way to sort the items inside a letter not
alphabetically, I mean, in appearance order? or maybe there is another
way to do it.

I have now:

A
arbol
blanco, 15
rojo, 4
verde, 23
araña
grande, 50
linda, 12

I want:

A
arbol
rojo, 4
blanco, 15
verde, 23
araña
linda, 12
grande, 50


Thankyou in adavance.


Horacio Suarez




___
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] index sort question

2010-11-19 Thread Jano Kula

On 11/19/2010 10:45 AM, Jano Kula wrote:

Hello Horacio,

if you have only one index item per page, than on the second level you
can use \pagenumber for sorting:


or your own counter increased by every index item, which doesn't 
restrict it to one item per page.


J.

___
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] Export-backend and Ligatures

2010-11-19 Thread Jano Kula

On 11/19/2010 11:40 AM, Andreas Harder wrote:

Hi all,

can someone confirm the weird result of this example


Confirmed.

!-- context version  : 2010.10.29 18:15  --
!-- exporter version : 0.10  --


J.


\setupbackend[export=yes]
\starttext
ff ff fi fi
\stoptext

In the .export-file I see fififi (without space)!

Greeting
Andreas
___
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] XML ConTeXt

2010-11-02 Thread Jano Kula

Hi Daniel,

On 11/02/2010 08:50 PM, Daniel Grycman wrote:

Hello list,

I'm working with XML in ConTeXt. Now I want parse a XML-File with the
following structure, which is an export from a database.

?xml version=1.0 encoding=UTF-8?
personal
 person
 Name/Name
 Vorname/Vorname
 Titel/Titel
 Bezeichnung/Bezeichnung
 Mail/Mail
 Raum/Raum
 Telefon/Telefon
 /person


/personal

First, there is nothing to flush in the elements. You want to flush 
content of the elements (now empty), or their names?




\setuppapersize [A4,landscape][A4,landscape]
\usemodule [simplefonts]
\setmainfont[rubscalatz]
\setsansfont[rubflama]
\startxmlsetups xml:personen:base % associate setups with elements
\xmlsetsetup{personen}{personal|person}{xml:personen:*}
\stopxmlsetups
\xmlregisterdocumentsetup{personen}{xml:personen:base}

\startxmlsetups xml:personen:personal
\title{Personalverzeichnis}
\placelist[chapter]
\page
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:personen:personal:person


  \startxmlsetups xml:personen:person

  this is above registered xmlsetup


\bTABLE
\bTR \bTD {/Name} \eTD \eTR


\bTR \bTD \xmltext{#1}{/Name} \eTD \eTR

you either flush named element with \xmltext or all elements with 
\xmlflush



\eTABLE
\stopxmlsetups

\starttext
\xmlprocessfile{personen}{personen.xml}{}
\stoptext


The generated PDF-file only consists of one page with the chapter
Personalverzeichnis. Can anybody tell me, where the mistake is?

Daniel



Jano

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

2010-11-02 Thread Jano Kula

On 11/02/2010 10:59 PM, Daniel Grycman wrote:

Hi Wolfgang and list,

I already used this multipage table. But the result showed a header for
every entry of   the xml-source. Is there an option which I missed?


No option, you want to set up the header only once, hence you need to 
typeset it in the parent element of multiple person elements, here 
personal.


\startxmlsetups xml:personen:personal
\title{Personalverzeichnis}
\placelist[chapter]
\page
 % open table
 \bTABLE[split=yes,width=11em]
 \setupTABLE[row][*][width=\textwidth]
 \bTABLEhead
 \bTR \bTH Name \eTH \bTH Vorname \eTH \bTH Email-Adresse \eTH \bTH Raum
 \eTH \bTH Telefon \eTH \eTR
 \eTABLEhead
 \bTABLEbody
% and now deeper to multiple persons (rows)
\xmlflush{#1}
 % close table
 \eTABLEbody
 \eTABLE
\stopxmlsetups

\startxmlsetups xml:personen:person
  % here every person generates one row
  \bTR \bTD \xmltext{#1}{/Titel} \xmltext{#1}{/Name}  \eTD \bTD
  \xmltext{#1}{/Vorname} \eTD \bTD \xmltext{#1}{/Mail} \eTD \bTD
  \xmltext{#1}{/Raum} \eTD \bTD \xmltext{#1}{/Telefon} \eTD \eTR
\stopxmlsetups

Jano


\startxmlsetups xml:personen:person % associate setups with elements
\bTABLE[split=yes,width=11em]
\setupTABLE[row][*][width=\textwidth]
\bTABLEhead
\bTR \bTH Name \eTH \bTH Vorname \eTH \bTH Email-Adresse \eTH \bTH Raum
\eTH \bTH Telefon \eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD \xmltext{#1}{/Titel} \xmltext{#1}{/Name}  \eTD \bTD
\xmltext{#1}{/Vorname} \eTD \bTD \xmltext{#1}{/Mail} \eTD \bTD
\xmltext{#1}{/Raum} \eTD \bTD \xmltext{#1}{/Telefon} \eTD \eTR
\eTABLEbody
\eTABLE
\stopxmlsetups



Daniel

Am 02.11.10 22:38 schrieb Wolfgang Schuster unter
schuster.wolfg...@googlemail.com:



Am 02.11.2010 um 22:17 schrieb Daniel Grycman:


Hi Jano and list,

it works so far. But how can I set up a tablehead for the whole table?





http://wiki.contextgarden.net/TABLE#Multipage_TABLEs

Wolfgang

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

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



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

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




___
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] transliteration russian

2010-10-31 Thread Jano Kula

Hi!

On 10/30/2010 11:34 AM, Khaled Hosny wrote:

On Sat, Oct 30, 2010 at 10:17:11AM +0200, Hans Hagen wrote:

On 30-10-2010 12:05, Khaled Hosny wrote:

On Fri, Oct 29, 2010 at 11:25:20PM +0200, Mojca Miklavec wrote:

By far the easiest and most portable solution would be if you could
convince Taco to implement something like latin a is equivalent to
cyrillic a as far as hyphenation is concerned (which could also solve
many other problems that we have). Actually, you can already do that
by redefining \lccode of latin a to point to cyrillic a (and do that
for the whole alphabet), but then you need to make sure that you don't
use any commands for lowercasing/uppercasing words. If you need
details, I can help you out, but first exact transliteration rules are
needed.


I was thinking, since using \lccode for hyphenation is really a wired
choice (I'm sure don has a good reason back then, but such things are
usually no longer relevant), and since it is used in a sort of
controlled environment (playing with \lccode's for hyphenation is not
ever one's toy), may be luatex can break the backward compatibility in
the hyphenation area and have a dedicated new code, \hycode or
something, only for hyphenation purposes (may be backward compatibility
can be kept by using it in addition to \lccode, maybe).

What do you think?


just any letter (catcode letter) would do and the rest is to be
controlled by the patterns


The issue here is that we want to make some character equivalent to each
other, e.g. ' and ’ which are needed for some languages, without the
need to duplicate the patterns.


Before jumping too deep to the subject, consider if it really worth an 
effort. There is not much more then, titles written in the 
transliterated text. No continuous reading.


My experience says, whatever language is the original title, reader 
usually expects hyphenation similar to the language of the main text. 
Whenever I've used English patterns in English titles (even citations), 
they where changed by the Czech proofreader -- though they were 
perfectly correct in English -- to resemble Czech patterns. I'm not 
saying it is the right approach, but from the readers' and proofreaders' 
point of view if he reads in Czech and doesn't now English patterns or 
even English, patterns different from Czech are disturbing.


Jano

___
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] transliteration russian

2010-10-29 Thread Jano Kula

On 10/29/2010 01:58 PM, Thomas A. Schmitz wrote:


On Oct 29, 2010, at 1:18 PM, Steffen Wolfrum wrote:


Hi all,

I am just about to typeset a book of a russian author written in english, but 
with a lot of russian literature listed in the bibliography:
The titles of theses sources are russian but in latin transliteration, like 
this ...
O koordinacii mezhdunarodnyh i vneshnejekonomicheskih svjazej subjektov 
Rossijskoj Federacii

But even though I assigned \language[ru] the word vneshnejekonomicheskih 
eg. does not get hyphenated.
And there are some dozen titles more that show the same problem ...

Is this (to not hyphenate) because of the transliteration?
Do I have to choose another \language key?


I would expect slavic languages (cz, pl) to give better results in 
hyphenation of this transliterated text, though they will not give 
perfect results and exceptions will be needed. I'm assuming the reader 
how expects Russian hyphenation rules in these cases.


Jano

___
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] register sorting

2010-10-29 Thread Jano Kula

Hi Steffen,

On 10/29/2010 10:39 PM, Steffen Wolfrum wrote:

Hi,

I just installed todays beta and I am not sure if regoster sorting is working 
properly.

Eg. I modify (see below) the example from tricky-002.tex and I would like to 
achieve ...

accession
Action Plan
association

But none of the four methods (before, after, first, last) gives this result!!

What is wrong?


Methods were rewritten to give more flexibility. From the Hans' explanation:

\startquote

[pzm][mc] = [plus|zero|minus offsets][mapping|cases]

uc == unicode order

ok, a bit cryptic but one can now choose methods more explicitly (with 
the four predefined)


cases   : lowercasing with shapebased pre/post injection
mapping : given language mapping with shapebased pre/post injection

Not all combinations make sense so we might need to figure out which 
ones to document. With too much simplification (shape based) the sorter 
will not sort right as there always need to be some distinction.


\stopquote

Bellow is the example with possible combinations, so try which one suits 
you best.


At least method={zm,mc,uc} gives what you want, but I don't know your 
border cases.


Jano



% tricky-006.tex
\setuplayout[topspace=1cm,height=middle]

\setupbodyfont[11pt]

\starttext

\def\Test#1%

{\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank}

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
\Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc}
\Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc}
\Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc}
\stopcolumns

\page

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
\Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc}
\Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc}
\Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc}
\stopcolumns

\page

\dorecurse {2} {
   \page \recurselevel:
\index{oá}  \index{öb}  \index{Oč}  \index{Öď}
\index{oo}  \index{öo}  \index{Oo}  \index{Öo}
\index{Öq}  \index{öř}  \index{Oš}  \index{oů}
   done
}












___
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] break after index

2010-10-26 Thread Jano Kula

Hi Steffen,

On 10/26/2010 03:01 PM, Steffen Wolfrum wrote:


I am working on a book right now where the author set 4906 index marks ... 
sometimes right-in-the-middle of a word, but most often behind (and before dot 
or comma).


and what about to clean up the file with regular expression similar to this:

sed -e 's/\b\(\w*\)\\index{\([^}]*\)}/\\index{\2}\1/g' old.tex  new.tex

I would guess, that index entries in the middle of the world break 
kerning and hyphenation.


Jano

___
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] entries in registerentry

2010-10-19 Thread Jano Kula

Hi Steffen,

On 10/13/2010 07:23 PM, Steffen Wolfrum wrote:

Hi,

I don't understand the concept of entries in registerentry :o(

Say, you have this example:

\starttext
\placeregister[index]
\page
page 1
\setregisterentry[index]
  [entries:1={eins},
   entries:2={zwei},
   entries:3={drei},
   label=range]
\page
  page 2
  text
\page
  page 3
\finishregisterentry[index][label=range]
text
\stoptext


\setregisterentry writes only one index entry and entries:1, entries:2, 
entries:3 are the levels of this entry, so \setregisterentry in your 
example is equivalent to


\index{eins+zwei+drei}

and you get

eins
  zwei
drei number


Why does only have entries:3 the index range 2-4, both entries:1 and 2 are 
emtpy?
What should I write in order to have all of those entries referering to the same 
2-4?


Hans might have a better hint, I would write these entries three times.

Jano



___
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] change register entry separator

2010-10-08 Thread Jano Kula

Hello Hans,

On 10/01/2010 11:20 PM, Hans Hagen wrote:

On 1-10-2010 12:02, Jano Kula wrote:

Hi,

any way to change register entry and subentry separator from + to
something else? Preferably to kanji character, so I'm sure it will not
appear in the text. Entries and subentries are autoflushed, so it can be
really anything.

Other way around: I substitute + with  PLUS  in index terms before
writing into the index, but which command is reading the sorted index
entries to change it back to + when typesetting the sorted index on
pages?


\setregisterentry[index]
[entries:1=...,
entries:2=...,
entries:3=...,
keys:1=...,
keys:2=...,
keys:3=...,
...


Thank you, it took me a while, to find out if this was the answer to the 
first or second question ;) Partly, because there is a bug somewhere, I 
think.


If the entry with [keys:1=blue, keys:2=red] is supposed to be sorted by 
blue on the first level, and by red on the second, it doesn't work 
as expected. Instead of keys, the entries are written into the *.tuc file.


Can you, please, have a look at the minimal example?

Thanks,

Jano



\starttext
\placeregister[index]

\blank[3*big]

\page

% works
\setregisterentry[index][entries=aaa,keys=bbb] page 2

\page

% works
\setregisterentry[index][entries:1=aaa,entries:2=bbb] page 3

\page

% doesn't work
% in *.tuc file the entries are written on both positions
% { aaa, aaa },
% { bbb, bbb },
\setregisterentry[index][entries:1=aaa,entries:2=bbb,keys:1=ccc,keys:2=ddd] 
page 4


\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] change register entry separator

2010-09-30 Thread Jano Kula

Hi,

any way to change register entry and subentry separator from + to 
something else? Preferably to kanji character, so I'm sure it will not 
appear in the text. Entries and subentries are autoflushed, so it can be 
really anything.


Other way around: I substitute + with  PLUS  in index terms before 
writing into the index, but which command is reading the sorted index 
entries to change it back to + when typesetting the sorted index on pages?


Thanks,

Jano

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

2010-09-25 Thread Jano Kula

Hello Hans,

thank you for implementing multilingual indexing.

Is there a way to turn off case sensitivity? I would expect the result 
as written in the minimal example below. This is not wanted in every 
case (should be a switch).


The Oo oo Öo öo part is probably tricky then, so I've sorted it as 
usual with xindy plus my custom module and I've got


oá öb Oč Öď Oo oo Öo öo Öq öř Oš oů

so the Oo, oo, Öo, öo part could probably depend on available methods 
(before, after, last, first). In practice, one hardly gets same 
lettering with the different accents.


Thank you,

Jano



% tricky-003.tex:

\setuplayout[topspace=1cm,height=middle]

\setupbodyfont[11pt]

\starttext

wanted result:

\blank

oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů

\subject{before : Oo Öo oo öo}
\placeregister[index][language=en,method=before] \par
\subject{after  : oo öo Oo Öo}
\placeregister[index][language=en,method=after]  \par
\subject{first  : Oo oo Öo öo}
\placeregister[index][language=en,method=last]   \par
\subject{last   : oo Oo öo Öo}
\placeregister[index][language=en,method=first]  \par

\dorecurse {3} {
   \page \recurselevel:
   \index{oá}  \index{öb}  \index{Oč}  \index{Öď}
   \index{oo}  \index{öo}  \index{Oo}  \index{Öo}
   \index{Öq}  \index{öř}  \index{Oš}  \index{oů}
   done
}

\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] index: xml in mkiv

2010-09-25 Thread Jano Kula

Hello Hans,

just to remind the other issues. The code from xml-mkiv.pdf doesn't work 
as expected. Only in \TestMode=2 the index is rendered as supposed.


demo.tex + demo.xml below

Jano



%%
% demo.tex
\newcount\TestMode
\TestMode=0 % expansion=xml
%\TestMode=1 % expansion=yes, index, setup
%\TestMode=2 % expansion=yes

\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{demo|index|content|chapter|title|em}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

% main document
\startxmlsetups xml:demo
  \xmlflush{#1}
  \subject{contents}
  \placelist[chapter][criterium=all]
  \subject{index}
  \placeregister[index][criterium=all]
  \page % else buffer is forgotten when placing header
\stopxmlsetups


\startxmlsetups xml:chapter
  \ifcase \TestMode
% xml code travels around
\setuphead[chapter][expansion=xml]
\startchapter[title=eh: \xmltext{#1}{title}]
  \or
% index is used for access via setup
\setuphead[chapter][expansion=yes,xmlsetup=xml:title:flush]
\startchapter[title=\xmlgetindex{#1}]
  \or
% tex call to xml using index is used
\setuphead[chapter][expansion=yes]
\startchapter[title=hm: \xmlreference{#1}{xml:title:flush}]
  \fi
  \xmlfirst{#1}{content}
  \stopchapter
\stopxmlsetups

\startxmlsetups xml:title:flush
  \xmltext{#1}{title}
\stopxmlsetups

% We need to deal with emphasis and the content of the chapter.
\startxmlsetups xml:em
  \begingroup\em\xmlflush{#1}\endgroup
\stopxmlsetups

\startxmlsetups xml:content
  \xmlflush{#1}
\stopxmlsetups


%A similar approach is followed with the index entries. Watch how we use 
the numbered entries variant (in this case we could also have used just 
entries and keys.

\startxmlsetups xml:index
  \ifcase \TestMode
\setupregister[index][expansion=xml,xmlsetup=]
\setstructurepageregister
  [index]
  [entries:1=\xmlfirst{#1}{content},
  keys:1=\xmltext{#1}{key}]
  \or
\setupregister[index][expansion=yes,xmlsetup=xml:index:flush]
\setstructurepageregister
  [index]
  [entries:1=\xmlgetindex{#1},
  keys:1=\xmltext{#1}{key}]
  \or
\setupregister[index][expansion=yes,xmlsetup=]
\setstructurepageregister
  [index]
  [entries:1=\xmlreference{#1}{xml:index:flush},
  keys:1=\xmltext{#1}{key}]
  \fi
\stopxmlsetups

\startxmlsetups xml:index:flush
  \xmlfirst{#1}{content}
\stopxmlsetups


% The file is processed by:
\starttext
  \xmlprocessfile{main}{demo.xml}{}
\stoptext


% additional control
%\startxmlsetups xml:ctx:sectionentry
%\xmlflush{#1}
%\stopxmlsetups
%\startxmlsetups xml:ctx:registerentry
%\xmlflush{#1}
%\stopxmlsetups


%%
% demo.xml
?xml version='1.0' ?
demo
chapter
titleSome emshort/em title/title
content
zeta
index
keyzeta/key
contentzeta again/content
/index
alpha
index
keyalpha/key
contentalpha emagain/em/content
/index
gamma
index
keygamma/key
contentgamma/content
/index
beta
index
keybeta/key
contentbeta/content
/index
delta
index
keydelta/key
contentdelta/content
/index
done!
/content
/chapter
/demo



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

2010-09-11 Thread Jano Kula

On 09/11/2010 10:19 AM, Jaroslav Hajtmar wrote:
:-)

I fear that without the neoprene in the river no one will swim - unless
some excellent fan ice water ..

Jaroslav



Is the water really that cold?
Of course, we all hope that the weather for the week should be excellent!

Alan


A year ago when arranging the accomodation, I was swimming in the river 
without problems. It was very hot, so cooling was even needed. The water 
isn't crystal clear, so diving has no sense, but swimming a bit, is OK.


The weather is getting better, Tuesday sunny without clouds with 22 
degrees. Slightly colder with some rain (or vice versa) on Wednesday and 
Thursday. Then improving again on Friday and Saturday.


Jano



___
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] weather forecast

2010-09-11 Thread Jano Kula
Weather forecast is improving. Indian summer is here! Rain only on 
Wednesday.


week temperatures:
day: 18-22 Celsius (in shadow, of course)
night: 7-12 Celsius

Jano

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

2010-09-10 Thread Jano Kula

On 09/10/2010 10:12 PM, Mojca Miklavec wrote:

On Thu, Sep 9, 2010 at 21:56, Henning Hraban Ramm wrote:


Should I bring my guitar, or do we spend the nights hacking anyway?
(I'd like to learn a Czech folk song or two, even if I'll have a hard time
pronouncing it ;-))


Guitar is very welcome even if the rest is going to spend as much time
hacking as they did in Bohinj (when the sun was shining and a nice
lake was only 100m away ...)


The river is only 2 meters away, so there will be more swimming this time.


Anyway, if you like guitar playing, it looks like you should plan a
trip to BachoTeX next year.

Jano, should we bring some more wood for bonfire for Nino as well?


No, we will give him a job in the restaurant, so he can make BBQs there.

Jano

___
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] fixed columns height

2010-08-30 Thread Jano Kula

Hello,

looking for the multicolums of fixed height I've found the solution from 
Wolfgang [1], which doesn't work with latest beta (mkiv):


\usemodule[streams]

\definestreamlayer[test][method=overlay]

\setupbackgrounds[page][background=test]

\starttext

\startstreamlayer[test]
\startcolumns
\input knuth
\stopcolumns
\stopstreamlayer

\setlayer[test][x=5cm,y=10cm]{\placestreamlayer[test]}

\stoptext

Here is the scenario: tree columns of fixed height should be placed at 
the precise place (end of the page, so they can also float there).


It is necessary to measure their natural height, also, to check if all 
the material fits in the the specified height or find some other way to 
check if the material is lost or not.


Do you have any hints?

Thanks,

Jano

[1] http://thread.gmane.org/gmane.comp.tex.context/55324/focus=55433


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

2010-08-12 Thread Jano Kula

Hello,

the preliminary programme was updated with the TeXperience 2010 talks on 
Saturday and Sunday:

http://meeting.contextgarden.net/2010/programme.shtml

Jano
http://meeting.contextgarden.net/2010/


On 08/05/2010 02:02 PM, Taco Hoekwater wrote:


Hi all,

Jano has put up the preliminary programme for our meeting:

http://meeting.contextgarden.net/2010/programme.shtml

For those of you that are still in doubt or simply waiting with
registration: As Jano wrote last week, the registration is still open
and will remain open until we reach the available capacity. But it
is possible that the maximum capacity actually *will* be reached,
so it is not wise to delay your decision until the very last moment.

Hope to see you in Brejlov,

Taco


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

2010-08-12 Thread Jano Kula

Hi,

On 08/12/2010 03:51 PM, Henning Hraban Ramm wrote:


Am 2010-08-12 um 15:02 schrieb Jano Kula:


Hello,

the preliminary programme was updated with the TeXperience 2010 talks
on Saturday and Sunday:
http://meeting.contextgarden.net/2010/programme.shtml


a printable version would be nice - white text on a dark background is
either invisible (if I disable printing backgrounds) or needs too much
ink/toner...



Printable PDF above the programme. Be aware the program is still in 
development: http://meeting.contextgarden.net/2010/programme.pdf


Jano
http://meeting.contextgarden.net/2010/

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

2010-08-12 Thread Jano Kula

On 08/12/2010 05:31 PM, Henning Hraban Ramm wrote:

Am 2010-08-12 um 17:04 schrieb Jano Kula:

Printable PDF above the programme. Be aware the program is still in
development: http://meeting.contextgarden.net/2010/programme.pdf


Thank you, but every day on a single page is a bit too much paper...

BTW: Looks like Excel - would look better with ConTeXt ;-)
Sorry for nagging.


It is an exercise on rearranging pages in mkiv to use less paper. If 
still too much, then Read Out Loud in Acrobat Reader.


J.

___
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] 4th ConTeXt Meeting, update

2010-08-02 Thread Jano Kula

On 08/02/2010 04:16 PM, Khaled Hosny wrote:


Any love for people who are unable to make it into the meeting, like
video recordings or something?


We will do our best and see the results after the meeting. Sometimes it 
is difficult even to get all slides together. But nothing can compensate 
for the personal experience, if somebody can make it and is still in doubts.


Jano
http://meeting.contextgarden.net/2010/

___
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] 4th ConTeXt Meeting, update

2010-07-26 Thread Jano Kula

Hello to everybody!

There are few weeks left till the 4th ConTeXt Meeting on September 
13-18, 2010 in Brejlov, Czech Republic.


We have collected interesting talks and tutorials (25+) on ConTeXt, 
LuaTeX, Lua, fonts, OpenType math, Metapost and more:

http://meeting.contextgarden.net/2010/abstracts.shtml

We are working on the preliminary programme and other things to make the 
meeting unforgettable. The highlights of the accompanying programme are 
delicious cuisine, excellent beer and lovely countryside. Many friends 
from the ConTeXt list are coming, so we are going to have wonderful time 
with many interesting talks -- formal and informal: great source of 
encouragement and inspiration.


After the deadline, the registration for the meeting is still open until 
we reach the available capacity.


We hope you are having a good time and we are looking forward to meeting 
you in Brejlov.


Best regards,

Jano Kula
on behalf of the organizing committee
http://meeting.contextgarden.net/2010/

___
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] reminder: early-bid registration for the 4th ConTeXt Meeting

2010-05-24 Thread Jano Kula

Dear all,

there is only one week left for the early-bid registration for the 4th 
Context Meeting in Brejlov, Czech Republic on September, 13-18.


Early registration will not only save you some money, but it will also 
help organizers to better estimate the required capacity. So, especially 
those who are sure to come, please, do register and pay the fee within 
the next week (till May 31, 2010), if possible.


Those who are still in doubts can drop an email to us, so we can count 
you in as a potential participants.


Thank you and see you in Brejlov,

Hans, Jano, Pavel  Taco
The organizing committee

Visit: http://meeting.contextgarden.net/2010/

___
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] 4th ConTeXt Meeting: Call for submissions

2010-04-06 Thread Jano Kula

Dear all,

4th ConTeXt Meeting is closer now and it's time to think about its 
programme.


-

= Call for submissions =

As in previous years, anything at all related to ConTeXt that you would 
like to share is an acceptable subject for a presentation, tutorial, 
discussion, QA session, demonstration, workshop, recital, sketch, or 
sermon.


That said, this year Hans and Taco decided that it would be wise to 
focus a bit on documentation issues. The informal theme is therefore:


*ConTeXt typesetting documentation, teach as we preach*

It follows that if you have something to say on educating users on how 
to best use ConTeXt or to developers on how to best document ConTeXt 
(and who doesn't have an opinion on those topics!) your submission will 
be all the more appreciated.


The programme committee is Hans Hagen Hagen and Taco Hoekwater, feel 
free to email them with hints and ideas. Because we want something 
interesting on the website, abstracts should be sent in before May 31 or 
even now, before opening the registration.


-

http://meeting.contextgarden.net/2010/

The page has been updated. We hope you won't get lost and everybody can 
find his way to Brejlov (see the 'location' part). The registration 
opening will follow shortly. We will inform you here, on the mailing list.


Hans, Jano, Pavel  Taco
The organizing committee

___
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] 4th ConTeXt meeting: Brejlov (Prague), Czech Republic

2009-11-27 Thread Jano Kula

Dear all,

we are glad to announce the date of the 4th ConTeXt meeting, which will 
take place in Brejlov (Prague), Czech Republic:


September 13-18, 2010

We'll add more details to the conference page and inform you about 
important updates on the list, especially deadlines and fees. For now, 
book the dates in your schedule.


We look forward to seeing you there.

Hans, Jano, Pavel, Taco

http://meeting.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] tex still popular

2008-09-25 Thread Jano Kula
Hans Hagen wrote:
 Hi,
 
 i just ran across http://viennateng.com/scrapbook/ (topline looks very 
 texie to me); ok, she has a background in computer science and somehow 
 the tex syntax got burned in

At Stanford. Makes sense.

Jano

 Hans
 
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 

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

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


Re: [NTG-context] Breaking/Hyphenating

2008-09-16 Thread Jano Kula
Hi!

Mohamed Bana wrote:
 1.  What must I do to the 3rd paragraph on the first page to get it to space
 properly? It's far too close to the previous one.
 
 1st page, 3rd paragraph; http://filebin.ca/dnoqva/test.pdf or 
 http://filebin.ca/dnoqva. Here's a screenshot; 
 http://imagebin.ca/view/5Es-dHG.html
 
 Source; http://pastebin.com/f15e49b5e

Works nicely here with
luaTeX-0.28.0
ConTeXt 2008.09.10 14:01

\setuplayout[grid=yes] might help also.

 2.  On the 1st page the d in praised protrudes to the margin, how do I stop
 this. I should point out that this happens often, and I don't mind if TeX
 creates a page with 1-2 lines as long as nothing protudes into the margin.

Regular Overfull hbox. TeX doesn't know how to break the world (line). 
Whatch log file or set \overfullrule=10pt. Usually you could tell TeX 
where to break the world with \- but in this example it seems compound 
words (||) aren't supposed to be broken at all.



Jano

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

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


Re: [NTG-context] Hyphenating hyperlinks

2008-09-16 Thread Jano Kula
Mohamed Bana wrote:
 Why aren't the the urls broken across the lines on page2-3. I'm pretty sure 
 the
 hyperref package in latex supported this, Am I missing an option somewhere?
 
 Screenshot; http://imagebin.ca/view/VHwQ0w.html.
 
 The code used is; \dorecurse{6}{Download Apache at \from[apache]}
 Full source; http://pastebin.com/m1cf28c3c
 Pdf; http://filebin.ca/dnoqva/test.pdf or http://filebin.ca/dnoqva.

Here, TeX can't break the paragraph according to the strict paragraph 
layout settings, urls are broken, but they still form Overfull hbox. 
(And there is no space after urls.)

\setuptolerance[tolerant]

will help.


Jano

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

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


Re: [NTG-context] Mkiv hyperlink problem

2008-09-16 Thread Jano Kula
Mohamed Bana wrote:
 Could someone please try this out;
 
 1.  This source file; http://pastebin.com/m4dd31559 doesn't work with mkiv, it
 fails with; http://pastebin.com/ma9705be (paste below).
 2.  I don't get an error when I compile with mkii.  Here's the log of the
 succesfull compile; http://pastebin.com/m2c98019d.  

Works here (ConTeXt - 2008.09.10 14:01, pdfTeX-1.40.9, luaTeX-0.28.0) 
both with mkii and mkiv.

Jano

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

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


Re: [NTG-context] mkii colour problem

2008-09-16 Thread Jano Kula
Mohamed Bana wrote:
 Hi everbody,
 
 1.  Blank links source; http://pastebin.com/m4dd31559, Doesn't work, but
 strangely enough color=urlcolour (the one below) does.  Log;
 http://pastebin.com/m1034c274
 2.  Colour links source; http://pastebin.com/m70fa91b6.  Log;
 http://pastebin.com/m16be2374
 
 Just compile the and you'll see for yourself.
 
 So if I do use ucolour, the links are shown in black.  I can't compile the
 file with mkiv, see http://thread.gmane.org/gmane.comp.tex.context/44025.

Not sure what you mean. I see nothing strange: mkii and mkiv give the 
same results. Upgrade should help.

Jano

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

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


Re: [NTG-context] headers and footers

2008-08-29 Thread Jano Kula
Hi,

Alan Stone wrote:
 Hi,
  
 Main manual pg 78, § 4.17: \setup*texts /[.1.]/ [.2.] [.3.] commands
  
 When the first argument is left out it is taken for granted that the 
 footer and header should be place under or over the pagebody (text).
  
 What does this mean ?

First (optional) parameter defaults to text (positioning over/under 
text area).

This parameter says over/under which page area headers/footers are 
placed. One could choose margin or edge areas also.

Jano


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

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


Re: [NTG-context] linking to txt files

2007-05-11 Thread Jano Kula
Hello!

Aditya Mahajan wrote:

 And if 
 you remember that a regex search is going in the background, that you 
 can make use of that.

Good to know. A note on this on the main search page would be usefull.

Not a big issue, just remark: with more complex regexp searching works, 
but displaying the page fails (highlighting?). Try \\def[^\]a.

Jano

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

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


[NTG-context] lineskip in itemize

2007-04-24 Thread Jano Kula
Greetings to everybody!

It might be a bug, hence this message.

The strut at the begining of an item in the itemgroup breaks the line 
skip  (even if it is set on grid) if there is some accent above the 
uppercase letter. Contrary to normal text, where everything is OK.

Changing \lineskiplimit locally to itemigroup fixes the problem.

Jano


ConTeXt  ver: 2007.01.18 12:57 MKII

%%% minimal example
\enableregime[utf]
\showgrid
\showstruts

%\setuplayout[grid=yes]
%\setupitemgroup[itemize][before={\lineskiplimit=-10pt}]

aaa

bbb

ccc

Ú ddd

eee


\starttext
\startitemize[packed]
\item aaa
\item bbb
\item ccc
\item Ú ddd
\item eee
\stopitemize
\stoptext

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

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


Re: [NTG-context] lineskip in itemize

2007-04-24 Thread Jano Kula
Wolfgang Schuster wrote:
 
 2007/4/24, Jano Kula [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:
 
 The strut at the begining of an item in the itemgroup breaks the line
 skip  (even if it is set on grid) if there is some accent above the
 uppercase letter. Contrary to normal text, where everything is OK.
 
 Changing \lineskiplimit locally to itemigroup fixes the problem.


 add the next line to your document.
 
 \setupinterlinespace[height= 0.77,depth=0.23]

Thanks, Wolfgang.

The default values just don't fit for Latin Modern. Right?

BTW, how would I easily print the default/actual value of a key=value 
pair of the specific command?

Jano

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

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


[NTG-context] delimiter bigger then \Biggr

2007-01-24 Thread Jano Kula
Greetings!

How would you make right delimiter } bigger then $\Biggr\}$ to join 
several lines in table?

A AA -|
B BB  |
C CC  |- description
D DD  |
E EE -|

Is there a better solution (?) than

$\left.\blackrule[width=0pt,height=14mm]\right\}$



Here is this example used in natural table:

\starttext
\setupTABLE[frame=off]
\bTABLE[align={middle,lohi}]
\bTR
\bTD A \eTD
\bTD AA \eTD
\bTD[nr=5]$\left.\blackrule[width=0pt,height=14mm]\right\}$\eTD
\bTD[nr=5] description \eTD
\eTR
\bTR\bTD B \eTD\bTD BB   \eTD\eTR
\bTR\bTD C \eTD\bTD CC   \eTD\eTR
\bTR\bTD D \eTD\bTD DD   \eTD\eTR
\bTR\bTD E \eTD\bTD EE   \eTD\eTR
\eTABLE
\stoptext


Thanks.

Jano

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


Re: [NTG-context] delimiter bigger then \Biggr

2007-01-24 Thread Jano Kula
Thank you, Wolfgang.

Wolfgang Schuster wrote:

 Here is this example used in natural table:
 
 \starttext
 \setupTABLE[frame=off]
 \bTABLE[align={middle,lohi}]
 \bTR
\bTD A \eTD
\bTD AA \eTD
\bTD[nr=5]$\left.\blackrule[width=0pt,height=14mm]\right\}$\eTD
\bTD[nr=5] description \eTD
 \eTR
 \bTR\bTD B \eTD\bTD BB   \eTD\eTR
 \bTR\bTD C \eTD\bTD CC   \eTD\eTR
 \bTR\bTD D \eTD\bTD DD   \eTD\eTR
 \bTR\bTD E \eTD\bTD EE   \eTD\eTR
 \eTABLE
 \stoptext
  
 you can misuse the mathmode.

Hope not. This is only the part of the story -- minimal example. 
Delimiter should be the part of more complex table.

 \starttext
 
 \startformula
 \startmatrix[left=\left.,right=\right\},style=\rm]
 \NC A \NC AA \NR
 \NC B \NC BB \NR
 \NC C \NC CC \NR
 \NC D \NC DD \NR
 \NC E \NC EE \NR
 \stopmatrix \text{ description}
 \stopformula
 
 \stoptext

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


Re: [NTG-context] translation question

2007-01-19 Thread Jano Kula
Frans Goddijn wrote:

 Any Czech here who'd care to translate or give a general impression  
 in English of what the text says?

I took the exercise and sent the translation to Frans.

J.


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


Re: [NTG-context] HZ and DVI

2007-01-15 Thread Jano Kula
Hi!

Sanjoy Mahajan wrote:

 
 xpdf has a -remote option, so a Makefile rule could make the pdf and
 then tell xpdf to reload it, via the command line.  But I've never
 managed to get -remote to work with xpdf.
 

I use it that way and -remote option works for me.

You open the file with

xpdf -remote your_server_name file.pdf

your_sever_name is whatever you name it

When needed (e.g. *.tex file has chaned) Makefile generates PDF and 
calls the server to reload it with

xpdf -reload -remote your_server_name


Jano

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


  1   2   >