[NTG-context] fr or en ?

2010-04-22 Thread R. Bastian
Hello,

\mainlanguage[fr], but in the log: 'language en is active'

is this no important ?

if fact, the spacing of ': ; ? !' are not the french spacing
(i prefer something intermediate betweeen the french and the german spacing ;-)

-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org
http://www.soundsurvey.org.uk/


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

2010-04-22 Thread R. Bastian
On Thu, 22 Apr 2010 05:32:12 +0200
Wolfgang Schuster schuster.wolfg...@googlemail.com scribit:

 Am 21.04.10 22:09, schrieb R. Bastian:
  Hello,
 
  What is the sense of \setupinterlinespace?
 
  In the following example, the distance between the line 1 and 2 seems to be 
  smaller
  then between line 2 and 3.
  
  \enableregime[utf]
  \mainlanguage[fr]
  \setupbodyfont[sansserif, 10pt]
  [...]
  {\setupinterlinespace[line=1.1ex]
 
 \setupinterlinespace[...]\par
 ...
 
 or
 
 {\setupinterlinespace[...]
   ...\par}
 
 This is normal behavious in *TeX*.

yes. It works. Thanks.

i think my mistake was: 1.1ex; 

\setupinterlinespace[line=2.5ex]  is what i want.

 
 Wolfgang
 


-- 
René Bastian


___
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] Fullpage module

2010-04-22 Thread Vyatcheslav Yatskovsky

Hello

Please, include *fullpage* module into the standard Context 
distribution. I badly need it in many kinds of documents.


--
Best Regards,
Vyatcheslav Yatskovsky

___
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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Denis Bitouzé
Le dimanche 18/04/10 à 23h23,
Hans Hagen pra...@wxs.nl a écrit :

 can you check if your ppchtex.noc file has
 
 \input supp-mis.mkii \let\writestatus\undefined
 \input syst-gen.mkii
 \input syst-fnt.mkii
 
 i.e loads the mkii files?

Yes, those lines are present in the file ppchtex.noc:

[bito...@drums ~]$ kpsewhich ppchtex.noc
/usr/local/texlive/2009/texmf-dist/tex/generic/context/ppchtex.noc
[bito...@drums ~]$
cd /usr/local/texlive/2009/texmf-dist/tex/generic/context/
[bito...@drums context]$ more ppchtex.noc | grep mkii
\input supp-mis.mkii \let\writestatus\undefined
\input syst-gen.mkii
\input syst-fnt.mkii
\input ppchtex.mkii
[bito...@drums context]$

Thanks for any further idea! ;)
-- 
Denis


___
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] fr or en ?

2010-04-22 Thread Peter Münster
On Thu, Apr 22 2010, R. Bastian wrote:
 
 \mainlanguage[fr], but in the log: 'language en is active'

Hello,

en is the language of the interface, the command names.

en: \mainlanguage[]
fr: \langueprincipale[]


 if fact, the spacing of ': ; ? !' are not the french spacing
 (i prefer something intermediate betweeen the french and the german
 spacing ;-)

\setcharacterspacing[frenchpunctuation]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] fr or en ?

2010-04-22 Thread R. Bastian
On Thu, 22 Apr 2010 11:51:09 +0200
Peter Münster pmli...@free.fr scribit:

 On Thu, Apr 22 2010, R. Bastian wrote:
  
  \mainlanguage[fr], but in the log: 'language en is active'
 
 Hello,
 
 en is the language of the interface, the command names.
 
 en: \mainlanguage[]
 fr: \langueprincipale[]

so i dont need \mainlanguage[]
the commands being in en.

 
 
  if fact, the spacing of ': ; ? !' are not the french spacing
  (i prefer something intermediate betweeen the french and the german
  spacing ;-)
 
 \setcharacterspacing[frenchpunctuation]

ok - it works. Merci !


 
 Cheers, Peter
 
 -- 
 Contact information: http://pmrb.free.fr/contact/
 
 
 ___
 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
 ___
 


-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org
http://www.soundsurvey.org.uk/


___
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] the grid (MkIV)

2010-04-22 Thread Steffen Wolfrum

No answer at all ... Does that mean that nobody uses MkIV grid-typesting?

Or does that mean that excluding section heads from gridsnapping is impossible?


Steffen




Am 19.04.2010 um 13:37 schrieb Steffen Wolfrum:

 Hi,
 
 
 how can I exclude a section head from grid?
 
 Just compare setuplayout with grid=yes/no.
 
 Is there a solution?
 
 
 \showgrid
 
 \starttext
 
 \setuplayout[grid=yes]% [grid=no]
 \setuphead[chapter][grid=none]
 
 \chapter{one}
 
 \page
 
 \chapter{one\\line}
 
 \page
 
 \chapter{one\\line\\line}
 
 \stoptext
 
 
 
 Thanks,
 Steffen
 
 ___
 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] Fullpage module

2010-04-22 Thread Taco Hoekwater

