Re: [NTG-context] ConTeXt unofficial test suite stub (chemistry)

2012-10-18 Thread Alan BRASLAU
On Thu, 18 Oct 2012 00:20:01 +0200
Romain Diss romain.d...@yahoo.fr wrote:

 Le mercredi 17 octobre 2012, Alan BRASLAU a écrit :
  Furiously, breaking many old curiosities,
  fixing broken and incomplete functionality,
  AND completely re-writing the documentation!
  (Not that I really know much about chemistry myself... :)
 Since you talk about chemistry, is there now a way to type correctly
 isotopes (without any hacks). Actually \chemistry{^{238}_{92}U} do
 align '92' to the left. It should be aligned to the right.
 
 Thank you.
 (Maybe I should have open a new thread...)
 

Hum, I work all the time with $^3$He and $^4$He,
but somehow I never thought of this as chemistry...

I'll look into fixing \chemistry{^{32}_{15}P} (another one of my
occupations), and Hans will then put it into the beta.

Alan
___
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] ConTeXt unofficial test suite stub (chemistry)

2012-10-18 Thread Hans Hagen

On 18-10-2012 00:20, Romain Diss wrote:

Le mercredi 17 octobre 2012, Alan BRASLAU a écrit :

Furiously, breaking many old curiosities,
fixing broken and incomplete functionality,
AND completely re-writing the documentation!
(Not that I really know much about chemistry myself... :)

Since you talk about chemistry, is there now a way to type correctly isotopes
(without any hacks). Actually \chemistry{^{238}_{92}U} do align '92' to the
left. It should be aligned to the right.


It's on the agenda for luatex: prescripts.

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] ConTeXt unofficial test suite stub (chemistry)

2012-10-18 Thread Alan BRASLAU
On Thu, 18 Oct 2012 10:41:00 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:

 Alpha particles are \lohi[left]{40}{2}He.

Alpha particles are He\high{2+} (helium nucleus)
not to be confused with He\low{2} (helium molecules)
that DO exist but are unstable and only last 13 seconds or so.

Someone needs to fix the wiki... (done!)

\lohi[left]{}{4}He is a boson; \lohi[left]{}{3} is a fermion.

By the way, \lohi[left]{2}{4}He is somewhat a tautology, like all such
isotopic nomenclature, as He ALWAYS has an atomic number of 2,
otherwise it is not He (and U ALWAYS has an atomic number of 92,
otherwise it is no longer U).

Alan

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] [co-pagedesign.tex] grid=yes not mentioned

2012-10-18 Thread Philipp Gesang
Hi all,

in the page design manual the section “grid” does not mention
that the grid needs to be enabled by \setuplayout[grid=yes].
Although the “grid” parameter is briefly discussed alongside the
other parameters of \setuplayout, there is no hint at the
available snapping methods.

Philipp

--- co-pagedesign.tex.orig  2012-10-18 12:06:19.391924262 +0200
+++ co-pagedesign.tex   2012-10-18 12:33:38.226379268 +0200
@@ -605,7 +605,7 @@
 \NC columns \NC number\NC \NC\NR % Geen effect nog in MKII nog 
in MKIV
 \NC columndistance  \NC dimension \NC \NC\NR % Geen effect nog in MKII nog 
in MKIV
 \NC grid\NC yes no
-\NC Typsetting on the grid is activated with grid=on. \NC\NR
+\NC Typesetting on the grid is activated with grid=yes. \NC\NR
 \NC bottomspace \NC dimension
 \NC \type{Bottomspace} increases the white space at the bottom of the page 
without altering the page-layout. \NC\NR 
 \NC cutspace\NC dimension
@@ -767,6 +767,19 @@
 the last footnote!}
 \stopcolumns
 
+Grid typesetting is part of the page layout.
+To enable it globally, the parameter \type{grid} needs to be
+set to \type{yes} (or \type{normal}), which starts snapping
+with the default behavior. If this does not lead to the
+desired results, the value \type{strict} will adjust the
+grid more rigidly and \type{tolerant} more loosely.
+
+\startexample
+\starttyping
+\setuplayout[grid=yes]
+\stoptyping
+\stopexample
+
 During typesetting on a grid the heads, figures, formulas
 and the running text are set on a fixed line spacing. If a
 typographical component for any reason is not placed on the


