Re: [NTG-context] \*interaction* commands

2008-07-30 Thread Alan Stone
you can run layo-05.tex with --mode=demo to get a simple example, given
at the bottom of that file

I guess you mean s-pre-05.tex Hans.

Best,
Alan

On Tue, Jul 29, 2008 at 10:15 PM, Hans Hagen [EMAIL PROTECTED] wrote:

 Alan Stone wrote:
  I'm still trying to reproduce the layo-05.tex example Hans. As its code
  is rather tortuous I studied other examples. Up till now this has been
  quite a time investment without noticeable return, partly due to not
  finding a comprehensive \*interaction* commands documentation to
  guide me all along.

 the problem with interaction is that there is not one route ... the
 simplest way is to just turn it on (\setupinteraction[state=start])

 next there are only a few special interaction things: goto, buttons and
 menus and it really depends on your design then what you use

 the other thingies (graphics and such) ar enot special to interaction

 you can run layo-05.tex with --mode=demo to get a simple example, given
 at the bottom of that file

 an option is to copy that file into a temp one and start commenting ...
 that way you see what happens; normally a style is built the other way
 around,

 - set up a papersize
 - adapt the layout
 - start keying some text
 - then see what kind of text you have
 - adapt your design to the content

 now, esp with things like menus, finetuning really depends on the kind
 of content; the best way to get a feeling for that is just try things
 (at least that's how i do it ... just try what looks best as there is no
 recipy for a design)

 Hans

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


Re: [NTG-context] Beginners tutorial

2008-07-30 Thread Matija Šuklje
Dne sreda 30. julija 2008 je Willi Egger napisal(a):
 So please let me know whether you are interested in a copy, so that I
 can place the copy-shop order and start binding ;-)

I'd like one (although, sadly, I won't be able to attend the meeting).

Another idea would be to get a few more and give them to (technical) 
libraries. At least the CTK (Central Technical Library) here in Ljubljana 
would be interested in it.


Cheers,
Matija

-- 
gsm: +386 41 849 552
e-mail: [EMAIL PROTECTED]
www: http://matija.suklje.name

aim: hookofsilver
icq: 110183360
jabber/g-talk: [EMAIL PROTECTED]
msn: [EMAIL PROTECTED]
yahoo: matija_suklje
GPG/PGP fingerprint: FB64 FFAF B8DA 5AB5 B18A 98B8 2B68 0B51 0549 D278


signature.asc
Description: This is a digitally signed message part.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \*interaction* commands

2008-07-30 Thread Hans Hagen
Alan Stone wrote:
 you can run layo-05.tex with --mode=demo to get a simple example, given
 at the bottom of that file
 
 I guess you mean s-pre-05.tex Hans.

indeed

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


Re: [NTG-context] \Word broken

2008-07-30 Thread Matthias Wächter
On 7/29/2008 11:22 PM, Hans Hagen wrote:
 Matthias Wächter wrote:
 
 Hans, do you feel something about the issue?
 
 only if i get a test file and a description of expected behaviour

Sure, here it is. removing the comment on the \word version works only in MKIV, 
i.e. LuaTeX, but that’s not the issue anyway.

\starttext

assert \WORDS{oNe two} = ONE TWO (works in MKII + MKIV)

%% \word is not defined in MKII, just in MKIV
% assert \word{oNe two} = one two (works in MKIV)

assert \Words{oNe two} = ONe Two (works in MKII + MKIV)

assert \Word{oNe two} = ONe two (works in MKII, does not work in MKIV)

\stoptext


Thanks for taking care, Hans,
- Matthias
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] What happened to \reference

2008-07-30 Thread Taco Hoekwater

Hoi Gerben,

Gerben Wierda wrote:
 I have started (after a hiatus) to compile my project again using an  
 updated ConTeXt
 
 ConTeXt  ver: 2008.03.03 00:34 MKII  fmt: 2008.3.4  int: english/english
 
 and something that used to work has stopped working:
 
 \reference[logic:implicationprogram] 
 {\getbuffer[logic:implicationprogram]}
 
 gives an empty result. This used to (say a year ago) get me the  
 contents of the buffer I set up earlier.