Vyatcheslav Yatskovsky wrote:

Hello

Please, include *fullpage* module into the standard Context 
distribution. I badly need it in many kinds of documents.


First step: someone has to upload that module to the third
party modules section of contextgarden.

Best wishes,
Taco


___
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] the grid (MkIV)

2010-04-22 Thread luigi scarso
On Thu, Apr 22, 2010 at 1:40 PM, Steffen Wolfrum cont...@st.estfiles.de wrote:

 No answer at all ... Does that mean that nobody uses MkIV grid-typesting?

 Or does that mean that excluding section heads from gridsnapping is 
 impossible?

sorry, no answer
BTW I was experimenting with \vtop

\chapter{\vtop{one\\line}}


-- 
luigi
___
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] font, sansserif

2010-04-22 Thread R. Bastian
Hello,

this is an excerpt of the preambel and beginning of the text:

\setupbodyfont[sansserif, 10pt]
\setuphead[subject][textstyle=cap] %,
\setupheadertexts[\^Aventiuren]

\starttext
\noheaderandfooterlines

\tfe{}\^Aventiuren\blank\blank

...

\subject{Chrono}


I wish for \tfe a fontsize greater than \tfd

and

also greater caps for \subject

Is 'sansserif' a shortcut ? Is there a more analytical definition.


-- 
René Bastian


___
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] the grid (MkIV)

2010-04-22 Thread Taco Hoekwater

Steffen Wolfrum wrote:

No answer at all ... Does that mean that nobody uses MkIV grid-typesting?


Nobody that wants to exclude section heads from the grid, it seems.


Or does that mean that excluding section heads from gridsnapping is impossible?


I would say that \setuphead[chapter][grid=none] is severely bugged,
I've added a tracker item to that effect. It does move the chapter
head off the grid, sort of (into the header ...)

Best wishes,

Taco
___
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] definition in mkiv

2010-04-22 Thread Tomáš Pustelník
Hi,

During my work on bachelor thesis I was running throught source codes and I 
would like to ask about equivalent of file syst-gen.mkii in MkIV. And if there 
isn't one. Where I can found definitions of macros define in this file (like 
\dosingleargument and so on).

Also I have another question. In file page-lay.mkii there is definition:

\def\addpagecutmarks % #1
  {\executeifdefined{\??ly:n:\c!marking:\@@lymarking}\gobbleoneargument}

I don't understand this part: {\??ly:n:\c!marking:\@@lymarking}, especially I 
don't know what :n: does or means. Can someone briefly explain it to me?

Thanks for your help.

Tomas Pustelnik___
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] definition in mkiv

2010-04-22 Thread Wolfgang Schuster

Am 22.04.10 13:54, schrieb Tomáš Pustelník:

Hi,
During my work on bachelor thesis I was running throught source 
codes and I would like to ask about equivalent of file syst-gen.mkii 
in MkIV. And if there isn't one. Where I can found definitions of 
macros define in this file (like \dosingleargument and so on).

syst-aux.mkiv (merge of syst-gen.mkii and syst-ext.mkii)

Also I have another question. In file page-lay.mkii there is definition:
\def\addpagecutmarks % #1
  {\executeifdefined{\??ly:n:\c!marking:\@@lymarking}\gobbleoneargument}
I don't understand this part: {\??ly:n:\c!marking:\@@lymarking}, 
especially I don't know what :n: does or means. Can someone briefly 
explain it to me?
The 'n' is to distinguish between the values for ...cutmarks and 
...colormarks


\def\addpagecutmarks % #1
  {\executeifdefined{\??ly:n:\c!marking:\@@lymarking}\gobbleoneargument}

\def\addpagecolormarks % #1
  {\executeifdefined{\??ly:c:\c!marking:\@@lymarking}\gobbleoneargument}

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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Denis Bitouzé
Le jeudi 22/04/10 à 13h41,
Hans Hagen pra...@wxs.nl a écrit :

 can you download the cont-tmf.zip file and unzip it in the texmd-dist
 root?

It works! Well almost: no compilation trouble, but an empty page with
the following MCE:

\documentclass{article}
\usepackage{etex,m-pictex,m-ch-en}
\begin{document}
\startchemical
\chemical{2H_2,PLUS,O_2,GIVES,2H_2O}
\stopchemical
\end{document}

Thanks!
-- 
Denis


___
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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Denis Bitouzé
Le jeudi 22/04/10 à 15h21,
Denis Bitouzé dbito...@wanadoo.fr a écrit :

 no compilation trouble

Sorry, no error but the following message in the .log file:

ppchtex: the {}{}-alternative is not permitted here
-- 
Denis


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

2010-04-22 Thread Marius
Hello all,

why does second command \setupdissertation does not work? In the
attached document I get in the title xxx instead of How to do this
in Context.

Thanks


test2.tex
Description: TeX document


test2.pdf
Description: Adobe PDF document
___
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] question

2010-04-22 Thread Wolfgang Schuster

