Re: [NTG-context] Justifying last line of paragraph

2010-09-27 Thread Taco Hoekwater

On 09/26/2010 06:01 PM, Elias Oltmanns wrote:

Taco Hoekwatert...@elvenkind.com  wrote:

On 09/25/2010 08:03 PM, Elias Oltmanns wrote:





The first couple of lines of the paragraph beginning on page two should
really go on the previous page. Since the hang mechanism of \placefigure
doesn't work due to the page break, I'd like to split this paragraph
into two logical entities, so TeX can put the first on the first page
and treat the second as a separate paragraph flowing around the picture.
However, the reader should not be aware of this split.

Any help much appreciated,


I don't know of any automatic solution to this problem (except _perhaps_
columnsets could help) but the simplest way to split a paragraph into
two paragraphs while still looking like one is by inserting a macro
like this at an existing break point:


Thanks Taco, this appears to be exactly what I was looking for. One more
thing though: is there a simple way to arrange for all arguments
provided to \splitpar to be passed on to \placefigure in a definition
like this:


Something like this should work:

   \def\splitpar#1%
 {\bgroup
 
  \gdef\splitparcommands{\placefigure#1\parskip...}%
  \aftergroup \splitparcommands
  \egroup}

The definition is all about \aftergroup: each \aftergroup adds exactly
one *token* to the list of things to run after the group ends. Passing
arguments that way is tedious and very error prone (you would need
something like \adtergroup [ \aftergroup l \aftergroup e \aftergroup f
... ), so defining a global macro and passing that is better.

I did not do this in the earlier version because if you can get around
using \gdef, it is usually wise to do so. Sorry, I have no idea whether
it is possible to do this stuff with a nicer, more ConTeXt interface.

Best wishes,
Taco









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

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


Re: [NTG-context] \definenamespace and module setup (was: Info about creating modules for beginners.)

2010-09-27 Thread Philipp Gesang
Hi all!


On 2010-09-25 19:35:31, Wolfgang Schuster wrote:
 
 Am 25.09.2010 um 17:07 schrieb Philipp Gesang:
 
  Could you please explain what these other parameters do:
   style=yes,
   parent=fb
  Also, what other values would the parameter ‘setup’ accept
  besides ‘list’?
 
 I’ll come back to this later.

Thanks in advance! For now there’s question marks galore on the
wiki page.

 +---++--+-+
 | Namespace | Name   | File | Description |
 +---+-+
 | fb| fancybreak | t-fancybreak | …   |
 +---++--+-+
 | … | …  | …| …   |

Hmm, i was thinking with a proper hyperlink the description would
be superfluous. But as there’s plenty of horizontal space in the
table that is not a problem. (After all, it’s not wikipedia; can’t
hurt to have some real information.)

I think it has to be up to the maintainer of module to register
it on the wiki. If the module is orphaned, a regular user should
be fine as well.

The wiki page is written with mkiv in mind only. Now, should the
module list extend to mkii style modules as well or should we
wait for the modules to be adapted by the maintainers? An extra
column indicating the version could do as well.


Regards, Philipp

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


pgppWTM1l9Eb1.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] Tagged register

2010-09-27 Thread Hans Hagen

On 26-9-2010 8:49, Steffen Wolfrum wrote:


argument  \t!registerpagerange


i'll fix this

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] itemize in TABLE

2010-09-27 Thread Andreas Harder
Hi all,

please have a look at the following example

\starttext  \showframe
\startbuffer
  \startitemize[n,fit][left={Abb. },distance=.5em]
  \item \dorecurse{20}{eins }
  \item \dorecurse{20}{zwei }
  \item \dorecurse{20}{drei }
  \stopitemize
\stopbuffer

\bTABLE % it works if you comment out the table
  \bTR\bTD \getbuffer \eTD\eTR
\eTABLE

\getbuffer
\stoptext

It seems that using itemize in TABLE disturbs the following lists. Is there 
something I can do about it?

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
___


