Re: [NTG-context] interaction?

2011-11-26 Thread Wolfgang Schuster

Am 25.11.2011 um 21:40 schrieb Hans Hagen:

 On 25-11-2011 21:15, Wolfgang Schuster wrote:
 
 It’s a bug (maybe wrong default settings) which was introduced with Idris 
 request
 to have lists which are local to a component, when you refer to the label 
 with
 the name of the component as prefix (\getreference[text][part1:label:1]) the 
 text
 is shown.
 
 Do you have a clue where?

I was wrong, I tried it now with the beta from two days ago and there is also
the same bug, maybe this was introduced when you rewrote the project code.

The odd thing is the following block from the tuc file with the two reference
which are generated with the \reference command. The reference “label:2”
was written in the product file and it has an empty index but the second
reference “label:1” has the index “part1” because this is the name of
the component file where it was set.

utilitydata.structures.references.collected={
 []={
  [label:2]={
   [entries]={
[text]=Outer reference,
   },
   [metadata]=17,
   [references]={
[block]=frontpart,
[realpage]=1,
[section]=0,
   },
  },
 },
 [part1]={
  [label:1]={
   [entries]={
[text]=Inner reference,
   },
   [metadata]=18,
   [references]={
[block]=bodypart,
[realpage]=4,
[section]=2,
   },
  },
 },
}

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

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


Re: [NTG-context] Feature request: criterium=component

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

On Fri, 25 Nov 2011 03:34:07 -0700, Hans Hagen pra...@wxs.nl wrote:


Will be in the next beta. And *you* are going to wikify it!


Ok, done :-)

http://wiki.contextgarden.net/Table_of_Contents#Tables_of_contents_.28and_other_lists.29_via_project_structures

And thanks for implementing this!

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] Change the gap between image and caption

2011-11-26 Thread Jaroslav Hajtmar

Thanx Christian.
I dont konw it this is clean way too, but it works fine and emergency it 
is certainly applicable :-)

Jaroslav



Dne 25.11.2011 21:02, Christian napsal(a):

you can also play around with included blanks. I don't know if this is a clean 
way, but it's working:

\setupcaptions[number=no,style=\ssxx]
\setupfloats[spacebefore=none, spaceafter=none] %
\starttext
\input tufte

\startplacefigure
 \startcombination[3*1]
   {\externalfigure[cow][frame=on,width=.3\textwidth]}{{\blank[.2cm]}This 
caption has to be more distanced.}
   {\externalfigure[cow][frame=on,width=.3\textwidth]}{{\blank[1cm]}This 
title has yet to be more distanced.}
   {\externalfigure[cow][frame=on,width=.3\textwidth]}{This label is to be 
closer to figure.}
 \stopcombination
\stopplacefigure
\input tufte
\stoptext


   

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] Im
Auftrag von Jaroslav Hajtmar
Gesendet: Freitag, 25. November 2011 20:54
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] Change the gap between image and caption

Hello Christian.
Thank you. For the entire block of images it works well. It is sufficient at 
this
time.
I just wanted to know how to do it if I do not take pictures inside
startcombinations - stopcombinations environment

Jaroslav



Dne 25.11.2011 19:45, Christian napsal(a):
 

Well, since you are in a startcombinations block and not a figure
   

environement, try this:
 

\setupcombinations[inbetween={\blank[1cm]}]



   

-Ursprüngliche Nachricht-
Von: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl]
Im Auftrag von Jaroslav Hajtmar
Gesendet: Freitag, 25. November 2011 19:08
An: mailing list for ConTeXt users
Betreff: [NTG-context] Change the gap between image and caption

Hello ConTeXt folks.

Is it possible to adjust the size of the gap between the lower edge
of the picture and its caption in simple externalfigure command?
By experimenting I found that this gap can be set in a floating
environment
(placefigure)  using inbetween parameter.
Is there possibilities do gap somehow larger or smaller in
externalfigure environment?  See minimal example.
Thanx Jaroslav


\starttext

