Re: [NTG-context] orphans and widows in poems

2013-06-16 Thread Wolfgang Schuster

Am 17.06.2013 um 02:36 schrieb Bill Meahan :

> On 6/16/2013 3:46 AM, Pablo Rodríguez wrote:
>> 
>> 
>> I'm afraid that I get widow lines in the lines environment.
>> 
>> Is there no way to avoid orphans and widows in the lines environment?
> It's a bit ugly, but if the poem consists of individual stanzas, you can put 
> each stanza in an non-bordered frame.
> 
> e.g.:
> % Set up the lines environment to put the contained lines in a frame so they 
> are kept together
> \setuplines[indenting={yes,small,even},   <--  whatever options you want
>   before={\startframedtext[frame=off]},
>   after=\stopframedtext]
> 
> % Then wrap your stanzas in individual line environments
>  \startlines
>A maiden fair was seated there,
>Her hair of fine-spun gold.
>Azure eyes so clear and bright,
>So wondrous to behold.
>  \stoplines
> 
> A frame will never be split across pages.
> 
> BTW this "trick"is on the wiki on the "Verse" page.

You don’t need any tricks to prevent page breaks in a lines environment because
\setuplines[option=packed] already does it.

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] orphans and widows in poems

2013-06-16 Thread Aditya Mahajan

On Sun, 16 Jun 2013, Bill Meahan wrote:


On 6/16/2013 3:46 AM, Pablo Rodríguez wrote:



I'm afraid that I get widow lines in the lines environment.

Is there no way to avoid orphans and widows in the lines environment?
It's a bit ugly, but if the poem consists of individual stanzas, you can put 
each stanza in an non-bordered frame.


e.g.:
% Set up the lines environment to put the contained lines in a frame so they 
are kept together

\setuplines[indenting={yes,small,even},   <--  whatever options you want
  before={\startframedtext[frame=off]},
  after=\stopframedtext]

% Then wrap your stanzas in individual line environments
 \startlines
   A maiden fair was seated there,
   Her hair of fine-spun gold.
   Azure eyes so clear and bright,
   So wondrous to behold.
 \stoplines

A frame will never be split across pages.

BTW this "trick"is on the wiki on the "Verse" page.


If the poem consists of stanzas with fixed number of lines, say 4, then 
you could also try:


\setuplines[inbetween={\testpage[4]\blank}]

This will ensure that a stanza does not break across pages.

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

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

Re: [NTG-context] orphans and widows in poems

2013-06-16 Thread Bill Meahan

On 6/16/2013 3:46 AM, Pablo Rodríguez wrote:



I'm afraid that I get widow lines in the lines environment.

Is there no way to avoid orphans and widows in the lines environment?
It's a bit ugly, but if the poem consists of individual stanzas, you can 
put each stanza in an non-bordered frame.


e.g.:
% Set up the lines environment to put the contained lines in a frame so 
they are kept together

\setuplines[indenting={yes,small,even},   <--  whatever options you want
   before={\startframedtext[frame=off]},
   after=\stopframedtext]

% Then wrap your stanzas in individual line environments
  \startlines
A maiden fair was seated there,
Her hair of fine-spun gold.
Azure eyes so clear and bright,
So wondrous to behold.
  \stoplines

A frame will never be split across pages.

BTW this "trick"is on the wiki on the "Verse" page.

--
Bill Meahan
Westland Michigan

___
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] [***SPAM***] Celsius or Me

2013-06-16 Thread hwitloc

Wolfgang,
 thank you for pointing out that an argument was needed with the \celsius macro.

darel

Wolfgang Schuster wrote:
> 
> The \celsius command expects a argument (e.g. \celsius{5}) which is missing 
> in your document.
> 
> Wolfgang
> 

Regarding:
> 
> Am 15.06.2013 um 18:17 schrieb d.henman 
> > 
> > I am using the latest TeXLive update version of MKIV (used tlmgr to update).
> > 
> > In a compile time message Context says that it doesn't like:
> >  " 
> > ! Argument of \celsius has an extra }.
> > 
> > system  > tex > error on line 15 in file degree-problem.tex: 
> > Argument of  ...
> > "
> > 
.
---
___
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] orphans and widows in poems

2013-06-16 Thread Wolfgang Schuster

Am 16.06.2013 um 09:46 schrieb Pablo Rodríguez :

