Re: [NTG-context] figure as figura

2006-02-17 Thread Mari Voipio
Quoting andrea valle [EMAIL PROTECTED]:
 What have I to do?

You'll have to tell ConTeXt to use the Italian glossary instead (and hope it's
ok...) so the labeltexts (and hyphenation) gets fixed.

This is how I do it for our Spanish manual and how I adjusted the few labeltexts
our translator didn't like; these go into the setup section of the file, before
\starttext.

% Language specific settings for the Spanish version

%Uses the Spanish hyphenation module and labeltexts
\mainlanguage[es]

% Changes the default label Illustraciòn to Figura
% as that's the term the translators preferred
% Note the space after the text!
\setuplabeltext[es][figure=Figura ]
\setuplabeltext[es][see=ver ]


I don't *know* for sure, but my somewhat educated guess is that

\mainlanguage[it]

would be the key to success for you.

See the big manual (ConTeXt the manual), pages 131-132 for more information.


(Hmm... if this isn't in the wiki yet, it should probably go there. I can do a
bit later...)


Mari



This message was sent using IMP, the Internet Messaging Program.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Follow up: Quote before chapter?

2006-02-17 Thread Hans Hagen
David Wooten wrote:
 Greetings,

 Having come to the same problem, I am curious whether a solution 
 presented itself to Gerben's inquiry.

 /Fri Mar 11 10:30:45 CET 2005/:

 I can make it more difficult even. I would like a chapter to start on�
 an odd (right side) page but when there is a quote that comes with the�
 chapter I want to have that appear on the opposing side.

 G
\def\MyChapter[#1]%
  {\doifsomething{#1}
 {\page[left]
  \setupheader[state=empty]
  \startnarrower[3*left,4*right]
  \getbuffer[#1]%
  \stopnarrower
  \page}
   \chapter}

\setuphead[section][page=right]

\setuppagenumbering[alternative=doublesided]

\starttext

\startbuffer[a]
\input ward
\stopbuffer
\startbuffer[b]
\input zapf
\stopbuffer

\MyChapter[a]{Test A} \input tufte
\MyChapter[] {Test X} \input bryson
\MyChapter[b]{Test B} \input knuth

\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] figure as figura

2006-02-17 Thread andrea valle
Dear all,
using \placefigure I obtain in output the caption with Figure x. etc
I'm currently writing in Italian, so I need to have  Figura in place 
of Figure.
What have I to do?

Thanks a lot

-a-



Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] figure as figura

2006-02-17 Thread andrea valle
Thanks Mari,
Shame on me, I supposed that there was no Italian glossary.

In any case, you suggestion works and it's precious.

Best

-a-


On 17 Feb 2006, at 09:32, Mari Voipio wrote:

 Quoting andrea valle [EMAIL PROTECTED]:
 What have I to do?

 You'll have to tell ConTeXt to use the Italian glossary instead (and 
 hope it's
 ok...) so the labeltexts (and hyphenation) gets fixed.

 This is how I do it for our Spanish manual and how I adjusted the few 
 labeltexts
 our translator didn't like; these go into the setup section of the 
 file, before
 \starttext.

 % Language specific settings for the Spanish version

 %Uses the Spanish hyphenation module and labeltexts
 \mainlanguage[es]

 % Changes the default label Illustraciòn to Figura
 % as that's the term the translators preferred
 % Note the space after the text!
 \setuplabeltext[es][figure=Figura ]
 \setuplabeltext[es][see=ver ]


 I don't *know* for sure, but my somewhat educated guess is that

 \mainlanguage[it]

 would be the key to success for you.

 See the big manual (ConTeXt the manual), pages 131-132 for more 
 information.


 (Hmm... if this isn't in the wiki yet, it should probably go there. I 
 can do a
 bit later...)


 Mari


 
 This message was sent using IMP, the Internet Messaging Program.
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-02-17 Thread Taco Hoekwater
Adam Lindsay wrote:
 Now, do digits ever get bold-ed in mixed bold and regular math?

