Re: [NTG-context] Footnote disappear in placeongrid

2013-05-02 Thread H. Özoguz

Is this a bug, or has anybody an idea for a workaround?

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

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 disappear in placeongrid

2013-05-02 Thread Wolfgang Schuster

Am 02.05.2013 um 08:01 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Is this a bug, or has anybody an idea for a workaround?


Add the \atomigrateinserts command to your document, it is necessary when you 
have
footnotes in a box, e.g. \framed or \placeongrid.

\setuplayout[grid=yes]

\automigrateinserts

\starttext

First\footnote{One} note.

\placeongrid{Second note.\footnote{Two}}

Third\footnote{Three} note.

\stoptext

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

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


Re: [NTG-context] TEXpage filename

2013-05-02 Thread Wolfgang Schuster

Am 01.05.2013 um 23:02 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com:

 
 Am 01.05.2013 um 12:16 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 Hello,
 
 In the production of (scientific) articles for journal submissions,
 one is often expected to supply the figures as separate files.
 
 One workflow can be through the use of \startTEXpage\stopTEXpage
 followed by an external extraction of single pdf pages to separate
 files.
 
 However, is it possible or would it be possible to directly output to a
 named file, as in:
  \startTEXpage{figure1.pdf}
  \stopTEXpage
 or perhaps
  \startTEXpage [file=figure1.pdf]
  \stopTEXpage
 ? (I could not find an answer looking at the source.)
 
 One could then (optionally) reinclude the figure in a review copy of
 the full text through the use of \externalfigure [figure1]
 
 You can put each graphic in a separate document and tell context to
 create a pdf with the \typesetfile command.

\startbuffer[extract:before]
  \startTEXpage
\stopbuffer

\startbuffer[extract:after]
  \stopTEXpage
\stopbuffer

\def\startextract
  {\dosingleempty\dostartextract}

