[NTG-context] more missing or ungrouped '=' after

2011-03-20 Thread Reviczky, Adam
Hi

I'm getting the same lines by using setupfields (in widgets), but this time I 
don't even get an output.

Here's the minimal example:
%%%
\starttext

\setupfields
[label,frame,horizontal]
[offset=4pt,height=fit,framecolor=green,background=screen,backgroundscreen=.80]
[height=40pt,width=100pt,align=middle,background=screen,backgroundscreen=.90,frame=off]
[height=40pt,width=100pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off]

\setupfield[widget][]

\definefield [Emaila] [line] [widget] [] [pragma@wxs.nl]
\field [Emaila] [your email]

\stoptext
%%%

This runs fine and works as expected with the 2011.02.25 beta.

Running it with the 2011.03.18 experimental I get these lines and NO output:
checkmissing or ungrouped '=' after 'frame' in line 7 (@@fdlabel
checkmissing or ungrouped '=' after 'horizontal' in line 7 (@@fdlab

Also I ran into the fact that the general setup settings (setupfields) are not 
inherited (most likely due to the problem above).
Maybe Hans is working on the fld file (as the timestamp suggests), but since I 
had a similar problems yesterday I better ask first.

Any hints appreciated
Adam
___
If your question is of interest to others as well, please add an 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] Producing quotesingle glyph

2011-03-20 Thread Wolfgang Schuster

Am 19.03.2011 um 23:41 schrieb Pontus Lurcock:

 Thanks, Mojca and Khaled!
 
 Taking trep out of the default features works nicely, but since in
 this case I want quote-replacement as the default and straight
 quotes only occasionally, I ended up with the following solution:
 
 \definefontfeature[default][liga=yes,kern=yes,tlig=yes,trep=yes,mode=node]

You can add a feature with this:

\definefontfeature[default][default][mode=node]

 \definefontfeature[notrep][liga=yes,kern=yes,tlig=yes,trep=no,mode=node]
 \def\realquotesingle{{\setfontfeature{notrep}'}}


Another option is to disable only a single feature:

\definefontfeature[notrep][trep=no]
\def\realquotesingle{{\addfs{notrep}'}}

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] Text with background (overlay with a line by MP)

2011-03-20 Thread Wolfgang Schuster

Am 19.03.2011 um 23:13 schrieb Aditya Mahajan:

 On Sat, 19 Mar 2011, Procházka Lukáš wrote:
 
 Hello,
 
 I'm trying to create an overlay - text with a line drawn bellow.
 
 [...]
 
 How to do it?
 
 You do not need yshifted. But you need to set the bounding box of the 
 resulting image correctly.
 
 \startuniqueMPgraphic{Label}
 path p; p := (0,0) -- (OverlayWidth,0);
 draw p withpen pencircle scaled 1mm withcolor .667red;
 setbounds currentpicture to boundingbox OverlayBox ;
 \stopuniqueMPgraphic


You can also use the \framed-parameters:

\startuniqueMPgraphic{Label}
path p; p := (0,0) -- (OverlayWidth,0);
draw p withpen pencircle scaled \frameddimension{rulethickness} withcolor 
\MPcolor{\framedparameter{framecolor}};
setbounds currentpicture to boundingbox OverlayBox ;
\stopuniqueMPgraphic

\defineoverlay[Label][\useMPgraphic{Label}]

\defineframed[Text][background=Label,frame=off,location=low,framecolor=darkred,rulethickness=1mm]

\starttext
AAA \Text{BBB} CCC \Text[framecolor=blue]{DDD} EEE
\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] Producing quotesingle glyph

2011-03-20 Thread Pontus Lurcock
On Sun 20 Mar 2011, Wolfgang Schuster wrote:

 Another option is to disable only a single feature:
 
 \definefontfeature[notrep][trep=no]
 \def\realquotesingle{{\addfs{notrep}'}}

Thanks, that's more elegant. I've updated the wiki page to include it.

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

2011-03-20 Thread Reviczky, Adam
Hi

Using context experimental 2011.03.18 I get this line when using 
definebodyfontenvironment:

fontsbeware: fontclass ignored (if needed use: 
[fontclass][size][settings])

Minimal example: 
http://wiki.contextgarden.net/Reference/en/definebodyfontenvironment

%%%
\starttext
\definefontsize[e]

\definebodyfontenvironment
  [default]
  [b=4,e=10]

This will be {\tfb really} {\bfe Huge}
\stoptext
%%%

This also happens for the s-map-10 module, which seems to be broken anyway.

What is the proper use of definebodyfontenvironment then?
Adam
___
If your question is of interest to others as well, please add an 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] referring to floats in xml

2011-03-20 Thread R. Ermers
Dear All,

My xml docbook file contains a number of graphics. Some are regular figures, 
some are edgefigures. I have two questions in this respect.

A. referring to floats

\placeedgefigure
[\xmlatt{#1}{id}]
{\xmlfirst{#1}{/caption}}
{\framed[frame=off]{\setlayer[graphics]{\xmlfirst{#1}{/imageobject

\definefloat[edgefigure][figure]
\setupfloat[edgefigure]
[leftmargindistance=-\innercombitotal,rightmargindistance=-\outercombitotal,
default={outer,low,long}, criterium=.65\textwidth,numbering=no]

mediaobject id=fig:cow role=edgefigure
  imageobject
imagedata scale=500 fileref=cow.jpg/
  /imageobject
/mediaobject

I now wonder how to refer to these floats. That is, referring through xref 
linkend=cow/ is not difficult to implement, but for some reason the mapping 
of the id is not that obvious. I tried it like this:

\startxmlsetups xml:mediaobject:edgefigure
\placeedgefigure
[\xmlatt{#1}{id}]
{\xmlfirst{#1}{/caption}}
{\framed[frame=off]{\setlayer[graphics]{\xmlfirst{#1}{/imageobject
\stopxmlsetups

The log file says:
references  : unknown reference [][fig:cow]

The reference is not solved.


B. edgefigures and regular figures

The document contains two types of figures.

\xmlsetsetup{#1}{mediaobject[@role='fig']}{xml:mediaobject:fig}
\xmlsetsetup{#1}{mediaobject[@role='edgefigure']}{xml:mediaobject:edgefigure}

I have noticed that when mediaobject contains both the attributes id and 
role, such as the cow example, the figure is considered a regular figure 
automatically and will not typeset as an edgefigure.


Regards,

Robert





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

2011-03-20 Thread Mojca Miklavec
On Sun, Mar 20, 2011 at 08:34, Pontus Lurcock wrote:
 On Sun 20 Mar 2011, Wolfgang Schuster wrote:

 Another option is to disable only a single feature:

 \definefontfeature[notrep][trep=no]
 \def\realquotesingle{{\addfs{notrep}'}}

 Thanks, that's more elegant. I've updated the wiki page to include it.

Just a question for Hans or Taco: would it be possible to create a
command sequence that would avoid doing the auto-replacement even when
trep is on? Say, \textapostrophe, \asciiapostrophe, \textquote,
\asciiquote or some similar name.

One option would be to automatically create a virtual font with
duplicate of 0x27 at some constant slot and then access that glyph
(even though that might have consequences for searching in PDFs). This
is ugly, but maybe there is some better and more elegant approach.

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
___


Re: [NTG-context] Producing quotesingle glyph

2011-03-20 Thread Wolfgang Schuster

Am 20.03.2011 um 11:04 schrieb Mojca Miklavec:

 On Sun, Mar 20, 2011 at 08:34, Pontus Lurcock wrote:
 On Sun 20 Mar 2011, Wolfgang Schuster wrote:
 
 Another option is to disable only a single feature:
 
 \definefontfeature[notrep][trep=no]
 \def\realquotesingle{{\addfs{notrep}'}}
 
 Thanks, that's more elegant. I've updated the wiki page to include it.
 
 Just a question for Hans or Taco: would it be possible to create a
 command sequence that would avoid doing the auto-replacement even when
 trep is on? Say, \textapostrophe, \asciiapostrophe, \textquote,
 \asciiquote or some similar name.

{ : \letteropenbrace, \letterbgroup, \letterleftbrace, \textbraceleft
} : \letterclosebrace, \letteregroup, \letterrightbrace, \textbraceright
 : \letterampersand
 : \letterless
 : \lettermore
# : \letterhash
 : \letterdoublequote, \quotedbl
' : \lettersinglequote, \quotesingle
$ : \letterdollar, \textdollar
% : \letterpercent, \percent
^ : \letterhat
_ : \letterunderscore, \textunderscore
| : \letterbar, \textbar
~ : \lettertilde, \textasciitilde
\ : \letterbackslash, \letterescape, \textbackslash
/ : \letterslash, \textslash
? : \letterquestionmark
! : \letterexclamationmark
@ : \letterat, \textat
: : \lettercolon
` : \textgrave

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] Producing quotesingle glyph

2011-03-20 Thread Mojca Miklavec
On Sun, Mar 20, 2011 at 12:35, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 20.03.2011 um 11:04 schrieb Mojca Miklavec:

 On Sun, Mar 20, 2011 at 08:34, Pontus Lurcock wrote:
 On Sun 20 Mar 2011, Wolfgang Schuster wrote:

 Another option is to disable only a single feature:

 \definefontfeature[notrep][trep=no]
 \def\realquotesingle{{\addfs{notrep}'}}

 Thanks, that's more elegant. I've updated the wiki page to include it.

 Just a question for Hans or Taco: would it be possible to create a
 command sequence that would avoid doing the auto-replacement even when
 trep is on? Say, \textapostrophe, \asciiapostrophe, \textquote,
 \asciiquote or some similar name.

 ' : \lettersinglequote, \quotesingle

This is the right one, but if autoreplacement 0x27-0x2019 is on, it
doesn't help - this will still generate the curly 0x2019.

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] [***SPAM***] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Tom
Minimals MKIV ignores the structureenvironment blocks when the suffix is
'matter' but applies them if the suffix is 'part.' Furthermore, they are
applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc.
blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks.
The following code executes but does not apply the environment block
commands. Commenting out the three \startstructureblockenvironment commands
with 'matter arguments and uncommenting the three 'part' commands will
cause the environment block commands to be executed.

Ironically, the \start-\stop pairs between \starttext and \stoptext error if
'part' is used but execute if 'matter.' 

\def\MyFrontMatterCommand#1#2% #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]
 {\switchtotypeface[ChapterStart] #2}}

\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=off]
 {\vbox{\centerline{\headtext{chapter} #1}\par\blank{\centerline{#2}


\definepagebreak[mychapterpagebreak][yes,header,right]

\startstructureblockenvironment[frontmatter]
%ignored if frontmatter, applied if frontpart
%\startstructureblockenvironment[frontpart]

\setuppagenumbering[state=start,location=bottom,conversion=romannumerals] 

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.5in]}]

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]
%ignored if bodymatter, applied if bodypart
%\startstructureblockenvironment[bodypart]

\setuppagenumbering[alternative=doublesided,location=]

\setuppagenumbering[state=start,location=bottom,conversion=numbers] 

\setuphead[chapter]
 [command=\MyChapterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}
  \placeinitial] 

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]
%ignored if back, applied if backpart
%\startstructureblockenvironment[backpart]

\setuphead[title]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]


\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors if startfrontpart

%sample front matter
\input knuth 

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\chapter{Introduction} 
\input knuth  

\stopfrontmatter

\startbodymatter %errors if startbodypart

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
Lorem {\index{lorem}}ipsum dolor sit amet, consectetur adipiscing elit.
Maecenas ipsum turpis, imperdiet vel aliquam eu, iaculis at lorem. Proin ut
orci ac dui sodales commodo vel quis sem. Etiam nunc odio, luctus non cursus
elementum, elementum non. 

\stopbodymatter

\startbackmatter %errors if startbackpart
\title{Appendices}
\page[blank]
\completeindex
\stopbackmatter

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




___
If your question is of interest to others as well, please add an 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] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Wolfgang Schuster

Am 20.03.2011 um 14:37 schrieb Tom:

 Minimals MKIV ignores the structureenvironment blocks when the suffix is
 'matter' but applies them if the suffix is 'part.' Furthermore, they are
 applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc.
 blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks.
 The following code executes but does not apply the environment block
 commands. Commenting out the three \startstructureblockenvironment commands
 with 'matter arguments and uncommenting the three 'part' commands will
 cause the environment block commands to be executed.

Sectionblocks have two names, one which you use for the settings and another
one when you enable it in your text, e.g. frontmatter has the internal name
“frontpart” but in the document you use it with “frontmatter”.


| Name  | Command (\startXXX ... \stopXXX) |
|---
| frontpart | frontmatter  |
| bodypart  | bodymatter   |
| appendix  | appendices   |
| backpart  | backmatter   |


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] ... and emoticons

2011-03-20 Thread Philipp A.
On modern Linux distributions, there is support for the ellipsis (…) on the
keyboard layout; The combination is [AltGr+.]

On Windows, there is at least Microsoft
KLChttp://www.microsoft.com/downloads/details.aspx?familyid=fb7b3dcd-d4c1-4943-9c74-d8df57ef19d7.
While the possibilities are inferior, simple key combinations like the one
above are easily achieved.

Is someone interested in a german standard layout with some additional
symbols? (×÷…·—–„“”‚‘’ẞ‽‰)
___
If your question is of interest to others as well, please add an 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] ... and emoticons

2011-03-20 Thread Wolfgang Schuster

Am 20.03.2011 um 14:51 schrieb Philipp A.:

 On modern Linux distributions, there is support for the ellipsis (…) on the 
 keyboard layout; The combination is [AltGr+.]
 
 On Windows, there is at least Microsoft KLC. While the possibilities are 
 inferior, simple key combinations like the one above are easily achieved.


The is a difference in spacing between … and \unknown.

\starttext

Once uppon a time …

Once uppon a time \unknown

\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] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Tom
Thank you, Wolfgang. Your table is most helpful. This can probably be found
in the documentation but not where I looked. This probably relates to the
recent discussion regarding manuals for novices.

My observation is that \completecontent and \completeindex are treated like
chapter starts in that 'Contents' and 'Index' are formatted as if they were
chapter titles.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, March 20, 2011 9:49 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Minimals ignores structureblockenvironment for
frontmatter etc.


Am 20.03.2011 um 14:37 schrieb Tom:

 Minimals MKIV ignores the structureenvironment blocks when the suffix is
 'matter' but applies them if the suffix is 'part.' Furthermore, they are
 applied in \starttext if between \startfrontmatter -- \stopfrontmatter,
etc.
 blocks and error if between \startfrontpart -- \stopfrontpart, etc.
blocks.
 The following code executes but does not apply the environment block
 commands. Commenting out the three \startstructureblockenvironment
commands
 with 'matter arguments and uncommenting the three 'part' commands will
 cause the environment block commands to be executed.

Sectionblocks have two names, one which you use for the settings and another
one when you enable it in your text, e.g. frontmatter has the internal name
frontpart but in the document you use it with frontmatter.


| Name  | Command (\startXXX ... \stopXXX) |
|---
| frontpart | frontmatter  |
| bodypart  | bodymatter   |
| appendix  | appendices   |
| backpart  | backmatter   |


Wolfgang


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

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

___

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

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


[NTG-context] Table of Contents entries without page numbers

2011-03-20 Thread Tom
It is relatively easy to create table of contents entries without chapter
numbers, but I can't figure out how to include entries without page numbers.
I want to place a title page, 'Appendices,' in the ToC after the last
chapter and before the first appendix. I can easily create the page using
\title{Appendices} but it doesn't show up in the ToC. Using
\chapter{Appendices} creates a ToC entry with a page number and an appendix
number, which can be eliminated. There must be some way of placing headers
within a ToC. 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
If your question is of interest to others as well, please add an 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] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Aditya Mahajan

On Sun, 20 Mar 2011, Tom wrote:


Thank you, Wolfgang. Your table is most helpful. This can probably be found
in the documentation but not where I looked. This probably relates to the
recent discussion regarding manuals for novices.


You could help by adding this information to the wiki, at a place where 
you expected it to be present.


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


Re: [NTG-context] referring to floats in xml

2011-03-20 Thread Aditya Mahajan

On Sun, 20 Mar 2011, R. Ermers wrote:


Dear All,

My xml docbook file contains a number of graphics. Some are regular 
figures, some are edgefigures. I have two questions in this respect.


Understanding these snippets is difficult without a minimal working 
example.



A. referring to floats

\placeedgefigure
[\xmlatt{#1}{id}]
{\xmlfirst{#1}{/caption}}
{\framed[frame=off]{\setlayer[graphics]{\xmlfirst{#1}{/imageobject

\definefloat[edgefigure][figure]
\setupfloat[edgefigure]
[leftmargindistance=-\innercombitotal,rightmargindistance=-\outercombitotal,
default={outer,low,long}, criterium=.65\textwidth,numbering=no]

mediaobject id=fig:cow role=edgefigure
 imageobject
   imagedata scale=500 fileref=cow.jpg/
 /imageobject
   /mediaobject

I now wonder how to refer to these floats. That is, referring through xref 
linkend=cow/ is not difficult to implement, but for some reason the mapping of 
the id is not that obvious. I tried it like this:

\startxmlsetups xml:mediaobject:edgefigure
\placeedgefigure
[\xmlatt{#1}{id}]
{\xmlfirst{#1}{/caption}}
{\framed[frame=off]{\setlayer[graphics]{\xmlfirst{#1}{/imageobject
\stopxmlsetups



Try

\placeedgefigure
  []
  [\xmlatt{#1}{id}]
  {}
  {}

B. edgefigures and regular figures

The document contains two types of figures.

\xmlsetsetup{#1}{mediaobject[@role='fig']}{xml:mediaobject:fig}
\xmlsetsetup{#1}{mediaobject[@role='edgefigure']}{xml:mediaobject:edgefigure}

I have noticed that when mediaobject contains both the attributes id 
and role, such as the cow example, the figure is considered a regular 
figure automatically and will not typeset as an edgefigure.


Please provide a minimal working example.

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


[NTG-context] pdfboxes (mkiv)

2011-03-20 Thread Peter Rolf
Hi Hans,

there is a typo in lpdf-mis.lua

local function pagespecification()
local pageheight = tex.pdfpageheight
local box = pdfarray { -- can be cached
boxvalue(leftoffset),
boxvalue(pageheight-topoffset-height),
  ^^
should be +
boxvalue(width-leftoffset),
boxvalue(pageheight-topoffset),
}
lpdf.addtopageattributes(CropBox,box) -- mandate for rendering
lpdf.addtopageattributes(TrimBox,box) -- mandate for pdf/x
 -- lpdf.addtopageattributes(BleedBox,box)
 -- lpdf.addtopageattributes(ArtBox,box)
end


I hate to use Acrobat for the pdf boxes, because it 'ruins' the PDF :-)

Regards,  Peter
___
If your question is of interest to others as well, please add an 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] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Wolfgang Schuster

Am 20.03.2011 um 16:46 schrieb Tom:

 Thank you, Wolfgang. Your table is most helpful. This can probably be found
 in the documentation but not where I looked. This probably relates to the
 recent discussion regarding manuals for novices.
 
 My observation is that \completecontent and \completeindex are treated like
 chapter starts in that 'Contents' and 'Index' are formatted as if they were
 chapter titles.

\completecontent== \title   + \placecontent
\completelist   == \title   + \placelist
\completelistofsynonyms == \chapter + \placelistofsynonyms + \page
\completeregister   == \chapter + \placeregister   + \page
\completepublications   == \chapter + \placepublications

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] Footnote disappears (TABLE, itemize)

2011-03-20 Thread Vedran Miletić
Hi,

the following code makes first footnote disappear.

\starttext
\placetable{My table}{\bTABLE
\bTR \bTD {\bf Something} \eTD \bTD \startitemize[1, packed]
\item First
\item Second\footnote{test1} hello
\item Third\footnote{test2} hello
\stopitemize \eTD \eTR
\eTABLEbody
\eTABLE}
\stoptext

Vedran Miletić
___
If your question is of interest to others as well, please add an 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 disappears (TABLE, itemize)

2011-03-20 Thread Wolfgang Schuster

Am 20.03.2011 um 22:08 schrieb Vedran Miletić:

 Hi,
 
 the following code makes first footnote disappear.
 
 \starttext
 \placetable{My table}{\bTABLE
 \bTR \bTD {\bf Something} \eTD \bTD \startitemize[1, packed]
 \item First
 \item Second\footnote{test1} hello
 \item Third\footnote{test2} hello
 \stopitemize \eTD \eTR
 \eTABLEbody
 \eTABLE}
 \stoptext

Add \automigrateinserts or use local footnotes, be aware that floats and 
footnotes don’t work well together.

\starttext

\placetable
  {My table}
  {\startlocalfootnotes
   \placelegend
 {\bTABLE
  \bTR
\bTD {\bf Something} \eTD
\bTD \startitemize[1, packed]
  \item First
  \item Second\footnote{test1} hello
  \item Third\footnote{test2} hello
  \stopitemize
\eTD
  \eTR
  \eTABLE}
 {\placelocalfootnotes}
   \stoplocalfootnotes}

\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] Feature request: setuppapersize

2011-03-20 Thread C.
Did you try \setuppapersize[A5][A5] ?
According to http://wiki.contextgarden.net/Reference/en/setuppapersize
second argument (the print paper size) is A4 by default.


 -Ursprüngliche Nachricht-
 Von: Aditya Mahajan [mailto:adit...@umich.edu]
 Gesendet: Samstag, 19. März 2011 18:59
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Feature request: setuppapersize
 
 On Mon, 10 Jan 2011, Aditya Mahajan wrote:
 
  On Mon, 10 Jan 2011, Hans Hagen wrote:
 
  more elegant and downward compatible is this:
 
  \definepapersize
   [samesized]
   [ \c!width=\paperwidth,
\c!height=\paperheight]
 
  \setuppapersize
   [A4][samesized]
 
  in page-lay.mkiv
 
  Indeed. This will also work fine.
 
 I don't know if something changed, but this has stoopped working.
 
 \setuppapersize[A5]
 \starttext
 \dorecurse{10}{\input knuth \endgraf}
 \stoptext
 
 With MkII I get
 
 $pdfinfo page-test.pdf
 Title:  page-test
 Subject:
 Keywords:
 Author:
 Creator:ConTeXt - 2011.02.25 22:03
 Producer:   pdfTeX-1.40.11
 CreationDate:   Sat Mar 19 13:50:49 2011
 ModDate:ConTeXt - 2011.02.25 22:03
 Tagged: no
 Pages:  5
 Encrypted:  no
 Page size:  595.276 x 841.89 pts (A4)
 File size:  33436 bytes
 Optimized:  no
 PDF version:1.5
 
 With MkIV:
 
 $pdfinfo page-test.pdf
 Title:  page-test
 Creator:ConTeXt - 2011.02.25 22:03
 Producer:   LuaTeX-0.65.0
 CreationDate:   Sat Mar 19 13:53:29 2011
 ModDate:Sat Mar 19 13:53:29 2011
 Tagged: no
 Pages:  5
 Encrypted:  no
 Page size:  595.276 x 841.89 pts (A4)
 File size:  16057 bytes
 Optimized:  no
 PDF version:1.6
 
 Notice that the page size is still A4! Any idea why this is happening?
 (I get the right paper size with letter, A0, A1, A2, A3, but wrong paper
sizes
 with anything smaller than A4).
 
 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] circled number for item head

2011-03-20 Thread Jeong Dalyoung
Dear all,

I'd like to use circled number for item head.
I found one method which use a counter as follows:

 \def\circlednum#1{\uchar{36}{95+#1}} 
\defineconversion[myitem][\circlednum]

\starttext
\startitemize[myitem, pack]
\item 111
\item 222
\item 333
\item 444
\item 555
\stopitemize
\stoptext

But it has a limitation of numbers. I think that there is a better way for this 
like using overlay something, I guess.

Is there any general method which is good for any letter?

Thanks for reading.

Best regards,

Dalyoung


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

2011-03-20 Thread Aditya Mahajan

On Sun, 20 Mar 2011, C. wrote:


Did you try \setuppapersize[A5][A5] ?
According to http://wiki.contextgarden.net/Reference/en/setuppapersize
second argument (the print paper size) is A4 by default.


About two months back I had requested that the second argument be made 
optional. Hans had implemented that request, but it does not always work 
(I don't know if this is a regression over the original implemenetation, 
or it never worked correctly).


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


[NTG-context] More bibl-apa.tex modifications

2011-03-20 Thread Pontus Lurcock
Hello,

I have found another minor problem in the bibl-apa style (ConTeXt v.
2011.02.25 22:03), this time for Master's theses, which get an extra
space between the phrase ‘Master's Thesis,’ and the university's name
and address, thus:

Smith, A. B. (2000). A Thesis Title. Master's thesis,  City, Country:
University of Something.

I think this would be better as:

Smith, A. B. (2000). A Thesis Title. Master's thesis. City, Country:
University of Something.

(This also changes the comma to a dot.) I have implemented this with
the following modifications to bibl-apa.tex (original lines commented
out, mine inserted afterwards):



\setuppublicationlayout[mastersthesis]{%
   \insertauthors{}{ }{}%
   \insertpubyear{(}{). }{}%
   \inserttitle{\bgroup }{\egroup \insertseries{ (}{)}{}. }{}%
   \insertbibtype{}{.}{Master's thesis.}%
%   \insertbibtype{}{, }{Master's thesis, }%
   \insertpublisher{ }{.}{.}%
%   \insertpages{ }{p. }{}%
   \insertpages{ }{ p. }{}%
   \insertnote{ }{.}{}%
}

\setuppublicationlayout[phdthesis]{%
   \insertauthors{}{ }{}%
   \insertpubyear{(}{). }{}%
   \inserttitle{\bgroup\it }{\egroup \insertseries{ (}{)}{}. }{}%
%   \insertbibtype{}{, }{PhD thesis,}%
   \insertbibtype{}{.}{PhD thesis.}%
   \insertpublisher{ }{.}{.}%
   \insertpages{ }{ p. }{}%
   \insertnote{ }{.}{}%
}



This also incorporates three other changes: changing the comma after 
‘PhD thesis’ to a dot; removing the space after the punctuation in
the PhD bibtype ‘after’ group (only used if type is specified);
and adding a space to the start of the pages ‘after’ group.

I hope that these can be incorporated, if they meet with agreement.

Aside: this still doesn't correspond to current official APA style
(though it's a bit closer), but I'm not sure how many people care
about that. In my case I only care that my bibliography doesn't show
obvious weirdness like double spaces.

Here's a minimal example to show the behaviour (the spacing=packed
makes it clearer where the extra space appears):



\startpublication[k=mcmillan1993abbotsford,t=phdthesis,
a={{McMillan}},y=1993,
n=150,s=McM93]
\author[]{S.~G.}[S.~G.]{}{McMillan}
\title{The Abbotsford Formation}
\pubyear{1993}
\pubname{University of Otago}
\city{Dunedin, New Zealand}
\stoppublication

\startpublication[k=vondobeneck1985gesteinsmagnetische,t=mastersthesis,
a={{von Dobeneck}},y=1985,
n=483,s=vD85]
\author[]{T.}[T.]{von}{Dobeneck}
\pubyear{1985}
\title{{Gesteinsmagnetische Untersuchungen an tiefseesedimenten des
  Sudatlantiks}}
\pubname{Inst. Allg. und Angew. Geophys., Ludwig Maximilian University}
\city{München}
\stoppublication

\setuplanguage[en][spacing=packed]
\starttext
\placepublications[criterium=all]
\stoptext



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