Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Thanks Wolfgang! Now everything is clear and fine.

Christian


2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch:

  Thanks Wolfgang
 
  I have tested it (on new beta) but the alignment is still wrong in the
 tabulate-environment. It's correct in the framedtext-environment, but
 tolerance is still missing, so that a line is still too long.
 
  My new questions:
  - What about tolerance? Where must I add the keys?

 The \setupalign command does also accepts “tolerant”, “verytolerant” and
 “stretch” as keyword which means you don’t need the \setuptolerance
 command. This is important because the value of the align key is passed to
 the \setupalign command.

  - What about tabulate-environment?

 I’m sorry but I was wrong about the setting for the tabulate environment,
 the align value of \setuptabulate accepts only “left”, “middle”, “right”
 and “normal” as arguments. There is also no way to change the format of the
 default tabulation environment, only local changes are possible, e.g.

 \starttabulate[|l|pA{normal,hanging,hz,stretch}|]
 \NC align/tolerance not working \NC \input knuth \NC\NR
 \NC align/tolerance working \NC \input knuth \NC\NR
 \stoptabulate

 When you want a different default alignment you have to create your own
 tabulation environment with the \definetabulate command.

 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
___

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Thanks Wolfgang

I have tested it (on new beta) but the alignment is still wrong in the
tabulate-environment. It's correct in the framedtext-environment, but
tolerance is still missing, so that a line is still too long.

My new questions:
- What about tolerance? Where must I add the keys?
- What about tabulate-environment?

Thanks!
Christian

My new MWE is:

\definefontfeature[default][default][expansion=quality,protrusion=quality]
\usetypescript[palatino]
\setupbodyfont[palatino,11pt]
\setupbodyfontenvironment[default][em=italic]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]

\setupframedtext[align={normal,hanging,hz}] %NEW
\setuptabulate[align={normal,hanging,hz}] %NEW
\showframe %NEW, for better seeing

\starttext
\subject{Normal Text}
align working, tolerance working.

\input knuth

\subject{Table}
Table resets align/tolerance:
\starttabulate
\NC align/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working \NC \setupalign[hz,hanging]
\setuptolerance[horizontal,stretch] \input knuth \NC\NR
\stoptabulate

\subject{Frame}
Framedtext resets align/tolerance:
\startframedtext[width=0.6\textwidth]
align working, tolerance not working

\input tufte
\stopframedtext

\startframedtext[width=0.6\textwidth]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]
align/tolerance working

\input tufte
\stopframedtext

\stoptext


2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 14:23 schrieb Christian Prim christian.p...@gmx.ch:

  Dear list
 
  is there a way to \setupalign and \setuptolerance globaly?
 
  In tabulate- or frameenvironement for example they are reseted.

 Environments which have a align key use the settings of the key and ignore
 global values, to enable protrusion and font expansion for these
 environment
 you have to change their align values.

 \setupframedtext
   [align={normal,hanging,hz}]

 \setuptabulate
   [align={normal,hanging,hz}]

 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
___

Re: [NTG-context] question concerning \setupalign \setuptolerance

2013-08-30 Thread Christian Prim
Sorry

I still have a problem with \startfiguretext  \stopfiguretext.

There ist no \setupfiguretext nor \setupfloattext to enter the align=
keypairs. Where must I enter align={normal,hanging,hz,stretch} to make
the text around these figures aligned like the rest of the document?

Thanks
Christian

PS.: My minimal (not) working example:

\definefontfeature[default][default][expansion=quality,protrusion=quality]

%\setup?figure?text[align={normal,hanging,hz,stretch}]
\setupalign[hz,hanging,stretch]
\showframe

\starttext
Correct Text

\input knuth
\startfiguretext[right,none]{}{\externalfigure[cow][width=0.5\textwidth]}
Wrong alignment!

\input knuth
\stopfiguretext
\stoptext


2013/8/30 Christian Prim christian.p...@gmx.ch

 Thanks Wolfgang! Now everything is clear and fine.

 Christian


 2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com


 Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch:

  Thanks Wolfgang
 
  I have tested it (on new beta) but the alignment is still wrong in the
 tabulate-environment. It's correct in the framedtext-environment, but
 tolerance is still missing, so that a line is still too long.
 
  My new questions:
  - What about tolerance? Where must I add the keys?

 The \setupalign command does also accepts “tolerant”, “verytolerant” and
 “stretch” as keyword which means you don’t need the \setuptolerance
 command. This is important because the value of the align key is passed to
 the \setupalign command.

  - What about tabulate-environment?

 I’m sorry but I was wrong about the setting for the tabulate environment,
 the align value of \setuptabulate accepts only “left”, “middle”, “right”
 and “normal” as arguments. There is also no way to change the format of the
 default tabulation environment, only local changes are possible, e.g.

 \starttabulate[|l|pA{normal,hanging,hz,stretch}|]
 \NC align/tolerance not working \NC \input knuth \NC\NR
 \NC align/tolerance working \NC \input knuth \NC\NR
 \stoptabulate

 When you want a different default alignment you have to create your own
 tabulation environment with the \definetabulate command.

 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] Minimal word-distance?

2013-08-26 Thread H. Özoguz
Beyond the possibility to influence the tolerance by \setuptolerance, is 
it possible to declare explicit the minimal allowed word-distance? I 
ask, because in some cases the distance between consecutive words is too 
low (already using \setuptolerance[verstrict]).


Thanks.
Huseyin
___
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] \widowpenalty=10000 and still a widow line

2013-07-08 Thread Alan Bowen
In my environment file, I have

\clubpenalty=1
\widowpenalty=1

\setuptolerance[vertical,verystrict]
\setuptolerance[horizontal,tolerant]

and yet on occasion I still get widow lines.Does any one have suggestions
about strategies to remedy this either in general or on a case by case
basis? (I am not sure of how to generate an example of the problem or if
that would even help.)


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

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

Re: [NTG-context] \widowpenalty=10000 and still a widow line

2013-07-08 Thread Wolfgang Schuster

Am 08.07.2013 um 14:57 schrieb Alan Bowen bowenala...@gmail.com:

 In my environment file, I have
 
 \clubpenalty=1
 \widowpenalty=1
 
 \setuptolerance[vertical,verystrict]
 \setuptolerance[horizontal,tolerant]
 
 and yet on occasion I still get widow lines.Does any one have suggestions 
 about strategies to remedy this either in general or on a case by case basis? 
 (I am not sure of how to generate an example of the problem or if that would 
 even help.)

1. Do the widow lines only appear in certain cases, e.g. after a heading.

2. Use the context way to change the penalties:

\startsetups [mypenalties]

\setdefaultpenalties

\setpenalties\widowpenalties{3}{1} % 3 == number of lines, 1 == 
penalty between these 3 lines
\setpenalties\clubpenalties {3}{1}

\stopsetups

\setuplayout[setups=mypenalties]

\starttext
…
\stoptext

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] \widowpenalty=10000 and still a widow line

2013-07-08 Thread Alan Bowen
Many thanks, Wolfgang. The widows actually appear at the close of “normal”
paragraphs. Around the headers, all seem to be as it should. The “ConTeXT”
solution solves the problem nicely! (I have et the number of lines to 2.)

All best, Alan


On Mon, Jul 8, 2013 at 9:57 AM, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:


 Am 08.07.2013 um 14:57 schrieb Alan Bowen bowenala...@gmail.com:

  In my environment file, I have
 
  \clubpenalty=1
  \widowpenalty=1
 
  \setuptolerance[vertical,verystrict]
  \setuptolerance[horizontal,tolerant]
 
  and yet on occasion I still get widow lines.Does any one have
 suggestions about strategies to remedy this either in general or on a case
 by case basis? (I am not sure of how to generate an example of the problem
 or if that would even help.)

 1. Do the widow lines only appear in certain cases, e.g. after a heading.

 2. Use the context way to change the penalties:

 \startsetups [mypenalties]

 \setdefaultpenalties

 \setpenalties\widowpenalties{3}{1} % 3 == number of lines, 1
 == penalty between these 3 lines
 \setpenalties\clubpenalties {3}{1}

 \stopsetups

 \setuplayout[setups=mypenalties]

 \starttext
 …
 \stoptext

 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
___

Re: [NTG-context] Side-by-side framed text blocks

2013-06-07 Thread honyk
 On 2013-06-07 Marco wrote:
 On 2013–06–07 honyk wrote:
 
  thanks for this. I removed that framed=off option and it turned out
 to be sligthly different from what I'd like to achieve.
 
  My goal is to have two blocks with a vertical gap between them and to
 have these blocks framed (or with the colored background) at the text
 area - without the cell spans - to show differences between the
 standard and 'hanging' alignments (that right border should cross the
 punctuation in the hanging mode).
 
  Below each 'column' I'd like to place a short description (centered)
 - exactly as on the referenced examples.
 
 Use a combination for that:
 
 \setuptolerance
   [verytolerant]
 
 \setupframed
   [offset=none,
width=8cm,
frame=off,
background=screen]
 
 \definefontfeature
   [default]
   [default]
   [protrusion=pure]
 
 \starttext
 
 \startcombination
   \startcontent
 \startframed [align=normal]
   \input knuth
 \stopframed
   \stopcontent
   \startcaption
 Some description
   \stopcaption
   \startcontent
 \startframed [align={normal,hanging}]
   \input knuth
 \stopframed
   \stopcontent
   \startcaption
 Some description
   \stopcaption
 \stopcombination
 
 \stoptext

Thanks, it helped a lot!

I've added this to control the gap (width) between text blocks:
\startcombination[distance=2cm]

And placed following commands inline to suppress the first whitespace 
character. I like your indentation, but on my Windows (CR+LF) it is suboptimal. 
Or is there any option for this?

\startframed [align=normal]\input knuth

Thanks, Jan

___
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] Side-by-side framed text blocks

2013-06-06 Thread Marco Patzer
On 2013–06–07 honyk wrote:

 thanks for this. I removed that framed=off option and it turned out to be 
 sligthly different from what I'd like to achieve. 
 
 My goal is to have two blocks with a vertical gap between them and to have 
 these blocks framed (or with the colored background) at the text area - 
 without the cell spans - to show differences between the standard and 
 'hanging' alignments (that right border should cross the punctuation in the 
 hanging mode).
 
 Below each 'column' I'd like to place a short description (centered) - 
 exactly as on the referenced examples.

Use a combination for that:

\setuptolerance
  [verytolerant]

\setupframed
  [offset=none,
   width=8cm,
   frame=off,
   background=screen]

\definefontfeature
  [default]
  [default]
  [protrusion=pure]

\starttext

\startcombination
  \startcontent
\startframed [align=normal]
  \input knuth
\stopframed
  \stopcontent
  \startcaption
Some description
  \stopcaption
  \startcontent
\startframed [align={normal,hanging}]
  \input knuth
\stopframed
  \stopcontent
  \startcaption
Some description
  \stopcaption
\stopcombination

\stoptext

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] suppress unwanted page breaks

2013-06-05 Thread Ingo Hohmann
Hi ConTextists,

I have a few pages with questions and answers

\setuptolerance[verytolerant]

\defineparagraphs
[mypar][n=3,before={\blank[back]}]%,after={\blank[disable]}]
\setupparagraphs
[mypar][1][width=.01\textwidth,style=bold]
\setupparagraphs
[mypar][2][width=.95\textwidth]

\starttext

\page[bigpreference]
1. Question
\blank[1*line]
\blank[1*line]
\startmypar
*
\mypar
First possible answer
\mypar
\externalfigure[marked]
\stopmypar
\blank[1*line]
\blank[1*line]
\startmypar
*
\mypar
Second possible answer
\mypar
\externalfigure[empty]
\stopmypar

...

More question and answers blocks

\stoptext


My problems:

- Sometimes the answer is not broken up into lines correctly, but prints
  over the externalfigure, which is a marker, with the given answer is the
  correct one.

- I want the question to stay together on one page with the answers, but
  sometimes there are pagebreaks in between.

- I guess there are better ways to code this, so if you have a better
  ideas, go ahead.

(I created a minimal example from my multipage text, and hope that I
included all relevant setup commands).


Kind regards,

Ingo Hohmann
___
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] Layer for all pages and for specific pages

2013-05-07 Thread Wolfgang Schuster

Am 07.05.2013 um 07:49 schrieb H. Özoguz h.oezo...@mmnetz.de:

 You can avoid this when you put everything in a single table. You should 
 also avoid
 to use brackets as delimiters for text, use normal braced arguments why can 
 be
 grouped without problems.
 
 \startsetups[arde]
   \setupTABLE[c][1][rightframe=on]
 \stopsetups
 
 \def\startarde
   {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]}
 
 \def\stoparde
   {\eTABLE}
 
 \define[2]\arde
   {\bTR
  \bTD#1\eTD
  \bTD#2\eTD
\eTR}
 
 \setuptolerance[tolerant,stretch]
 
 \starttext
 \startarde
 \arde{\input knuth }{\input knuth }
 \arde{\input knuth }{\input knuth }
 \stoparde
 \stoptext
 
 Wolfgang
 
 That does not work in my case, where in the right column a r2l-text (arabic) 
 is set. See this example:
 
 \startsetups[arde]
  \setupTABLE[c][1][rightframe=on]
 \stopsetups
 \def\startarde
  {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]}
 \def\stoparde
  {\eTABLE}
 \define[2]\arde
  {\bTR
 \bTD#1\eTD
 \bTD#2\eTD
   \eTR}
 \setuptolerance[tolerant,stretch]
 \starttext

\startarde

 \arde{\input knuth }{\setupalign[r2l] Eigentlich steht hier etwas Arabisches.}

\stoparde

 \stoptext
 
 The two texts are just written one after another, no table, no columns.

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] Layer for all pages and for specific pages

2013-05-06 Thread H. Özoguz

Hi,

I use a vertical line (realized as a layer) for a bilingual project. My 
question is:

1. How can I set this line on all pages?
2. How can I control, on which pages it is set, and on which not? I 
tried it with state=start/stop/repeat, but that did not work.


Here my try:

\definelayer[mybg]
[x=0mm, y=0mm,
 width=\paperwidth, height=\paperheight]
\setlayer[mybg]
[hoffset=10cm, voffset=4cm]
{\blackrule[width=1pt, height=\vsize, depth=0.5ex]}
\setupbackgrounds[page][background=mybg]
\setuptolerance[tolerant,stretch]

\starttext
\input knuth
\page
\input knuth
\stoptext

Thanks for help.
Huseyin
___
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] Layer for all pages and for specific pages

2013-05-06 Thread Wolfgang Schuster

Am 06.05.2013 um 08:26 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Hi,
 
 I use a vertical line (realized as a layer) for a bilingual project. My 
 question is:
 1. How can I set this line on all pages?

When this is the text where you place both columns with a table you can just 
enable the rule between both columns.

 2. How can I control, on which pages it is set, and on which not? I tried it 
 with state=start/stop/repeat, but that did not work.
 
 Here my try:
 
 \definelayer[mybg]
[x=0mm, y=0mm,
 width=\paperwidth, height=\paperheight]
 \setlayer[mybg]
[hoffset=10cm, voffset=4cm]
{\blackrule[width=1pt, height=\vsize, depth=0.5ex]}
 \setupbackgrounds[page][background=mybg]
 \setuptolerance[tolerant,stretch]
 
 \starttext
 \input knuth
 \page
 \input knuth
 \stoptext

\newconditional\placeRULE

\definelayer[rule][state=repeat]

\setlayer[rule][x=.5\textwidth]{\blackrule[width=1pt,height=\textheight]}

\defineoverlay[rule][{\ifconditional\placeRULE\placelayer[rule]\fi}]

\setupbackgrounds[text][background=rule]

\starttext

\input knuth

\page \settrue\placeRULE

\input tufte

\page

\input zapf

\page \setfalse\placeRULE

\input ward

\stoptext

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] Layer for all pages and for specific pages

2013-05-06 Thread H. Özoguz

/  Hi,
//  
//  I use a vertical line (realized as a layer) for a bilingual project. My question is:

//  1. How can I set this line on all pages?
/
When this is the text where you place both columns with a table you can just 
enable the rule between both columns.


Thanks Wolfgang!

The reason for the use of the layer is the following: If I use frames of 
the natural table, then I have this:


\def\arde[#1][#2]{%
\bTABLE
\setupTABLE[frame=off]
\setupTABLE[c][1][rightframe=on]
\bTR
\bTD #1 \eTD
\bTD #2 \eTD
\eTR
\eTABLE}
\setuptolerance[tolerant,stretch]
\starttext
\arde[\input knuth][\input knuth]
\arde[\input knuth][\input knuth]
\stoptext

There you can see the problem, you have to zoom into the pdf: Between 
the two tables, there is a tiny tiny (!) space betweeen the vertical 
lines. Its not a big issue, but it is there.


Huseyin


___
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] Layer for all pages and for specific pages

2013-05-06 Thread Wolfgang Schuster

Am 06.05.2013 um 15:55 schrieb H. Özoguz h.oezo...@mmnetz.de:

  Hi,
  
  I use a vertical line (realized as a layer) for a bilingual project. My 
  question is:
  1. How can I set this line on all pages?
 
 When this is the text where you place both columns with a table you can just 
 enable the rule between both columns.
 
 Thanks Wolfgang!
 
 The reason for the use of the layer is the following: If I use frames of the 
 natural table, then I have this:
 
 \def\arde[#1][#2]{%
 \bTABLE
 \setupTABLE[frame=off]
 \setupTABLE[c][1][rightframe=on]
 \bTR 
 \bTD #1 \eTD
 \bTD #2 \eTD 
 \eTR
 \eTABLE}
 \setuptolerance[tolerant,stretch]
 \starttext
 \arde[\input knuth][\input knuth]
 \arde[\input knuth][\input knuth]
 \stoptext
 
 There you can see the problem, you have to zoom into the pdf: Between the two 
 tables, there is a tiny tiny (!) space betweeen the vertical lines. Its not a 
 big issue, but it is there.

The space is inserted by TeX when characters in different lines are touching.

You can avoid this when you put everything in a single table. You should also 
avoid
to use brackets as delimiters for text, use normal braced arguments why can be
grouped without problems.

\startsetups[arde]
  \setupTABLE[c][1][rightframe=on]
\stopsetups

\def\startarde
  {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]}

\def\stoparde
  {\eTABLE}

\define[2]\arde
  {\bTR
 \bTD#1\eTD
 \bTD#2\eTD 
   \eTR}

\setuptolerance[tolerant,stretch]

\starttext
\startarde
\arde{\input knuth }{\input knuth }
\arde{\input knuth }{\input knuth }
\stoparde
\stoptext

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] Layer for all pages and for specific pages

2013-05-06 Thread H. Özoguz

You can avoid this when you put everything in a single table. You should also 
avoid
to use brackets as delimiters for text, use normal braced arguments why can be
grouped without problems.

\startsetups[arde]
   \setupTABLE[c][1][rightframe=on]
\stopsetups

\def\startarde
   {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]}

\def\stoparde
   {\eTABLE}

\define[2]\arde
   {\bTR
  \bTD#1\eTD
  \bTD#2\eTD
\eTR}

\setuptolerance[tolerant,stretch]

\starttext
\startarde
\arde{\input knuth }{\input knuth }
\arde{\input knuth }{\input knuth }
\stoparde
\stoptext

Wolfgang


That does not work in my case, where in the right column a r2l-text 
(arabic) is set. See this example:


\startsetups[arde]
  \setupTABLE[c][1][rightframe=on]
\stopsetups
\def\startarde
  {\bTABLE[frame=off,width=.5\textwidth,setups=arde,split=yes]}
\def\stoparde
  {\eTABLE}
\define[2]\arde
  {\bTR
 \bTD#1\eTD
 \bTD#2\eTD
   \eTR}
\setuptolerance[tolerant,stretch]
\starttext
\arde{\input knuth }{\setupalign[r2l] Eigentlich steht hier etwas 
Arabisches.}

\stoptext

The two texts are just written one after another, no table, no columns.

Huseyin


___
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] Some more question, ex Context an excursion

2013-01-27 Thread Wolfgang Schuster

Am 27.01.2013 um 16:25 schrieb Alain Delmotte espera...@swing.be:

 Hi,
 
 Using MkIV and the latest(?) standalone version.
 Continuing Context an excursion!
 
 Thanks for your help,
 
 Alain
 
 1) How to force line jump to avoid overfull \hbox, particularly with more or 
 less narrow columns?

Add \setuptolerance[verytolerant] or \setuptolerance[stretch] (or both settings 
simultaneously)
to your document to enable font expansion and protrusion.

 2) I did insert \showlayout just before \stoptext and I get 4 pages with the 
 same information!!!
 
 3) On page 77, I get an error:
 
 \defineparagraphs[city][n=2,before=,after=]
 \city Hasselt (Ov) \\ Overijssel \\
 \city Hasselt (Li) \\ Limburg\\
 \startpacked
 \city Hasselt (Ov) \\ The Netherlands \\
 \city Hasselt (Li) \\ Belgium \\
 \stoppacked
 --error message
 ! Undefined control sequence.

Make working minimal example of the problems, it takes always time to create 
one first
to check which something fails.

The problem here is that Hans removed this simple form to use the environment,
what’s possible in MkIV can be seen in the example below (taken form the 
source).

\defineparagraphs[sample][n=2,rule=on]

\starttext

\startsample
first  \nextsample
second \nextsample
third
\stopsample

\startsample
\input tufte \nextsample
\input ward  \nextsample
\input davis \nextsample
\input zapf
\stopsample

\startparagraphs[sample]
first  \nextsample
second \nextsample
third
\stopparagraphs

\startparagraphs[sample]
\startparagraphscell
first
\stopparagraphscell
\startparagraphscell
second
\stopparagraphscell
\startparagraphscell
third
\stopparagraphscell
\stopparagraphs

\stoptext

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] publication list: bounding box problems

2013-01-24 Thread Marco Patzer
On 2013–01–24 Andreas Mang wrote:

 I am fine tuning my doc. I have problems with the publication
 list, as some of the publications extend to the margin of my
 document. I have not been able to find a solution. This is
 probably a very common issue. I assume some of you had/have the
 same problem. Is there a quick way to fix this?

You can increase the tolerance for the publication list:

  \setuptolerance [verytolerant]

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Find all words set into the margin

2012-11-26 Thread H. Özoguz

I use

\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupalign[hz,hanging]

\usetypescript[times]

\setupbodyfont[times,11pt]


\setuptolerance[verystrict]


Is there a command or a macro to find all occurences in a file (or 
projekt), where some word is printed into the margin? (Maybe because of 
bad hyphenation or something else.) - Would be perfect for manual 
check-up and corrections!



Thanks.
Huseyin


___
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] ntg-context Digest, Vol 101, Issue 42

2012-11-16 Thread H. Özoguz

Am 15.11.2012 20:32, schrieb ntg-context-requ...@ntg.nl:

2012-11-15 H. ?zoguz:


\setuptolerance[stretch]

Are you sure, you want to use stretch? It will probably product
ugly results.


\tolerance 70

Why 70? I don't understand the use of stretch with such a strict
tolerance. What about using

   \setuptolerance [tolerant] %% or verytolerant

instead of using stretch?


Is it suitable to use tolerance and stretch in this way together?

It will probably work (though I never used it myself), but using the
ConTeXt interface \setuptolerance is the better approach.


Of course I want a nice type area - but for me that means that I definitely
don't want a word written in the margin!

Use a higher tolerance, not a lower one.


(That happens with the default \tolerance 250 (without using stretch).

What version are you using? A current ConTeXt has the \tolerance set to 200.

\starttext\the\tolerance\stoptext



Correct, my version has tolerance=200 as default, too. But in the manuel 
I read 250, so it was my mistake.


My question is: I want to be absolutely sure, that no word is written in 
the margin with my settings. And if I use only


\setuptolerance [tolerant]

it might still happen. The reason for the smal tolerance was, that I want very 
small tolerance (= nice result ?) in most cases, but if a word is written in 
the margin, then it should stretch (word in the margin = worst case for me)


___
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] Tolerance and Stretch versus Protrusion and Ugliness

2012-11-15 Thread H. Özoguz

Hi there,

at the moment I use for my book

\definepapersize[MyBook][A5]

\setuppapersize[MyBook][A5]

\usemodule [simplefonts][size=11pt]

\setmainfont[Times New Roman][expansion=quality,protrusion=quality]

\setupalign [hanging]

\setuptolerance[stretch]