\setupcaptions[number=no,style=\ssxx,inbetween={\blank[1cm]}]
\setupfloats[spacebefore=none, spaceafter=none] %

\input tufte

\placefigure[here]{Here is farther caption}
{\externalfigure[mill][type=jpg,metod=jpg,width=5cm,frame=on]}

\input tufte


\page


\startTEXpage
  \startcombination[3*1]
{\externalfigure[cow][frame=on]}{This caption has to be more
 

distanced.}
 

{\externalfigure[cow][frame=on]}{This title has yet to be more
distanced.}
{\externalfigure[cow][frame=on]}{This label is to be closer to figure.}
  \stopcombination
\stopTEXpage



\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] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-26 Thread Alexandre Krispin
Hello,

Thanks to all for your answers !

Finally, thanks to an article dealing about Xelatex, bibtex files and utf-8
problem (see
http://skalldan.wordpress.com/2011/08/01/%E3%82%A4%E3%83%B3%E3%83%89%E5%AD%A6%E4%BB%8F%E6%95%99%E5%AD%A6%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B-utf-8-%E3%81%AB%E3%82%88%E3%82%8B-tex-%E6%96%87%E6%9B%B8%E4%BD%9C%E6%88%90-4/)
I got the idea how to solve my problem.

In the bib file I have surrounded all japanese words by {\jpn }, like in
this minimal example :
%beginning of the example%%%
@article{uzawa2011tpp,
author = Hirofumi Uzawa {\jpn 宇沢弘文}, Uchihashi Katsuto {\jpn 内橋克人},
journal = Sekai {\jpn 世界},
title = Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru
{\jpn 対談TPPは社会的共通資本を破壊する},
year = 2011,
month = april,
publisher = Iwanami shoten {\jpn 岩波書店},
pages = 62-72,
url = http://ci.nii.ac.jp/naid/40018706510/;,
note = test
}
end of file%%

Then, thanks to the documentation for simplefonts I have introduced a
typeface definition, like in this minimal example :

%%beginning of file%
\usemodule[simplefonts]
\setmainfont[Arno Pro]
\definesimplefonttypeface[jpn][hiraginokakugothicpro]
\enableregime[utf8]

\setupbibtex[database=biblio]

\starttext
test
\completepublications[criterium=all]
{\jpn 知らない  金 11月 25, 2011  10:21午後}
\stoptext

%%end of file%%%

And everything works well when compiling the whole with context *tex.

The only question remaining in my mind is : is there another way ? Just out
of curiosity, since Hans Hagen mentioned Thomas who use greek.


2011/11/25 Hans Hagen pra...@wxs.nl

 On 25-11-2011 20:03, Christian wrote:

  Same here. It messes up when converting .bib to .bbl. Maybe check your
 bbl file, too. Mine looks like this, for example:
 a={{Hirofumi Uzawa~宇沢弘文}}

 You could try to write the .bbl file directly yourself, although that is
 not a comfortable option, if you have many Japanese entries.
 Apart from that there's not much coming to mind.


 It makes me wonder how Thomas gets his greek etc done in bibtex.

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




-- 
--
Alexandre KRISPIN
41 rue Guynemer  |  93200 Saint-Denis  |  France
tél : 06 28 76 69 34  |  http://bijutsu.toile-libre.org

___
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] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-26 Thread Ulrike Fischer
Am Fri, 25 Nov 2011 19:50:52 +0100 schrieb Alexandre Krispin:

 Hello,
 
 I am trying to get japanese displayed in bibliography. But I get the error
 ! String contains an invalid utf-8 sequence. while compiling with the
 command context *tex.

 And here is the bib file :
 
 %%%beginning of file%%%
 @article{uzawa2011tpp,
 author = Hirofumi Uzawa 宇沢弘文, Uchihashi Katsuto 内橋克人,
 journal = Sekai 世界,
 title = Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru
 対談TPPは社会的共通資本を破壊する,
 year = 2011,
 month = april,
 publisher = Iwanami shoten 岩波書店,
 pages = 62-72,
 url = http://ci.nii.ac.jp/naid/40018706510/;,
 }
 %%%end of file%%
 
 Do someone know how to get ride of utf-8 errors ? Or is this a problem with
 bibtex, 