[NTG-context] figure numbering in appendices

2010-09-27 Thread Mojca Miklavec
Dear list,

The following code numbers the figures in appendices with Roman
numbers in MKIV (while in MKII there is no difference at all). On top
of that it doesn't restart the counter, but simply continues. In my
opinion the Roman numerals should be easy to configure, but not set by
default, and it particular figures should not be numbered with
1,2,3,IV,V,VI, ... (Also, usually the pages are numbered with
lowercase roman numbers in frontmatter, not in appendices.)

\starttext
\startfrontmatter
\placefigure{first}{first}
\page
\placefigure{second}{second}
\stopfrontmatter
\startbodymatter
\placefigure{third}{third}
\stopbodymatter
\startappendices
\placefigure{fourth}{fourth}
\page
\placefigure{fifth}{fifth}
\stopappendices
\stoptext

Mojca
___
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] modify resume

2010-09-27 Thread pol stra

Ok i removed \definefont and \Dings :
It works now !

I’ve got two last questions:
how can I make starting the head at the backspace (in margin) but continuing in 
text? 
where can i find documentation about hbox,hfill etc. ?

Thanks

From: r...@hotmail.fr
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] modify resume
Date: Wed, 22 Sep 2010 13:55:12 +0200








I’m sorry but it still don’t work.
I add \usesymbols[mvs] but i have this message:

! Font \**Dings**:=MarVoSym at 8.3pt not loadable: Metric (TFM) file not fo
und.
to be read again 
   \relax 
\definefontlocal ...ndcsname \lastfontname \relax 
  \expandafter \let \expanda...

\dododefinefont ...ontspec {#2}\rawfontidentifier 
  \let \localrelativefontsiz...

\redodefinefont #1#2#3-\dododefinefont {#1}{#2}
\doifsetupselse {#3} {\setup...

\placehead ...} \hbox {\addressb } \hbox {{\Dings 
  B} \email } \hbox {{\Dings...
l.14 \placehead

I think this line is suspect:
\definefont[Dings][name:MarVoSym]
Why name: ?


  ___
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] unnumbered chapters

2010-09-27 Thread Alan BRASLAU
A standard (wiki, manual) means of obtaining an unnumbered chapter
is to use \title, but this does not create an entry into the toc.
So one can create a new head, as in:

\definehead [unnumberedchapter] [chapter]
\setuphead  [unnumberedchapter] [number=no]
\definecombinedlist [content] [unnumberedchapter,chapter,section]
\setuplist  [unnumberedchapter] [headnumber=no]

Bof! (pardon my French, as they say in polite circles)


Much easier (or cleaner if you wish), using the structured syntax, is:

\startchapter [number=no,incrementnumber=no,
   title={Conclusions}]
\stopchapter

(The {} are not necessary, but I believe that this may make things more
readable, given the practice to enclose typeset text within curly braces.)



A problem occurs, though, if we use labels, as in:

\setuplabeltext [chapter={Chapter }] % with trailing space; blank by default

(which Hans *never, ever* uses, by the way...)
We then get:
Chapter 1 First
Chapter 2 Second
Chapter Conclusions


I think that the macros are missing a label=no option.
Unless, that is, I am missing something obvious.

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
___


[NTG-context] getmarking does not use mark?

2010-09-27 Thread Steffen Wolfrum


Hi,

did I misunderstood something ... or is this simply a bug?!

In that example below \getmarking uses the value of title ... and not of mark!


(is there an other command to access the value of mark?)

Steffen

---

\def\KolumneL{\headnumber[chapter]\enskip\getmarking[chapter]}
\def\KolumneR{\headnumber[section]\enskip\getmarking[section]}

\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]
\setupheadertexts
[\vtop{\startalignment[center]\KolumneR\stopalignment}] [pagenumber]
[pagenumber] [\vtop{\startalignment[center]\KolumneL\stopalignment}]

\starttext

\startchapter[]
test
\stopchapter

\startsection[
 title={title},
 bookmark={bookmark},
 mark={mark},
 list={list}]

test\page test \page test

\stopsection

\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] getmarking does not use mark?

