Re: [NTG-context] Letters in the first level head instead of numbers

2011-02-26 Thread Wolfgang Schuster

Am 25.02.2011 um 14:14 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

 Hello,
 
 maybe already questioned in the past, but I cannot find the answer:
 
 How to change the numbering style for a particular head (e.g. section) from 
 numbers (1, 2...) to letters (A, B...) - which option and value 
 (http://wiki.contextgarden.net/Reference/en/setuphead)?

% old method

%\setuphead[chapter][conversion=Character]

% new method

\definestructureconversionset[myconversion][numbers,Characters][numbers]
\setupheads[sectionconversionset=myconversion]

\starttext
\chapter{Knuth}
\input knuth
\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] how to make chapter starts from odd page always?

2011-02-26 Thread Wolfgang Schuster

Am 24.02.2011 um 15:32 schrieb Jeong Dalyoung:

 Dear all,
 
 I'd like to start every chapter starts from an odd page. 
 page=right or page=left doesn't affect the page setting.
 I tried it using pagenumbering, but not succeed.
 I also want to put counting + pagenumber at the header of everypage.
 How to make it work?
 
 Here is my setting. Corrections for better shapes are welcomed.
 Thank you.
 
   
 \setuppagenumbering[alternative={singlesided,doublesided},location={header,left}]%singlesided,right]

Make this setting global, you have to say at the begin of the document
if you want a single- or doublesided 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
___


[NTG-context] Missing space between numbers in \showcolor (MkIV only)

2011-02-26 Thread Vedran Miletić
\starttext
\showcolor[rgb]
\stoptext

Numbers are next to each other. In MkII (with \setupcolors[state=start]) it
looks OK.

Regards.
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] Missing space between numbers in \showcolor (MkIV only)

2011-02-26 Thread Wolfgang Schuster

Am 26.02.2011 um 18:30 schrieb Vedran Miletić:

 \starttext
 \showcolor[rgb]
 \stoptext
 
 Numbers are next to each other. In MkII (with \setupcolors[state=start]) it 
 looks OK.

colo-ini.lua:

- function commands.formatcolor   (a) context(colors.formatcolor
   (a)) end
+ function commands.formatcolor   (...) context(colors.formatcolor  
 (...)) end
- function commands.formatgray(a) context(colors.formatgray 
   (a)) end
+ function commands.formatgray(...) context(colors.formatgray   
 (...)) end

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] \definelistplacement + margin

2011-02-26 Thread Andreas Harder
Hi all,

please have a look at the following example. The first chapter entry in the 
table of contents looks good, but the following entries adopt the margin 
setting from \setuplist[section][margin=3em] and I can't get rid of it … Any 
hint?

\definelistplacement[ChapListItem][none]#1#2#3%
  {\inframed[width=broad]{#1\emspace #2\hfill #3}}

\setuplist[chapter][alternative=ChapListItem]
\setuplist[section][margin=3em]

\starttext  \showframe
  \placelist[chapter,section]
  \dorecurse{3}{\chapter{Chapter}\dorecurse{3}{\section{Section}}}
\stoptext


Greeting
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] attachment attaches twice - more research

2011-02-26 Thread Hans Hagen

On 23-2-2011 12:35, Michail Vidiassov wrote:


as far as I understand ConTeXt now can not link file attachment to
arbitrary picture, just to some predefined icons. Am I right?


you can use symbols (as with fields and other widgets)


Is it going to change? Soon? There are comments in the code about
lack of measurement support for XForm - is that the issue and what
that issue is?


unrelated, more a dev note


I have already met that complaints in 3D Annotations support code.
BTW, I am interested in FileAttachment Annotations as a way to
work with 3D models. With LaTeX the main PDF file may contain a 2D picture,
that can be displayed in any PDF viewer, but if you click on it in Adobe
viewer attached PDF file opens with 3D model in it. That attached file
may be produced by some third-party tool, since often such tools output
not just 3D model fit for including in PDF, but a one-page PDF with the
3D model, complex JavaScript to control it (for example to animate it)
and some intarctive text related to the model.


I'm not sure what you mean here. There is some u3d and shockwave 
support. (I added u3d because someone asked it but the requester never 
tested it). Anyhow, these features are only extended when we (luigi and 
me) get proper public test files


Concerning attachments, the next beta will have a new definition model 
with inheritance but the \use.. method is still there as well.


The hidden method will not place an annotation. Definition is not really 
needed, so a direct \attachment works ok, but a bit of abstraction 
(separation between definition and use) does not hurt


% old but stil valid method (consistent with other \use):
%
% \useattachment[test.tex]
% \useattachment[whatever][test.tex]
% \useattachment[whatever][newname][test.tex]
% \useattachment[whatever][title][newname][test.tex]
%
% new method:
%
% \attachment[test.tex]
% \attachment[whatever1][file=test.tex]
% \attachment[whatever2][file=test.tex,method=hidden]
% \attachment[whatever3][name=newname,file=test.tex]
% \attachment[whatever4][title=mytitle,name=newname,file=test.tex]
%
% indirect
%
% \defineattachment[whatever5][file=test.tex] 
\attachment[whatever5][method=hidden]
% \defineattachment[whatever5][file=test.tex,method=hidden] 
\attachment[whatever5]

%
% direct (no definitions)
%
% \attachment[test][file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]
% 
\attachment[label=test,file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]

%
% autolabel:
%
% \attachment[file=oeps.tex,title=Oeps,author=Hans,subtitle=TeX 
File,method=hidden]

%
% % \setupattachments[\c!symbol={symbol-normal,symbol-down}]

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] [t-vim] Line numbers