pgpOLt1JeDcff.pgp
Description: PGP signature
___
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 Numbering

2012-10-18 Thread Malte Stien
Hello,

I have just up just upgraded from version 2012.03.30 to the latest beta. 
Suddenly none of my tables are named chapter.number anymore, eg. Table 1.3 for 
the third table in Chapter 1, but just 3. That is, the chapter number is no 
longer prepended. Has something changed there? How can I enable the old 
behaviour again?

Thank you,
Malte.

PS: The latest stable seems to still be 2011.05.18; any reason why that does 
not get updated?

___
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] ConTeXt unofficial test suite stub (chemistry)

2012-10-18 Thread Romain Diss
Le jeudi 18 octobre 2012, Sietse Brouwer a écrit :
 What about \lohi with the [left] key? That might serve your needs until
 Alan gets \chemistry to parse and typeset isotopes correctly.
Yes there are some hacks to typeset isotopes correctly, but I think it would 
be better to be able to typeset it in a simple way with \chemistry.

-- 
Romain Diss
romain.d...@yahoo.fr
___
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] Table Numbering

2012-10-18 Thread Wolfgang Schuster

Am 18.10.2012 um 13:59 schrieb Malte Stien ma...@stien.de:

 Hello,
 
 I have just up just upgraded from version 2012.03.30 to the latest beta. 
 Suddenly none of my tables are named chapter.number anymore, eg. Table 1.3 
 for the third table in Chapter 1, but just 3. That is, the chapter number is 
 no longer prepended. Has something changed there? How can I enable the old 
 behaviour again?

Add

  \setupcaption[prefix=yes]

to your document do enable the chapter prefix for a floats or add

 \setupcaption[table][prefix=yes]

to enable it only for table floats.

I’ll take a look why the prefix isn’t enabled by default which should be the 
case (the value is set on the core but ignored).

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] ConTeXt unofficial test suite stub (chemistry)

2012-10-18 Thread Romain Diss
Le jeudi 18 octobre 2012, Alan BRASLAU a écrit :
 By the way, \lohi[left]{2}{4}He is somewhat a tautology, like all such
 isotopic nomenclature, as He ALWAYS has an atomic number of 2,
 otherwise it is not He (and U ALWAYS has an atomic number of 92,
 otherwise it is no longer U).
Sure but but the format is nevertheless usefull in some cases:
- exercises like: what is the chemical symbol of the \lohi[left]{2}{4}X 
atom?
- nuclear reactions where Z are usefull to balance the equations (see 
http://en.wikipedia.org/wiki/Nuclear_reaction for exemples). Of course if one 
know every Z and atomic symbol associated by heart, the nomenclature with Z is 
not needed.

-- 
Romain Diss
romain.d...@yahoo.fr
___
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] [co-pagedesign.tex] grid=yes not mentioned

2012-10-18 Thread Peter Münster
On Thu, Oct 18 2012, Philipp Gesang wrote:

 --- co-pagedesign.tex.orig2012-10-18 12:06:19.391924262 +0200
 +++ co-pagedesign.tex 2012-10-18 12:33:38.226379268 +0200

Applied.

-- 
   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] ConTeXt unofficial test suite stub (chemistry)

2012-10-18 Thread Sietse Brouwer
Sietse wrote:
 Alpha particles are \lohi[left]{40}{2}He.

Alain wrote:
 Someone needs to fix the wiki... (done!)

[Alain fixed the wiki to Alpha particles are \lohi[left]{4}{2}He\high{2+}.]

But, but, but ... that doesn't demonstrate the fact that the elements
right-align instead of left-align! I've changed it again:

One stable isotope of tantalum is \lohi[left]{73}{180m}Ta.

(This is my own fault: I deliberately added the extra 0 in
\lohi[left]{40}{2}He, a long time ago, because I cared more about
illustrativeness than truth. And because I was too lazy to look up a
more suitable isotope. I am a bad person, and it is good that people
like Alain exist to keep people like me in line. :-P)

--Sietse
___
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] Table Numbering

2012-10-18 Thread Sietse Brouwer
Hello Malte, Mojca,

Malte wrote:
 PS: The latest stable seems to still be 2011.05.18; any reason why that does 
 not get updated?

This was discussed on the mailing list a while ago; Mojca gave a
rather complete answer.
http://www.mail-archive.com/ntg-context@ntg.nl/msg65226.html

