Re: [NTG-context] Figure Help

2011-11-10 Thread Hans Hagen

On 9-11-2011 22:49, Christian wrote:

May be I missed one or the other mail on this topic.
There is indeed support for svg-inclusion in MKIV. In order to be
possibly of help I would like you to send a minimal example.


Note: When I include the extension in the filename (testimage.svg) I
get !LuaTeX error: cannot find image file 'm_k_i_v_testimage.pdf'
probably due to some failed conversion stuff.


Is write18 enables? Do you have inkscape binary in your PATH?


Well, no and no. And the way I see it, proper svg support should not need a 
prior conversion to pdf done by an entirely different program.
If I wanted that, I can as well save it as pdf or convert it myself.

I knew about the detour via inkscape, but I hoped for native support.

So I guess svg is not supported then?


no, and it would be a typical example of adding something to the engine 
that's bigger than the engine itself which is definitely not on our 
agenda (the leaner the meaner)


also, converting svg runtime and doing that each run is pretty 
inefficient; the mkiv runtime conversion only converts (using inkscape) 
when the file has changed and including a pdf file is pretty fast


(the same is true for png files: the pfd format supports png compression 
which is not the same as embedding png so for some variants it's better 
to convert beforehand so that inclusion is faster)


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] how to avoid hyphenation

2011-11-10 Thread Hans Hagen

On 10-11-2011 00:56, Robert Zydenbos wrote:

Greetings all,

Is there a simple way in ConTeXt to temporarily switch off hyphenation for a 
single word? I am thinking of something like the trick which works in (La)TeX: 
\hbox{thisisaverylongword}. I tried this in ConTeXt (MacTeX TeXLive 2010-64), 
but without success.

{\language0 thisis...}

-
  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] Parameters in \definecolor

2011-11-10 Thread Hans Hagen

On 10-11-2011 08:55, Marcin Borkowski wrote:

Dnia 2011-11-09, o godz. 19:13:23
Wolfgang Schusterschuster.wolfg...@googlemail.com  napisał(a):



Am 09.11.2011 um 18:37 schrieb Marcin Borkowski:


Hi all,

the manual (the current draft) says that possible parameters for
\definecolor are:
r,g,b,


red
green
blue


c,m,y,k,


cyan
magenta
yellow
black


s,


gray (shade)


h,t,a,p,e


hexadecimal (html like)
transparencyfactor
transparancyalternative
spotcolorfactor
extraspotcolorname (in pdf resource)

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
___

[NTG-context] Local footnotes

2011-11-10 Thread Andreas Harder
Hi Hans,

here is the minimal example which shows the problem with local footnotes.

\starttext
  \startlocalfootnotes
\dorecurse{23}{footnote\footnote{footnote}\par} % error
% \dorecurse{22}{footnote\footnote{footnote}\par} % OK
\placelocalfootnotes
  \stoplocalfootnotes
\stoptext


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

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


Re: [NTG-context] Page numbering: conversion broken

2011-11-10 Thread Christian
  Dear list,
 
  this
  \setuppagenumbering[conversion=romannumerals,left={--~},right={~--}]
 %
  taken from contextref.pdf does nothing in ConTeXt  ver: 2011.09.12 22:49
 MKIV, except adding the '–' left and right. The number is still Arabic.
 
  However this
  \convertnumber{r}{4}
  works as expected.
 
  Is this fixed in a later beta?
 
 There is nothing to fix, the while numbering mechanism has changed in MkIV
 and you have to write now

I see. I got this example from the Context reference manual dated June 1st, 
2011 on page 87. I thought
it would be up to date and didn't see any hints for the mkii-mkiv problem.

 \setupuserpagenumber[numberconversion=romannumerals]
 
 or better (because you can set different conversion for the frontpart, main
 part etc)
 
 \definestructureconversionset[pagenumber][][romannumerals]
 
 \setupuserpagenumber[numberconversionset=pagenumber]