I tried with 2007.07.25 (the last pre-mkiv release) and that doesn't
work either. Afaics, in that version (and all versions since) it was
not meant to work.  It could be an ever earlier regression, but I
do not have runnable versions of all those older context releases.

That said, it is easy to get this working (again), just add this
at the start of your document

  \unexpanded\def\GWgetbuffer{\getbuffer}

(and use \GWgetbuffer instead of \getbuffer, of course)

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


[NTG-context] Reference Manual Project

2008-07-30 Thread Taco Hoekwater
Hi all,

Following the discussion with Gerben over the past week, I have 
initialized a project for the creation of a new Context Reference
Manual.

The goal is to create a complete manual documenting all of context's
user-level commands with the focus on creating a reference manual,
but not so much on providing a learner's manual.

Anybody who is willing and able to help out in any way is very much
invited to join in. The manual is to be distributed under the GNU Free
Document License so that it can borrow text from the wiki, and also so
that it can be included in free TeX distributions (like TeX Live).

I have merged and checked in tex sources of a few base manuals just
to get started. The sources are part of the contextman project at
supelec: http://foundry.supelec.fr/projects/contextman . There are
no released files yet (that would be premature), but you can browse
the repository via the SCM tab at supelec's project page.
Alternatively, if you have a subversion client, check out the source
tree to a local folder.

There is also a mailing list, see
   http://lists.foundry.supelec.fr/mailman/listinfo/contextman-reference
for details

The current source tree in the repository is basically the english
version of the 'Context Manual' plus

   * Fonts (mfonts.tex)
   * Columns sets  (columns.tex)
   * Processing modes  (mmodes.tex)
   * Texmfstart(mtexmfstart.tex)
   * Hyphenation patterns  (mpattern.tex)

but minus the images and using a simplified layout design.

The project needs volunteers for just about everything:
   * merging existing manuals and wiki pages
   * copy-editing
   * writers for new chapters
   * proofreaders
   * it could also do with a nicer design

so if you want to help out in any way, please subscribe to the mailing
list via the link above (I don't want to overburden ntg-context with
messages on this subject).


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


Re: [NTG-context] Reference Manual Project

2008-07-30 Thread John Devereux
Taco Hoekwater [EMAIL PROTECTED] writes:

 Hi all,

 Following the discussion with Gerben over the past week, I have 
 initialized a project for the creation of a new Context Reference
 Manual.

 The goal is to create a complete manual documenting all of context's
 user-level commands with the focus on creating a reference manual,
 but not so much on providing a learner's manual.

Hi,

I just wanted to say that I think this is a great idea. I do not think
the situation is as bad as Gerben states. But I too have been
frustrated at the anachronisms and ommissions from the reference
manual.

One thing extra I would ask for is that parameters be actually
*explained*, as well as simply listed, for each command. Perhaps a
hyperlink to a generic explanation page if they are too trivial.

 Anybody who is willing and able to help out in any way is very much
 invited to join in. The manual is to be distributed under the GNU Free
 Document License so that it can borrow text from the wiki, and also so
 that it can be included in free TeX distributions (like TeX Live).

I hope this means it can be part of Debian - I gather this implies not
having any invariant sections:
http://en.wikipedia.org/wiki/GNU_Free_Documentation_License#Invariant_sections

[...]

 so if you want to help out in any way, please subscribe to the mailing
 list via the link above (I don't want to overburden ntg-context with
 messages on this subject).

-- 

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


Re: [NTG-context] Reference Manual Project

2008-07-30 Thread Taco Hoekwater


John Devereux wrote:
 
 One thing extra I would ask for is that parameters be actually
 *explained*, as well as simply listed, for each command. Perhaps a
 hyperlink to a generic explanation page if they are too trivial.

Yes, that has been bothering more people (indeed even myself,
sometimes).

 Anybody who is willing and able to help out in any way is very much
 invited to join in. The manual is to be distributed under the GNU Free
 Document License so that it can borrow text from the wiki, and also so
 that it can be included in free TeX distributions (like TeX Live).
 
 I hope this means it can be part of Debian - I gather this implies not
 having any invariant sections:

Yes, I hope so too. There are no invariant sections nor cover texts,
and no commercial fonts are used either.

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


Re: [NTG-context] Reference Manual Project

