[NTG-context] Request for metadata:keywords support in startdocument

2013-05-01 Thread Romain Diss
Hi,

This is probably adressed to Hans.
Is it possible to add the support for metadata:keywords in \startdocument?

scrn-ini.mkvi   l. 197
+++ \doifvariable{document}{metadata:keywords}
{\setupinteraction[\c!subject=\documentvariable{metadata:keywords}]}%

Thank you in advance.

-- 
Romain Diss
romain.d...@yahoo.fr
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Formatting enumerations in MKIV

2013-05-01 Thread Wolfgang Schuster

Am 01.05.2013 um 02:10 schrieb Lance Larsen lance.c.lar...@gmail.com:

 I am trying to configure an enumeration in MKiv, but it is not clear how to
 set some of the formatting. I need to be able to control the distance
 between the title and the enumeration text, but parameters such as
 'inbetween' seem to have no effect. Is there a parameter I can use to set
 the spacing. Also, how do I find out what parameters are available. I tried
 to figure out where defineenumeration is defined in the lua or mkiv files
 without luck.
 
 \starttext
 
 \defineenumeration[ref][alternative=left,inbetween=\blank]
 
 \ref Testing \par
 \ref Testing \par
 
 \stoptext

Your inbetween setting is ignored because \blank is a command to add vertical 
space
but the text of your enumeration is on the same line as the content and you need
a horizontal space.

To control the spacing you can change the width of the text with the “width” key
and the distance between the text and the content with the “distance” key.

\starttext

\defineenumeration[ref][alternative=left,width=2cm,distance=5mm]

\startref Testing \stopref

\startref Testing \stopref

\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] square in Cambria font

2013-05-01 Thread Meer, H. van der
Thanks, this indeed produces a square more akin to boxtimes in Cambria. But the 
situation seems even worse than I thought. Under the 40pt fontsize it is 
apparent that lucidaot's square has a thinner outline then boxtimes. Of the 
three fonts I tried (cambria, lmodern, lucidaot) it seems lmodern is the only 
one doing it right.

Hans van der Meer



On 1 May 2013, at 12:17 AM, Sietse Brouwer sbbrou...@gmail.com
 wrote:

 Hello Hans,
 
 The bad news: I think it's the font. The good news: here comes
 MetaPost to the rescue!
 
 I don't have Cambria, so I plucked a cambria.ttf file off the Internet
 somewhere, which contains both Cambria and Cambria Math. I don't know
 whether you have the same file/version, so YMMV, but it does exhibit
 the problem you describe.
 
 According to the lovely and free FontForge,
 * the WHITE SQUARE glyph (U+25A1) is 1060 units high
 * the SQUARED PLUS glyph (U+229E) is 1630 units high (of which 230
 below the baseline).
 
 This is in Cambria Math — Cambria does does not have either of these
 glyphs. I suspect the square size is a design decision: that the
 designers decided they wanted the white square to match the letters
 rather than the 'squared *' operators.
 
 Anyway, here's a very close MetaPost approximation of the 'squared
 plus' square, made by looking in with FontForge and copying the glyph
 dimensions. (And then tweaking them because some things still didn't
 look right; didn't manage to fix everything, alas.) It scales with the
 font size.
 
 Cheers,
 Sietse
 
 \setuppapersize[A7][A7]
 \setuppagenumber[state=stop]
 \setupbodyfont[cambria,40pt]
 
 \showframe
 \showgrid
 
 \startuseMPgraphic{square}
numeric u, strokewd, strokeht, sqwd, sqht;
u:= BodyFontSize / 2083;
strokewd := 128u;
strokeht := 123u;
sqwd := 1506u;
sqht := 1533u;
offset   := 200u;
pickup pensquare xscaled strokewd yscaled strokeht;
draw unitsquare xscaled sqwd yscaled sqht;
 
setbounds currentpicture to
boundingbox currentpicture
leftenlarged offset rightenlarged offset;
 \stopuseMPgraphic
 
 \def\mysquare{%
\lower \dimexpr \bodyfontsize / 2083 * 234
 \relax\hbox{\useMPgraphic{square}}%
 }
 
  try it out 
 
 \starttext
 
 $\square+\mysquare\boxplus$ \crlf
 $\mysquare\boxplus$
 
 \page[yes]
 
 $+ \ruledhbox{\boxplus}$  \crlf
 $+ \ruledhbox{\mysquare}$ \crlf
 $\ruledhbox{\boxplus}$  \crlf
 $\ruledhbox{\mysquare}$
 
 \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
 ___

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

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] Small bug in the result filename extension in log