Thank you, that is exactly what I was looking for (different numberconversions 
for  front- and bodypart).
My first guess was that the frontpart goes in the second set of brackets (the 
empty ones). But no, its in the first with
frontpart:pagenumber.
Very confusing sometimes :S

Thank you for your help!

___
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] Local footnotes

2011-11-10 Thread Wolfgang Schuster

Am 10.11.2011 um 10:47 schrieb Andreas Harder:

 Hi Hans,
 
 here is the minimal example which shows the problem with local footnotes.
 
 \starttext
  \startlocalfootnotes
\dorecurse{23}{footnote\footnote{footnote}\par} % error
% \dorecurse{22}{footnote\footnote{footnote}\par} % OK
\placelocalfootnotes
  \stoplocalfootnotes
 \stoptext

\placelocalfootnotes[height=\textheight]

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] \definestructureresetset

2011-11-10 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

I'm looking at strc*.mkiv trying to understand

\definestructureresetset[default][0,0,1,0][1]

etc.

The first argument would appear to control the continued-coupling between
a higher and lower section. If 0, the lower section does not reset; if 1,
the immediately lower section resets when the higher section increments up.

What is the second argument [1] for?

==
\definestructureresetset[default][0,0,1,0][1] % this will not reset parts
and subsections
\setuphead[part][sectionresetset=default]
\starttext
  \placelist[chapter,section,subsection][criterium=all,width=3cm]
  \part{first}  \chapter{alpha} \section{a} \section{b} \subsection{x}
\subsection{y} \chapter{beta}
  \part{second} \chapter{gamma} \section{a} \section{b} \subsection{x}
\subsection{y} \chapter{delta}
\stoptext
==

In this example -- from strc-def.mkiv with a small edit:

What is the diff between

\setuphead[part][sectionresetset=default]

and

\setuphead[part][sectionresetset=continue]

etc. Any clarifications appreciated and

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] \definestructureresetset

2011-11-10 Thread Idris Samawi Hamid ادريس سماوي حامد

Dear gang,

I'm looking at strc*.mkiv trying to understand

\definestructureresetset[default][0,0,1,0][1]

etc.

The first argument would appear to control the continued-coupling between
a higher and lower section. If 0, the lower section does not reset; if 1,
the immediately lower section resets when the higher section increments up.

What is the second argument [1] for?

==
\definestructureresetset[default][0,0,1,0][1] % this will not reset parts
and subsections
\setuphead[part][sectionresetset=default]
\starttext
  \placelist[chapter,section,subsection][criterium=all,width=3cm]
  \part{first}  \chapter{alpha} \section{a} \section{b} \subsection{x}
\subsection{y} \chapter{beta}
  \part{second} \chapter{gamma} \section{a} \section{b} \subsection{x}
\subsection{y} \chapter{delta}
\stoptext
==

In this example -- from strc-def.mkiv with a small edit:

What is the diff between

\setuphead[part][sectionresetset=default]

and

\setuphead[part][sectionresetset=continue]

etc. Any clarifications appreciated and

Best wishes
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] texnansi.enc

2011-11-10 Thread Yue Wang
still not fixed

On Wed, Nov 9, 2011 at 2:31 PM, Hans Hagen pra...@wxs.nl wrote:
 On 9-11-2011 18:02, Yue Wang wrote:

 Hi, Mojca:

 just updated context and mkii told me

 !pdfTeX error: pdftex (file texnansi.enc): cannot open encoding file for
 reading

 is this file removed?

 not on purpose .. it should be there

 -
                                          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] \definestructureresetset

2011-11-10 Thread Wolfgang Schuster

Am 10.11.2011 um 14:59 schrieb Idris Samawi Hamid ادريس سماوي حامد:

 Dear gang,
 
 I'm looking at strc*.mkiv trying to understand
 
 \definestructureresetset[default][0,0,1,0][1]
 
 etc.
 
 The first argument would appear to control the continued-coupling between
 a higher and lower section. If 0, the lower section does not reset; if 1,
 the immediately lower section resets when the higher section increments up.
 
 What is the second argument [1] for?

