[NTG-context] unsubscribe

2023-08-18 Thread Thomas Floeren via ntg-context


> On 18. Aug 2023, at 20:17, Carlos  wrote:
> 
> On Fri, Aug 18, 2023 at 06:20:29PM +0200, Mikael Sundqvist wrote:
>> Hi,
>> 
>> It is extremely difficult to follow what you write.
>> 
>> On Fri, Aug 18, 2023 at 11:43 AM Carlos  wrote:
>>> 
>>> If I have the following, with these linebreaks as in:
>>> 
>>> {\par But a system cannot be successful if it is too strongly
>>> influenced by a single person. {\obeylines Once the initial design is
>>> complete and fairly robust, the real test begins as people
>>> with many different viewpoints undertake their own
>>> experiments.}}
>> 
>> Is that the complete document? What do you have in mind with obeying
>> lines in the middle of a paragraph?
> 
> it's the only possible way off the top of my head to circumvent body
> font size with a given width, while keeping both: the kern of \TeX\
> and the double spacing that lmtx injects following a sentence,
> within sanity check, hence the nonfrenchspacing
> 
> The separation of any of these four components would have hurt T
> E X sig­
> nificantly.
> If I had not participated fully in all these activities, literally
> hundreds of improvements would never have been made, because I would
> never have thought of them or perceived why they were important.
> But a system cannot be successful if it is too strongly influenced
> by a single person. Once the initial design is
> 
> 
>> 
>>> 
>>> and opted to load another font, other than cmr that is, a \frenchspacing
>>> approach wouldn't be further required
>> 
>> cmr? Not used in ConTeXt for a long time. (And what does the changing
>> of font have to do with this?)
> 
> latin modern.
>> 
>>> 
>>> Bear with me here, in the current state, for example, and as long as say
>>> 
>>> «…person.␣{\obeylines Once the initial is
>>> complete…» though feasible enough, leaves any prior \␣ at the mercy of
>>> whatever fontsize and/or set width happens to be. And this is just plain
>>> wrong.
>> 
>> What?
>> 
>>> 
>>> Likewise, if a word sequence such as \TeX\ occurs as in {\ss The separation
>>> of any of these four components would have hurt \TeX\ significantly. }
>> 
>> Likewise what?
>> 
>>> 
>>> The next sentence: «If I had not participated…» does not get any
>>> \nofrenchspacing which is equally and doubly problematic. It shows lack of
>>> consistency. And this ought not to be an ‹either› ‹or› scenario. But
>>> rather, an and conjunctional construct. It fails both ways.
>> 
>> Consistency of what? Spacing? Where? Can you make a complete example?
>> (You can show space amount with \showmakup[space])
> 
> yes. and showmakeup displays: .SP:10.945 If
> 
> rather than for example with: .SP:5.235
> OnceSP:3.926
> theSP:3.926
> initial SP:3.926
> designSP:3.926
> is 
> 
> and 
> 
> :3.586
> THK:-1.853
> H__E
> X
> HK:-1.390
> SP:3.586
> sig­RH:0.000
> IR:0.000
> RS:0.000
> LH:0.000
> H__nificantlyLS:0.000BS:6.565
> 
> 
> and here's your example:
> 
> \setuplayout[width=16cm]
> \showmakeup
> 
> \starttext
> 
> Thus, I came to the conclusion that the designer of a new
> system must not only be the implementer and first
> large||scale user; the designer should also write the first
> user manual.
> \setupbodyfont[12.895pt]
> 
> {\ss The separation of any of these four components would have
> hurt \TeX\ significantly. If I had not participated fully in
> all these activities, literally hundreds of improvements
> would never have been made, because I would never have
> thought of them or perceived why they were important.\par}
> 
> Do you see that width of 16cm? That's what throws it off
> 
> but then again, anything less than that 12.895 font size, throws off the
> kern of \TeX\ too. 
> 
> As a result, I can't use any lower font size, before everything,
> including kerning of \TeX\ and spaces after sentences, are completely
> off.
> 
> I mean. obeylines serve a better function than having extra spaces all
> over with no end in sight, really. 
>> 
>>> 
>>> Furthermore, with the same token, if width is specified with a
>>> 
>>> \setuplayout[width=15cm]
>> 
>> OK, here the game changes...
>> 
>>> 
>>> Anything less than 12.895pt, especifically for that use case, wwould
>>> throw anything, particularly control sequences such as \TeX\ out
>>> of whack, and conversely, once a value of that very pt or pica or
>>> whatever is lowered, it brings that nonfrenchspacing right back on.
>>> And if width increments occur, then it follows that any control sequence 
>>> kerning
>>> also gets thrown off as a result.
>> 
>> Of course the width influences the spacing. That is how the paragraph
>> builder works (and really, why it often looks good).
>> 
>>> 
>>> It seems so far, that with lmtx, any standalone file, document, minimal
>>> working example that does not load cmr at the outset does not produce
>>> an acceptable outcome either. By saying acceptable I meant to say it
>>> namely from a typographical point of view. Nothing else.
>> 
>> I have no clue of what you talk about here.
>> 
>>> 
>>> from the TeXbook 3

Re: [NTG-context] Textbackground offset with multi-col paragraphs

2017-11-23 Thread Thomas Floeren
> On 2. Nov 2017, at 15:17, Thomas Floeren  wrote:
> 
> Hi,
> 
> I noticed that with one of the recent betas the right offset of my 
> textbackgrounds doesn’t work properly anymore when the textbackground 
> contains a multi-column “paragraph”.
> 
> A minimal:
> 
> \defineparagraphs [TestPar][n=2, distance=7mm]
> \setupparagraphs [TestPar][1][width=2em]
> 
> \definetextbackground [CB][
> location=paragraph,
> backgroundcolor=gray,
> leftoffset=.3em,
> rightoffset=.3em,
> topoffset=.3em,
> bottomoffset=.3em,
> frame=off
> ]
> 
> \starttext
> 
> \starttextbackground [CB]
> \dorecurse {40} {a b c } 
> \stoptextbackground
> 
> text
> 
> \starttextbackground [CB]
> \startTestPar
> img
> \TestPar
> \dorecurse {40} {a b c } 
> \stopTestPar
> \stoptextbackground
> 
> \stoptext
> 
> 
> The first box is OK and as expected. But with the second one (containing a 
> “paragraph”) the right offset gets miscalculated, so that the text runs into 
> the edge of the background.
> 
> With a beta from July or so the behavior was still OK.
> 

Any news on this?

Just to know if I should wait for a fix, or rather adapt my existing documents.

Thanks,

-- 
Tom

___
If your question is of interest to others as well, please add an 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] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
> On 2. Nov 2017, at 18:55, Pablo Rodriguez  wrote:
> 
> On 11/02/2017 03:17 PM, Thomas Floeren wrote:
>> Hi,
>> 
>> I noticed that with one of the recent betas the right offset of my
>> textbackgrounds doesn’t work properly anymore when the textbackground
>> contains a multi-column “paragraph”.
>> 
>> The first box is OK and as expected. But with the second one
>> (containing a “paragraph”) the right offset gets miscalculated, so that
>> the text runs into the edge of the background.
>> 
>> With a beta from July or so the behavior was still OK.
> 
> Hi Thomas,
> 
> I can confirm the bug. It works fine with ConTeXt from TeX Live 2017,
> but not with latest beta (that I get to work) from 2017.10.29 15:44.
> 

Hi Pablo,

thanks for testing.

For me it’s still fine with 2017.07.30 19:30.
Not fine with 2017.10.29 15:44 and 2017.11.01 15:58.

-- 
Tom


___
If your question is of interest to others as well, please add an 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] Textbackground offset with multi-col paragraphs

2017-11-02 Thread Thomas Floeren
Hi,

I noticed that with one of the recent betas the right offset of my 
textbackgrounds doesn’t work properly anymore when the textbackground contains 
a multi-column “paragraph”.

A minimal:

\defineparagraphs [TestPar][n=2, distance=7mm]
\setupparagraphs [TestPar][1][width=2em]

\definetextbackground [CB][
location=paragraph,
backgroundcolor=gray,
leftoffset=.3em,
rightoffset=.3em,
topoffset=.3em,
bottomoffset=.3em,
frame=off
]

\starttext

\starttextbackground [CB]
\dorecurse {40} {a b c } 
\stoptextbackground

text

\starttextbackground [CB]
\startTestPar
img
\TestPar
\dorecurse {40} {a b c } 
\stopTestPar
\stoptextbackground

\stoptext


The first box is OK and as expected. But with the second one (containing a 
“paragraph”) the right offset gets miscalculated, so that the text runs into 
the edge of the background.

With a beta from July or so the behavior was still OK.

Thanks for any advice,
best,

-- 
Tom

http://dflect.net/context-typeset-tool/

___
If your question is of interest to others as well, please add an 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] synctex

2017-07-19 Thread Thomas Floeren

> On 11. Jul 2017, at 23:06, Thomas Floeren  wrote:
> 
>> 
>> On 11. Jul 2017, at 17:09, Hans Hagen mailto:pra...@wxs.nl>> 
>> wrote:
>> 
>> On 7/11/2017 4:36 PM, Thomas Floeren wrote:
>>>> On 4. Jun 2017, at 18:55, Hans Hagen >>> <mailto:pra...@wxs.nl>> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> For those using synctex, an alternative method is:
>>>> 
>>>> \setupsynctex[state=start]
>>>> 
>>>> It is tuned for use in a more complex setup where one wants access to 
>>>> source files (with content) and not to e.g. styles in a tex tree. It also 
>>>> works reasonable well with (also included) xml files. Personally I never 
>>>> use synctex but for some projects it came in handy for authors (think of 
>>>> proofing xml files with hundreds of nested inclusions and files in a 
>>>> rather branched tree.) Of course you can expect a similar performance hit 
>>>> as normal synctex but commenting the above line in production results in 
>>>> zero overhead. Using the syntex flag on the command line 
>>>> (--synctex=context will work) can be messy.
>>>> 
>>>> This currently only works with the windows binaries version on the garden 
>>>> (as we need luatex 1.0.5).
>>> Hans, thanks for that info.
>>> \setupsynctex[state=start] seems to work fine with Beta 2017.07.05 23:01 - 
>>> LuaTeX 1.05.0 on the Mac.
>>> Whereas I noticed that -the switches -synctex=context or --synctex=zipped 
>>> have completely stopped working with that Beta (or that luatex version).
>> 
>> i'll have to upload a new beta ... last week i optimized the code a bit so 
>> performance is now a bit better too; there are some options you can play 
>> with to see what happens deep down
>> 
>> % \setupsynctex[state=start,method=min]
>> % \setupsynctex[state=start,method=max]
>> % \enabletrackers[system.synctex.visualize]
>> % \enabletrackers[system.synctex.visualize=real]
>> 
>> indeed, we now have a context specific variant only (you can still force the 
>> original synctex by setting \normalsynctex but it can interfere with the 
>> context variant when set)
> 
> 
> I think I have found a problem with the new synctex:
> 
> Synctex works perfectly fine – until the first occurence of a \readfile. From 
> that point on it always takes me to the imported file, no matter whether the 
> text actually is in the imported file or in the main file.
> 
> Here is a MWE:
> 
> \setupsynctex[state=start,method=max]
> \starttext
> This line is found by the new synctex.\crlf
> This line is found by the new synctex.\crlf
> This line is found by the new synctex.\crlf
> This line is found by the new synctex.\crlf
> \readfile{myInputfile}{}{}
> This line is {\em not} found by the new synctex.\crlf
> Instead, synctex takes me to myInputfile.tex.\crlf
> This line is {\em not} found by the new synctex.\crlf
> Instead, synctex takes me to myInputfile.tex.\crlf
> \stoptext
> 
> ['myInputfile.tex' can contain any text, it doesn't matter.]
> 
> If I click one of the first four lines in the PDF synctex works fine. The 
> lines after the \readfile don't work: Synctex takes me to the end of 
> myInputfile.tex. (You can also import 'ward' or 'knuth', in that case synctex 
> takes me to the last line _before_ the \readfile.)

With 2017.07.17 00:20 the issue seems to persist.

Tom


> 
> I tested the sample with an older Ctx and with --synctex=zipped, and it 
> doesn't show the problem.
> 
> -- 
> Tom
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <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] synctex

2017-07-11 Thread Thomas Floeren

> On 11. Jul 2017, at 17:09, Hans Hagen  wrote:
> 
> On 7/11/2017 4:36 PM, Thomas Floeren wrote:
>>> On 4. Jun 2017, at 18:55, Hans Hagen  wrote:
>>> 
>>> Hi,
>>> 
>>> For those using synctex, an alternative method is:
>>> 
>>> \setupsynctex[state=start]
>>> 
>>> It is tuned for use in a more complex setup where one wants access to 
>>> source files (with content) and not to e.g. styles in a tex tree. It also 
>>> works reasonable well with (also included) xml files. Personally I never 
>>> use synctex but for some projects it came in handy for authors (think of 
>>> proofing xml files with hundreds of nested inclusions and files in a rather 
>>> branched tree.) Of course you can expect a similar performance hit as 
>>> normal synctex but commenting the above line in production results in zero 
>>> overhead. Using the syntex flag on the command line (--synctex=context will 
>>> work) can be messy.
>>> 
>>> This currently only works with the windows binaries version on the garden 
>>> (as we need luatex 1.0.5).
>> Hans, thanks for that info.
>> \setupsynctex[state=start] seems to work fine with Beta 2017.07.05 23:01 - 
>> LuaTeX 1.05.0 on the Mac.
>> Whereas I noticed that -the switches -synctex=context or --synctex=zipped 
>> have completely stopped working with that Beta (or that luatex version).
> 
> i'll have to upload a new beta ... last week i optimized the code a bit so 
> performance is now a bit better too; there are some options you can play with 
> to see what happens deep down
> 
> % \setupsynctex[state=start,method=min]
> % \setupsynctex[state=start,method=max]
> % \enabletrackers[system.synctex.visualize]
> % \enabletrackers[system.synctex.visualize=real]
> 
> indeed, we now have a context specific variant only (you can still force the 
> original synctex by setting \normalsynctex but it can interfere with the 
> context variant when set)


I think I have found a problem with the new synctex:

Synctex works perfectly fine – until the first occurence of a \readfile. From 
that point on it always takes me to the imported file, no matter whether the 
text actually is in the imported file or in the main file.

Here is a MWE:

\setupsynctex[state=start,method=max]
\starttext
This line is found by the new synctex.\crlf
This line is found by the new synctex.\crlf
This line is found by the new synctex.\crlf
This line is found by the new synctex.\crlf
\readfile{myInputfile}{}{}
This line is {\em not} found by the new synctex.\crlf
Instead, synctex takes me to myInputfile.tex.\crlf
This line is {\em not} found by the new synctex.\crlf
Instead, synctex takes me to myInputfile.tex.\crlf
\stoptext

['myInputfile.tex' can contain any text, it doesn't matter.]

If I click one of the first four lines in the PDF synctex works fine. The lines 
after the \readfile don't work: Synctex takes me to the end of myInputfile.tex. 
(You can also import 'ward' or 'knuth', in that case synctex takes me to the 
last line _before_ the \readfile.)

I tested the sample with an older Ctx and with --synctex=zipped, and it doesn't 
show the problem.

-- 
Tom___
If your question is of interest to others as well, please add an 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] synctex

2017-07-11 Thread Thomas Floeren

> On 4. Jun 2017, at 18:55, Hans Hagen  wrote:
> 
> Hi,
> 
> For those using synctex, an alternative method is:
> 
> \setupsynctex[state=start]
> 
> It is tuned for use in a more complex setup where one wants access to source 
> files (with content) and not to e.g. styles in a tex tree. It also works 
> reasonable well with (also included) xml files. Personally I never use 
> synctex but for some projects it came in handy for authors (think of proofing 
> xml files with hundreds of nested inclusions and files in a rather branched 
> tree.) Of course you can expect a similar performance hit as normal synctex 
> but commenting the above line in production results in zero overhead. Using 
> the syntex flag on the command line (--synctex=context will work) can be 
> messy.
> 
> This currently only works with the windows binaries version on the garden (as 
> we need luatex 1.0.5).