2013-05-01 Thread Romain Diss
Hi,

I just noticed a small bug in the log of a context job. It has no incidence 
but maybe this can cause a side effect somewhere.

When a file contain several dot in its name, context remove the last part in 
the result filename in the log:

$ context test.foo.bar
...
system   files  jobname 'test.foo.bar', input './test.foo.bar', 
result 'test.foo'
...

However, the output is correct and one obtain 'test.foo.bar.pdf' and not 
'test.foo.pdf'.

All the best.

-- 
Romain Diss
romain.d...@yahoo.fr


signature.asc
Description: This is a digitally signed message part.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] parameters in startuseMPgraphic

2013-05-01 Thread Meer, H. van der
I used to pass (color) parameters to \startuseMPgraphic with:

\startuseMPgraphic{square}{acolor}
   draw unitsquare withcolor \MPvar{acolor}; % or \MPcolor{acolor}

In both cases I get the following error:

metapost initializing instance 'metafun' using format 'metafun'
metapost loading 'metafun' as 
'/Users/hansm/TeX/context-09/tex/texmf-context/metapost/context/base/metafun.mpiv'
 using method 'default'
metapost initializing number mode 'scaled'
checkmissing or ungrouped '=' after 'green' in line '7 
(442square:)'

Has something changed in this mechanism of parameter use, or am I doing 
something wrong?

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
___

[NTG-context] TEXpage filename

2013-05-01 Thread Alan BRASLAU
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]

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] Adobe Garamond Problems with letter combination fi

2013-05-01 Thread Arthur Reutenauer
 The Germans do not like ligatures across compound words, and that is
 much harder to do in an automated way (not in fonts themselves at
 least).

  That's a good point, but it's a slightly different issue from
prohibiting some ligatures altogether: in German ligatures should be
disabled depending on context, and that applies to all ligatures that
may be present in the font; while in Turkish some specific ligatures
should never occur at all, but the others are free to go.

  While we're on the subject, and since Thomas mentioned Reclam, I seem
to remember that dtv, another paperback publisher, uses a font with the
relatively rare ligature ft; I don't have any book by them handy at the
moment, but I assume that they do apply the same rule as with the other
ligatures and don't set them across compounds.  That's what I meant by
font-dependent ligatures; maybe I should have written typeface rather
than font.  Clearly you don't want to implement the prohibition of
ligatures across compounds at the font level.

Arthur (but I have the TeXbook on my way to BachoTeX.  It does
use ligatures)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Header not repeating for tabulate

2013-05-01 Thread lance.c.lar...@gmail.com
I tested this on the online context tool, and the tabulate repeats header in 
MKii, but doesn’t in MKiv. Have the settings changed in MKiv, or is the 
functionality not there yet?

 

-Lance Larsen

 

 

Date: Tue, 30 Apr 2013 14:08:44 -0700
From: Lance Larsen lance.c.lar...@gmail.com
To: ntg-context@ntg.nl
Subject: [NTG-context] Header not repeating for tabulate
Message-ID: 518032de.6dd2440a.6573.0...@mx.google.com
Content-Type: text/plain; charset=us-ascii

I created a table using tabulate. I want the header to repeat, and used the
following code. The table splits correctly, but the header doesn't repeat.
Any idea why the header doesn't repeat?