AFAIK, only in courseware (and perhaps other explanatory texts,
like errata). There, the required emphasis can be anything, really,
but nobody would object to a \hbox{} wrapper either.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] math tests - subformula ref's and symbols \oiint \oiiint like in Latex AMS

2006-02-17 Thread Wim Neimeijer
Title: math tests - subformula ref's and symbols \oiint \oiiint like in Latex AMS 






Hi, 

I am using Context for the second time now and I am investigating
the pro's and con's before migrating my Latex documents to Context.
So far I am really impressed with Context capabilities. 

Now I am testing some of the math I typeset with Latex to
determine whether or not to use Context.
In Latex I am using the ams math packages and knowing that there is
a amsl module for Context I did some test such as 

\def\wdiv{{\rm div} \:}
\def\rot{{\rm rot} \:}
\placeformula[eqn1]
\startformula
\eqalignno{
\wdiv \vec{E}  = \frac{\rho}{\epsilon_{0}} \formulanumber{.a} \cr
\rot \vec{B}  = \mu_{0} \:\vec{j} \subformulanumber{.b} \cr
\wdiv \vec{B}  = 0 \subformulanumber{.c} \cr
\rot \vec{E} + \frac{\partial \vec{B} }{\partial t}  = 0  \subformulanumber{.d} \cr}
\stopformula 

How can I refer to these subformulas in my running text ? 

As I am typesetting a lot of math in my physics doc's I use a lot of integration symbols amongs others.
In Latex I use \oint, \oiint and \oiint, even a quadruple int to indicate space - time integrals. Even I defined
a tex command for the surface integral.
I also found the Context \showmathcharacters which gave me most of the math symbols from the amsl module. 

However I did not found alternatives for \oiint, \oiiint unfortenately.
I discovered the \definemathsymbol in several context tex files, I was wondering if it is possible to
setup my own \oiint, \oiiint, \ont ... symbols ? If yes, my problem is I can't find any docu's on the usage of \definemathsymbol ?

Any help appreciated 

Kind regards 

W.Neimeijer 





___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] alignment

2006-02-17 Thread Hans van der Meer
There is something I do not understand with alignment.
My idea was to put a small text in the middle of the line.
The minimal example below does center he first but not the second  
alignment.
Is this intentionale or an unforseen interaction between alignment  
and framed?

\starttext
\startalignment[middle]
middle? yes!
\stopalignment
\startalignment[middle]
\framed{middle? no!}
\stopalignment
\stoptext

yours sincerely,
dr. H. van der Meer



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] alignment

2006-02-17 Thread Taco Hoekwater
Hans van der Meer wrote:
 There is something I do not understand with alignment.
 My idea was to put a small text in the middle of the line.
 The minimal example below does center he first but not the second  
 alignment.
 Is this intentionale or an unforseen interaction between alignment  
 and framed?

It is a somewhat unexpected side-effect of \framed being a \hbox.
Try this:

  \startalignment[middle]
\leavevmode\framed{middle? no!}
  \stopalignment


Cheers, taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-02-17 Thread David Munger
Very interesting, but with these definitions, I can't get roman
characters in formulae. For the moment, the best solution for me is
still the hbox wrapper.

David

 Adam Lindsay wrote:
 
  \startmathcollection[default] %eventual patch for math-tex?
  \definemathcharacter [a]   [nothing] [mi] [61]
  \definemathcharacter [b]   [nothing] [mi] [62]
  \definemathcharacter [c]   [nothing] [mi] [63]
  \definemathcharacter [d]   [nothing] [mi] [64]
  \definemathcharacter [e]   [nothing] [mi] [65]
 ...
 
 Interesting. With these definitions in place, getting mixed bold in cmr 
 math is a lot better, too...
 
 \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern]
 \setupformulas [method=bold]
 
 \starttext
 \startformula
 n({\bfm a} + {\bfm b}) = {\bfm \Gamma}
 \stopformula
 \stoptext
 
 Now, do digits ever get bold-ed in mixed bold and regular math?

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-02-17 Thread Adam Lindsay
David Munger wrote:
 Very interesting, but with these definitions, I can't get roman
 characters in formulae. For the moment, the best solution for me is
 still the hbox wrapper.