\tolerance 70


Is it suitable to use tolerance and stretch in this way together? Of 
course I want a nice type area - but for me that means that I definitely 
don't want a word written in the margin! (That happens with the default 
\tolerance 250 (without using stretch).


What would you recommend? Are there other values to play with, to get a 
better result?



Thanks
Huseyin

___
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] Tolerance and Stretch versus Protrusion and Ugliness

2012-11-15 Thread Marco Patzer
2012-11-15 H. Özoguz:

 \setuptolerance[stretch]

Are you sure, you want to use stretch? It will probably product
ugly results.

 \tolerance 70

Why 70? I don't understand the use of stretch with such a strict
tolerance. What about using

  \setuptolerance [tolerant] %% or verytolerant

instead of using stretch?

 Is it suitable to use tolerance and stretch in this way together?

It will probably work (though I never used it myself), but using the
ConTeXt interface \setuptolerance is the better approach.

 Of course I want a nice type area - but for me that means that I definitely 
 don't want a word written in the margin!

Use a higher tolerance, not a lower one.

 (That happens with the default \tolerance 250 (without using stretch).

What version are you using? A current ConTeXt has the \tolerance set to 200.

\starttext\the\tolerance\stoptext


Marco

___
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] tolerance and whitespace settings inside a TEXpage

2012-09-20 Thread Marco Patzer
Hi,

inside a TEXpage the tolerance and the whitespace settings are not
applied. The whitespace can be set in a setup and the tolerance can
be set directly with \spaceskip, but that seems a bit hackish.

Is that intended and is there a cleaner solution? Example:

\setuplayout   [width=8cm]
\setupbodyfont [mono]
\startsetups [myset]
  \setupwhitespace [big]
  \setuptolerance  [space]
\stopsetups
\setups{myset}

\starttext
  \startTEXpage [setups=myset]
%% \spaceskip .5em plus .25em minus .25em
\input knuth
  \stopTEXpage

  \input knuth
\stoptext


Marco

___
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] tolerance and whitespace settings inside a TEXpage

2012-09-20 Thread Wolfgang Schuster

Am 20.09.2012 um 11:56 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 inside a TEXpage the tolerance and the whitespace settings are not
 applied. The whitespace can be set in a setup and the tolerance can
 be set directly with \spaceskip, but that seems a bit hackish.
 
 Is that intended and is there a cleaner solution? Example:
 
 \setuplayout   [width=8cm]
 \setupbodyfont [mono]
 \startsetups [myset]
  \setupwhitespace [big]
  \setuptolerance  [space]
 \stopsetups
 \setups{myset}
 
 \starttext
  \startTEXpage [setups=myset]
%% \spaceskip .5em plus .25em minus .25em
\input knuth
  \stopTEXpage
 
  \input knuth
 \stoptext


The problem here is that your setups are used but the value from the align
key overwrite them which can’t be changed. One solution is to put 
\texsetup{myset}
after \startTEXpage but this has to be done for each page, the better solution 
is
to misuse the command key to flush the setups content.

\setuplayout   [width=8cm]
\setupbodyfont [mono]

\startsetups [myset]

  \setupwhitespace [big]
  \setuptolerance  [space]

\stopsetups

\setupfittingpage[TEXpage][command=\texsetup{myset}]

\starttext

\startTEXpage
\input knuth
\stopTEXpage

\input knuth

\stoptext

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] new beta

2012-07-16 Thread Hans Hagen

Hi,

I uploaded a new beta. The usual fixes. New is a first version of a new 
multi column handler. Pretty experimental but eventually it will replace 
the current multi column routine, which is fact is then an instance, 
think of


\definemixedcolumns
  [columns]

\unexpanded\def\setupcolumns
  {\setupmixedcolumns[columns]}

The simple columns routine is already replaced (by an instance) as is 
the multi column handler of itemize.


Hans

ps. Does someone know of a latin font that has different glyphs sets?

\definefontfeature
  [solution-demo]
  [goodies=demo, % needs version from latest beta
   featureset=default]

\definefont
  [SomeTestFont]
  [texgyrepagellaregular*solution-demo at 10pt]

\definefontsolution
  [solution]
  [goodies=demo,
   solution=experimental,
   method={normal,preroll},
 % method={normal,preroll,split},
   criterium=1]

\starttext

\enabletrackers
  [builders.paragraphs.solutions.splitters.colors]

\startsimplecolumns
  \showfontkerns
  \setuptolerance[verytolerant]
  \start  \SomeTestFont
\input zapf \par
  \stop
  \column
  \start  \SomeTestFont \startfontsolution[solution]
\input zapf \par
  \stopfontsolution \stop
\stopsimplecolumns

\stoptext


-
  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] ntg-style error

2012-06-06 Thread Taco Hoekwater
=\hfonti,
  before={\blank},
  after={\blank[halfline]}%
]
\setuphead [subsubject][%
  style=\hfontii,
  before={\blank[halfline]},
  after={}%
]
\setuphead [subsubsubject][%
  style=\hfontiii,
  command=\runin,
  alternative=text,
  before={\blank[halfline]}%
]}

%
%%% floats

\setupfloats [location=center, before={\ss}]
\setupcaptions [headstyle={\ssbf},style={\ssx},
   suffix=,distance=6pt,
   inbetween={\blank[halfline]}]

%
%%% various document elements

