Re: [NTG-context] Referncing the Bibliography Appendix

2012-04-26 Thread Philipp Gesang
On 2012-04-25 22:26, Kip Warner wrote:
 Hey list,
 
 How do I set a reference to my bibliography. I don't mean a citation,
 but the complete list. I have a \completepublications already which
 dumps the list properly, but I cannot link to it. I tried
 \in{appendix}[References] and \in{appendix}[Publications], but neither
 works.

Like any other structure element? (Btw. I don’t know anything
about your document, but it may be wiser to not reference the
whole appendix, which may contain additional sections, but rather
only the part where the bibliography is located.)

This listing assumes you use only one bibliography on chapter
level.


\setupinteraction [state=start]

\startpublication [
  k=bh,
  t=book,
  a={Bringhurst},
  y=2008,
  n=2,
  s={Elements},
]
  \author[]{Robert}[]{}{Bringhurst}
  \pubyear{2008}
  \title{The Elements of Typographic Style}
  \edition{3.2}
  \city{Point Roberts WA, Vancouver}
\stoppublication

\starttext

\startbodymatter
  \startchapter[title=Whatever]
For more info see the Bibliography on \at{page}[bib_chapter].
  \stopchapter
\stopbodymatter

\startappendices
  %% Old school: \chapter[bib_chapter]{References} ...?
  \startchapter[
title=References,
reference=bib_chapter,
  ]

\placepublications[criterium=all]

  \stopchapter
\stopappendices

\stoptext \endinput


Regards
Philipp



 
 -- 
 Kip Warner -- Software Engineer
 OpenPGP encrypted/signed mail preferred
 http://www.thevertigo.com



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


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


pgpqbT0B909QK.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] FLOWcharts - connector line length?

2012-04-26 Thread Mari Voipio
Hi,

I've just fallen in love with the chart module, my first flowchart is
almost done. I'll never draw these by hand again... Besides, it
seems that the chart module forces me to do flowcharts right, that
should help with consistency and legibility. Now I just have to read a
bit on how to do charts properly!

I've figured out about text font and box sizes and making connections
and all that, but there's one important question that I just can't
seem to find the answer for: how do I adjust the connector line
length? My labels just don't fit between the boxes and I'd have a
whole A4 for a ny=5 flowchart, so I'd have space...


(Oh, the other question is: is there a way to span a cell across
several slots on the grid? If not, I can deal with *that*, the line is
a lot more of a problem.)



Thank you in advance,

Mari
(apparently in the expand your ConTeXt skills mode this week)
___
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] Registers with distinguishable entries.

2012-04-26 Thread Robert Blackstone
Dear list,

For a book in the area of musicology I would like to make one register with 
entries of different kinds, distinguishable by their appearance in the  
register (or index or whatever).
The index entries will mostly be authors, including composers, musical terms 
and musical compositions. The titles of the compositions and the foreign words 
are set in italic characters throughout in the text of the book.
What I would like is to be able to distinguish all entries according to whether 
they are treated in the text, are shown in a musical example, or are mentioned 
only in a foot- or endnote.

In many books page numbers indicating illustrations are set in italics. 
Pagenumbers indicating foot- or endnotes often have a suffix n.
Furthermore, when an indexed item is discussed on a number of consecutive 
pages, usually a range is given in the index, like 144-53, or 143 ff.
Can all this be done in ConTeXt, and if so, can anybody give me advice on how 
to do it?

I have tried making three different Registers, for text, for illustrations and 
for notes, but I cannot figure out how to combine them into one index.  But 
also, whatever I set in \setupregister, they all look exactly the same: 
textstyle regular, pagestyle slanted. Moreover, in \setupindex (or whatever 
other name for the register), [indicator=no] is ignored. 
Are these bugs or am I doing things the wrong way?

I add a (not so) minimal example.

Thanks in advance for any help.

Robert Blackstone