Yes. bibtex is an 8-bit application. Your japanese characters
consist of three or four 8-bit-blocks. As bibtex has no knowledge
that these blocks should be keeped together it can happen that
bibtex breaks them in pieces e.g. at line ends and so you end with
invalid utf8. You could try to move the blocks a bit around e.g.
with braces or spaces so that bibtex finds a break point between the
utf8-chars and not in the middle of one of them. 


 and then should I use anything else to replace it ?
 (does something like Biber work ?)

Well in latex with biblatex it works and is the recommended
solution. But I don't know if context supports biber. 


-- 
Ulrike Fischer 

___
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] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-26 Thread Alexandre Krispin
Thanks Ulrike ! It seems the 2 messages I sent yesterday have been lost (I
have received a mail which might point out a delivery failure from the
mailing list) though it is written I don't need to send again the message,
in case, here is the copy of mails I sent. Now the only problem remaining
is that japanese sentences are not wrapped (long titles of books go through
the page). And though I took a look to documentation about chinese, I don't
know what I am missing.

***Beginning of first
mail

Hello,

Thanks to all for your answers !

Finally, thanks to an article dealing about Xelatex, bibtex files and utf-8
problem (see
http://skalldan.wordpress.com/2011/08/01/%E3%82%A4%E3%83%B3%E3%83%89%E5%AD%A6%E4%BB%8F%E6%95%99%E5%AD%A6%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B-utf-8-%E3%81%AB%E3%82%88%E3%82%8B-tex-%E6%96%87%E6%9B%B8%E4%BD%9C%E6%88%90-4/)
I got the idea how to solve my problem.

In the bib file I have surrounded all japanese words by {\jpn }, like in
this minimal example :
%beginning of the example%%%
@article{uzawa2011tpp,
author = Hirofumi Uzawa {\jpn 宇沢弘文}, Uchihashi Katsuto {\jpn 内橋克人},
journal = Sekai {\jpn 世界},

title = Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru

{\jpn 対談TPPは社会的共通資本を破壊する},

year = 2011,
month = april,

publisher = Iwanami shoten {\jpn 岩波書店},

pages = 62-72,
url = http://ci.nii.ac.jp/naid/40018706510/;,

note = test
}
end of file%%

Then, thanks to the documentation for simplefonts I have introduced a
typeface definition, like in this minimal example :

%%beginning of file%
\usemodule[simplefonts]
\setmainfont[Arno Pro]
\definesimplefonttypeface[jpn]
[hiraginokakugothicpro]

\enableregime[utf8]

\setupbibtex[database=biblio]

\starttext

test
\completepublications[criterium=all]
{\jpn 知らない  金 11月 25, 2011  10:21午後}
\stoptext

%%end of file%%%

And everything works well when compiling the whole with context *tex.

The only question remaining in my mind is : is there another way ? Just out
of curiosity, since Hans Hagen mentioned Thomas who use greek.

***End of first
mail

And the second mail :

***Beginning of second
mail
Now that japanese display correctly, there is still another problem.
Japanese sentences (long titles in bibliography) don't break at the end of
line. I have tested the behavior of japanese with entire paragraphs, and I
get the same problem as in the bibliography, lines don't break and go
through the page.

Though I have looked to documentation about chinese on the wiki, none
helped me to solve this problem. Does someone have any idea ?

Here is a minimal example with a paragraph sample in japanese :
%beginning of file%%
\usemodule[simplefonts]
\setmainfont[HeiseiMinStd-W3]
\definesimplefonttypeface[jpn]
[HeiseiMinStd-W3]
\setupbodyfont[12pt]
\setuptolerance[\v!verytolerant,\v!stretch]
\enableregime[utf]

\usemodule[typearea]
\setupTypeArea[bcor=30mm,alphabets=2.6,oneside]
%*
\starttext

そしてディズニー原理主義で考えた場合、「一秒24コマの絵」で作るフルアニメが至上。そのルールに照らした場合、「電脳コイル」より「らき☆すた(ハルヒ)」の方が優れている。
ニョロニョロと滑らかに動く。つまりそれだけ動画枚数を多く使ってる。よりフルアニメに近い。よって「電脳コイル<らき☆すた」となる。

コレに作画マニアは反論する。アニメは「アニメーターのスキル」こそが最も重要。「スキル>作画枚数」、だから優れたアニメーターである磯光雄の手掛けた電脳コイルのほうが偉い。
じゃあ磯光雄がフルアニメにしたら?今の2コマ3コマ打ちの磯光雄より偉いの?より優れてるの?

>フルアニメの磯光雄の方が優れている。
この場合、「リミテッドアニメという制約の中で独自の進化をした日本アニメのアイデンティティ」というのが無くなってしまう。「らき☆すた」には勝てるがファンタジアには負ける。
>2、3コマ打ちのリミテッドの磯光雄の方が優れている。
質としては等価(磯光雄の原画)でより量のあるフルアニメよりもリミテッドアニメの方が優れてる、その理由を言語化する必要がある。

じゃあ、そのリミテッドで手に入れた価値とは何?
例えば「フルアニメと同じ価値をリミテッド(より少ない動画枚数=コスト)で作れるという『省エネ』の部分にある」ってこと?ソレだと新たな創作的価値を別に産み出してないよね。
そうでないのなら動きの質がディズニーとはどう違うの?
\stoptext
%end of file%

I attach the corresponding pdf file I obtain after compilation.

***End of second
mail


2011/11/26 Ulrike Fischer ne...@nililand.de

 Am Fri, 25 Nov 2011 19:50:52 +0100 schrieb Alexandre Krispin:

  Hello,
 
  I am trying to get japanese displayed in bibliography. But I get the
 error
  ! String contains an invalid utf-8 sequence. while compiling with the
  command context *tex.

  And here is the bib file :
 
  %%%beginning of file%%%
  @article{uzawa2011tpp,
  author = Hirofumi Uzawa 宇沢弘文, Uchihashi Katsuto 内橋克人,
  journal = Sekai 世界,
  title = Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru
  対談TPPは社会的共通資本を破壊する,
  year = 2011,
  month = april,
  publisher = Iwanami shoten 岩波書店,
  pages = 62-72,
  url = http://ci.nii.ac.jp/naid/40018706510/;,
  }
  %%%end of file%%
 
  Do someone know how to get ride of utf-8 errors ? Or is this a problem
 with
  bibtex,

 Yes. bibtex is an 8-bit 

[NTG-context] captions trouble

2011-11-26 Thread Meer, H. van der
Something seems amiss in the code below. The idea is having in general figures 
with numbered labels, but now and then a figure without. First I thought to use 
[location=none] on the placement, but then the numbering is not interrupted: 
label-1 (label-2 invisible), label-3. That is disturbing to the reader who will 
think a figure is missing. The numbering and the label are suppressed by 
\setupcations[number=no] and reinstated with \setupcaptions[number=yes]. But 
this kills the space between the label and the caption. I enclose a minimal 
example that shows the effect. Could this be a bug?

\setuppapersize[A6][A6]
\starttext
\placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
\setupcaptions[number=no]
\placefigure{}{\externalfigure[arrows.pdf]}
\setupcaptions[number=yes]
\placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
\stoptext

Hans van der Meer






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

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

Re: [NTG-context] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-26 Thread Wolfgang Schuster

Am 26.11.2011 um 11:44 schrieb Alexandre Krispin:

 Now that japanese display correctly, there is still another problem. Japanese 
 sentences (long titles in bibliography) don't break at the end of line. I 
 have tested the behavior of japanese with entire paragraphs, and I get the 
 same problem as in the bibliography, lines don't break and go through the 
 page.
 
 Though I have looked to documentation about chinese on the wiki, none helped 
 me to solve this problem. Does someone have any idea ?

Add “\setscript[hanzi]” 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] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-26 Thread Alexandre Krispin
Thanks ! It worked perfectly !