2008-07-30 Thread Hans Hagen
John Devereux wrote:

 Anybody who is willing and able to help out in any way is very much
 invited to join in. The manual is to be distributed under the GNU Free
 Document License so that it can borrow text from the wiki, and also so
 that it can be included in free TeX distributions (like TeX Live).

the last of my worries since their rules might change anyway (things 
like 'include source' which then might include sources of sources of 
sources where in practice a pdf would be fine too

 I hope this means it can be part of Debian - I gather this implies not
 having any invariant sections:
 http://en.wikipedia.org/wiki/GNU_Free_Documentation_License#Invariant_sections

the usual licencing mess ... personally i think that we should not be 
too strict (i.e. no enless pages with unreadable licence texts when a 
url can do) and no restrictions on using snippets other than a simple 
reference to the original (unless one is part of the authoring team 
since it makes no sense to refer to your own stuff)

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


[NTG-context] Figures and Captions

2008-07-30 Thread Ernesto Schirmacher

Dear ConTeXt experts, 
 
I would like to achieve the following effect when placing figures and tables:
 
***Start example***
 
FIGURE 1.2  Effect of Monotone Transformations
 
(a pdf-file containing the graphic goes here)
 
Caption text at the bottom of the figure
 
***Stop example***
 
Currently I'm using the following code (that puts the figure title and caption 
together)
 
\placeFIGURE
[here][fig:sml]
{\figTitle{Effect of monotone transformations.} The left-hand panel
shows $20$ points $(x_i,y_i)$ sampled at random from a bivariate
standard normal
distribution. The points on the right-hand panel are given by the
monotone transformation 
$(x_i,y_i) \mapsto (\exp(x_i), \exp(2 y_i))$.}
{\startcombination[2*1]
{\externalfigure[sml1a-id-sca][width=0.4\textwidth]}{}
{\externalfigure[sml1a-tr-sca][width=0.4\textwidth]}{}
\stopcombination}
 
Any suggestions on how to set up figure titles at the top of the figure and 
caption text at the bottom of the figure?
 
Thank you very much for any suggestions, 
 
Ernesto___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Equation numbers inside Theorem statements

2008-07-30 Thread Ernesto Schirmacher

Dear ConTeXt experts, 
 
I have another question regarding Theorems and equation 
numbers.
 
I defined an enumeration that produces theorem statements 
in slanted style.
 
Whenever I have an equation inside the theorem statement the 
equation number is also typeset in slanted style.  But I would like
the equation number to come out in normal style.
 
Any suggestions on how I can achieve this effect?
 
Thanks in advance, 
 
Ernesto
 
 
***Start example***
\defineenumeration
[THM]
[location=serried,
text=Theorem,
right=.]
\setupenumerations
[THM]
[headstyle=bold,
width=,
distance=8pt]
\setupenumerations
[THM]
[style=slanted]
 
\starttext
 
Here comes the first theorem:
 
\startTHM
Let $F$ be an $n$-dimensional distribution function with marginal
functions $F_1, F_2, \ldots, F_n$. Then there exists an
$n$-dimensional copula $C$ such that for all $(x_1, \ldots, x_n) \in
\Bbb{R}^n$, 
\placeformula[eq:copula-representation]
\startformula
F(x_1, \ldots, x_n) = C(F_1(x_1), \ldots, F_n(x_n)).
\stopformula
If the functions $F_1, \ldots, F_n$ are all continuous, then $C$ is
unique; otherwise, $C$ is uniquely determined on $\Ran F_1 \times
\cdots \times \Ran F_n$.
\stopTHM
 
\stoptext
***Stop example***___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Figures and Captions

2008-07-30 Thread Wolfgang Schuster
On Wed, Jul 30, 2008 at 3:39 PM, Ernesto Schirmacher
[EMAIL PROTECTED] wrote:
 Dear ConTeXt experts,

 I would like to achieve the following effect when placing figures and
 tables:

 ***Start example***

 FIGURE 1.2  Effect of Monotone Transformations

 (a pdf-file containing the graphic goes here)

 Caption text at the bottom of the figure

 ***Stop example***

 Currently I'm using the following code (that puts the figure title and
 caption together)

 \placeFIGURE
 [here][fig:sml]
 {\figTitle{Effect of monotone transformations.} The left-hand panel
 shows $20$ points $(x_i,y_i)$ sampled at random from a bivariate
 standard normal
 distribution. The points on the right-hand panel are given by the
 monotone transformation
 $(x_i,y_i) \mapsto (\exp(x_i), \exp(2 y_i))$.}
 {\startcombination[2*1]
 {\externalfigure[sml1a-id-sca][width=0.4\textwidth]}{}
 {\externalfigure[sml1a-tr-sca][width=0.4\textwidth]}{}
 \stopcombination}

 Any suggestions on how to set up figure titles at the top of the figure and
 caption text at the bottom of the figure?

 Thank you very much for any suggestions,