2011-02-26 Thread Aditya Mahajan

On Wed, 23 Feb 2011, Marco wrote:


context --purgeall filename

should remove all temporary files belonging to the document like

filename-externalfilter-CON-0.tmp % not removed
filename-externalfilter-CON-0.tmp.md5 % not removed
filename-externalfilter-CON-0.vimout  % not removed

So after the project is done one can run context --purgeall filename to get a
clean directory structure without having to archive 30 temporary files.


I don't know how to implement this functionality and still provide a 
working pdf. To save time, t-vim (actually t-filter with continue=yes) 
runs the external filter only in the first run; in the subsequent runs the 
cached file is used. So, if I want to delete the temporary files, they 
must be deleted in the last run. Right now, there is no means of detecting 
the last run in MkIV.


In MkII, we can force a final run with --final, but there is no means to 
detect that run. Even if the mode could be detected, asking context to 
delete temporary files forces another run, so the attachments will be 
missing in the final run.


I am happy to provide the 'purge temp files' as a MkIV only feature, but I 
don't know how to force (and detect) a final run in MkIV.


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] Bibliography bug

2011-02-26 Thread Pontus Lurcock
Greetings everyone,

Since this is my first post here, I would like to start by saying
thank you to all the ConTeXt developers and documenters for a great
system. I'm using ConTeXt to typeset my doctoral dissertation, with
(so far) reasonable success. But I've run into what I think is a minor
bug in the default bibliography style. Minimal example:

---8---

\startpublication[k=test,t=inproceedings,a=Smith,y=2000]
\author[]{John}[J.]{}{Smith}
\pubyear{2000}
\arttitle{A fascinating exposition}
\editor[]{Adam}[A.]{}{Jones}
\title{Proceedings of Something}
\city{London}
\pages{123--132}
\organization{Institute of Whatever}
\stoppublication

\starttext
\placepublications[criterium=all]
\stoptext

---8---

Using Linux minimals, context Mark IV, v. 2011.02.25 22:03, this gives
me:

  Smith, J. (2000). A fascinating exposition. In Jones, A., editor,
  Proceedings of Something, pages 123–132. London.: Institute of
  Whatever

I think that London.: Institute of Whatever should be London:
Institute of Whatever. with full stop after organization rather than
city.

I assume the fix is simple, but I swiftly got lost when I tried
jumping into the bibliography code, so I hope that someone else can
help here.

Thanks,

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] Comma spacing in math mode

2011-02-26 Thread S Barmeier
I don't know if anyone feels the same, but I'm not happy with the
spacing of commas in math mode (pictures attached). For instance,
typesetting H^1(X,F), the comma seems to be closer to the F than to the
X. Equal spacing on both sides or setting the comma closer to the X are
I guess a matter of taste (inserting a \neghairspace after the X
achieves the latter). In any case, I would kind of prefer equal spacing.

Also, it seems odd that adding a negative space \neghairspace does not
change the length of the total formula - I had expected the modified one
to be slightly shorter...?

On a related issue, the spacing for lists, e.g. (0,0,...,0), is not
satisfactory. LaTeX provides a command \dotsc for dots between commas
(and other commands like \dotsm, \dotsi, \dotsb). I don't know if all of
these are necessary, but \dotsc and its cousins are not defined in
ConTeXt and both using \ldots or just ... give unsatisfactory results.
(It is also curious that the spacing after the first comma and the
spacing after the last comma in (0,0,...,0) is evidently different...)
Personally, I think I favour something approximating (0, 0, ..., 0) and
I find \ldots is spaced too widely, ... too closely, and in any case,
the spacing of the dots doesn't match with the spacing of the commas.

Any second opinions?

Best wishes,
Severin

P.S.: I'm also confused about \colon and : - the latter looks better to
me in $i: A \to B$. The spacing for projective coordinates [1:0: ... :0]
is wide but still acceptable. The index of a subgroup |G:H| is far too
widely spaced, but \colon only gives asymmetrical spacing.
The semicolon seems to undergo the same spacing as the comma, with the
same problems mentioned above.

P.P.S.: \hairspace does not seem to have any effect in math mode, while
\neghairspace does. Bug or feature?

attachment: commasmathmode.jpg___
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] Spacing for unnumbered equations

2011-02-26 Thread S Barmeier
The spacing for numbered and unnumbered equations is different:

\input tufte
\placeformula[-]
\startformula
a=b
\stopformula
\input tufte
\placeformula
\startformula
a=b
\stopformula
\input tufte

\placeformula[-] seems to insert extra space after the displayed
equation. Removable feature?

Thank you,
Severin
___
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] Non-stretching or slow-stretching spaces?

2011-02-26 Thread S Barmeier
I was wondering if there are any kind of spaces which (partly) fix the
spacing between characters. For example, typesetting Chapter 1, I
would like to keep the space from stretching at the same rate as the
surrounding spaces (just like ck ligatures in old German texts would be
prevented from stretching, or the space in do n't (sic) in early 20th
century American texts).

I currently use

\  to prevent a line break
~ to prevent extra space after a period
\,
\;
etc. as fractions(?) of the normal space (i.e. they change at the same
rate as the normal space when stretched)

Are there any other types of spaces I should be aware of? I would be
most grateful for any comments, especially concerning the existence of a
slow-stretching (or non-stretching) space...

Thank you,
Severin
___
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
___