2010-09-27 Thread Wolfgang Schuster

Am 27.09.2010 um 17:36 schrieb Steffen Wolfrum:

 
 
 Hi,
 
 did I misunderstood something ... or is this simply a bug?!
 
 In that example below \getmarking uses the value of title ... and not of mark!

The name of the key is marking”.

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] getmarking does not use mark?

2010-09-27 Thread Steffen Wolfrum

Am 27.09.2010 um 17:50 schrieb Wolfgang Schuster:

 
 Am 27.09.2010 um 17:36 schrieb Steffen Wolfrum:
 
 
 
 Hi,
 
 did I misunderstood something ... or is this simply a bug?!
 
 In that example below \getmarking uses the value of title ... and not of 
 mark!
 
 The name of the key is marking”.



I don't understand.

In context-excursion it says ...

After the definition texts can be marked by:
\marking[.1.]{.2.}
.1. name .2. text
and recalled by:
\getmarking[.1.][.2.]

But in MkIv sections there is already text marked ...

\startsection[
title={title},
bookmark={bookmark},
mark={mark},
list={list}]

At least it looks as if there were some text marked by mark={mark}!

Just, how can it be accessed??

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] getmarking does not use mark?

2010-09-27 Thread Wolfgang Schuster

Am 27.09.2010 um 18:16 schrieb Steffen Wolfrum:

 In that example below \getmarking uses the value of title ... and not of 
 mark!
 
 The name of the key is marking”.
 
 
 
 I don't understand.
 
 In context-excursion it says ...
 
 After the definition texts can be marked by:
 \marking[.1.]{.2.}
 .1. name .2. text
 and recalled by:
 \getmarking[.1.][.2.]
 
 But in MkIv sections there is already text marked ...
 
 \startsection[
 title={title},
 bookmark={bookmark},
 mark={mark},
 list={list}]
 
 At least it looks as if there were some text marked by mark={mark}!

\startsection[...,marking=mark,...]

...

\stopsection

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] getmarking does not use mark?

2010-09-27 Thread Steffen Wolfrum

Am 27.09.2010 um 18:21 schrieb Wolfgang Schuster:

 
 Am 27.09.2010 um 18:16 schrieb Steffen Wolfrum:
 
 In that example below \getmarking uses the value of title ... and not of 
 mark!
 
 The name of the key is marking”.
 
 
 
 I don't understand.
 
 In context-excursion it says ...
 
 After the definition texts can be marked by:
 \marking[.1.]{.2.}
 .1. name .2. text
 and recalled by:
 \getmarking[.1.][.2.]
 
 But in MkIv sections there is already text marked ...
 
 \startsection[
 title={title},
 bookmark={bookmark},
 mark={mark},
 list={list}]
 
 At least it looks as if there were some text marked by mark={mark}!
 
 \startsection[...,marking=mark,...]
 
 ...
 
 \stopsection




Time is fleeting, madness takes its toll.


... and I swear: last year in April it was

\startchapter[label=...,title={...},bookmark={...},mark={...},list={...},reference={...}]
 


Thanks Wolfgang!
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 affecting MPgraphic?

2010-09-27 Thread Marko Schütz Schmuck
Dear Aditya,

At Fri, 24 Sep 2010 11:21:01 -0400 (EDT),
Aditya Mahajan wrote:
 
 On Fri, 24 Sep 2010, Marko Schütz Schmuck wrote:
 
  Dear All,
 
  I only very recently updated from
 
  ConTeXt  ver: 2005.01.31
 
  to
 
  ConTeXt  ver: 2009.08.19 17:10 MKII
 
  Previously, using env-assign.tex as described in a 2006 PracTeX
  article worked fine. With the new version the drop shadow box is not
  rendered.
 
 Do you have write18 enabled (It is disabled by default on most 
 distributions). See http://wiki.contextgarden.net/write18

