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

2013-04-30 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

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

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

2013-04-30 Thread Lance Larsen
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

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


[NTG-context] square in Cambria font

2013-04-30 Thread Sietse Brouwer
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
___

[NTG-context] Header not repeating for tabulate

2013-04-30 Thread Lance Larsen
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

 

-Lance

 

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

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-04-30 Thread Khaled Hosny
On Tue, Apr 30, 2013 at 01:28:20PM +0100, Arthur Reutenauer wrote:
> > thinking of it: one reason why a general purpose word processor used
> > by people with no idea about things like ligatures, is that
> > ligatures are language dependent
> 
>   I don't think that's necessary relevant: the only example I can think
> of language-dependent ligatures is fi and ffi for Turkish and other
> languages that use the dotless i (ı, U+0131), because removing the dot
> on the i would be confusing in that case; but that's really all.  All
> other ligatures depend on the font.

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).

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

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-04-30 Thread Arthur Reutenauer
> Quite so. The words "I was wrong" seem to be a bit difficult for
> some people.

  Yes, it's amazing how to some people "you're wrong" sounds like an
offence, and the explanation of why an outright insult.

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

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-04-30 Thread Arthur Reutenauer
> thinking of it: one reason why a general purpose word processor used
> by people with no idea about things like ligatures, is that
> ligatures are language dependent

  I don't think that's necessary relevant: the only example I can think
of language-dependent ligatures is fi and ffi for Turkish and other
languages that use the dotless i (ı, U+0131), because removing the dot
on the i would be confusing in that case; but that's really all.  All
other ligatures depend on the font.

  Many Adobe-produced fonts have a special ligatures for Turkish and
some other languages using ı, I suspect because Adobe Font Development
Kit for OpenType has a provision for them.

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

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-04-30 Thread Alan Bowen
It does indeed, Thomas. Many thanks!

Alan


On Tue, Apr 30, 2013 at 2:06 AM, Thomas A. Schmitz <
thomas.schm...@uni-bonn.de> 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.
>
> 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
> __**__**
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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] [***SPAM***] Footnote disappear in "placeongrid"

2013-04-30 Thread H. Özoguz

Hi there,

in the interior of "placeongrid" footnotes disappear (not shown at the 
buttom). I think this is a bug?


\setuplayout[grid=yes]
\starttext
A footnote.\footnote{Foo.}
\placeongrid[bottom]{Footnote in placeongrid.\footnote{Foo.}}
\stoptext

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] Deactivating Grid-Setting for a single paragraph

2013-04-30 Thread H. Özoguz

Am 30.04.2013 12:00, schrieb ntg-context-requ...@ntg.nl:

When you use the grid you have to restrict yourself and use fixed values for 
the interlinespace. The correction of the whitespace after the increased 
linespace can be calculated and compensated by half lines in the \blank command.
Thansk Wolfgang. So there is not way to have an functionality like 
"placeongrid" with the possibility of page-breaking (or deactivating 
gridsetting for a paragraph, like it is by default done for titles) ? 
Could be a good feature for future, would help a lot when using the grid.


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] starttyping environment again

2013-04-30 Thread jinki jung
Hi

This issued is answered from other place.
The cause of the ragged output was bodyfont.
I was using a specific font for my own language by "\setupbodyfont[unfonts]".
Commenting out and using
default fonts gave me correct output.

Jung, Jinki

>
> I am using context 0.6 under W7. I have problem with starttyping command.
> Somehow, it is not giving me same as I key in. Two examples are give here
> to explain my problem.  Please see ">>>". Any help will be appreciated
> much.
>
> Jung, Jinki
>
>
> \starttyping
>
> LDPREM
> ---   -
> AT1L D P 7 1 1 0 1 A 2 7 4 R E M 0 1 1
> AT2L D P 7 1 2 0 1 A 2 7 4 R E M 0 2 1
> AC1L D P 7 1 0 0 1 A 2 7 1 R E M 1 0 1
>   -- --- --- --    --- - --- --
>  ||   |  |  |   |||  |
>  ||   |  |  |   |||  |
>  ||   |  for extension  |   |||  for extension
>  ||   serial|   ||serial
>  |area  |   |   REM
> ZZZ |   area
>ABC
>
>  +- Module
>  |
>  |   +- serial
>  |  /
>  --  ---
>   A  2  0  0  M  0  0  0  0
>  -  
>   | |
>   | +-+
>  AERA2|
>   |
> AREA  +---  71 : F2 Production
> 72 : F2 Storage to AT7
> 73 : F1 BCR to AT7
> 74 : MBC common
> 75 : AT7 to ANtty
> 3C : MBC common
> \stoptyping
>
> ==
>
> output looks as follow. please notice wrong alignment.
>
> LDPREM
> ---   -
> TT1L D P 7 1 1 0 1 A 2 7 4 R E M 0 1 1
> TT2L D P 7 1 2 0 1 A 2 7 4 R E M 0 2 1
> TC1L D P 7 1 0 0 1 A 2 7 1 R E M 1 0 1
>   -- --- --- --    --- - --- --  >
"---" get smaller ?
>  ||   |  |  |   |||  |
>  ||   |  |  |   |||  |
>  ||   |  for extension  |   ||  |  for
extension 
>  ||   serial|   ||serial
>  |area|   |   REM   =
> ZZZ |   area=
>ABC  =
>
>  +- Module
>  |
>  |   +- serial
>  |  /
>  --  ---  ===>>> "---"
get smaller ?
>   A  2  0  0  M  0  0  0  0
>-  
>   | |
>   | +-+
>  AERA2|
> | =>>>
> AREA  +---  71 : F2 Production
>   72 : F2 Storage to AT7   >>>
>   73 : F1 BCR to AT7   >>>
>   74 : MBC common  >>>
>   75 : AT7 to ANtty>>>
>   3C : MBC common >>>
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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
___