Okay.
What do you mean by can't get roman characters? Can you give an 
minimal example?

adam

 Adam Lindsay wrote:

 \startmathcollection[default] %eventual patch for math-tex?
 \definemathcharacter [a]   [nothing] [mi] [61]
 \definemathcharacter [b]   [nothing] [mi] [62]
 \definemathcharacter [c]   [nothing] [mi] [63]
 \definemathcharacter [d]   [nothing] [mi] [64]
 \definemathcharacter [e]   [nothing] [mi] [65]
 ...

 Interesting. With these definitions in place, getting mixed bold in cmr 
 math is a lot better, too...

 \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern]
 \setupformulas [method=bold]

 \starttext
 \startformula
 n({\bfm a} + {\bfm b}) = {\bfm \Gamma}
 \stopformula
 \stoptext

 Now, do digits ever get bold-ed in mixed bold and regular math?
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
  Lancaster University, InfoLab21+44(0)1524/510.514
  Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-02-17 Thread David Munger
Adam Lindsay wrote :
 David Munger wrote:
  Very interesting, but with these definitions, I can't get roman
  characters in formulae. For the moment, the best solution for me is
  still the hbox wrapper.
 
 Okay.
 What do you mean by can't get roman characters? Can you give an 
 minimal example?
 
 adam

Sorry, I should have given one.

\startmathcollection[default]
\definemathcharacter [a]   [nothing] [mi] [61]
\stopmathcollection

\definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern]
\setupformulas [method=bold]

\starttext
\formula{a, {\rm a}, {\bfm a}, {\bfm\rm a}}
\stoptext

I can't get bold roman math. And by using [mr] instead of [mi]:
\definemathcharacter [a]   [nothing] [mr] [61]
one gets the inverse problem: no more bold math italic.

David

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] fields (widgets) in PDF layer

2006-02-17 Thread Hans Hagen
Peter Rolf wrote:
 Hi all!

 I've searched for an answer some time ago

 http://archive.contextgarden.net/message/20051230.132510.4dba9fed.en.html

 Meanwhile I've solved the problem and the solution is quite simple. Only
 some minor changes are needed, to bound the state of fields to the state
 of their surrounding PDF layer. I attached a 'small' example file and
 two diff files for patching.

 So what is this good for? For example think about multilayered control
 fields (stack), which appear in the form of a tabular box (one tab
 active at a time). Every tab can contain any kind of interactive field.
 No more mouse interaction (and ugly gfx glitches) with hidden fields, if
 the surrounding PDF layer is switched off.
   
So what you propose is to have an automatic relationship between layers 
and widgets?
 To Hans:
 - Dunno if the name \currentPDFlayer is o.k., or if there is a better
 place for it's (re)initialisation.
 - The fields are still active (only hidden), if the outer layer is
 deactivated (nested). Is the outer layer not part of the child layers
 OCMG? Reading the PDF reference manual is much harder than reading your
 sources...
 So it's up to you, if and how this is added.
   
What you do basically comes down to having a default connection between the 
layers key of widgets and the current layer. This is ok but need to be a 
configurable feature. I'll think about it. 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] fields (widgets) in PDF layer

2006-02-17 Thread Hans Hagen
Peter Rolf wrote:
 - Dunno if the name \currentPDFlayer is o.k., or if there is a better
 place for it's (re)initialisation.
   
\let\currentlayerproperty\empty

\def\startlayerproperty
  {\let\currentlayerproperty\currentproperty
   \dostartviewerlayer\currentproperty}

\def\stoplayerproperty
  {\dostopviewerlayer
   \let\currentlayerproperty\previousproperty}