the setting was

shell_escape = p

and mpost was listed in the permissible commands. I changed it to 

shell_escape = 1 

and rebuilt formats. This did not fix my issue.

 If so, you either need to enable write18 or use \runMPgraphicsfalse on the 
 top of your file.

This solved it. Thanks.

Marko

pgpQLTmi3ltsV.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] change affecting MPgraphic?

2010-09-27 Thread Aditya Mahajan

On Mon, 27 Sep 2010, Marko Schütz Schmuck wrote:


Dear Aditya,

At Fri, 24 Sep 2010 11:21:01 -0400 (EDT),
Aditya Mahajan wrote:


On Fri, 24 Sep 2010, Marko Schütz Schmuck wrote:


Dear All,

I only very recently updated from

ConTeXt  ver: 2005.01.31

to

ConTeXt  ver: 2009.08.19 17:10 MKII

Previously, using env-assign.tex as described in a 2006 PracTeX
article worked fine. With the new version the drop shadow box is not
rendered.


Do you have write18 enabled (It is disabled by default on most
distributions). See http://wiki.contextgarden.net/write18


the setting was

shell_escape = p

and mpost was listed in the permissible commands. I changed it to

shell_escape = 1


That should be t (tee) rather than 1 (one)

  shell_escape = t


and rebuilt formats. This did not fix my issue.


There is no need to rebuild the formats.

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] HowUgly setupregister

2010-09-27 Thread Hans Hagen

On 26-9-2010 10:45, Steffen Wolfrum wrote:

Hi,

in MkII I used for formatting the index-register a command=\HowUgly

\def\HowUgly#1{\doHowUgly#1\relax}
\def\doHowUgly#1#2\relax{\iffirstregisterentry{\crlf \crlf 
$\backslash$blank[biggerblank]$\backslash$hangIndex$\{\backslash$bf 
#1$\}$}#2\else#1#2\fi}


In MkIV there is no \iffirstregisterentry any more. What is the corresponding 
command today?


none so you need to keep track of it in HowUgly


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Bug in \type

2010-09-27 Thread Aditya Mahajan

Hi,

There is a bug in buff-ver.mkiv. Minimal example:

\starttext
\type+\test{+
\stoptext

gives

Runaway argument?
\stoptext
! File ended while scanning use of \dodotypeDD.

system   error on line 0 in file : File ended while scanning use 
of \dodotypeDD ...


empty file

inserted text
\par
* ./test

This example works fine in MkII.

Bugfix: In buff-ver.mkiv change line395

   \setcatcodetable \typcatcodesa

to

   \setcatcodetable \vrbcatcodes


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
___


[NTG-context] \startcases...\stopcases alignment

2010-09-27 Thread Martin 'golodhrim' Scholz
Hi everyone,

I've got one big question,

if I type something like

\startcases
\NC A \NC B\NR
\NC C \NC D
\stopcases

Both the A and B are left justified and I would like to have them 
horizontally centered above the C and D. Is there a way to do so 
without a matrix usage or is for that the matrix the only solution...

Greetings
-- 
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Germany
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 7990138
e-Mail: scholz@googlemail.com

I think we're in trouble.
-- Han Solo

___
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] \startcases...\stopcases alignment

2010-09-27 Thread Aditya Mahajan

On Tue, 28 Sep 2010, Martin 'golodhrim' Scholz wrote:


Hi everyone,

I've got one big question,

if I type something like

\startcases
\NC A \NC B\NR
\NC C \NC D
\stopcases

Both the A and B are left justified and I would like to have them
horizontally centered above the C and D. Is there a way to do so
without a matrix usage or is for that the matrix the only solution...


Currently, mathcases do not accept an align key. So matrix is the only 
solution.


\definemathmatrix
   [cases]
   [align=middle, left=\left\{\, right=\right.]

should work.

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
___