Hans, thanks for that info.

\setupsynctex[state=start] seems to work fine with Beta 2017.07.05 23:01 - 
LuaTeX 1.05.0 on the Mac.

Whereas I noticed that -the switches -synctex=context or --synctex=zipped have 
completely stopped working with that Beta (or that luatex version).

It throws errors like this on every file I've tested:

lua error   > lua error on line 33 in file ../c-000-s3-e6-front-de.tex:

...eta/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:490: attempt to 
call upvalue 'collect' (a nil value)
stack traceback:
...eta/tex/texmf-context/tex/context/base/mkiv/node-syn.lua:490: in 
function 'luatex_synctex_collect'
[string "local nodes_references_handler = nodes.refere..."]:14: in 
function <[string "local nodes_references_handler = nodes.refere..."]:7>
(...tail calls...)
...eta/tex/texmf-context/tex/context/base/mkiv/pack-obj.lua:129: in 
function <...eta/tex/texmf-context/tex/context/base/mkiv/pack-obj.lua:127>
(...tail calls...)


So, I guess it is safe to assume that the synctex command line switch is 
finally deprecated?

-- 
Tom
___
If your question is of interest to others as well, please add an 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] setupitemgroup and 'command='

2017-05-24 Thread Thomas Floeren
Hans, thanks for your swift reply…



> On 24. May 2017, at 19:31, Hans Hagen  wrote:
> 
> On 5/24/2017 6:28 PM, Thomas Floeren wrote:
>> Hi,
>> I used to use the “command=” parameter when setting up itemize. Now I 
>> noticed that it introduces a spurious horizontal whitespace after the item 
>> symbol when the item is of type “\sym{}”.
>> I also noticed that the problem goes away if I use “inner=” instead of 
>> “command=”.
> 
> command is applied to the text, try command=\WORD and after \sym is a space 
> so it depends on what command does with it


I see, \WORD does not introduce the whitespace. But I don’t understand why 
\setupwhitespace[none] should do anything with the space after \sym, what \WORD 
doesn’t do.


> 
>> Example:
>> \setuppapersize [A6]
>> \starttext
>> \start
>> \setupitemize [each][command={\setupwhitespace[none]}]
>> With \type{\command=}
>> \startitemize
>> \item \dorecurse{20}{bla }
>> \sym{Y} \dorecurse{20}{bla }
>> \stopitemize
>> \stop
>> \setupitemize [each][inner={\setupwhitespace[none]}]
>> With \type{\inner=}
>> \startitemize
>> \item \dorecurse{20}{bla }
>> \sym{Y} \dorecurse{20}{bla }
>> \stopitemize
>> \stoptext
>> This is with ConTeXt 2017.05.15 21:48. With an older ConTeXt, for example 
>> 2015.01.13 15:54, “inner=” and “command=” deliver identical, correct results.
>> So, I’m asking, has “command=” been deprecated or is it just a bug?
>> Or was I using it the wrong way, and “inner=” is the only correct parameter 
>> in the example above?
> \setupitemize [each][nowhite]


Tried that, but it does not the same as \setupwhitespace[none]. (It completely 
annihilates any whitespace.)

Compile this to see what I mean:



\definepapersize[Tmp][width=120mm,height=400mm]
\setuppapersize [Tmp]
\setupwhitespace[2\lineheight]

\startbuffer
bla, bla\crlf bla, bla 
\stopbuffer

\starttext

Normal text:

\getbuffer\par
\getbuffer

Itemize, unmodified:
\startitemize 
\item \getbuffer 
\sym{Y} \getbuffer 
\stopitemize

\start
\setupitemize [each][command={\setupwhitespace[none]}]
Itemize with \type{command={\setupwhitespace[none]}}:
\startitemize 
\item \getbuffer 
\sym{Y} \getbuffer 
\stopitemize
\stop

\start
\setupitemize [each][inner={\setupwhitespace[none]}]
Itemize with \type{inner={\setupwhitespace[none]}}:
\startitemize 
\item \getbuffer 
\sym{Y} \getbuffer 
\stopitemize
\stop

\start
\setupitemize [each][nowhite]
Itemize with \type{nowhite}:
\startitemize 
\item \getbuffer 
\sym{Y} \getbuffer 
\stopitemize
\stop

\stoptext


So it seems the only ways to get the desired result are either 
inner={\setupwhitespace[none]} or command={\setupwhitespace[none]}, where the 
first one seems to work correctly and the latter one introduces the whitespace 
with recent Betas. (well, recent = younger than 2 years or so)

Should I change all my existing documents to “inner”?


Thanks,
best,

– Tom

-- 
For macOS:  
http://dflect.net/context-typeset-tool/
___
If your question is of interest to others as well, please add an 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] setupitemgroup and 'command='

2017-05-24 Thread Thomas Floeren
Hi,


I used to use the “command=” parameter when setting up itemize. Now I noticed 
that it introduces a spurious horizontal whitespace after the item symbol when 
the item is of type “\sym{}”.

I also noticed that the problem goes away if I use “inner=” instead of 
“command=”.


Example:

\setuppapersize [A6] 

\starttext
\start
\setupitemize [each][command={\setupwhitespace[none]}]
With \type{\command=}
\startitemize 
\item \dorecurse{20}{bla } 
\sym{Y} \dorecurse{20}{bla } 
\stopitemize
\stop

\setupitemize [each][inner={\setupwhitespace[none]}]
With \type{\inner=}
\startitemize 
\item \dorecurse{20}{bla } 
\sym{Y} \dorecurse{20}{bla } 
\stopitemize

\stoptext


This is with ConTeXt 2017.05.15 21:48. With an older ConTeXt, for example 
2015.01.13 15:54, “inner=” and “command=” deliver identical, correct results.

So, I’m asking, has “command=” been deprecated or is it just a bug?

Or was I using it the wrong way, and “inner=” is the only correct parameter in 
the example above?

Thanks for any info,
Best wishes,

– Tom


-- 
For macOS:
http://dflect.net/context-typeset-tool/


___
If your question is of interest to others as well, please add an 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 with en and em dashes

2017-05-11 Thread Thomas Floeren
> On 9. May 2017, at 21:10, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> using latest beta from 2017.05.09 10:14 with the following sample:
> 
>\starttext
>\startTEXpage[offset=1em]
>-- ---
> 
>– —
>\stopTEXpage
>\stoptext
> 
> I get as result:
> 
>-- 
>-- 
> 
> Ligatures aren’t converted and even real en and em dashes are converted
> to hyphens.
> 
> Could anyone confirm the issue?



Works as expected here, with ConTeXt 2017.05.10 10:41

Best,
Tom


> 
> Many thanks for your help,
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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

Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2016-03-23 Thread Thomas Floeren
Hi,

A small fix for the Typeset Tool:

1.2.5 (64) / 2016-03-22
Notifications now working on El Capitan (10.11).

http://dflect.net/context-typeset-tool/ 



Best,

-- 
Tom

___
If your question is of interest to others as well, please add an 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] BBEdit Language Module for ConTeXt

2015-06-16 Thread Thomas Floeren

> On 16 Jun 2015, at 15:04, Paul Mazaitis  wrote:
> 
> I've been working on a BBEdit language module to support editing ConTeXt 
> files:
> 
>   https://github.com/pmazaitis/ConTeXtBBLM
> 
> ...with binary releases here:
> 
>   https://github.com/pmazaitis/ConTeXtBBLM/releases
> 
> If there are other BBEdit users here with interest, I'd appreciate feedback. 
> Notes on feature gaps (math?), outright bugs, improvements, and/or fiddly 
> details are all welcome.


Hi,

thanks a lot for sharing your module. I was using my own CLM for ConTeXt, but 
probably I’ll switch to yours now :-)

(I especially love the addition of the "callouts" (TODO, etc.) to the 
functions/sections menu!)


Some quick observations/suggestions/thoughts:


## Key/value options [] and content arguments {}

The highlighting is broken when there is a space between the command word and 
the [bracketed options] {or arguments}; unfortunately that’s the way I use to 
write it ;-)

It breaks also when there are line breaks involved, which is often the case 
when you write longer, "vertical" definitions, for example

\setupitemgroup [Legtext] [each]
[stopper=,
before={\setupwhitespace[none]\blank[small]},
style=\bf,
inbetween={\blank[small]},
after={\blank[medium]},
width=1.8em, 
…]


## Command words

\,\;\: : In things like "3000\,mm" the whole "\,mm" gets highlighted. [This may 
ne a legacy problem, as I should better use directly an appropriate Unicode 
space.]

Highlighting should probably not include chars like "()|": For example in 
"\starttabulate [|lw(.65\textwidth)|rw(.25\textwidth)|]" the whole 
"\textwidth)|rw(.25\textwidth)|" part gets command-highlighted.


## Default highlight colors

After installation the default highlight colors were all set to black, except 
for comments. (BBEdit 11.1.2 (3733).)
(Though this might be as well a BBEdit problem, since they are still fighting 
highlighting bugs that have been introduced with the color scheme changes of 
vs. 11)


## Commands / keywords

It’s interesting that you are offering both Command words (via pattern) and 
Keywords (custom list). In ConTeXt I always thought of them as the same. I’ll 
surely find a nice use for that :-)


Thanks again,
best,

-- 
Tom







___
If your question is of interest to others as well, please add an 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] Upgraded to 2015.05.18 12:26 and now unicode is broken

2015-06-01 Thread Thomas Floeren

> On 2 Jun 2015, at 1:25, david.boerschl...@juno.com wrote:
> 
> And now Unicode is broken:
> tex error   > error on line 5 in file 
> /tmp/OBS-am-v20150522-draft-samples-DPB.tex: ! Undefined control sequence
> 
> l.5 \useregime
>[utf]


It seems that enabling utf is no longer needed:

http://www.mail-archive.com/ntg-context%40ntg.nl/msg77849.html
http://www.mail-archive.com/ntg-context%40ntg.nl/msg78594.html
http://www.mail-archive.com/ntg-context%40ntg.nl/msg76027.html

-- 
Tom




___
If your question is of interest to others as well, please add an 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] backgroundscreen no longer working

2015-05-19 Thread Thomas Floeren

> On 19 May 2015, at 18:14, Hans Hagen  wrote:
> 
> (btw, there were gone in the betas for a while so it's not that sudden.)

Well, it still worked until 8 April ;-)

I had the backgroundscreen in an environment file which is about 8 years old …

-- 
Tom




___
If your question is of interest to others as well, please add an 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] backgroundscreen no longer working

2015-05-19 Thread Thomas Floeren

> On 19 May 2015, at 18:03, Hans Hagen  wrote:
> 
> it's definitely and on purpose gone .. i kept it for a few years but not it's 
> really gone in mkiv


Ah, OK. Thanks. I wasn’t aware.
___
If your question is of interest to others as well, please add an 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] backgroundscreen no longer working

2015-05-19 Thread Thomas Floeren

> On 19 May 2015, at 15:43, Thomas Floeren  wrote:
> 
> If I use the pack-rul.mkiv from 2015-04-08 it works again.

More precisely: If I uncomment the 2 definitions 
`\pack_framed_background_box_gray` and 
`\pack_framed_background_box_gray_indeed` it works again.

-- 
Tom




___
If your question is of interest to others as well, please add an 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] backgroundscreen no longer working

2015-05-19 Thread Thomas Floeren
Hi,

backgroundscreen is no longer working here, apparently since the beta 
2015-04-12.

\starttext
% \setupbackgrounds [page] [background=color,backgroundcolor=lightgray]
\setupbackgrounds [page] [background=screen,backgroundscreen=.8]
\input knuth
\stoptext


If I use the pack-rul.mkiv from 2015-04-08 it works again.

Is it deprecated now, or is this just a bug?

Thanks.

-- 
Tom




___
If your question is of interest to others as well, please add an 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] DejaVu 2.35

2015-05-17 Thread Thomas Floeren
As a side note: There’s a new release of DejaVu.

-- 
Tom


> Hi everyone,
> 
> It's long overdue, but it has finally arrived: we present to you the 2.35 
> release!
> 
> 
> For the changelog, check http://dejavu-fonts.org/wiki/Changelog
> 
> Packages are available on SourceForge. For links check
> http://dejavu-fonts.org/wiki/Download
> 
> 
> To our contributers: we aren't opening SVN yet, as we will move the code to 
> github (which will hopefully be a smooth transition and finished later 
> today). 
> More details about will follow.
> 
> Greetings
> Ben
___
If your question is of interest to others as well, please add an 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] No hyphenation in Bulgarian

2015-05-03 Thread Thomas Floeren

> On 03 May 15, at 21:09, Hans Hagen  wrote:
> 
> On 5/3/2015 6:58 PM, Thomas Floeren wrote:
>>> Do I have to do anything special, in addition to \mainlanguage [bg] ?
>> 
>> In reply to my own question:
>> 
>> It seems I must add
>> 
>> \installlanguage
>> [bg]
>> [lefthyphenmin=2,
>> righthyphenmin=2,
>> patterns=bg,
>> …
>> …]
>> 
> 
> so what is the complete bulgarian setup then?
> 

I guess you are asking for the complete *and correct* setup?

So, I don’t know, I have no clue of Bulgarian; for the moment I’m using the 
settings from the other cyrillic languages (ru, uk) in lang-def.mkiv

\installlanguage
[bg]
[lefthyphenmin=2,
righthyphenmin=2,
patterns=bg,
spacing=packed,
leftsentence=\leftguillemot,
rightsentence=\rightguillemot,
leftsubsentence=\lowerleftdoubleninequote,
rightsubsentence=\upperrightdoubleninequote,
leftquote=\lowerleftdoubleninequote,
rightquote=\upperrightdoubleninequote,
leftquotation=\leftguillemot,
rightquotation=\rightguillemot,
date={day,\space,month,\space,year}]

I needed hyphenation in order to typeset the first revision of a translated 
book. I have to wait for feedback from the translator to tell if these settings 
are OK for bg.

-- 
Tom





___
If your question is of interest to others as well, please add an 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] No hyphenation in Bulgarian

2015-05-03 Thread Thomas Floeren
> Do I have to do anything special, in addition to \mainlanguage [bg] ?

In reply to my own question: 

It seems I must add

\installlanguage
[bg]
[lefthyphenmin=2,
righthyphenmin=2,
patterns=bg,
…
…]

-- 
Tom




> On 03 May 15, at 08:27, Thomas Floeren  wrote:
> 
> Hi,
> 
> I have to typeset a Bulgarian document but the hyphenation doesn’t work. The 
> lang-bg.lua file is not loaded, according to the log. (All four lang-bg files 
> are present in /tex/texmf-context/tex/context/patterns/)
> 
> \usetypescriptfile[type-gentium]
> \usetypescript[gentium]
> \setupbodyfont[gentium,12pt]
> \mainlanguage [bg]
> \starttext
> \hyphenatedword{програмираната}
> \stoptext
> 
> 
> Do I have to do anything special, in addition to \mainlanguage [bg] ?
> 
> Russian hyphenation does work.
> 
> Thanks for any advice.
> 
> -- 
> Tom
> 
> 
> ___
> If your question is of interest to others as well, please add an 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] No hyphenation in Bulgarian

2015-05-02 Thread Thomas Floeren
Hi,

I have to typeset a Bulgarian document but the hyphenation doesn’t work. The 
lang-bg.lua file is not loaded, according to the log. (All four lang-bg files 
are present in /tex/texmf-context/tex/context/patterns/)

\usetypescriptfile[type-gentium]
\usetypescript[gentium]
\setupbodyfont[gentium,12pt]
\mainlanguage [bg]
\starttext
\hyphenatedword{програмираната}
\stoptext


Do I have to do anything special, in addition to \mainlanguage [bg] ?

Russian hyphenation does work.

Thanks for any advice.

-- 
Tom


___
If your question is of interest to others as well, please add an 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] Synonyms’ \infull doesn’t work anymore

2015-05-01 Thread Thomas Floeren