i don't want PDF related naming in the core modules (after all, one 
never knows what other backends will show up)
 - The fields are still active (only hidden), if the outer layer is
 deactivated (nested). Is the outer layer not part of the child layers
 OCMG? Reading the PDF reference manual is much harder than reading your
 sources...
   
-)
 So it's up to you, if and how this is added.
   
btw, a nice example, this tabbing thing, maybe make a MyWay or wiki entry of if 
some day. 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-02-17 Thread Adam Lindsay
David Munger wrote:
 Adam Lindsay wrote :
 David Munger wrote:
 Very interesting, but with these definitions, I can't get roman
 characters in formulae. For the moment, the best solution for me is
 still the hbox wrapper.
 Okay.
 What do you mean by can't get roman characters? Can you give an 
 minimal example?

 adam
 
 Sorry, I should have given one.
 
 \startmathcollection[default]
 \definemathcharacter [a]   [nothing] [mi] [61]
 \stopmathcollection
 
 \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern]
 \setupformulas [method=bold]
 
 \starttext
 \formula{a, {\rm a}, {\bfm a}, {\bfm\rm a}}
 \stoptext
 
 I can't get bold roman math. And by using [mr] instead of [mi]:
 \definemathcharacter [a]   [nothing] [mr] [61]
 one gets the inverse problem: no more bold math italic.

oh, I see. I'll admit: all the maths I've dealt with don't require such 
fine manual control over the fonts.

Would it be for individual characters? Would an approach like this work?
\formula{a, {\rm a}, {\bfm a}, \text{\bf a}}

adam
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
  Lancaster University, InfoLab21+44(0)1524/510.514
  Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-02-17 Thread David Munger
Adam Lindsay wrote :
 David Munger wrote:
  Adam Lindsay wrote :
  David Munger wrote:
  Very interesting, but with these definitions, I can't get roman
  characters in formulae. For the moment, the best solution for me is
  still the hbox wrapper.
  Okay.
  What do you mean by can't get roman characters? Can you give an 
  minimal example?
 
  adam
  
  Sorry, I should have given one.
  
  \startmathcollection[default]
  \definemathcharacter [a]   [nothing] [mi] [61]
  \stopmathcollection
  
  \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern]
  \setupformulas [method=bold]
  
  \starttext
  \formula{a, {\rm a}, {\bfm a}, {\bfm\rm a}}
  \stoptext
  
  I can't get bold roman math. And by using [mr] instead of [mi]:
  \definemathcharacter [a]   [nothing] [mr] [61]
  one gets the inverse problem: no more bold math italic.
 
 oh, I see. I'll admit: all the maths I've dealt with don't require such 
 fine manual control over the fonts.

Well, sometimes it's useful when dealing with different kinds of objects
such as vectors and tensors.

 Would it be for individual characters? Would an approach like this work?
 \formula{a, {\rm a}, {\bfm a}, \text{\bf a}}

Yes, of course. This happens to be an \hbox. My point is simply that we
have not come to a general solution yet, we are just finding different
workarounds to suit our personal needs, which is not bad indeed.

Cheers,

David

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] fields (widgets) in PDF layer

2006-02-17 Thread Peter Rolf
Hans Hagen wrote:
 Peter Rolf wrote:
 Hi all!

 I've searched for an answer some time ago

 http://archive.contextgarden.net/message/20051230.132510.4dba9fed.en.html

 Meanwhile I've solved the problem and the solution is quite simple. Only
 some minor changes are needed, to bound the state of fields to the state
 of their surrounding PDF layer. I attached a 'small' example file and
 two diff files for patching.

 So what is this good for? For example think about multilayered control
 fields (stack), which appear in the form of a tabular box (one tab
 active at a time). Every tab can contain any kind of interactive field.
 No more mouse interaction (and ugly gfx glitches) with hidden fields, if
 the surrounding PDF layer is switched off.
   
 So what you propose is to have an automatic relationship between layers 
 and widgets?