It’s the default argument for all section levels which are not listed in the 
second
argument, e.g. \subsubsection and below

To list all three argument we have:

1. “IDENTIFIER” or “SECTIONBLOCK:IDENTIFIER”
2. explicit values
3. default values

 ==
 \definestructureresetset[default][0,0,1,0][1] % this will not reset parts
 and subsections
 \setuphead[part][sectionresetset=default]
 \starttext
  \placelist[chapter,section,subsection][criterium=all,width=3cm]
  \part{first}  \chapter{alpha} \section{a} \section{b} \subsection{x}
 \subsection{y} \chapter{beta}
  \part{second} \chapter{gamma} \section{a} \section{b} \subsection{x}
 \subsection{y} \chapter{delta}
 \stoptext
 ==
 
 In this example -- from strc-def.mkiv with a small edit:
 
 What is the diff between
 
 \setuphead[part][sectionresetset=default]
 
 and
 
 \setuphead[part][sectionresetset=continue]
 
 etc. Any clarifications appreciated and

“default” and “continue” are just names for a resetset but it’s a convention
that nearly all default sets have also the name “default”

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] Local footnotes

2011-11-10 Thread Andreas Harder

On 10.11.2011, at 14:27, Wolfgang Schuster wrote:

 
 Am 10.11.2011 um 10:47 schrieb Andreas Harder:
 
 Hi Hans,
 
 here is the minimal example which shows the problem with local footnotes.
 
 \starttext
 \startlocalfootnotes
   \dorecurse{23}{footnote\footnote{footnote}\par} % error
   % \dorecurse{22}{footnote\footnote{footnote}\par} % OK
   \placelocalfootnotes
 \stoplocalfootnotes
 \stoptext
 
 \placelocalfootnotes[height=\textheight]

Thank you Wolfgang, this solved the problem.

Andreas
___
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] Imposition eats footnote numbers (on the latest beta)

2011-11-10 Thread Marco Pessotto

Hello there.

With the latest beta, the following example fails to show the footnote
number. Commenting the setuparranging shows it again.

%% start minimal example
\setuppapersize[A5][A4,landscape]
\setuparranging[2UP]

\starttext

test\footnote{this is the note}

\stoptext
%% stop.

Current (2011.05.18) is not affected.

Best wishes

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


Re: [NTG-context] Imposition eats footnote numbers (on the latest beta)

2011-11-10 Thread Willi Egger
Hi,

Thanks for spotting this. I tested with my project where there are only few 
footnotes, indeed the reference-numbers are gone once arranging is set on.

Willi
On 10 Nov 2011, at 18:20, Marco Pessotto wrote:

 
 Hello there.
 
 With the latest beta, the following example fails to show the footnote
 number. Commenting the setuparranging shows it again.
 
 %% start minimal example
 \setuppapersize[A5][A4,landscape]
 \setuparranging[2UP]
 
 \starttext
 
 test\footnote{this is the note}
 
 \stoptext
 %% stop.
 
 Current (2011.05.18) is not affected.
 
 Best wishes
 
 -- 
 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
___


[NTG-context] Omit part of a caption in a list

2011-11-10 Thread Christian
Dear all,

is the following possible?

List of figures
1.1 Figure caption . . . . . . 2

page break
*imagine figure here
Figure 1.1: Figure caption is a lot longer than it appears in the list of 
figures.

I'd like to shorten the captions in the list of figures that I produce using 
\placelist[figure] (preferably cut off clean, no ellipsis or the like).
I know about \nomarking{} but it seems to apply only to chapter, section etc. 
titles.


Cheers
Christian

___
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] Omit part of a caption in a list