> On 01 May 15, at 11:47, Wolfgang Schuster  wrote:
> 
> 
>> Am 01.05.2015 um 04:11 schrieb Thomas Floeren :
>> 
>> Hi,
>> 
>> starting with the Beta from 16 April I have a problem with synonyms. The 
>> \infull part doesn’t work anymore.
>> 
>> Example:
>> 
>> ```
>> \definesynonyms [Tea] [Teas] [\fullTea]
>> \setupsynonyms  [Tea] [synonymstyle=italic]
>> \Tea [tFop] {FOP} {Flowery Orange Pekoe}
>> 
>> \starttext
>> \tFop\ is ‘\fullTea{tFop}’.
>> \stoptext
>> 
>> ```
>> 
>> I can make it work again with some hackery in the strc-syn.mkiv file: If I 
>> copy back the line
>> `\simplelistparameter\c!textcommand{\clf_synonymmeaning{#1}{#2}}%` (e.g. 
>> from the Beta 14 April) into the `strc_synonyms_insert_meaning` definition 
>> (at line ~338) it works again.
> 
> 
> You have to change the definition for the \strc_synonyms_insert_meaning 
> command.
> 
> \unexpanded\def\strc_synonyms_insert_meaning#1#2% name tag
>  {\begingroup
>   \def\currentsimplelist{#1}%
> +  \def\currentsynonymtag{#2}%
> +  \fastsetup{\??simplelistrenderings::\v!text}%
> -  \fastsetup{\??simplelistrenderings:\v!text}%
>   \endgroup}
> 

Ah, thank you!

I was close … more or less ;-)

-- 
Tom





___
If your question is of interest to others as well, please add an 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] Synonyms’ \infull doesn’t work anymore

2015-04-30 Thread Thomas Floeren
Hi,

starting with the Beta from 16 April I have a problem with synonyms. The 
\infull part doesn’t work anymore.

Example:

```
\definesynonyms [Tea] [Teas] [\fullTea]
\setupsynonyms  [Tea] [synonymstyle=italic]
\Tea [tFop] {FOP} {Flowery Orange Pekoe}

\starttext
\tFop\ is ‘\fullTea{tFop}’.
\stoptext

```

I can make it work again with some hackery in the strc-syn.mkiv file: If I copy 
back the line
`\simplelistparameter\c!textcommand{\clf_synonymmeaning{#1}{#2}}%` (e.g. from 
the Beta 14 April) into the `strc_synonyms_insert_meaning` definition (at line 
~338) it works again.

Thanks for help.

Best,


-- 
Tom





___
If your question is of interest to others as well, please add an 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] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2015-04-08 Thread Thomas Floeren

Updated (1.2.4)




Changes:

1.2.4 (61) (2015-04-09)

Added the option to enforce SyncTeX via command switch 
`--synctex=zipped`. This will work also where `\enabledirectives 
[system.synctex]` doesn’t work, for example in standalone tex 
documents without components or other input files.


Changed the “typesetting started”-notification emoji from U+231A 
U+FE0F to U+2615 U+FE0F. (Thank you, Apple, for having converted the 
formerly nice Watch emoji into a blemished Apple Watch emoji that 
resembles a piece of coal in 12pt.)


For semantic coherence changed the “typesetting finished” emoji from 
U+1F3C1 to U+1F37A ;-)


Manual: Added note on auto syntax check in Product Mode.

--
Thomas


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

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

Re: [NTG-context] text alignment in table

2015-04-07 Thread Thomas Floeren
On 7 Apr 2015, at 17:40, John Culleton wrote:

> Given this table:
> \starttabulate[|l|l]
> \NC 8:00\emdash noon \NC Ordering/opening/training\NR
> \NC \NC Food~preparation\NC\NR
> \NC Noon\emdash 2:00 PM \NC Luncheon~sales\NR
> \NC 2:00 PM\emdash 7:00 PM \NC General administration/baking \NR
> \NC \NC Supplier meeting (this is you) \NC\NR
> \stoptabulate
> 
> the Word "Food" is left justified in the
> column (good) and the word "preparation"
> is right justified (bad). The same problem occurs
> in the string "Luncheon sales." The glyph "~"
> doesn't help.
>

A missing `|`

\starttabulate[|l|l|]

-- 
Thomas


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

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

Re: [NTG-context] SyncTeX and mkiv

2015-04-07 Thread Thomas Floeren

On 7 Apr 2015, at 10:32, Mojca Miklavec wrote:


Hi,

SyncTeX usually works for me, but I need to use
 context --synctex ...
(I don't know if --synctex=1 is supposed to work in ConTeX. I believe
that Hans changed the syntax.)

Enabling it inside the document doesn't work for me for some reason.
Hans suggested to put the command inside the first line (modeline or
however that one is called).

But "context --synctex filename.tex" generally works.



Yes, this is strange. `\enabledirectives [system.synctex]` works for me 
*if* it’s in the product file (no `--synctex` switch needed). It even 
works if it is not in the first line, for example:


Product file:

\startproduct pd-test
\enabledirectives [system.synctex]
\component 01-intro
\stopproduct

Component:

\startcomponent 01-intro
Hi there, can you show me this sentence in the source file?
\stopcomponent


But, indeed, it doesn’t work with single-file documents.

--
Thomas


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

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

Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2015-03-30 Thread Thomas Floeren
On 30 Mar 2015, at 1:36, John Haltiwanger wrote:

> Impressive work!
>

The script has slightly grown in size over time ;-)


-- 
Thomas


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

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

Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2015-03-29 Thread Thomas Floeren

Updated (1.2.3).




Changes:

1.2.3 (60) (2015-03-29)

Added update switch --modules=all.
Removed the update switch --keep.
When updating ConTeXt first-setup.sh will get updated, too.

1.2.3 (58) (2015-03-28)

Added to the GUI (Tools section): Possibility to quickly remap ConTeXt 
directories to the “Beta”/“Current” slots. This should be useful 
if you are switching between more than two ConTeXt installations, for 
example an old Current, an older (but working) Beta and the latest Beta 
from last night. (Formerly you had to rename the ConTeXt folder on disk 
in order to force the script to prompt for new locations.)

Slightly changed wording in main window.
Updated and extended the manual.


best,

--
Tom
___
If your question is of interest to others as well, please add an 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] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2015-03-23 Thread Thomas Floeren
Updated (1.2.2).




best,
-- 
Tom



___
If your question is of interest to others as well, please add an 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] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2015-01-17 Thread Thomas Floeren

On 17 Jul 2014, at 2:19, Thomas Floeren wrote:


Hello,

Some months ago I wrote a little AppleScript script with one purpose: 
It should be a flexible script to launch ConTeXt typesetting, 
independently of the text editor I’m using and it should be capable 
to typeset the Product file even if I’m currently editing any 
component file belonging to that Product file.


I used it for some time, I improved it, and I shared it with a 
collegue who also works with ConText on OSX. We’re still using it, 
many bugs have been fixed and some features were added.


The script proved to be very useful for us and I thought, why not 
share it with the other Mac-ConTeXt people?



So here it is: …
…



The old link won’t work anymore, the script has a new home: 
http://dflect.net/context-typeset-tool/


Of course it works fine with Yosemite :-)

Best wishes
--
Thomas

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

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

Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2014-07-17 Thread Thomas Floeren


On 17 Jul 2014, at 22:47, Otared Kavian  wrote:

> Hi Thomas,
> 
> Thanks for sharing your nice script. You have had a very nice intitiative and 
> I am sure it is going to be very useful for many people.
> 
> I did some testing of the script, after having edited some parametrers inside 
> the script. For your information, I am running Mac OS X 10.9.4 on a Mac Book 
> Pro.
> As a first feedback, I should say that I didn’t know how to create a « 
> service » with an Applescript (shame on me…). Finally I found an application 
> named FastScript which allows to create a shortcut for any Applescript, and 
> then I could run your script on a TeX file. Maybe one could add some 
> indications as to how create a « service » with your script.
> 
> Strangely the script gives the expected result the first time it is run on a 
> file from within an application such as TeXShop or Smultron, but the second 
> time I call the script, I get a notification saying that something i sgoing 
> on, but then no PDF is created nor a log file. 
> 
> However the update part works fine and it is very handy: maybe this part 
> could be made into a small application with XCode, like the application 
> written by Gerben Wierda in order to install a TeX tree some 10 or 15 years 
> ago. 
> 
> I’ll do some more testing and then let you know.
> 
> Thanks again: OK
> 

Hi,

thanks for your feedback!

> after having edited some parametrers inside the script.

Basically there should be no need to edit parameters in the script to make it 
run (except rare cases like strange ctx install locations). The script for 
example is (or should be) capable to find the "setuptex" files of your Ctx 
Minimals automatically on first launch. Most other parameters are configurable 
from the main options screen, that appears when you launch the script with the 
ctrl-key down. What was it that you had to edit in the script?

> I am running Mac OS X 10.9.4

That should be fine. Same version here.

> I didn’t know how to create a « service » with an Applescript

No need to do this. In the Extras folder you'll find some premade service 
workflows to launch the script. In the description I tried to explain how to 
install the services and how to assign hotkeys ("Installation for usage with 
hotkey and modifier keys" > "Service workflows"). Did you see this?

The current version of the script has a rather long delay of 0.6 seconds, that 
means it isn't even necessary to install a service for each modifier key 
combination. You can launch the script with just your standard hotkey and then 
(up to 0.6s afterwards) hold down the desired modifier key, if needed. For 
example you launch the script with cmd-F7 and then you quickly hold down ctrl 
in order to open the main options screen.

> I get a notification saying that something i sgoing on, but then no PDF is 
> created nor a log file.

What does the notification say? 

You can try to pass the typesetting to the terminal (by default is is executed 
in the non-interactive (non visible) shell). To do this you can either mark the 
setting in the main options screen ("Run Typesetting in Terminal") or hold down 
opt-shift while (or quickly after) launching the script. Maybe this way it 
becomes more obvious what is going wrong.

> However the update part works fine and it is very handy: maybe this part 
> could be made into a small application with Xcode

Well, this is one of the easier parts of the script. It would probably be 
overkill to rewrite this as Cocoa app, especially because it won't benefit from 
being native (the time-consuming processes in that part are archiving, download 
and making formats). However, I just started learning Swift, so maybe it would 
be a good exercise ;-)

Best wishes

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

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


Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2014-07-17 Thread Thomas Floeren

On 17 Jul 2014, at 11:25, Hans Hagen  wrote:

> 
> A nice initiative. Can you put the description online too? So that non osx 
> users can get the extended description too? Maybe the dmg file can be put on 
> the garden in /context/data/osx or so?
> 
> If you need more functionality (in e.g. mtxrun or context) to make things 
> easier, don't hesitate to ask for it.
> 
> Hans
> 

Thanks for the feedback. The description is online now, outside of the dmg 
(same dl link).


Of course we can put the file on the garden. But I’m not familiar at all with 
the structure of the context garden wiki. Can you give me a hint how to do it? 

I don’t know if there are many OSX users interested in the script, but 
considering the fact that the script has only been used/tested by two people 
until now, I’m expecting that each additional user will uncover a bagful of 
bugs. So there should be a quick and easy way to submit fixes…

Thomas

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

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


[NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2014-07-16 Thread Thomas Floeren
Hello,

Some months ago I wrote a little AppleScript script with one purpose: It should 
be a flexible script to launch ConTeXt typesetting, independently of the text 
editor I’m using and it should be capable to typeset the Product file even if 
I’m currently editing any component file belonging to that Product file.

I used it for some time, I improved it, and I shared it with a collegue who 
also works with ConText on OSX. We’re still using it, many bugs have been fixed 
and some features were added.

The script proved to be very useful for us and I thought, why not share it with 
the other Mac-ConTeXt people?


So here it is:

https://www.wuala.com/tflo/Scripts/Ctx%20Typeset/?key=75QkpizhdpFS


As already said, the main purpose of the script is to launch the Ctx 
typesetting process (short: Ctx) on a file.

Regarding the “a file” the script is very configurable and flexible:

A) It can launch Ctx on a file currently opened in your text editor. It works 
with many text editors (BBEdit, MacVim, TextMate, etc.) as long as the editor 
is the frontmost process.

B) It can launch Ctx on the parent Product file of the component file currently 
being edited. Defining a “Product file” can either be done semi-automatically 
or by hard-definition with two swappable register slots.

C) If no eligible file is opend in an editor it will launch Ctx on the 
currently selected tex file in the Finder.


The options added in the course of time are:

A) Usage of a ConTeXt-Beta or a ConTeXt-Current installation, swappable
B) Typesetting in the non-interactive shell or in the visible terminal
C) Notifications
D) Selection of PDF viewer (Skim, Preview, Adobe, …)
E) Automatically calling the PDF viewer or not
F) Optionally excluding generated PDFs from TM backup
G) luatex or luajitex
H) Beeps or no beeps, and so on
I) Many other things, explained in the Description

Also some features (“Tools”) have been added:

A) Purging files including generated PDFs
B) Info on the used Ctx version
C) Updating the Ctx Minimal (Beta or/and Current) and archiving the old one
D) Syntax Check
E) Make formats, listing fonts, other, …
F) Some extras added in the Extras folder (synctex with BBEdit etc.)
G) Much more in the Description


Some caveats:

A) It works only on OS X

B) The script is designed to work with 10.9 (Mavericks). It should also work 
with 10.8 (old notification via 3rdParty is still implemented).

C) Out of the box it works only with the so called “ConTeXt Minimal 
Installation” (aka ConTeXt Standalone). It won’t work with TeXLive 
installations or any other kind of excessively screwed-up installations. But 
you can go into the script to make it work with anything.

D) In order to get access to any text editor the script makes use of GUI 
scripting: you have to liberate the rights in the corresponding OS preferences. 
This may sound risky to you but the code is open so you can assure yourself of 
what the script does.

E) You have to (and you really should!) read the Description that comes with 
the script.

If you are enjoing the script please share it here, if the script is buggy, or 
doesn’t work for you at all please let me know too, please.

Thank you
best wishes

--
Thomas









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

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


Re: [NTG-context] Columns and clubpenalty problem

2014-03-07 Thread Thomas Floeren

On 04.02.2014, at 14:52, Thomas Floeren  wrote:

> Hi,
> 
> with the recent Betas, and the Current, I have a problem with columns and 
> clubpenalty. In the following minimal the long item (item 1) will introduce 
> a column break (instead of a simple line break):
> 
> \def \defaultclubpenalty{\plustenthousand}
> 
> \starttext
> \startitemize [columns]
> \item This is just a long line and should stay in the left column. 
> \dorecurse{10}{\item bla bla bla}
> \stopitemize
> \stoptext
> 
> Older ConTeXt versions work as expected (no column break in item 1), for 
> example 
> Beta 2013.11.13 12:28 or Current 2013.05.28 00:36.
> 
> 

Thank you, Hans. It’s fine now, with the new Beta from today :-)


Best wishes
Thomas


ConTeXt 2014.03.07 11:42; LuaTeX beta-0.78.2 (TeX Live 2014/dev) (rev 4746)

___
If your question is of interest to others as well, please add an 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] Columns and clubpenalty problem

2014-02-28 Thread Thomas Floeren
> Hi all,
> 
> I've the same problem, w/o solution.
> An alternative is a double line brake, but it's not a durable solution…
> 
> Pierre Bovet
> 
> Le 4 févr. 2014 à 14:52, Thomas Floeren  a écrit :
> 

Sorry for bumping, but the bug is still there in the current Beta (2014.02.14 
17:07).

Or, is it not a bug, and I’m doing something wrong?
In that case any hint is appreciated.

Thank you
-- 
Thomas




On 17.02.2014, at 15:48, Pierre Bovet  wrote:

> Hi all,
> 
> I've the same problem, w/o solution.
> An alternative is a double line brake, but it's not a durable solution…
> 
> Pierre Bovet
> 
> Le 4 févr. 2014 à 14:52, Thomas Floeren  a écrit :
> 
>> Hi,
>> 
>> with the recent Betas, and the Current, I have a problem with columns and 
>> clubpenalty. In the following minimal the long item (item 1) will introduce 
>> a column break (instead of a simple line break):
>> 
>> \def \defaultclubpenalty{\plustenthousand}
>> 
>> \starttext
>> \startitemize [columns]
>> \item This is just a long line and should stay in the left column. 
>> \dorecurse{10}{\item bla bla bla}
>> \stopitemize
>> \stoptext
>> 
>> Older ConTeXt versions work as expected (no column break in item 1), for 
>> example 
>> Beta 2013.11.13 12:28 or Current 2013.05.28 00:36.
>> 
>> 
>> Thomas Floeren
>> 
>> ___
>> If your question is of interest to others as well, please add an 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
___