\def\ChkBox{%
  \hbox {\boxrulewidth=.4pt \raise.2ex\ruledvbox
{\phantom{\vrule width .85ex height .85ex%

\definesymbol [1][\ChkBox]

\setupitemize[1][packed]

\setupitemize [each][%
  indentnext=no,
  align=right,
  width=1em,
  distance=0pt%
]

% an outer form of itemize that does not indent
% the paragraph.

\definecomplexorsimpleempty\startouteritemize
\def\complexstartouteritemize[#1]{\begingroup
  \startitemize[width=1sp,#1]
  \let\doitem\item
  \def\item{\doitem[]\hbox{}\kern12pt\rightskip=0pt}%
}

\def\stopouteritemize{\stopitemize\endgroup}


\setupenumerations [indentnext=no]

\setupdescriptions [indentnext=no]

\unexpanded\def\smalltyping{%
  \switchtobodyfont[tt]%
  \parindent=0pt
}

% typing:
% - prettyverbatim is NOT the default
% - smaller size

\unexpanded\def
  \XeTeX{X\lower.5ex\hbox{\kern-.1em\mirror{E}}\kern-.1667em\TeX}

\setuptyping [%
  style={\smalltyping},
  option=none,
  indentnext=no%
]

\def\footnum#1{#1.} 

\setupfootnotes
   [location=none,
width=\textwidth,
before={\blank},
numbercommand=,
command=\footnum]

\setupfootnotedefinition
   [location=serried,
before=,
after=,
distance=0.5em]

\setuptabulate
   [before=\blank,
inner=\ss,
after=\blank]

\def\startIntroEntry#1%
 {\startlinecorrection
  \bgroup
  \setupalign[right]
  \setuptolerance[verytolerant]
  \setupindenting[no]
  \noindent
  \switchtobodyfont[9pt]%
  \setuplocalinterlinespace[line=10pt]%
  %\hyphenpenalty1
  \parfillskip 0pt plus 1fill
  \rightskip6pt plus 1fill
  \ss
  \bgroup\bf #1\par\egroup
  \ignorespaces }

\def\stopIntroEntry
  {\par\egroup \stoplinecorrection
   \blank[line] }

\def\defineIntroEntry[#1][#2][#3]%
  {\setvalue{start#1}{\startIntroEntry{#2}}%
   \setvalue {stop#1}{\stopIntroEntry#3}}

\defineIntroEntry[Keywords][Keywords][]
\defineIntroEntry[Abstract][Abstract][]

% article parameters (other fields and defaults)
\def\MapsBibData[#1]%
  {\getparameters [Maps]
[SubTitle=,
 RunningAuthor=,
 RunningTitle=,
 Email=,
 Address=,
 Page=1,
 Title=,
 Author=, 
 Period=,
 Number=,
 Year=,
 #1]%
  \doifnothing{\MapsPeriod}{%
\ifnum \normalmonth6 \gdef\MapsPeriod{VOORJAAR}\else 
\gdef\MapsPeriod{NAJAAR}\fi}
  \doifinstringelse{oorjaar}{\MapsPeriod}{\gdef\MapsPeriod{VOORJAAR}}{}%
  \doifinstringelse{pring}{\MapsPeriod}{\gdef\MapsPeriod{VOORJAAR}}{}%
  \doifinstringelse{ajaar}{\MapsPeriod}{\gdef\MapsPeriod{NAJAAR}}{}%
  \doifinstringelse{utumn}{\MapsPeriod}{\gdef\MapsPeriod{NAJAAR}}{}%
  \doifnothing{\MapsYear}{\gdef\MapsYear{\the\year}}%
  \doifnothing{\MapsNumber}{%
\ifnum \normalmonth6 
  \xdef\MapsNumber{\the\numexpr (\the\year-1990)*2\relax}%
\else 
  \xdef\MapsNumber{\the\numexpr (\the\year-1990)*2+1\relax}%
\fi }%
  \doifnothing\MapsRunningAuthor
{\global\let\MapsRunningAuthor\MapsAuthor}%
  \doifnothing\MapsRunningTitle
{\global\let\MapsRunningTitle\MapsTitle}}%

\def\dostartArticle[#1]{%
  \MapsBibData[#1]
  \pageno=\MapsPage
  \setuppagenumber[start=\MapsPage]
  \startbaselinecorrection
  \bgroup
\hsize = 457pt
\let\\\crlf
\blank[35pt,force]
\switchtobodyfont[24pt]
\setupalign[right]
{\noindent\bf\MapsTitle\par}
\ifx\MapsSubTitle\empty 
  \blank[30pt]
\else
  \bgroup
  \blank[12pt]
  \switchtobodyfont[18pt]\noindent \it
  \advance \rightskip 0pt plus 2em
  \MapsSubTitle\par
  \egroup
  \blank[30pt]
\fi
  \egroup
  \setupalign[width]
  \switchtobodyfont[rm,10pt]
  \stopbaselinecorrection
  \ifMapsInColumns
\startcolumns\hyphenpenalty1000
  \else
\clubpenalty1
\widowpenalty1
  \fi
}

\def\startArticle{\dosingleempty\dostartArticle}

\def\signArticle{%
  \blank\let\\\crlf
  \noindent\switchtobodyfont[ss,9pt]%
  \MapsAuthor
  \doifsomething{\MapsAddress}{\\\MapsAddress}%
  \doifsomething{\MapsEmail}{\\\MapsEmail}%
  \switchtobodyfont[10pt]%
  \def\signArticle{}%
}

\def\stopArticle{%
  \par\signArticle
  \ifMapsInColumns \stopcolumns \fi
  \page
}

\installpagebreakhandler{last}{}

%%% `logos' %%

\unexpanded\def\LaTeX % requested by erik frambach
  {{\setbox\scratchbox\hbox{L}%
\scratchdimen\ht\scratchbox
\setbox\scratchbox\hbox{\switchtobodyfont[script]A}%
L\kern-.55\wd\scratchbox
\raise\scratchdimen\hbox{\lower\ht\scratchbox\copy\scratchbox}%
\kern-.2\wd\scratchbox\TeX}}


\def

[NTG-context] placefigure vs grid problem

2012-03-20 Thread Honza Hejzl
Hello,

I have found that placing figures in grid mode does problems with
[left,right...] parameters. The figure brokes the text flow. (It suffice to
turn grid=yes.)

Any solution, please?

Thanks, Honza

\enableregime[utf]
\mainlanguage[cz]

\setuppapersize[A5][A5]
\setuplayout[
*grid=yes*
]
\setupindenting[1em]
\indenting[yes]

\setupexternalfigures[]
\setupfloats[spaceafter=none]
\setupcaptions[location={bottom,left}]
\setuptolerance[tolerant]

\starttext


\chapter{{Předmluva}}

Za výstup projektu je také možno považovat i fakt, že ze studií vznikly a
byly úspěšně obhájeny dvě diplomové práce a před dokončením jsou i dvě
práce doktorské.\footnote{Jedná se o~diplomové práce K. Kukanové a M.
Wagnera (na katedře právních dějin) a doktorské dizertace J. Pleskota a T.
Jablonického (na katedeře právních dějin a na Ústavu právních dějin
Právnické fakulty UK).}

\placefigure[left]{}{\externalfigure[none][width=3.5cm]}

Problematika různých forem majetkových perzekucí a zásadních změn
v majetkových vztazích v historické retrospektivě je nejen čistě historicko
právní otázkou, ale má i řadu přesahů do platného práva, do dalších oborů a
do současných celospolečenských diskuzí. Vlastnické právo a jeho ochrana
patří k základním atributům demokratického právního státu budovaného u~nás
po roce 1989 a ochrana soukromoprávních vztahů v oblasti věcných práv je
spojena i se šířeji pojatou svobodou jednotlivce a jejím zajištění proti
zásahům státní (veřejné) moci.
 \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
___

Re: [NTG-context] Undefined controle sequence with usemodule[simpleslides]

2012-01-04 Thread Aditya Mahajan

On Wed, 4 Jan 2012, pol stra wrote:


I tried to compile the first example of the simpleslide module’s documentation, 
but it doesn’t work:


The recent cleanup in the MkIV has broken parts of the simpleslides 
module. As a quick hack, you can put the attached file in your current 
directory.


Thomas and I have been thinking of (again) rewriting the presentation 
module to make it modular. The current version of this module is at


http://bitbucket.org/adityam/complexslides

It currently has only one style (that I am using at present). There is no 
documentation at present, but the following shows the current interface.


\usemodule[complexslides][colorscheme=..., fontscheme=..., extras=]

\starttext

\setvariables
   [talk]
   [title=...,
shorttitle=...,
author=,
shortauthor=...,
institute=...,
location=...,
   ]

\startsection[title=]
...
\stopsection

...
\stoptext


Aditya%D \module
%D   [  file=simpleslides-s-default,
%Dversion=2009.03.30
%D  title=\CONTEXT\ Style File,
%D   subtitle=Presentation Module simpleslides --- Default style setup,
%D author=Thomas A. Schmitz \ Aditya Mahajan,
%D   date=\currentdate,
%D  copyright={Aditya Mahajan and Thomas A. Schmitz}]
%C
%C Copyright 2007 Aditya Mahajan and Thomas A. Schmitz
%C This file may be distributed under the GNU General Public License v. 2.0.

\writestatus{simpleslides}{loading default style setup}

\startmodule[simpleslides-s-default]

\unprotect

%D This module is the first sub-module that is loaded by
%D \filename{simpleslides}.  This sets up the style macros for the module. We
%D choose a rather plain style as the default; separate style sub-modules
%D redefine some internal macros to achieve fancier effects.


%D We start with the page layout. S6 has the ratio of a usual computer screen.

\setuppapersize[S6][S6]

%D We do not want page numbers, but we sometimes want to use the page numbering
%D mechanism, so we make sure pages are counted, but the numbers are not
%D displayed. 

\setuppagenumbering[location=]

%D As for the page layout: most of the numbers have been reached by
%D trial and error; I have just taken what seemed to produce the best output.

\setuplayout [width=middle,
  margin=0.6cm,
  height=middle, 
  header=0.15cm, 
  footer=1.35cm, 
  footerdistance=0.5cm,
  topspace=0.5cm, 
  backspace=1cm,
  location=singlesided]


%D We define some other layouts which can be used to change the layout of
%D specific kinds of pages. This module defines three kinds of pages:
%D horizontal, vertical, and title, and we allow the possibility of changing the
%D layout of all three page styles.

\definelayout [simpleslides:layout:horizontal]
\definelayout [simpleslides:layout:vertical]
\definelayout [simpleslides:layout:title]
\definelayout [simpleslides:layout:page]

\setuplayout  [simpleslides:layout:page]
  [topspace=0cm,
   header=0cm,
   footer=0cm,
   bottomspace=0cm,
   backspace=0cm,
   cutspace=0cm,
   width=middle,
   height=middle]

%D We want colored presentations

\setupcolors[state=start]

%D And colored typesetting for \TEX\ code.

\definetype[typeTEX][option=color]

%D Presentations have relatively dense lines, we do not care about underfull
%D lines, but allow emergency stretch.

\setuptolerance[\v!verytolerant,\v!stretch] 

%D We use combinations for placing vertical pictures and text side by side, and
%D we want a distance of 3em between both.

\setupcombinations[distance=0.9cm]

%D Next we define some dimensions that are used as nominal values by other
%D macros and the user.

\define\NormalHeight{.830\textheight}
\define\NormalWidth {.476\textwidth}
\define\PictureFrameHeight  {.830\textheight}
\define\PictureFrameWidth   {.476\textwidth}

%D As we said before, the presentation consists of three kinds of pages: title,
%D horizontal, and vertical. Each page can have a different background; we can
%D switch to a specific background using
%D \starttyping
%D \setupPageBackground[horizontal]
%D \stoptyping

\def\setupPageBackground%
   {\dosingleargument\dosetupPageBackground}

\def\dosetupPageBackground[#1]%
  {\setups{simpleslides:background:#1}}

%D The backgrounds in all the styles are very similar. So, we define overlays to
%D capture the different features of the backgrounds, and then simply define the
%D overlays in different styles.

\defineoverlay[simpleslides:background:horizontal]
\defineoverlay[simpleslides:background:title]
\defineoverlay[simpleslides:background:vertical]
\defineoverlay[simpleslides:background:ornament]
\defineoverlay[simpleslides:background:page]

\defineoverlay[simpleslides:background:highlight]
  [\useMPgraphic{simpleslides:MP:highlight}]%

\definelayer[simpleslides:layer:slidetitle]
[\c!width

Re: [NTG-context] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-28 Thread Wolfgang Schuster

Am 26.11.2011 um 00:56 schrieb Alexandre Krispin:

 Now that japanese display correctly, there is still another problem. Japanese 
 sentences (long titles in bibliography) don't break at the end of line. I 
 have tested the behavior of japanese with entire paragraphs, and I get the 
 same problem as in the bibliography, lines don't break and go through the 
 page.

As I already told you need “\setscript[hanzi]” to enable linbreaks for chinese 
and japanese.

Instead of a global setting you can also write

\startscript[hanzi]
…
\stopscript

to enable linebreaking for a area.

Another valid form for \setscript[hanzi] is the command \hanzi which is a 
shortcut for the longer definition.

 Though I have looked to documentation about chinese on the wiki, none helped 
 me to solve this problem. Does someone have any idea ?
 
 Here is a minimal example with a paragraph sample in japanese :
 %beginning of file%%
 \usemodule[simplefonts]
 \setmainfont[HeiseiMinStd-W3]
 \definesimplefonttypeface[jpn][HeiseiMinStd-W3]
 \setupbodyfont[12pt]
 \setuptolerance[\v!verytolerant,\v!stretch]

Don’t use the “\v!” prefix for settings in your document, in this case it’s 
harmless but there can be cases
where you don’t get the expected result of this because in normal text “\v” is 
a command to place a accent
over the next character (here the “!”).

 \enableregime[utf]

This is not necessary because MkIV use UTF-8 by default.

 \usemodule[typearea]
 \setupTypeArea[bcor=30mm,alphabets=2.6,oneside]

You can’t mix keywords and assignments in the same argument of a setup command,
to use the onside option you have to write “oneside=yes”.

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] Error while compiling : ! String contains an invalid utf-8 sequence.

2011-11-26 Thread Alexandre Krispin
Thanks Ulrike ! It seems the 2 messages I sent yesterday have been lost (I
have received a mail which might point out a delivery failure from the
mailing list) though it is written I don't need to send again the message,
in case, here is the copy of mails I sent. Now the only problem remaining
is that japanese sentences are not wrapped (long titles of books go through
the page). And though I took a look to documentation about chinese, I don't
know what I am missing.

***Beginning of first
mail

Hello,

Thanks to all for your answers !

Finally, thanks to an article dealing about Xelatex, bibtex files and utf-8
problem (see
http://skalldan.wordpress.com/2011/08/01/%E3%82%A4%E3%83%B3%E3%83%89%E5%AD%A6%E4%BB%8F%E6%95%99%E5%AD%A6%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B-utf-8-%E3%81%AB%E3%82%88%E3%82%8B-tex-%E6%96%87%E6%9B%B8%E4%BD%9C%E6%88%90-4/)
I got the idea how to solve my problem.

In the bib file I have surrounded all japanese words by {\jpn }, like in
this minimal example :
%beginning of the example%%%
@article{uzawa2011tpp,
author = Hirofumi Uzawa {\jpn 宇沢弘文}, Uchihashi Katsuto {\jpn 内橋克人},
journal = Sekai {\jpn 世界},

title = Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru

{\jpn 対談TPPは社会的共通資本を破壊する},

year = 2011,
month = april,

publisher = Iwanami shoten {\jpn 岩波書店},

pages = 62-72,
url = http://ci.nii.ac.jp/naid/40018706510/;,

note = test
}
end of file%%

Then, thanks to the documentation for simplefonts I have introduced a
typeface definition, like in this minimal example :

%%beginning of file%
\usemodule[simplefonts]
\setmainfont[Arno Pro]
\definesimplefonttypeface[jpn]
[hiraginokakugothicpro]

\enableregime[utf8]

\setupbibtex[database=biblio]

\starttext

test
\completepublications[criterium=all]
{\jpn 知らない  金 11月 25, 2011  10:21午後}
\stoptext

%%end of file%%%

And everything works well when compiling the whole with context *tex.

The only question remaining in my mind is : is there another way ? Just out
of curiosity, since Hans Hagen mentioned Thomas who use greek.

***End of first
mail

And the second mail :

***Beginning of second
mail
Now that japanese display correctly, there is still another problem.
Japanese sentences (long titles in bibliography) don't break at the end of
line. I have tested the behavior of japanese with entire paragraphs, and I
get the same problem as in the bibliography, lines don't break and go
through the page.

Though I have looked to documentation about chinese on the wiki, none
helped me to solve this problem. Does someone have any idea ?

Here is a minimal example with a paragraph sample in japanese :
%beginning of file%%
\usemodule[simplefonts]
\setmainfont[HeiseiMinStd-W3]
\definesimplefonttypeface[jpn]
[HeiseiMinStd-W3]
\setupbodyfont[12pt]
\setuptolerance[\v!verytolerant,\v!stretch]
\enableregime[utf]

\usemodule[typearea]
\setupTypeArea[bcor=30mm,alphabets=2.6,oneside]
%*
\starttext

そしてディズニー原理主義で考えた場合、「一秒24コマの絵」で作るフルアニメが至上。そのルールに照らした場合、「電脳コイル」より「らき☆すた(ハルヒ)」の方が優れている。
ニョロニョロと滑らかに動く。つまりそれだけ動画枚数を多く使ってる。よりフルアニメに近い。よって「電脳コイル<らき☆すた」となる。

コレに作画マニアは反論する。アニメは「アニメーターのスキル」こそが最も重要。「スキル>作画枚数」、だから優れたアニメーターである磯光雄の手掛けた電脳コイルのほうが偉い。
じゃあ磯光雄がフルアニメにしたら?今の2コマ3コマ打ちの磯光雄より偉いの?より優れてるの?

>フルアニメの磯光雄の方が優れている。
この場合、「リミテッドアニメという制約の中で独自の進化をした日本アニメのアイデンティティ」というのが無くなってしまう。「らき☆すた」には勝てるがファンタジアには負ける。
>2、3コマ打ちのリミテッドの磯光雄の方が優れている。
質としては等価(磯光雄の原画)でより量のあるフルアニメよりもリミテッドアニメの方が優れてる、その理由を言語化する必要がある。

じゃあ、そのリミテッドで手に入れた価値とは何?
例えば「フルアニメと同じ価値をリミテッド(より少ない動画枚数=コスト)で作れるという『省エネ』の部分にある」ってこと?ソレだと新たな創作的価値を別に産み出してないよね。
そうでないのなら動きの質がディズニーとはどう違うの?
\stoptext
%end of file%

I attach the corresponding pdf file I obtain after compilation.

***End of second
mail


2011/11/26 Ulrike Fischer ne...@nililand.de

 Am Fri, 25 Nov 2011 19:50:52 +0100 schrieb Alexandre Krispin:

  Hello,
 
  I am trying to get japanese displayed in bibliography. But I get the
 error
  ! String contains an invalid utf-8 sequence. while compiling with the
  command context *tex.

  And here is the bib file :
 
  %%%beginning of file%%%
  @article{uzawa2011tpp,
  author = Hirofumi Uzawa 宇沢弘文, Uchihashi Katsuto 内橋克人,
  journal = Sekai 世界,
  title = Taidan TPP wa shakaiteki kyôtsû shihon wo hakai suru
  対談TPPは社会的共通資本を破壊する,
  year = 2011,
  month = april,
  publisher = Iwanami shoten 岩波書店,
  pages = 62-72,
  url = http://ci.nii.ac.jp/naid/40018706510/;,
  }
  %%%end of file%%
 
  Do someone know how to get ride of utf-8 errors ? Or is this a problem
 with
  bibtex,

 Yes. bibtex is an 8-bit

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-10-05 Thread luigi scarso
On Sun, Oct 2, 2011 at 7:51 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 02.10.2011 um 16:39 schrieb Pierre-François Bonnefoi:

 Hello Aditya,

 You're the witness !

 I obtain the same document that you've obtained : look at the third page : 
 the size of the document is smaller, the text doesn't flow correctly on this 
 page.
 I've tried it on my document : no success.


 Set the global layout with “\definelayout[current][..,.=.,..]”, when this 
 layout is defined context will use it after it has used a layout for a 
 certain page (in your case for the first page).

 % engine=pdftex

 \setuppapersize[A4][A4]

 \definelayout
  [current]
  [backspace=3cm,
   topspace=1.5cm,
   leftmargin=1.3cm,
   rightmargin=0cm,
   width=15cm,
   leftmargindistance=0.2cm,
   height=middle,
   header=0cm,
   footer=1cm]

 \definelayout
  [1]
  [topspace=5.2cm,
   height=middle]

 \showframe[text][text]

 \setuptolerance[verytolerant,stretch]

 \starttext
 \dorecurse{100}{\input knuth\par}
 \stoptext

 Wolfgang
it seems ok .

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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-10-02 Thread Wolfgang Schuster

Am 02.10.2011 um 16:39 schrieb Pierre-François Bonnefoi:

 Hello Aditya,
 
 You're the witness !
 
 I obtain the same document that you've obtained : look at the third page : 
 the size of the document is smaller, the text doesn't flow correctly on this 
 page.
 I've tried it on my document : no success.


Set the global layout with “\definelayout[current][..,.=.,..]”, when this 
layout is defined context will use it after it has used a layout for a certain 
page (in your case for the first page).

% engine=pdftex

\setuppapersize[A4][A4]

\definelayout
  [current]
  [backspace=3cm,
   topspace=1.5cm,
   leftmargin=1.3cm,
   rightmargin=0cm,
   width=15cm,
   leftmargindistance=0.2cm,
   height=middle,
   header=0cm,
   footer=1cm]

\definelayout
  [1]
  [topspace=5.2cm,
   height=middle]

\showframe[text][text]

\setuptolerance[verytolerant,stretch]

\starttext
\dorecurse{100}{\input knuth\par}
\stoptext

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] [Layout] Problem with ConTeXt mkII

2011-09-29 Thread luigi scarso
2011/9/29 Pierre-François Bonnefoi bonne...@unilim.fr:
 Hello Luigi, Wolfgang,

 neither the first proposition, nor the second solves my problem, the size of 
 the text area (textheight) is modified on the first page, but not well 
 computed from the second page (it's stuck to the same value).
Hm not here; this code looks ok

%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]


\setuplayout[
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit,
header=0cm, footer=1cm,
]

\definelayout[1][
topspace=5.2cm,
height=fit,
]

\dorecurse{1}{\definelayout[\the\numexpr 1+\recurselevel][]}

\starttext
\showframe
\dorecurse{100}
{\input knuth}
\stoptext

I can send the pdf offlist
-- 
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
___

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread luigi scarso
2011/9/28 Pierre-François Bonnefoi bonne...@unilim.fr:
 Hello Wolfgang,

 Thank you for your help, but your solution required ConTeXt mkIV, and I'm 
 stuck to ConTeXt mkII.
 Sorry to learn that this bug make its path to the mkIV version.

 Could a new version of mkII could solve this bug ?
mkii is frozen.
Another patch is to force reset to all the pages of document, as for example
\dorecurse{1000}{\definelayout[\the\numexpr 1+\recurselevel][reset]}
or, if you are sure that your document has less than 500 pages
\dorecurse{500}{\definelayout[\the\numexpr 1+\recurselevel][reset]}


There are lots of warning, btw.


%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]


\setuplayout[
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit,
header=0cm, footer=1cm,
]

\definelayout[1][
topspace=5.2cm,
height=fit,
]

\dorecurse{1000}{\definelayout[\the\numexpr 1+\recurselevel][reset]}

\starttext
\dorecurse{100}{\input knuth}
\stoptext


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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread luigi scarso
On Wed, Sep 28, 2011 at 1:54 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 \definelayout expects a assignment as argument.

 \definelayout[1][topspace=5.2cm,height=fit]
 \definelayout[2][]

 \setuplayout[2][reset]

 \starttext
 \dorecurse{10}{\input knuth\par}
 \stoptext

 or

 \definelayout[current][width=12cm]

 \definelayout[1][width=12cm,topspace=5.2cm,height=fit]

 \starttext
 \dorecurse{10}{\input knuth\par}
 \stoptext

 Wolfgang
hm
http://wiki.contextgarden.net/Layout
seems to be different.
Btw, this  works without warnings

%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]


\setuplayout[
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit,
header=0cm, footer=1cm,
]

\definelayout[1][
topspace=5.2cm,
height=fit,
]


\dorecurse{1}{\definelayout[\the\numexpr 1+\recurselevel][]}

\starttext
\dorecurse{100}{\input knuth}
\stoptext


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


Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread Wolfgang Schuster

Am 28.09.2011 um 14:03 schrieb luigi scarso:

 On Wed, Sep 28, 2011 at 1:54 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:
 \definelayout expects a assignment as argument.
 
 \definelayout[1][topspace=5.2cm,height=fit]
 \definelayout[2][]
 
 \setuplayout[2][reset]
 
 \starttext
 \dorecurse{10}{\input knuth\par}
 \stoptext
 
 or
 
 \definelayout[current][width=12cm]
 
 \definelayout[1][width=12cm,topspace=5.2cm,height=fit]
 
 \starttext
 \dorecurse{10}{\input knuth\par}
 \stoptext
 
 Wolfgang
 hm
 http://wiki.contextgarden.net/Layout
 seems to be different.
 Btw, this  works without warnings
 
 %
 \setuptolerance[verytolerant,stretch]
 \setuppapersize[A4][A4]
 
 
 \setuplayout[
 backspace=3cm, topspace=1.5cm,
 rightmargin=0cm,leftmargin=1.3cm,
 width=15cm,
 leftmargindistance=0.2cm,
 height=fit,
 header=0cm, footer=1cm,
 ]
 
 \definelayout[1][
 topspace=5.2cm,
 height=fit,
 ]
 
 
 \dorecurse{1}{\definelayout[\the\numexpr 1+\recurselevel][]}
 
 \starttext
 \dorecurse{100}{\input knuth}
 \stoptext

Why so many \definelayout calls?

\definelayout[1][topspace=5.2cm,height=fit]
\definelayout[2][]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext

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] [Layout] Problem with ConTeXt mkII

2011-09-26 Thread luigi scarso
2011/9/25 Pierre-François Bonnefoi bonne...@unilim.fr:
 Hello,

 I use extensively ConTeXt for my work as a teacher.

 I run into this problem :

 I've defined the following layout for giving work for my students :

 \setuptolerance[verytolerant,stretch]
 \setuppapersize[A4][A4]

 \setuplayout[
 backspace=3cm, topspace=1.5cm,
 rightmargin=0cm,leftmargin=1.3cm,
 width=15cm,
 leftmargindistance=0.2cm,
 height=26.7cm,
 header=0cm, footer=1cm
 ]

 \definelayout[1][
 topspace=5.2cm,
 height=23cm, textheight=22cm]

 \definelayout[2][reset]

 The purpose is to give some space on the first page to put a layer with a big 
 title (it's for a document full of exercices, an example could be found at 
 http://ishtar.msi.unilim.fr/uploads/media/Reseaux_I_TD_1_2011_2012.pdf).

 But, after having the correct layout for the first page, the second page 
 gives me a reduced textheight : the text don't flow on the lower part of the 
 page.

 That could be explain as the textheight variable is not computed for the 
 second page.

 This is very annoying.

 I've found a workaround by using the same layout for the whole document and 
 put some blank lines on the first page.

 I use the following version ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 
 2011.8.31  int: english/english.

 Thank you for your help,

 Pierre-François.

Hm, usually it's better to say
height=fit
or
height=middle
(try \showlayout.)
Do you have a small complete example ?

PS
Resp. UE : P-F. Bonnefoi, http://ishtar.msi.unilim.fr/, « Fiche TD n1
» version du 12 septembre 2011, rédigé avec ConTEXt – Don’t Panic !
nice footer :-)



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

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-26 Thread Pierre-François Bonnefoi
Hello Luigi,

Thanks for the footer ;-)
But, currently, I've some difficulties to commit to the Don't panic !

I've tried the following :

%%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]

\setuplayout[ 
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit, 
header=0cm, footer=1cm, textheight=25.7cm
]

And I obtain this (with \showlayout) :

topspace1.49979cm
height  26.6962cm
header  0.0cm
headerdistance  0.0cm
textheight  25.69635cm
footer  0.99985cm
footerdistance  0.0cm
%%

BUT, when I add the following :
%%
\definelayout[1][
topspace=5.2cm,
height=fit,
textheight=23.7cm
]
\definelayout[2][reset]

For the page (1):
topspace5.19925cm
height  19.29726cm
header  0.0cm
headerdistance  0.0cm
textheight  18.2974cm
footer  0.99985cm
footerdistance  0.0cm

For the page (2) and the following :
topspace1.49979cm
height  26.6962cm
header  0.0cm
headerdistance  0.0cm
textheight  18.2974cm
footer  0.99985cm
footerdistance  0.0cm
%%

The textheight is blocked to an unexpected value : 18.3cm for the whole 
document.

I've read and re-read the manual, but I've not found my error...

Thank you for your help,
Pierre-François.

-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
83, rue d'Isle  |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE  | The Avengers.



smime.p7s
Description: S/MIME cryptographic signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] math signs in itemize

2011-09-25 Thread R. Ermers
Thanks for all your replies!

I changed the superscript e into \high{e}. There is one other math item: 
$\frac1{40}$ in the whole text.

I am using mkiv.
Until the recent update the document (90 pp.) was processed fine.

I add a minimal example below.

Thanks again for looking into this problem.

Regards,

Robert

+++

\enableregime[utf]
\setuppapersize[A4][A4]

\startsectionblockenvironment[bodypart]
\setupheader[text][location=text,state=high,strut=yes,after=\vskip-0.8em\thinrule]
\setupfootertexts[{\tfx \copyright R. Ermers}][][][{\tfx \copyright R. Ermers}]
\setuppagenumber[number=1]
\stopsectionblockenvironment

 %\setmainfont[Antykwa Poltawskiego]


\usemodule[t][lettrine]
\usemodule[t][annotation]
\usemodule[newmat] %vanwege de breuk


\newdimen\Margin
\Margin=20mm
\newdimen\Tekstbreedte
\Tekstbreedte=14cm


\setupinitial
  [state=start,
n=3,
distance=.15pc,
 font=SerifBold,
  ]
\definefontfeature
  [arabic]
  [mode=node,language=dflt,script=arab,ccmp=yes,
   init=yes,medi=yes,fina=yes,isol=yes,
   liga=yes,dlig=yes,rlig=yes,clig=yes,calt=yes,
   mark=yes,mkmk=yes,kern=yes,curs=yes]


\usemodule[t][simplefonts]
\setuplayout
[width=148mm,height=268mm\relax,
backspace=25mm,topspace=20mm,
header=12pt,headerdistance=15mm,
footer=5mm,footerdistance=8mm,
%rightmargin=\zeropoint,
location=middle,marking=off]
\setupwhitespace[halfline]

\definelayer[graphics][position=yes]
\setupbackgrounds[page][background=graphics]

\setuplanguage[nl]
[leftquote=\upperleftsinglesixquote,
 rightquote=\upperrightsingleninequote,
 leftquotation=\leftguillemot,
 rightquotation=\rightguillemot]
\mainlanguage[nl]
\hyphenation{lam-pet-stel}

\definefloat[figureonder][figure]
\definefloat[edgefigure][figure]
\setupcaption[figure][location=right]
\setupcaption[figureonder][location=bottom]
\setupcaption[edgefigure][location=bottom]
\setupfloat[edgefigure]
[leftmargindistance=-\leftmargintotal,rightmargindistance=-\rightmargintotal,
default={outer,low},criterium=.67\textwidth,numbering=no]
\setupcaptions[width=max,align=middle,style=small,number=no]




 \defineitemgroup[ongenummerd][levels=3]
\setupitemgroup[ongenummerd][1][5]
\setupitemgroup[ongenummerd][2][4]
\setupitemgroup[ongenummerd][2][3]
\defineitemgroup[genummerd][levels=3]
\setupitemgroup[genummerd][1][n]
\setupitemgroup[genummerd][2][a]
\setupitemgroup[genummerd][2][r]
\setuptolerance[horizontal,verytolerant] %hyphenation

\setuppagenumbering[state=start,alternative=doublesided,location=footer,style=bold]

\setupheadertexts
[{\getmarking[subsectionnumber]\enskip\getmarking[subsection]}]
[]
[]
[{\getmarking[sectionnumber]\enskip\getmarking[section]}]%

\setuphead[part][placehead=no]
\defineblankmethod[nobreak]{\penalty\plustenthousand}
\defineblankmethod[endgraf]{\endgraf}
\setuphead[section][grid=line]

\setupheader[style=small]

\definepagebreak[chapter][yes,empty,right]
\setupinmargin[location=both,line=1,align=normal,stack=yes,style=small,color=red,distance=5mm]

\hyphenation{ver-ant-woor-de-lijk-heid}
\setupindenting[yes,medium,first]
\setupfloats[indentnext=no]
\setupfootnotedefinition[location=left,distance=1em,headalign=flushleft]
\setupnote[footnote][textstyle=,numbercommand=,margindistance=8mm,rule=off,before=,interaction=yes,align={normal,hyphenated}]

\setupinteraction[style=]

\define[2]\QuotationCommand
 {
\setupindenting[no]
\switchtobodyfont[arial,10pt]
\textrule{#1}\blank \vfil\nobreak\penalty1\endgraf
\startcolumns#2\stopcolumns
\hspace \nobreak\penalty1000
\textrule
}

\definetypeface[braqqadocio][ss][Xsans][Braqqadocio]
\usetypescriptfile[type-gentium]

\setupbodyfont[gentium,11pt]
\definefontfeature
[default]
[default]
[protrusion=quality,expansion=quality]
\setupalign[hz,hanging]

\setuplettrine[Nindent=0pt,Lines=2,Oversize=0,TextFont=\sc]
\setuplettrine[T][Findent=0.2em,Hang=.12,TextFont=\sc]
\setuplettrine[A][Slope=0.4em,Findent=0.2em,Hang=0.12]
\setuplettrine[V][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\setuplettrine[W][Slope=-0.1em,Findent=0.2em,Hang=0.12]
\sethyphenatedurlnormal{:=?}
\sethyphenatedurlbefore{?}
\sethyphenatedurlafter {:=}
\setupbackground[frame=on]
\setupexternalfigures[directory={./../../MOP}]

\setupitemize[1][paragraph,atmargin][width=3mm,distance=5pt,itemalign=flushleft,indentnext=no]
\setupitems[align=right]
\starttext
\lettrine{E}{lk} mens wordt gevormd door zijn omgeving
\startitemize
\item het type van de
\item ideeën over
\item de koeien
\item overige factoren (zoals paarden)
\stopitemize

The text continues ... The text continues The text continues The text continues
\stoptext

Op 25 sep 2011, om 13:39 heeft Alan Braslau het volgende geschreven:

 On Sun, Sep 25, 2011 at 01:02:07PM +0200, R. Ermers wrote:
 
 But I use very, very little math, only once or twice, as in  7$^{th}$, but I 
 could solve that otherwise. 
 
 You may want to use 7\high{th}.
 
 My main problem occurs in itemization. Please have a look at this:
 
 l.741 \item h

[NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-25 Thread Pierre-François Bonnefoi
Hello,

I use extensively ConTeXt for my work as a teacher.

I run into this problem :

I've defined the following layout for giving work for my students :

\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]

\setuplayout[ 
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=26.7cm, 
header=0cm, footer=1cm
]

\definelayout[1][
topspace=5.2cm,
height=23cm, textheight=22cm]

\definelayout[2][reset]

The purpose is to give some space on the first page to put a layer with a big 
title (it's for a document full of exercices, an example could be found at 
http://ishtar.msi.unilim.fr/uploads/media/Reseaux_I_TD_1_2011_2012.pdf).

But, after having the correct layout for the first page, the second page gives 
me a reduced textheight : the text don't flow on the lower part of the page.

That could be explain as the textheight variable is not computed for the second 
page.

This is very annoying.

I've found a workaround by using the same layout for the whole document and put 
some blank lines on the first page.

I use the following version ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 
2011.8.31  int: english/english. 

Thank you for your help,
Pierre-François.

-- 
Bonnefoi Pierre-Francois|E-mail : bonne...@unilim.fr
Universite de Limoges, Laboratoire XLIM |   Tel : 06 28 18 03 38
83, rue d'Isle  |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE  | The Avengers.



smime.p7s
Description: S/MIME cryptographic signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Tracking in MKII and MKIV

2011-08-16 Thread Wolfgang Schuster

Am 16.08.2011 um 02:22 schrieb Raymond LeClair:

 I am automating the creation of books using ConTeXt with a graphic design 
 graduate student at the Rhode Island School of Design.
 
 The book cover is created using MetaPost inside a ConTeXt source file.
 
 The graphic designer tells me it is very common to specify the interletter 
 spacing, or tracking, and in fact, he considers this capability to be 
 essential.
 
 I understand that these, so called, microtypography capabilities are present 
 in pdfTeX fully, but only partially present in LuaTeX (protrusion and 
 expansion), although tracking can be set in a way using \kerncharacters[0.5] 
 in LuaTeX.
 
 However, the quality of the typesetting produced by LuaTeX is completely 
 inadequate, while the quality of the typesetting produced by pdfTeX is very 
 good.
 
 Am I miss-understanding the differences in capability between pdfTeX and 
 LuaTeX in this regard?


To place elements on a fixed position on the page you can use layers.

It’s also important to disable kerning, ligatures etc.

\definepapersize[LG1][width=9.24in,height=6.87in]
\definepapersize[LP1][width=9.49in,height=7.12in]

\setuppapersize[LG1][LP1]

\setuplayout[location=middle,marking=off]

\setuppagenumber[state=stop]

%\definefont[LabelFont][Serif sa 0.583]
\definefont[LabelFont][Serif*none at 7pt]

\definelayer[cover]

\starttext

\startlayout[page]
\startstandardmakeup

\setlayerframed
  [cover]
  [x=0.3472in,
   y=0.3472in]
  [frame=off,
   width=2.6in,
   align={right,broad},
   foregroundstyle=LabelFont]
  {\setupinterlinespace[line=10.5pt]
   \setuptolerance[space]%
   \kerncharacters[0.25]
   THIS BOOK CONTAINS 988 TWEETS POSTED TO
   TWITTER BY LADYGAGA FROM MARCH 27, 2008
   TO AUGUST 5, 2011. IT WAS PUBLISHED ON
   DEMAND ON AUGUST 14, 2011\par}

\placelayer[cover]

\stopstandardmakeup
\stoplayout

\stoptext

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] Using Luatex.

2011-07-01 Thread Wolfgang Schuster

Am 30.06.2011 um 18:21 schrieb John Culleton:

 Understood. I also found a chapter on fonts which I presume will go in a 
 manual yet to be written. In that chapter I found a \definefont command which 
 should allow me to emulate my previous use of the \font commmand. 
 In my work I frequently adjust font sizes by tiny increments to help fit text 
 better on a specific page etc. And customers sometimes want a specific 
 decorative font at a specific size. And the \font command is very direct. For 
 this reason in both LaTeX and Context I tend to revert to the primitive.

This is no reason why you have to use \definefont for each font you want to 
use, write a separate typeface for for each of them and switch to it, you can 
also select the size with this method. There are also many ways to influence 
how the lines are broken, see below for a few examples.

\definenarrower
  [adjustmargin]
  [  left=0.1mm,
   middle=0.1mm,
right=0.1mm]

\definefontfeature[default][default][expansion=yes]

\setupbodyfont[palatino,10bp]

\starttext \showframe

\input zapf

\startadjustmargin[10*right]
\input zapf
\stopadjustmargin

\start \setuptolerance[verytolerant,stretch]
\input zapf
\stop

\start \kerncharacters[0.01]
\input zapf
\stop

\start \setupalign[hz]
\input zapf
\stop

\start \switchtobodyfont[9.8bp]
\input zapf
\stop

\stoptext

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] where to place \index (again)

2011-06-26 Thread Steffen Wolfrum

Am 26.06.2011 um 14:54 schrieb Thomas A. Schmitz:

 Hi all, 
 
 I'm in the final phase of editing a scholarly book with a pretty big index. 
 What follows is less a question than an observation: no matter where I place 
 the \index command, there can always be unwanted side effects:
 
 foo\index{bar}: here, the entry may point to the page following the name, if 
 the page break falls at this position. Moreover, when this is followed by 
 punctuation or footnotes, there may be a line break between the word and the 
 punctuation/footnote mark. Placing it at the end of a long footnote is asking 
 for even more trouble, because there's a real risk that a page break may 
 occur.
 
 \index{bar}foo: the book is typeset with character protrusion, and this seems 
 to introduce additional material which can disturb line endings, so that 
 lines before such an indexed word appear to be missing one character at the 
 end.
 
 So this is what I observe. Working around this is possible, but painful - I 
 have to check every page for such bad linebreaks or misplaced punctuation 
 marks. My question then is: will it be possible, at one point in luatex 
 development, to find a more robust solution for this? This would be 
 wonderful, I think!


So do I ... Below is a minimal showing both unhappy cases.

Steffen
---


Anfang der weitergeleiteten E-Mail:

 Von: Steffen Wolfrum cont...@st.estfiles.de
 Datum: 24. Mai 2011 11:28:03 MESZ
 An: mailing list for ConTeXt users ntg-context@ntg.nl
 Betreff: where to put an \index{foo} ?
 
 ...
 
 \showframe
 
 \setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]
 
 \definetolerancemethod
 [horizontal]
 [MySpace]
 {\spaceskip3.02pt plus1.8pt minus1.0pt\relax}
 
 \setupalign[line,block,hanging]
 \setuptolerance[MySpace]
 
 \setupindenting[10pt,yes]
 
 \definepapersize[stw][width=14.7cm,height=22.3cm]
 \setuppapersize[stw][stw]
 
 \setuplayout
   [width=113mm,height=572pt,
   backspace=17mm,topspace=17mm,
   header=12pt,headerdistance=6pt,
   footer=36pt,footerdistance=0pt,
   location=middle,marking=off]
 
 
 \starttext
 
 {\em Case 1: line wrap before dot}
 
 \noindent dieses ist dabei typisch für den Bereich der Architekten- oder
 Ingenieurleistungen\index{Ingenieurleistungen}. Warum?
 
 \blank
 
 {\em Case 2: line wrap after visible space}
 
 Bei den Grünen werden neben den beiden Fraktionsvorsitzenden, Renate 
 \index{Künast}Künast und Jürgen Trittin ...
 \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
___


Re: [NTG-context] where to place \index (again)

2011-06-26 Thread Steffen Wolfrum

Am 26.06.2011 um 19:47 schrieb Hans Hagen:

 On 26-6-2011 2:54, Thomas A. Schmitz wrote:
 Hi all,
 
 I'm in the final phase of editing a scholarly book with a pretty big index. 
 What follows is less a question than an observation: no matter where I place 
 the \index command, there can always be unwanted side effects:
 
 foo\index{bar}: here, the entry may point to the page following the name, if 
 the page break falls at this position. Moreover, when this is followed by 
 punctuation or footnotes, there may be a line break between the word and the 
 punctuation/footnote mark. Placing it at the end of a long footnote is 
 asking for even more trouble, because there's a real risk that a page break 
 may occur.
 
 \index{bar}foo: the book is typeset with character protrusion, and this 
 seems to introduce additional material which can disturb line endings, so 
 that lines before such an indexed word appear to be missing one character at 
 the end.
 
 So this is what I observe. Working around this is possible, but painful - I 
 have to check every page for such bad linebreaks or misplaced punctuation 
 marks. My question then is: will it be possible, at one point in luatex 
 development, to find a more robust solution for this? This would be 
 wonderful, I think!
 
 \index is connected to the next word or when on a line on it own as in 
 \chapter{x} \index{x} emptyline text to the next paragraph
 
 concerning the character protrusion: that looks like a bug so if we can have 
 a small example demonstrating it ... esp the disappearing character is weird


Sure, the minimal example that I posted already twice shows exactly this case: 
The line before an indexed word appears to be missing one character at the end.

See Case 2 in attached example, please.

Steffen
---

\showframe

\setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]

\definetolerancemethod
[horizontal]
[MySpace]
{\spaceskip3.02pt plus1.8pt minus1.0pt\relax}

\setupalign[line,block,hanging]
\setuptolerance[MySpace]

\setupindenting[10pt,yes]

\definepapersize[stw][width=14.7cm,height=22.3cm]
\setuppapersize[stw][stw]

\setuplayout
[width=113mm,height=572pt,
backspace=17mm,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]


\starttext

{\em Case 1: line wrap before dot}

\noindent dieses ist dabei typisch für den Bereich der Architekten- oder
Ingenieurleistungen\index{Ingenieurleistungen}. Warum?

\blank

{\em Case 2: line wrap after visible space}

Bei den Grünen werden neben den beiden Fraktionsvorsitzenden, Renate 
\index{Künast}Künast und Jürgen Trittin ...
\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] bad argument #1 to 'gsub'

2011-06-23 Thread Kip Warner
Hey folks,

This code, as far as I remember, was working fine a few days ago but
now craps out with:

system   begin file Source/Handbook.tex at line 1
system   begin file Source/Environment at line 2
! LuaTeX
error ...text/tex/texmf-context/tex/context/base/data-env.lua:234: bad
argument #1 to 'gsub' (string expected, got nil).

system   tex  error on line 1 in file Source/Handbook.tex:
LuaTeX error  ...

 1   \startproduct Handbook
 2 \environment Source/Environment

/Makefile
-
CONTEXT_PRODUCT = Source/Handbook.tex
ALL_SOURCE  = $(shell find Source/ -type f -name '*.tex'
-exec echo {} \; | sed 's/ /\\ /g')
OUTPUT  = Handbook.pdf
CONTEXT_OPTIONS = --purgeresult --nonstopmode


all: $(OUTPUT) Makefile

$(OUTPUT): $(ALL_SOURCE)
context $(CONTEXT_PRODUCT) --result=$(OUTPUT) $(CONTEXT_OPTIONS)

clean:
@ context --purgeall --nonstopmode --noconsole # /dev/null
@ rm -vf $(OUTPUT) Handbook.pdf
--

/Source/Environment.tex
-

\startenvironment Environment

% Speedup typescripting considerably at the cost of using additional
memory...
\preloadtypescripts

%\usemodule[units,simplefonts]
\usemodule[units]

% Setup PDF metadata...
\setupinteraction
  [state=start,
   color=red,
   title=Handbook]

% Show the PDF bookmarks and expand to the chapter and section level...
\placebookmarks[chapter,section,subsection,subsubsection][chapter,section]
\setupinteractionscreen[option=bookmark]

\setupbackgrounds
   [rightpage]
   [background=]

% Set compression level, default is 3, so set to maximum...
\setupbackend
  [level=9]

\setupsystem
  [\c!random=\v!big]

\setuplayout
  [\c!location=\v!middle,
   \c!style=\ss,
   \c!backspace=2.5cm,
   \c!topspace=1.5cm,
   \c!width=16cm,
   \c!margindistance=.25cm,
   \c!margin=2.5cm,
   \c!height=\v!middle]

% re-defined because the default rscale=1.075 for modern doesn't 
% look right

\starttypescript [palatino]
\definetypeface [palatino] [rm] [serif] [palatino] [default]
\definetypeface [palatino] [ss] [sans]  [modern]   [default]
\definetypeface [palatino] [tt] [mono]  [modern]   [default]
\definetypeface [palatino] [mm] [math]  [palatino] [default]
\stoptypescript

\usetypescript[palatino][ec]

\setupbodyfont[palatino,11pt]
%\setupbodyfont[ubuntu,11pt][file:ubuntu-r][features=default]

\definefontsynonym[chapternumberfont][RegularBold]
\definefontsynonym[chaptertextfont]  [RegularBold]

\definebodyfont[11pt][rm][bfe=RegularBold at 30pt]
\definebodyfont[11pt][rm][bft=RegularBold at 30pt]

%\setmainfont[Ubuntu]
%\switchtobodyfont[11pt]

\definelayout
  [fullpage]
  [\c!backspace=0pt,
   \c!topspace=0pt,
   \c!width=\v!middle,
   \c!height=\v!middle,
   \c!header=0pt,
   \c!footer=0pt]

\setuppagenumbering
  [\c!alternative=\v!doublesided]

\def\startchapter#1%
{\chapter[#1]{#1}\index{#1}}

\def\startsection#1%
{\section[#1]{#1}\index{#1}}

\def\startsubsection#1%
{\subsection[#1]{#1}\index{#1}}

\def\startsubsubsection#1%
{\subsubsection[#1]{#1}\index{#1}}

\def\StartTimelineDate#1%
{\subsubsubject{\bf #1}}

\def\StopTimelineDate%
{
\crlf
}

\def\StartTimelineDocument%
{
\crlf
\startframedtext[width=broad,bottom=\vss,top=
\vss,align=right,corner=round]
\it 
}

\def\StopTimelineDocument%
{
\stopframedtext
\crlf
}

% Usage: \href{http://www.someurl.com}{Text}
\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}

\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}}

\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{#1}}}

\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}

\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}

\def\ShellExample#1
{
\blank
\startframedtext[width=broad,bottom=\vss,top=
\vss,align=right,corner=round]
\tt {#1}
\stopframedtext
\blank
}

\def\startexample
  {\blank
   \begingroup}

\def\stopexample
  {\endgroup
   \blank}

\def\startreality
  {\blank
   \page[\v!preference]
   \begingroup}

\def\stopreality
  {\relax
   \endgroup
   \blank}

\defineframedtext
  [MiniFile]
  [\c!width=25em,
   \c!offset=0.25ex,
   \c!bodyfont=7pt,
   \c!background=\v!color,
   \c!backgroundcolor=GrayColor,
   \c!backgroundoffset=.25ex,
   \c!frame=\v!off,
   \c!before=,
   \c!after=]

% Number formulae etc. using the chapter number...
\setupnumbering
[way=bychapter]

\setuppagenumbering
  [\c!location=]

\setuptolerance
  [\v!verytolerant,\v!stretch]

\setupblank
  [\v!medium]

\setupwhitespace
  [\v!medium]

\setuptyping
  [\c!blank=\v!medium]

\setupheadertexts
  [\v!margin]
  [][\hfill\pagenumber\hfill]

\setupfootertexts
  [\v!margin]
  [][{\hfill\doifnotmode{*\v!frontpart}{\getmarking[\v!chapter\v!
number]}\hfill}]

\setupheadertexts
  [\v!text]
  [][{\hfill\getmarking[\v!chapter]\hfill}]

%\setupfootertexts
%  [\v!text]
%  [][{\hfill\getmarking[\v!section]\hfill}]

\setupbodyfontenvironment
  [default]
  [em=italic

Re: [NTG-context] Problem with chem module

2011-06-18 Thread Kip Warner
On Sat, 2011-06-18 at 11:32 +0200, Hans Hagen wrote:
 minimal complete file needed as we need to see what is your font setup

Hey Hans,

The line containing the problematic chemical line is this one:
\chemical{CO_2,PLUS,H_2,PLUS,GIVES,PLUS,O_2,PLUS,CO}

The error is:
! Math error: parameter \Umathlimit_below_vgap\textstyle is not set.

My environment follows:
% The environment file is used to setup the typesetting that relate to 
%  any product, but at present, just the crew handbook...

\startenvironment Environment

\preloadtypescripts

\usemodule[units,chemic]

% Setup PDF metadata...
\setupinteraction
  [state=start,
   color=red,
   title=Handbook,
   subtitle=Bazaar revision \cldcontext{os.resultofbzr revno}]

% Show the PDF bookmarks and expand to the chapter and section level...
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteractionscreen[option=bookmark]

\setupbackgrounds
   [rightpage]
   [background=]

% Set compression level, default is 3, so set to maximum...
\setupbackend
  [level=9]

\setupsystem
  [\c!random=\v!big]

\setuplayout
  [\c!location=\v!middle,
   \c!style=\ss,
   \c!backspace=2.5cm,
   \c!topspace=1.5cm,
   \c!width=16cm,
   \c!margindistance=.25cm,
   \c!margin=2.5cm,
   \c!height=\v!middle]

% re-defined because the default rscale=1.075 for modern doesn't 
% look right

\starttypescript [palatino]
\definetypeface [palatino] [rm] [serif] [palatino] [default]
\definetypeface [palatino] [ss] [sans]  [modern]   [default]
\definetypeface [palatino] [tt] [mono]  [modern]   [default]
\definetypeface [palatino] [mm] [math]  [palatino] [default]
\stoptypescript

\usetypescript[palatino][ec]

\setupbodyfont[palatino,11pt]

\definefontsynonym[chapternumberfont][RegularBold]
\definefontsynonym[chaptertextfont]  [RegularBold]

\definebodyfont[11pt][rm][bfe=RegularBold at 30pt]
\definebodyfont[11pt][rm][bft=RegularBold at 30pt]


\definelayout
  [fullpage]
  [\c!backspace=0pt,
   \c!topspace=0pt,
   \c!width=\v!middle,
   \c!height=\v!middle,
   \c!header=0pt,
   \c!footer=0pt]

\setuppagenumbering
  [\c!alternative=\v!doublesided]

\def\startchapter#1%
{\chapter[#1]{#1}\index{#1}\bookmark{#1}}

\def\startsection#1%
{\section[#1]{#1}\index{#1}\bookmark{#1}}

\def\startsubsection#1%
{\subsection[#1]{#1}\index{#1}\bookmark{#1}}

\def\startsubsubsection#1%
{\subsubsection[#1]{#1}\index{#1}\bookmark{#1}}

\def
\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}

   

\def\ahref#1{\color[linkcolor]{\ttx
\href{#1}{#1}}}   
   

\def\fullahref#1{\color[linkcolor]{\ttx
\href{#1}{#1}}} 


\def\startexample
  {\blank
   \begingroup}

\def\stopexample
  {\endgroup
   \blank}

\def\startreality
  {\blank
   \page[\v!preference]
   \begingroup}

\def\stopreality
  {\relax
   \endgroup
   \blank}

\defineframedtext
  [MiniFile]
  [\c!width=25em,
   \c!offset=0.25ex,
   \c!bodyfont=7pt,
   \c!background=\v!color,
   \c!backgroundcolor=GrayColor,
   \c!backgroundoffset=.25ex,
   \c!frame=\v!off,
   \c!before=,
   \c!after=]

% Number formulae etc. using the chapter number...
\setupnumbering
[way=bychapter]

\setuppagenumbering
  [\c!location=]

\setuptolerance
  [\v!verytolerant,\v!stretch]

\setupblank
  [\v!medium]

\setupwhitespace
  [\v!medium]

\setuptyping
  [\c!blank=\v!medium]

\setupheadertexts
  [\v!margin]
  [][\hfill\pagenumber\hfill]

\setupfootertexts
  [\v!margin]
  [][{\hfill\doifnotmode{*\v!frontpart}{\getmarking[\v!chapter\v!
number]}\hfill}]

\setupheadertexts
  [\v!text]
  [][{\hfill\getmarking[\v!chapter]\hfill}]

\setupfootertexts
  [\v!text]
  [][{\hfill\getmarking[\v!section]\hfill}]

\setupbodyfontenvironment
  [default]
  [em=italic]

\setupsectionblock[\v!frontpart] [\c!page=\v!yes]
\setupsectionblock[\v!bodypart]  [\c!page=\v!yes]
\setupsectionblock[\v!appendix]  [\c!page=\v!yes]
\setupsectionblock[\v!frontpart] [\c!before=,\c!after=]

\setuphead
  [\v!chapter]
  [\c!command=\PlaceSection,
   \c!page=\v!yes,
   \c!before=,
   \c!header=\v!nomarking,
   \c!style=\bfd]

\setuphead
  [\v!title]
  [\c!command=\PlaceSection,
   \c!page=\v!right,
   \c!before=,
   \c!header=\v!nomarking,
   \c!style=\bfd]

\setuphead
  [\v!section]
  [\c!command=\PlaceSection,
   \c!inbetween=,
   \c!style=\bfb]

\setuphead
  [\v!subsection]
  [\c!command=\PlaceSection,
   \c!before=\blank,
   \c!style=\bfa]

\setuphead
  [\v!subsubsection]
  [\c!command=\PlaceSection,
   \c!before=\blank,
   \c!style=\bsa]

\def\PlaceSection#1#2%
  {\goodbreak
   \vbox
 {\localheadsetup
  \begstrut
  \inleftmargin{\hbox to \leftmarginwidth{\hss#1\hss}}%
  #2}}

\setupcaptions[width=14cm,align=right]


\setMPtext{text}{some test text

[NTG-context] where to put an \index{foo} ?

2011-05-24 Thread Steffen Wolfrum
Hi,

either I set an \index{foo} in front of the word it refers to, or after that 
word:
The second can lead to wrong line wrapping when a full stop follows (see Case 
1),
and the first can lead into a line ending with a space before wrapping (see 
Case 2).

:o(

Is there a third option?


Thanks,
Steffen

---

\showframe

\setupbodyfont[times,10pt]\setupinterlinespace[line=12pt]

\definetolerancemethod
 [horizontal]
 [MySpace]
 {\spaceskip3.02pt plus1.8pt minus1.0pt\relax}

\setupalign[line,block,hanging]
\setuptolerance[MySpace]

\setupindenting[10pt,yes]

\definepapersize[stw][width=14.7cm,height=22.3cm]
\setuppapersize[stw][stw]

\setuplayout
[width=113mm,height=572pt,
backspace=17mm,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]


\starttext

{\em Case 1: line wrap before dot}

\noindent dieses ist dabei typisch für den Bereich der Architekten- oder
Ingenieurleistungen\index{Ingenieurleistungen}. Warum?

\blank

{\em Case 2: line wrap after visible space}

Bei den Grünen werden neben den beiden Fraktionsvorsitzenden, Renate 
\index{Künast}Künast und Jürgen Trittin ...
\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] \type and linebreak (again)

2011-05-23 Thread Andreas Schneider
Hi,

I  stumbled  across  the  same problem that was discussed earlier this
month:  \type  doesn't break, even if there are opportunities. I tried
to follow the suggestions given in that thread, but with no success:

\setuppapersize[A4][A4]

\starttext
\setuptype[space=stretch]
%\setupalign[stretch]
%\setuptolerance[stretch]
\type{cp $SOMEVAR/some/very/very/very/long/directory/WITHFILE 
$SOMEVAR/other/long/directory}
\startitemize
\item \type{cp 
$SOMEVAR/some/very/very/very/long/directory/WITHFILE 
$SOMEVAR/other/long/directory}
\stopitemize
\stoptext


I  tried  with  and  without the \setupalign/\setuptolerance commands,
without  success;  both lines exceed the margins. (Tested with ConTeXt
ver: 2011.05.18 22:26 MKIV fmt: 2011.5.23)

Is  there anything else I can do/setup to get such long verbatim lines
broken?  I  would  also like an option for character-based line wraps;
i.e.  it  should (optionally; not in this particular case for example)
break  a word even in the middle if necessary, and without hyphenation
mark.  Especially  in  similar  cases  where  I  have a very very long
directory name, I wouldn't care if it gets broken the hard way.

Thanks in advance!

-- 
Best Regards,
Andreas

___
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] \type and linebreak (again)

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 11:59 schrieb Andreas Schneider:

 Hi,
 
 I  stumbled  across  the  same problem that was discussed earlier this
 month:  \type  doesn't break, even if there are opportunities. I tried
 to follow the suggestions given in that thread, but with no success:
 
 \setuppapersize[A4][A4]
 
 \starttext
\setuptype[space=stretch]
%\setupalign[stretch]
%\setuptolerance[stretch]
\type{cp $SOMEVAR/some/very/very/very/long/directory/WITHFILE 
 $SOMEVAR/other/long/directory}
\startitemize
\item \type{cp 
 $SOMEVAR/some/very/very/very/long/directory/WITHFILE 
 $SOMEVAR/other/long/directory}
\stopitemize
 \stoptext
 
 
 I  tried  with  and  without the \setupalign/\setuptolerance commands,
 without  success;  both lines exceed the margins. (Tested with ConTeXt
 ver: 2011.05.18 22:26 MKIV fmt: 2011.5.23)
 
 Is  there anything else I can do/setup to get such long verbatim lines
 broken?  I  would  also like an option for character-based line wraps;
 i.e.  it  should (optionally; not in this particular case for example)
 break  a word even in the middle if necessary, and without hyphenation
 mark.  Especially  in  similar  cases  where  I  have a very very long
 directory name, I wouldn't care if it gets broken the hard way.

\filename{cp \$SOMEVAR/some/very/very/very/long/directory/WITHFILE 
\$SOMEVAR/other/long/directory}

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] Line break in verbatim

2011-05-02 Thread Wolfgang Schuster

Am 02.05.2011 um 18:19 schrieb Aditya Mahajan:

 Hi,
 
 Why does verbatim text not line break properly.
 
 \setuppapersize[A5]
 \showframe
 
 \starttext
 % hyphenate is not the right word here; but illustrates the problem
 
 \type{a very very long line to see if it hyphenates or not, that can require 
 a lot oftyping phew}.
 \stoptext

You can get a better result with “\setuptype[space=stretch]” but only the 
“stretch”
keyword for \setupalign/\setuptolerance prevents a overfull line in your 
example.

 Also, it is possible to completely prevent line breaks for \type.

\setuptype[space=fixed]

You can also put the text in a \hbox with “\setuptype[command=\hbox]”.
The command key from \setuptype is special because it accepts only
box commands (\hbox, \vbox, \framed …).

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] Line break in verbatim

2011-05-02 Thread Aditya Mahajan

On Mon, 2 May 2011, Wolfgang Schuster wrote:



Am 02.05.2011 um 18:19 schrieb Aditya Mahajan:


Hi,

Why does verbatim text not line break properly.

\setuppapersize[A5]
\showframe

\starttext
% hyphenate is not the right word here; but illustrates the problem

\type{a very very long line to see if it hyphenates or not, that can require a 
lot oftyping phew}.
\stoptext


You can get a better result with “\setuptype[space=stretch]” but only the 
“stretch”
keyword for \setupalign/\setuptolerance prevents a overfull line in your 
example.


Thanks. I was looking for space=stretch (I did not want to change the 
global tolerance)



Also, it is possible to completely prevent line breaks for \type.


\setuptype[space=fixed]

You can also put the text in a \hbox with “\setuptype[command=\hbox]”.
The command key from \setuptype is special because it accepts only
box commands (\hbox, \vbox, \framed …).


I don't see why that is the case. Looking at the code, it appears that any 
option for command should work (that is not reset by \tf\tt). For example, 
command=\underbar works as expected.


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] Title in textrule

2011-04-12 Thread Aditya Mahajan

On Tue, 12 Apr 2011, Flavien Lambert wrote:


Dear all, is there a way to change the style and size of the font used to
print Instruments in the following example ? I would like something like
\bfb\ss.

\textrule[top]{Instruments}
Some artists mention the instruments that they use during the production
of their \kap{CD}. In Peter Gabriel’s \quote {Digging in the dust} he used
the {\em diembe}, {\em tama} and {\em surdu}. The information on another
song mentions the {\em doudouk}. Other \quote {unknown} instruments are
used on his \kap{cd} \quote {Passion}.
\textrule


From pack-rul,mkiv

%D \startbuffer
%D \setuptextrules
%D   [width=90pt,distance=12pt,rulecolor=blue,
%Dbodyfont=small,style=\sc,color=red]
%D
%D \starttextrule{Ship Building Tools}
%D   \nl \setuptolerance[tolerant] \input materie
%D \stoptextrule
%D \stopbuffer
%D
%D \bgroup \typebuffer \getbuffer \egroup
%D
%D \startbuffer
%D \setuptextrules
%D   [location=inmargin,
%Dbodyfont=small,style=slantedbold]
%D
%D \starttextrule{wonderful}
%D   \input tufte
%D \stoptextrule
%D \stopbuffer
%D
%D \bgroup \typebuffer \getbuffer \egroup

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] Title in textrule

2011-04-12 Thread Flavien Lambert
Thanks!

2011/4/12 Aditya Mahajan adit...@umich.edu

 On Tue, 12 Apr 2011, Flavien Lambert wrote:

  Dear all, is there a way to change the style and size of the font used to
 print Instruments in the following example ? I would like something like
 \bfb\ss.

 \textrule[top]{Instruments}
 Some artists mention the instruments that they use during the production
 of their \kap{CD}. In Peter Gabriel’s \quote {Digging in the dust} he used
 the {\em diembe}, {\em tama} and {\em surdu}. The information on another
 song mentions the {\em doudouk}. Other \quote {unknown} instruments are
 used on his \kap{cd} \quote {Passion}.
 \textrule


 From pack-rul,mkiv

 %D \startbuffer
 %D \setuptextrules
 %D   [width=90pt,distance=12pt,rulecolor=blue,
 %Dbodyfont=small,style=\sc,color=red]
 %D
 %D \starttextrule{Ship Building Tools}
 %D   \nl \setuptolerance[tolerant] \input materie
 %D \stoptextrule
 %D \stopbuffer
 %D
 %D \bgroup \typebuffer \getbuffer \egroup
 %D
 %D \startbuffer
 %D \setuptextrules
 %D   [location=inmargin,
 %Dbodyfont=small,style=slantedbold]
 %D
 %D \starttextrule{wonderful}
 %D   \input tufte
 %D \stoptextrule
 %D \stopbuffer
 %D
 %D \bgroup \typebuffer \getbuffer \egroup

 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

 ___




-- 
Flavien.

Quantum objects are completely crazy but, at least, they are all crazy in
the same way. R.P. Feynman.
___
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] LinearShade trouble

2011-03-30 Thread Kumar Appaiah
Dear Hans,

On Wed, Mar 30, 2011 at 08:48:15AM +0200, Hans Hagen wrote:
 I have been having troubles with LinearShade with ConTeXt for quite a
 while, even with the latest version.
 
 Steps to reproduce:
 There is a test.tex at the bottom of this e-mail:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580447#5
 
 Copy paste it into the ConTeXt Live interface at the ConTeXt
 Garden. Result is blank.
 
 best post the minimal example here and tell us what version you run;
 the benchmark is context mkiv as of today (not much has changed in
 mkii anyway)

Thanks. Here's the code:

file
\setuppapersize[S6][S6]
\setuppagenumbering[state=stop]
\switchtobodyfont[modern,20pt]
\setupcolors[state=start]
\setupbackgrounds[page][background=color,backgroundcolor=darkblue]
\startcolor[white]
\setuptolerance[verytolerant,stretch] 
\definecolor[a][r=0,g=0,b=1]
\definecolor[b][r=0,g=0,b=0.05]

\startuniqueMPgraphic{LinearShade}
path p ;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
linear_shade(p,6,\MPcolor{a},\MPcolor{b}) ;
\stopuniqueMPgraphic

\defineoverlay[shaded][\useMPgraphic{LinearShade}]

\setupbackgrounds[page][background={shaded}]
\starttext

Here's my first presentation in \CONTEXT!

Isn't it amazing?

\stoptext
/file

This is from an old ConTeXt example I copied from your documentation
(I don't recall exactly).

Thanks!

Kumar
-- 
Kumar Appaiah
___
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] change interwordspace twice

2011-03-12 Thread Steffen Wolfrum

Am 11.03.2011 um 19:56 schrieb Wolfgang Schuster:

 
 Am 11.03.2011 um 12:36 schrieb Steffen Wolfrum:
 
 Hi,
 
 one time it works, the second it doesn't:
 
 \starttext
 
 \interwordspace 20.7pt Big Space
 
 \par
 
 \interwordspace 2.7pt Big Space
 
 \par
 
 \interwordspace 20.7pt Big Space
 
 \stoptext
 
 Does someone can explain how and when interwordspace is successfully set?
 
 That’s the only context way to change it:
 
 \starttext
 
 text text text
 
 \setuptolerance[space]
 
 text text text text
 
 \stoptext


Is there only one space or s is possible to set more fine-tuned values?

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
___


Re: [NTG-context] change interwordspace twice

2011-03-12 Thread Andreas Harder

Am 12.03.2011 um 10:01 schrieb Steffen Wolfrum:

 
 Am 11.03.2011 um 19:56 schrieb Wolfgang Schuster:
 
 
 Am 11.03.2011 um 12:36 schrieb Steffen Wolfrum:
 
 Hi,
 
 one time it works, the second it doesn't:
 
 \starttext
 
 \interwordspace 20.7pt Big Space
 
 \par
 
 \interwordspace 2.7pt Big Space
 
 \par
 
 \interwordspace 20.7pt Big Space
 
 \stoptext
 
 Does someone can explain how and when interwordspace is successfully set?
 
 That’s the only context way to change it:
 
 \starttext
 
 text text text
 
 \setuptolerance[space]
 
 text text text text
 
 \stoptext
 
 
 Is there only one space or s is possible to set more fine-tuned values?

You can define your own space.

\definetolerancemethod
  [horizontal]
  [smallspace]
  {\spaceskip.2em plus.1em minus.05em\relax}

\definetolerancemethod
  [horizontal]
  [mediumspace]
  {\spaceskip.33em plus.25em minus.1em\relax}

\definetolerancemethod
  [horizontal]
  [bigspace]
  {\spaceskip.5em plus.25em minus.25em\relax}

\starttext  \showframe[text]
  \start \setuptolerance[smallspace]  \input tufte \par \stop \blank
  \start \setuptolerance[mediumspace] \input tufte \par \stop \blank
  \start \setuptolerance[bigspace]\input tufte \par \stop \blank
  % default:
  \input tufte 
\stoptext

Greeting
Andreas
___
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] change interwordspace twice

2011-03-11 Thread Wolfgang Schuster

Am 11.03.2011 um 12:36 schrieb Steffen Wolfrum:

 Hi,
 
 one time it works, the second it doesn't:
 
 \starttext
 
 \interwordspace 20.7pt Big Space
 
 \par
 
 \interwordspace 2.7pt Big Space
 
 \par
 
 \interwordspace 20.7pt Big Space
 
 \stoptext
 
 Does someone can explain how and when interwordspace is successfully set?

That’s the only context way to change it:

\starttext

text text text

\setuptolerance[space]

text text text text

\stoptext

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] structure head alignment nullifies spaceskip

2011-03-06 Thread Wolfgang Schuster

Am 06.03.2011 um 17:33 schrieb Philipp Gesang:

 Hi,
 
 is there a way to have \spaceskip working in a centered section
 head?
 
 I have something similar to these exaggerated values:
 
 ··8·
 
 \def\broadspacing{%
  \dontleavehmode%
  \spaceskip 1em plus .5em minus .5em%
 }
 \starttext
 
 \setuphead[section][%
  style={\WORD\broadspacing},
 ]
 
 % This one is left aligned but correctly spaced.
 \section{test test test}
 
 \setuphead[section][%
  style={\WORD\broadspacing},
  align=middle,
 ]
 
 % This one is centered but spaced too tightly.
 \section{test test test}
 
 \stoptext
 
 ··8·
 
 As you can see, adding “align=middle” to the section setup leads
 to the \spaceskip setting being ignored. Any idea how to space my
 capitalized words in section heads?

\setuphead
  [section]
  [  style=WORD,
 align=middle,
   textcommand={\setuptolerance[space]}]

Maybe better is “textcommand=\SectionCommand” with

\define[1]\SectionCommand
  {\setuptolerance[space]#1}

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] structure head alignment nullifies spaceskip

2011-03-06 Thread Philipp Gesang
On 2011-03-06 21:15:44, Wolfgang Schuster wrote:
 
 Am 06.03.2011 um 17:33 schrieb Philipp Gesang:
 
  Hi,
  
  is there a way to have \spaceskip working in a centered section
  head?
  
  I have something similar to these exaggerated values:
  
  ··8·
  
  \def\broadspacing{%
   \dontleavehmode%
   \spaceskip 1em plus .5em minus .5em%
  }
  \starttext
  
  \setuphead[section][%
   style={\WORD\broadspacing},
  ]
  
  % This one is left aligned but correctly spaced.
  \section{test test test}
  
  \setuphead[section][%
   style={\WORD\broadspacing},
   align=middle,
  ]
  
  % This one is centered but spaced too tightly.
  \section{test test test}
  
  \stoptext
  
  ··8·
  
  As you can see, adding “align=middle” to the section setup leads
  to the \spaceskip setting being ignored. Any idea how to space my
  capitalized words in section heads?
 
 \setuphead
   [section]
   [  style=WORD,
  align=middle,
textcommand={\setuptolerance[space]}]
 
 Maybe better is “textcommand=\SectionCommand” with
 
 \define[1]\SectionCommand
   {\setuptolerance[space]#1}
 
 Wolfgang

Thanks a lot, Wolfgang, I hadn’t thought of “textcommand”.
Headings work (and look) like a charm now.

Best regards, Philipp



-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpy1v5A9wEBy.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Justify monospaced text

2011-03-01 Thread Wolfgang Schuster

Am 02.03.2011 um 04:40 schrieb Tom:

 The following code seems to ignore both justification (to the extent that a
 mono-spaced font could be justified) and the right margin. I recall seeing
 something that deals with this problem somewhere but can't recall where.

\setupbodyfont[mono]
\setuptolerance[space]
\showframe
\starttext
Janet had gone away to get the bath ready, when my aunt, to my great alarm,
became in one moment rigid with indignation, and had hardly voice to cry
out, {\quotation Janet! Donkeys!}
Upon which, Janet came running up the stairs as if the house were in flames,
darted out on a little piece of green in front, and warned off two
saddle-donkeys, lady-ridden, that had presumed to set hoof upon it; while my
aunt, rushing out of the house, seized the bridle of a third animal laden
with a bestriding child, turned him, led him forth from those sacred
precincts, and boxed the ears of the unlucky urchin in attendance who had
dared to profane that hallowed ground.
\stoptext

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] [OT] Public Fonts for Minority Languages of Russia

2011-01-05 Thread Philipp Gesang
-narrow]
  \definefontsynonym [ParatypeSansNarrow-Regular] [\s!name:PTSans-Narrow] 
[\s!features=\s!default]
  \definefontsynonym [ParatypeSansNarrow-Bold][\s!name:PTSans-NarrowBold] 
[\s!features=\s!default]
\stoptypescript

\starttypescript [\s!sans] [paratype-narrow]
  \setups[\s!font:\s!fallback:\s!sans]
  \definefontsynonym [\s!Sans] [ParatypeSansNarrow-Regular] 
[\s!features=\s!default]
  \definefontsynonym [\s!SansBold] [ParatypeSansNarrow-Bold]
[\s!features=\s!default]
\stoptypescript

\starttypescript [paratype]
  \definetypeface [paratype] [rm] [\s!serif] [paratype] [\s!default]
  \definetypeface [paratype] [ss] [\s!sans]  [paratype] [\s!default]
  \definetypeface [paratype] [tt] [\s!mono]  [modern]   [\s!default]
  \definetypeface [paratype] [mm] [\s!math]  [modern]   [\s!default]
  \quittypescriptscanning
\stoptypescript

\starttypescript [paratype-caption]
  \definetypeface [paratype-caption] [rm] [\s!serif] [paratype-caption] 
[\s!default]
  \definetypeface [paratype-caption] [ss] [\s!sans]  [paratype-caption] 
[\s!default]
  \definetypeface [paratype-caption] [tt] [\s!mono]  [modern]   
[\s!default]
  \definetypeface [paratype-caption] [mm] [\s!math]  [modern]   
[\s!default]
  \quittypescriptscanning
\stoptypescript

\starttypescript [paratype-narrow]
  \definetypeface [paratype-narrow] [rm] [\s!serif] [paratype]
[\s!default]
  \definetypeface [paratype-narrow] [ss] [\s!sans]  [paratype-narrow] 
[\s!default]
  \definetypeface [paratype-narrow] [tt] [\s!mono]  [modern]  
[\s!default]
  \definetypeface [paratype-narrow] [mm] [\s!math]  [modern]  
[\s!default]
  \quittypescriptscanning
\stoptypescript

\stoptypescriptcollection
\def\blindtext
 {В~ворота гостиницы губернского города NN въехала довольно
  красивая рессорная небольшая бричка, в~какой ездят холостяки:
  отставные подполковники, штабс-капитаны, помещики, имеющие
  около сотни душ крестьян, — словом, все те, которых называют
  господами средней руки.  В~бричке сидел господин, не красавец,
  но и~не дурной наружности, ни слишком толст, ни слишком тонок;
  нельзя сказать, чтобы стар, однако ж~и~не так чтобы слишком
  молод.}

\usetypescriptfile[type-paratype]

\usetypescript[paratype]
\usetypescript[paratype-caption]
\usetypescript[paratype-narrow]
\setupbodyfont[paratype,12pt]

\mainlanguage[ru] \setbreakpoints[compound]
\setuptolerance[horizontal,tolerant]

\definefontfeature[cpsp][default][cpsp=yes,mode=node]
\def\heading{\addff{cpsp}\WORD}
\setuphead[section][style=\heading]

\starttext

\section{Roman}
{\rm%
 {\blindtext}\endgraf
  {\it\blindtext}\endgraf
  {\bf\blindtext}\endgraf
  {\bi\blindtext}\endgraf
}

\section{Sans}
{\ss%
 {\blindtext}\endgraf
  {\it\blindtext}\endgraf
  {\bf\blindtext}\endgraf
  {\bi\blindtext}\endgraf
}

\section{Serif Caption}
{\setupbodyfont[paratype-caption,10pt]%
 {\blindtext}\endgraf
  {\it\blindtext}\endgraf
}

\section{Sans Caption}
{\setupbodyfont[paratype-caption,10pt] \ss%
 {\blindtext}\endgraf
  {\bf\blindtext}\endgraf
}

\section{Sans Narrow}
{\setupbodyfont[paratype-narrow,12pt] \ss%
 {\blindtext}\endgraf
  {\bf\blindtext}\endgraf
}

\stoptext



pgpjc7SCH4Ykm.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] [ac...@jander.de: Re: startcolumns: text runs into footer]

2010-12-20 Thread achim

Hi at all,
thank you for the replies. Im still not fully happy, but i get ahead.
\setuplayout[lines=40] seems to do the job and holds the text inside the area.

Zitat von Taco Hoekwater t...@elvenkind.com:



\setuplayout[lines=40]


And you need

  \setuplayout[grid=yes] % or grid=tolerant

to get \setupalign[line] to work.



With grid=yes or grid=tolerant the spacing between the paragraphs goes to one
full line. Thats too much. What i want to achieve is to have each 
column spaced
to the full height, but i need no grid inbetween. I only want to have 
the first

and last line one the same height, and the paragraphs been spaced in the
smallest possible amount.


\showframe

\setuptolerance[horizontal, verytolerant]

\newskip\Hugeskip
%\Hugeskip = 1em plus 8em minus 1em
\Hugeskip = 4pt plus 16pt minus 0pt

\definevspacingamount[Huge][\Hugeskip][\Hugeskip]   % for \blank
\definewhitespacemethod[Notsohuge]{\ctxparskip.5\Hugeskip}  % for
\setupwhitespace

\setupalign[line]
\setuplayout[grid=tolerant]
\setuplayout[lines=41]

%\showgrid
\starttext


\startcolumns[n=2, align=yes]

\clubpenalty1
\widowpenalty1

\setupwhitespace[Notsohuge]

%\setuplayout[grid=tolerant]

\dorecurse{10}{\input knuth}

\stopcolumns

\stoptext



Thanks,
Achim


___
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] [ac...@jander.de: Re: startcolumns: text runs into footer]

2010-12-20 Thread achim

Hi again,
I played around a litte, and i'm coming nearer to the result i desire.
The example:

\showframe

\setuptolerance[horizontal, verytolerant]

\definewhitespacemethod[Test]{\ctxparskip 0pt plus4pt minus0pt}

\setupalign[line]
%\setuplayout[grid=yes]
\setuplayout[lines=41]

%\showgrid
\starttext


\startcolumns[n=2, align=yes, balance=yes]

\clubpenalty1
\widowpenalty1

\setupwhitespace[Test, flexible]

%\setuplayout[grid=tolerant]

\dorecurse{10}{\input knuth}

\stopcolumns

\stoptext

is a big step in the right direction. Pages 1  2 are perfect now, but 
I wonder,

why on page 3 there is such a big space in the right column. (the space is
needed to adjust the columns, but they are not really exact adjusted??)
Are there any ideas for improvement?

Thanks,
Achim



Zitat von ac...@jander.de:


Hi at all,
thank you for the replies. Im still not fully happy, but i get ahead.
\setuplayout[lines=40] seems to do the job and holds the text inside 
the area.


Zitat von Taco Hoekwater t...@elvenkind.com:



\setuplayout[lines=40]


And you need

  \setuplayout[grid=yes] % or grid=tolerant

to get \setupalign[line] to work.



With grid=yes or grid=tolerant the spacing between the paragraphs goes to one
full line. Thats too much. What i want to achieve is to have each 
column spaced
to the full height, but i need no grid inbetween. I only want to have 
the first

and last line one the same height, and the paragraphs been spaced in the
smallest possible amount.


\showframe

\setuptolerance[horizontal, verytolerant]

\newskip\Hugeskip
%\Hugeskip = 1em plus 8em minus 1em
\Hugeskip = 4pt plus 16pt minus 0pt

\definevspacingamount[Huge][\Hugeskip][\Hugeskip]   % for \blank
\definewhitespacemethod[Notsohuge]{\ctxparskip.5\Hugeskip}  % for
\setupwhitespace

\setupalign[line]
\setuplayout[grid=tolerant]
\setuplayout[lines=41]

%\showgrid
\starttext


\startcolumns[n=2, align=yes]

\clubpenalty1
\widowpenalty1

\setupwhitespace[Notsohuge]

%\setuplayout[grid=tolerant]

\dorecurse{10}{\input knuth}

\stopcolumns

\stoptext



Thanks,
Achim


___
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] problem with setupwhitespace

2010-12-18 Thread Achim Jander

Hello,
I am trying to setup a layout for a book. Its very simple, consisting 
only of paragraphs. Regularly, there should be no space between them,
but to force the pages getting filled there may be a small space. I 
cannot figure out how to set it up.

In the mailing list I found the sample
\setupwhitespace[3pt plus 2pt minus 1pt]

but in fact, that seems to have no effect, the page ist not filled. The 
Reference-Manual doesnt mention this form, but states that there is some 
stretchability.

How can I define the stretchability?
My simple Example:


\definepapersize [NomosLexSozA] [width=125mm, height=210mm]

\setuppapersize [NomosLexSozA] [A4]

\setuplayout[

header=0cm,footer=0cm,

backspace=2.54cm,topspace=1.5cm,

width=middle,height=middle,

location=middle,marking=on,]

\showframe

\setuppagenumbering[alternative=doublesided]

\setupbodyfont[rm,7.5pt,serif]

\setupinterlinespace[line=8pt]

\setupbodyfontenvironment[default][em=italic]


\setupwhitespace[3pt plus 2pt minus 1pt]

%\setupwhitespace[line]

%\setupwhitespace[medium]

%\setupwhitespace[big]


\setuptolerance[horizontal, verytolerant, stretch]

\setuptolerance[vertical, verystrict]

\starttext

\dorecurse{40} {\input knuth}

\stoptext


with big or medium, it seems to work, but that is to much whitespace for 
my layout? Can anyone give me a hint?


Thanks,
Achim
___
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] Bug against minimals

2010-12-16 Thread Xan

Hi,

With latest stable minimals version I don't get correct output of the 
metapost article (I attach it)
But with the texlive package with ubuntu 8.04 (and only with 8.04; with 
10.10 I have the same problem), it works. I think it's a bug


Thanks,
Xan.


PS: Please Ccme
% Choose a font
\setupbodyfont [cmr,11pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]

% Page number
\setuppagenumbering [location={footer}]

% Paper size
\setuppapersize [A4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
\setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm]


% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]

% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfb}, header=nomarking]
\setuphead[subsection][style={\bfa}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
%\usemodule[bib]
%\usemodule[bibltx]
%\setupbibtex[database=funcions,sort=author]
%\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=all]%
%\setupheadtext[ca][pubs=Referències]
%\setuppublicationlist[authoretallimit=3]
%\setuppublicationlist[authoretaltext={\it\  et al.}]
%\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]

% Vertical spaces between paragraphs
\setupwhitespace[none]

%Itemize
\setupitemize[each][identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]

% Mathematical packets
%\usemodule[newmat]

% Modules
\usemodule[tikz]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]

% AMSTHM
\defineenumeration
  [exercici]
  [text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]
% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]

% Heads and footers
\setupfootertexts[{\tfx \pagenumber/\lastpage}]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx IES Binissalem. Dpt. Orientació}][{\tfx 3r DIV}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{subs-ti-tueix}
\hyphenation{pro-ble-ma}
\hyphenation{Ma-the-ma-tics}
\hyphenation{Ma-the-ma-ti-cal}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{va-ria-bles}

% em = bf italic
\setupbodyfontenvironment[default][em=italic]

% underline
\setupunderbar[alternative=b]

% Virgueries
%% Quadres de text
%% Per usar-ho: 
\startframedtext[width=\textwidth,background=QuadreBasic,frame=off]

\startuseMPgraphic{QuadreBasic}
  picture p ; numeric w, h, o ;
  p := textext.rt(\MPstring{QuadreBasic}) ;
  w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ;
  p := p shifted (2o,h-ypart center p) ; draw p ;
  drawoptions (withpen pencircle scaled 2pt withcolor .625red) ;
  draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ;
  draw boundingbox p ;
  draw (0,0) -- (0,-5pt) ;
  draw (-5pt,0) -- (0,0);
  draw (w, h) -- (w, h+5pt);
  draw (w,h) -- (w+5pt,h);
  setbounds currentpicture to unitsquare xyscaled(w,h) ;
\stopuseMPgraphic

\defineoverlay[QuadreBasic][\useMPgraphic{QuadreBasic}]
% interface=en output=pdftex
% Regime
\enableregime[utf]

\input capcalera.contex

\setupheadertexts[{\tfx 3r DIV. T4 - MAT}][{\tfx {\bf FULL 1}. \currentdate}]

% Start the text
\starttext

\bigskip
\startframedtext[width=broad, location=middle]
\startalignment[middle]
{\sca Full de problemes d'equacions de 1r grau}
\stopalignment
\stopframedtext

\section{Traducció d'enunciats}

% Pàgina 132 del manual de de MetaFun
\startuniqueMPgraphic{lions a}
path p ; p := fullsquare
xyscaled (\overlaywidth,\overlayheight) superellipsed .85 ;
pickup pencircle scaled 1pt ;
fill p withcolor .850white ; draw p withcolor .625yellow ;
\stopuniqueMPgraphic
\defineoverlay[lions][\uniqueMPgraphic{lions a}]

\def\processword#1%
{\noindent\framed[frame=off,background=lions

[NTG-context] Typescript Bodoni Old Fashion

2010-12-03 Thread Philipp Gesang
{%
  \language[pl]
  Jeżeli możemy mówić o~tym, co zaszło, i o tym, co nie zaszło,
  jakim sposobem moglibyśmy nie mówić o~tym, co zajść w~ogóle
  nie może?%
}

\def\mayr{%
  \language[en]
  Analysis differs from reduction by not claiming that the
  components of a system, revealed by analysis, provide complete
  information on all  the properties of a system, because
  analysis does not supply a full description of the interactions
  among the components of a system.  In spite of its being a
  highly heuristic method for the study of complex systems, it
  would be an error to refer to analysis as reduction.%
}

\startbuffer[jenomnadbrnemne]
  Na Capri sněžilo
  vlci ohrožují turecké vesnice
  Akropolis pod sněhem
  v~ulicích New Yorku půlmetrové závěje
  a setkání dvou cyklonů
  způsobilo sněhový uragán
  v~Moldávii

  Jenom nad Brnem ne
  Tam je pevná střecha z~popílku

  Závěje na té střeše
  trčí do výše jednoho kilometru
  a dokonce
  se ani nepřesouvají
\stopbuffer

\def\kundera{%
  \language[cz]
  \blank[line]
  \WORDS{Jenom nad Brnem ne}
  \blank[line]
  \startlines
  \getbuffer[jenomnadbrnemne]
  \stoplines
}

\def\partest[#1]{%
  \section{Ludvík Kundera napsal}
  {#1\kundera\par}

  \section{Ernst Mayr wrote}
  {#1\mayr\par}

  \section{Stanisław Lem napisał}
  {#1\lem \lem \lem}\par
}

\definecolumnset[two][n=2] \mainlanguage[en] \setuptolerance[horizontal,tolerant]

\setuphead[section][%
  number=yes,
  style=\tf,
  numberstyle=\bf,
  textstyle=\sbo,
]
\starttext

%\addff{smallcaps}
%\addff{allalts}
%\addff{denoms}
%\addff{numerator}
%\addff{superscrp}
%\addff{diphthong}

\testing[\rm]
\testing[\it]
\testing[\sc]
\testing[\sbo]
\testing[\bf]
\testing[\sbi]
\testing[\bi]

\page
\partest[\rm]
\partest[\it]
\partest[\sc]
\partest[\sbo]
\partest[\bf]
\partest[\sbi]
\partest[\bi]

\stoptext



pgpyl80IrhUp9.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] End of page orphan/widow control

2010-11-29 Thread Honza Hejzl
Hello,
could anyone give me an advice how to manage text flow (in terms of
orphan/widow control with controlling of flushbottom raggedbottom effects?).
I am desperate in fact ConTeXt is a great tool but I can't reach effective
way how to control these things. (And be sure I have spent many hours above
manual and wiki… but maybe I am not so technically capable.)

In case I have longer text with many quotations, one-line paragraphs and
direct speech (typically any novel), I am able to reach a stage without
orphans and widows but context do what it want with an end of every
problematic page – it simply shrinks it –1 line. I need to be able to create
simply nice results in a basic-typography point of view of good novel
typesetting (without orphans, widows, on grid and every page the same
height).

Sure I know about \setuptolerance setting but it has (imho) very poor effect
for my purposes. (Sure, maybe I am not using it properly.)

Here is my result:
http://dl.dropbox.com/u/4393365/kresadlo.pdf

and source file:
http://dl.dropbox.com/u/4393365/kresadlo.tex

…see pages 3 and 4, please. This is what I mean and what I wish to manage in
a simple way.

Thank you

Jan Hejzl
___
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] Errors with MacTeX/TeXLive installation

2010-08-02 Thread Grant W. Petty
I am trying out ConTeXt for the very first time, hoping to assess
whether it's worth re-tooling from LaTeX for authoring scientific
textbooks.

I am using a fresh installation of TeX Live 2009 (installed via MacTex
on a MacBook running Mac OS X 10.6), and I'm trying to process a
sample file I downloaded from one of the ConTeXt web pages.
Unfortunately, the process generates a couple of cryptic warnings
(Lua binary way out of date)  and a fatal error (can't find
...dcc/formats/cont-en.luc).  I wonder if someone can examine the
input file and the log file (both attached) to help me understand what
I have to do to clean things up and, if possible, why the TeX Live
ConTeXt configuration doesn't work correctly right out of the box to
begin with.

  Thanks,
  Grant
% interface=en output=pdftex

% Choose a font
\usetypescript [palatino][\defaultencoding]
\setupbodyfont [palatino,12pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
\language [en]

% No page number
\setuppagenumbering [state=off]

% White space between paragraphs
\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% On the grid please
\setuplayout
  [grid=yes,
   footer=0.5\footerheight,
   header=0.5\headerheight]

% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
\setupinteraction [state=start, color=lightBlue]
\setupurl[style=small, space=yes]

% Enumerate the URLs
\useURL [pragma] [{www.pragma-ade.com}]
\useURL [contextgarden] [{contextgarden.net}]
\useURL [ntg-context] [{www.ntg.nl/mailman/listinfo/ntg-context}]
\useURL [literatesolutions] 
[{literatesolutions.com/Members/guravage/tpj/askNelly/context.tex}]
\useURL [mge] [{mailto:i...@literatesolutions.com}][][\tfx 
i...@literatesolutions.com]

\starttext

\midaligned{\tfb Ask Nelly: What is ConTeXt?}

\midaligned{\tfx Michael Guravage}

\ConTeXt\ is a macro package for \TeX\ written by Hans Hagen and Ton
Otten of Pragma ADE in the Netherlands. Like \LaTeX\, \ConTeXt\ is
applicable to most typesetting needs.  Unlike \LaTeX\, \ConTeXt\ is
monolithic, by which I mean it is designed, implemented, and
distributed as a whole. Its completeness is evident in the breath of
its concepts and consistency of its syntax.

Forged in the crucible of the educational publishing world, \ConTeXt\
has grown to accommodate the most advanced and demanding typesetting
needs. The practical upshot of this is that if you need a particular
feature, it probably is already implemented. A few of its most noteworthy
features include:

\startitemize[packed,n]
  \item multiple language interfaces including: English, German, and Dutch
  \item a font naming scheme that allows you mix and match different typefaces
  \item a native XML parser
  \item a native XML-FO support
  \item native MathML support
  \item integrated graphics with \MetaPost
  \item full color support in both {\sc rgb} or {\sc cmyk}
  \item direct access to and control over the interactive capabilities of PDF
\stopitemize

I would not say that \ConTeXt\ has a steep learning curve but rather a
long one.  Thankfully, there is sufficient documentation, and a
vibrant development community to offer support.

Visit the Pragma website at \from[pragma] to learn more about
\ConTeXt.  There you will find both examples to whet your appetite and
manuals to answer your questions. I recommend you start by reading the
introductory `\ConTeXt\ an Excursion' and then move onto the full
\ConTeXt\ manual.  You will find additional examples of, discussions
about, and documentation for \ConTeXt\ on the community wiki at:
\from[contextgarden].  Finally, you can subscribe to the \ConTeXt\
mailing list at: \from[ntg-context].

Michael Guravage is a consultant who specializes in content management
and document engineering. He can be reached at \from[mge].

\stoptext

% finis


context.log
Description: Binary data
___
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] How do I stretch text in header?

2010-06-29 Thread Wolfgang Schuster

Am 29.06.10 13:07, schrieb Oliver Heins:

Hello Wolfgang,

Wolfgang Schusterschuster.wolfg...@googlemail.com  writes:

   

Am 27.06.10 13:02, schrieb Oliver Heins:
 

I want to typeset the section title in stretched smallcaps in the
header.  This is what I came up with, but it won't print the section
title, but instead the phrase »section«:

   

Do you use Mark 2 or Mark 4?
 

Mark 4.  I found a reasonable working solution:

\definecharacterkerning[extra]
\setupcharacterkerning[extra][factor=0.25]

\setupheader[]
\setupheadertexts[\setups{header}]
\startsetups[header]
   \start
 \setcharacterkerning[extra]
 \hfill {\sc{\lowercased{\getmarking[section]}}}\hfill
   \stop
\stopsetups
   


You can save a few lines (the second variant gives a bigger spaces):

\setupheadertexts[\WORDS{\tfx\kerncharacters[0.25]\getmarking[section]}]
%\setupheadertexts[{\setuptolerance[space]\WORDS{\tfx\kerncharacters[0.25]\getmarking[section]}}]

\starttext

\section{This is a Test!}

\input knuth

\stoptext

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 problem

2010-05-11 Thread Peter Rolf
Hi,

I have problems with a figure in a multicolumn layout (3 columns).
The graphic is around two columns wide and the caption text should be
displayed beside the graphic (one column wide).
Sadly the figure is shifted to the right and the width of the caption is
not considered (overwritten by normal text). I have tried several
things, but no success.

Test file and resulting pdf are attached.

Peter


MTXrun | current version: 2010.05.08 13:33
This is LuaTeX, Version beta-0.60.1-2010042809 (rev 3657)

\switchtobodyfont[small]
\setuptolerance[tolerant,stretch]


\definecolumnset[threecolumns][n=3]

\setupcolumnset[threecolumns][1,2][balance=yes]

\definecolumnsetspan[spantwo][n=2]
\definecolumnsetspan[spanthree][n=3]

\definecolumnsethsize{threecolumns}{1}{1}\One
\definecolumnsethsize{threecolumns}{1}{2}\Two
\definecolumnsethsize{threecolumns}{1}{3}\Three


\starttext
\showframe
\startcolumnset[threecolumns]

\setupcaption[figure][location={high,right},width=\dimexpr\One]
%\setupfloat[figure][location=left]

\null
\page[yes]

%\startcolumnsetspan[spanthree]
\placefigure[right][]
{\input ward}%
{\externalfigure[cow.pdf][width=.95\dimexpr\Two,frame=on]}
%\stopcolumnsetspan

\input tufte\column
\input knuth\column
\input zapf



\stopcolumnset
\stoptext


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


[NTG-context] Multiple pleas for help (long)

2010-04-26 Thread Scott Steele

\definetypeface[jenson][rm][Xserif][Adobe Jenson Pro]
\setupbodyfont[jenson, 12pt]

% Emoticons
%——
\useexternalfigure[frowny][Frowny][factor=8,type=pdf]
\def\Frowny{\hbox{\externalfigure[frowny]}}

\useexternalfigure[smiley][Smiley][factor=8,type=pdf]
\def\Smiley{\hbox{\externalfigure[smiley]}}

\useexternalfigure[slashy][Slashy][factor=8,type=pdf]
\def\Slashy{\hbox{\externalfigure[slashy]}}


\setuptolerance[verytolerant] % Allows TeX to break lines even when doing so
would be 'ugly'

\showgrid

\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter

\subject{2/25/08}
...





-
This is a work of fiction.  Names, characters, places, and incidents either
are the product of the writer's imagination or are used fictitiously, and any
resemblance to actual persons, living or dead, businesses, companies,
events, or locales is entirely coïncidental.
___
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] stopcolumns causes new page!!!?

2010-04-11 Thread Xan

Hi,

I attach a file. In page 7, when I put \stopcolumns, then automatically 
context create one new page. When I comment that, all is fine. See the 
mark %here is the problem for the exact position.


Please, CCme.

Thanks a lot,
Xan.
% interface=en output=pdftex
% texexec --mode=solucions nomfitxer.context per veure les solucions

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]

% Page number
\setuppagenumbering [location={footer}]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups


% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]

\useURL [link:toomates][{http://www.toomates.net}][] [{\tf 
http://www.toomates.net}]

\useURL [link:aubanell][{http://www.xtec.cat/\~{}aaubanel/}][] [{\tf 
http://www.xtec.cat/\~{}aaubanel/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\ssbfc}, header=nomarking]
\setuphead[subsection][style={\ssbfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\setupbibtex[database=probabilitat,sort=author]
\setuppublications [alternative=ams,sorttype=bbl, criterium=all]% era 
criterium=cite per a llistar només els citats%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]

% Vertical spaces between paragraphs
\setupwhitespace[none]

%Itemize
\setupitemize[each][identnext=yes,margin=0em]
\setupitemize[each][headstyle=bold]

% Mathematical packets
\usemodule[newmat]

% Modules
\usemodule[tikz]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]

% AMSTHM
\defineenumeration
  [exercici]
  
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]
% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]

% Heads and footers
\setupfootertexts[{\tfx \pagenumber/\lastpage}]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx IES Binissalem. Dept. Orientació}][{\tfx 4t C MAT. 
Tema 4 - Probabilitat. \currentdate}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{subs-ti-tueix}
\hyphenation{pro-ble-ma}
\hyphenation{Ma-the-ma-tics}
\hyphenation{Ma-the-ma-ti-cal}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{va-ria-bles}

% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% GROUP FOR FORMULAS WITH CASES.
\definemathmatrix[GROUP][left={\left\{\,}, 
right={\right.},align={left},style=\displaystyle,distance=0.2em]

\setupformulas[align=middle]
\setupitemize[each][margin=2em]

% Start the text
\starttext
% Títol

\startstandardmakeup

\bigskip
\bigskip
\bigskip
\bigskip
\bigskip
\bigskip
\startalignment[middle]

{\sc\switchtobodyfont[14pt] Unitat didàctica }\par 

\thinrule

{\switchtobodyfont[40pt] \bf \sc 
\startcolor[middleblue]Probabilitat\stopcolor}\par
\stopalignment


\vfill
\thinrule
\placefigure
  [force,none]
  [fig:latex-vs-context-version-etc]
  {Latex vs ConTeXt information}
  {\bTABLE[frame=off,align={middle,lohi}]
\bTR[align={middle,lohi}]
\bTD[align={middle,lohi}]{\switchtobodyfont[12pt]
{\sc Programa de Diversificació Curricular} }
\eTD
\eTR
\bTR
\bTD[align={lohi,middle}]
{\sc Versió: \currentdate}
\eTD
\eTR
\eTABLE
}




%\vfill
%\page[yes]
\stopstandardmakeup


% Format de marges
\setuplayout[topspace=1cm,margin=1cm,header=1cm,footer=0.6cm,width=fit,height=fit,backspace=1.5cm]

\completecontent
\page

% Introducció

\section{Introducció}

\subsection

Re: [NTG-context] minimal example of some problems

2010-04-04 Thread Aditya Mahajan

On Sun, 4 Apr 2010, Michael Saunders wrote:


1. Leftward protrusion doesn't work.
2. I don't think hz is working in footnotes.



The font I'm using is Adobe Garamond Premiere Pro.  If you think there
might be a problem with the typescript, I can show you that too.


These two are related to font. Either show that something is wrong with
default typescripts (lmodern, times, palatino, etc) else it means that
tosmething is wrong with your typescript. But first you have to narrow
down the problem


I take your word for it that it works for the default typescripts;
therefore, the problem must be somewhere in my typescript, but I have
no idea where.  It is as follows:


I don't have the font, so I cannot test it.




3. Observe footnote 1 (the only one).  It is breaking between p.1 and
p.2.  I want to forbid that.


I don't know how to prevent this. But again, this has nothing to do with
columns or fonts.


I want that to work in those columns with that font.  If you don't
know how to make it work in any font with or without columns, that
makes no difference.  It looks like it's just one more thing that
Context can't do or can't do correctly.


You can prevent notes from splitting across pages by

\setupenumerations[footnote]
   [before=\vbox\bgroup, after=\egroup]

The footnote may still appear on a different page. If you want to prevent 
that add


\setupfootnotes[split=verystrict]

which can mess up the layout. You can slightly salvage things by adding

\setuptolerance[vertical, verytolerant]

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] \hyphenation problems

2010-03-22 Thread Thomas A. Schmitz

On Mar 22, 2010, at 3:16 PM, Tom wrote:

 Boy, am I thick. Here is an example that demonstrates the problem. You
 should be able to see that cfbdatawarehouse.com did not hyphenate. To get
 the malhyphenation error, it is necessary to uncomment the \hyphenation
 command. Changing the width of the figure to 2.0 inches will demonstrate
 additional ragged right problems. An unrelated issue is that the leading for
 the caption is larger than I would like.

:-) Not sure if I can solve all your problems, but here are a few pointers:

1. for the url, you could use a command which provides a url that can be 
hyphenated. Surprisingly enough, it is called \hyphenatedurl{}.

2. TeX doesn't hyphenate in certain situations, e.g., when a word is already 
hyphenated (and apparently when it contains a period). In ConTeXt, you can wrap 
these symbols into ||, and TeX will happily hyphenate (see section 7.8 of 
cont-eni). In your case, you can write cfbdatawarehouse|.|com

3. Your caption: well, since you do not apply the bodyfontswitch to all of the 
lines, but to each line individually, you never give ConTeXt a chance to 
calculate the interlinespace. You shouldn't format individual lines, but use 
something like this:

\setupcaptions[style={\switchtobodyfont[9pt]},
   align=center]

However, I was surprised to see that the caption was not centered below the 
image, so I ended up with

\placefigure [left]
{\framed[align=middle,frame=off]{Joel Wheelock in track uniform \\
{\it Cumberland County Historical \\
Society, Carlisle, PA}}}
{\externalfigure[dummy][width=2.2 in]}

This works, but seems like a kludge. Anything better?

4. As for words sticking out in the margin: TeX does its best, but sometimes, 
no good line breaks can be found. A certain word processor will then go on and 
stretch your interword space and even interletter space within words. TeX 
doesn't do that and will let words stick out to warn you. If you don't want to 
/ can't edit the text, you'll have to allow it to be less strict. You should 
read about \setuptolerance in cont-eni, section 4.13.

HTH

Thomas

___
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] \hyphenation problems

2010-03-22 Thread Wolfgang Schuster

Am 22.03.10 16:03, schrieb Thomas A. Schmitz:

4. As for words sticking out in the margin: TeX does its best, but sometimes, 
no good line breaks can be found. A certain word processor will then go on and 
stretch your interword space and even interletter space within words. TeX 
doesn't do that and will let words stick out to warn you. If you don't want to 
/ can't edit the text, you'll have to allow it to be less strict. You should 
read about \setuptolerance in cont-eni, section 4.13.
   

You can tell TeX to stretch the interword space, version 3 introduced
the \emergencystretch comand, you can use it in ConTeXt with

  \setupalign[stretch]

or

  \setuptolerance[horizontal,stretch]

In combination with protrusion and font expansion this prevents nearly
all overfull boxes in the running text (at least for me).

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] \hyphenation problems

2010-03-22 Thread Tom
As the Pennsylvania Dutch say, Wonderful good. The captions are now fine
except when used in combinations of two images. Then the font and spacing is
the same as for the text. The \setupcaption seems to be ignored for
combinations.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Thomas A. Schmitz
Sent: Monday, March 22, 2010 11:03 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \hyphenation problems


On Mar 22, 2010, at 3:16 PM, Tom wrote:

 Boy, am I thick. Here is an example that demonstrates the problem. You
 should be able to see that cfbdatawarehouse.com did not hyphenate. To get
 the malhyphenation error, it is necessary to uncomment the \hyphenation
 command. Changing the width of the figure to 2.0 inches will demonstrate
 additional ragged right problems. An unrelated issue is that the leading
for
 the caption is larger than I would like.

:-) Not sure if I can solve all your problems, but here are a few pointers:

1. for the url, you could use a command which provides a url that can be
hyphenated. Surprisingly enough, it is called \hyphenatedurl{}.

2. TeX doesn't hyphenate in certain situations, e.g., when a word is already
hyphenated (and apparently when it contains a period). In ConTeXt, you can
wrap these symbols into ||, and TeX will happily hyphenate (see section 7.8
of cont-eni). In your case, you can write cfbdatawarehouse|.|com

3. Your caption: well, since you do not apply the bodyfontswitch to all of
the lines, but to each line individually, you never give ConTeXt a chance to
calculate the interlinespace. You shouldn't format individual lines, but use
something like this:

\setupcaptions[style={\switchtobodyfont[9pt]},
   align=center]

However, I was surprised to see that the caption was not centered below the
image, so I ended up with

\placefigure [left]
{\framed[align=middle,frame=off]{Joel Wheelock in track uniform \\
{\it Cumberland County Historical \\
Society, Carlisle, PA}}}
{\externalfigure[dummy][width=2.2 in]}

This works, but seems like a kludge. Anything better?

4. As for words sticking out in the margin: TeX does its best, but
sometimes, no good line breaks can be found. A certain word processor will
then go on and stretch your interword space and even interletter space
within words. TeX doesn't do that and will let words stick out to warn you.
If you don't want to / can't edit the text, you'll have to allow it to be
less strict. You should read about \setuptolerance in cont-eni, section
4.13.

HTH

Thomas


___
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] Occasional words sticking out from flush-right

2010-03-04 Thread Aditya Mahajan

On Thu, 4 Mar 2010, James Fisher wrote:


I'd like to go back to the very first post about problems with flush right.
The \setbreakpoints command works to an extent, but I'm still experiencing
issues where, when a hyphenated string has been broken, the first half of it
still sticks out.  I unfortunately can't show you the example, and it's hard
to reproduce.  But can anyone answer: does the TeX line-breaking algorithm
retain the possibility of lines overrunning the defined boundary, if the
algorithm decides that the alternatives are more ugly?


Yes.

Try \setuptolerance[tolerant] or \setuptolerance[verytolerant].

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] Occasional words sticking out from flush-right

2010-03-04 Thread James Fisher
Perfecto.

On Thu, Mar 4, 2010 at 11:36 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 4 Mar 2010, James Fisher wrote:

  I'd like to go back to the very first post about problems with flush
 right.
 The \setbreakpoints command works to an extent, but I'm still experiencing
 issues where, when a hyphenated string has been broken, the first half of
 it
 still sticks out.  I unfortunately can't show you the example, and it's
 hard
 to reproduce.  But can anyone answer: does the TeX line-breaking algorithm
 retain the possibility of lines overrunning the defined boundary, if the
 algorithm decides that the alternatives are more ugly?


 Yes.

 Try \setuptolerance[tolerant] or \setuptolerance[verytolerant].

 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

 ___

___
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] combiation trickery again now with attachement - sorry

2010-02-16 Thread Peter Rolf
Am 16.02.2010 19:40, schrieb Bernhard Rosensteiner:
 Hi,
 
 in the attachment is an example file which describes best what i want do. The 
 method with \offset and \clip to place the figures where i want is really 
 brutal force i think.  Especially fiddling around with dimension to get the 
 right fit“ is tedious. Is there a better solution to do such a 
 start/stopcombination?
 Floatplacing is also influenced by the offset command but i compensated this 
 with *hang - nevertheless all in all i think no good solution. Please help.
 
Hi Bernhard,

that was fun. :)

Best wishes,  Peter

\setuptolerance[verytolerant, stretch]
\setupalign[hz, hanging]
\definefloat[subfigure][subfigures]

\setupfloat[figure][]
\setupfloat[tableleft][]

\setupcaption[figure][width=max, align={hz, hanging}, style=sstf]

\setupcaption[subfigure][way=bypage, location=top, width=max, align={hz, 
hanging}, inbetween={\blank[1*small]}, style={\smallbodyfont\sstf}, 
numberconversionset=characters, numberstopper={)}, prefixsegments=4:100]