Registers_multiple-test3.tex
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] Registers with distinguishable entries.

2012-04-26 Thread S Barmeier
Leaving out the plural in \setupregister gives you the setup you set up.

\defineregister[Note][Notes]
\setupregister[Note][n=2,pagestyle=small,textstyle=normal]

\defineregister[Text][Texts]
\setupregister[Text][n=2,textstyle=normal,pagestyle=normal]

\defineregister[Music][Musics]
\setupregister[Music][n=2,textstyle=normal,pagestyle=slanted]

As for the other questions, +1. Those are questions I was going to ask
myself.

Best wishes,
Severin
___
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] Registers with distinguishable entries.

2012-04-26 Thread Philipp Gesang
Hi Robert,

On 2012-04-26 12:07, Robert Blackstone wrote:
 In many books page numbers indicating illustrations are set in italics. 
 Pagenumbers indicating foot- or endnotes often have a suffix n.

This I’d like to have in Context, too.

 Furthermore, when an indexed item is discussed on a number of consecutive 
 pages, usually a range is given in the index, like 144-53, or 143 ff.

You want the “compress” switch in placeregister, or indicate
ranges with \{start,stop}register:


\defineregister [demo] [demoes]
\starttext

\demo{Demoitem} foo
\page[yes]
\demo{Demoitem} foo
\page[yes]
%%% Here’s the range; should work without “compress”
\startregister[demo][demorange]{Demorange}
\demo{Demoitem} foo
\page[yes]
\demo{Otheritem} bar
\page[yes]
\demo{Otheritem} bar
\page[yes]
\stopregister[demo][demorange]%% = you’ll need to explicitly terminate the 
ranges so they can overlap
\demo{Otheritem} bar
\page[yes]
\demo{Demoitem} foo
\page[yes]
\demo{Demoitem} foo

\page[yes]
 Here’s the relevant bit:
\placeregister [demo] [compress=yes]

\stoptext


Btw. have you read the small print: 
http://wiki.contextgarden.net/Registers#Tricks ?

Regards
Philipp


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


pgpdyp5QGeuVi.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] FLOWcharts - connector line length?

2012-04-26 Thread Mari Voipio
On Thu, Apr 26, 2012 at 10:30, Mari Voipio mari.voi...@iki.fi wrote:
 I've figured out about text font and box sizes and making connections
 and all that, but there's one important question that I just can't
 seem to find the answer for: how do I adjust the connector line
 length?


Answering to myself - DOH.


If I put my flowcells e.g. on rows 1, 3, 5 and 7, the lines are
automatically extended to reach past the unused rows - longer
distances between the flowcells.


The fact that there is a grid does not mean one has to fill the whole
thing, wider spacing is sometimes quite ok.

Now I really do feel stupid. :-D

On the other hand, the flowchart looks good, so no complaints about
the module, once again the bug was definitely between the chair and
the screen...



Mari
___
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] Registers with distinguishable entries.

2012-04-26 Thread Alan BRASLAU
On Thu, 26 Apr 2012 19:18:55 +0900
S Barmeier severinbarme...@googlemail.com wrote:

 \defineregister[Music][Musics]

Musics?

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] Example only works in mkii

2012-04-26 Thread Wolfgang Schuster

Am 25.04.2012 um 23:20 schrieb Bill Meahan:

 Hi, folks.
 
 I've tried running the example from the descriptions article on the wiki 
 and it works fine if I use MkII via texexec but fails miserably if I use 
 MlIV via context.  Outside of changing location to alternative in the 
 \definedescription command parameters, what else do I need to change to make 
 the example run with MkIV?

Which example doesn’t work?

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] FLOWcharts - connector line length?

2012-04-26 Thread Marco
On 2012-04-26 Mari Voipio mari.voi...@iki.fi wrote:

 I've figured out about text font and box sizes and making connections
 and all that, but there's one important question that I just can't
 seem to find the answer for: how do I adjust the connector line
 length? My labels just don't fit between the boxes and I'd have a
 whole A4 for a ny=5 flowchart, so I'd have space...