\setuptabulate[split=yes,header=repeat]
\starttabulatehead
\HL
\NC  \bf  Variable \NC \bf Value  \NC\bf Reference\NR
\HL \HL
\stoptabulatehead
\starttabulate[|lw(1in)|lw(1in)|l|]
\dorecurse{100}{\NC  Column 1 value \NC  Column 2 value \NC  Ref. Column 3
value  \NC \AR} \stoptabulate___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] Heading flow

2013-05-01 Thread lance.c.lar...@gmail.com


I have a word template I am trying to convert to context. In the word template, 
section headings are used to manage  bibliography numbering (i.e. each 
reference is included as a subsection). This translates fine to context except 
for one thing. Context headings seem to have a ‘keep with next’ type property 
such that if there is a long list of headings with no other paragraphs between, 
the headings go off the bottom of the page. I expect that I can change this by 
defining a custom heading via \setuphead, but how to I override the ‘keep with 
next’ behavior so that ?


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

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

Re: [NTG-context] latest beta and ancient greek module

2013-05-01 Thread Hans Hagen

On 4/30/2013 8:06 AM, Thomas A. Schmitz wrote:

On 04/30/2013 03:24 AM, Alan Bowen wrote:

The latest beta (ConTeXt  ver: 2013.04.30 00:31 MKIV beta) seems to have
a problem with the ancient greek module:


Indeed. Hans has removed support for \beginOLDTEX etc. - would have been
nice if he had told us... I have uploaded a new version which should
work again.


oh, i can add it ... i just saw it and wondered if it was used and 
couldn't grep it in


is it still wanted / needed?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] TEXpage filename

2013-05-01 Thread Sietse Brouwer
Alan wrote:
 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.

It might be easier to place the figure code in a separate file, with
some conditional code:
* if the figure file is being compiled directly, execute a
\startTEXpage ... \stopTEXpage at start and end
* if the figure file is not the compilation target, i.e. it is being
\input, skip the \startTEXpage and just include the figure code.

The MWE below *ought* to work, but it doesn't, and I can't get it
debugged. Perhaps \doifinputfileelse and \input don't play well
together? Assistance welcome!

Cheers,
Sietse

 mwe-mode-text.tex

% 2013-05-01
\doifinputfileelse{mwe-mode-text.tex}{
\startTEXpage
This is standalone compilation: \jobname
}{\relax}

\placefigure[][fig:cow]
   {This is a cow}
   {\externalfigure[cow]}

\doifinputfileelse{mwe-mode-text.tex}{
\stopTEXpage
}{\relax}


 mwe-mode-text-parent.tex

\setuppapersize[A6]
\starttext

\section{Hello hello}

\input mwe-mode-text

\jobname

\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] latest beta and ancient greek module

2013-05-01 Thread Thomas A. Schmitz

On 05/01/2013 04:13 PM, Hans Hagen wrote:

oh, i can add it ... i just saw it and wondered if it was used and
couldn't grep it in

is it still wanted / needed?


Not by me, at least, I separated the file into mkii and mkiv, which is 
cleaner anyway. But a tiny word wof warning would have been welcome...


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


Re: [NTG-context] Formatting enumerations in MKIV

2013-05-01 Thread Lance Larsen
Thankyou Wolfgang. This was what I was missing. I think I was not
understanding the purpose of the width parameter.

-Lance


 Lance Larsen lance.c.lar...@gmail.com:
 I am trying to configure an enumeration in MKiv, but it is not clear 
 how to set some of the formatting. I need to be able to control the 
 distance between the title and the enumeration text, but parameters 
 such as 'inbetween' seem to have no effect. Is there a parameter I can 
 use to set the spacing. Also, how do I find out what parameters are 
 available. I tried to figure out where defineenumeration is defined in 
 the lua or mkiv files without luck.
 
 \starttext
 
 \defineenumeration[ref][alternative=left,inbetween=\blank]
 
 \ref Testing \par
 \ref Testing \par
 
 \stoptext

Your inbetween setting is ignored because \blank is a command to add
vertical space but the text of your enumeration is on the same line as the
content and you need a horizontal space.