\starttext

\input tufte

\placefigure[left, here, force]{Maincaption}
{\startcombination[2*2]
  {}{}
  {\blackrule[width=5cm,height=10\baselineskip,color=lightgray]}{caption 2}
  {\newbox\MYscratchbox
   \setbox\MYscratchbox\hbox\bgroup
   \blackrule[width=5cm,height=22.24\baselineskip,color=lightgray]\egroup
   \ht\MYscratchbox=10\baselineskip % fake height
   \box\MYscratchbox}{caption 1}
  {\blackrule[width=5cm,height=10\baselineskip,color=lightgray]}{caption 3}
\stopcombination}

\input tufte

\page[yes]

\input tufte
\placefigure[left, here, force]{Maincaption}
{\vbox\bgroup\hsize105mm
   \hbox\bgroup
 \vbox\bgroup\hsize50mm
   \blackrule[height=22.24\baselineskip,width=50mm,color=lightgray]
   \centerline{caption 1}
 \egroup
 \hskip5mm
 \vbox to 23.24\baselineskip\bgroup % +1 for caption
   \hsize50mm
   \vbox\bgroup
 \blackrule[height=10\baselineskip,width=50mm,color=lightgray]
 \centerline{caption 2}
   \egroup
   \vss
   \vbox\bgroup
 \blackrule[height=10\baselineskip,width=50mm,color=lightgray]
 \centerline{caption 3}
   \egroup
 \egroup
   \egroup % hbox
 \egroup % outer vbox
}
\input tufte

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