\setupcaption[figure][location=top]
\starttext
\placefigure
  {Example figure}
  {\placelegend
 {\blackrule[width=4cm,height=4cm]}
 {further explanations to the figure}}
\stoptext

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


Re: [NTG-context] Equation numbers inside Theorem statements

2008-07-30 Thread Wolfgang Schuster
On Wed, Jul 30, 2008 at 3:48 PM, Ernesto Schirmacher
[EMAIL PROTECTED] wrote:
 Dear ConTeXt experts,

 I have another question regarding Theorems and equation
 numbers.

 I defined an enumeration that produces theorem statements
 in slanted style.

 Whenever I have an equation inside the theorem statement the
 equation number is also typeset in slanted style.  But I would like
 the equation number to come out in normal style.

 Any suggestions on how I can achieve this effect?

\setupformulas[numberstyle={\rm\tf}]

 Thanks in advance,

 Ernesto


 ***Start example***
 \defineenumeration
 [THM]
 [location=serried,
 text=Theorem,
 right=.]
 \setupenumerations
 [THM]
 [headstyle=bold,
 width=,
 distance=8pt]
 \setupenumerations
 [THM]
 [style=slanted]

 \starttext

 Here comes the first theorem:

 \startTHM
 Let $F$ be an $n$-dimensional distribution function with marginal
 functions $F_1, F_2, \ldots, F_n$. Then there exists an
 $n$-dimensional copula $C$ such that for all $(x_1, \ldots, x_n) \in
 \Bbb{R}^n$,
 \placeformula[eq:copula-representation]
 \startformula
 F(x_1, \ldots, x_n) = C(F_1(x_1), \ldots, F_n(x_n)).
 \stopformula
 If the functions $F_1, \ldots, F_n$ are all continuous, then $C$ is
 unique; otherwise, $C$ is uniquely determined on $\Ran F_1 \times
 \cdots \times \Ran F_n$.
 \stopTHM

 \stoptext
 ***Stop example***

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


[NTG-context] Sample document on Wiki

2008-07-30 Thread Jörg Hagmann
I have finally commented the setup file for my book and would like to 
put it, as some of you have requested, in contextgarden (under Sample 
documents -- Books and Periodicals). But I have no idea how to do that. 
I can't even create an account!
Two possibilities: I send the text file and somebody else puts it there 
(preferred solution), or I need instructions.

Thanks, Jörg

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


Re: [NTG-context] Sample document on Wiki

2008-07-30 Thread Jörg Hagmann
Forget that. I managed.
Cheers, Jörg

Jörg Hagmann wrote:
 I have finally commented the setup file for my book and would like to 
 put it, as some of you have requested, in contextgarden (under Sample 
 documents -- Books and Periodicals). But I have no idea how to do that. 
 I can't even create an account!
 Two possibilities: I send the text file and somebody else puts it there 
 (preferred solution), or I need instructions.

 Thanks, Jörg

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


Re: [NTG-context] Equation numbers inside Theorem statements

2008-07-30 Thread Aditya Mahajan
Quoting Wolfgang Schuster [EMAIL PROTECTED]:

 On Wed, Jul 30, 2008 at 3:48 PM, Ernesto Schirmacher
 [EMAIL PROTECTED] wrote:
 Dear ConTeXt experts,

 I have another question regarding Theorems and equation
 numbers.

 I defined an enumeration that produces theorem statements
 in slanted style.

 Whenever I have an equation inside the theorem statement the
 equation number is also typeset in slanted style.  But I would like
 the equation number to come out in normal style.

 Any suggestions on how I can achieve this effect?

 \setupformulas[numberstyle={\rm\tf}]
or