To control the spacing you can change the width of the text with the ?width?
key and the distance between the text and the content with the ?distance?
key.

\starttext
\defineenumeration[ref][alternative=left,width=2cm,distance=5mm]
\startref Testing \stopref
\startref Testing \stopref
\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] square in Cambria font

2013-05-01 Thread Sietse Brouwer
 Of the three fonts I tried (cambria, lmodern,
 lucidaot) it seems lmodern is the only one
 doing it right.

Depends on what is required to 'do it right' --- the Unicode reference
doesn't mention any mathematical use for U+25A1 white square, so I'm
not sure that must match squared plus glyph is a requirement.
Perhaps the creators of Cambria expected the glyph to be used for
itemizations, or footnote marks.

Out of curiosity: what are you using the square for / what does it
stand for, that makes matching squared plus so important to you? There
might even exist some other glyph that is semantically more suitable.

Cheers,
Sietse

On 1 May 2013 10:05, Meer, H. van der h.vanderm...@uva.nl wrote:
 Thanks, this indeed produces a square more akin to boxtimes in Cambria. But 
 the situation seems even worse than I thought. Under the 40pt fontsize it is 
 apparent that lucidaot's square has a thinner outline then boxtimes. Of the 
 three fonts I tried (cambria, lmodern, lucidaot) it seems lmodern is the only 
 one doing it right.

 Hans van der Meer



 On 1 May 2013, at 12:17 AM, Sietse Brouwer sbbrou...@gmail.com
  wrote:

 Hello Hans,

 The bad news: I think it's the font. The good news: here comes
 MetaPost to the rescue!

 I don't have Cambria, so I plucked a cambria.ttf file off the Internet
 somewhere, which contains both Cambria and Cambria Math. I don't know
 whether you have the same file/version, so YMMV, but it does exhibit
 the problem you describe.

 According to the lovely and free FontForge,
 * the WHITE SQUARE glyph (U+25A1) is 1060 units high
 * the SQUARED PLUS glyph (U+229E) is 1630 units high (of which 230
 below the baseline).

 This is in Cambria Math — Cambria does does not have either of these
 glyphs. I suspect the square size is a design decision: that the
 designers decided they wanted the white square to match the letters
 rather than the 'squared *' operators.

 Anyway, here's a very close MetaPost approximation of the 'squared
 plus' square, made by looking in with FontForge and copying the glyph
 dimensions. (And then tweaking them because some things still didn't
 look right; didn't manage to fix everything, alas.) It scales with the
 font size.

 Cheers,
 Sietse

 \setuppapersize[A7][A7]
 \setuppagenumber[state=stop]
 \setupbodyfont[cambria,40pt]

 \showframe
 \showgrid

 \startuseMPgraphic{square}
numeric u, strokewd, strokeht, sqwd, sqht;
u:= BodyFontSize / 2083;
strokewd := 128u;
strokeht := 123u;
sqwd := 1506u;
sqht := 1533u;
offset   := 200u;
pickup pensquare xscaled strokewd yscaled strokeht;
draw unitsquare xscaled sqwd yscaled sqht;

setbounds currentpicture to
boundingbox currentpicture
leftenlarged offset rightenlarged offset;
 \stopuseMPgraphic

 \def\mysquare{%
\lower \dimexpr \bodyfontsize / 2083 * 234
 \relax\hbox{\useMPgraphic{square}}%
 }

  try it out 

 \starttext

 $\square+\mysquare\boxplus$ \crlf
 $\mysquare\boxplus$

 \page[yes]

 $+ \ruledhbox{\boxplus}$  \crlf
 $+ \ruledhbox{\mysquare}$ \crlf
 $\ruledhbox{\boxplus}$  \crlf
 $\ruledhbox{\mysquare}$

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

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

 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] Heading flow

2013-05-01 Thread Lance Larsen
It looks like the 'after' property of \setuphead can be used to override the
'keep with next' behavior of the headings.

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

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