You can adjust the distance indirectly with changing the distance
between the cells:

\setupFLOWcharts [dx=8ex, dy=4em]

 Mari
 (apparently in the expand your ConTeXt skills mode this week)

Procrastination? Sounds like if you have important stuff to do ;)

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] Bug in \page [left]

2012-04-26 Thread Marco
Hi,

the example doesn't produce a page break. It works in older versions.

\starttext
\input knuth
\page [left]
\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] Bug in \page [left]

2012-04-26 Thread Wolfgang Schuster

Am 26.04.2012 um 17:57 schrieb Marco:

 Hi,
 
 the example doesn't produce a page break. It works in older versions.
 
 \starttext
   \input knuth
   \page [left]
   \input knuth
 \stoptext

The code for the left keyword was missing but I sent a fix for this to the dev 
list.

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] Example only works in mkii

2012-04-26 Thread Bill Meahan


On 04/26/2012 11:11, Wolfgang Schuster wrote:

Am 25.04.2012 um 23:20 schrieb Bill Meahan:


Hi, folks.

I've tried running the example from the descriptions article on the wiki and it works fine if I use MkII via 
texexec but fails miserably if I use MlIV via context.  Outside of changing location to 
alternative in the \definedescription command parameters, what else do I need to change to make the example run with 
MkIV?

Which example doesn’t work?

Wolfgang


This one:

\setupdescriptions[descr][
  headstyle=bold,style=normal,align=left,alternative=hanging,
  width=fit,margin=1cm]

\definedescription[descr][
  headstyle=bold]

\starttext
\startdescr{Para}
  This is a shorter item label, and some text that talks about it.
  The text is wrapped into a paragraph, with successive lines indented.

  This is another paragraph under the Para item.
  \startdescr{Sub Item}
This is a description of an item which is within the
Para item.
  \stopdescr
  \startdescr{Sub Item}
Another Sub Item
  \stopdescr
\stopdescr
\startdescr{Short with long title}
  A short item that's not part of that really long Para item.
\stopdescr

\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] [MKIV] Itemize nowhite option broken

2012-04-26 Thread Pierre-François Bonnefoi
Hello,

I'm currently porting my work to the mkIV version of ConTeXt :

I've found this annoying regression with this simple example :

\starttext

Some previous sentence before the list

\startitemize[columns,n,nowhite]
\item one
\item two
\stopitemize
\startitemize[continue,columns,nowhite]
\item one
\item two
\stopitemize
\startitemize[continue,columns,nowhite]
\item one
\item two
\stopitemize

And the text continues after the list

\stoptext

I get some space between itemization with mkIV that I don't get with mkII.

I use the standalone version on ConTeXt.
mtx-context | ConTeXt Process Management 0.52
mtx-context |
mtx-context | main context file: 
/Volumes/MacBookProInternal/Users/pef/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2012.04.25 17:29

Thank you for your support,
best regards,
Pierre-François Bonnefoi.

-- 
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] Example only works in mkii

2012-04-26 Thread Wolfgang Schuster

Am 26.04.2012 um 18:36 schrieb Bill Meahan:

 
 On 04/26/2012 11:11, Wolfgang Schuster wrote:
 Am 25.04.2012 um 23:20 schrieb Bill Meahan:
 
 Hi, folks.
 
 I've tried running the example from the descriptions article on the wiki 
 and it works fine if I use MkII via texexec but fails miserably if I use 
 MlIV via context.  Outside of changing location to alternative in the 
 \definedescription command parameters, what else do I need to change to 
 make the example run with MkIV?
 Which example doesn’t work?
 
 Wolfgang
 
 This one:
 
 \setupdescriptions[descr][
  headstyle=bold,style=normal,align=left,alternative=hanging,
  width=fit,margin=1cm]
 
 \definedescription[descr][
  headstyle=bold]
 
 \starttext
 \startdescr{Para}
  This is a shorter item label, and some text that talks about it.
  The text is wrapped into a paragraph, with successive lines indented.
 
  This is another paragraph under the Para item.
  \startdescr{Sub Item}