2011-11-10 Thread Pontus Lurcock
On Fri 11 Nov 2011, Christian wrote:

 Dear all,
 
 is the following possible?
 
 List of figures
 1.1 Figure caption . . . . . . 2
 
 page break
 *imagine figure here
 Figure 1.1: Figure caption is a lot longer than it appears in the list of 
 figures.
 
 I'd like to shorten the captions in the list of figures that I
 produce using \placelist[figure] (preferably cut off clean, no
 ellipsis or the like). I know about \nomarking{} but it seems to
 apply only to chapter, section etc. titles.

This is indeed possible, using \select; see
http://archive.contextgarden.net/message/20060501.171706.24b88466.en.html .

Example usage:

\defineselector[caption][max=2,n=2]
\starttext
\setupselector[caption][n=1]
\completelistoffigures
\setupselector[caption][n=2]
\placefigure[][]
 {\select{caption}
  {A short caption}
  {A rather longer caption which will appear below the figure itself}}
  {This is the content of the actual figure}
\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
___


Re: [NTG-context] Omit part of a caption in a list

2011-11-10 Thread Christian
  Dear all,
 
  is the following possible?
 
  List of figures
  1.1 Figure caption . . . . . . 2
 
  page break
  *imagine figure here
  Figure 1.1: Figure caption is a lot longer than it appears in the list of 
  figures.
 
  I'd like to shorten the captions in the list of figures that I produce
  using \placelist[figure] (preferably cut off clean, no ellipsis or the
  like). I know about \nomarking{} but it seems to apply only to
  chapter, section etc. titles.
 
 This is indeed possible, using \select; see
 http://archive.contextgarden.net/message/20060501.171706.24b88466.en.h
 tml .
 
 Example usage:
 
 \defineselector[caption][max=2,n=2]
 \starttext
 \setupselector[caption][n=1]
 \completelistoffigures
 \setupselector[caption][n=2]
 \placefigure[][]
  {\select{caption}
   {A short caption}
   {A rather longer caption which will appear below the figure itself}}
   {This is the content of the actual figure} \stoptext
 
 Pont

The possibilities of Context continue to amaze me...

Thank you very much, 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] Fonts in Mk IV -- \definefontalternative documentation?

2011-11-10 Thread Peter Park Nelson
Hello, I am coming to ConTeXt from LaTeX and have a typescript question. I
was searching for information on the mailing list about defining semibold
and other font variants, and found the following. Can you tell me if
further information is only available in the book context mkiv -- Fonts
or can I find it somewhere else? I have searched through the revised Fonts
chapter of the ConTeXt manual but the \definefontalternative macro and the
approach described here are not documented there.

The approach below works for me if I adapt it to Adobe Garamond Premier
Pro, but I am attempting to build a typescript for that handles optical
weights, small caps, etc and I have not been able to make it work yet.

Before I try posting a minimal example, I would like to be sure that I am
looking at the right documentation. I have looked at the Fonts in LuaTeX
page on Contextgarden as well, but I don't think I have a full
understanding of typescripts using OSFONTDIR fonts yet. If there is
something I am missing please let me know.

Thanks,
PPN

**
Based on ideas from the forthcoming book context mkiv -- Fonts:

% note: I have deleted all lines except the relevant ones for defining
% the semi bold alternatives

\definefontalternative [sb]
\definefontalternative [si]

\definebodyfont [default] [ss]
  [sb=SansSemiBold sa 1,
   si=SansSemiBoldItalic sa 1]

\starttypescript [sans] [myriadpro]
   \definefontsynonym [MyriadPro-SemiBold]  [name:myriadprosemibold]
   \definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit]
\stoptypescript

\starttypescript [sans] [myriadpro]
   \definefontsynonym [SansSemiBold] [MyriadPro-SemiBold]
[features=default]
   \definefontsynonym [SansSemiBoldItalic]   [MyriadPro-SemiBoldIt]
[features=default]
\stoptypescript

\starttypescript [myriadpro]
\definetypeface [myriadpro] [ss] [sans] [myriadpro] [default]
\stoptypescript

\usetypescript[myriadpro]

\starttext

\switchtobodyfont[myriadpro,ss]