\setupformulas[numberstyle=normal]

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

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


Re: [NTG-context] Sample document on Wiki

2008-07-30 Thread luigi scarso
On Wed, Jul 30, 2008 at 5:12 PM, Jörg Hagmann [EMAIL PROTECTED]wrote:

 Forget that. I managed.
 Cheers, Jörg

nice.
Thank you.
-- 
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Avoiding hyphenation

2008-07-30 Thread Maurí­cio
Hi,

How can avoid a word to be hyphenated? I
know that it is a basic question, but
all I was able to find was a tip about
using \hbox{}, which didn't work.

Thanks,
Maurício

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


[NTG-context] Sample code: a textbook

2008-07-30 Thread Jörg Hagmann
Some time ago, I showed a few sample pages of a biochemistry textbook I 
wrote in ConTeXt. I now uploaded the setup file with comments in 
ContextGarden (http://wiki.contextgarden.net/Biochemistry_textbook). I 
hope that it will be useful for beginners---I found examples helpful myself.

A comment regarding the ongoing documentation discussion:
The Excursion is basically excellent, I also love its Wordsworthian 
title; keep it! All that's needed is a few corrections and additions. 
Just an example: Based on Excursion, you wouldn't be able to indent 
paragraphs. You'll find the answer in the FAQs, where a beginner 
probably wouldn't look for it (he/she would probably just give up).

Cheers, Jörg

-- 
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

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


Re: [NTG-context] Avoiding hyphenation

2008-07-30 Thread Steffen Wolfrum
... like this:

|Steffen|



Am 30.07.2008 um 17:05 schrieb Maurí cio:

 Hi,

 How can avoid a word to be hyphenated? I
 know that it is a basic question, but
 all I was able to find was a tip about
 using \hbox{}, which didn't work.

 Thanks,
 Maurício

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


Re: [NTG-context] \*interaction* commands

2008-07-30 Thread Alan Stone
After modifying the s-pre-05.tex example and replacing
\setupinteractionmenu[right] with \defineinteractionmenu[myMenu][right]
the menu doesn't show up anymmore in the pdf.

What's missing ?

Thanks,
Alan

%\usemodule[pre-general]

\setuppapersize[S6][S6]

\setupbodyfont[14.4pt]

\setuplayout
  [width=430pt,
   height=400pt,
   header=0pt,
   footer=0pt,
   margin=0pt,
   backspace=25pt,
   topspace=25pt,
   rightedgedistance=20pt,
   rightedge=110pt]

\setupcolors[state=start]

%\setupinteractionscreen[option=max]

%\setupbackgrounds[state=repeat]

%\setupbackgrounds[page]
%  [backgroundcolor=white]

\setupinteraction[
  state=start,
   menu=on]
%   page=yes/no % what is that ?

\defineinteractionmenu[myMenu][right][
before=,
after=,
style=smallbold,
height=35pt,
   offset=10pt,
frame=on]

%\startinteractionmenu[right]
\startinteractionmenu[myMenu]
\placelist[chapter][
 criterium=all,
 alternative=right,% what is right ?
 maxwidth=.8\rightedgewidth,
% interaction=all,% what is this supposed to be for ?
 before=,
 after=]
  \vfill
%  \setupinteractionmenu[right]
  \setupinteractionmenu[myMenu]
[height=30pt]
  \but [CloseDocument] Close \\
\stopinteractionmenu

\setupwhitespace[big]

\setupblank[big]

%\defineoverlay[NextPage][\overlaybutton{forward}]

\def\StartTitlePage%
  {
   \setupbackgrounds[text][text][background=]
%   \setupinteraction[menu=off]
   \setupinteraction[menu=on]
%\setupinteractionbar[state=stop]
\setupinteractionbar[state=start]
   \setuplayout[width=550pt,rightedge=0pt]
   \startstandardmakeup
   \switchtobodyfont[24pt]
   \bfd\setupinterlinespace
   \setupalign[middle]
   \vfil
   \let\\=\vfil}

\def\StopTitlePage%
  {\vfil\vfil\vfil
   \stopstandardmakeup
   \setuplayout[width=430pt,rightedge=110pt]
   \setupinteraction[menu=on]
   \setupinteractionbar[state=start]
   }

\def\TitlePage#1%
  {\StartTitlePage#1\StopTitlePage}

\setuphead
[chapter, title]
[after={\blank[3*medium]},
number=no,
style=\tfb,
page=yes,
alternative=middle]

\setuphead
[section]
[after=\blank,
number=no,
page=yes,
continue=no,
style=\tfa]

\starttext

\TitlePage{Title Page}

Some Nice Quotes

\chapter{A Few}

\section{Knuth} \input knuth
\section{Tufte} \input tufte

\chapter{Some More}

\section{Zapf}   \input zapf
\section{Bryson} \input bryson

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


Re: [NTG-context] Sample code: a textbook

2008-07-30 Thread Hans Hagen
Jörg Hagmann wrote:

 A comment regarding the ongoing documentation discussion:
 The Excursion is basically excellent, I also love its Wordsworthian 
 title; keep it! All that's needed is a few corrections and additions. 
 Just an example: Based on Excursion, you wouldn't be able to indent 
 paragraphs. You'll find the answer in the FAQs, where a beginner 
 probably wouldn't look for it (he/she would probably just give up).

those docs wil not go away; the docu discussion concerns the big (huge, 
extreme) merged thing (probably unprintable thick too -)

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


Re: [NTG-context] Avoiding hyphenation

2008-07-30 Thread Hans Hagen
Steffen Wolfrum wrote:
  like this:
 
 |Steffen|

\setupalign[nothyphenated] or \nohyphens (kind of plain) or manipulating 
left/righthyphenmin, or extreme penalties or ...

depends a bit on the situation (one word, whole document, etc)

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


Re: [NTG-context] \*interaction* commands

2008-07-30 Thread Hans Hagen
Alan Stone wrote:
 After modifying the s-pre-05.tex example and replacing
 \setupinteractionmenu[right] with \defineinteractionmenu[myMenu][right]
 the menu doesn't show up anymmore in the pdf.

(showing all combinations in a maniual would probably explode that manual)

- use \showframe when testing this, it helps to see where things go

- use \setuppapersizep[S6][S8] so that you can see what happens outside 
the page

- now, in order to see the menu ...

\setupinteractionmenu
   [myMenu]
   [state=start]

so, you can toggle them on and off, which is handy if you want another 
menu on some pages

- in order to get them overlayed ...

\setupinteractionmenu
   [right]
   [distance=overlay]



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


Re: [NTG-context] Sample code: a textbook

2008-07-30 Thread Holzminister
Am Wed, 30 Jul 2008 17:27:38 +0200
schrieb Jörg Hagmann [EMAIL PROTECTED]:

 Some time ago, I showed a few sample pages of a biochemistry textbook
 I wrote in ConTeXt. I now uploaded the setup file with comments in 
 ContextGarden (http://wiki.contextgarden.net/Biochemistry_textbook).
 I hope that it will be useful for beginners---I found examples
 helpful myself.


Hi!

That looks great! Very helpful details!

Thank you,
Eyke
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Sample code: a textbook

2008-07-30 Thread Hans Hagen
Holzminister wrote:
 Am Wed, 30 Jul 2008 17:27:38 +0200
 schrieb Jörg Hagmann [EMAIL PROTECTED]:
 
 Some time ago, I showed a few sample pages of a biochemistry textbook
 I wrote in ConTeXt. I now uploaded the setup file with comments in 
 ContextGarden (http://wiki.contextgarden.net/Biochemistry_textbook).
 I hope that it will be useful for beginners---I found examples
 helpful myself.
 
 
 Hi!
 
 That looks great! Very helpful details!

indeed, it could also serve as a template for more such examples


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


Re: [NTG-context] Sample code: a textbook

2008-07-30 Thread Aditya Mahajan
Quoting Hans Hagen [EMAIL PROTECTED]:

 Jörg Hagmann wrote:

 A comment regarding the ongoing documentation discussion:
 The Excursion is basically excellent, I also love its Wordsworthian
 title; keep it! All that's needed is a few corrections and additions.
 Just an example: Based on Excursion, you wouldn't be able to indent
 paragraphs. You'll find the answer in the FAQs, where a beginner
 probably wouldn't look for it (he/she would probably just give up).

 those docs wil not go away; the docu discussion concerns the big (huge,
 extreme) merged thing (probably unprintable thick too -)

Willi and I are planning to use Excursion as a basis for the  
beginner's tutorial at Bohinj. We can keep track of things that are  
wrong in the Excursion, and correct them after the meeting at Bohinj.

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

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


[NTG-context] problem with \appendtoks \to\everypar

2008-07-30 Thread Steffen Wolfrum
Hi,


There is no hangover for italics. Please have a look:



\starttext
\def\hangover{\hangafter=1\hangindent=1em}

\definestartstop[hangingarea]
 [before={\bgroup\appendtoks\hangover\to\everypar},
  after=\egroup]

\starthangingarea
\input tufte

{\it italic} text roman test text roman test text roman test text  
roman test text roman test text roman test text roman test text roman  
test text roman test text
\stophangingarea

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


Re: [NTG-context] problem with \appendtoks \to\everypar

2008-07-30 Thread Taco Hoekwater
Steffen Wolfrum wrote:
 Hi,
 
 
 There is no hangover for italics. Please have a look:

This is a typical TeX gotcha. Don't start a paragraph with a group,
because the \everypar will be executed within the group. The problem
is not the italics but the { .

 
 
 \starttext
 \def\hangover{\hangafter=1\hangindent=1em}
 
 \definestartstop[hangingarea]
  [before={\bgroup\appendtoks\hangover\to\everypar},
   after=\egroup]
 
 \starthangingarea
 \input tufte

Do this:

\leavevmode
{\it italic} text roman test text roman test text  roman test text

 roman test text roman test text roman test text roman test text roman  
 test text roman test text
 \stophangingarea

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


Re: [NTG-context] OpenType beginners question

2008-07-30 Thread Andrea Valle

Thanks Taco for your efforts.

BTW, I will try to contribute to the new doc project. (well, I have  
svn from a while, but this is the occasion to understand how to use  
it :)


-a-


On 27 Jul 2008, at 14:53, Taco Hoekwater wrote:


Andrea Valle wrote:

Really, let's try to update/increase docs.


I will try (with a lot of help from Hans of course) to update and
release a new version of mfonts.pdf before the meeting in Bohinj.

Sorry (I understand you are stuck) but an overnight solution is
just not possible.

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


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





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


[NTG-context] Making a template, defining a macro

2008-07-30 Thread Demián Gutierrez
Hi,

I have to prepare a template to typeset a document that will have a  
lot of tables of similar kinds repeated across the document. I want to  
put that tables in some kind of templates, so I can use those  
templates over and over. So the idea is to hide to the authors all the  
format details behind the template allowing them to focus on the data  
that has to be filled in those tables (which is the important thing).

So, I would like to define some macros, that allows me to do something like:

\starttableX
   \startSomeField
   Some Field Value...
   \stopSomeField

   \startOtherField
   Other Field Value...
   \stopOtherField
\stoptableX

And the result, should be a table like this:

| Some Field Label:  | Some Field Value...  |
| Other Field Label: | Other Field Value... |

That way I define a template for each table type I'll have in the document.

I'm not having trouble with the tables, but with the macro definition,  
this is my approximation of what I want (which does not work):

\startsetups crudmain
   \long\def\startguiname #1 \stopguiname{\setvariables[crudmain][guiname=#1]}
   \long\def\startclassname #1  
\stopclassname{\setvariables[crudmain][classname=#1]}

GUI Name: \getvariable{crudmain}{guiname}
Class Name: \getvariable{crudmain}{classname}
\stopsetups

\definestartstop[crudmain][commands=\setups{crudmain}]

\startcrudmain
   \startguiname
   Some name here...
   \stopguiname
   \startclassname
   Other name here...
   \stopclassname
\stopcrudmain

At this point I'm getting this error:

! Use of \startguiname doesn't match its definition.

I want the \long\def\startguiname inside the \startsetups /  
\stopsetups to be sure that it will only be called inside the  
\startcrudmain / \stopcrudmain (Cause other tables of different types  
may have fields with the same name). But even considering the previous  
point, if I move the \long\def\startguiname outside the \startsetups /  
\stopsetups definition it does not works, because the  
\getvariable{crudmain}{guiname} just returns blank.

So is it possible to do what I want or something similar? What would  
be a good way to do it? Any advice on the code I've already written?  
This is really getting me crazy, cause context is not like any other  
programming language I'm used to use ;-)

Thanks in Advance
Demián

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


[NTG-context] trouble with math arrows

2008-07-30 Thread Jesse Alama
Something goes wrong with this simple example:

--- snip ---
\definemathoverarrow  [overrightarrow]  [\rightarrowfill]
\def\Ray#1{\overrightarrow{#1}}
\starttext
Hello world! $\Ray{ABC}$.
\stoptext
--- snip ---

It leads to:

! Missing $ inserted.
inserted text 
$
to be read again 
   \displaystyle 
\dodohandlemathoverarrow ...{\ialign {##\crcr #2#3
  \crcr \noalign {\kern #1\n...

\mathpalette ...\mathchoice {#1\displaystyle {#2}
  }{#1\textstyle {#2}}{#1\sc...
l.6 Hello world! $\Ray{ABC}
   $.
? 
! Emergency stop.
inserted text 
$
to be read again 
   \displaystyle 
\dodohandlemathoverarrow ...{\ialign {##\crcr #2#3
  \crcr \noalign {\kern #1\n...

\mathpalette ...\mathchoice {#1\displaystyle {#2}
  }{#1\textstyle {#2}}{#1\sc...
l.6 Hello world! $\Ray{ABC}
   $.

(This is done with a live pdftex on the garden.)  Any ideas?

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

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


Re: [NTG-context] mkii and xetex with tl2008: invalid fontname errors

2008-07-30 Thread Jesse Alama
Mojca Miklavec [EMAIL PROTECTED] writes:

 On Sat, Jul 19, 2008 at 5:05 AM, Jesse Alama [EMAIL PROTECTED] wrote:
 Mojca Miklavec [EMAIL PROTECTED] writes:

 On Fri, Jul 18, 2008 at 2:55 AM, Jesse Alama [EMAIL PROTECTED] wrote:
 Mojca Miklavec [EMAIL PROTECTED] writes:

 On Thu, Jul 17, 2008 at 9:24 PM, Jesse Alama [EMAIL PROTECTED] wrote:
 Using XeTeX and ConTeXt MkII with the TeX Live 2008 developer snapshot
 (as of a few days ago), I run into a bunch of invalid fontname errors
 when compiling some documents:

 $ texmfstart texexec --xtx file.tex
 TeXExec | processing document 'file.tex'
 TeXExec | no ctx file found
 TeXExec | tex processing method: context
 TeXExec | TeX run 1
 TeXExec | writing option file file.top
 TeXExec | using randomseed 518
 TeXExec | tex engine: xetex
 TeXExec | tex format: cont-en
 This is XeTeXk, Version 3.1415926-2.2-0.999.2 (Web2C 7.5.7)
  %-line parsing enabled.
 entering extended mode
 (./file.tex

 ConTeXt  ver: 2008.07.14 18:07 MKII  fmt: 2008.7.15  int: english/english
 [snip]
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-italic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 kpathsea: Invalid fontname 
 `texgyrepagella-bolditalic:+liga;+kern;mapping=tlig;+trep;', contains ':'
 [many more errors like that]

 Can you please send a minimal example that fails?

 \definetypeface
  [busted] [rm] [serif] [palatino] [default]
 \setupbodyfont  [busted]
 \starttext
 \input tufte
 \stoptext

 Hmm, perhaps the tex-gyre fonts are incorrectly installed?

 Do you have the file texgyrepagella-italic.otf? What does
 kpsewhich texgyrepagella-italic.otf
 return you? Or put in other words - do you have
 fonts/opentype/public/tex-gyre/texgyrepagella-italic.otf?

$ kpsewhich texgyrepagella-italic.otf
/usr/local/texlive/2008/texmf-dist/fonts/opentype/public/tex-gyre/texgyrepagella-italic.otf

 You can also try to reinstall or update packages. I'm not sure how
 well packaging works, but texgyre has now been added to
 scheme-context.

The package seems to be installed just fine, so I'm stumped.

Thanks,

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

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


[NTG-context] Figure Captions and Equation Numbers

2008-07-30 Thread Ernesto Schirmacher

Wolfgang, 

Thank you very much for both solutions.  They work like a charm!


Best regards, 

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