yes. everything between a \startproperty[layer] and \stopproperty
belongs to this layer. if the layer is deactivated, everything should
not only be hidden but also be inactive. this is the only way to stack
layers with interactive elements.

 To Hans:
 - Dunno if the name \currentPDFlayer is o.k., or if there is a better
 place for it's (re)initialisation.
 - The fields are still active (only hidden), if the outer layer is
 deactivated (nested). Is the outer layer not part of the child layers
 OCMG? Reading the PDF reference manual is much harder than reading your
 sources...
 So it's up to you, if and how this is added.
   
 What you do basically comes down to having a default connection between the 
 layers key of widgets and the current layer. This is ok but need to be a 
 configurable feature. I'll think about it. 
 
o.k. thx.

 Hans 
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] fields (widgets) in PDF layer

2006-02-17 Thread Peter Rolf
Hans Hagen wrote:
 Peter Rolf wrote:
 - Dunno if the name \currentPDFlayer is o.k., or if there is a better
 place for it's (re)initialisation.
   
 \let\currentlayerproperty\empty
 
 \def\startlayerproperty
   {\let\currentlayerproperty\currentproperty
\dostartviewerlayer\currentproperty}
 
 \def\stoplayerproperty
   {\dostopviewerlayer
\let\currentlayerproperty\previousproperty}
 
 i don't want PDF related naming in the core modules (after all, one 
 never knows what other backends will show up)
 - The fields are still active (only hidden), if the outer layer is
 deactivated (nested). Is the outer layer not part of the child layers
 OCMG? Reading the PDF reference manual is much harder than reading your
 sources...
   
 -)
 So it's up to you, if and how this is added.
   
 btw, a nice example, this tabbing thing, maybe make a MyWay or wiki entry of 
 if some day. 

no problem.

the final (non minimal) version will have radio based tab-buttons to
switch between the active layer. when it's done, i'll add it to the wiki.

peter

 Hans 
 
 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to \bf for math?

2006-02-17 Thread Hans Hagen
Adam Lindsay wrote:
 David Munger wrote:
   
 Adam Lindsay wrote :
 
 David Munger wrote:
   
 Very interesting, but with these definitions, I can't get roman
 characters in formulae. For the moment, the best solution for me is
 still the hbox wrapper.
 
 Okay.
 What do you mean by can't get roman characters? Can you give an 
 minimal example?

 adam
   
 Sorry, I should have given one.

 \startmathcollection[default]
 \definemathcharacter [a]   [nothing] [mi] [61]
 \stopmathcollection

 \definetypeface [] [mm] [bfmath] [computer-modern] [computer-modern]
 \setupformulas [method=bold]

 \starttext
 \formula{a, {\rm a}, {\bfm a}, {\bfm\rm a}}
 \stoptext

 I can't get bold roman math. And by using [mr] instead of [mi]:
 \definemathcharacter [a]   [nothing] [mr] [61]
 one gets the inverse problem: no more bold math italic.
 

 oh, I see. I'll admit: all the maths I've dealt with don't require such 
 fine manual control over the fonts.

 Would it be for individual characters? Would an approach like this work?
 \formula{a, {\rm a}, {\bfm a}, \text{\bf a}}
   
just keep collecting all thoughts and ideas and solutions  

(concerning the definemathcharacters, we need input from taco on that because 
he knows what goes on deep inside tex and has done complex math typesetting for 
ages) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Sections with additional dot: a little request

2006-02-17 Thread Mojca Miklavec
Hello Hans,

The sections in Slovenian have to be numbered wih dots at the end:

1. Introduction
2. Contents
2.1. Subsection
2.1.1. Subsubsection
2.1.2. Subsubsection
2.2. Subsection
2.3. Subsection
3. Bibliography

rather than

1  Introduction
2  Contents
2.1  Subsection
2.1.1  Subsubsection
2.1.2  Subsubsection
2.2  Subsection
2.3  Subsection
3  Bibliography