Re: [NTG-context] latest beta and ancient greek module

2013-05-01 Thread Mojca Miklavec
On Wed, May 1, 2013 at 4:24 PM, Thomas A. Schmitz wrote:
 On 05/01/2013 04:13 PM, Hans Hagen wrote:

 oh, i can add it ... i just saw it and wondered if it was used and
 couldn't grep it in

 is it still wanted / needed?

 Not by me, at least, I separated the file into mkii and mkiv, which is
 cleaner anyway.

type-gentium.tex anyone?

We need to fix it before TL 2013 release.

 But a tiny word wof warning would have been welcome...

I agree with that one. But apart from the modules that can easily be
fixed, I use it in many of my (non-mkiv-specific) documents to setup
the typescripts. I don't mind changing the keyword, but it would be
nice to have a simple command available for making small snippets of
code dependent on the engine. (LaTeX has \ifXeTeX, \ifLuaTeX for
example.)

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


[NTG-context] \showmathfontcharacters ?

2013-05-01 Thread Meer, H. van der
Why do I get an error on

\starttext
\showmathfontcharacters
\stoptext

When that macro is defined in s-mat-10.mkiv as
\unexpanded\def\showmathfontcharacters
  {\dodoubleempty\doshowmathfontcharacters}


ConTeXt  ver: 2013.04.16 12:08 MKIV beta  fmt: 2013.4.19  int: english/english
! Undefined control sequence.
9   \showmathfontcharacters

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
___

[NTG-context] font arial?

2013-05-01 Thread Meer, H. van der
Can someone tell me why 

\showfont[arial] does embed arial characters in the pdf, but 
\setupbodyfont[arial] has lmodern only?

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
___


[NTG-context] font weirdness

2013-05-01 Thread Meer, H. van der
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 am completely in the dark.

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
___

[NTG-context] opentype font catalogue?

2013-05-01 Thread Meer, H. van der
Is there a script/command to generate a catalogue of all glyphs in an opentype 
font?

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] font arial?

2013-05-01 Thread Wolfgang Schuster

Am 01.05.2013 um 19:51 schrieb Meer, H. van der h.vanderm...@uva.nl:

 Can someone tell me why 
 
 \showfont[arial] does embed arial characters in the pdf, but 
 \setupbodyfont[arial] has lmodern only?

When you use \showfont context tries to load a font file with the requested 
name, e.g. Arial.ttf
but when you use \setupbodyfont context expects a complete typescript for the 
font where
you specify the style (serif, sans or mono) and also the alternative (upright, 
italic etc.)

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-01 Thread Wolfgang Schuster

Am 01.05.2013 um 20:08 schrieb Meer, H. van der 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.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] Heading flow

2013-05-01 Thread Wolfgang Schuster

Am 01.05.2013 um 18:03 schrieb Lance Larsen lance.c.lar...@gmail.com:

 It looks like the 'after' property of \setuphead can be used to override the
 'keep with next' behavior of the headings.

No, you need the continue key to disable this feature.

\setuphead[section][continue=no]

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] parameters in startuseMPgraphic

2013-05-01 Thread Wolfgang Schuster

Am 01.05.2013 um 11:48 schrieb Meer, H. van der h.vanderm...@uva.nl:

 I used to pass (color) parameters to \startuseMPgraphic with:
 
 \startuseMPgraphic{square}{acolor}
draw unitsquare withcolor \MPvar{acolor}; % or \MPcolor{acolor}
 
 In both cases I get the following error:
 
 metapost initializing instance 'metafun' using format 'metafun'
 metapost loading 'metafun' as 
 '/Users/hansm/TeX/context-09/tex/texmf-context/metapost/context/base/metafun.mpiv'
  using method 'default'
 metapost initializing number mode 'scaled'
 checkmissing or ungrouped '=' after 'green' in line '7 
 (442square:)'
 
 Has something changed in this mechanism of parameter use, or am I doing 
 something wrong?