Am 22.04.10 15:48, schrieb Marius:

Hello all,

why does second command \setupdissertation does not work? In the
attached document I get in the title xxx instead of How to do this
in Context.
   

Remove the spaces before the '=' in the assignments.

\setupdissertation
  [ title={How to do this in Context},
   authorname={The author},
 date={July 26, 2005}]

You can also simplify your defintion of \setupdissertation:

\def\setupdissertation
  {\dodoubleargument\getparameters[\??DISS]}

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] right aligned footnote

2010-04-22 Thread Wolfgang Schuster

Am 20.04.10 23:16, schrieb Honza Pohanka:

Hello,

I can't find out, how to place footnote on the right side of the page.

\setupfootnotes[location=page]
\setupnotedefinition[footnote][location=right]

This places the number on the right, but the text remains on the left.

\setupnotedefinition[footnote][location=right,align=flushright]

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] question

2010-04-22 Thread Peter Münster
On Thu, Apr 22 2010, Marius wrote:

   [\c!title={xxx},

\c!title eats the space.


   [title  ={How to do this in Context},

title does not, so the parameter is not title but title  .

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] Testing TeX macros through Lua

2010-04-22 Thread Jaroslav Hajtmar

Hello everybody.

Is there any possibility discover through Lua in ConTeXt whether it has 
been defined in ConTeXt source any regular TeX macros?

Be enough for me any simple example or relevant link.

Thanx
J.Hajtmar


___
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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Hans Hagen

On 22-4-2010 3:30, Denis Bitouzé wrote:

Le jeudi 22/04/10 à 15h21,
Denis Bitouzédbito...@wanadoo.fr  a écrit :


no compilation trouble


Sorry, no error but the following message in the .log file:

ppchtex: the {}{}-alternative is not permitted here


so use the [][] variant instead ({}{} is for inline)
--

-
  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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Denis Bitouzé
Le jeudi 22/04/10 à 16h42,
Hans Hagen pra...@wxs.nl a écrit :

 so use the [][] variant instead ({}{} is for inline)

OK, that's better :) But the following MCE:

\documentclass{article}
\usepackage{etex,m-pictex,m-ch-en}
\begin{document}
\startchemical
\chemical[2H_2,PLUS,O_2,GIVES,2H_2O]
\stopchemical
\end{document}

leads to the messages:

ppchtex: unknown chemical definition 2H_2
ppchtex: unknown chemical definition O_2
ppchtex: unknown chemical definition 2H_2O

and, indeed, only the + sign and the arrow are printed.

Thanks.
-- 
Denis


___
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] Fullpage module

2010-04-22 Thread Vyatcheslav Yatskovsky

Please, include *fullpage* module into the standard Context distribution. I 
badly need it in many kinds of documents.


First step: someone has to upload that module to the third
party modules section of contextgarden.


I'm willing to do it. But *how*?
--
Best Regards,
Vyatcheslav Yatskovsky
___
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] Fullpage module

2010-04-22 Thread Wolfgang Schuster

Am 22.04.10 18:46, schrieb Vyatcheslav Yatskovsky:
Please, include *fullpage* module into the standard Context 
distribution. I badly need it in many kinds of documents.


First step: someone has to upload that module to the third
party modules section of contextgarden.


I'm willing to do it. But *how*?

I already created a page [1] but something is wrong with the server and
I have now rights to upload the module and to change information.

[1] http://modules.contextgarden.net/fullpage

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] question

2010-04-22 Thread Marius
On Thu, Apr 22, 2010 at 4:56 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 You can also simplify your defintion of \setupdissertation:

 \def\setupdissertation
  {\dodoubleargument\getparameters[\??DISS]}

Thanks for the hint.

I have one more question, I took and simplified the example which I
sent here earlier from the wiki:
http://wiki.contextgarden.net/Document_Titles In ConTeXt: A more
advanced solution and I am wondering why I am using  \c! macros? Why
not  \!! ? Why some macros I need to define \def\c!authorname
  {authorname}, but the others not? Maybe here is a name clash with a
system defined \c! macros?
___
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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Denis Bitouzé
Le jeudi 22/04/10 à 16h51,
Denis Bitouzé dbito...@wanadoo.fr a écrit :

 But the following MCE:
 
 \documentclass{article}
 \usepackage{etex,m-pictex,m-ch-en}
 \begin{document}
 \startchemical
 \chemical[2H_2,PLUS,O_2,GIVES,2H_2O]
 \stopchemical
 \end{document}
 
 leads to the messages:
 [...]

Well, the following one:

\documentclass{article}
\usepackage{etex,m-pictex,m-ch-en}
\begin{document}
\chemical{2H_2,PLUS,O_2,GIVES,2H_2O}
\end{document}

is actually OK!

What is strange is that ppchtex \chemical formulas used to be inserted
between \startchemical and \stopchemical... Moreover, the following:

\documentclass{article}
\usepackage{etex,m-pictex,m-ch-en}
\begin{document}
\startchemical
  \chemical[SIX,B,R,RZ][1,2,3,4,5,6]
\stopchemical
\end{document}

works only with \startchemical and \stopchemical.

Are those changes: 

  1. {}{} rather than [][],

  2. pair \startchemical, \stopchemical or not,

  3. etc.

documented somewhere?

Thanks.
-- 
Denis


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

2010-04-22 Thread Wolfgang Schuster

Am 22.04.10 19:08, schrieb Marius:

On Thu, Apr 22, 2010 at 4:56 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com  wrote:
   

You can also simplify your defintion of \setupdissertation:

\def\setupdissertation
  {\dodoubleargument\getparameters[\??DISS]}
 

Thanks for the hint.

I have one more question, I took and simplified the example which I
sent here earlier from the wiki:
http://wiki.contextgarden.net/Document_Titles In ConTeXt: A more
advanced solution and I am wondering why I am using  \c! macros? Why
not  \!! ? Why some macros I need to define \def\c!authorname
   {authorname}, but the others not? Maybe here is a name clash with a
system defined \c! macros?
   
The \c! and \v! macros are used for ConTeXt’s multilingual interface, 
this means

you can write in english

  \setupcommand[width=1cm]

and in german

  \stellebefehlein[breite=1cm]

in your module both 'width' and 'breite' are converted to 'width'. Since
you don't need this feature you can use instead of \getparameters
\getrawparameters where e.g. 'breite' will remain 'breite' when you
do something with this key in your code (but use then title etc.
without the \c! prefix).

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] float at fixed position

2010-04-22 Thread Peter Rolf
Hi,

in a multi column layout I want to place a figure at a fixed position.
Inserting a floating object at a fixed position doesn't make any sense,
but I need the correct caption (number) for the graphic. Sadly
\placefigure fails with

[..]
todo: flush notes
todo: enable notes
! Missing number, treated as zero.
to be read again
   \@@mc5@@mcwidth
\@@ar@@4 ...ace \OTRSETlocalwidth \scratchcounter
  \relax
\OTRSETcheckwidthga...
\redoloop -\expandrecursecontent
  \endofloop
to be read again
   {
inserted text
2
\dodoloop ...mexpr \recurselevel +\plusone \relax
  }
...
l.16 \stopcolumnset

?

Is this a bug or am I misusing the macro too much?
Example code at the end of this mail.

Peter


%+1+2+3+4+5+6+7+8
MTXrun | current version: 2010.04.16 21:08
This is LuaTeX, Version beta-0.60.1-2010042015 (rev 3640)

%+1+2+3+4+5+6+7+8
\usemodule[visual]

\definecolumnset[example][n=4]

\definecolumnsetarea[one][left][x=1,y=1,nx=6,ny=6,state=start]

\setupcolumnsetareatext[one][left][\setup{test}]
\startsetups test
\placefigure[here][test]{test}{\externalfigure[cow]}
\stopsetups

\starttext
\startcolumnset[example]
\dorecurse{25}{\fakewords{50}{100}}
\stopcolumnset
\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
___


[NTG-context] Space ignored in biblography

2010-04-22 Thread Matija Šuklje
Hullo.

I've got a problem with the rendering of the authoretaltext — it doesn't put 
a space between the last name and the al text.

Result:
* Peeping, Tom; Crapper, Johnin ostali.

Expected result:
* Peeping, Tom; Crapper, John in ostali.

--[snip]--
\setupheadtext[sl][pubs={\sca Literatura\blank[line]}]
\setuppublicationlist
[title={{\sca\naslov} \blank[line]},
%   totallist=6,
author=\invertedauthor,
artauthor=\invertedauthor,
editor=\invertedauthor,
namesep={; },
lastnamesep={ in },
finalnamesep={; },
authoretallimit=10,
authoretaltext={ in drugi},
artauthoretallimit=10,
artauthoretaltext={ in drugi},
editoretallimit=10,
editoretaltext={ in drugi}
]
\setuppublicationlayout[knjiga]{
\insertauthors{}{: }{}%
\inserttitle{\bgroup\sc}{\egroup}{}%
\insertrevision{ (}{)}{\unskip}%
\insertpubname{, }{}{\unskip}%
\insertcity{, }{}{\unskip}%
\insertpubyear{ }{.}{}%
}
--[snap]--

Any help appreciated.


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.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
___


[NTG-context] setuppagenumbering command

2010-04-22 Thread Marius
Hello all,

Why does conversion option for \setuppagenumbering has no effect? Is
it only for me or for others too?

Marius
___
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] Fullpage module

2010-04-22 Thread Wolfgang Schuster

Am 22.04.10 18:59, schrieb Vyatcheslav Yatskovsky:
Yes, but what about including it into ConTexT by default? (that is, 
with minimal installation?)