> Dear list,
> 
> I have a document that contains a long poem and although it contains the
> following code:
> 
> \setuplayout[setups=*lessstrict]
> \startsetups[*lessstrict]
>\setup[reset]
>\widowpenalty=1
>\clubpenalty=1
>\brokenpenalty=1
> \stopsetups
> 
> I'm afraid that I get widow lines in the lines environment.
> 
> Is there no way to avoid orphans and widows in the lines environment?

1. Don’t use * in your setups names because names starting with an asterisk are 
system modes.

2. To load the defaults settings you have to use \setups[*reset] which needs 
the asterisks because it’s a system mode.

3. The settings doesn’t help because in the lines environment each line is a 
separate paragraph which makes \widowpenalty useless here.

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] embedding ConTeXt code in an xtable

2013-06-16 Thread Wolfgang Schuster

Am 16.06.2013 um 17:05 schrieb Sander Maijers :

> On 15-06-13 19:42, Wolfgang Schuster wrote:
>> 
>> Am 15.06.2013 um 18:01 schrieb Sander Maijers :
>> 
>>> I am now using xtable to have an XMLish document to store a table. How I 
>>> can embed ConTeXt code like $\Delta{}N_{\text{test}}$
>>> in the external XML file file with the table? In other words, having 
>>> mathematical notiation in the table header?
>>> 
>>> I tried various things such as:
>>> \expanded{\xmlflush{#1}}
>> 
>> 1. Have you looked at the cals table module?
> 
> No. I was able to find some references to CALS and ConTeXt with Google, but 
> no documentation for the module you describe.

A simple example I found online:

\usemodule[cals]

\starttext

\startbuffer

   
  
  
 
Any text
 
  
  
 
Any text
 
  
   

\stopbuffer

\processXMLbuffer

\stoptext

>> 2. Can you provide a example for your problem?
> 
> No, not at this time, because I am very pressed for time now. But I will come 
> back to this later.

When the content of the cells is normal context code you can use 
\xmlflushcontext instead of \xmlflush.

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] Disabling interactive citations

2013-06-16 Thread Sander Maijers
I want to disable the clickable citations (in MkIV) while keeping other 
interaction for things like cross-references. So far I unsuccessfully 
tried some commands in my environment file like:


\setupcite[interaction=stop,compress=yes]

This is just my guesswork as I haven't found documentation for (setup)cite.

P.S.:
As for my motives, the links:
1. are missing when using the 'authoryear' alternative with APA 
bibliography style;
2. link to "references.pdf" while my project is one document in one 
differently named file and references.tex is just one product in it.

___
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] embedding ConTeXt code in an xtable

2013-06-16 Thread Sander Maijers

On 15-06-13 19:42, Wolfgang Schuster wrote:


Am 15.06.2013 um 18:01 schrieb Sander Maijers :


I am now using xtable to have an XMLish document to store a table. How I can 
embed ConTeXt code like $\Delta{}N_{\text{test}}$
in the external XML file file with the table? In other words, having 
mathematical notiation in the table header?

I tried various things such as:
\expanded{\xmlflush{#1}}


1. Have you looked at the cals table module?


No. I was able to find some references to CALS and ConTeXt with Google, 
but no documentation for the module you describe.



2. Can you provide a example for your problem?


No, not at this time, because I am very pressed for time now. But I will 
come back to this later.



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
___



___
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] mathvariant bold NOT bold-italic

2013-06-16 Thread Steffen Wolfrum
Hi,

as far as I have understood MathML, elements tagged with mathvariant=bold 
should be set upright bold, not bold-italic.

Could this be corrected, please?

Thank you very much!
Steffen
---

\usemodule[mathml] \starttext

\placeformula\startformula[9pt]
\setbuffer http://www.w3.org/1998/Math/MathML";>
http://www.w3.org/1998/Math/MathML";>

p


T


\endbuffer{\processxmlbuffer}
\stopformula


___
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] Learning ConTeXt from the Ground Up

2013-06-16 Thread Dmitriy Tokarev
> To gather information about ConTeXt I have
> - read the ConTeXt Reference Manual (http://pmrb.free.fr/contextref.pdf)
> - bought a couple of the published books by Hans Hagen
> - started reading the "TeX book" by Donald Knuth

In addition to the "TeX book" you might be interested in "TeX for the 
Impatient":
http://www.ctan.org/pkg/impatient

see top of p.8 for recommendations for reading.

--
Dmitriy
___
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] orphans and widows in poems

2013-06-16 Thread Pablo Rodríguez
Dear list,

I have a document that contains a long poem and although it contains the
following code:

\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=1
\stopsetups

I'm afraid that I get widow lines in the lines environment.

Is there no way to avoid orphans and widows in the lines environment?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___