Cheers,
Alexandre Krispin

2011/11/26 Wolfgang Schuster schuster.wolfg...@googlemail.com


 Am 26.11.2011 um 11:44 schrieb Alexandre Krispin:

  Now that japanese display correctly, there is still another problem.
 Japanese sentences (long titles in bibliography) don't break at the end of
 line. I have tested the behavior of japanese with entire paragraphs, and I
 get the same problem as in the bibliography, lines don't break and go
 through the page.
 
  Though I have looked to documentation about chinese on the wiki, none
 helped me to solve this problem. Does someone have any idea ?

 Add “\setscript[hanzi]” 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

 ___




-- 
--
Alexandre KRISPIN
41 rue Guynemer  |  93200 Saint-Denis  |  France
tél : 06 28 76 69 34  |  http://bijutsu.toile-libre.org

___
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] captions trouble

2011-11-26 Thread Jaroslav Hajtmar

Hello Hans,

My tip is use \setupcaptions[number=yes, suffix=\hskip5mm]

I do not know whether it is a clean solution, but visually it looks OK.
Probably will need to determine the exact size of  \hskip parameter.

Jaroslav



\setuppapersize[A6][A6]
\starttext
\placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
\setupcaptions[number=no]
\placefigure{}{\externalfigure[arrows.pdf]}
\setupcaptions[number=yes, suffix=\hskip5mm]
\placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
\stoptext