Re: [NTG-context] ConTeXt swallows text

2010-01-20 Thread luigi scarso
On Wed, Jan 20, 2010 at 12:17 PM, Oliver Heins o...@sopos.org wrote:
 According to http://www.pragma-ade.com/general/manuals/columns.pdf (page
 16ff.) it is perfectly okay to do the way I did.

 That's what the directive btlr is for: flush from bottom to top and left
 to right.

 It's a documented feature, and it's not working properly (at least from
 what I see).  I call this a bug.


Yes can be but
I don't  mix  code from chapter Graphics with code from chapter Areas,
so until now my code has  worked as expected.
(I usually work with Area, so this is why I 've said that
1.95\textwidth is non-sense)
This works for example in mkiv and mkii ,so I suspect some not-so-good
interaction between Area and Chapter,
but I still disagree to call it a bug because typesetting in columns
is always hard in TeX, so maybe it's a feature that
you need but it's not still implemented .
Of course more examples can be usefuls in this sense.

\setupbodyfont[ss,10pt]
\setupinterlinespace[line=2.6ex]

\setuppapersize[A4][A4]
\setuplayout[backspace=2cm,width=middle,
 offset=0mm,
  topspace=0cm,height=middle,
   location=middle,
   ]
   \setupcolors[state=start]
   \setuptolerance[tolerant,verytolerant]

   \definefloat[grafik]
   \setupcaption[grafik][number=no,location=bottom]

   \definecolumnset[ergebnisse][n=3]
   %\definecolumnsetarea
   %[title][left]
   %[x=1,y=1,nx=6,ny=42,page=2,state=start]

   \starttext

   \startcolumnset[ergebnisse]
   \definecolumnsethsize{ergebnisse}{1}{2}\Two
   \dorecurse{10}{\input tufte}

   \placegrafik[btlr]{none}{\externalfigure[foo][lines=19,width=1.95\textwidth]}

   \subject{Victoria Beckham pregnant again!}

   Barack Obama is the father! Confronted with this fact, her husband
   David Beckham said\,\dots (Actually, this is a very important news the
   world should knew about!)

   \dorecurse{8}{\input tufte}

   \stopcolumnset

   \stoptext