I don’t if you’re doing something wrong because you send only code snippets 
which makes
it hard to tell where the problem lies.

\starttext

\startuseMPgraphic{square}{acolor}
   draw unitsquare scaled 10 withcolor \MPvar{acolor} ;
\stopuseMPgraphic

\useMPgraphic{square}{acolor=red}

\useMPgraphic{square}{acolor=blue}

\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] \showmathfontcharacters ?

2013-05-01 Thread Wolfgang Schuster

Am 01.05.2013 um 19:15 schrieb Meer, H. van der h.vanderm...@uva.nl:

 Why do I get an error on
 
 \starttext
 \showmathfontcharacters
 \stoptext
 
 When that macro is defined in s-mat-10.mkiv as
 \unexpanded\def\showmathfontcharacters
   {\dodoubleempty\doshowmathfontcharacters}
 
 
 ConTeXt  ver: 2013.04.16 12:08 MKIV beta  fmt: 2013.4.19  int: english/english
 ! Undefined control sequence.
 9   \showmathfontcharacters

Add \usemodule[math-10] to your document.

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] latest beta and ancient greek module

2013-05-01 Thread Wolfgang Schuster

Am 01.05.2013 um 18:03 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com:

 I agree with that one. But apart from the modules that can easily be
 fixed, I use it in many of my (non-mkiv-specific) documents to setup
 the typescripts. I don't mind changing the keyword, but it would be
 nice to have a simple command available for making small snippets of
 code dependent on the engine. (LaTeX has \ifXeTeX, \ifLuaTeX for
 example.)

You can use

  \startmode[*mkii]

or

  \startmode[*mkiv]

to write different code for MkII and MkIV. With the counter \texengine
you can also check for the engine, one is pdfTeX, two is XeTeX and
three is LuaTeX.

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-01 Thread Wolfgang Schuster

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.

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]}
\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-01 Thread Alan BRASLAU
On Wed, 1 May 2013 16:16:07 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:

 Alan wrote:
  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.  
 
 It might be easier to place the figure code in a separate file

This is one workflow that I classically use: as separate product in a
project. However, I was exploring how to include the figure (or table,
etc.) code in the standard product file with separate TEXpage output
streams.

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] Heading flow

2013-05-01 Thread Lance Larsen
Using the continue=no option of setuphead (in MKIV) didn't seem to work (not
sure why). What I did as a workaround was to a blank paragraph after each
heading (using 'after' in setuphead) and then packed the result. Not
necessarily an ideal solution, but adequate for what I needed.

\definehead[references][subsection]
\setuphead[references][after={ ~ }]

\startpacked   % Get rid of large gaps between the references.
\dorecurse{10}{\references{Reference item}}
\stoppacked

-Lance


Am 01.05.2013 um 18:03 schrieb Lance Larsen lance.c.larsen at gmail.com:

 It looks like the 'after' property of \setuphead can be used to override
the
 'keep with next' behavior of the headings.

No, you need the continue key to disable this feature.

\setuphead[section][continue=no]

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] Heading flow

2013-05-01 Thread Wolfgang Schuster

Am 02.05.2013 um 00:01 schrieb Lance Larsen lance.c.lar...@gmail.com:

 Using the continue=no option of setuphead (in MKIV) didn't seem to work (not
 sure why). What I did as a workaround was to a blank paragraph after each
 heading (using 'after' in setuphead) and then packed the result. Not
 necessarily an ideal solution, but adequate for what I needed.
 
 \definehead[references][subsection]
 \setuphead[references][after={ ~ }]
 
 \startpacked   % Get rid of large gaps between the references.
 \dorecurse{10}{\references{Reference item}}
 \stoppacked


What you’re doing is just wrong. The problem with your example is that
it doesn’t demonstrate the problem because the is a page break between
the headings.

\definehead[references][subsection]

\starttext
\dorecurse{20}{\references{Reference item}}
\stoptext

One way to add a break before a heading is to change the before key to
\setuphead[…][before={\blank[preference,…]}]

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
___