[NTG-context] Columns and clubpenalty problem

2014-02-04 Thread Thomas Floeren
Hi,

with the recent Betas, and the Current, I have a problem with columns and 
clubpenalty. In the following minimal the long item (item 1) will introduce 
a column break (instead of a simple line break):

\def \defaultclubpenalty{\plustenthousand}

\starttext
\startitemize [columns]
\item This is just a long line and should stay in the left column. 
\dorecurse{10}{\item bla bla bla}
\stopitemize
\stoptext

Older ConTeXt versions work as expected (no column break in item 1), for 
example 
Beta 2013.11.13 12:28 or Current 2013.05.28 00:36.


Thomas Floeren

___
If your question is of interest to others as well, please add an 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] Too many open files

2011-01-24 Thread Thomas Floeren
Hi,

with the actual minimals and luatex on Mac OSX I get "pdfError: Couldn't open 
file  Too many open files" and then fatal error 70. 
With an older installation everything is ok, minimals on Windows are ok, too. 
The document has about 700 figures.

En detail:

Working: OSX: context 2010.10.14 13:14; luatex (64) beta-0.63.0-2010091123
Working: Win XP: context 2011.01.24 10:00; luatex (32) beta-0.65.0-2010121421
Not working: OSX: 2011.01.24 10:00; luatex (64/32) beta-0.65.0-2010121316

Is this a known problem? 

Thanks for any help.

Kind regards

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

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


Re: [NTG-context] \getscaledglyph

2011-01-21 Thread Thomas Floeren
> -Original Message-
> From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
> Behalf Of Hans Hagen
> Sent: Friday, January 21, 2011 9:50 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] \getscaledglyph
> 
> On 20-1-2011 11:25, Thomas Floeren wrote:
> > Thank you, Willi, I wasn't aware of this nice font module!
> > (btw, running it on ArialUnicode with 2 columns and 10pt produces 500
> PDF pages and a peak memory usage of 1.2 GB!).
> >
> > I like the idea of using glyph names rather than unicode numbers. For
> my actual purpose your suggestion works perfectly, with
> \fontchar{emptyset}.
> >
> > Beside this there are many glyphs with only "math names" (the rightmost
> column in the fnt-10 output). I couldn't make \fontchar work with these.
> For example the fore-mentioned char "2300 works with \fontchar{uni2300}
> but not with \fontchar{varnothing}.
> >
> > Is there a way to set these chars by their math name?
> 
> \varnothing
> 
> 

so simple ;)
Thank you


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

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


Re: [NTG-context] \getscaledglyph

2011-01-20 Thread Thomas Floeren
Thank you, Willi, I wasn't aware of this nice font module!
(btw, running it on ArialUnicode with 2 columns and 10pt produces 500 PDF pages 
and a peak memory usage of 1.2 GB!).

I like the idea of using glyph names rather than unicode numbers. For my actual 
purpose your suggestion works perfectly, with \fontchar{emptyset}. 

Beside this there are many glyphs with only "math names" (the rightmost column 
in the fnt-10 output). I couldn't make \fontchar work with these. For example 
the fore-mentioned char "2300 works with \fontchar{uni2300} but not with 
\fontchar{varnothing}.

Is there a way to set these chars by their math name?

Thomas


On Jan 20, 2011, at 16:37, Willi Egger wrote:

> Hi Thomas,
> 
> I had to do some work with regard to this issue recently.
> 
> What was mentioned on this list, is, that \fontchar is a command which will 
> stay.
> 
> \setupbodyfont[Myfont,rm,12pt]
> \definesymbol[Q.alt]  [\fontchar{Q.alt}]
> \def\Qa{\symbol[Q.alt]}
> 
> The easiest way to get a stable environment is to use the char-names from the 
> font. You can extract a table with all char-names with 
> 
> \usemodule[fnt-10]
> \setupbodyfont[Myfont,rm,12pt]
> \starttext
>   \ShowCompleteFont{Myfont.otf}{10pt}{1} % fontname, size,columns
>   % \ShowAllGlyphs   {Myfont}{48pt}{4} % fontname, size,columns  
> \stoptext
> 
> Kind regards
> 
> Willi
> On 20 Jan 2011, at 08:51, Thomas Floeren wrote:
> 
>> Hi,
>> 
>> I did a rather huge update step from my working context 2010.09.29 to the 
>> actual beta. I noted that \getscaledglyph doesn’t work anymore. 
>> 
>> I use it a lot for symbol insertions like this:
>> 
>> \definefontsynonym [ArialU] [name:ArialUnicodeMS]
>> \definesymbol [Diameter] [\getscaledglyph{1.5}{ArialU}{\char"2300}]
>> \def\Diam{\symbol[Diameter]}
>> 
>> \starttext
>> hello \Diam\ goodbye
>> \stoptext
>> 
>> 
>> ( \getglyph seems to work as usual: \definesymbol [Diameter] 
>> [\tfb\getglyph{ArialU}{\char"2300}] )
>> 
>> Should I better change my definitions or is it just a bug?
>> 
>> 
>> 
>> Thank you
>> & Greetings
>> Thomas
>> 
>> 
>> MTXrun | current version: 2011.01.18 19:34
>> This is LuaTeX, Version beta-0.65.0-2010121316
>> 
>> ___
>> If your question is of interest to others as well, please add an 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
___


[NTG-context] \getscaledglyph

2011-01-19 Thread Thomas Floeren
Hi,

I did a rather huge update step from my working context 2010.09.29 to the 
actual beta. I noted that \getscaledglyph doesn’t work anymore. 

I use it a lot for symbol insertions like this:

\definefontsynonym [ArialU] [name:ArialUnicodeMS]
\definesymbol [Diameter] [\getscaledglyph{1.5}{ArialU}{\char"2300}]
\def\Diam{\symbol[Diameter]}

\starttext
hello \Diam\ goodbye
\stoptext


( \getglyph seems to work as usual: \definesymbol [Diameter] 
[\tfb\getglyph{ArialU}{\char"2300}] )

Should I better change my definitions or is it just a bug?



Thank you
& Greetings
Thomas


MTXrun | current version: 2011.01.18 19:34
This is LuaTeX, Version beta-0.65.0-2010121316

___
If your question is of interest to others as well, please add an 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] sectionhead/sidefloat alignment [mkii/mkiv]

2010-06-18 Thread Thomas Floeren
Hi,

I have a couple of pages where I want to align the sidefloats with the 
sectiontitles. I can’t figure out how to do this properly.

Example:

\setupheads [aligntitle=float]
\setuphead [section]
[before={\blank[3*big]}]

\starttext

\chapter{Head}
\input knuth

\placefigure [right, none]{}
{\externalfigure[nana]}

\section{Head}
\input knuth

\stoptext

The vertical space before the section disappears completely.

(\startfloattext doesn’t work either as the text doesn’t wrap around the 
figure.)



The only workaround I found until now, is fiddling around with the sidefloat 
beforespace and dontleavehmode:

\setupheads [aligntitle=float]
\setupfloats [sidespacebefore=18mm]
\setuphead [section]
[before={\blank[3*big]}]

\starttext

\chapter {Head}

\input knuth


\placefigure [right, none]{}
{\externalfigure[nana]}

\dontleavehmode
\section{Head}

\input knuth
\stoptext


But I guess (hope) there is a much more proper solution around (?)

Thank you for any help/hints.

Thomas



ConTeXt  ver: 2010.06.17 12:01 MKIV  fmt: 2010.6.18  int: english/english
This is LuaTeX, Version beta-0.60.1-2010061318 (Web2C 2010) (rev 3720) 

___
If your question is of interest to others as well, please add an 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] Script to automatically generate typescripts

2010-06-07 Thread Thomas Floeren
Michael Murphy <> wrote on Thursday, June 03, 2010 6:52 PM:

> 
> Please send me bug reports / feature requests if you use it!



Thank you for this script. I'm sure I'll have good use of it!

I just did a quick test with Myriad Pro, and it works nicely.

Some minor suggestions for usability:

1. If there is no 'typescripts' directory, the typescript and test-file should
be created just in the same directory as the oftsmkr file (so it's easier to
use it anywhere outside the texmf-tree).

2. In the test-file, I had to replace '\start' and '\stop' with '\starttext'
and '\stoptext' (otherwise it doesn't work on my sytem). 

3. The line '\usetypescriptfile []' should be
included in the test-file. So the test-file will use the typescript file if it
is in the same directory as the test-file.

4. All the '\definefontalternative' definitions which you print in the
terminal output could be included in the test-file. So the test-file would
work out-of-the-box. 


Thanks for sharing your script!

Best wishes

Thomas

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

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


[NTG-context] floatcombinations, localfloats [mkiv]

2010-06-01 Thread Thomas Floeren
 
Hello,

I can't get floatcombinations to work in mkiv:

\starttext
\placefigure [none]{}
{\startfloatcombination [2*1]
\placefigure {.}%
{\externalfigure [.]}
\placefigure {.}%
{\externalfigure [.]}
\stopfloatcombination}
\stoptext

(some definitions are missing: forcelocalfloats, resetlocalfloats, 
noflocalfloats)

Best wishes
Thomas



This is LuaTeX, Version beta-0.60.1-2010052906 (Web2C 2010/pretest) (rev 3685) 
ConTeXt  ver: 2010.06.01 00:18 MKIV  fmt: 2010.6.1  int: english/english

___
If your question is of interest to others as well, please add an 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] definesynonyms & infull [mkiv]

2010-05-31 Thread Thomas Floeren
Hi,

the following example works in mkii, but in mkiv the first 'infull' won't 
appear:


\enableregime [utf]

\definesynonyms [StandardAbbrev] [StandardAbbrevs] [\infull]
\definesynonyms [TechAbbrev] [TechAbbrevs] [\infull]

\StandardAbbrev [DIN] {\kap{din}} {Deutsches Institut für Normung~e.\,V.}
\TechAbbrev [FAME] {\kap{fame}} {Fatty Acid Methyl Ester}

\starttext

\DIN\ (\infull{DIN})

\FAME\ (\infull{FAME})

\stoptext


Any ideas?

Thank you.

Thomas


This is LuaTeX, Version beta-0.60.1-2010052906 (Web2C 2010/pretest) (rev 3685) 
ConTeXt  ver: 2010.05.24 13:05 MKIV  fmt: 2010.5.31  int: english/english

___
If your question is of interest to others as well, please add an 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] Register interaction (page references) [mkIV]

2010-05-18 Thread Thomas Floeren
 
Hi,

when I place an interactive register in mkIV, and then in the PDF click the 
pagenumber (in the index), it takes me to the wrong page; it seems to go to the 
absolute pdf page number(?).

Example:

\setupinteraction[state=start]

\startsectionblockenvironment[bodypart]
\setupuserpagenumber[number=1]
\stopsectionblockenvironment


\starttext
\startfrontmatter
\page[dummy]
\page[dummy]
\stopfrontmatter

\startbodymatter
\page[dummy]
bla\index{bla}
\stopbodymatter

\placeregister[index]
\stoptext


Is there something new I have to configure to make it work?

MkII works as expected.


Thomas


ConTeXt  ver: 2010.05.13 12:15 MKIV  fmt: 2010.5.18  int: english/english

___
If your question is of interest to others as well, please add an 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] Hyphenation of composed words

2010-05-10 Thread Thomas Floeren
Marco <> wrote on Monday, May 10, 2010 7:27 AM:

>> 1. || does *not* produce a en-dash but to kerned hyphens
> You're right, I looked it up in the sources. It just looked like an
> en-dash for me. But this is wrong. For hyphenation a hyphen is used.
> The 
> font designer has created a dedicated glyph for this purpose. And two
> hyphens (or an en-dash) is too large. I've never seen the advice in a
> typography book to kern two hyphens. I don't know why this is
> implemented like this.
> 
>> 2. The correct method to get a *normal* hyphen is
>> 
>> \setuphyphenmark[sign=normal]
>> 
> Yes, this is the correct method. It should be enabled by default. If
> somebody wants a larger hyphen (for some mysterious reasen), he/she
> can set it 
> up with
> 
> \setuphyphenmark[sign=wide]
> 

It seems that the en-dash *can* be used in English in some cases:
'high-priority--high-pressure tasks' from http://en.wikipedia.org/wiki/Hyphen


>> If the output is not correct it's a bug.
> Yes, it is a bug. Hans already confirmed and said, he'll fix it, but
> it is not 
> yet done, that's why I wanted to remember him. You can try and run
> the example from my first post. With Thomas' workaround the output is
> OK, but it is only a workaround. I (and probably many other users)
> would like to have correct 
> behaviour by default.
> 

Concerning the hyphen sign, '\setuphyphenmark[sign=normal]' works as expected
on my system (= normal hyphen sign).
But it was (is?) not usable because, in case of a line break, the hyphen
sometimes was placed at the beginning of a new line.
With '\def\compoundhyphen{-}' the compound hyphen breaks correctly.

Thomas

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



___
If your question is of interest to others as well, please add an 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] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Thomas Floeren
Wolfgang Schuster <mailto:schuster.wolfg...@googlemail.com> wrote on Monday,
May 03, 2010 2:20 PM:

> Am 03.05.10 14:11, schrieb Thomas Floeren:
>> 
>> Hello,
>> 
>> in mkII I use to set my left margins to 0pt. When I do this now in
>> mkIV, I get misplaced footnote numbers (at the bottom). 
>> 
>> Example:
>> 
>> \setuplayout
>>  [leftmargin=\zeropoint]
>> 
>> \starttext
>> just text\footnote{foot text}
>> \stoptext
>> 
>> 
>> To get correctly placed numbers I have to either set the leftmargin
>> to>= 5pt, or leave out the leftmargin key in setuplayout. 
>> 
>> Is this a bug or just the mkIV way?
>> 
> The code for footnotes in MkII and MkIV is different, while MkII use
> it's own
> code MkIV use enumerations for the notes (that's why you can use
> nearly all 
> options from enumerations) and the number is placed by default in the
> left margin
> but why do you set leftmargin to 0pt?
> 


If I don’t set the leftmargin, everything is messed up.

Try this with and without leftmargin setup key:

%--
\setuplayout
[backspace=25mm,
cutspace=15mm,
topspace=10mm,
header=\zeropoint,
headerdistance=\zeropoint,
bottomspace=10mm,
footer=5mm,
footerdistance=8mm,
% leftmargin=\zeropoint,
rightmargin=\zeropoint,
height=fit,
width=fit,
location=middle]


\setupfooter [state=start,before=\hrule]
\setupfootertexts
[nice text here][and here]

\starttext
\dorecurse{20}{just text }\footnote{foot text}
\page\null
\stoptext
%---

Without the leftmargin key, text and footer leave the page borders.

Guess I have to to change my way to setup the layout in mkIV(?)


Thomas

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

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


[NTG-context] Footnote numbers and leftmargin setup [mkIV]

2010-05-03 Thread Thomas Floeren
 
Hello,

in mkII I use to set my left margins to 0pt. When I do this now in mkIV, I get 
misplaced footnote numbers (at the bottom).

Example:

\setuplayout
[leftmargin=\zeropoint]

\starttext
just text\footnote{foot text}
\stoptext


To get correctly placed numbers I have to either set the leftmargin to >= 5pt, 
or leave out the leftmargin key in setuplayout.

Is this a bug or just the mkIV way?

Thomas


ConTeXt  ver: 2010.04.29 22:30 MKIV  fmt: 2010.4.30  int: english/english

___
If your question is of interest to others as well, please add an 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] Float placement in margin

2010-04-28 Thread Thomas Floeren



On 27.04.2010 08:00, Taco Hoekwater wrote:



Btw, \placefigure[margin] doesn't appear to work in mkiv at all.



A small adjustment in page-mis.mkiv is needed:

line 91: plaatsrechtermargeblok --> placerightmarginblock
line 97: plaatslinkermargeblock --> placeleftmarginblock


Best wishes

Thomas




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

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


Re: [NTG-context] Hyphenation of composed words

2010-04-18 Thread Thomas Floeren
Marco <> wrote on Friday, April 16, 2010 4:46 PM:

> Hi,
> 
> I've yet another hyphenation problem. I cannot get proper hyphenation
> in 
> composed words. Take this MWE:
> 
> \setuplayout [width=1.5cm]
> \starttext
> 
> composed-word\par % not hyphenated, as expected
> composed||word\par% wrong: hyphenated, but an en-dash is used,
>   % not a hyphen, so [sign=wide] seems to be the default
> composed|-|word\blank % wrong: hyphenated, but the hyphen is at the
>   start of % the next line
> 
> \setuphyphenmark [sign=normal]% For hyphenation a hyphen is used,
>   % not an endash
> composed-word\par % not hyphenated, as expected
> composed||word\par% wrong: hyphen is at the start of the next line
> composed|-|word   % wrong: hyphen is at the start of the next line
> \blank[2*line]
> 
> \setbreakpoints [compound]% my workaround
> composed-word\par % correct hyphenation behaviour with hyphen
> 
> \stoptext
> 
> I hope with the comments the problem is clear. At first the default
> value for »sign« is wrong. It has to be »normal«. But with »normal« I
> cannot get the 
> hyphen at the end of the line, instead it always appeares at the
> beginning of 
> the next line.
> 

At the moment I use \def\compoundhyphen{-} instead of \setuphyphenmark.
It seems to work (mkii).

Thomas




> The workaround works but has the disadvantage that everything is
> hyphenated, everywhere. I prevent this at the moment by using bars:
>> not-a-composed-word|
> 
> Thanks in advance
> Marco
> 
> 
> ___
> If your question is of interest to others as well, please add an
> entry to the Wiki! 
> 
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
> http://www.pragma-ade.nl / http://tex.aanhet.net 
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___


___
If your question is of interest to others as well, please add an 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 and Windows7

2010-02-02 Thread Thomas Floeren



On 01.02.2010 12:51, Keith McKay wrote:
I want to install ConText on my Windows7 computer.  I thought that it 
would be a good idea if I checked the mailing list archive first, to 
see if there had been any problems with Windows7.  I didn't find any 
messages related to Windows7, but I don't know if this is a good or 
bad thing.  There is 1 page on the wiki regarding a problem with the 
complete configuration of Context in Windows7 and Scite which a user has.




No problems at all with Windows7 (64bit).

I was going to go ahead and download the mswin zip file from the 
pragma web site, but, the zip file just seems to exist there now as 
the minimals distribution, rather than the 'big' distribution I had on 
my old computer (which has gone to that great scrap heap in the sky 
due to a catastrophic failure).


So, I'm looking for advice before I go any further. Should I download 
the minimals and look into an editor other than Scite, which I never 
felt totally comfortable with anyway. 


A good Windows editor is Notepad++. I started out with Scite, then used 
TeXworks for some time also. TeXworks is nice with the integrated pdf 
view and synctex, but is not really comfortable as editor. Notepad++ has 
the same editing comfort as Scite (both on Scintilla) plus a 'friendly' 
gui and some nice features like double editor windows, a very good 
"search in all open files", and some very handy plugins (compare, 
explorer, NPPexec ...). Do a search on the list and you will find a 
context-npp package made by one of the list members. It's a bit dated 
(you have to tweak some things) but it will help you greatly to get an 
idea how to set up the editor for context.


Should I just go straight to luatex and MKIV? Are there other options 
available?




From my personal experience: For small quick projects - where you 
immediately see if the needed things work or not - I use mkiv, but for 
longer, format rich, meandering projects its safer (better for the 
nerves) to use mkii . I already started two longer projects with mkiv 
and always had to retreat to mkii because in the course of the work I 
stumbled upon some (for me) unsolvable problems that were crucial for my 
project, and not solved by the development of mkiv within my time frame.
But anyway, also the next big project I will fearlessly begin giving 
mkiv a try, and with a bit of luck I will not fall into a mkiv pit hole ;)



Best wishes

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

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


[NTG-context] mkII tabulate midline bug

2010-01-07 Thread Thomas Floeren
 
there seems to be a typo in the recent versions of tabl-tbl.mkii:

line 1225: \vskip1\topskip\allowbreak1\vskip-\topskip

(should probably read: \vskip1\topskip\allowbreak\vskip-\topskip)


example:

\starttabulate [|l|]
\NC text \NC\NR\FL
\NC midline ok \NC\NR\ML
\NC midline messed up \NC\NR\ML
\NC text \NC\NR\LL
\stoptabulate



ConTeXt  ver: 2010.01.05 16:47 MKII  fmt: 2010.1.7  int: english/english

best wishes
Thomas

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

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


Re: [NTG-context] Page Numbering Hell

2009-10-25 Thread Thomas Floeren
Aditya Mahajan <> wrote on Friday, October 23, 2009 10:41 PM:

> 
> The above solution was for MkIV. For completeness, this is how you
> will do 
> the same with MkII. I don't know how to get the page numbers correct
> in 
> the TOC in this case.
> 

I get correct MkII pagenumbers with this:

%% MkII:
\starttext
\setuppagenumbering[conversion=romannumerals] 
\startfrontmatter
\completecontent
\stopfrontmatter
\setuppagenumber[number=1] 
\setuppagenumbering[conversion=numbers] 
\startbodymatter
\chapter{Chapter}
\section{Section}
\input tufte
\externalfigure[cow]
\chapter{Chapter 2}
\section{Section}
\input knuth
\stopbodymatter
\stoptext


Thomas

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

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


[NTG-context] German language settings

2009-09-26 Thread Thomas Floeren

Hi,

anybody at any time should add the appropriate settings for German to  
the lang-ger.tex file:



\unprotect

\setuplabeltext [\s!de]  [\v!page=Seite~]
\setuplabeltext [\s!de][\v!atpage=auf Seite~]
\setuplabeltext [\s!de] [\v!hencefore=oben]
\setuplabeltext [\s!de] [\v!hereafter=unten]

\protect

\setuplanguage [de] [lefthyphenmin=2,righthyphenmin=3]
\setuphyphenmark[sign=normal]

This is no major problem, but it is inconvenient to have to add the  
settings each and any time when you make a new document, or to have a  
corrrection file in your texmf-local (not the proper way).


The lefthyphenmin=2 may be subject to discuss, but in real life this  
is the way we separate words. I know that it was considered ugly by  
some people/insitutions, but I think these considerations are rather  
obsolete. Set it to 3 if your doc has >90 letters/line in general. But  
this shouldn't be the default setting. Think of all the prefixed verbs  
'ergreifen', 'erstatten' etc. It *may* lead to *some* unwanted  
separations, but this should be handled by the hyphenation patterns.


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

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


Re: [NTG-context] mkIV framedcontent not working

2009-08-31 Thread Thomas Floeren
luigi scarso <mailto:luigi.sca...@gmail.com> wrote on Monday, August 31, 2009 
11:24 PM:

> On Mon, Aug 31, 2009 at 11:36 AM, Thomas
> Floeren wrote:
>> 
>> Hi,
>> 
>> \stopframedcontent gives an undefined control sequence in mkIV. mkII
>> is ok. 
>> 
>> Any ideas?
>> 
> Can you give  a short example ?



\defineframedcontent[FrCT]
[offset=.5em]
\starttext
\startframedcontent[FrCT]
Am I framed?
\stopframedcontent
\stoptext

I know that \framed*text* would work in this minimal example, but it does not 
return the same results as \framedcontent in mkII; and it does not work well 
with more complicated group content (at least in mkII).

Thomas

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

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


[NTG-context] mkIV framedcontent not working

2009-08-31 Thread Thomas Floeren

Hi,

\stopframedcontent gives an undefined control sequence in mkIV. mkII is ok.

Any ideas?

Thomas

LuaTeX, Version beta-0.43.0-2009082718
ConTeXt  ver: 2009.08.30 12:25 MKIV  fmt: 2009.8.31

___
If your question is of interest to others as well, please add an 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] some (older) problems

2009-08-18 Thread Thomas Floeren
Hans Hagen <mailto:pra...@wxs.nl> wrote on Monday, August 17, 2009 7:56 PM:

> Thomas Floeren wrote:
> 
>> a) Floatcaptions are no longer placed:
>> 
>> \externalfigure[dummy]
>> \placefloatcaption[figure]{blabla}
> 
> i didn't yet rewrite that bit of code
> 
>> b) \start...\stopregister results in an error:
>> 
>> hmmpf\startregister[index][identifier]{Hmmpf}\page[yes]
>> \dorecurse{2}{hmmpf\page[yes]}
>> hmmpf\stopregister[index][identifier]\page[yes]
>> \placeregister[index][compress=no]
> 
> works ok in current version/beta
> 
>> c) I'm not able to build caption numbers with the chapter number as
>> prefix: I want for example "Fig. 2.6" where "2" is the chapter
>> number and "6" 
>> the figure number by chapter. I tried all the options I found for
>> setupcaptions (at least I think so), but I dont get the chapter
>> number 
>> in the caption.
>> 
>> 
>> LuaTeX, Version beta-0.40.5-2009061123 (Web2C 2009)
>> ConTeXt ver: 2009.06.14 21:01 MKIV fmt: 2009.6.18
> 
> can you try the latest version
> 
> Hans
> 