-- 
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] ConTeXt swallows text

2010-01-19 Thread Oliver Heins
Hi,

under certain circumstances, ConTeXt swallows text.  This happens with
both MkII and MkIV and a fairly recent minimals distribution.

| ConTeXt  ver: 2009.11.24 10:13 MKII  fmt: 2009.11.25  int: english/english
| ConTeXt  ver: 2009.11.24 10:13 MKIV  fmt: 2009.11.25  int: english/english

Sadly, I noticed not until the booklet was already printed.  (Actually,
it was my customer who noticed.)  :-(

Best regards,
 olli

% ---
\enableregime[utf-8]
\setupbodyfont[ss,10pt]
\setupinterlinespace[line=2.6ex]

\setuppapersize[A4][A4]
\setuplayout[backspace=2cm,width=middle,
  offset=0mm,
  topspace=0cm,height=middle,
  location=middle,
]
\setupcolors[state=start]
\setuptolerance[tolerant,verytolerant]

\definefloat[grafik]
\setupcaption[grafik][number=no,location=bottom]

\definecolumnset[ergebnisse][n=3]
\definecolumnsetarea
[title][left]
[x=1,y=1,nx=6,ny=42,page=2,state=start]

\starttext

\startcolumnset[ergebnisse]

\dorecurse{10}{\input tufte}

\placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}

\subject{Victoria Beckham pregnant again!}

Barack Obama is the father! Confronted with this fact, her husband
David Beckham said\,\dots (Actually, this is a very important news the
world should knew about!)

\dorecurse{3}{\input tufte}

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


Re: [NTG-context] ConTeXt swallows text