\def\dostartextract[#1]%
  {\edef\extractfilename{#1}%
   \grabbufferdata[extract:content][startextract][stopextract]}

\def\stopextract
  {\doifsomething\extractfilename
 
{\savebuffer[list={extract:before,extract:content,extract:after},file=\extractfilename.tex,prefix=no]%
  \typesetfile[\extractfilename][]}}

\starttext

\startplacefigure[title={External file}]
  \startextract[extract-1]
  \blackrule[width=4cm,height=4cm,color=orange]
  \stopextract
\stopplacefigure

\stoptext

 Creating a new environment which does all of this itself isn’t hard
 because most of the stuff which is needed can be seen in the example
 below.
 
 % the external file
 
 \startbuffer[figure-1]
 \startTEXpage
 \blackrule[width=4cm,height=4cm,color=blue]
 \stopTEXpage
 \stopbuffer
 
 \savebuffer[list=figure-1,file=figure-1.tex,prefix=no]
 
 % process the external file at runtime
 
 \starttext
 \placefigure{External file}{\typesetfile[figure-1]}

The second argument for \typesetfile is needed to get this working:

\placefigure{External file}{\typesetfile[figure-1][]}

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

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


Re: [NTG-context] Footnote disappear in placeongrid

2013-05-02 Thread Alan BRASLAU
On Thu, 2 May 2013 08:20:54 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Add the \atomigrateinserts command to your document, it is necessary when you 
 have
 footnotes in a box, e.g. \framed or \placeongrid.

Added to
http://wiki.contextgarden.net/Footnotes
although further explanation would eventually be useful.

I have noticed this bug before (using local footnotes within 
\startframedtext\stopframedtext).

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

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


Re: [NTG-context] Footnote disappear in placeongrid

2013-05-02 Thread Wolfgang Schuster

Am 02.05.2013 um 10:01 schrieb Alan BRASLAU alan.bras...@cea.fr:

 On Thu, 2 May 2013 08:20:54 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 Add the \atomigrateinserts command to your document, it is necessary when 
 you have
 footnotes in a box, e.g. \framed or \placeongrid.
 
 Added to
 http://wiki.contextgarden.net/Footnotes
 although further explanation would eventually be useful.
 
 I have noticed this bug before (using local footnotes within 
 \startframedtext\stopframedtext).

http://www.ntg.nl/pipermail/ntg-context/2012/070241.html

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

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


Re: [NTG-context] font weirdness

2013-05-02 Thread Meer, H. van der
In desperation I finally tried

mtxrun --script fonts --reload --force (May The Force be with you, for the 
scifi fans)

That helped. It looks like the font database got corrupted, but I cannot guess 
why. Because I do not know whatI did to create the havoc, I cannot recreate the 
problem (nor do I want to, I may add).

Hans van der Meer



On 1 May 2013, at 10:25 PM, Wolfgang Schuster 
schuster.wolfg...@gmail.commailto:schuster.wolfg...@gmail.com wrote:


Am 01.05.2013 um 20:08 schrieb Meer, H. van der 
h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl:

From one moment to the next typesetting in Cambria suddenly gets sour:
! Math error: parameter \Umathquad\displaystyle is not set.

Doing mtxrun --script fonts --reload did not help.
Any idea what can have cause the trouble? The fact that I have used \showfont a 
few times, perhaps?

I have no problems with Cambria.

I am completely in the dark.

Do you have a minimal example which demonstrates the problem.

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

maillist : ntg-context@ntg.nlmailto: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 disappear in placeongrid

2013-05-02 Thread Sietse Brouwer
Wolfgang wrote:
 Add the \automigrateinserts command to your
 document, it is necessary when you have
 footnotes in a box, e.g. \framed or \placeongrid.

Would it make sense for \setupalign[grid] to automatically call
\automigrateinserts, or
are there situations when
(a) one typesets on a grid, and
(b) one does not want \automigrateinserts in the document?

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

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] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
A call to \switchtobodyfont introduces extra vertical spacing as can be seen in 
the example.
Is this intentional or is it something like a % missing somewhere in a macro?

Hans van der Meer


\setuppapersize[A6][A6]
\setupbodyfont[lucidaot]
\starttext
First line.\crlf
\start
\switchtobodyfont[euler]
Font switch here.\crlf
\stop
Last line.
\hairline
First line.\crlf
\start
Font switch here.\crlf
\stop
Last line.
\stoptext


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

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


Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
A call to \switchtobodyfont introduces extra vertical spacing as can be seen in 
the example.
Is this intentional or is it something like a % missing somewhere in a macro?

Hans van der Meer

Sorry, flew accidentally to early away. Here the attached output.

\setuppapersize[A6][A6]
\setupbodyfont[lucidaot]
\starttext
First line.\crlf
\start
\switchtobodyfont[euler]
Font switch here.\crlf
\stop
Last line.
\hairline
First line.\crlf
\start
Font switch here.\crlf
\stop
Last line.
\stoptext




fontswitch.pdf
Description: fontswitch.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] extra line after switchtobodyfont

2013-05-02 Thread Marco Patzer
On 2013–05–02 Meer, H. van der wrote:

 A call to \switchtobodyfont introduces extra vertical spacing as can be seen 
 in the example.
 Is this intentional or is it something like a % missing somewhere in a macro?

Loading the typescript in the setup area should get rid of the
space.

See http://www.ntg.nl/pipermail/ntg-context/2013/072892.html

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Chapter title in headertexts only

2013-05-02 Thread Piotr Kopszak
Hello list,

I am trying to suppress chapter heading and at the same time use
chapter title in the headertext. Is it possible with mkIV?

Best

Piotr
-- 
http://okle.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
I see. But that means I have to load various typescript files beforehand and 
then switch at a later moment. It is possible of course, but unexpected and a 
pain in the ass - if I may say so. Could it be solved once and for all by going 
through the typescript files? If I can find time for it, I will look into the 
matter too.

Hans van der Meer



On 2 May 2013, at 12:48 PM, Marco Patzer home...@lavabit.com
 wrote:

 On 2013–05–02 Meer, H. van der wrote:
 
 A call to \switchtobodyfont introduces extra vertical spacing as can be seen 
 in the example.
 Is this intentional or is it something like a % missing somewhere in a macro?
 
 Loading the typescript in the setup area should get rid of the
 space.
 
 See http://www.ntg.nl/pipermail/ntg-context/2013/072892.html
 

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

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] Chapter title in headertexts only

2013-05-02 Thread Piotr Kopszak
Sorry, forgot about a minimal example. Here it is.


\setuphead[chapter][placehead=no]
\setupheadertexts[][chapter][][]
\starttext
\chapter{my chapter}
\input knuth
\stoptext