There are many commands in ConTeXt which support delimiter key, but
here the delimiter already stands for the dot delimiting subsequent
numbers in this case.

There's a possible solution listed on
http://wiki.contextgarden.net/Dotted_number_in_caption, ie:

\def\Dot#1{#1.}
\setuphead[section][numbercommand=\Dot]
\setuplist[section][numbercommand=\Dot]
\setuplist[subsection][numbercommand=\Dot]
\setuplist[subsubsection][numbercommand=\Dot]

but this cannot be built into languagespecifics as such since it
interferes with user-defined numbercommands (if the user defines his
own numbercommand, the dot would disapear).

This is low-priority (can be circumvented and done properly if
needed), but I would be very glad if an additional keyword  its
setting could make its way into languagespecifics once in the future
if possible.

LaTeX people did that (not aplicable to ConTeXt at all):

\renewcommand\thepart [EMAIL PROTECTED]@part}
\renewcommand\thesection  [EMAIL PROTECTED]@section.}
\renewcommand\thesubsection   [EMAIL PROTECTED]@subsection}
[EMAIL PROTECTED]@subsubsection}
\renewcommand\theparagraph[EMAIL PROTECTED]@paragraph}
\renewcommand\thesubparagraph [EMAIL PROTECTED]@subparagraph}

\renewcommand\appendix{\par
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
  [EMAIL PROTECTED]@section.}}


Also, Part 1 may be written as 1. poglavje (with dot) or Poglavje
1 (without dot), so there has to remain an option to remove a dot
only for a certain title if necessary.

The only online reference I know (list of mistakes in babel) is
written in Slovenian
http://nl.ijs.si/gnusl/tex/tslovene/slolang/node98.html-l2#SECTION0002031400
but I guess that the content can at least partially be evident from
the TeX sources.

Once again the same comment as the last time with itemizing. If this
will ever be implemented and added, it will change the behaviour (and
break the old behaviour in a way), but I guess that there are not so
many people typesetting Slovenian in ConTeXt yet. There will be less
harm if a few old documents are fixed than if tons of other newer
documents are typeset wrong.

Thanks a lot,
Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] gnuplot mode

2006-02-17 Thread Mojca Miklavec
On 2/16/06, Renaud AUBIN wrote:

  Hi all,

  This time, I eventually use LaTeX with \usepackage{lucidabr} and set term
 pst to produce .ps, then use ps2epsi to obtain an .eps with a correct
 bounding box and to finish psttopdf. I include the resulting .pdf with the
 standard method... It is not the easy way !

I just noticed that epslatex terminal was improved considerably in
the new gnuplot version (4.1, you can download testing binaries for
windows).

Take a look.

On 2/16/06, Hans Hagen wrote:
 Mojca Miklavec wrote:
  It depends on terminal. With PostScript terminal you can't do math.
  With Metapost you can do math, but don't ask me how to change fonts to
  lucida (try read help terminal mp if it helps you). Anyway I'm
  affraid that you won't get lucida for math that way.
 
 if with mp you can do math, then you need to extend gnuplot with the
 option to configure verbatimtex ... etex so that one can instruct tex to
 load other fonts there.

If you process the files manually it's no problem to edit the
verbatimtex part of the resulting metapost output. However, this
cannot be done if the file is generated and included with the gnuplot
module.

I'll first finish the ConTeXt terminal and perhaps fix/improve mp
terminal on the basis of ConTeXt terminal later (or during writing
it).

It's very easy to fix gnuplot, so that it will be able to place
additional commands inside verbatimtex section. If anyone needs
that, I can add it and submit it to patches, but I can only provide
you windows binaries after that. (I tried to compile it on three linux
boxes without success, although it should be trivial.)

All I need to know is the keyword that you want to use and that would
make sense. Epslatex uses the following syntax for example:
set terminal epslatex header \usepackage{something}
(Would anyone need that at all?)


My next question is going to be: how should I handle fonts in context
terminal? (But probably for another thread or for off-list discussions
only.)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context