2010-01-19 Thread luigi scarso
On Tue, Jan 19, 2010 at 7:22 PM, Oliver Heins o...@sopos.org wrote:
 Hi,

 under certain circumstances, ConTeXt swallows text.  This happens with
 both MkII and MkIV and a fairly recent minimals distribution.

 | ConTeXt  ver: 2009.11.24 10:13 MKII  fmt: 2009.11.25  int: english/english
 | ConTeXt  ver: 2009.11.24 10:13 MKIV  fmt: 2009.11.25  int: english/english

 Sadly, I noticed not until the booklet was already printed.  (Actually,
 it was my customer who noticed.)  :-(

 Best regards,
  olli

 % ---
 \enableregime[utf-8]
 \setupbodyfont[ss,10pt]
 \setupinterlinespace[line=2.6ex]

 \setuppapersize[A4][A4]
 \setuplayout[backspace=2cm,width=middle,
  offset=0mm,
  topspace=0cm,height=middle,
  location=middle,
 ]
 \setupcolors[state=start]
 \setuptolerance[tolerant,verytolerant]

 \definefloat[grafik]
 \setupcaption[grafik][number=no,location=bottom]

 \definecolumnset[ergebnisse][n=3]
 \definecolumnsetarea
 [title][left]
 [x=1,y=1,nx=6,ny=42,page=2,state=start]

 \starttext

 \startcolumnset[ergebnisse]

 \dorecurse{10}{\input tufte}

 \placegrafik[btlr]{none}{\externalfigure[foo][width=1.95\textwidth]}

 \subject{Victoria Beckham pregnant again!}

 Barack Obama is the father! Confronted with this fact, her husband
 David Beckham said\,\dots (Actually, this is a very important news the
 world should knew about!)

 \dorecurse{3}{\input tufte}

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


Why nx=6 and width=1.95\textwidth ?

What about this ?

\enableregime[utf-8]
\setupbodyfont[ss,10pt]
\setupinterlinespace[line=2.6ex]

\setuppapersize[A4][A4]
\setuplayout[backspace=2cm,width=middle,
 offset=0mm,
  topspace=0cm,height=middle,
   location=middle,
   ]
   \setupcolors[state=start]
   \setuptolerance[tolerant,verytolerant]

   \definefloat[grafik]
   \setupcaption[grafik][number=no,location=bottom]

   \definecolumnset[ergebnisse][n=3]
   \definecolumnsetarea
   [title][left]
   [x=1,y=1,nx=2,ny=42,page=2,state=start]

   
\setupcolumnsetareatext[title][left][{\externalfigure[cow][width=1.95\textwidth]}]

   \starttext

   \startcolumnset[ergebnisse]

   \dorecurse{10}{\input tufte}

   %\placegrafik[btlr]{none}{\externalfigure[cow][width=1.95\textwidth]}

   \subject{foo fooo fooof oof fooo}

   \dorecurse{5}{\input tufte}

   \stopcolumnset

   \stoptext



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


Re: [NTG-context] Usage of filename in document

2009-11-05 Thread Martin Scholz
Am Thu, 05 Nov 2009 17:28:08 -0330 schrieb Roger Mason:

 Martin,
 
 Martin Scholz mar...@scholz-net.org writes:
 
 is there a way in conTeXt how I can use a filename, so that I can write
 a text where I can refer to it for using it in the following scenario:

 I need 4 documents with nearly the same content. what I like to do is
 to switch in the document depending on the called filename.

 as I got a file called invoice.tex and create some links to this file
 called delivery.tex order.tex and so on and now call

 texexec invoice.tex

 or

 texexec order.tex

 I want the document to recognize in the first case that it is invoice
 and in the second case that it is order, so that I can use an if then
 else environment on the different parts where I can define the
 following

 if{filename==invoice} then{print this content} else{}
 if{filename==order} then{print this part of content} else{}


 Have you looked at modes?  I use this technique for making manuscript,
 presentation and speakernotes versions of teaching documents.
 
 Here is an example:
 
 %%% TheEarthWorks.tex ---
 
 %% Author: rma...@mun.ca
 %% Version: $Id: TheEarthWorks.tex,v 0.0 2009/01/14 19:16:14 rmason Exp$
 
 % Styles specific to the pres and MS modes: \input presentation.tex
 \input manuscript.tex
 
 \starttext
 \startcolor[TextColor]
   \setupalign[right, nothyphenated]
   \setuptolerance[horizontal,verytolerant]
 
   % Title
   \titlepage{Gems, The Earth \ its Works}
 
 %
 
-
 \NewSlide{Diamonds are a girls best friend} \oneplot{fig:intro}{Diamonds
 are a girls best friend\ldots and tell us a lot about how the Earth
 works.}{\externalfigure[Brillanten]} % reference caption image
 
 \startmode[manuscript]
   \section{Introduction}
   The Earth is made of rocks and in turn the rocks are made of minerals.
   Most gems (\in{Fig.}[fig:intro]) are minerals.  We will look at rocks
   and minerals soon, but before we do so it is useful to have an
   overview of the bigger picture: the structure of the Earth.  We will
   then go on to look at how various kinds of rocks are formed before
   focusing on minerals and gems.
 \stopmode%[manuscript]
 
 \startmode[manuscript]
   \section{Structure of the Earth}
   What is the interior of the Earth like?  Is it structureless, like
   Christmas cake, or does it have a structure, like layer cake?  If the
   Earth is structureless then maybe gems can form and be found anywhere.
If it has structure then perhaps specific gems form only in
   particular places.
 \stopmode%[manuscript]
 
 %
 
-
 \NewSlide{Structure of the Earth}
 \twoplots
 % reference caption
 % image1 caption1
 % image2 caption2
   {fig:cakes}{What is the structure of the earth?}
   {\externalfigure[Stirring_christmas_pudding]}{Christmas pudding?} %
   http://en.wikipedia.org/wiki/Image:Stirring\_christmas\_pudding.JPG %
   No licensing info given.
   {\externalfigure[Layer_cake]}{Layer cake?} % 
   http://kitchen-delights.blogspot.com/2007/10/ % 
   iced-lemon-curd-layer-cake.html}
 % Licensing conditions not known.
 
 \startmode[manuscript]
   Various lines of evidence show that Earth is a layered planet
   (\in{Fig.}[fig:earthstructure]).  The outermost layer is the
   \emph{crust}, which is made largely of rocks and minerals that
   have low density.
 \stopmode%[manuscript]
 
 %
 
-
 \NewSlide{Earth Structure}
 \oneplot{fig:earthstructure}{Internal structure of the
 Earth}{\externalfigure[Earth_structure]} % reference caption image
 % http://en.wikipedia.org/wiki/Image:Earth-crust-cutaway-english.svg
 Surachit % Original png was public domain.  No license info for this
 svg version
 
 \startmode[presentation]
 %
 
-
 \NewSlide{Where are gems found?}
 \onewideplot{fig:gemsfound}{Where are gems
 found?}{\externalfigure[Crust]} % reference caption image
 
 %
 
-
 \NewSlide{Where are gems formed?}
 \onewideplot{fig:gemsformed}{Where are gems
 formed?}{\externalfigure[Crust_upper_mantle.jpg]} % reference caption
 image
 \stopmode%[presentation]
 
 \startmode[manuscript]
   The next layer inwards is the \emph{mantle} which occupies a large
   portion of the volume of the Earth and is made of rocks and minerals
   with a density around twice that of the crust. Beneath the mantle is
   the core, which is subdivided into the \emph{outer core}, which is
   liquid and the \emph{inner core} which is solid.  The core has a
   density about twice that of the mantle.  The layering then is by {\em
   density} and it increases as the centre of the Earth is approached.
 
   Tha majority of gems are found

[NTG-context] Strange Behaviour for toc

2009-10-12 Thread Martin Scholz
Hallo list,

I just started to work with conTeXt, now that I seted up an project 
environment as follows with the following content:

file project_oc.tex:


\startproject project_oc
\environment env_oc

\startfrontmatter
\setuppagenumbering[conversion=romannumerals]
\completecontent
\stopfrontmatter

\startbodymatter
\setuppagenumbering[conversion=]
\product prd_oc_0

\stopbodymatter

\startappendices

\stopappendices

\stopproject

file env_oc.tex:


\startenvironment env_oc

\enableregime [utf]
\setuplanguage [de]
[leftquote=\upperleftsinglesixquote,rightquote=
\upperrightsinglesixquote,leftquotation=\leftguillemot,rightquotation=
\rightguillemot]
\mainlanguage [de]

\setupbodyfontenvironment[default][em=italic]

\usemodule[greek]
\usemodule[units]

\setupcolors[state=start]
\setupcolor[rgb]
\definecolor[lightred][r=1,g=0.85,b=0.85]

\definefont[BigFontOne][Regular sa 3]
\definefont[BigFontTwo][RegularBold sa 2]
\definecolor[BigColorOne][r=.86,g=.850,b=.54]
\definecolor[BigColorTwo][r=.43,g=.425,b=.27]

\setuplayout[location=middle,
topspace=1.3cm,
width=middle,
cutspace=4.5cm,
rightmargindistance=0.4cm,
leftmargindistance=0.2cm,
backspace=1.2cm,
height=fit,
rightmargin=2.5cm,
leftmargin=1cm,
bottomspace=2cm,
footer=0.8cm,
setup=strict]

% \showgrid
 \showframe
% \showsetups
% \showlayout

\setuppagenumbering[alternative=doublesided,location=footer]
\setupheader[state=none]

\setuptolerance[tolerant, stretch]

\setupwhitespace[medium]

\setupfootnotes[way=bypage, conversion=set 2]

\definepagebreak[chapter][yes,footer,right]

\setuphead[chapter][textcommand=\MyChapterText,color=BigColorTwo,style=
\BigFontTwo]

\def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}\kern15pt#1}

\setuphead[section][numbercolor=red]

\setuphead[subsection][number=no,style=\ss]

\setuphead[subsubsection][style=slanted,number=no,before={\blank
[big]},before={\testpage[1]},after=\nowhitespace]

\setupfloats[spaceafter=3*medium]

\setuptables[bodyfont=small]
\setupcaption[table][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\setupfloat[table][criterium=0.5\textwidth,default=inner]

\setupcaption[figure][style={\ssx\setupinterlinespace
[line=2.5ex]},align=left]

\definefloat[Bigfigure][Bigfigures][figure]
\setupfloat[Bigfigure][location=inner]

\definefloat[Bigtable][Bigtables][table]
\setupfloat[Bigtable][location=inner]

\definefloat[vignette][figure]
\setupfloat[vignette][leftmargindistance=-
\outermargintotal,rightmargindistance=-\outermargintotal,default=
{outer,none,low}]
% \setup[vignette][number=no]

\definestartstop[Story][before={\setupbackground[style=
\tfx,background=color,backgroundcolor=white,frame=on,framecorner=rectangular,framecolor=black,rulethickness=0.5pt,topoffset=0.25cm,bottomoffset=0.25cm,leftoffset=0.25cm,rightoffset=0.25cm,before=
{\blank[big]}]\startbackground\switchtobodyfont[10pt]},after=
\stopbackground]

\definestartstop[MySummary][before={\setupbackground
[background=color,backgroundcolor=lightgray,backgroundcorner=rectangular,frame=off,topoffset=0.3cm,bottomoffset=0.3cm,leftoffset=0.5cm,rightoffset=0.5cm,before=
{\blank[big]}]\startbackground\Zus},after=\stopbackground]

\defineframedtext[Oddity][width=0.75
\textwidth,background=color,backgroundcolor=lightred,frame=off,framecorner=round,frameradius=0.5cm,backgroundcorner=round,style=
\tfx]

\setupinmargin[align=right,style=\ss\tfx\setupinterlinespace]

\setupitemize[align=right]

\startsectionblockenvironment[appendix]
\setuptabulate[align=right,split=yes]

\definepagebreak[chapter][yes,footer,right]
\setuphead[chapter][bodypartconversion=Character,page=chapter]
\setuphead[subsection][command=\SectionCommand,number=yes,numbercolor,red]
\setuphead[subsubsection][number=yes]
\definefloat[BigFramedFigure][BigFramedFigures][figure]
\setupfloat[BigFramedFigure][location=inner,frame=on,offset=2pt]
\definefloat[FramedFigure][FramedFigures][figure]
\setupfloat[FramedFigure][frame=on,offset=2pt]

\stopsectionblockenvironment

\setupregister[index][imp][pagestyle=bold]

\setupcombinedlist[content][level=2,alternative=c]
\setuplist[chapter][style=bold]

\stopenvironment

file prd_oc_0.tex:
--

\startproduct prd_oc_0
\project project_oc

\component c_oc0_1

\stopproduct

file c_oc0_1.tex:
-
\startcomponent c_oc0_1
\product prd_oc_0
\project project_oc

\starttext
\title{Titel}
\chapter[chap:ques]{Question}
\chapter[chap:answ]{Answer}
\chapter[chap:rema]{Remarque}
\stoptext

\stopcomponent

Now Im getting doubled entries in the \completecontent part, it lists 
everything as

1 Question  5
1 Question  5
2 Answer7
2 Answer7

so as this is not the wished behaviour, can someone help me to solve thsi 
problem. please be patient with me to get it done right, as I'm a newbe...

Greetings

Martin

Re: [NTG-context] framedtext in naturaltables

2009-10-02 Thread Xan

En/na Wolfgang Schuster ha escrit:


Am 30.09.2009 um 21:22 schrieb Xan:


Hi,

If I put 
\startframedtext[frame=off,background=screen,width=broad]\stopframedtext 
in naturaltable, then I get that framed text passes table and that it 
aligns at top.


Can you say me please how to get a right behaviour?


\startframedtext[location=top,frame=off,background=screen,width=\dimexpr\hsize-\itemgrouplistwidth\relax] 



or better

\defineframedtext
  [tableframed]
  [location=top,
   frame=off,
   background=color, % screen works only with mkii but color with mkii 
and mkiv

   backgroundcolor=gray
   width=\dimexpr\hsize-\itemgrouplistwidth\relax]

\bTD\starttableframed ... \stoptableframed\eTD

Wolfgang


It does not work:

duplicate reference [][fig:smiley-semblants] on page 3 (copia
-de-T1-Estructura-Externa-Terra-Roques-i-Minerals)
) (/usr/share/texmf/tex/context/base/pdfr-def.tex)
systems : begin file 
copia-de-T1-Estructura-Externa-Terra-Roques-i-Mine

rals at line 122
! Undefined control sequence.
\@@kdframedtextwidth ...size -\itemgrouplistwidth

\startlocalframed ...h {\framedparameter \c!width
 }\edef \localheight 
{\fram...


\dododostartframedtext ...#1][\c!strut =\v!no ,#3]
 \bgroup \let 
\\=\endgraf \...

to be read again
  {
argument ...expr \hsize -\itemgrouplistwidth ] {
 \bf \em Estructura 
interna...


\handleTBLcell ...{\bTBLCELL \TBLcharalign {#2}{#4
 }\eTBLCELL \inTBLcell 
{#1}...

...
l.257 \eTABLE
}
?


at least in MKII.


I attached the whole file.

Thanks a lot,
Xan.
% interface=en output=pdftex

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,10pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]

% Page number
\setuppagenumbering [location={footer}]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
\setuplayout[topspace=1.5cm,margin=1.5cm,header=0.8cm,footer=1.5cm,width=fit,height=fit,backspace=1.7cm]


% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]

% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\ssbfc}, header=nomarking]
\setuphead[subsection][style={\ssbfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
%\usemodule[bib]
%\usemodule[bibltx]
%\setupbibtex[database=funcions,sort=author]
%\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=all]%
%\setupheadtext[ca][pubs=Referències]
%\setuppublicationlist[authoretallimit=3]
%\setuppublicationlist[authoretaltext={\it\  et al.}]
%\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]

% Vertical spaces between paragraphs
\setupwhitespace[none]

%Itemize
\setupitemize[each][identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]

% Mathematical packets
%\usemodule[newmat]

% Modules
\usemodule[tikz]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]

% AMSTHM
\defineenumeration
  [exercici]
  
[text={Exercici},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]
% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]

% Heads and footers
\setupfootertexts[{\tfx \pagenumber/\lastpage}]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx 4t DIVER CN. Tema 1 - Estructura Externa de la 
Terra}][{\tfx IES Binissalem. {\bf FULL 1}. \currentdate.}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{subs-ti-tueix}
\hyphenation{pro-ble-ma}
\hyphenation{Ma-the-ma-tics}
\hyphenation{Ma-the-ma-ti-cal}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{va-ria

Re: [NTG-context] Footnotes and body text

2009-08-26 Thread Taco Hoekwater


Vyatcheslav Yatskovsky wrote:
 Hello,
 
 Looks like my previous message was overlooked. Let me cry again.
 
 In my document footnotes' upper line clashes with body text. In result,
 last line of body text looks underlined.
 
 Please, take a look at the attachment.

Context does not take the best possible decision, but that is because
the document page is over-constrained.

Either both the 'Five Jazz Piece.' line and the footnote have to be
on the page, or neither one. If this is the final document then to
get out of the impasse, I would simply add a \vadjust{\page} command on
the 'Those complex stuff' line, but there probably is a better solution
possible by playing with \setupfootnotes and \setuptolerance.

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] Problems with cite (minimal example) (was Re: Buggy source code-- references disappears when I put sections and If I put subjects, \completecontent has void list.)

2009-08-18 Thread Xan
,
volume = 36,
number = 1,
year = 1972,
pages = 231-238
}

@article{magnus-residualment,
author = Wilhelm Magnus,
title = Residually Finite Groups,
journal = Bulletin of the American Mathematical Society,
year = 1969,
pages = 305-316,
volume = 75
}

@book{delaharpe,
 author= de la Harpe, Pierre,
 title = Topics in Geometric Group Theory,
 publishers = University of Chicago Press,
 series= Chicago Lectures in Mathematics,
 year = 2000,
 address = Chicago
}

@book{chiswell,
title = A Course in Formal Languages, Automata and Groups,
author = Ian Chiswell,
publishers = Springer,
address = London,
year = 2009,
series = Universitext
}

@misc{whyte,
title = Quasi-Isometries,
author = Kevin Whyte,
year = 2007,
address = Berkeley,
note = Disponible a www.math.utah.edu/~malone/QI/notes.pdf (darrer accés agost 2009)
}


@article{dymarz,
author = Tullia Dymarz,
title = Billipschitz equivalence is not equivalent to quasi-isometric equivalence for finitely generated groups,
year = 2009,
journal = arXiv.org,
note = 0904.3764v2
}

@phdthesis{riley-tesi,
author = Tim R. Riley,
title = Asymptotic Invariants of Infinite Discrete Groups,
school = Corpus Christi College. University of Oxford,
year = 2002,
address = Hilary Term
}

@incollection{gromov,
author = Mikhail Gromov,
title = Hyperbolic groups,
booktitle = Essays in Group Theory,
editor = S. M. Gersten,
pages = 75-263,
publisher = Springer,
address = New York,
year = 1987,
series = Mathematical Sciences Research Institute,
volume = 8,
}

@article{bowditch,
author = B. H. Bowditch,
title = A Short Proof That a Subquadratic Isoperimetric Inequality Implies a Linear One,
pages = 103-107,
year = 1995,
journal = Michigan Mathematical Journal,
volume = 92,
number = 1
}

@article{olshanskii,
author = Alexander Y. Ol'shanski\u{i},
title = Hyperbolicity of groups with subquadratic isoperimetric inequality,
pages = 281-289,
year = 1991,
journal = International Journal of Algebra and Computation,
volume = 1,
number = 3
}

@article{brady-bridson,
author = Noel Brady and Martin R. Bridson,
title = There is only one gap in the isoperimetric spectrum,
journal = Geometric and Functional Analysis,
volume = 10,
number = 5,
year = 2000,
pages = 1053-1070
}

@article{bridson-ip,
author = Martin R. Bridson,
title = Fractional isoperimetric inequalities and subgrup distorsion,
journal = Journal of the American Mathematical Society,
volume = 12,
year = 1999,
number = 4,
pages = 1103-1118
}

@article{brady-forester,
author = Noel Brady and Max Forester,
title = Density of Isoperimetric spectra,
journal = arXiv.org,
year = 2008,
note = 0812.1036v1
}

@article{snowflake,
author = Noel Brady and Martin R. Bridson and Max Forester and Krishnan Shankar,
title = Snowflake groups, {{P}}erron-{{F}}robenius eigenvalues and isoperimetric spectra,
journal = Geometry \ Topology,
volume = 13,
number = 1,
year = 2009,
note = . Disponible a l'arXiv.org: 0608155v2.
}

@article{sapir-birget-rips,
author = Mark Sapir and Jean-Camille Birget and Eliyahu Rips,
title = Isoperimetric and isodiametric functions of groups,
journal = Annals of Mathematics,
volume = 156,
number = 2,
year = 2002,
pages = 345-466,
note =. Disponible una versió preliminar a l'arXiv.org. 9811105v1
}

@article{birget-et-al,
author = Jean-Camille Birget and Alexander Y. Ol'shanski\u{i} and Eliyahu Rips and Mark Sapir,
title = Isoperimetric functions of groups and computational complexity of the word problem,
journal = Annals of Mathematics,
volume = 156,
number = 2,
year = 2002,
pages = 476-518
}

@incollection{quenell,
author = Gregory Quenell,
title = Combinatorics of free-product graphs,
booktitle = Geometry of the spectrum. 1993 Joint Summer Research Conference on Spectral Geometry, July 17-23, 1993, University of Washington, Seattle,
year = 1994,
publisher = American Mathematical Society,
series = Contemporary Mathematics,
editors = Robert Brooks and Carolyn Gordon and Peter A. Perry,
volume = 173,
pages = 257-282
}














@article{bridson,
 author = Martin R. Bridson,
 title = On the geometry of normal forms in discrete groups,
 journal = Proceedings of the London Mathematical Society,
 year = 1993,
 volume = 67,
 pages = 595-616
}

@article{riley,
author = Tim R. Riley,
title = The geometry of groups satisfying weak almost-convexity or weak geodesic-combability conditions,
journal = Journal of Group Theory,
year = 2002,
volume= 5,
pages = 513-525
}

@book{epstein,
 author = Epstein, David B. A. and J. W. Cannon and D. F. Holt and S. V. F. Levy and M. S. Paterson and W. P. Thurston,
 title = Word processing in groups,
 publishers=Jones and Barlett Publishers,
 year= 1992
}


% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % cmr, 11pt

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number

Re: [NTG-context] I can't put footnote

2009-07-23 Thread Xan
 
  \??dd \c!number \endcsname 
\@@ddresetsubsubsubnumber ...entdescriptionnumber 
  }\resetnumber [\v!sub \v!s...

\@@ddresetsubsubnumber ...b \v!sub \c!number }{#1}
  \resetnumber [\v!sub \v!su...

\@@ddresetsubnumber ...!sub \v!sub \c!number }{#1}
  \resetnumber [\v!sub \@@de...

\@@ddsetnumber ... \s!reset \v!sub \c!number }{#1}
  \setnumber [\@@description...

\footnote -\setnote 
 [\v!footnote ]
l.234 a\footnote
{A}
? x
 
Here is how much of TeX's memory you used:
 11536 strings out of 57878
 228693 string characters out of 558687
 4753175 words of memory out of 5684965
 50568 multiletter control sequences out of 1+5
 166057 words of font info for 74 fonts, out of 120 for 2000
 199 hyphenation exceptions out of 8191
 48i,2n,59p,354b,509s stack positions out of 5000i,500n,6000p,20b,5000s
No pages of output.
PDF statistics:
 3 PDF objects out of 1000 (max. 8388607)
 1 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 5 words of extra memory for PDF output out of 1 (max. 1000)

% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % cmr, 11pt

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
%\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
% Format de marges
%\setuplayout[topspace=1.5cm, % marge d'adalt
%margin=1.5cm, %marges dels costats
%header=1.0cm,%separació entre adalt i primera línia
%footer=1.0cm,%separació entre abaix i darrera línia
%width=fit,height=fit,backspace=2cm]



% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad probseminar/nagorko/slides.pdf]
%\useURL[govern-me][http://sgtrelinst.caib.es/llibrestil/00index.html][][http://sgtrelinst.caib.es/llibrestil/00index.html]
%\useURL[context-manual-pdf][http://www.pragma-ade.com/general/manuals/cont-eni.pdf][][http://www.pragma-ade.com/general/manuals/ cont-eni.pdf]
%\useURL [contextgarden] [{http://www.contextgarden.net}]

%\useURL [mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfc}, header=nomarking]
\setuphead[subsection][style={\bfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=memoria,sort=author]
\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, criterium=cite]%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]
%\setupformulae[indentnext=yes]

% Vertical spaces between paragraphs
\setupwhitespace[small]

%Itemize
\setupitemize[each][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

% Mathematical packets
\usemodule[newmat]
\usemodule[math-ams]

% Heads and footers
\setupfootertexts[][{\tfxx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx \jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \currentdate}]


% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% Modules
\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]
%\usetikzlibrary[trees]



% AMSTHM equivalent
%% Exercici
\defineenumeration
  [exercici]
  [text={Problema},headstyle=bold,between=\blank,titledistance=0em

[NTG-context] I can't change startitemize[n]-- startitemize[1]

2009-07-23 Thread Xan

Hi Hans,

First of all, thank you very much for helping in the above problem.
Can you solve this now ? ;-)

When I change startitemize[n] to startitemize[1] in line 394 I get this 
error:


! Argument of \dodoregister has an extra }.
inserted text
   \par
to be read again
  }
\doattributes ...name #1...@ea \endcsname \fi {#4}
 \dostopattributes
\dolistitem ...evel \c!style \c!color {\listitem }
 \fi \fi 
}\ifconditional \f...


\complexdoitemgroupitem ...obreak \fi \dolistitem
 \relax \ifconditional 
\pac...

to be read again
  $
l.395 \item $
\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
? x


Why?

I attach the source file and log file.
This is a long file, I know, but I don't know why with 'n' works and '1' 
does not.



Thanks in advance,
Xan.

PS: Please, CCme.
% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % cmr, 11pt

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
%\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
% Format de marges
%\setuplayout[topspace=1.5cm, % marge d'adalt
%margin=1.5cm, %marges dels costats
%header=1.0cm,%separació entre adalt i primera línia
%footer=1.0cm,%separació entre abaix i darrera línia
%width=fit,height=fit,backspace=2cm]



% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad
 probseminar/nagorko/slides.pdf]
%\useURL[govern-me][http://sgtrelinst.caib.es/llibrestil/00index.html][][http://sgtrelinst.caib.es/llibrestil/00index.html]
%\useURL[context-manual-pdf][http://www.pragma-ade.com/general/manuals/cont-eni.pdf][][http://www.pragma-ade.com/general/manuals/
 cont-eni.pdf]
%\useURL [contextgarden] [{http://www.contextgarden.net}]

%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfc}, header=nomarking]
\setuphead[subsection][style={\bfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=memoria,sort=author]
\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=cite]%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]
%\setupformulae[indentnext=yes]

% Vertical spaces between paragraphs
\setupwhitespace[small]

%Itemize
\setupitemize[each][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

% Mathematical packets
\usemodule[newmat]
\usemodule[math-ams]

% Heads and footers
\setupfootertexts[][{\tfxx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \currentdate}]


% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% Modules
\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]
%\usetikzlibrary[trees]



% AMSTHM equivalent
%% Exercici
\defineenumeration
  [exercici]
  
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},after={\stopframedtext\egroup}]