2013/5/2 Piotr Kopszak kops...@gmail.com:
 Hello list,

 I am trying to suppress chapter heading and at the same time use
 chapter title in the headertext. Is it possible with mkIV?

 Best

 Piotr
 --
 http://okle.pl



-- 
http://okle.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] extra line after switchtobodyfont

2013-05-02 Thread Meer, H. van der
Indeed, adding \usetypescriptfile[euler]\usetypescript[euler] before \starttext 
makes the extra vertical spacing go away in a simple test file. But that 
doesn't solve my problem, because I am typesetting xml data wherein a font 
change can be dictated from the inside. See the example code (supporting 
modules not included):

\startbuffer[font]
?xml version=1.0 encoding=UTF-8?
root
First line.br/
fontswitch family=euler
Font switch here.
/fontswitchbr/
Last line.
/root
\stopbuffer
\xmlprocessbuffer{root}{font}{}

There is no way to have the typescript loaded before the \starttext, because it 
is not known what fonts will be called up by the xml. And loading it from 
within the data processed is too late.
I therefore conclude that this typescript problem should be fundamentally 
solved, instead of resorting to a subterfuge as loading things beforehand to 
avoid - what seems to me - coding mistakes.

Hans van der Meer



On 2 May 2013, at 12:48 PM, Marco Patzer home...@lavabit.com wrote:

 On 2013–05–02 Meer, H. van der wrote:
 
 A call to \switchtobodyfont introduces extra vertical spacing as can be seen 
 in the example.
 Is this intentional or is it something like a % missing somewhere in a macro?
 
 Loading the typescript in the setup area should get rid of the
 space.
 
 See http://www.ntg.nl/pipermail/ntg-context/2013/072892.html
 
 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] use plain LuaTeX in ConTeXt standalone

2013-05-02 Thread Sietse Brouwer
Hi Hans,

Currently
mtxrun --script font --reload --simple
creates luatex-fonts-names.lua, the font list/database for Plain LuaTeX;
and
mtxrun --script font --reload
creates names.tma and names.tmc, the font list for ConTeXt.

Perhaps it makes sense if
mtxrun --script font --reload
always creates all font lists? That way users of Plain LuaTeX could
never run into 'oh damn, I forgot to create the font database' —
things would go right automatically. And the --simple flag would no
longer be needed.

Does that make sense, or am I overlooking some complexity?

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

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] Chapter title in headertexts only

2013-05-02 Thread Piotr Kopszak
OK, found a sufficiant solution

 \setuphead[chapter][placehead=no]
 \setupheadertexts[][\setups{a}][][]\
\startsetups[a]
\expanded{\fetchmark[a][first]}
\stopsetups
\definemarking[a]
\starttext
 \chapter{my chapter}
\marking[a]{my chapter}
 \input knuth
 \stoptext

Any other ideas?

Piotr
2013/5/2 Piotr Kopszak kops...@gmail.com:
 Sorry, forgot about a minimal example. Here it is.


 \setuphead[chapter][placehead=no]
 \setupheadertexts[][chapter][][]
 \starttext
 \chapter{my chapter}
 \input knuth
 \stoptext

 2013/5/2 Piotr Kopszak kops...@gmail.com:
 Hello list,

 I am trying to suppress chapter heading and at the same time use
 chapter title in the headertext. Is it possible with mkIV?

 Best

 Piotr
 --
 http://okle.pl



 --
 http://okle.pl



-- 
http://okle.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] log reporting?

2013-05-02 Thread Meer, H. van der
How do I enable the output of for example:
report_typescripts(unknown library %a or %a,name_one,name_two)
defined by
local report_typescripts = logs.reporter(fonts,typescripts)

Hans van der Meer



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

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] log reporting?

2013-05-02 Thread Sietse Brouwer
Hi Hans,

 How do I enable the output of for example:
 report_typescripts(unknown library %a or %a,name_one,name_two)

`logs.reporter(fonts,typescripts)` returns a function for writing
to the log. Calling that function produces this sort of output:

fonts   typescripts  bla bla bla

Sometimes calls to a reporter are wrapped in a 'only if tracker x is
active'. This is not the case with this reporter, though. If this
reporter is not printing anything, it's because the error condition is
not arising, not because you didn't activate some tracker.