This is a description of an item which is within the
Para item.
  \stopdescr
  \startdescr{Sub Item}
Another Sub Item
  \stopdescr
 \stopdescr
 \startdescr{Short with long title}
  A short item that's not part of that really long Para item.
 \stopdescr
 
 \stoptext

The example works for me but it’s bad style to use \setup… before you have 
created the command with \define…

You can also remove “align=left” because this will make the whole text right 
aligned, with MkII this isn’t a problem because the setting doesn’t work.

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] Example only works in mkii

2012-04-26 Thread Bill Meahan

On 04/26/2012 13:10, Wolfgang Schuster wrote:

Am 26.04.2012 um 18:36 schrieb Bill Meahan:


[snip]

The example works for me but it’s bad style to use \setup… before you have 
created the command with \define…

You can also remove “align=left” because this will make the whole text right 
aligned, with MkII this isn’t a problem because the setting doesn’t work.

Wolfgang

[snip]

Switching the \define and \setup along with removing the align=left 
fixed it. Thanks!


BTW, the code was literally a copy-'n'-paste from the wiki page without 
any alteration by me. Probably should be fixed.


Thanks again!


___
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] Registers with distinguishable entries.

2012-04-26 Thread Robert Blackstone
On Thu, Apr 26, 2012 19:18:55 +0900
S Barmeier severinbarme...@googlemail.com
wrote


 Leaving out the plural in \setupregister gives you the setup you set up.

Thank you, Severin. I always wondered what the plural form of the name
between the second pair of square brackets in the \setup command was
for (I still do).
But anyway, this solved one problem.

Kind regards,
Robert
___
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] [MKIV] Itemize nowhite option broken

2012-04-26 Thread Marco
On 2012-04-26 Pierre-François Bonnefoi bonne...@unilim.fr wrote:

 I'm currently porting my work to the mkIV version of ConTeXt :
 
 I've found this annoying regression with this simple example :
 
 […]

 I get some space between itemization with mkIV that I don't get
 with mkII.

Confirmed with 2012.04.23 21:34

It works with MkIV version 2011.05.18 18:04. Seems to be a recently
introduced bug that should be fixed. Probably no need to change your
document.

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] Registers with distinguishable entries.

2012-04-26 Thread Robert Blackstone
On Thu, Apr 26, 2012  12:53:57 +0200,
Philipp Gesang ges...@stud.uni-heidelberg.de wrote

 You want the ?compress? switch in placeregister, or indicate
 ranges with \{start,stop}register:

 
 \defineregister [demo] [demoes]
 \starttext

 \demo{Demoitem} foo
 \page[yes]
 \demo{Demoitem} foo
 \page[yes]
 %%% Here?s the range; should work without ?compress?
 \startregister[demo][demorange]{Demorange}
 \demo{Demoitem} foo
 \page[yes]
 \demo{Otheritem} bar
 \page[yes]
 \demo{Otheritem} bar
 \page[yes]
 \stopregister[demo][demorange]%% = you?ll need to explicitly terminate the 
 ranges so they can overlap
 \demo{Otheritem} bar
 \page[yes]
 \demo{Demoitem} foo
 \page[yes]
 \demo{Demoitem} foo

 \page[yes]
  Here?s the relevant bit:
 \placeregister [demo] [compress=yes]

 \stoptext
 

 Btw. have you read the small print: 
 http://wiki.contextgarden.net/Registers#Tricks ?


Thank you, Philipp,

This works perfectly.
I had seen the small print in that page but had obviously not read it
carefully enough.