Same thing with
LuaTeX, Version beta-0.42.0-2009081710
ConTeXt  ver: 2009.08.17 19:06 MKIV  fmt: 2009.8.18  int: english/english


\chapter{Ch 1}
\placefigure[here]{captiontext} <-- should be "1.1", but gives "1" 
{\externalfigure[dummy]}
\chapter{Ch 2}
\placefigure[here]{captiontext} <-- should be "2.1", but gives "1"
{\externalfigure[dummy]}

MkII works as expected


Thomas

_

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

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


[NTG-context] some (older) problems

2009-08-17 Thread Thomas Floeren
 
Hi,

on 2009-06-18 there was a mail on the list with a collection of mkIV problems, 
a big part related to references and captions. (original text below)

I just did a quick re-check with the actual minimals and lua, with the 
following result:

Problems 2), 3) and b) are gone,
problems 1), 4), 5), a) and c) are still there.

I'm not sure if the remaining problems are due to bugs or rather a result of my 
poor comprehension  of certain changes/new things in the mkIV code (especially 
c).

Any help would be appreciated.

Thomas


This is LuaTeX, Version beta-0.42.0-2009081521
ConTeXt  ver: 2009.08.16 18:21 MKIV  fmt: 2009.8.17  int: english/english






---Original text:



Author: Thomas Floeren
Date: 2009-06-18 22:17 +200
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Lots of problems in mkiv
2009/6/18, richard.steph...@??? :
>
> I've recently started using mkiv because of the fonts, but I have found
> lots of things that don't work.
> The trouble is, I don't know if it's just me, or whether I need to go back
> to mkii until things settle down.
>
> Can someone, PLEASE, tell me if they get any of the following problems with
> mkiv (I've included code snippets):
> Everything below works perfectly in mkii.
>
> 1) References to equations appear as '??' in the final document
>
> \placeformula[eq:pythag]
> \startformula
> a^2 = b^2 + c^2
> \stopformula
> Pythagoras proposed \in{equation}[eq:pythag].
>
>
> 2) References to footnotes appear as '??' inside
> \startlocalfootnotes...\stoplocalfootnotes
>
> \startlocalfootnotes
> This has a note.\footnote[fn]{Footnote.}
> See note \note[fn].
> \stoplocalfootnotes
>
> 3) References to sections are repeated (e.g. reference to section 1 appears
> as '11' or ref to section 1.1 appears as '1.11.1')
>
> \section[sec:one]{Section one}
> It was in \in{section}[sec:one].
>
> 4) \digits command falls over at periods or commas with "\textfont1 is
> undefined (character 58)."
>
> \digits{1.6}
>
> 5) \infull command does not work for abbreviations: falls over with
> "Missing } inserted."
>
> \abbreviation {KF} {Kalman filter}
> Rudolph Kalman invented the \infull{KF}.
>
>
> Please help!!
>
> Richard
>
>


Same thing here with 1,3,4,5.
2 works fine.

I've noticed also 3 problems since I switched to MKIV:

a) Floatcaptions are no longer placed:

\externalfigure[dummy]
\placefloatcaption[figure]{blabla}

b) \start...\stopregister results in an error:

hmmpf\startregister[index][identifier]{Hmmpf}\page[yes]
\dorecurse{2}{hmmpf\page[yes]}
hmmpf\stopregister[index][identifier]\page[yes]
\placeregister[index][compress=no]

c) I'm not able to build caption numbers with the chapter number as prefix:
I want for example "Fig. 2.6" where "2" is the chapter number and "6"
the figure number by chapter. I tried all the options I found for
setupcaptions (at least I think so), but I dont get the chapter number
in the caption.


LuaTeX, Version beta-0.40.5-2009061123 (Web2C 2009)
ConTeXt ver: 2009.06.14 21:01 MKIV fmt: 2009.6.18


Thanks in advance for any hint

Greetings
Tom

___
If your question is of interest to others as well, please add an 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] Problem with metapost textbackgrounds on Windows

2009-08-16 Thread Thomas Floeren
There seems to be a typo in anch-pgr.mkII which prevents textbackgrounds from 
working:

line 654 '\enableparposition' should probably read '\enableparpositions'.

If you copy the following lines into your environment it should work:

\def\initializeparbackgrounds
  {\ifcase\totalnofparbackgrounds\else
 \enableparpositions
   \fi}

Regards
Thomas

 



From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf 
Of Kevin D. Robbins
Sent: Tuesday, August 04, 2009 8:03 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Problem with metapost textbackgrounds on Windows


Thanks, Mojca. 

Also, a further bit of investigation on Windows shows that building the example 
(saved in foo.tex) with "context foo.tex" or "texexec --lua foo.tex" produces 
the results I reported. But, building without lua using "texexec foo.tex" gives 
a different error but does produce the expected gray background behind the 
\startC ... \stopC block. Here is the error when building with "texexec 
foo.tex":

! Undefined control sequence.
\initializeparbackgrounds ...e \enableparposition
  \fi
 ...page \initializeparbackgrounds
  \loadctxpreplist \checkref...

\doateverystarttext ->\the \everystarttext
   \global \everystarttext \emptytoks
\starttext ->\doateverystarttext
 \ifcase \textlevel \registerfileinfo [begin...
l.36 \starttext

Continuing the run just by hitting enter completes the build with the correct 
background drawn.

Kevin


On Tue, Aug 4, 2009 at 11:48 AM, Mojca Miklavec 
 wrote:


On Tue, Aug 4, 2009 at 19:18, Kevin D. Robbins wrote:
> Hello all,
>
> In the example below, I mean for a gray box with rounded corners to be
> placed behind \startC ... \stopC blocks. This example compiles 
properly on
> Linux with the latest ConTeXt beta and LuaTeX synced from the 
minimals just
> minutes ago.
>
> On Windows, also updated from minimals this morning, I get the 
following
> error and no text background:


I'll try to make sure what LuaTeX version is used on Windows. At the
time of synchronisation there was no luatex snapshot yet and it the
meantime server name has been changed. (Nobody has complained so far,
so I almost forgot about it.)

Mojca

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

maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : 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] Hyphenation list and umlauts

2009-07-15 Thread Thomas Floeren
Mojca Miklavec <mailto:mojca.miklavec.li...@gmail.com> scribbled on Friday, 
July 10, 2009 11:21 AM:

> On Fri, Jul 10, 2009 at 07:32, Thomas Floeren wrote:
>> Taco Hoekwater <mailto:t...@elvenkind.com> scribbled on Thursday,
>> July 09, 2009 8:40 AM: 
>> 
>>> Lutz Haseloff wrote:
>>>> Hi Thomas,
>>>> 
>>>> You are right, "stand-salarm" is definitely wrong. I think too,
>>>> that LuaTex should hyphenate the word like given in
>>>> \hyphenation{}. It seems that \hyphenation{} is ignored.
>>> 
>>> Hi guys,
>>> 
>>> Are you using the binary from minimals, or the binary from the
>>> supelec.fr package, here: 
>>> 
>>> http://foundry.supelec.fr/gf/project/luatex/frs/
>>> 
>>> There might be a difference.
>>> 
>>> Best wishes,
>>> Taco
>> 
>> 
>> Hi,
>> 
>> Unfortunately I can not make work the luatetex.exe from your link.
>> 
>> luatools --generate seems to work fine, but luatools --selfupdate
>> gives "LuaTools | fileio: unable to locate new script", same for
>> mtxrun --selfupdate. context --make cont-en then gives "MTXrun |
>> unknown script 'context.lua' or 'mtx-context.lua'".  
>> 
>> I think I have a 'regular' minimals installation (the dll versions
>> of luatex work). 
>> 
>> Any hint?
> 
> Maybe you need the latest ConTeXt to be able to use the latest luatex?
> 1.) you can fetch luatex from w32tex
> 2.) you might have to use --context=experimental without generating
> formats, then manually overwritting luatex binary and finally
> repeating all the steps to build the formats
> 
> But there's no guarantee (maybe try that in a separate copy of
> minimals). 
> 
> Mojca


Thanks for your help, Mojca.

I installed the experimental minimals and they work fine with luatex 0.42 (the 
'dll-version');
however, the hyphenation problem on XP persists (mac, linux, vista all fine).

\de 
\hyphenation{fräs-schleu-der} 
\starttext 
\hyphenatedword{Frässchleuder} 
\stoptext 

This is LuaTeX, Version beta-0.42.0-2009071600 (Web2C 2009)
ConTeXt  ver: 2009.07.15 21:49 MKIV  fmt: 2009.7.16  int: english/english


On W32TeX I can only find the same lua-'dll'-version (link to 
ftp://akagi.ms.u-tokyo.ac.jp), which already runs (= the one with the 
hyph-problem).

The mingw version ('exe'-version) from Taco (supelec.fr) however I cannot get 
to run, even with the experimental-minimal.


Thanks
Thomas



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

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


Re: [NTG-context] Hyphenation list and umlauts

2009-07-09 Thread Thomas Floeren
Taco Hoekwater  scribbled on Thursday, July 09, 2009 
8:40 AM:

> Lutz Haseloff wrote:
>> Hi Thomas,
>> 
>> You are right, "stand-salarm" is definitely wrong. I think too, that
>> LuaTex should hyphenate the word like given in \hyphenation{}. It
>> seems that \hyphenation{} is ignored. 
> 
> Hi guys,
> 
> Are you using the binary from minimals, or the binary from the
> supelec.fr package, here:
> 
> http://foundry.supelec.fr/gf/project/luatex/frs/
> 
> There might be a difference.
> 
> Best wishes,
> Taco


Hi,

Unfortunately I can not make work the luatetex.exe from your link.

luatools --generate seems to work fine, but luatools --selfupdate gives 
"LuaTools | fileio: unable to locate new script", same for mtxrun --selfupdate. 
context --make cont-en then gives "MTXrun | unknown script 'context.lua' or 
'mtx-context.lua'".

I think I have a 'regular' minimals installation (the dll versions of luatex 
work).

Any hint?

Thanks

thomas

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

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


Re: [NTG-context] Hyphenation list and umlauts

2009-07-09 Thread Thomas Floeren
Taco Hoekwater  scribbled on Thursday, July 09, 2009 
8:40 AM:

> Lutz Haseloff wrote:
>> Hi Thomas,
>> 
>> You are right, "stand-salarm" is definitely wrong. I think too, that
>> LuaTex should hyphenate the word like given in \hyphenation{}. It
>> seems that \hyphenation{} is ignored. 
> 
> Hi guys,
> 
> Are you using the binary from minimals, or the binary from the
> supelec.fr package, here:
> 
> http://foundry.supelec.fr/gf/project/luatex/frs/
> 
> There might be a difference.
> 
> Best wishes,
> Taco

From here http://minimals.contextgarden.net/current/bin/luatex/mswin/bin/ or 
there ftp://akagi.ms.u-tokyo.ac.jp/pub/TeX/win32/. These are DLLs.

Some time ago I tried a lua exe from your link but couldn’t get it to work. 

I will try it again.

Thanks

Thomas

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

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


Re: [NTG-context] Hyphenation list and umlauts

2009-07-08 Thread Thomas Floeren
 
Hi Lutz,

Thanks for your answer.
According to my (reformed) Duden both manöv-rieren and manö-vrieren are correct 
(in prereform orthography manöv-rieren was not allowed); see also 
ei-nan-der|ein-an-der, in-te-res-sant|in-ter-es-sant etc.

But this is not the problem. You can try any other arbitrary example: 

\de 
\hyphenation{fräs-schleu-der schmutz-be-häl-ter-was-ser-stands-alarm} 
\starttext 
\hyphenatedword{Frässchleuder} 
\hyphenatedword{Schmutzbehälterwasserstandsalarm}
\stoptext 


Greetings
Thomas




From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf 
Of Lutz Haseloff
Sent: Thursday, July 09, 2009 6:55 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Hyphenation list and umlauts


Hi Thomas,

after changing lefthyphenmin for de in lang-ger.tex to "2" I was able to 
hyphenate your word
after the Duden rules ma-nö-vrie-ren. I think, in german "v" can't be a 
syllable.

Greetings Lutz

see: http://www.duden.de/definition/man%C3%B6vrieren




2009/7/8 



On Jul 8, 2009, at 1:06 PM, Peter Rolf wrote:


    Thomas Floeren schrieb: 

Taco Hoekwater <mailto:t...@elvenkind.com> 
<mailto:t...@elvenkind.com>  scribbled on Wednesday, June 24, 2009 3:34 PM:

      

        Thomas Floeren wrote:


Hi,

I stumbled upon a problem with my 
hyphenation list:

In MKIV, all the words in the list that 
contain umlauts are
completely ignored. MKII is fine. 
  

Luatex 0.40.5 is broken in this regard, sorry.

(The problem is that the exception handling 
uses \lccodes
for the *byte* range 128-255, which is quite 
wrong). This is
serious enough that there will be a 0.40.6 
later in the week.

Best wishes,
Taco


Well, in my other mail I said that it worked perfectly 
now with 0.40.6, but this isn’t entirely true:

It works perfectly on Mac, Linux and Win Vista. But for 
any obscure reason I can not get it to work on Win XP (to which I’m bound at 
work, unfortunately).

Linux and WinVista are running as virtual machines on 
Mac Intel systems, WinXP is running nonvirtually on PC. 

In order to minimize installation differences I have 
even copied the entire context folder from Vista to the XP machine (including 
binaries, minimals, texmf-local), trashed the caches, remade the formats ... 
but still no UTF hyphenation exceptions on the XP-PC.

Do you - or anybody - have an idea of what the reason 
for this could be?
Some stupid small thing that I have overlooked?
  

Just tried your example code and I also get wrong hyphenation 
on XP.

This is LuaTeX, Version beta-0.40.6-2009070100 (Web2C 2009) 
luatex.web >= v13958
MTXrun | current version: 2009.06.14 21:01

Sorry, also no clue what goes wrong...



Maybe I should pose my 
question differently:
Is there anybody on WinXP who can typeset my minimal (below) as 
intended?

(I’m aware that not many people on this list are using MS systems, I 
personally also prefer working systems, but at work I’m (still) restricted to 
MS-XP.
So this problem is of uttermost importance for me. 
I hope the ConTeXt support for MS systems will not be dropped too soon, 
there are still people out there dependent on those OSs)

Here’s the minimal again:

\de 
\hyphenation{ma-nö-v-rie-ren} 
\starttext 
\hyphenatedword{manövrieren} 
\stoptext 

Thanks again for any help or hint
Tom



Any help is appreciated
Thanks

Thomas


___
If your question is of interest to others a

Re: [NTG-context] Hyphenation list and umlauts

2009-07-08 Thread thomas . floeren


On Jul 8, 2009, at 1:06 PM, Peter Rolf wrote:


Thomas Floeren schrieb:


Taco Hoekwater <mailto:t...@elvenkind.com> scribbled on Wednesday,  
June 24, 2009 3:34 PM:




Thomas Floeren wrote:


Hi,

I stumbled upon a problem with my hyphenation list:

In MKIV, all the words in the list that contain umlauts are
completely ignored. MKII is fine.


Luatex 0.40.5 is broken in this regard, sorry.

(The problem is that the exception handling uses \lccodes
for the *byte* range 128-255, which is quite wrong). This is
serious enough that there will be a 0.40.6 later in the week.

Best wishes,
Taco





Well, in my other mail I said that it worked perfectly now with  
0.40.6, but this isn’t entirely true:


It works perfectly on Mac, Linux and Win Vista. But for any obscure  
reason I can not get it to work on Win XP (to which I’m bound at  
work, unfortunately).


Linux and WinVista are running as virtual machines on Mac Intel  
systems, WinXP is running nonvirtually on PC.


In order to minimize installation differences I have even copied  
the entire context folder from Vista to the XP machine (including  
binaries, minimals, texmf-local), trashed the caches, remade the  
formats ... but still no UTF hyphenation exceptions on the XP-PC.


Do you - or anybody - have an idea of what the reason for this  
could be?

Some stupid small thing that I have overlooked?


Just tried your example code and I also get wrong hyphenation on XP.

This is LuaTeX, Version beta-0.40.6-2009070100 (Web2C 2009)  
luatex.web >= v13958

MTXrun | current version: 2009.06.14 21:01

Sorry, also no clue what goes wrong...





Maybe I should pose my question differently:
Is there anybody on WinXP who can typeset my minimal (below) as  
intended?


(I’m aware that not many people on this list are using MS systems, I  
personally also prefer working systems, but at work I’m (still)  
restricted to MS-XP.

So this problem is of uttermost importance for me.
I hope the ConTeXt support for MS systems will not be dropped too  
soon, there are still people out there dependent on those OSs)


Here’s the minimal again:

\de
\hyphenation{ma-nö-v-rie-ren}
\starttext
\hyphenatedword{manövrieren}
\stoptext

Thanks again for any help or hint
Tom


Any help is appreciated
Thanks

Thomas

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


maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://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
___


___
If your question is of interest to others as well, please add an 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] Hyphenation list and umlauts

2009-07-08 Thread Thomas Floeren
Taco Hoekwater <mailto:t...@elvenkind.com> scribbled on Wednesday, June 24, 
2009 3:34 PM:

> Thomas Floeren wrote:
>> Hi,
>> 
>> I stumbled upon a problem with my hyphenation list:
>> 
>> In MKIV, all the words in the list that contain umlauts are
>> completely ignored. MKII is fine. 
> 
> Luatex 0.40.5 is broken in this regard, sorry.
> 
> (The problem is that the exception handling uses \lccodes
> for the *byte* range 128-255, which is quite wrong). This is
> serious enough that there will be a 0.40.6 later in the week.
> 
> Best wishes,
> Taco



Well, in my other mail I said that it worked perfectly now with 0.40.6, but 
this isn’t entirely true:

It works perfectly on Mac, Linux and Win Vista. But for any obscure reason I 
can not get it to work on Win XP (to which I’m bound at work, unfortunately).

Linux and WinVista are running as virtual machines on Mac Intel systems, WinXP 
is running nonvirtually on PC. 

In order to minimize installation differences I have even copied the entire 
context folder from Vista to the XP machine (including binaries, minimals, 
texmf-local), trashed the caches, remade the formats ... but still no UTF 
hyphenation exceptions on the XP-PC.

Do you - or anybody - have an idea of what the reason for this could be?
Some stupid small thing that I have overlooked?


Any help is appreciated
Thanks

Thomas

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

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


Re: [NTG-context] get rid of placefigure and startcombination captions

2009-06-27 Thread Thomas Floeren


On Jun 26, 2009, at 1:42 PM, Vyatcheslav Yatskovsky wrote:


Hello

I used \placefigure just for centering the figure. And even if I put  
\startcombination directly, won't it reserve blank space for empty  
subcaptions?


Actually, I found nice snipped that works like a charm for my needs:

\hbox to \hsize{
\externalfigure[serg1][width=3.5cm]
\hss\externalfigure[serg2][width=3.5cm]
\hss\externalfigure[serg4][width=3.5cm]
\hss\externalfigure[serg3][width=3.5cm]}

...and no combinations needed! ))

Vyatcheslav


Hello,
>
> Another urgent problem:
>
> how to get rid of placefigure and startcombination captions
> altogether?
>
> When I use the following, I get too much wasted space after the
> illustration.
>
> \placefigure
> [fit]
> {none}
> {\startcombination[4*1]
>{\externalfigure[serg1][width=4cm]} {}
>{\externalfigure[serg2][width=4cm]} {}
>{\externalfigure[serg3][width=4cm]} {}
>{\externalfigure[serg4][width=4cm]} {}
> \stopcombination}
>
> Best,
> Vyatcheslav


I'm not sure I understand your problem. If you don't want a caption
and don't want the figure to float, why do you use \placefigure at
all? Just remove the wrapper and put \startcombination etc. directly
into your source file.

Thomas


pay also attention to the syntax
(1) "\placefigure[...]{none}"
vs.
 (2) "\placefigure[...,none]{}"

In MkII the two delivered the same output, in MkIV variant (1) will  
reserve some kind of space for the non-existant caption.

I don’t know if this is intended or a bug.

Example:

\starttext
\placefigure[here]{none}{\externalfigure[dummy]}
\dorecurse{30}{blabla }

\placefigure[here,none]{}{\externalfigure[dummy]}
\dorecurse{30}{blabla }
\stoptext

Greetings
Tom

_


___
If your question is of interest to others as well, please add an 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] Hyphenation list and umlauts

2009-06-27 Thread Thomas Floeren


On Jun 24, 2009, at 3:33 PM, Taco Hoekwater wrote:




Thomas Floeren wrote:

Hi,

I stumbled upon a problem with my hyphenation list:

In MKIV, all the words in the list that contain umlauts are  
completely ignored. MKII is fine.


Luatex 0.40.5 is broken in this regard, sorry.

(The problem is that the exception handling uses \lccodes
for the *byte* range 128-255, which is quite wrong). This is
serious enough that there will be a 0.40.6 later in the week.

Best wishes,
Taco


It works perfectly now with lua 40.6!
Thanks
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Hyphenation list and umlauts

2009-06-24 Thread Thomas Floeren
Hi,
 
I stumbled upon a problem with my hyphenation list:
 
In MKIV, all the words in the list that contain umlauts are completely ignored. 
MKII is fine.
 
Example:

\de
\hyphenation{ma-nö-v-rie-ren} 
\starttext
\hyphenatedword{manövrieren}
\stoptext

Is there any workaround for this? (\odiaeresis doesn't work either)
Or do I have an encoding problem?

LuaTeX, Version beta-0.40.5-2009061023 (Web2C 2009)
ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.6.18


btw, does anybody know a solution for my other small problems in my mail from 
last week?
http://archive.contextgarden.net/message/20090618.201708.be8aa761.en.html

Any help or hint is really appreciated.
Thanks in advance

Tom

___
If your question is of interest to others as well, please add an 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] Lots of problems in mkiv

2009-06-18 Thread Thomas Floeren
2009/6/18, richard.steph...@converteam.com :
>
> I've recently started using mkiv because of the fonts, but I have found
> lots of things that don't work.
> The trouble is, I don't know if it's just me, or whether I need to go back
> to mkii until things settle down.
>
> Can someone, PLEASE, tell me if they get any of the following problems with
> mkiv (I've included code snippets):
> Everything below works perfectly in mkii.
>
> 1) References to equations appear as '??' in the final document
>
> \placeformula[eq:pythag]
> \startformula
> a^2 = b^2 + c^2
> \stopformula
> Pythagoras proposed \in{equation}[eq:pythag].
>
>
> 2) References to footnotes appear as '??' inside
> \startlocalfootnotes...\stoplocalfootnotes
>
> \startlocalfootnotes
> This has a note.\footnote[fn]{Footnote.}
> See note \note[fn].
> \stoplocalfootnotes
>
> 3) References to sections are repeated (e.g. reference to section 1 appears
> as '11' or ref to section 1.1 appears as '1.11.1')
>
> \section[sec:one]{Section one}
> It was in \in{section}[sec:one].
>
> 4) \digits command falls over at periods or commas with "\textfont1 is
> undefined (character 58)."
>
> \digits{1.6}
>
> 5) \infull command does not work for abbreviations: falls over with
> "Missing } inserted."
>
> \abbreviation {KF} {Kalman filter}
> Rudolph Kalman invented the \infull{KF}.
>
>
> Please help!!
>
> Richard
>
>