For completeness: the wiki has more on trackers, including a list of them.
http://wiki.contextgarden.net/Trackers

And this is what a reporter wrapped in a tracker looks like:

-- defining the tracker
local trace_casing = false
trackers.register(typesetters.casing, function(v) trace_casing = v end)

-- checking whether the tracker is active
if trace_casing then
report_casing(case trigger %a, instance %a, result
%a,attr%100,div(attr,100),ok)
end

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

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] nice font

2013-05-02 Thread Hans Hagen

https://github.com/antijingoist/open-dyslexic/tree/master/otf
--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
%D \module
%D   [   file=type-imp-opendyslexic,
%Dversion=2013.05.02,
%D  title=\CONTEXT\ Typescript Macros,
%D   subtitle=Opendyslexic Fonts,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA ADE \ \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\starttypescriptcollection[opendyslexic]

\starttypescript [\s!serif] [opendyslexic] [\s!name]
\setups[\s!font:\s!fallback:\s!serif]
\definefontsynonym [\s!Serif]   
[\s!file:opendyslexic-regular.otf][\s!features=\s!default]
\definefontsynonym [\s!SerifBold]   [\s!file:opendyslexic-bold.otf] 
  [\s!features=\s!default]
\definefontsynonym [\s!SerifItalic] 
[\s!file:opendyslexic-italic.otf] [\s!features=\s!default]
\definefontsynonym [\s!SerifBoldItalic] 
[\s!file:opendyslexic-bolditalic.otf] [\s!features=\s!default]
\stoptypescript

\starttypescript [\s!sans] [opendyslexic] [\s!name]
\setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Sans]   
[\s!file:opendyslexicalta-regular.otf][\s!features=\s!default]
\definefontsynonym [\s!SansBold]   
[\s!file:opendyslexicalta-bold.otf]   [\s!features=\s!default]
\definefontsynonym [\s!SansItalic] 
[\s!file:opendyslexicalta-italic.otf] [\s!features=\s!default]
\definefontsynonym [\s!SansBoldItalic] 
[\s!file:opendyslexicalta-bolditalic.otf] [\s!features=\s!default]
\stoptypescript

\starttypescript[opendyslexic]
\definetypeface [opendyslexic] [\s!rm] [\s!serif] [opendyslexic] 
[\s!default]
\definetypeface [opendyslexic] [\s!ss] [\s!sans]  [opendyslexic] 
[\s!default]
\definetypeface [opendyslexic] [\s!tt] [\s!mono]  [dejavu]   
[\s!default] % [rscale=1.065]
\definetypeface [opendyslexic] [\s!mm] [\s!math]  [xits] 
[\s!default] % [rscale=1.020]
\stoptypescript

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

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] Chapter title in headertexts only

2013-05-02 Thread Wolfgang Schuster

Am 02.05.2013 um 17:20 schrieb Piotr Kopszak kops...@gmail.com:

 OK, found a sufficiant solution
 
 \setuphead[chapter][placehead=no]
 \setupheadertexts[][\setups{a}][][]\
 \startsetups[a]
 \expanded{\fetchmark[a][first]}
 \stopsetups
 \definemarking[a]
 \starttext
 \chapter{my chapter}
 \marking[a]{my chapter}
 \input knuth
 \stoptext
 
 Any other ideas?


\setuphead[chapter][placehead=empty]

\setupheadertexts[][chapter][][]

\starttext
\chapter{my chapter}
\input knuth
\stoptext

Wolfgang

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

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


Re: [NTG-context] extra line after switchtobodyfont

2013-05-02 Thread Wolfgang Schuster

Am 02.05.2013 um 12:40 schrieb Meer, H. van der h.vanderm...@uva.nl:

 A call to \switchtobodyfont introduces extra vertical spacing as can be seen 
 in the example.
 Is this intentional or is it something like a % missing somewhere in a macro?
 
 Hans van der Meer
 
 Sorry, flew accidentally to early away. Here the attached output.
 
 \setuppapersize[A6][A6]
 \setupbodyfont[lucidaot]
 \starttext
 First line.\crlf
 \start
 \switchtobodyfont[euler]
 Font switch here.\crlf
 \stop
 Last line.
 \hairline
 First line.\crlf
 \start
 Font switch here.\crlf
 \stop
 Last line.
 \stoptext