So two of my problems are solved, the main wish, to be able to make an
index with distinguishable entries, is still unfulfilled, not only for
me but for at least two others.
Let's someone on the list can shine some light on that one too.

Kind regards,
Robert
___
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] [MKIV] Itemize nowhite option broken

2012-04-26 Thread Marco
On 2012-04-26 Pierre-François Bonnefoi bonne...@unilim.fr wrote:

 I'm currently porting my work to the mkIV version of ConTeXt :
 
 I've found this annoying regression with this simple example :
 
 […]

 I get some space between itemization with mkIV that I don't get
 with mkII.

Confirmed with 2012.04.23 21:34

It works with MkIV version 2011.05.18 18:04. Seems to be a recently
introduced bug that should be fixed. Probably no need to change your
document.

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] Example only works in mkii

2012-04-26 Thread Henning Hraban Ramm

Am 2012-04-26 um 19:38 schrieb Bill Meahan:

BTW, the code was literally a copy-'n'-paste from the wiki page  
without any alteration by me. Probably should be fixed.


Just do it, if you're at it, therefore it’s a wiki.
Thanks.


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] FLOWcharts - connector line length?

2012-04-26 Thread Willi Egger
Hi Mari,

as Marco said, the distance key is the dx/dy parameter.

It is not possible to make cells spanning more than one column. This is related 
to the fact that the cells are on a grid. It is also not possible to have cells 
on e.g. half way down/left/right.

Indeed this is a very useful module. Setting up a proper flowchart gives great 
insight in e.g. processes, workflows and alike. I have built many charts for 
the meat-processing industry. 
The advantage of this module is that you can number the cell relatively. Only 
the first cell has an explicit position. So if you have to insert new cells you 
have to look only for cells which could be outside of the grid, but that is 
easier than to walk through the whole chart and renumber the cells.


\startFLOWchart[Decisiontree]

   \startFLOWcell
  \name{Begin}
  \location {3,1}
  \shape{procedure}
  \text{Begin\\ decisiontree}
  \connection[bt]{Risc}
   \stopFLOWcell{\bf }

   \startFLOWcell
  \name{Risc}
  \location {+0,+1}  % x,y
  \shape{action}
  \text{Danger}
  \connection[bt]{Question1}
   \stopFLOWcell
 …
\stopFLOWchart

Willi

On 26 Apr 2012, at 09:30, Mari Voipio wrote:

 Hi,
 
 I've just fallen in love with the chart module, my first flowchart is
 almost done. I'll never draw these by hand again... Besides, it
 seems that the chart module forces me to do flowcharts right, that
 should help with consistency and legibility. Now I just have to read a
 bit on how to do charts properly!
 
 I've figured out about text font and box sizes and making connections
 and all that, but there's one important question that I just can't
 seem to find the answer for: how do I adjust the connector line
 length? My labels just don't fit between the boxes and I'd have a
 whole A4 for a ny=5 flowchart, so I'd have space...
 
 
 (Oh, the other question is: is there a way to span a cell across
 several slots on the grid? If not, I can deal with *that*, the line is
 a lot more of a problem.)
 
 
 
 Thank you in advance,
 
 Mari
 (apparently in the expand your ConTeXt skills mode this week)
 ___
 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] Uncovering Slides in a Presentation with Progress Meter

2012-04-26 Thread Troy Henderson
I am trying to uncover content within an itemized list, and I am using
\phantom to get the desired effect.  However, I would like to tweak
the progress meter to consider these pages as the same instead of
separate.  I am pasting a minimal example below, and I would like to
know if

(1) there is a more standard way (instead of using \phantom) of
uncovering the second item in the itemized list
(2) the progress meter can be modified to illustrate 3 (instead of 4)
total pages AND not have the progress meter change between pages 2 and
3 (since I want to view them as the same page)

Troy Henderson

--
\setuppapersize[S6][S6]
\setuppagenumbering[state=stop]