On 22.04.2010 19:54, Wolfgang Schuster wrote:
I created a page [1] but something is wrong with the server and I 
have no rights to upload the module.
The module is now on the garden, it’s Mojcas job to include it in the 
minimals.


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] Space ignored in biblography

2010-04-22 Thread Taco Hoekwater

Matija Šuklje wrote:

Hullo.

I've got a problem with the rendering of the authoretaltext — it doesn't put 
a space between the last name and the al text.


Result:
* Peeping, Tom; Crapper, Johnin ostali.

Expected result:
* Peeping, Tom; Crapper, John in ostali.


The module apparently also changed 'in drugi' into 'in ostali' all
on its own? Anyway, using {~in ostali} will likely work. If it does
not, please try for a complete test file.

Best wishes,
Taco
___
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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar

Hello,
I have problem with testing of strings through \doifelse.

I am loading data from external CSV file. CSV file is UTF-8 encoding.
Data from external file I am reading to ConTeXt macro and I want compare 
content of macro (it is one utf-8 character) and other character as per 
example:


(\onecharfromcsvfile contains one character from external CSV file)

% I compare e.g. m character and content of macro  \onecharfromcsvfile
\def\result{\doifelse{m}{\onecharfromcsvfile}{true}{false} }

\result is however always false

When CSV file is CP-1250 encoding then macro does work right as well as 
classical TeX macro:


\def\result{\if m\onecharfromcsvfile true\else false \fi}

My question is:
Just how modify macro as to work right when CSV file is UTF-8 encoding.

Thanx Jaroslav

PS: I was working up until now only with CP-1250 encoding, but when I 
started with LuaTeX (MKIV), then I have to use UTF-8. (MKIV dont work 
corectly with external CP-1250 files).


___
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] Testing TeX macros through Lua

2010-04-22 Thread Taco Hoekwater

Jaroslav Hajtmar wrote:

Hello everybody.

Is there any possibility discover through Lua in ConTeXt whether it has 
been defined in ConTeXt source any regular TeX macros?


\starttext
\directlua{print(token.command_name(token.create('starttext')))}
\directlua{print(token.command_name(token.create('starttextx')))}
\stoptext

In short: if the result of command_name is undefined_cs, the
corresponding identifier is undefined (at this moment at this level).

What command_name returns is a string representation of the internal
command, of which there are some 140. normal macros are call,
conditionals are if_test, box commands are box_set, etc. There is
no list of returned names in the manual, but you can generate one by
something like this:

\directlua{
  i=0
  while i200 do
v = token.command_name({i,0,0})
if not v then break end
print(i, v)
i=i+1
  end}


Alternatively, you can do this:

  \directlua{print(token.csname_name(token.create('starttext')))}

if the returned string is empty, the command was undefined, otherwise
you get the string back that you gave yourself (but with this option
you don't know what kind of command it was).

Best wishes,
Taco
___
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] font, sansserif

2010-04-22 Thread Taco Hoekwater

R. Bastian wrote:

Hello,

this is an excerpt of the preambel and beginning of the text:

\setupbodyfont[sansserif, 10pt]
\setuphead[subject][textstyle=cap] %,
\setupheadertexts[\^Aventiuren]

\starttext
\noheaderandfooterlines

\tfe{}\^Aventiuren\blank\blank

...

\subject{Chrono}


I wish for \tfe a fontsize greater than \tfd


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

has an example that does this.


and

also greater caps for \subject


\setuphead[subject][style={\switchtobodyfont[17pt]},textstyle=cap]

Combined, you get something like this:

\definefontsize[e]
\definebodyfontenvironment
  [default]
  [e=3] % current bodyfont size * 3

\setupbodyfont[sansserif, 10pt]
\setuphead[subject][style={\switchtobodyfont[22pt]},textstyle=cap] %,




Is 'sansserif' a shortcut ? Is there a more analytical definition.


sansserif is a typeface identifier, but it is basically an alias for
\ss. This page should help:

  http://wiki.contextgarden.net/Font_Switching

Best wishes,
Taco




___
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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Taco Hoekwater

Jaroslav Hajtmar wrote:

Hello,
I have problem with testing of strings through \doifelse.

I am loading data from external CSV file. CSV file is UTF-8 encoding.
Data from external file I am reading to ConTeXt macro and I want compare 
content of macro (it is one utf-8 character) and other character as per 
example:


(\onecharfromcsvfile contains one character from external CSV file)


Does it contain a character or a byte from the CSV? This is a
very important difference.


% I compare e.g. m character and content of macro  \onecharfromcsvfile
\def\result{\doifelse{m}{\onecharfromcsvfile}{true}{false} }

\result is however always false


Well, that depends on whether m's in your csv file, and how 
\onecharfromcvsfile is actually defined. This reports true:


\starttext
\def\onecharfromcsvfile{m}
\def\result{\doifelse{m}{\onecharfromcsvfile}{true}{false} }
\result
\stoptext


Best wishes,
Taco
___
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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar

Hello.
Thank for your advise.
I was tried your example, but it is not working unfortunately too.
I previwed CSV file -  it is UTF-8 encoding and hexa code of m 
character is 6D00. This mean that m char is byte coding isnt it?

Exist any way untwist my problem now?

Thanx Jaroslav



  In hexa editor is Dne 22.4.2010 21:33, Taco Hoekwater napsal(a):

Jaroslav Hajtmar wrote:

Hello,
I have problem with testing of strings through \doifelse.

I am loading data from external CSV file. CSV file is UTF-8 encoding.
Data from external file I am reading to ConTeXt macro and I want 
compare content of macro (it is one utf-8 character) and other 
character as per example:


(\onecharfromcsvfile contains one character from external CSV file)


Does it contain a character or a byte from the CSV? This is a
very important difference.


% I compare e.g. m character and content of macro  \onecharfromcsvfile
\def\result{\doifelse{m}{\onecharfromcsvfile}{true}{false} }

\result is however always false


Well, that depends on whether m's in your csv file, and how 
\onecharfromcvsfile is actually defined. This reports true:


\starttext
\def\onecharfromcsvfile{m}
\def\result{\doifelse{m}{\onecharfromcsvfile}{true}{false} }
\result
\stoptext


Best wishes,
Taco



___
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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Taco Hoekwater

Jaroslav Hajtmar wrote:

Hello.
Thank for your advise.
I was tried your example, but it is not working unfortunately too.
I previwed CSV file -  it is UTF-8 encoding and hexa code of m 
character is 6D00. This mean that m char is byte coding isnt it?


The hex codes of all your 'm'-s in the email messages are 6D,
which is UTF-8 for the ASCII m. Sorry, please post a proper
example, I don't think we can help without actual input.

Best wishes,
Taco


___
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] Space ignored in biblography

2010-04-22 Thread Matija Šuklje
Dne četrtek 22. aprila 2010 ob 20:54:12 je Taco Hoekwater napisal(a):
 The module apparently also changed 'in drugi' into 'in ostali' all
 on its own?

No, that was me making a sloppy example :P

 Anyway, using {~in ostali} will likely work. If it does
 not, please try for a complete test file.

Workes, thanks :]

BTW, should I use the tilde also in other similar commands?

e.g.

lastnamesep={~in },

instead of 

lastnamesep={ in },


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.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] Space ignored in biblography

2010-04-22 Thread Taco Hoekwater

Matija Šuklje wrote:

Dne četrtek 22. aprila 2010 ob 20:54:12 je Taco Hoekwater napisal(a):

The module apparently also changed 'in drugi' into 'in ostali' all
on its own?


No, that was me making a sloppy example :P


Anyway, using {~in ostali} will likely work. If it does
not, please try for a complete test file.


Workes, thanks :]

BTW, should I use the tilde also in other similar commands?


It is safer, yes. Sometimes the bib module does an \ignorespaces
or \unskip to get rid of unwanted spaces creeping in, but a ~ is
never removed by that process.

Best wishes,
Taco
___
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] Space ignored in biblography

2010-04-22 Thread Matija Šuklje
Dne četrtek 22. aprila 2010 ob 22:07:50 je Taco Hoekwater napisal(a):
 It is safer, yes. Sometimes the bib module does an \ignorespaces
 or \unskip to get rid of unwanted spaces creeping in, but a ~ is
 never removed by that process.

Thanks :]

There's going to be quite a few changes to my PF_UL style in the near future 
;)


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar
Will help you, when I send you my CSV file? I dont now what you think 
when you writing, that
you want actual input. Code 6D00 is twobyte code of UTF-8 character 
m... When I switch to CP1250 encoding, then  onebyte code of m 
character  is 6D.
If need arises then I make any minimal example from my relatively big 
project.

Thanx.
Jaroslav



Dne 22.4.2010 21:59, Taco Hoekwater napsal(a):

Jaroslav Hajtmar wrote:

Hello.
Thank for your advise.
I was tried your example, but it is not working unfortunately too.
I previwed CSV file -  it is UTF-8 encoding and hexa code of m 
character is 6D00. This mean that m char is byte coding isnt it?


The hex codes of all your 'm'-s in the email messages are 6D,
which is UTF-8 for the ASCII m. Sorry, please post a proper
example, I don't think we can help without actual input.

Best wishes,
Taco





___
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 + citation combo

2010-04-22 Thread Matija Šuklje
Hullo,

a few weeks (months?) ago there was a debate on this list about sprucing up 
the 'bib' module. I don't know what the policy about reviving old threads is, 
so I started a new one.

The biggest problem I had (and still do) with the 'bib' module is that I 
cannot directly use the data I have stored as bibliography data in the on-page 
citations.

In my PF_UL style I had to introduce a few new bibfields that basically 
repeating the same data again.

E.g. to have a list of shortened names like J. Smith, H. Potter and G. Gray 
in the on-page citation, while keeping the full names at the end of the text 
in the bibliography like Smith, John; Potter, Harry and Gray, Gandalf I now 
have to write for each cited work another bibfield when I add its data:

--[snip]--
\newbibfield[shortauthor]

\startpublication[k=zdr_komentar,
a=Becan,
t=knjiga,
y=2008,
]
\title{Zakon o delovnih razmerjih s komentarjem}
\kratko{ZDR s komentarjem}
\author{Irena}[I.]{}{Bečan}
\author{Nataša}[N.]{}{Belopavlovič}
\author{Aleksej}[A.]{}{Cvetko}
\author{Miran}[M.]{}{Kalčič}
\author{Marta}[M.]{}{Klampfer}
\author{Polonca}[P.]{}{Končar}
\author{Etelka}[E.]{}{Korpič Horvat}
\author{Barbara}[B.]{}{Kresal}
\author{Katarina}[K.]{}{Kresal Šoltes}
\author{Janez}[J.]{}{Novak}
\author{Mitja}[M.]{}{Novak}
\author{Tatjana}[T.]{}{Plešnik}
\author{Darja}[D.]{}{Senčur Peček}
\author{Zvone}[Z.]{}{Vodovnik}
\shortauthor{I. Bečan, N. Belopavlovič, A. Cvetko, M. Kalčič, M. 
Klampfer, 
P. Končar, E. Korpič Horvat, B. Kresal in drugi}
\revision{}
\pubyear{2008}
\pubname{GV Založba}
\city{Ljubljana}
\isbn{}
\povzetek{}
\stoppublication
--[snap]--

It'd be _so_ much more elegant if \nocite and \getcitedata could use 
manipulate the data from the \author command to do the same.



Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.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] font, sansserif

2010-04-22 Thread R. Bastian
On Thu, 22 Apr 2010 21:27:16 +0200
Taco Hoekwater t...@elvenkind.com scribit:

 R. Bastian wrote:
  Hello,
  
  this is an excerpt of the preambel and beginning of the text:
  
  \setupbodyfont[sansserif, 10pt]
  \setuphead[subject][textstyle=cap] %,
  \setupheadertexts[\^Aventiuren]
  
  \starttext
  \noheaderandfooterlines
  
  \tfe{}\^Aventiuren\blank\blank
  
  ...
  
  \subject{Chrono}
  
  
  I wish for \tfe a fontsize greater than \tfd
 
 http://wiki.contextgarden.net/Reference/en/definebodyfontenvironment
 
 has an example that does this.
 
  and
  
  also greater caps for \subject
 
 \setuphead[subject][style={\switchtobodyfont[17pt]},textstyle=cap]

i will take 12pt
 
 Combined, you get something like this:
 
 \definefontsize[e]
 \definebodyfontenvironment
[default]
[e=3] % current bodyfont size * 3
 
 \setupbodyfont[sansserif, 10pt]
 \setuphead[subject][style={\switchtobodyfont[22pt]},textstyle=cap] %,
 
 
 
  Is 'sansserif' a shortcut ? Is there a more analytical definition.
 
 sansserif is a typeface identifier, but it is basically an alias for
 \ss. This page should help:
 
http://wiki.contextgarden.net/Font_Switching

yes, it helps
 
 Best wishes,
 Taco
 

Thanks Taco, its a very good solution.
 
 

-- 
René Bastian
www.pythoneon.org
www.musiques-rb.org
http://www.soundsurvey.org.uk/


___
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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Hans Hagen

On 22-4-2010 8:57, Jaroslav Hajtmar wrote:

Hello,
I have problem with testing of strings through \doifelse.

I am loading data from external CSV file. CSV file is UTF-8 encoding.
Data from external file I am reading to ConTeXt macro and I want compare
content of macro (it is one utf-8 character) and other character as per
example:

(\onecharfromcsvfile contains one character from external CSV file)

% I compare e.g. m character and content of macro \onecharfromcsvfile
\def\result{\doifelse{m}{\onecharfromcsvfile}{true}{false} }

\result is however always false

When CSV file is CP-1250 encoding then macro does work right as well as
classical TeX macro:

\def\result{\if m\onecharfromcsvfile true\else false \fi}

My question is:
Just how modify macro as to work right when CSV file is UTF-8 encoding.


tricky as utf in mkii is using active chars ... it all depends a bit to 
what the character expands; depending on the macro one can also use


\convertargument#1\to\whatever like constructs and then compare the 
\whatever



Thanx Jaroslav

PS: I was working up until now only with CP-1250 encoding, but when I
started with LuaTeX (MKIV), then I have to use UTF-8. (MKIV dont work
corectly with external CP-1250 files).


oh? regimes are supposed to work ok in mkiv

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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Hans Hagen

On 22-4-2010 7:09, Denis Bitouzé wrote:


Are those changes:

   1. {}{} rather than [][],

   2. pair \startchemical, \stopchemical or not,

   3. etc.

documented somewhere?