Is there a reason why you use \crlf to end the lines?

When you would end the paragraph after each line the additional line wouldn't 
appear.

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

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


[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
Hi
everyone.

I would
like to pose the following question: I would like to know how I can customize
the page number using an embedded graphic made ​​with METAFUN. I mean, I
wish someone would send me a simple example to do that, for example, a page
number or headers (chapter,
section, etc..)  may appear with a color background
or something else. The METAFUN manual provides, for example, the page number
within an ellipse, and the sections are underlined in orange.

Thank you
all for your patience and sorry for my poor English and my poor knowledge of
ConTeXt, but I'm studying hard reference manuals ConTeXt and hope to go slowly
improving, although I am not expert in computer programming languages ​​or even less in
mathematics.

Thanks very much.-- Manuel González Suárez
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster

Am 02.05.2013 um 23:31 schrieb MANUEL GONZALEZ SUAREZ 
gonzalezsman...@uniovi.es:

 
 Hi everyone.
 
 I would like to pose the following question: I would like to know how I can 
 customize the page number using an embedded graphic made ​​with METAFUN. I 
 mean, I wish someone would send me a simple example to do that, for example, 
 a page number or headers (chapter, section, etc..)  may appear with a color 
 background or something else. The METAFUN manual provides, for example, the 
 page number within an ellipse, and the sections are underlined in orange.
 
 Thank you all for your patience and sorry for my poor English and my poor 
 knowledge of ConTeXt, but I'm studying hard reference manuals ConTeXt and 
 hope to go slowly improving, although I am not expert in computer programming 
 languages ​​or even less in mathematics.
 
 Thanks very much.
 
These are only simple styles but the show how you can customize the heading and 
pagenumber.

\define[2]\ChapterCommand
  {\startframed[frame=off,bottomframe=on,framecolor=orange,width=fit]
#1\hspace[medium]#2
\stopframed}

\setuphead[chapter][command=\ChapterCommand]

\startuseMPgraphic{pagenumber}
  draw fullcircle xyscaled(OverlayWidth,OverlayHeight) withcolor \MPcolor{blue} 
;
\stopuseMPgraphic

\defineoverlay[pagenumber][\useMPgraphic{pagenumber}]

\define[1]\PagenumberCommand
  {\framed[frame=off,background=pagenumber]{#1}}

\setuppagenumbering[command=\PagenumberCommand]

\starttext
\chapter{This is a chapter}
\stoptext

Wolfgang

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

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

Re: [NTG-context] Footnote disappear in placeongrid

2013-05-02 Thread Wolfgang Schuster

Am 02.05.2013 um 11:20 schrieb Sietse Brouwer sbbrou...@gmail.com:

 Wolfgang wrote:
 Add the \automigrateinserts command to your
 document, it is necessary when you have
 footnotes in a box, e.g. \framed or \placeongrid.
 
 Would it make sense for \setupalign[grid] to automatically call
 \automigrateinserts, or
 are there situations when
 (a) one typesets on a grid, and
 (b) one does not want \automigrateinserts in the document?

The whole thing has nothing to do with the grid, you need the command
when a footnote appear and a \hbox or a \vbox which is used by \framed,
\bTABLE or \placeongrid.

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

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


[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
Wolfgang Thanks for your help.Your definition to customize the number of page works, but the command definition \ ChapterCommand gives me a compilation error. (with LuaTeX and MKIV).Thank you again. Now I see that is a bit more complicated than I imagined.Greetings.-- Manuel González Suárez
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster

Am 03.05.2013 um 00:27 schrieb MANUEL GONZALEZ SUAREZ 
gonzalezsman...@uniovi.es:

 Wolfgang Thanks for your help.
 Your definition to customize the number of page works, but the command 
 definition \ ChapterCommand gives me a compilation error. (with LuaTeX and 
 MKIV).

I guess you’re using a older context version (TeXLive 2012?) where you have to 
use

  \unexpanded\def\ChapterCommand#1#2{…}

Wolfgang

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

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

[NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread MANUEL GONZALEZ SUAREZ
I use TeXLive 2011 and I get the following error (the file name is custo.tex):mtx-context | warning: synctex is enabled
mtx-context | run 1: luatex --synctex=1 --fmt=C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en --lua=C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en.lui --backend=pdf ./custo.tex
This is LuaTeX, Version beta-0.70.1-2011061421 (rev 4277) 
 \write18 enabled.
(custo.tex

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2013.4.23  int: english/english

system   cont-new.mkiv loaded
(C:/texlive/2011/texmf-dist/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   custo.top loaded
(custo.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{C:/texlive/2011/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(C:/texlive/2011/texmf-dist/tex/context/base/type-siz.mkiv) (C:/texlive/2011/texmf-dist/tex/context/base/type-otf.mkiv){C:/texlive/2011/texmf-dist/fonts/map/dvips/lm/lm-math.map}{C:/texlive/2011/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file custo.tex at line 18
structuresectioning  chapter @ level 2 : 0.1 - This is a chapter
! Undefined control sequence.

system   tex  error on line 19 in file custo.tex: Undefined control sequence ...

 9 \stopuseMPgraphic
10 
11 \defineoverlay[pagenumber][\useMPgraphic{pagenumber}]
12 
13 \define[1]\PagenumberCommand
14   {\framed[frame=off,background="">
15 
16 \setuppagenumbering[command=\PagenumberCommand]
17 
18 \starttext
19   \chapter{This is a chapter}
20 \stoptext


\ChapterCommand #1#2-\startframed 
   [frame=off,bottomframe=on,framecolor=oran...
\placestructureheadnumbertext ...uctureheadtitle }
  }\fi \endheadplacement {\g...
\dohandlestructurehead ...structureheadnumbertext 
  \else \placestructureheadt...
l.19 \chapter{This is a chapter}

? 
! Undefined control sequence.

system   tex  error on line 19 in file custo.tex: Undefined control sequence ...

 9 \stopuseMPgraphic
10 
11 \defineoverlay[pagenumber][\useMPgraphic{pagenumber}]
12 
13 \define[1]\PagenumberCommand
14   {\framed[frame=off,background="">
15 
16 \setuppagenumbering[command=\PagenumberCommand]
17 
18 \starttext
19   \chapter{This is a chapter}
20 \stoptext


\ChapterCommand ...\hspace [medium]#2 \stopframed 
  
\placestructureheadnumbertext ...uctureheadtitle }
  }\fi \endheadplacement {\g...
\dohandlestructurehead ...structureheadnumbertext 
  \else \placestructureheadt...
l.19 \chapter{This is a chapter}

? 
metapost initializing instance 'metafun' using format 'metafun'
metapost loading 'metafun.mp' (experimental metapost version two)
backend  xmp  using file 'C:/texlive/2011/texmf-dist/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1, subpage 1
system   end file custo.tex at line 20
 )C:/texlive/2011/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf
mkiv lua stats   used config file  - selfautoparent:/texmfcnf.lua;selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - readable: 'C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026' (order 1)
mkiv lua stats   used cache path   - writable: 'C:/texlive/2011/texmf-var/luatex-cache/context/210a96fef5fbab446fd11afa77acb026'
mkiv lua stats   synctex tracing   - synctex has been enabled (extra log file generated)
mkiv lua stats   input load time   - 0.314 seconds
mkiv lua stats   stored bytecode data  - 285 modules, 60 tables, 345 chunks
mkiv lua stats   cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats   node memory usage - 27 glue_spec
mkiv lua stats   node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2385 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2542 direct, 2985 indirect, 5527 total
mkiv lua stats   randomizer- resumed with value 0.59913937803278
mkiv lua stats   lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats   result saved in file  - custo.pdf
mkiv 

Re: [NTG-context] METAFUN+CONTEXT+CUSTOMIZE

2013-05-02 Thread Wolfgang Schuster

Am 03.05.2013 um 00:45 schrieb MANUEL GONZALEZ SUAREZ 
gonzalezsman...@uniovi.es:

 I use TeXLive 2011 and I get the following error (the file name is custo.tex):

Use this definition

\define[2]\ChapterCommand
  {\framed
 [frame=off,bottomframe=on,framecolor=orange,width=fit]
 {#1\hspace[medium]#2}}


In newer versions (the environment form was added a few months ago) you can use

  \startframed … \stopframed

instead of

  \framed{…}

which makes it easier to format code when \framed has more content.

Wolfgang

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

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