\setupinteraction[page=yes,menu=on,state=start]
\setupsubpagenumber[state=start]
\setuplayout[bottom=12pt]
\startinteractionmenu[bottom]
   \interactionbar[alternative=f]
\stopinteractionmenu

\starttext
   First page
   \page

   \startitemize
  \item Foo
  \phantom{
  \item Bar
  }
   \stopitemize
   \page

   \startitemize
  \item Foo
  \item Bar
   \stopitemize
   \page

   Last page
\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] Uncovering Slides in a Presentation with Progress Meter

2012-04-26 Thread Aditya Mahajan

On Thu, 26 Apr 2012, Troy Henderson wrote:


I am trying to uncover content within an itemized list, and I am using
\phantom to get the desired effect.  However, I would like to tweak
the progress meter to consider these pages as the same instead of
separate.  I am pasting a minimal example below, and I would like to
know if

(1) there is a more standard way (instead of using \phantom) of
uncovering the second item in the itemized list


See s-pre-60.mkiv for a javascript based stepper and s-pre-61.mkiv for 
usage example (at the end).


Paul Isambert also has a javascript based stepper in the lecturer package 
but that package does not work with ConTeXt MkIV.


Personally, I find javascript based steppers to be unreliable as they 
don't work on all viewers. I either use \phantom or don't include the text 
at all. (I posted my stepping macros on the list a few days back).


There was also an r-steps module on the wiki, but that is almost 8-10 
years old, so it is unlikely that it will work without significant 
changes.



(2) the progress meter can be modified to illustrate 3 (instead of 4)
total pages AND not have the progress meter change between pages 2 and
3 (since I want to view them as the same page)


I don't know which counter the interaction menu uses. You can try to 
decrement the userpage counter (\decrement[userpage]) and see if it works.


Ideally, each step should be a subpage and the userpage counter should 
only increment on a new slide.


If you do not need the interaction part of the interaction menu, but just 
need a visual progress meter, you can look at my visualcounter package:


http://randomdeterminism.wordpress.com/tag/visualcounter/

For an example see http://www.ece.mcgill.ca/~amahaj1/talks/gerad-2012.pdf 
(the theme is inspired from one of Hans's styles).


Thomas and I also use different progress meters in the simpleslides 
module which are written in metapost. The visual-counter module is based 
on the code in simpleslids, but is a separate module so it can be included 
in other documents as well.


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] Uncovering Slides in a Presentation with Progress Meter

2012-04-26 Thread Otared Kavian
Hi,

You can maybe use the raw steps, which are described here:
http://wiki.contextgarden.net/SlideWithSteps

There the idea of \phantom is used to imitate steps.

Best regards: OK

On 26 avr. 2012, at 17:39, Troy Henderson wrote:

 I am trying to uncover content within an itemized list, and I am using
 \phantom to get the desired effect.  However, I would like to tweak
 the progress meter to consider these pages as the same instead of
 separate.  I am pasting a minimal example below, and I would like to
 know if
 
 (1) there is a more standard way (instead of using \phantom) of
 uncovering the second item in the itemized list
 (2) the progress meter can be modified to illustrate 3 (instead of 4)
 total pages AND not have the progress meter change between pages 2 and
 3 (since I want to view them as the same page)
 
 Troy Henderson
 
 --
 \setuppapersize[S6][S6]
 \setuppagenumbering[state=stop]
 
 \setupinteraction[page=yes,menu=on,state=start]
 \setupsubpagenumber[state=start]
 \setuplayout[bottom=12pt]
 \startinteractionmenu[bottom]
   \interactionbar[alternative=f]
 \stopinteractionmenu
 
 \starttext
   First page
   \page
 
   \startitemize
  \item Foo
  \phantom{
  \item Bar
  }
   \stopitemize
   \page
 
   \startitemize
  \item Foo
  \item Bar
   \stopitemize
   \page
 
   Last page
 \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
 ___

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