Same thing here with 1,3,4,5.
2 works fine.

I've noticed also 3 problems since I switched to MKIV:

a) Floatcaptions are no longer placed:

\externalfigure[dummy]
\placefloatcaption[figure]{blabla}

b) \start...\stopregister results in an error:

hmmpf\startregister[index][identifier]{Hmmpf}\page[yes]
\dorecurse{2}{hmmpf\page[yes]}
hmmpf\stopregister[index][identifier]\page[yes]
\placeregister[index][compress=no]

c) I'm not able to build caption numbers with the chapter number as prefix:
I want for example "Fig. 2.6" where "2" is the chapter number and "6"
the figure number by chapter. I tried all the options I found for
setupcaptions (at least I think so), but I dont get the chapter number
in the caption.


LuaTeX, Version beta-0.40.5-2009061123 (Web2C 2009)
ConTeXt  ver: 2009.06.14 21:01 MKIV  fmt: 2009.6.18


Thanks in advance for any hint

Greetings
Tom
___
If your question is of interest to others as well, please add an 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] Multicol float vertical spacing (MkII)

2009-05-20 Thread Thomas Floeren

Hello,

I have a small problem which nevertheless took already my whole day ...

I'm on a multicolumn page and I have to put (numberd) figures in the  
textflow, at a fix position relative to the text (in this case). No  
sidefloats.


Problem: The vertical space between the float and the following text  
(= after the float) is way too big. I put the floats with "force";  
with "here" its even worse: I get an additional empty space *above*  
the float.


Concerning the different column methods i noticed the following:

\startcolumns: I can influence the vertical space (in general) with  
e.g. "blank=4pt" in the setups. This solves my problem for the moment,  
but is a bit ugly, because all spaces seem to be affected, also the  
predefined caption innerspace(!)


\startcolumnset: I couldn't find any solution at all, unless grouping  
everything in \startpacked ...\ \stoppacked, but this of course  
removes every and any space. The "blank"-option isn't present in  
columnsets, right?


Side question: While trying all this i noticed also that the v-spacing  
is perfect when i just use "\externalfigure ..." (without place...).  
But malheureusement I need the captions. Is there any way to get  
captions with \externalfigure (without float thingies), maintainig/ 
integrating in  the numbering of the "normal" floating figures?


I would really appreciate if anybody could show me how to adjust/ 
eliminate this ugly (faulty?) after float space without disturbing the  
whole whitespacing on the page.


Thanks in advance,
Tom
(Greetings from Lake Léman)


Here is a some kind of a minimal (not very proper nor cleaned, but it  
compiles on context-live and it shows what i'm talking about):


% coding: utf-8
\enableregime [utf]

\useencoding[fde]
\mainlanguage[de]
\setuphyphenmark[sign=normal]

\setuppapersize [A5,landscape] [A5,landscape]
\setupbodyfont [9pt]

\defineitemgroup [Leg]
\setupitemgroup [Leg] [each]
[stopper=,
before={\setupwhitespace[none]\blank[medium]\ss},
style={\ssbf},
inbetween={\blank[small]},
after={\blank[medium]},
width=1em,
symalign=flushleft,
headstyle=italic]
[n,
packed,
]
\setupfloats [spaceafter=none]
\setupcaptions  [style=\ssx\it\setupinterlinespace,
width=max,
headstyle=\vii\bfx,
align=justified,location=bottom,
inbetween={\blank[medium]},
spaceafter=none]

\setupcolumns
[%
blank=4pt,
balance=no,
tolerance=verytolerant]

\definecolumnset [NormalThree] [n=3]
\setupcolumnset [NormalThree]
[balance=no,
%blank=4pt, <-- no effect
tolerance=verytolerant]

% \showboxes
\starttext
\startcolumnset [NormalThree]% <-- comment/uncomment to see the  
differences

% \startcolumns[n=3]%   <-- comment/uncomment to see the 
differences

\placefigure[force]{one line}
{\externalfigure[frontk:mitte][width=\textwidth,height=\textheight]}
\column
\subsection{Frontkonsole~-- Mitte}
\startLeg
\item Heizung Heck-, Front- und Seitenscheiben
\item Außenspiegelheizung (Option)
\item Zigarettenanzünder 24\,V
\item 24||V||Steckdose
\item Zusatzheizung (Option)
\item Ventilator mit \textellipsis
\item Temperaturregler
\item Aschenbecher
\stopLeg

\subsection{Multifunktionshebel}
\placefigure[force]{one line}
{\externalfigure[mufuhe:li][width=\textwidth,height=60pt]}
\startpacked\ss
{\it Drücken:}
\startLeg[intro]
\item Hupe
\stopLeg
{\it Drehen:}
\startLeg[intro,continue]
\item Licht aus
\item Standlicht
\item Fahrlicht:
\startitemize [4]
\item {\it Hebel mittig:} Abblendlicht
\item {\it Hebel unten:} Fernlicht
\item {\it Hebel nach oben:} Lichthupe
\stopitemize
\stopLeg
{\it Schieben:}
\startLeg[intro,continue]
\item Blinker
\startitemize [4]
\item {\it Hebel vorne:} rechts
\item {\it Hebel hinten:} links
\stopitemize
\stopLeg
\stoppacked


\placefigure[force]{one line}
{\externalfigure[mufuhe:re][width=\textwidth,height=60pt]}
\startpacked\ss
{\it Drücken:}
\startLeg [intro]
\item Scheibenwaschanlage
\stopLeg
{\it Drehen:}
\startLeg [intro,continue]
\item Scheibenwischer Intervall
\item Scheibenwischer aus
\item Scheibenwischer Stufe 1
\item Scheibenwischer Stufe 2
\stopLeg
\stoppacked

% \stopcolumns%   <-- comment/uncomment to see the differences
\stopcolumnset %   <-- comment/uncomment to see the differences


\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://

[NTG-context] Mailing list

2009-05-09 Thread Thomas Floeren
Is there anything wrong with the mailing list or am I just missing  
something in the config?


I just wrote a mail, and only afterwards I’ve seen on the mail archive  
that the subject/prob was already ok.


It seems that I can’t receive the actual mails in my inbox, only after  
an indeterminable delay they are delivered.
I dont receive either my own mails (yes, the box in the config is  
checked).
I’m receiving the mails via gmail, the client program is the standard  
AppleMail-program.

Does anybody have similar issues?

Thanks

Thomas


On May 9, 2009, at 10:49 , Wolfgang Schuster wrote:



Am 09.05.2009 um 10:19 schrieb Robert Blackstone:


For me normally \startcombination[2*1] .. works. MKII; Side by side
with a single caption.
Please tell me if I didnt understand your problem.


\placefigure
[here,force][fig:Ex6]{Ux zeuhl, ma lamax quolt epp ik, korsa ozlint  
vusp urfa,.}

\startcombination[2*1]
{\externalfigure[Ex6a]}{}
{\externalfigure[Ex6b]}{}
  ^^
\stopcombination

Wolfgang

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


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


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

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


Re: [NTG-context] Combining figures

2009-05-09 Thread Thomas Floeren

i think, you just forgot the second pair of curly brackets({}):

{\externalfigure[Ex6a]}{}
{\externalfigure[Ex6b]}{}

for me (mac, context 2009.04.10 18:02 MKII) your code works fine like  
this, the two side by side.


Greets



On May 9, 2009, at 10:19 , Robert Blackstone wrote:




On Fri, May 8, 2009 at 10:23 PM, , Mojca  
Miklavec and Thomas Floeren wrote, respectively:



On Fri, May 8, 2009 at 21:53, Robert Blackstone wrote:
> Hi All,
> I am working on a text that contains many combined figures, some  
side by
> side, ?some arranged vertically. I use, following ?ConTeXt, an  
excursion?,
> \startcombination[1*2] and \startcombination[2*1] respectively.  
The first
> one works, the second doesn?t, that is, it also places the figures  
one above
> the other. It happens both with the ?MacTeX?-version of ConTeXt  
and with the

> minimals.
> What can I do to place two figures side by side with a single  
caption?


Both variants work for me.

\starttext
\placefigure{some title}
{\startcombination[1*2]
   {\framed[width=5cm]{}}{}
   {\framed[width=5cm]{}}{}
\stopcombination}
\placefigure{some title}
{\startcombination[2*1]
   {\framed[width=5cm]{}}{}
   {\framed[width=5cm]{}}{}
\stopcombination}
\stoptext

Mojca


--


For me normally \startcombination[2*1] .. works. MKII; Side by side
with a single caption.
Please tell me if I didnt understand your problem.

Greetings
Tom

Thanks to Mojca and Tom,
With Mojca’s commands, {\framed[width=5cm]{}}{}, it works for me  
too. But I do not want the figures framed. When I replace that piece  
with {\externalfigure[NameofFigure]}, the figures are placed  
vertically, both with [2*1] and with [1*2].
I have uploaded a folder with a small testfile, which on my Mac  
shows this behaviour, as you can see in the pdf. (For convenience I  
have entered the two possibilities in the testfile, one of them  
commented out.) It can be downloaded from http://web.me.com/blackstone.robert/filechute/Combining_Figures.zip 
.

Maybe there are some other errors in the file that I do not know of.
Thanks for the attention.
Best regards,
Robert Blackstone

___
If your question is of interest to others as well, please add an  
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] Combining figures.

2009-05-08 Thread Thomas Floeren
For me normally \startcombination[2*1] .. works. MKII; Side by side  
with a single caption.

Please tell me if I didnt understand your problem.

Greetings
Tom


On May 8, 2009, at 21:53 , Robert Blackstone wrote:


Hi All,
I am working on a text that contains many combined figures, some  
side by side,  some arranged vertically. I use, following “ConTeXt,  
an excursion”, \startcombination[1*2] and \startcombination[2*1]  
respectively. The first one works, the second doesn’t, that is, it  
also places the figures one above the other. It happens both with  
the “MacTeX”-version of ConTeXt and with the minimals.

What can I do to place two figures side by side with a single caption?
Thanks in advance,
Robert Blackstone
___
If your question is of interest to others as well, please add an  
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] good layout for tech manual

2009-05-08 Thread Thomas Floeren

Hi,

I’m doing also manuals (utility vehicles), graphics are mainly not  
screenshots but drawings (or photos), but I have also chapters which  
consist mainly in screenshots (of a 640px or so  control device).

My messures refere to A5 landscape.
Best solution for me so far: a constant margin of about 45 mm where I  
can put my images/screenshots in; the images go in as  
\place[margin]; so they are always aligned on top and  
respecting each other;). Sometimes I do a  \margintext or \inmargin  
but preferably vers the end of the production.
It happens that on some pages the margin will be empty. For me this is  
ok.
The advantage is, that you’ll rest quite flexible, when you have to  
insert new things or to replace images. The flow-text flow is quite  
good.


In annexe I put my env-file (a bit cleaned-up), so you can get an idea  
(once again: its a5 landscape).


env_rxt_cleaned.tex
Description: Binary data
Although a bit cleaned it contain s much stuff of a context newby, but  
maybe you get the idea.


Hope I could help

Greetings from Switzerland
Thomas



On May 5, 2009, at 18:17 , Markus Hubig wrote:


Hi @all,

at the moment I'm writing a tech manual with a lt of screenshots  
& plots.
I've played around to find the perfect layout for my document but  
I'm not fully

satisfied with what I have till now.

8<---schnipp-

\setuppapersize[A4][A4]
\setuplayout [topspace=25mm,
  bottomspace=50mm,
  backspace=30mm,
  leftmargin=23mm,
  rightmargin=23mm]

8<---schnapp-

The big problem I have is because of the many screenshots there's a  
lot

of unused space in my document. Maybe some of you can give me a  tip
for a better layout ...

Markus

--
---"it's like this"--
even samurai have teddy bears
and even teddy bears get drunk
___
If your question is of interest to others as well, please add an  
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] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren

This is great!

Thanks for having it integrated into the beta.

And generally spoken  a thousand thanks (ok, maybe a few hundreds) to  
all the contributing people on this list, which has become my primary  
source of ... thinking further. :)

and of course of information of any kind:)

Greets
Tomas



Thomas Floeren wrote:

Thanks for the phantom hint!
I made a macro that I'll put at the beginning of each component  
file, after

the chapter header:
\def\synCorr{\vphantom{}\vskip- 
\lineheight}

I think this will do it for the moment.


it's fixed in the beta

-
 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] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren

This is really great.
Thanks!

I'm aware that actually the MkII probs must be a paine in the ass, as  
youre quite heavily working on the MkIV.
I will change to MkIV as soon as possible, but for the moment I have  
to produce and I have a deadline (30.4.), so MkII is my choice ;) Hope  
you understand this.


Greetings
and Thanks for the great support on this list.

Thomas


On Apr 16, 2009, at 16:05 , Hans Hagen wrote:


Thomas Floeren wrote:

Thanks for the phantom hint!
I made a macro that I'll put at the beginning of each component  
file, after

the chapter header:
\def\synCorr{\vphantom{}\vskip- 
\lineheight}

I think this will do it for the moment.


it's fixed in the beta

-
 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] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren
Thanks for the phantom hint!

I made a macro that I'll put at the beginning of each component file, after
the chapter header:
\def\synCorr{\vphantom{}\vskip-\lineheight}

I think this will do it for the moment.

Thanks and Greetings
Thomas



Otared Kavian <mailto:ota...@gmail.com> scribbled on Thursday, April 16, 2009
1:14 PM:

> Hi Thomas,
> 
> I tested your example: indeed in the latest mkii the problem you
> mention appears (however it doesn't in the latest mkiv, nor in mkii
> ConTeXt  ver: 2009.01.18 14:39 MKII  fmt: 2009.2.19  int: english/
> english).
> 
> A temporary solution (not in the spirit of ConTeXt though…) is the
> following: add a \vphantom before the first occurence of the synonim,
> that is
> \vphantom{\abs}
> assuming that \abs is already defined: rewriting your example one
> gets: 
> 
> \definesynonyms[testAbbrev][testAbbrevs][\infull]
> %\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
> \testAbbrev[abs]{\sc abs}{Antiblockiersystem}
> 
> \starttext
> This is a test.\vphantom{\abs}
> Ausfall des \abs\ und \endgraf % +1 space
> Ausfall des \abs\ und  % OK
> 
> Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
> Ausfall des \infull{abs} (\abs)  %% same behavior
> 
> \page
> 
> Ausfall des \abs\ und \endgraf % OK
> Ausfall des \abs\ und  % OK
> 
> \stoptext
> 
> Best regards: OK
> 
> 
> On 16 avr. 09, at 12:50, Thomas Floeren wrote:
> 
>> 
>> Hello,
>> 
>> I have a problem with synonyms in recent context betas:
>> 
>> At the first occurrence of a synonym in a document there is an
>> additional horizontal white space in front of the synonym.
>> 
>> The space does not show up in further occurrences.
>> 
>> Minimal:
>> 
>> % coding: utf-8
>> \enableregime[utf]
>> 
>> \definesynonyms[testAbbrev][testAbbrevs][\infull]
>> %\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
>> \testAbbrev[abs]{\sc abs}{Antiblockiersystem}
>> 
>> \starttext
>> 
>> Ausfall des \abs\ und \endgraf % +1 space
>> Ausfall des \abs\ und  % OK
>> 
>> %Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
>> %Ausfall des \infull{abs} (\abs)  %% same behavior
>> 
>> \page
>> 
>> Ausfall des \abs\ und \endgraf % OK
>> Ausfall des \abs\ und  % OK
>> 
>> \stoptext
>> 
>> ConTeXt  ver: 2009.04.15 12:15 MKII  fmt: 2009.4.16  int: english/
>> english
>> 
>> Same thing with the version from 13.4.2009.
>> contextlive (2009.03.06) however does not show the problem.
>> 
>> 
>> Is there any solution around?
>> 
>> Thanks in advance
>> 
>> Thomas
>> 
>>
__
_
>> If your question is of interest to others as well, please add an
>> entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
>> http://www.pragma-ade.nl / http://tex.aanhet.net 
>> archive  : https://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>>
__
_

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

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