%% Lema 
\defineenumeration
  [lema]
  [text={Lema}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip

Re: [NTG-context] Line overflows

2009-07-22 Thread Willi Egger
If I understand your question correctly, then you mightplay with  
\setuptolerance[tolerant] or \setuptolerance[verytolerant] or even  
\setuptolerance[verytolerant,stretch]


Willi
On Jul 21, 2009, at 9:34 PM, Tom wrote:

A few lines overflow a couple of characters into the right margin.  
How does one solve this problem?




Tom Benjey

Tuxedo Press



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


[NTG-context] Strange behaviour of startitemize[1]

2009-07-22 Thread Xan

Hi,

Sorry for perhaps silly question, but I receive and error for this code:

\subsubsubject{El problema de la paraula}

\startitemize[1]
\item $\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
\item Per a tota paraula $w = w_1 \ldots w_r$ sobre $X \cup X^{-1}$,
\startformula
\pi(w) = \pi(w_1) \cdots \pi(w_r) \in G.
\stopformula
\stopitemize

that in the first item should be one less $:

subsubsubject   : - El problema de la paraula
! Argument of \dodoregister has an extra }.
inserted text
   \par
to be read again
  }
\doattributes ...name #1...@ea \endcsname \fi {#4}
 \dostopattributes
\dolistitem ...evel \c!style \c!color {\listitem }
 \fi \fi 
}\ifconditional \f...


\complexdoitemgroupitem ...obreak \fi \dolistitem
 \relax \ifconditional 
\pac...

to be read again
  $
l.237 \item $
\pi(x^{-1}) = \pi(x)^{-1}$ per a tot $x \in X$.
? x


The whole file is attached.


What's the problem. Sorry I don't see


Xan.
% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % cmr, 11pt

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
%\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
% Format de marges
%\setuplayout[topspace=1.5cm, % marge d'adalt
%margin=1.5cm, %marges dels costats
%header=1.0cm,%separació entre adalt i primera línia
%footer=1.0cm,%separació entre abaix i darrera línia
%width=fit,height=fit,backspace=2cm]



% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad
 probseminar/nagorko/slides.pdf]
%\useURL[govern-me][http://sgtrelinst.caib.es/llibrestil/00index.html][][http://sgtrelinst.caib.es/llibrestil/00index.html]
%\useURL[context-manual-pdf][http://www.pragma-ade.com/general/manuals/cont-eni.pdf][][http://www.pragma-ade.com/general/manuals/
 cont-eni.pdf]
%\useURL [contextgarden] [{http://www.contextgarden.net}]

%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfc}, header=nomarking]
\setuphead[subsection][style={\bfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=memoria,sort=author]
\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=cite]%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]
%\setupformulae[indentnext=yes]

% Vertical spaces between paragraphs
\setupwhitespace[small]

%Itemize
\setupitemize[each][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

% Mathematical packets
\usemodule[newmat]
\usemodule[math-ams]

% Heads and footers
%\setupfootertexts[][{\tfx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \currentdate}]


% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% Modules
\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]
%\usetikzlibrary[trees]



% AMSTHM equivalent
%% Exercici
\defineenumeration
  [exercici]
  
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},after

[NTG-context] I can't put footnote

2009-07-22 Thread Xan

Hi,

Anyone could help me please. I attach a document with I have problems.
When I comment out the footnote in line 402, then I get an error.

Can anyone could see what happens?

Thanks in advance,
Xan.
% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % cmr, 11pt

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
%\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
% Format de marges
%\setuplayout[topspace=1.5cm, % marge d'adalt
%margin=1.5cm, %marges dels costats
%header=1.0cm,%separació entre adalt i primera línia
%footer=1.0cm,%separació entre abaix i darrera línia
%width=fit,height=fit,backspace=2cm]



% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad
 probseminar/nagorko/slides.pdf]
%\useURL[govern-me][http://sgtrelinst.caib.es/llibrestil/00index.html][][http://sgtrelinst.caib.es/llibrestil/00index.html]
%\useURL[context-manual-pdf][http://www.pragma-ade.com/general/manuals/cont-eni.pdf][][http://www.pragma-ade.com/general/manuals/
 cont-eni.pdf]
%\useURL [contextgarden] [{http://www.contextgarden.net}]

%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfc}, header=nomarking]
\setuphead[subsection][style={\bfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=memoria,sort=author]
\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=cite]%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]
%\setupformulae[indentnext=yes]

% Vertical spaces between paragraphs
\setupwhitespace[small]

%Itemize
\setupitemize[each][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

% Mathematical packets
\usemodule[newmat]
\usemodule[math-ams]

% Heads and footers
%\setupfootertexts[][{\tfx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \currentdate}]


% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% Modules
\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]
%\usetikzlibrary[trees]



% AMSTHM equivalent
%% Exercici
\defineenumeration
  [exercici]
  
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},after={\stopframedtext\egroup}]

%% Lema 
\defineenumeration
  [lema]
  [text={Lema}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic

%% Proposició, corol·laris, teoremes.
%% Comparteix els nombres amb lema
%% Si volem que vagin a part, hem de posar 'number=proposition'
\defineenumeration

Re: [NTG-context] I can't put footnote

2009-07-22 Thread Xan

En/na Hans Hagen ha escrit:

Xan wrote:


No, with the version line commented I get the same error:


i don't get that error so i need a smaller test file

Hans


I hope this serves you. Now I have another error. What fails???

Xan.

% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt] % cmr, 11pt

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
%\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
% Format de marges
%\setuplayout[topspace=1.5cm, % marge d'adalt
%margin=1.5cm, %marges dels costats
%header=1.0cm,%separació entre adalt i primera línia
%footer=1.0cm,%separació entre abaix i darrera línia
%width=fit,height=fit,backspace=2cm]



% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad
 probseminar/nagorko/slides.pdf]
%\useURL[govern-me][http://sgtrelinst.caib.es/llibrestil/00index.html][][http://sgtrelinst.caib.es/llibrestil/00index.html]
%\useURL[context-manual-pdf][http://www.pragma-ade.com/general/manuals/cont-eni.pdf][][http://www.pragma-ade.com/general/manuals/
 cont-eni.pdf]
%\useURL [contextgarden] [{http://www.contextgarden.net}]

%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfc}, header=nomarking]
\setuphead[subsection][style={\bfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=memoria,sort=author]
\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=cite]%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]
%\setupformulae[indentnext=yes]

% Vertical spaces between paragraphs
\setupwhitespace[small]

%Itemize
\setupitemize[each][indentnext=no,margin=2em] % [identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

% Mathematical packets
\usemodule[newmat]
\usemodule[math-ams]

% Heads and footers
%\setupfootertexts[][{\tfx \currentdate}]
%\setupfootertexts[\pagenumber/\lastpage]
%\setupfooter[text][before=\hrule]
%\setupheader[text][after=\hrule]
%\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]
%\setupheadertexts[][{\tfx \currentdate}]


% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}
\hyphenation{pa-rells}
\hyphenation{ge-ne-rat}

% Modules
\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]
%\usetikzlibrary[trees]



% AMSTHM equivalent
%% Exercici
\defineenumeration
  [exercici]
  
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},after={\stopframedtext\egroup}]

%% Lema 
\defineenumeration
  [lema]
  [text={Lema}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic

%% Proposició, corol·laris, teoremes.
%% Comparteix els nombres amb lema
%% Si volem que vagin a part, hem de posar 'number

[NTG-context] Problems with bibtex and @incollection

2009-06-06 Thread Xan

Hi,

When I put one reference as @incollection Bibtex does not show me the 
title of the article in the book, but yes the booktitle. Why?. Anyone 
could help me please.


I attached the files

Xan.

Please CC me
@article{bridson,
 author = Martin R. Bridson,
 title = On the geometry of normal forms in discrete groups,
 journal = Proceedings of the London Mathematical Society,
 year = 1993,
 volume = 67,
 pages = 595-616
}

@article{riley,
author = Tim R. Riley,
title = The geometry of groups satisfying weak almost-convexity or weak geodesic-combability conditions,
journal = Journal of Group Theory,
year = 2002,
volume= 5,
pages = 513-525
}

@book{epstein,
 author = Epstein, David B. A. and J. W. Cannon and D. F. Holt and S. V. F. Levy and M. S. Paterson and W. P. Thurston,
 title = Word processing in groups,
 publishers=Jones and Barlett Publishers,
 year= 1992
}


@book{delaharpe,
 author= de la Harpe, Pierre,
 title = Topics in Geometric Group Theory,
 publishers = University of Chicago Press,
 series= Chicago Lectures in Mathematics,
 year = 2000
}

@incollection{bridson-tutorial,
 author= Martin R. Bridson,
 title = {{The geometry of the word problem}},
 booktitle= Invitations to Geometry and Topology,
 year = 2002,
 publisher = Oxford University Press,
 editor = Martin R. Bridson, Simon M. Salamon,
 pages=29-92
}% interface=en output=pdftex
%\environment capcalera.context % Capçalera

% Regime
\enableregime[utf]

% Choose a font
\setupbodyfont [cmr,11pt]

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

% Choose a language, and associated hyphenation rules.
%\language [ca]
\mainlanguage[ca]


% Page number
\setuppagenumbering [location={footer}]

% White space between paragraphs
%\setupwhitespace [big]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups
% Format de marges
\setuplayout[topspace=1.5cm, % marge d'adalt
margin=1.5cm, %marges dels costats
header=1.0cm,%separació entre adalt i primera línia
footer=1.0cm,%separació entre abaix i darrera línia
width=fit,height=fit,backspace=2cm]



% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad
 probseminar/nagorko/slides.pdf]
%\useURL[govern-me][http://sgtrelinst.caib.es/llibrestil/00index.html][][http://sgtrelinst.caib.es/llibrestil/00index.html]
%\useURL[context-manual-pdf][http://www.pragma-ade.com/general/manuals/cont-eni.pdf][][http://www.pragma-ade.com/general/manuals/
 cont-eni.pdf]
%\useURL [contextgarden] [{http://www.contextgarden.net}]

%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\bfc}, header=nomarking]
\setuphead[subsection][style={\bfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=tfm,sort=author]
\setuppublications [alternative=ams,numbering=yes, sorttype=bbl, 
criterium=cite]%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]
%\setupformulae[indentnext=yes]

% Vertical spaces between paragraphs
\setupwhitespace[small]

%Itemize
\setupitemize[each][identnext=yes,margin=2em]
\setupitemize[each][headstyle=bold]
%\setupitemize[a][right=),stopper=]

% Mathematical packets
\usemodule[newmat]
\usemodule[math-ams]

% Heads and footers
\setupfootertexts[\pagenumber/\lastpage]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx Màster de Matemàtiques}][{\tfx 
\jobname.\ConTeXt{}.\currentdate}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{pro-ble-ma}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{cor-res-po-nents}

% Modules
\usemodule[tikz]
\usemodule[pgfmath]
\usetikzlibrary[mindmap,arrows,calc,decorations.pathmorphing,decorations.markings]
%\usetikzlibrary[trees]


% AMSTHM equivalent
%% Exercici
\defineenumeration
  [exercici]
  
[text={Problema},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame

Re: [NTG-context] The ultimate (?) float problem

2009-05-14 Thread Piotr Kopszak
I think I more or less got the idea of what is possible. But let me
describe my project. Maybe you might come up with a better solution.
I'm going to typeset a diary written and drawn by an illustrator and
graphic designer 70 years ago. What is unique, it consists of
handwritten pages which were already composed for publication. So in
fact I have to preserve both the juxtaposition of illustrations and
the text (give or take line or two). As basically the text should not
flow between pages I guess I could set the whole thing with layers
only. The biggest problem seems how to control placement of layers so
that the text inside them is set on the grid. Here is my initial setup
for a single page.

\definelayer  [figure][width=\overlaywidth,height=\overlayheight]
\defineoverlay[figure][{\directsetup{figure}\tightlayer[figure]}]
\setupcolors[state=start]
\setupbackgrounds[page][background=figure]
\setuppagenumbering[location={footer,right}]
\usetypescript[palatino]
\setupbodyfont[palatino,14pt]
\starttext
\startbuffer[zapf]
\input zapf
\stopbuffer
\startbuffer[hawking]
\input hawking
\stopbuffer

\flushlayer[figure]

\startsetups figure
\setlayerframed[figure][frame=off,x=25mm,y=43mm]{\externalfigure[cow][width=\textwidth,height=40mm]}
\setlayerframed[figure][frame=off,x=25mm,y=90mm,align=normal,width=\textwidth]{\getbuffer[zapf]}
\setlayerframed[figure][frame=off,x=80mm,y=150mm]{\externalfigure[cow][width=30mm,height=100mm]}
\setlayerframed[figure][frame=off,x=25mm,y=150mm,align=normal,width=50mm]{\getbuffer[hawking]}
\setlayerframed[figure][frame=off,x=120mm,y=150mm,align=normal,width=50mm]{\getbuffer[hawking]}
\stopsetups
\stoptext

Of course, it looks like it's going to take couple of months of rather
tedious manual work so any ideas how to make it easier are welcome.

Piotr

2009/5/12 luigi scarso luigi.sca...@gmail.com:


 On Tue, May 12, 2009 at 3:32 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 12.05.2009 um 15:18 schrieb Piotr Kopszak:

 Yes, exactly.

 \setuppapersize [S6]
 \setuptolerance [soepel,rek]

 better

 \setuppapersize [S6][S6]
 \setuptolerance [tolerant,stretch]
 --
 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
 ___





-- 
http://okle.pl
___
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] The ultimate (?) float problem

2009-05-12 Thread Wolfgang Schuster


Am 12.05.2009 um 15:18 schrieb Piotr Kopszak:


Yes, exactly.


\setuppapersize [S6]
\setuptolerance [soepel,rek]
\setupcolors[state=start]
\setupfooter[strut=no]
\setupwhitespace[big]

\setuplayout
  [rightmargin=5cm,
   width=fit,
   margin=0pt,
   edgedistance=1cm,
   footer=4cm,
   footerdistance=1cm,
   header=0cm]

\setuptexttexts  [margin][][\vbox{\flushtextflow{alpha}}]
\setupfootertexts[margin][][\vbox{\flushtextflow{beta}}]
\setupfootertexts[\vbox{\flushtextflow{gamma}}][]

\definetextflow [alfa]  [width=\rightmarginwidth]
\definetextflow [beta]  [width=\rightmarginwidth]
\definetextflow [gamma] [width=\footerheight]

\starttext

\dorecurse{50}
  {\getrandomnumber{\funny}{0}{8}
   \ifcase\funny \starttextflow[alfa]  \input tufte.tex   \stoptextflow
   \or   \starttextflow[beta]  \input knuth.tex   \stoptextflow
   \or   \starttextflow[gamma] \input materie.tex \stoptextflow
   \or  {\bf   TUFTE}\quad \input tufte   \par
   \or  {\bf   TUFTE}\quad \input tufte   \par
   \or  {\bf   KNUTH}\quad \input knuth   \par
   \or  {\bf   KNUTH}\quad \input knuth   \par
   \or  {\bf MATERIE}\quad \input materie \par
   \else{\bf MATERIE}\quad \input materie \par
   \fi}

\stoptext

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] The ultimate (?) float problem

2009-05-12 Thread Piotr Kopszak
Right. If I understand correctly on the first look textflows appear
in fixed locations on consecutive pages. I guess I'm banging my head
against a wall but what about if it was possible to have them side by
side on the same page?



2009/5/12 Wolfgang Schuster schuster.wolfg...@googlemail.com:

 Am 12.05.2009 um 15:18 schrieb Piotr Kopszak:

 Yes, exactly.

 \setuppapersize [S6]
 \setuptolerance [soepel,rek]
 \setupcolors    [state=start]
 \setupfooter    [strut=no]
 \setupwhitespace[big]

 \setuplayout
  [rightmargin=5cm,
   width=fit,
   margin=0pt,
   edgedistance=1cm,
   footer=4cm,
   footerdistance=1cm,
   header=0cm]

 \setuptexttexts  [margin][][\vbox{\flushtextflow{alpha}}]
 \setupfootertexts[margin][][\vbox{\flushtextflow{beta}}]
 \setupfootertexts        [\vbox{\flushtextflow{gamma}}][]

 \definetextflow [alfa]  [width=\rightmarginwidth]
 \definetextflow [beta]  [width=\rightmarginwidth]
 \definetextflow [gamma] [width=\footerheight]

 \starttext

 \dorecurse{50}
  {\getrandomnumber{\funny}{0}{8}
   \ifcase\funny \starttextflow[alfa]  \input tufte.tex   \stoptextflow
   \or           \starttextflow[beta]  \input knuth.tex   \stoptextflow
   \or           \starttextflow[gamma] \input materie.tex \stoptextflow
   \or          {\bf   TUFTE}\quad \input tufte   \par
   \or          {\bf   TUFTE}\quad \input tufte   \par
   \or          {\bf   KNUTH}\quad \input knuth   \par
   \or          {\bf   KNUTH}\quad \input knuth   \par
   \or          {\bf MATERIE}\quad \input materie \par
   \else        {\bf MATERIE}\quad \input materie \par
   \fi}

 \stoptext

 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
 ___




-- 
http://okle.pl
___
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] more stretch

2009-03-31 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi,

On Mon, 30 Mar 2009 16:49:57 -0600, Vyatcheslav Yatskovsky  
yatskov...@gmail.com wrote:


How to instruct TeX to relax and allow more spacing between words (or  
more stretching?)


\setuptolerance .. options in the manual

Best wishes
Idris

--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] specific document layout with ConTeXt

2008-12-28 Thread Aditya Mahajan
]

\defineenumeration
  [proof]
  [   location=IEEEproof,
  text=Proof,
 headstyle=italic,
titlestyle=italic,
  distance=1ex,
 style=normal,
number=no,
 titleleft=,
titleright=,
   stopper=.,
   closesymbol=\math{\square},
  ]

\definedescription
  [remark]
  [stopper=:,width=broad,location=IEEE]


% }}}

% Itemize {{{
\setupitemize[each][packed,joinedup]

\setupitemgroup
  [itemize]
  [each]
  [margin=1pc,
   distance=0pt,
   itemalign=left,
   headstyle=italic,
   indentnext=no]

\setupitemgroup
  [itemize]
  [each]
  [broad,fit]

% }}}

% Formulas {{{

\optimizedisplayspacingtrue

\defineblank[displayskip][1.5ex plus 4pt minus 2pt]

\setupsubformulas [separator=]
\setupformulas[indentnext=auto,numberstyle=normal,
   spacebefore=displayskip,
   spaceafter=displayskip]

\definereferenceformat  [doeqref]   [left=(,right=)]
\def\eqref[#1]{{\normal \doeqref[#1]}}

\usemodule  [mathsets]
\definemathset[EXP] [text={\doublestroke{E}}]
\definemathset[PR]  [text=\Pr,left=(,right=)]
\definemathset[IND] [text={\doublestroke{1}},left={[},right={]}]
\definemathset[PSP] [text={\doublestroke{P}},left={(},right={)}]
\definemathset[SET]

%D These should go to the core.   

\definemathsymbol [lvert] [open]  [sy] [6A] [ex] [0C]
\definemathsymbol [rvert] [close] [sy] [6A] [ex] [0C]

% Do not know if there is a mistake in core-mat, but this does look better.
\unexpanded\def\dointertext#1%
  {\penalty\postdisplaypenalty
   \vbox{\forgetall\noindent#1\par}%
   \penalty\predisplaypenalty}

\unexpanded\def\stackrel#1#2%
{\mathrel{\mathop{#2}\limits^{#1}}}

% Float and Figures {{{

\usemodule  [float-test]
\setupcaptions
[headstyle=normal,stopper=.,distance=1ex,
 style={\switchtobodyfont[small]}]
\setupfloat [figure]  [indentnext=auto]

\setuplabeltext [figure=Fig~]

%}}}

% MP Settings {{{
\startMPinclusions
% Arrowhead Modifications for TAOCP. Copied from some webpage of Knuth. 
% These arrows are better in appearance than the default mp arrows.
ahangle := 35;
ahlength := 6;

vardef arrowhead expr p =
  save q, e, f, g; path q; pair e; pair f; pair g;
  e = point length p of p;
  q = gobble(p shifted -e cutafter makepath(pencircle scaled 2ahlength))
cuttings;
  f = point 0 of (q rotated 0.5ahangle) shifted e;
  g = point length q of (reverse q rotated -0.5ahangle) shifted e;
  f .. {dir (angle direction length q of (q rotated 0.5ahangle) - 0.3ahangle)}e
 e{dir (angle direction 0 of ((reverse q) rotated -0.5ahangle)+0.3ahangle)} .. g
enddef;

def _finarr text t =
  draw _apth t;
  draw arrowhead _apth t% do not fill
enddef;

def _findarr text t =
  draw _apth t;
  draw arrowhead _apth withpen currentpen t;
  draw arrowhead reverse _apth withpen currentpen t
enddef;
\stopMPinclusions

% }}}

% Setups {{{
\setupindenting[small,yes]
\setupwhitespace[none]

\setuptolerance[vertical,tolerant]

% General Macros 
\def\IE{i.e.}
\def\EG{e.g.}

\stopmodule

% vim: nowrap
___
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] Kerning

2008-11-14 Thread Hans Hagen
Bart C. Wise wrote:

 I tried the above code and it failed.  I looked around on the ConTeXt site 
 and 
 the web in general.  It seems like a \defineproperty[stretch] needs to be 
 declared, but I can't find it anywhere.  You'll have to excuse my ignorance, 
 but will you be explicit on how to use the \startproperty[stretch] stretch 
 \stopproperty.

hm, something is missing in the mkii file

\unprotect \definepropertyhandler \v!stretch{0} \protect

(you can also tune the 'normal effect')

consider all this a hack, since tex does not know about the right 
dimensions

in mkiv there's

\start \dosetstretch{.25em} \setuptolerance[tolerant,stretch] \input 
tufte \endgraf \stop
\start \dosetstretch{.5em} effe flink doorfietsen \stop

(not yet interfaced but it should work)

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
___


<    1   2   3   >