sure, in the ppchtex manual; indeed {}{} is used inline (in math mode or 
not) and [][] between start/stop pairs


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] the grid (MkIV)

2010-04-22 Thread Hans Hagen

On 22-4-2010 2:18, Taco Hoekwater wrote:

Steffen Wolfrum wrote:

No answer at all ... Does that mean that nobody uses MkIV grid-typesting?


Nobody that wants to exclude section heads from the grid, it seems.


Or does that mean that excluding section heads from gridsnapping is
impossible?


I would say that \setuphead[chapter][grid=none] is severely bugged,
I've added a tracker item to that effect. It does move the chapter
head off the grid, sort of (into the header ...)


i have to check it but 'none' is not the same as 'no' or 'off'

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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Hans Hagen

On 22-4-2010 7:09, Denis Bitouzé wrote:


Are those changes:

   1. {}{} rather than [][],

   2. pair \startchemical, \stopchemical or not,

   3. etc.


btw, in mkiv ppchtex is reimplemented; it still has some flaws but it 
has more room for extensions and is now part of the context mkiv kernel


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] the grid (MkIV)

2010-04-22 Thread Taco Hoekwater

Hans Hagen wrote:

On 22-4-2010 2:18, Taco Hoekwater wrote:

Steffen Wolfrum wrote:
No answer at all ... Does that mean that nobody uses MkIV 
grid-typesting?


Nobody that wants to exclude section heads from the grid, it seems.


Or does that mean that excluding section heads from gridsnapping is
impossible?


I would say that \setuphead[chapter][grid=none] is severely bugged,
I've added a tracker item to that effect. It does move the chapter
head off the grid, sort of (into the header ...)


i have to check it but 'none' is not the same as 'no' or 'off'


Well, no and off have no effect at all. As 'none' does something
at least, my guess was that it is just a little bugged.

Best wishes,
Taco
___
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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Taco Hoekwater

Jaroslav Hajtmar wrote:
Will help you, when I send you my CSV file? I dont now what you think 
when you writing, that
you want actual input. Code 6D00 is twobyte code of UTF-8 character 


It absolutely is not. Maybe you are confused with UTF-16 ?

Best wishes,
Taco
___
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] Problem with \doifelse testing of UTF-8 chars

2010-04-22 Thread Jaroslav Hajtmar
Thank you very much. Due to your suggestion it was my problem resolved. 
Problem has been truly in unexpanded macros.
Though I am redefining my macros in last versions of my project (joining 
any empty delimiters), macros was predend  (on the outside as expanded) 
entirely inocently as if has been unchanged.

It was beginners perplexing mistake - but heavy detecting (for me).

Thankx for your and Tacos time.

Jaroslav


Dne 22.4.2010 23:28, Hans Hagen napsal(a):

On 22-4-2010 8:57, Jaroslav Hajtmar wrote:

Hello,
I have problem with testing of strings through \doifelse.

I am loading data from external CSV file. CSV file is UTF-8 encoding.
Data from external file I am reading to ConTeXt macro and I want compare
content of macro (it is one utf-8 character) and other character as per
example:

(\onecharfromcsvfile contains one character from external CSV file)

% I compare e.g. m character and content of macro \onecharfromcsvfile
\def\result{\doifelse{m}{\onecharfromcsvfile}{true}{false} }

\result is however always false

When CSV file is CP-1250 encoding then macro does work right as well as
classical TeX macro:

\def\result{\if m\onecharfromcsvfile true\else false \fi}

My question is:
Just how modify macro as to work right when CSV file is UTF-8 encoding.


tricky as utf in mkii is using active chars ... it all depends a bit 
to what the character expands; depending on the macro one can also use


\convertargument#1\to\whatever like constructs and then compare the 
\whatever



Thanx Jaroslav

PS: I was working up until now only with CP-1250 encoding, but when I
started with LuaTeX (MKIV), then I have to use UTF-8. (MKIV dont work
corectly with external CP-1250 files).


oh? regimes are supposed to work ok in mkiv

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

2010-04-22 Thread Wolfgang Werners-Lucchini
Hallo,

shouldn't \textvisiblespace work in mkiv?

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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Denis Bitouzé
Le jeudi 22/04/10 à 23h32,
Hans Hagen pra...@wxs.nl a écrit :

 btw, in mkiv ppchtex is reimplemented; it still has some flaws but it 
 has more room for extensions and is now part of the context mkiv
 kernel

As I'm not using ConTeXt for the moment (but it may change! :), what
are the consequences of this for a LaTeX user?

Thanks!
-- 
Denis


___
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] [ppchtex] \normalifx: Undefined control sequence

2010-04-22 Thread Denis Bitouzé
Le jeudi 22/04/10 à 23h30,
Hans Hagen pra...@wxs.nl a écrit :

 sure, in the ppchtex manual; indeed {}{} is used inline (in math mode
 or not) and [][] between start/stop pairs

Well, sorry for my misreading...
-- 
Denis


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