\sb Hello
\si Italic

\stoptext



-- 
Peter Park Nelson
peter.park.nel...@gmail.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] Figure Help

2011-11-10 Thread Kip Warner
Hey Hans. I think I figured out why it wasn't displaying properly. I was
putting the figure alias where \externalfigure was expecting the path to
the figure.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


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
___

Re: [NTG-context] Omit part of a caption in a list

2011-11-10 Thread Wolfgang Schuster

Am 11.11.2011 um 02:22 schrieb Pontus Lurcock:

 On Fri 11 Nov 2011, Christian wrote:
 
 Dear all,
 
 is the following possible?
 
 List of figures
 1.1 Figure caption . . . . . . 2
 
 page break
 *imagine figure here
 Figure 1.1: Figure caption is a lot longer than it appears in the list of 
 figures.
 
 I'd like to shorten the captions in the list of figures that I
 produce using \placelist[figure] (preferably cut off clean, no
 ellipsis or the like). I know about \nomarking{} but it seems to
 apply only to chapter, section etc. titles.
 
 This is indeed possible, using \select; see
 http://archive.contextgarden.net/message/20060501.171706.24b88466.en.html .
 
 Example usage:
 
 \defineselector[caption][max=2,n=2]
 \starttext
 \setupselector[caption][n=1]
 \completelistoffigures
 \setupselector[caption][n=2]
 \placefigure[][]
 {\select{caption}
  {A short caption}
  {A rather longer caption which will appear below the figure itself}}
  {This is the content of the actual figure}
 \stoptext

WIth the current beta you can write:

\startplacefigure[title={A rather long caption …},list={A short caption}]
\externalfigure[…]
\stopplacefigure

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] Help with Image Database in MKIV

2011-11-10 Thread Eidenbenz Michael
Hello,

I'm trying to use the Image Database feature as described here: 
http://wiki.contextgarden.net/Image_Database using ConTeXt  ver: 2011.05.18 
18:04 MKIV  fmt: 2011.11.7  int: english/english

Unfortunately I don't manage to get it working.

I have all my files in the same directory so this can't be an issue. Since I 
manage to build a pdf out of the xml I suppose this file is also ok. But when I 
process the .tex, the figure appear as dummy.

here's my tex-file:

\usefigurebase[figure-lib]
\starttext
\externalfigure[resource2]
\stoptext

and the figure-lib.xml:

rl:library language=en

  rl:description
  rl:organizationOrganisation/rl:organization
  rl:projectPhD/rl:project
  rl:productfigure-lib/rl:product
  rl:commentpictures of my PhD/rl:comment
  /rl:description

  rl:resource
 rl:fileBall.png/rl:file
 rl:labelresource2/rl:label
 rl:copyrightsomebody/rl:copyright
 rl:commentBall/rl:comment
  /rl:resource

/rl:library

am I missing something?

Thanks Michael!

___
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] terrible png placement

2011-11-10 Thread Pontus Lurcock
On Thu 10 Nov 2011, Hans van der Meer wrote:

 Something terrible must be done to png pictures, either in ConTeXt or in 
 luatex.
 I have the following minimal sample code and picture. I include the png for 
 those who want to check.
 
 % Test png addition.
 \starttext
 Place png figure.\par
 \placefigure{Test figure}{\externalfigure[test.png]}
 \stoptext
 
 Without the png-picture it makes an 8KB pdf.
 But with the png-picture the pdf swells to 1.8MB.
 And that for a png-picture of only 48KB.
 Moreover making a zip of all this stuff brought the size back to 110KB.
 In the log: 
 ConTeXt  ver: 2011.11.04 14:15 MKIV  fmt: 2011.11.10  int: english/english
 mkiv lua stats   graphics processing time  - 0.001 seconds including tex, 1 
 processed images

Can't reproduce here; I get a 70KB pdf with your file and image.
ConTeXt standalone, 32-bit Linux, mkiv, version 2011.10.01 10:48.

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
___