Dne 26.11.2011 12:29, Meer, H. van der napsal(a):

\setuppapersize[A6][A6]
\starttext
\placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
\setupcaptions[number=no]
\placefigure{}{\externalfigure[arrows.pdf]}
\setupcaptions[number=yes]
\placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
\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] captions trouble

2011-11-26 Thread Meer, H. van der
My mistake. I remembered [number=no/yes] but it turns out there is also 
[number=none]. Which does the trick. And the [distance=(dimension)] sets the 
distande between label and caption.

Hans van der Meer

On 26 nov. 2011, at 12:50, Jaroslav Hajtmar wrote:

 Hello Hans,
 
 My tip is use \setupcaptions[number=yes, suffix=\hskip5mm]
 
 I do not know whether it is a clean solution, but visually it looks OK.
 Probably will need to determine the exact size of  \hskip parameter.
 
 Jaroslav
 
 \setuppapersize[A6][A6]
 \starttext
 \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=no]
 \placefigure{}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=yes, suffix=\hskip5mm]
 \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
 \stoptext
 
 Dne 26.11.2011 12:29, Meer, H. van der napsal(a):
 \setuppapersize[A6][A6]
 \starttext
 \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=no]
 \placefigure{}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=yes]
 \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
 \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] captions trouble

2011-11-26 Thread Wolfgang Schuster

Am 26.11.2011 um 12:29 schrieb Meer, H. van der:

 Something seems amiss in the code below. The idea is having in general 
 figures with numbered labels, but now and then a figure without. First I 
 thought to use [location=none] on the placement, but then the numbering is 
 not interrupted: label-1 (label-2 invisible), label-3. That is disturbing to 
 the reader who will think a figure is missing. The numbering and the label 
 are suppressed by \setupcations[number=no] and reinstated with 
 \setupcaptions[number=yes]. But this kills the space between the label and 
 the caption. I enclose a minimal example that shows the effect. Could this be 
 a bug?
 
 \setuppapersize[A6][A6]
 \starttext
 \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=no]
 \placefigure{}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=yes]
 \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
 \stoptext

There is no need for \setupcaptions because you can say 
\placefigure[none]{…}{…} and \placefigure[nonumber]{…}{…} but the missing space 
after the label is wrong.

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] captions trouble

2011-11-26 Thread Wolfgang Schuster