@Mojca: you wrote, about promoting the version in TeX Live 2012 to
stable/current, the following:

 I have no idea how Hans uploads current versions, but I could make a
 zip, upload it to CTAN and make it available as current in minimals.
 (If I forget to do that in less than a week, please remind me.)

I completely forgot to remind you. :-) How about sometime this week,
would that be attemptable? Then we can also update the wiki's ConTeXt
engine.

All the best,
Sietse
___
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] Multi-page textbackground ignores topoffset

2012-10-18 Thread Nicholas Ulle
Hi,

Is there any way to get a multi-page textbackground to respect topoffset on
each page? From the second page onwards, it leaves no offset at the top. I
don't think I can use background instead, as I'm nesting the textbackgound
under itemize and also use itemize within it (correct me if this works
okay?). A minimal example (note context live doesn't display the frame,
which is sort of necessary to see the problem):

\definetextbackground[Test][
location=paragraph,
topoffset=1em, bottomoffset=1em,
leftoffset=1em, rightoffset=1em,
frame=on, framecolor=black]

\starttext
This is some text outside of a text background.

\startTest
\dorecurse{10}{\input tufte \par \input knuth \par}
\stopTest

This is more text outside of a text background.
\stoptext

Kip Warner started a thread about this several months ago, but it seems to
have died before anyone offered a solution.

Thanks,
Nick
___
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] Table Numbering

2012-10-18 Thread Malte Stien
Thank you, Wolfgang. That works.

Regards,
Malte.


On 19/10/2012, at 4:14, ntg-context-requ...@ntg.nl wrote:

 Hello,
 
 I have just up just upgraded from version 2012.03.30 to the latest beta. 
 Suddenly none of my tables are named chapter.number anymore, eg. Table 1.3 
 for the third table in Chapter 1, but just 3. That is, the chapter number is 
 no longer prepended. Has something changed there? How can I enable the old 
 behaviour again?
 
 Add
 
  \setupcaption[prefix=yes]
 
 to your document do enable the chapter prefix for a floats or add
 
 \setupcaption[table][prefix=yes]
 
 to enable it only for table floats.
 
 I?ll take a look why the prefix isn?t enabled by default which should be the 
 case (the value is set on the core but ignored).
 
 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 Long Titles

2012-10-18 Thread Malte Stien
Hello,

I am using a the startsetups mechanism that defines a title page in my 
environment file. That way anyone creating a document in my organisation can 
create a new document and get a consistent look of the title page. There is one 
problem with this: On occasions I get very long document titles and then the 
title extends over the left-hand edge of the page. I would like to incorporate 
a new line into the document title; I'd even be happy to do that manually, ie. 
it does not have to be automatic.

There are two problems here:
1. I had not had any success with putting a newline into the title; it will 
need to be not where the titlepage is defined but where it is used (see below). 
I have tried \par and \\ and none of them work.
2. Assuming I found a way to do this, I would need to also find a way of 
reducing the \blank[170mm] by the amount that the second line of the title 
takes up to render the information down the bottom in roughly the same place. 
If push comes to shove, I could create a second titlepage setup for two-line 
titles, but I much rather not. Is there a solution to that? Is there maybe a 
way to position the information down the bottom absolute?

Here is  minimal example (or something very close to that):

% The title page
\startsetups titlepage
\startstandardmakeup[style=sans]
\blank[50mm]
\rightaligned{\bfd\getvariable{titlepage}{project}}
\textrule
\rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}
\blank[170mm]
\starttabulate[|plf{\tfa}|prf{\tfa}|]
\NC\tfa\copyright\thinspace Pearson Pty Ltd  \NC
\getvariable{titlepage}{author} \NC\NR
\TB[small]
\NC \color[darkgray]{Commercial in Confidence} \NC 
\color[darkgray]{\getvariable{titlepage}{version}} \NC\NR
\stoptabulate
\tfx Uncontrolled copy if printed.
\stopstandardmakeup
\stopsetups

% ...and this is how it is being used
\starttext
\setvariables
[titlepage]
[set=\texsetup{titlepage},
project={Pearson},
title={This document title is very long, so I'd like to \par break it 
into two lines},
author={Tony Mueller},
version={Version 1.0.0}]
\stoptext

Thank you very much for all the help I have received so far.

Regards,
Malte.

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