[NTG-context] MkII synonyms additional space problem

2009-04-16 Thread Thomas Floeren
 
Hello,

I have a problem with synonyms in recent context betas:

At the first occurrence of a synonym in a document there is an additional 
horizontal white space in front of the synonym.

The space does not show up in further occurrences.

Minimal:

% coding: utf-8
\enableregime[utf]

\definesynonyms[testAbbrev][testAbbrevs][\infull]
%\setupsynonyms[testAbbrev][next=\autoinsertnextspace]
\testAbbrev[abs]{\sc abs}{Antiblockiersystem}

\starttext

Ausfall des \abs\ und \endgraf % +1 space
Ausfall des \abs\ und  % OK

%Ausfall des \infull{abs} (\abs) \endgraf %% same behavior
%Ausfall des \infull{abs} (\abs)  %% same behavior

\page

Ausfall des \abs\ und \endgraf % OK
Ausfall des \abs\ und  % OK

\stoptext

ConTeXt  ver: 2009.04.15 12:15 MKII  fmt: 2009.4.16  int: english/english

Same thing with the version from 13.4.2009.
contextlive (2009.03.06) however does not show the problem.


Is there any solution around?

Thanks in advance

Thomas

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

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


Re: [NTG-context] new beta

2009-03-20 Thread Thomas Floeren
Hi,

when I use enco-fde or -ffr (others not tried) I get an error with the beta
from 19.3.:


%coding: utf-8
\enableregime[utf]
\mainlanguage[de]
\useencoding[fde]
% \useencoding[ffr]

\starttext
blabla
\stoptext


ConTeXt  ver: 2009.03.19 10:04 MKII  fmt: 2009.3.the\normalday   int:
english/e
nglish

[...]

encoding: coding fde is loaded
(c:/Programme/texlive/2008/../texmf-local/tex/context/base/enco-fde.tex
! Missing { inserted.
 
   }
\dosetlanguagespecifics ...languagespecifics [#2]}
  \ifdim \wd \scratchbox
>\z...

\next2 ...Z}\installcompoundcharacter "S {SS}}{#1}
  \doprocesscommaitem 
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance
\...
l.38 \stoplanguagespecifics
   
?  

Greetings
Thomas


-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Hans Hagen
Gesendet: Dienstag, 17. März 2009 11:49
An: mailing list for ConTeXt users
Betreff: [NTG-context] new beta

Hi,

In the process of a major cleanup and code split I uploaded a beta. Some
important changes are:

- initialization code is ready for upcoming luatex
- language files have been cleaned up
- core- is renamed to tabl-
- several changes in file names and splits of files
- for those using helpers, in mkiv now syst-aux is the place to look
- some non used files removed
- some speedup of helper macros (only in mkiv)

On Taco and my machine test docs come out right but there might be problems
left (no tricky new things so solvable fast).


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
___


[NTG-context] Consistent row spacing in TABLEs

2009-03-10 Thread Thomas Floeren
Hello,

 

I have a problem to get consistent row spacing in TABLEs when the whitespace
in the document is set to any other than 'none'.

 

Example:

 

% coding: utf-8

\enableregime[utf]

  

\setupwhitespace[medium]

% \setupwhitespace[none] %% with this it works fine

 

\setupTABLE [spaceinbetween=7pt,split=yes]

 

\starttext

\bTABLE

\dorecurse{50}{\bTR \bTD table cell \eTD \bTD table cell \eTD \eTR}

\eTABLE

\stoptext

 

The row spacing after the page break seems to be correct, but on the first
page the vertical space is heavily reduced (as it is in one-page TABLEs).

The only solution I found was to change the whitespace setting to none
before each table.

 

Is there any other workaround? Or am I doing something completely wrong?

 

ConTeXt  ver: 2009.02.25 14:43 MKII

 

Thanks in advance

Thomas

 

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

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


Re: [NTG-context] local footnotes

2009-02-20 Thread Thomas Floeren


Hi Albrecht,

have you tried my proposal from 13.2.08?
(http://archive.contextgarden.net/message/20090213.144419.432c095e.en.html)

Maybe there is a better solution (?) but with my context installation and
mkII it just works fine this way.

Greetings
Thomas




\setupoutput[pdftex]
\starttext
\startlocalfootnotes[n=0,conversion=characters]
\placetable[here][]{}
% \placelegend
{
\tfx
\setupTABLE [frame=off]
\bTABLE
\bTR\bTD 1990 \eTD\bTD 1991 \eTD\eTR

\bTR\bTD 2.\note[foot:a] \eTD\bTD 19.0 \eTD\eTR

\bTR\bTD 3.\note[foot:b] \eTD\bTD
26.1 \eTD\eTR
\eTABLE
}
\footnotetext[foot:a]{Bezogen auf das Jahresmittel der Gesamtbevoelkerung}
\footnotetext[foot:b]{Bezogen auf das Jahresmittel der Stadtbevoelkerung}
{\placelocalfootnotes}
\stoplocalfootnotes
\stoptext

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Albrecht Kauffmann
Gesendet: Freitag, 20. Februar 2009 09:18
An: mailing list for ConTeXt users
Betreff: [NTG-context] local footnotes

Hi all,

please have a look to the following small table with its own footnotes:

\setupoutput[pdftex]
\starttext
\startlocalfootnotes[n=0,conversion=characters]
\placetable[here][]{}
\placelegend
{
\tfx
\setupTABLE [frame=off]
\bTABLE
\bTR\bTD   1990 \eTD\bTD 1991  \eTD\eTR

\bTR\bTD 2.\footnote[foot:a]{Bezogen auf das Jahresmittel der
Gesamtbevoelkerung} \eTD\bTD
19.0 \eTD\eTR

\bTR\bTD 3.\footnote[foot:b]{Bezogen auf das Jahresmittel der
Stadtbevoelkerung} \eTD\bTD
26.1 \eTD\eTR
\eTABLE
}
{\placelocalfootnotes}
\stoplocalfootnotes
\stoptext

The problem is that the footnotes are printed centered over a very small
linewidth. To avoid this I can put every footnote text in a \hbox and then
use \leftaligned{\placelocalfootnotes}}, but this
is rather cumbersome. Has anyone a better solution?

With many thanks in advance,
Albrecht


___
If your question is of interest to others as well, please add an 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] local footnotes

2009-02-13 Thread Thomas Floeren
-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Albrecht Kauffmann
Gesendet: Mittwoch, 11. Februar 2009 16:35
An: mailing list for ConTeXt users
Betreff: [NTG-context] local footnotes

Hi all,

please have a look to the following small table with its own footnotes:

\setupoutput[pdftex]
\starttext
\startlocalfootnotes[n=0,conversion=characters]
\placetable[here][]{}
\placelegend
{
\tfx
\setupTABLE [frame=off]
\bTABLE
\bTR\bTD   1990 \eTD\bTD 1991  \eTD\eTR

\bTR\bTD 2.\footnote[foot:a]{Bezogen auf das Jahresmittel der
Gesamtbevoelkerung} \eTD\bTD
19.0 \eTD\eTR

\bTR\bTD 3.\footnote[foot:b]{Bezogen auf das Jahresmittel der
Stadtbevoelkerung} \eTD\bTD
26.1 \eTD\eTR
\eTABLE
}
{\placelocalfootnotes}
\stoplocalfootnotes
\stoptext

The problem is that the footnotes are printed centered over a very small
linewidth. To avoid this I can put every footnote text in a \hbox and then
use \leftaligned{\placelocalfootnotes}}, but this
is rather cumbersome. Has anyone a better solution?

With many thanks in advance,
Albrecht



Hi,

maybe like this:


\setupoutput[pdftex]
\starttext
\startlocalfootnotes[n=0,conversion=characters]
\placetable[here][]{}
% \placelegend
{
\tfx
\setupTABLE [frame=off]
\bTABLE
\bTR\bTD   1990 \eTD\bTD 1991  \eTD\eTR

\bTR\bTD 2.\note[foot:a] \eTD\bTD 19.0 \eTD\eTR

\bTR\bTD 3.\note[foot:b] \eTD\bTD
26.1 \eTD\eTR
\eTABLE
}
\footnotetext[foot:a]{Bezogen auf das Jahresmittel der Gesamtbevoelkerung}
\footnotetext[foot:b]{Bezogen auf das Jahresmittel der Stadtbevoelkerung}
{\placelocalfootnotes}
\stoplocalfootnotes
\stoptext


This gives footnotes at textwidth.

Greetings

Thomas

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

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://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] backgrounds: help needed

2009-01-29 Thread Thomas Floeren

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Thomas Floeren
Gesendet: Mittwoch, 28. Januar 2009 08:14
An: 'Alan BRASLAU'; ntg-context@ntg.nl
Betreff: Re: [NTG-context] backgrounds: help needed

-Ursprüngliche Nachricht-
Von: Alan BRASLAU [mailto:alan.bras...@cea.fr] 
Gesendet: Dienstag, 27. Januar 2009 17:04
An: ntg-context@ntg.nl
Cc: thomas.floe...@boschung.com; 'Aditya Mahajan'
Betreff: Re: [NTG-context] backgrounds: help needed

On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote:
> yes, 2009 of course; 

> > On Tue, 27 Jan 2009, Thomas Floeren wrote:
> >
> > For me this works only with context 2008-10-31.
> >
> > It doesn't work with the beta from 2008-01-18 (no background).
> 
> Do you mean 2009-01-18?
> 
> Aditya

The example works correctly with
ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.25  int: english/english
as well as with MKII

Alan


Thanks for your answer.

I installed the 2009-01-18 yesterday at home on my mac. Everything works
fine!

Now I re-reinstalled the 2009-01-18 on the windows machine at work, and I
get the same result as before: no gray background.
I even did the "texexec --make metafun --standalone" from Wolfgang, but
still no background. 

I noticed that on the win system the -mpgraph.4000 etc. and
-mpgraph.keep files don't appear at all; they do appear of course with
2008-10-31. Appearently these are holding the code for the background.

Any ideas?

Thanks in advance
Thomas



Finally I've found the problem.

In the cont-sys files from 2009-01-18 the following two lines are enabled:

\runMPgraphicstrue
\runMPTEXgraphicstrue

(in 2008-10-31 they are still outcommented)


But to make this work on windows a few additional steps were necessary:

1. texexec --make --alone metafun (as Wolfgang already mentioned)

2. copy the new metafun.mem from \Documents and
Settings\username\.texlive2008\texmf-var\web2c\ to the 'normal' texmf
directory (\texlive\2008\texmf-var\web2c\metapost).

3. Enable write18 in the texmf.cnf

4. remake the formats


Greetings
Thomas

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

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://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] backgrounds: help needed

2009-01-27 Thread Thomas Floeren
-Ursprüngliche Nachricht-
Von: Alan BRASLAU [mailto:alan.bras...@cea.fr] 
Gesendet: Dienstag, 27. Januar 2009 17:04
An: ntg-context@ntg.nl
Cc: thomas.floe...@boschung.com; 'Aditya Mahajan'
Betreff: Re: [NTG-context] backgrounds: help needed

On Tuesday 27 January 2009 15:08:29 Thomas Floeren wrote:
> yes, 2009 of course; 

> > On Tue, 27 Jan 2009, Thomas Floeren wrote:
> >
> > For me this works only with context 2008-10-31.
> >
> > It doesn't work with the beta from 2008-01-18 (no background).
> 
> Do you mean 2009-01-18?
> 
> Aditya

The example works correctly with
ConTeXt  ver: 2009.01.18 14:39 MKIV  fmt: 2009.1.25  int: english/english
as well as with MKII

Alan


Thanks for your answer.

I installed the 2009-01-18 yesterday at home on my mac. Everything works
fine!

Now I re-reinstalled the 2009-01-18 on the windows machine at work, and I
get the same result as before: no gray background.
I even did the "texexec --make metafun --standalone" from Wolfgang, but
still no background. 

I noticed that on the win system the -mpgraph.4000 etc. and
-mpgraph.keep files don't appear at all; they do appear of course with
2008-10-31. Appearently these are holding the code for the background.

Any ideas?

Thanks in advance
Thomas

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

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


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren
yes, 2009 of course; 
thanks.

Thomas
-Ursprüngliche Nachricht-
Von: Aditya Mahajan [mailto:adit...@umich.edu] 
Gesendet: Dienstag, 27. Januar 2009 14:57
An: thomas.floe...@boschung.com; mailing list for ConTeXt users
Betreff: Re: [NTG-context] backgrounds: help needed

On Tue, 27 Jan 2009, Thomas Floeren wrote:
>
> For me this works only with context 2008-10-31.
>
> It doesn't work with the beta from 2008-01-18 (no background).

Do you mean 2009-01-18?

Aditya

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

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


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren

-Ursprüngliche Nachricht-
Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] 
Gesendet: Dienstag, 27. Januar 2009 10:12
An: thomas.floe...@boschung.com; mailing list for ConTeXt users
Betreff: Re: [NTG-context] backgrounds: help needed

On Tue, Jan 27, 2009 at 9:50 AM, Thomas Floeren
 wrote:

> This works for me.
>
> \setupcolors[state=start]
>
> \definetextbackground
>   [example]
>   [location=paragraph,
>background=color,
>backgroundcolor=middlegray,
>frame=off]
>
> \starttext
>
> \input knuth
>
> \startexample
> \dorecurse{4}{\input knuth\par}
> \stopexample
>
> \input knuth
>
> \stoptext
>
> Wolfgang

> For me this works only with context 2008-10-31.
>
> It doesn't work with the beta from 2008-01-18 (no background).

MkII or MkIV?

Can you try "texexec --make metafun --standalone".

Wolfgang



MkII.
I just reinstalled the october version; everything ok.
btw: It seems that it still worked fine with a context-beta from 2008-12-01.

Thomas

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

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


Re: [NTG-context] backgrounds: help needed

2009-01-27 Thread Thomas Floeren


__

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Wolfgang Schuster
Gesendet: Mittwoch, 21. Januar 2009 00:08
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] backgrounds: help needed


Am 20.01.2009 um 23:51 schrieb Alan BRASLAU:

> I, too, do not understand the
> \definetextbackground
> \starttextbackground
> \stoptextbackground
> commands, even though I tried looking at "details.pdf" (and core- 
> pgr.tex).
> My particular problem is rather classic, that of illustrating  
> examples, set off from the main text.
> I first used
> \defineframedtext [example]
> [width=fit,background=screen,backgroundscreen=0.7]
> \startexample
> ...
> \stopexample
> and this is appropriate if the example is short enough to fit on one  
> page.
> However, a long example (many paragraphs) that spans more than one  
> page
> runs off the bottom.
> Textbackground seems more appropriate, so I tried
> \definetextbackground [example]
> [location=paragraph,backgroundcolor=middlegray,frame=off]
> \definestartstop [example]
> [before={\starttextbackground[example]},after=\stoptextbackground]
> but this does not work. I tried other variants (such as adding  
> state=start, ...) with no success.
> Does anyone have suggestions on where to look for further  
> documentation or examples of use?


This works for me.

\setupcolors[state=start]

\definetextbackground
   [example]
   [location=paragraph,
background=color,
backgroundcolor=middlegray,
frame=off]

\starttext

\input knuth

\startexample
\dorecurse{4}{\input knuth\par}
\stopexample

\input knuth

\stoptext

Wolfgang



For me this works only with context 2008-10-31.

It doesn't work with the beta from 2008-01-18 (no background).

Greetings
Thomas


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

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://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
___