Am 26.11.2011 um 15:17 schrieb Wolfgang Schuster:

 
 Am 26.11.2011 um 12:29 schrieb Meer, H. van der:
 
 Something seems amiss in the code below. The idea is having in general 
 figures with numbered labels, but now and then a figure without. First I 
 thought to use [location=none] on the placement, but then the numbering is 
 not interrupted: label-1 (label-2 invisible), label-3. That is disturbing to 
 the reader who will think a figure is missing. The numbering and the label 
 are suppressed by \setupcations[number=no] and reinstated with 
 \setupcaptions[number=yes]. But this kills the space between the label and 
 the caption. I enclose a minimal example that shows the effect. Could this 
 be a bug?
 
 \setuppapersize[A6][A6]
 \starttext
 \placefigure[][fig:1]{label with space}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=no]
 \placefigure{}{\externalfigure[arrows.pdf]}
 \setupcaptions[number=yes]
 \placefigure[][fig:3]{label without space}{\externalfigure[arrows.pdf]}
 \stoptext
 
 There is no need for \setupcaptions because you can say 
 \placefigure[none]{…}{…} and \placefigure[nonumber]{…}{…} but the missing 
 space after the label is wrong.

I send a fix for the missing space to the dev list.

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] Columnsets: bug in current beta?

2011-11-26 Thread Peter Park Nelson
Hello,

Following the example in the Columns manual, the following works with
TeXLive 2011 but not with the current context suite beta (25 nov 2011):

\definecolumnset[body][n=2]
\definecolumnsethsize{body}{1}{1}\One
\definecolumnsethsize{body}{1}{2}\Two

\starttext
\startcolumnset[body]

\dorecurse{5}{\input tufte\par}

\startbuffer
\placefigure[btlr]{A placeholder
figure.}{\externalfigure[widefigure][width=\Two]}
\stopbuffer

\dorecurse{5}{\input tufte\par}

\getbuffer

\stopcolumnset
\stoptext

Using the current beta, the figure only cleanly spans one column --
vertical space for the graphic and caption is reserved in one column; in
the other column, text flows on beneath the graphic, which is superimposed.

Using TeXLive 2011, the wide figure spans both columns correctly.

Thanks,
PPN
-- 
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] Footnote Problem

2011-11-26 Thread Kip Warner
On Wed, 2011-11-16 at 00:09 +0100, Wolfgang Schuster wrote:
 Am 15.11.2011 um 20:41 schrieb Kip Warner:
 
  On Tue, 2011-11-15 at 09:42 +0100, Wolfgang Schuster wrote:
  Am 15.11.2011 um 06:57 schrieb Kip Warner:
  
  Hey folks,
  
  The second \footnote doesn't show in the generated PDF. The number is
  listed where it should at the end of the sentence, but the text of the
  footnote is not listed at the bottom of the page.
  
  Add \automigrateinserts to your document.
  
  Wolfgang
  
  
  Thanks Wolfgang, but should that be in the environment file or can it go
  anywhere?
 
 Put it in the preamble of your document which can be a environment file or 
 just before \starttext.
 
 Wolfgang

Hey Wolfgang. The problem now is that the footnote sits inside of
textbackground boxes at the bottom of them. I'd like them instead at the
bottom of the page with the rest of my footnotes. How is this done?

-- 
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] mod_php vs context: tight loop

2011-11-26 Thread Brendan Jurd

On 25/11/11 19:17, Hans Hagen wrote:

On 25-11-2011 06:12, Brendan Jurd wrote:

I have a PHP application which generates documentation on the fly with
context. This has been working really well, but I am now testing
deployment on a new server with a more recent version of context, and it
seems to be somehow getting itself into a tight loop.

in such cases I always run with --batch to make sure that the job 
itself cannot block




Hi Hans,

Thanks for the response.  I tried running with --batch and it made no 
difference to the outcome.  The mtxrun process still got jammed up in 
exactly the same manner.


Regressing to the ubuntu 'lucid' packages resolved the problem for me, 
so whatever is wrong has gone wrong somewhere in the combination of 
packages in ubuntu 'natty'.


--
Regards,
Brendan Jurd

Software Engineer
Achieve, Corp

brendan.j...@achievecorp.com.au

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