Re: [NTG-context] [Solved] Line breaks, \wordright and hyphenation

2021-10-26 Thread kauśika cittūr via ntg-context
On Monday, October 25, 2021 7:34:06 AM IST kauśika cittūr wrote:
> On Sunday, October 24, 2021 7:42:59 AM IST kauśika cittūr wrote:
> > Dear list,
> > 
> > In short, my question is: why does \wordright cause a line-break when the
> > line preceding it breaks with hyphenation and does not otherwise? How to
> > avoid it (if at all possible)?
> > 
> > I have this delimitedtext instance called 'amnata' defined as below:
> > 
> > \definemeasure[amnatamargin][3cm]
> > \definedelimitedtext
> > 
> >   [amnata]
> > 
> > \setupdelimitedtext
> > 
> >   [amnata]
> >   [
> > 
> > left=,
> > right=,
> > leftmargin={\measure{amnatamargin}},
> > rightmargin={\measure{amnatamargin}},
> > 
> >   ]
> > 
> > I am using this to quote paragraph(s) of other authors.
> > Since, I also want to indicate where the quote is from, I use this as
> > follows:
> > 
> > \startamnata
> > 
> >   ⋮
> > 
> > \wordright{author}
> > \stopamnata
> > 
> > so that the author's name appears at the right-edge of the block.
> > 
> > When the penultimate line inside the block breaks without hyphenation,
> > then
> > argument of \wordright is typeset as expected (i.e. in the same line).
> > 
> > On the other hand, when the penultimate line inside this block breaks with
> > hyphenation, the argument of \wordright is pushed to the next line even
> > when there is enough space for it on the same line.
> > 
> > Here is a sample illustrating this:
> > 
> > \startamnata
> > A quote from another author : Suppose that thereisalongwordhere.
> > \wordright{– author}
> > \stopamnata
> > 
> > \startamnata
> > A quote from another author : Here, the text does not cause
> > hyphenation in the first line.
> > \wordright{– author}
> > \stopamnata
> > 
> > [I have attached the output here as an image]
> > 
> > How do I ensure that this does not happen, if that is possible at all? I
> > suppose this is expected behaviour but I am not able to understand why.
> > 
> > Thanks,
> > kauśika
> 
> Dear list,
> 
> Although, not a fix for the issue, here is a workaround that allowed me to
> achieve what I wanted:
> 
> \definedescription[amnata]
> \setupdescription[amnata]
>   [closesymbol={​},
>closecommand=\wordright,
>before=\startamnatanarrower,
>after=\stopamnatanarrower]
> 
> \startamnata
> A quote from another author : Suppose that thereisalongwordhere.
> \wordright{– author}
> \stopamnata
> 
> With this the argument of \wordright appears correctly at the right-edge of
> the block. Note that this does not work (as expected) when closesymbol is
> not set (or, is empty). Therefore, here I have set closesymbol={​​U+200B},
> which is the zero width space.
> 
> Thanks,
> kauśika

Dear list,

As it turns out, my workaround here is subpar since it inserts an undesired 
line after the description block.

Hans was very kind to send me a fix to place in cont-new.mkxl that fixes the 
issue. However, due to my errors in properly pasting the fix correctly, it did 
not work. I updated LMTX today and the fix is already merged.

I am pasting below Hans' fix for reference (for anyone who might come across 
this later) –

\protect
\protected\def\spac_word_right_indeed#1#2%
  {\registerparwrapper
 {\v!word:\v!right}
 {\begingroup
  \frozen\parfillskip\zeropoint
  \frozen\finalhyphendemerits\zerocount
  \endgroup}
 {\doifelseparwrapper{\v!word:\v!right}{\unregisterparwrapper{\v!word:\v!
right}}\donothing
  \removeunwantedspaces
  \doifelse{#1}\v!right{\kern-\rightskip}{\doifsomething{#1}{\kern-#1}}%
  \hfilll
  \discretionary{\strut}{\strut}{\strut}% \allowbreak % changed back from 
\hskip\zeropoint
  \hfilll
  \quad % decent spacing
  #2}}
\unprotect

kauśika


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Line breaks, \wordright and hyphenation

2021-10-24 Thread kauśika cittūr via ntg-context
On Sunday, October 24, 2021 7:42:59 AM IST kauśika cittūr wrote:
> Dear list,
> 
> In short, my question is: why does \wordright cause a line-break when the
> line preceding it breaks with hyphenation and does not otherwise? How to
> avoid it (if at all possible)?
> 
> I have this delimitedtext instance called 'amnata' defined as below:
> 
> \definemeasure[amnatamargin][3cm]
> \definedelimitedtext
>   [amnata]
> \setupdelimitedtext
>   [amnata]
>   [
>   left=,
>   right=,
>   leftmargin={\measure{amnatamargin}},
>   rightmargin={\measure{amnatamargin}},
>   ]
> 
> I am using this to quote paragraph(s) of other authors.
> Since, I also want to indicate where the quote is from, I use this as
> follows:
> 
> \startamnata
>   ⋮
> \wordright{author}
> \stopamnata
> 
> so that the author's name appears at the right-edge of the block.
> 
> When the penultimate line inside the block breaks without hyphenation, then
> argument of \wordright is typeset as expected (i.e. in the same line).
> 
> On the other hand, when the penultimate line inside this block breaks with
> hyphenation, the argument of \wordright is pushed to the next line even when
> there is enough space for it on the same line.
> 
> Here is a sample illustrating this:
> 
> \startamnata
> A quote from another author : Suppose that thereisalongwordhere.
> \wordright{– author}
> \stopamnata
> 
> \startamnata
> A quote from another author : Here, the text does not cause
> hyphenation in the first line.
> \wordright{– author}
> \stopamnata
> 
> [I have attached the output here as an image]
> 
> How do I ensure that this does not happen, if that is possible at all? I
> suppose this is expected behaviour but I am not able to understand why.
> 
> Thanks,
> kauśika

Dear list,

Although, not a fix for the issue, here is a workaround that allowed me to 
achieve what I wanted:

\definedescription[amnata]
\setupdescription[amnata]
  [closesymbol={​},
   closecommand=\wordright,
   before=\startamnatanarrower,
   after=\stopamnatanarrower]

\startamnata
A quote from another author : Suppose that thereisalongwordhere.
\wordright{– author}
\stopamnata

With this the argument of \wordright appears correctly at the right-edge of 
the block. Note that this does not work (as expected) when closesymbol is not 
set (or, is empty). Therefore, here I have set closesymbol={​​U+200B}, which 
is the zero width space.

Thanks,
kauśika


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Space between heading and paragraph in a description

2020-02-19 Thread Kevin Kenan

> On Feb 18, 2020, at 7:45 PM, Aditya Mahajan  wrote:
> 
> Add what you discovered to the wiki!

I did…after a fashion. Once I knew the answer, I was able to find a reference 
to it on the wiki. However, it was obscured because both \setupdescription and 
\setupdescriptions are listed and I was reading the entry for 
\setupdescriptions which doesn’t list stretch and shrink as parameters. I added 
a note to \setupdescriptions that references \setupdescription. Hopefully that 
will help.

-kk___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Wiki update

2019-05-30 Thread Hans Hagen

On 5/30/2019 12:07 PM, Taco Hoekwater wrote:


I have not auto-replaced any of the handcrafted command page syntax tables in 
the existing wiki pages, because quite often the current syntax table has 
manual additions explaining various options. In the formal version these are 
obviously not present, and I did not want to remove any of that extra 
information.


maybe at some point we can have extra xml files that explain some of 
that (after all there is a 'xml path' to such an entry ... something to 
discuss at a meeting



Anyway, the nice thing about this new wiki plugin is that if you want to create a 
page for a specific command that is not in existence right now, it is a simple matter 
of going to the expected url, and creating a page with just a Syntax heading and a 
 tag.

For example (created a minute ago):

url:
   https://wiki.contextgarden.net/Command/setupdescription

content:
   == Syntax ==

   setupdescription


Thanks go to Wolfgang for all the hard work!

And you too!

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Wiki update

2019-05-30 Thread Procházka Lukáš Ing .

Hello Taco,


From now on, when you are editing the wiki (especially the /Command/CMD pages), you can use 
CMD to output the formal table of arguments
for that CMD (omit the backslash)

For example,

  section

outputs a table with the formal calling convention(s) for the \section command. 
Multiple tables actually, as it also outputs the alternative calls with 
different arguments, and it outputs the definition of the internal \*section* 
command, of which \section is an instance. (The parents of instances are 
printed in a slanted font).


this is really great!

This gives idea what syntax "sugars" (alternatives) are possible and what args 
may be used! This lacked for years!


===

I have not auto-replaced any of the handcrafted command page syntax tables in 
the existing wiki pages, because quite often the current syntax table has 
manual additions explaining various options. In the formal version these are 
obviously not present, and I did not want to remove any of that extra 
information.

Anyway, the nice thing about this new wiki plugin is that if you want to create a 
page for a specific command that is not in existence right now, it is a simple matter 
of going to the expected url, and creating a page with just a Syntax heading and a 
 tag.

For example (created a minute ago):

url:
  https://wiki.contextgarden.net/Command/setupdescription

content:
  == Syntax ==

  setupdescription


My suggestions is to add an auto-generated-command-syntax wiki-page-section, 
too.

I find it very useful - just now one can see what are possibilities!

I added the following code into wiki page - just for testing purposes, anyone 
can alter the page:

https://wiki.contextgarden.net/Command/section#Syntax



== [[Help:Reference|Syntax (generated automatically from ConTeXt definition)]] 
==
section



And just now I can see that \section accepts syntax of the forms:

\section[MyRef]{My title}
\section[MyRef]{4.0}{My title}
\section[reference=MyRef,ownnumber=4.0,title={My title}]

So better for us if we find a way to COMBINE command descriptions already existing on wiki 
WITH those generated via command injection.

Thanks again for the great job.

Best regards,

Lukas


Thanks go to Wolfgang for all the hard work!



Best wishes,
Taco



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Wiki update

2019-05-30 Thread Jan U. Hasecke
Am 30.05.19 um 12:07 schrieb Taco Hoekwater:
> url:
>   https://wiki.contextgarden.net/Command/setupdescription
> 
> content:
>   == Syntax ==
> 
>   setupdescription

Brilliant!

Thanks a lot!

juh
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Wiki update

2019-05-30 Thread Taco Hoekwater
Hi all,


Not sure how many of you remember this, but at the Kalenberg meeting in 2016 
there was this talk:

===
  Setups

  Wolfgang Schuster (and Hans Hagen)

  The user interface is described in xml files but the actual descriptions 
lagged behind development. Wolfgang spent a considerable amount of time to 
describe all commands in detail and we updated the descriptive format in the 
process. The rendering was partly redone, as was the help system and scripts 
that use this information.
===

Since then, nothing much had been done with those updated xml files, which is a 
big shame considering the enormous amount of work that went into the process.

But recently we have been discussing the wiki and (especially) the sorry state 
of the reference portion of that. At some point, I realised that we could 
rather easily combine the new xml interface files with a small wiki extension, 
such that the wiki has easy access to the latest and greatest command list.

===

From now on, when you are editing the wiki (especially the /Command/CMD pages), 
you can use CMD to output the formal table of arguments
for that CMD (omit the backslash)

For example,

  section

outputs a table with the formal calling convention(s) for the \section command. 
Multiple tables actually, as it also outputs the alternative calls with 
different arguments, and it outputs the definition of the internal \*section* 
command, of which \section is an instance. (The parents of instances are 
printed in a slanted font).

There are 2035 normal commands and 373 instances in the database, essentially 
covering all the style- and document-level commands in ConTeXt.
I’ve decided not to add the low-level system commands because (apart from 
perhaps a few special cases) these do not belong in general user documentation.

===

I have not auto-replaced any of the handcrafted command page syntax tables in 
the existing wiki pages, because quite often the current syntax table has 
manual additions explaining various options. In the formal version these are 
obviously not present, and I did not want to remove any of that extra 
information.  

Anyway, the nice thing about this new wiki plugin is that if you want to create 
a page for a specific command that is not in existence right now, it is a 
simple matter of going to the expected url, and creating a page with just a 
Syntax heading and a  tag. 

For example (created a minute ago):

url:
  https://wiki.contextgarden.net/Command/setupdescription

content:
  == Syntax ==

  setupdescription


Thanks go to Wolfgang for all the hard work!

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Variable space with hanging description

2019-04-16 Thread Cedric Tissieres
Thanks Wolfgang, it works perfectly.

On 4/16/19 11:31 PM, Wolfgang Schuster wrote:
> Cedric Tissieres schrieb am 16.04.2019 um 06:16:
>> Dear all,
>>
>> I recently switched to mkiv and experienced some problems with
>> descriptions when set with alternative=hanging. The horizontal space
>> between the description title and the rest of the text varies a lot and
>> looks ugly. When the same code is compiled with mkii, this space is
>> almost constant (replace alternative=hanging by location=hanging in
>> mkii).
> 
> The different distances after each title comes from the fact that MkIV
> adds shrink and stretch values to the space but you can disable these
> values with the shrink and stretch keys.
> 
> \setupdescription [...] [shrink=0,stretch=0]
> 
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Variable space with hanging description

2019-04-16 Thread Wolfgang Schuster

Cedric Tissieres schrieb am 16.04.2019 um 06:16:

Dear all,

I recently switched to mkiv and experienced some problems with
descriptions when set with alternative=hanging. The horizontal space
between the description title and the rest of the text varies a lot and
looks ugly. When the same code is compiled with mkii, this space is
almost constant (replace alternative=hanging by location=hanging in mkii).


The different distances after each title comes from the fact that MkIV
adds shrink and stretch values to the space but you can disable these
values with the shrink and stretch keys.

\setupdescription [...] [shrink=0,stretch=0]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] whitespace inside a description

2018-12-01 Thread Pablo Rodriguez
On 12/1/18 9:21 AM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 30.11.18 um 19:36:
>> [...]
>> How can I get a different whitespace inside the description?
> 
> \setupdescription
>[description]
>[style={\setupwhitespace[small]}]

Many thanks for your reply, Wolfgang.

I didn’t think that whitespace could be applied to style.

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] whitespace inside a description

2018-12-01 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 30.11.18 um 19:36:

Dear list,

I have the following sample:

 \setupwhitespace[big]
 \startsetups[small:whitespace]
 \setupwhitespace[small]
 \stopsetups
 \definedescription
 [description]
 [setups={small:whitespace},
  inbetween={\directsetup[small:whitespace]}]
 \starttext
 \input knuth

 \startdescription{Knuth}
 \input knuth
 \stopdescription
 \stoptext

How can I get a different whitespace inside the description?


\setupdescription
  [description]
  [style={\setupwhitespace[small]}]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] resetting footnote counter

2018-08-08 Thread Hans Hagen

On 8/8/2018 5:48 PM, Aditya Mahajan wrote:

On Wed, 8 Aug 2018, Robert Zydenbos wrote:

A simple footnote question this time. I would like to print endnotes 
at the end of every chapter in my book, and then reset the footnote 
counter so that in the next chapter the first note will be ‘1’ again. 
I suppose this should be done by means of \setupfootnotes – but with 
which parameter?


\setupnotation[footnote][way=bychapter]

\starttext
\dorecurse{5}
{\startchapter[title=New Chapter]
   \dorecurse{5}{\input ward\footnote{A quote by ward}}
\stopchapter}
\stoptext

With regard to your other thread about documentation of footnotes, the 
way I understand it is that \setupnotation is used to configure how the 
actual footnote is displayed and setupnotation has similar options to 
\setupdescription. So, alternative=serried corresponds to a similar 
option for descriptions.


Note that the above is for MkIV. For MkII, I think that you need 
\setupfootnotes insted of \setupnotation[footnote].

Indeed, mkiv is different ... in fact notes are a complex mechanism:

- rendering in line (the marker)
- rendering the text (anywhere)
- interaction with the page builder (depending on kind)
- stacking multiple classes
- line notes (refering to lien numbers)

etc. Most of what is in mkii is there in mkiv but in mkiv the textual 
rendering has been split and is called notation (on top of a generalized 
mechanism that also does descriptions, enumerations and more).


The complication is that we need to group settings for (1) the markers, 
(2) the text, (3) the overall mechanism. Of course inheritance also 
kicks in then.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] resetting footnote counter

2018-08-08 Thread Aditya Mahajan

On Wed, 8 Aug 2018, Robert Zydenbos wrote:

A simple footnote question this time. I would like to print endnotes at 
the end of every chapter in my book, and then reset the footnote counter 
so that in the next chapter the first note will be ‘1’ again. I suppose 
this should be done by means of \setupfootnotes – but with which 
parameter?


\setupnotation[footnote][way=bychapter]

\starttext
\dorecurse{5}
{\startchapter[title=New Chapter]
  \dorecurse{5}{\input ward\footnote{A quote by ward}}
\stopchapter}
\stoptext

With regard to your other thread about documentation of footnotes, the way 
I understand it is that \setupnotation is used to configure how the actual 
footnote is displayed and setupnotation has similar options to 
\setupdescription. So, alternative=serried corresponds to a similar option 
for descriptions.


Note that the above is for MkIV. For MkII, I think that you need 
\setupfootnotes insted of \setupnotation[footnote].


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] description questions

2017-02-20 Thread Aditya Mahajan

I am experimenting with descriptions and I couldn't find in the documentation
the following:

1. What is the default value of width option? It seems that default width uses 
the
longest head + some distance for every head in a descriptions list. Neither
width=fit nor width=broad,distance=dimension results in the same.


Some information is given here: http://www.ntg.nl/maps/36/09.pdf
Enumerations and descriptions share a lot of settings.


2. In the same document how can I reset to the default options of a defined
description list? For example:

\definedescription[defa]

\defa{head}  % deafult options are used

\setupdescription[defa][width=broad,distance=1cm] 
\defa{head}  % above options are used


But still the previously set options are used, they haven't been reset.


There is no way to reset options in ConTeXt. The canonical way to do this 
is:


\definedescription[defa]
\definedescription[defb][defa][width=broad, distance=1cm]

\startdefa ... \stopdefa

\startdefb ... \stopdefb

(Untested): This should also work:

\startdefa[width=broad, distance=1cm] ... \stopdefa

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] description questions

2017-02-20 Thread Csikos Bela
Dear context users:

I am experimenting with descriptions and I couldn't find in the documentation
the following:

1. What is the default value of width option? It seems that default width uses 
the
longest head + some distance for every head in a descriptions list. Neither
width=fit nor width=broad,distance=dimension results in the same.

2. In the same document how can I reset to the default options of a defined
description list? For example:

\definedescription[defa]

\defa{head}  % deafult options are used

\setupdescription[defa][width=broad,distance=1cm] 
\defa{head}  % above options are used

Now I would like to use again the default options, how can I?

I tried:
\setupdescription[defa][] 
\defa{head}  

But still the previously set options are used, they haven't been reset.

Thank you in advance,

bcsikos

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Notes after a chapter

2016-07-22 Thread Ursula Hermann
Hallo Wolfgang

 

That works. Thanks a lot. 

 

Uschi

 

Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang
Schuster
Gesendet: Donnerstag, 21. Juli 2016 22:55
An: mailing list for ConTeXt users
Betreff: Re: [NTG-context] Notes after a chapter

 

 <mailto:ursula.herm...@univie.ac.at> Ursula Hermann

21. Juli 2016 um 16:04

Hello list, 

 

I would like to have notes after a section. Now I would like to know: in the
command\setupfootnote there is a key called :after, but  the key had a red
color, i don’t know if i could need it, and i don’t know what command i
should give in the key after: maybe after=section? Sorry for the long text
below.

I don’t know what you mean with the red color but you can place notes at the
end of a chapter with the following setup.

\setupnote[footnote][location=none]

\setuphead[chapter][aftersection={\placenotes[footnote]}]

\starttext

\startchapter[title={Ward}]
\dorecurse{12}{\input ward \footnote{Footnote #1}\par}
\stopchapter

\stoptext




My second question is: When there are notes, which are after all sections,
what there is the right command: 

I have : 

\setuppapersize[A4]

\definelinenote[note]

\setuplinenote[note]

\setupdescription[note]

\starttext

\startchapter

\mainlanguage[de]

DIE INFORMELLE WIRTSCHAFT

Zwischen neuen Entwicklungen und alten Rahmenbedingungen

Das Wachstum einer informellen Wirtschaft in den Großstädten
hochentwickelter Länder wirft neue Fragen über die Beziehung auf, die heute
zwischen der Wirtschaft einerseits und den gesetzlichen Regelungen
andererseits besteht. \note {1}Den Begriff »informelle Wirtschaft« verwende
ich für jene einkommenbringenden Tätigkeiten, die außerhalb der gesetzlichen
Regelungen stattfinden, aber dennoch denen, die sich daran halten, ähneln;
so werden Umfang und Wesen der informellen Wirtschaft dennoch durch diese
Regelungen, denen sie sich eigentlich entziehen, bestimmt. Aus diesem Grund
kann man das Wesen der informellen Wirtschaft, der Schattenwirtschaft, nur
dann erfassen, wenn man sie in Beziehung zur offiziellen Wirtschaft setzt,
also zu den geregelten einkommenbringenden Tätigkeiten.

\stoptext

 

1. \stopchapter is missing in your example

2. The \note command already exists and you redefine it in your example
which is a bad idea.

3. Where do you have a note *after* a section in your example?

Wolfgang

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

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

Re: [NTG-context] Notes after a chapter

2016-07-21 Thread Wolfgang Schuster

Ursula Hermann <mailto:ursula.herm...@univie.ac.at>
21. Juli 2016 um 16:04

Hello list,

I would like to have notes after a section. Now I would like to know: 
in the command\setupfootnote there is a key called :after, but  the 
key had a red color, i don't know if i could need it, and i don't know 
what command i should give in the key after: maybe after=section? 
Sorry for the long text below.


I don't know what you mean with the red colorbut you can place notes at 
the end of a chapter with the following setup.


\setupnote[footnote][location=none]

\setuphead[chapter][aftersection={\placenotes[footnote]}]

\starttext

\startchapter[title={Ward}]
\dorecurse{12}{\input ward \footnote{Footnote #1}\par}
\stopchapter

\stoptext

My second question is: When there are notes, which are after all 
sections, what there is the right command:


I have :

\setuppapersize[A4]

\definelinenote[note]

\setuplinenote[note]

\setupdescription[note]

\starttext

\startchapter

\mainlanguage[de]

DIE INFORMELLE WIRTSCHAFT

Zwischen neuen Entwicklungen und alten Rahmenbedingungen

Das Wachstum einer informellen Wirtschaft in den Großstädten 
hochentwickelter Länder wirft neue Fragen über die Beziehung auf, die 
heute zwischen der Wirtschaft einerseits und den gesetzlichen 
Regelungen andererseits besteht. \note {1}Den Begriff »informelle 
Wirtschaft« verwende ich für jene einkommenbringenden Tätigkeiten, die 
außerhalb der gesetzlichen Regelungen stattfinden, aber dennoch denen, 
die sich daran halten, ähneln; so werden Umfang und Wesen der 
informellen Wirtschaft dennoch durch diese Regelungen, denen sie sich 
eigentlich entziehen, bestimmt. Aus diesem Grund kann man das Wesen 
der informellen Wirtschaft, der Schattenwirtschaft, nur dann erfassen, 
wenn man sie in Beziehung zur offiziellen Wirtschaft setzt, also zu 
den geregelten einkommenbringenden Tätigkeiten.


\stoptext



1. \stopchapter is missing in your example

2. The \note command already exists and you redefine it in your example 
which is a bad idea.


3. Where do you have a note *after* a section in your example?

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

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

[NTG-context] Notes after a chapter

2016-07-21 Thread Ursula Hermann
Hello list, 

 

I would like to have notes after a section. Now I would like to know: in the
command\setupfootnote there is a key called :after, but  the key had a red
color, i don’t know if i could need it, and i don’t know what command i
should give in the key after: maybe after=section? Sorry for the long text
below.

My second question is: When there are notes, which are after all sections,
what there is the right command: 

I have : 

\setuppapersize[A4]

\definelinenote[note]

\setuplinenote[note]

\setupdescription[note]

\starttext

\startchapter

\mainlanguage[de]

DIE INFORMELLE WIRTSCHAFT

Zwischen neuen Entwicklungen und alten Rahmenbedingungen

Das Wachstum einer informellen Wirtschaft in den Großstädten
hochentwickelter Länder wirft neue Fragen über die Beziehung auf, die heute
zwischen der Wirtschaft einerseits und den gesetzlichen Regelungen
andererseits besteht. \note {1}Den Begriff »informelle Wirtschaft« verwende
ich für jene einkommenbringenden Tätigkeiten, die außerhalb der gesetzlichen
Regelungen stattfinden, aber dennoch denen, die sich daran halten, ähneln;
so werden Umfang und Wesen der informellen Wirtschaft dennoch durch diese
Regelungen, denen sie sich eigentlich entziehen, bestimmt. Aus diesem Grund
kann man das Wesen der informellen Wirtschaft, der Schattenwirtschaft, nur
dann erfassen, wenn man sie in Beziehung zur offiziellen Wirtschaft setzt,
also zu den geregelten einkommenbringenden Tätigkeiten.

\stoptext

 

Thank you

 

Uschi

___
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] Enumeration lists (was: \definedescription and setupdescription options)

2016-03-06 Thread Alan BRASLAU
On Mon, 7 Mar 2016 04:42:09 +0100
Wolfgang Schuster  wrote:

> \defineenumeration
> [fact]
> [list=fact]
> 
> \starttext
> 
> \startfact [title=First fact]
> Many commands in \CONTEXT\ are obvious.
> \stopfact
> 
> \placelist [enumeration:fact] [criterium=all]
> 
> \stoptext
> 
> does not produce a list.
> Use \placelist[fact][criterium=all].

In fact, [list=fact] above is ignored, and one cannot type

\defineenumeration [fact] [list=facts]

...

\placelist [facts] [criterium=all]


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] \definedescription and setupdescription options

2016-03-06 Thread Alan BRASLAU
On Fri, 4 Mar 2016 16:52:12 +0100
Wolfgang Schuster  wrote:

> Take a look at the attached files for the valid keys for the
> description and enumeration environments.

I am not managing use of lists of enumerations.

\defineenumeration
  [fact]
  [list=fact]

\starttext

\startfact [title=First fact]
Many commands in \CONTEXT\ are obvious.
\stopfact

\placelist [enumeration:fact] [criterium=all]

\stoptext

does not produce a list.


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] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Am 04.03.2016 um 20:00 schrieb Wolfgang Schuster:
> No, because I used a local version of the interface file where I added
> missing entries but it isn’t finished yet.

Wonderful. I love this feature. I am eagerly looking forward to see it
released.

Thanks!
juh
___
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] \definedescription and setupdescription options

2016-03-04 Thread Wolfgang Schuster

Jan U. Hasecke <mailto:juh+ntg-cont...@mailbox.org>
4. März 2016 um 19:29
Thank you Wolfgang,

your examples are very helpful.


Did you make the pdf with \showsetup{...}?

I am missing setupdescriptions.

\setupdescriptions is a synonym for the \setupdescription command.

And I get "MISSING SETUP" when I try \showsetup{setupdescription}.

My context installation is: current version: 2016.02.24 11:19

Shall I update to have the newest interface descriptions available?

No, because I used a local version of the interface file where I added
missing entries but it isn’t finished yet.

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] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Hi Aditya,

Am 04.03.2016 um 16:49 schrieb Aditya Mahajan:
> See: http://www.ntg.nl/maps/36/09.pdf which explains some of these.

thank you very much for hinting to this ressources.

juh
___
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] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Thank you Wolfgang,

your examples are very helpful.

Am 04.03.2016 um 16:52 schrieb Wolfgang Schuster:

> Take a look at the attached files for the valid keys for the description
> and enumeration environments.

Did you make the pdf with \showsetup{...}?

I am missing setupdescriptions.

And I get "MISSING SETUP" when I try \showsetup{setupdescription}.

My context installation is: current version: 2016.02.24 11:19

Shall I update to have the newest interface descriptions available?

juh

___
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] \definedescription and setupdescription options

2016-03-04 Thread Wolfgang Schuster

Jan U. Hasecke 
4. März 2016 um 16:25
Hi all,

I am working on a small documentation and today I tried all the options
in \definedescription and/or \setupdescriptions to understand what is
going on.

I have no idea what these options are doing:

closecommand

\definedescription[testdescription][title=yes,closecommand=\wordright,closesymbol={\symbol[square]}]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

titleleft
titleright
titledistance
titlestyle
titlecolor

The title* keys can only be used with enumerations.

headcommand

\definedescription[testdescription][title=yes,headcommand=\framed]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

hang

Works only with “alternative=left” or “alternative=right”.

\definedescription[testdescription][title=yes,hang=2]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

inbetween

Works only with “alternative=top”.

\definedescription[testdescription][title=yes,alternative=top,inbetween={\blank[3*line]}]

\starttext
\starttestdescription{Knuth}
\input knuth
\stoptestdescription
\stoptext

command

This is no valid key for descriptions.

Take a look at the attached files for the valid keys for the description 
and enumeration environments.


Wolfgang


descriptions.pdf
Description: Adobe PDF document


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

Re: [NTG-context] \definedescription and setupdescription options

2016-03-04 Thread Aditya Mahajan

On Fri, 4 Mar 2016, Jan U. Hasecke wrote:


Hi all,

I am working on a small documentation and today I tried all the options
in \definedescription and/or \setupdescriptions to understand what is
going on.

I have no idea what these options are doing:

closecommand
titleleft
titleright
titledistance
titlestyle
titlecolor
headcommand
hang
inbetween
command

I could not see any result and found no hint in the documentation.

Can anyone shed some light on this?


See: http://www.ntg.nl/maps/36/09.pdf which explains some of these.

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] \definedescription and setupdescription options

2016-03-04 Thread Jan U. Hasecke
Hi all,

I am working on a small documentation and today I tried all the options
in \definedescription and/or \setupdescriptions to understand what is
going on.

I have no idea what these options are doing:

closecommand
titleleft
titleright
titledistance
titlestyle
titlecolor
headcommand
hang
inbetween
command

I could not see any result and found no hint in the documentation.

Can anyone shed some light on this?

Thank in advance
juh


-- 
13. März 2016: 20. Todestag von Krzysztof Kieślowski
Die Wahrheit des Sehens. Der Dekalog von Krzysztof Kieślowski.
http://www.amazon.de/dp/1484071433/
Taschenbuch: 264 Seiten
___
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] horizontal spacing under special circumstances

2015-12-08 Thread Wolfgang Schuster

Henning Hraban Ramm <mailto:te...@fiee.net>
8. Dezember 2015 um 12:11

Thank you for the suggestion, but I can’t see any change, even if I 
use extreme values for \spaceskip (like 0.1 or 10.0), neither in footnotes

The footnote on the second page is a line shorter.

\startsetups[footnote:space]
  \spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink

\stopsetups

\starttext

\input zapf
\startfootnote
\input zapf
\stopfootnote

\page

\setupnote[footnote][setups=footnote:space]

\input zapf
\startfootnote
\input zapf
\stopfootnote

\stoptext
nor in my description (is the setups key even supposed to work in 
\definedescription?).
No, there is no setups key for description and you have to misuse the 
style key.


\define\CompressSpace
  {\spaceskip .7\interwordspace plus .5\interwordstretch minus 
\interwordshrink}


\definedescription[compressedspace]

\starttext

\startcompressedspace
\input zapf
\stopcompressedspace

\setupdescription[compressedspace][style=\CompressSpace]

\startcompressedspace
\input zapf
\stopcompressedspace

\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] Three questions about descriptions

2014-07-25 Thread Rik Kabel

On 2014-07-25 14:56, Matthias Weber wrote:

Dear All,

I’d like to use a mechanism that allows me to create an itemized list with my 
own labels like one can
with descriptions:

\definedescription[outline][
 headstyle=bold,style=normal,alternative=hanging,margin=1cm,distance=-.8cm]

\starttext

\outline[Welcome] Tea

\outline[Introduction] Tufte or Knuth?

\outline[Snack] Chocolate Cake

\outline[Discussion] Knuth or Tufte?

\outline[Open End] Bear and wine

\stoptext

However, instead of the above I would like to

— have the result “packed”, i.e. without lines between the descriptions
— have a stopper (“:”) after the label
— have the text of the description begin after the stopper and not at a fixed 
indentation (distance=…)

How do I do that?

Thanks,

Matthias


The following works, but I suspect that there may be a better way to get 
the packing.


   \define[1]\outlinehead{#1:}
   \definedescription[outline]
   \setupdescription [outline]
  [headstyle=bold,
   style=normal,
   %  alternative=hanging,
   width=fit,
   distance=1ex,
   before={\blank[back]},
   headcommand=\outlinehead,
 ]

   \starttext

   \outline{Welcome} Tea

   \outline{Introduction} Tufte or Knuth? and more and more and more
   and more to see what hanging does.

   \outline{Snack} Chocolate Cake

   \outline{Discussion} Knuth or Tufte?

   \outline{Open End} Bear and wine

   \stoptext

Try it both with and without the hanging alternative.

And for me, beer is preferable to bear.
--
Rik
___
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] Three questions about descriptions

2014-07-25 Thread Matthias Weber
Thanks Rik,

that does exactly what I want.

Matthias


On Jul 25, 2014, at 4:03 PM, Rik Kabel cont...@rik.users.panix.com wrote:

 On 2014-07-25 14:56, Matthias Weber wrote:
 Dear All,
 
 I’d like to use a mechanism that allows me to create an itemized list with 
 my own labels like one can
 with descriptions:
 
 \definedescription[outline][
 
 headstyle=bold,style=normal,alternative=hanging,margin=1cm,distance=-.8cm]
 
 \starttext
 
 \outline[Welcome] Tea
 
 \outline[Introduction] Tufte or Knuth?
 
 \outline[Snack] Chocolate Cake
 
 \outline[Discussion] Knuth or Tufte?
 
 \outline[Open End] Bear and wine
 
 \stoptext
 
 However, instead of the above I would like to 
 
 — have the result “packed”, i.e. without lines between the descriptions
 — have a stopper (“:”) after the label
 — have the text of the description begin after the stopper and not at a 
 fixed indentation (distance=…)
 
 How do I do that?
 
 Thanks,
 
 Matthias
 
 
 The following works, but I suspect that there may be a better way to get the 
 packing.
 \define[1]\outlinehead{#1:}
 \definedescription[outline] 
 \setupdescription [outline]
   [headstyle=bold,
style=normal,
 %  alternative=hanging,
width=fit,
distance=1ex,
before={\blank[back]},
headcommand=\outlinehead,
  ]
 
 \starttext
 
 \outline{Welcome} Tea
 
 \outline{Introduction} Tufte or Knuth? and more and more and more and more to 
 see what hanging does.
 
 \outline{Snack} Chocolate Cake
 
 \outline{Discussion} Knuth or Tufte?
 
 \outline{Open End} Bear and wine
 
 \stoptext
 Try it both with and without the hanging alternative.
 
 And for me, beer is preferable to bear.
 -- 
 Rik
 ___
 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
 ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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 the margin for two purposes

2014-05-18 Thread Matthias Weber
Thanks Rik,

that is very helpful. Now I am having some difficulties with coordinating the 
\inmargins with the marginrules.


In the example below, I notice the oddity that \startmarginrule[2] is closer to 
the text than \startmarginrule[1]
or \startmarginrule[3], which are at equal distance. I can live with that.

There are only three things I’d like to improve:

i) I’d like to put my default  \inmargin arguments into the setup, but I can’t 
figure out whether to use \setupinmargin
or \setupinmargindata, and where to put the arguments.

ii) Ideally I’d like to use a description to be able to write \startgreenline … 
\stopgreenline, and I have tried this with
\setupdescription, but failed.

iii) Dream: Instead of solid margin rules I would love to have other options, 
like squiggly lines, dashed, dotted. 


Thanks!

Matthias



\setupmarginrule[rulethickness=.1pt] % works


\setupmargindata[][align=middle,width=2cm] %??? 

\definedescription[greenline] % ???
[before={\setupmarginrule[rulecolor=green]
\indenting[no]
\startmarginrule[2]},
after={\stopmarginrule}
]

\starttext

\inmargin[method=first][frame=on,corner=round] {Read\\this\\first}
\setupmarginrule[rulecolor=red]
\indenting[no]
\startmarginrule[1]
\input{knuth}
\stopmarginrule

\inmargin[method=first][frame=on,corner=round,align=middle,width=2cm,offset=3pt]
 {Read\\this\\second}
\setupmarginrule[rulecolor=green]
\indenting[no]
\startmarginrule[2]
\input{tufte}
\stopmarginrule

\inmargin[][frame=on,corner=round,align=middle,width=2cm] {Read\\this\\third}
\setupmarginrule[rulecolor=blue]
\indenting[no]
\startmarginrule[3]
\input{knuth}
\stopmarginrule


\inmargin[][frame=on,corner=round,align=middle,width=2cm] {Read\\this\\fourth}
\setupmarginrule[rulecolor=black]
\indenting[no]
\startmarginrule[4]
\input{knuth}
\stopmarginrule

\startgreenline
\input{tufte}
\stopgreenline

\stoptext


On May 17, 2014, at 8:21 PM, Rik Kabel cont...@rik.users.panix.com wrote:

 On 2014-05-17 20:12, Matthias Weber wrote:
 Dear All,
 
 I would like to use the margin for two different purposes: For brief notes, 
 using
 \inmargin, and to mark entire paragraphs sections of the text with vertical 
 lines.
 
 So, I’d like to be able to something like this
 
 \starttext
 
 \startsquigglyline
 \inmargin{read \\ this \\ first}
 \input{knuth}
 \stopsquigglyline
 
 \startthinline
 \inmargin{read \\ this \\ next}
 \input{tufte}
 \stopthinline
 
 \stoptext
 
 
 I know I could use frames to accomplish the vertical features within in the 
 text area, but I’d prefer to use the margin so that framing paragraphs 
 doesn’t
 indent the paragraphs compared to the unframed portions.
 But I also want to have the \inmargin notes to be lined up properly. So it 
 looks like I would need to divide the margin into two horizontally
 separate regions. On left pages, the left region would be used for the 
 \inmargin notes, and the (very thin) right region would be used for the
 vertical features (squigglyline and thinline). For right pages the other way 
 around. Of course I’d also like the vertical features to extend across 
 pages, if needed.
 Like so:
 
 
  Left Page   Right Page
 
 read (   Knuth   Tufte   |   read
 this )   Knuth   Tufte   |   this
 first(   Knuth   Tufte   |   
 next
  )   Knuth   Tufte   |
  (   Knuth   Tufte   |
 
 Is there a mechanism in place for that?
 Thanks for any hints!
 
 Matthias
 
 You want margin rules. The wiki has a place-holder entry for 
 \setupmarginrules, but the ConTeXt reference manual has a couple of pages 
 that should provide a good start.
 
 -- 
 Rik
 ___
 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
 ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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 the margin for two purposes

2014-05-18 Thread Rik

On 2014-05-18 09:50, Matthias Weber wrote:

Thanks Rik,

that is very helpful. Now I am having some difficulties with 
coordinating the \inmargins with the marginrules.



In the example below, I notice the oddity that \startmarginrule[2] is 
closer to the text than \startmarginrule[1]

or \startmarginrule[3], which are at equal distance. I can live with that.

There are only three things I'd like to improve:

i) I'd like to put my default  \inmargin arguments into the setup, but 
I can't figure out whether to use \setupinmargin

or \setupinmargindata, and where to put the arguments.

ii) Ideally I'd like to use a description to be able to write 
\startgreenline ... \stopgreenline, and I have tried this with

\setupdescription, but failed.

iii) Dream: Instead of solid margin rules I would love to have other 
options, like squiggly lines, dashed, dotted.



Thanks!

Matthias



\setupmarginrule[rulethickness=.1pt] % works


\setupmargindata[][align=middle,width=2cm] %???

\definedescription[greenline] % ???
[before={\setupmarginrule[rulecolor=green]
\indenting[no]
\startmarginrule[2]},
after={\stopmarginrule}
]

\starttext

\inmargin[method=first][frame=on,corner=round] {Read\\this\\first}
\setupmarginrule[rulecolor=red]
\indenting[no]
\startmarginrule[1]
\input{knuth}
\stopmarginrule

\inmargin[method=first][frame=on,corner=round,align=middle,width=2cm,offset=3pt] 
{Read\\this\\second}

\setupmarginrule[rulecolor=green]
\indenting[no]
\startmarginrule[2]
\input{tufte}
\stopmarginrule

\inmargin[][frame=on,corner=round,align=middle,width=2cm] 
{Read\\this\\third}

\setupmarginrule[rulecolor=blue]
\indenting[no]
\startmarginrule[3]
\input{knuth}
\stopmarginrule


\inmargin[][frame=on,corner=round,align=middle,width=2cm] 
{Read\\this\\fourth}

\setupmarginrule[rulecolor=black]
\indenting[no]
\startmarginrule[4]
\input{knuth}
\stopmarginrule

\startgreenline
\input{tufte}
\stopgreenline

\stoptext


I have been playing with this a bit. I think that the following does 
what you want as far as setting up the margin text and description. I am 
no help on the mp stuff that you will need for curly or other-dotted rules.


As you probably saw, neither \setupmargindata nor \setupmarginframed are 
in the wiki. The list archive has some hints, but the source code, if 
you ignore a couple of misleading comments, suggested what I got to work.


The problem you will run into with the description as you want to use it 
comes when you have multiple paragraphs. Without a start/stop mechanism, 
there is no way to mark the paragraphs to include within the scope of 
the line. As long as you are willing to enclose multiple paragraphs in 
braces (and provide a null description as I do here) you will be fine, 
but at that point you may as well use the start/stop.


There is still a problem with the margin rule extending through the 
blank line that results from the implied \par at the end of the 
description block (and any explicit \par). It looks ugly and isn't 
matched by the behavior of the rule in the start/stop text. Perhaps 
someone else can find a way around it.


Some of this is probably unnecessary for what you want; for example, 
instead of using optional arguments you may prefer to hardcode the 
choice of rule # and color. If you want to always use the same color 
with the same rule #, you can simplify in other ways.


I did use MKVI syntax, simply because I have been trying to use it 
consistently in all my current work. It should be easily translated back 
to earlier syntax.


   % macros=mkvi
   \setupmarginrules[rulethickness=2pt,alternative=1]

   \setupmargindata  [left]
  [location=left,
   style=\bfxx]
   \setupmarginframed[left]
  [frame=on,
   framecolor=darkgray,
   corner=round,
   offset=3pt,
   width=2cm,
   align=middle]

   \starttexdefinition startMtext
  \bgroup
  \dotripleempty\dostartMtext
   \stoptexdefinition
   \starttexdefinition dostartMtext [#RULE][#COLOR][#ORDER]
  \doifemptyelse{#RULE}
{\def\Rule{2}}%  default rule
{\def\Rule{#RULE}}
  \doifemptyelse{#COLOR}
 {\def\Color{green}}%default color
 {\def\Color{#COLOR}}
  \ifthirdargument
\inleft{Read\\this\\#ORDER}
  \fi
  \setupmarginrule[\Rule][rulecolor=\Color]
  \startmarginrule[\Rule]
   \stoptexdefinition
   \starttexdefinition stopMtext
  \stopmarginrule
  \egroup
   \stoptexdefinition

   \definedescription[greenline]
  [before={\setupmarginrules[rulecolor=green,
 alternative=0,
   rulethickness=0.5pt]
   \indenting[no]
   \startmarginrule[2]},
   after={\stopmarginrule}]

   \starttext

Re: [NTG-context] bug in beta: \tab results in text overlap

2013-11-27 Thread Hans Hagen

On 11/27/2013 5:08 PM, Lars Huttar wrote:

On 11/22/2013 4:34 PM, Hans Hagen wrote:


The problem, is/was that mixed columns had not yet mark
synchronization enabled. I uploaded a new beta. In the process I also
made marks a bit more restrictive but it might have (yet unknown) side
effects.


Hans, I tried the beta of 2013.11.26, and as mentioned in a previous
email, it fixes the \getmarking problem pretty well. However the same
beta has a fatal problem for us: lists using \tab are now broken.

MWE:
\starttext
 \tab{AC}Autonomous Community\par
 \tab{\it alt.}alternate name for\par
\stoptext

In the TeX Live 2013 version of mkiv, this gives us a nice table with
the headword separated from the definition.
In the beta, the headword and the definition start at the same
horizontal position, and overlap each other.


side effect of automatically cleaning up spaces (skips) ...

\setupdescription
  [tab]
  [sample=\kern4\emwidth] % was \hskip

fixed in next version

(this command is sort of obsolete)

Hans

-
  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] \description - indenting lines, alternative=top

2012-04-10 Thread Aditya Mahajan

On Tue, 10 Apr 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

- Is it possible to reduce (or specify) the distance between the label and 
the next text?


XXX _
  ^
  V - this distance to be specified.
blablabla blabla
blabla blabla bl
a bla.


\setupdescription
   [inbetween={\blank[5cm]}]

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] \description - indenting lines, alternative=top

2012-04-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... Thank you, Aditya, that's it!

Lukas


On Tue, 10 Apr 2012 11:27:05 +0200, Aditya Mahajan adit...@umich.edu wrote:


On Tue, 10 Apr 2012, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


XXX _
  ^
  V - this distance to be specified.
blablabla blabla
blabla blabla bl
a bla.


\setupdescription
[inbetween={\blank[5cm]}]

Aditya



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] \setupenumeration(s) was: defineenumeration does not work with MKIV

2010-01-05 Thread Wolfgang Schuster

Am 05.01.2010 um 05:08 schrieb Vladimir Lomov:

 2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Sorry to hijack your post and since we're already there, why are 
 \setupenumerations
 and \setupdescriptions written in the plural form.
 
 \setupenumerations[problem][stopper=)]
 
 When I would follow the system from other setup commands in context
 i expect as correct names \setupenumeration and \setupdescription.
 
 If I understand context manual correctly (I not checked this)
 (cont-enp.pdf, pp. 181,183) I could use more than one name in
 \setupenumerations (\setupdescriptions), e.g.
 \setupenumerations[problem,remark][stopper=)]
 so name of commands are correct (in some sense one is a limit of several :).

You could also use more names in \setuphead, \setupblock etc. but these
command names are singular. Changing \setupenumerations/descriptions is
no option but one can do this:

\let\setupdescription\setupdescriptions
\let\setupenumeration\setupenumerations

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] \setupenumeration(s) was: defineenumeration does not work with MKIV

2010-01-04 Thread Wolfgang Schuster
Sorry to hijack your post and since we're already there, why are 
\setupenumerations
and \setupdescriptions written in the plural form.

 \setupenumerations[problem][stopper=)]

When I would follow the system from other setup commands in context
i expect as correct names \setupenumeration and \setupdescription.

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] \setupenumeration(s) was: defineenumeration does not work with MKIV

2010-01-04 Thread Vladimir Lomov
Hi.

2010/1/5 Wolfgang Schuster schuster.wolfg...@googlemail.com:
 Sorry to hijack your post and since we're already there, why are 
 \setupenumerations
 and \setupdescriptions written in the plural form.

 \setupenumerations[problem][stopper=)]

 When I would follow the system from other setup commands in context
 i expect as correct names \setupenumeration and \setupdescription.

If I understand context manual correctly (I not checked this)
(cont-enp.pdf, pp. 181,183) I could use more than one name in
\setupenumerations (\setupdescriptions), e.g.
\setupenumerations[problem,remark][stopper=)]
so name of commands are correct (in some sense one is a limit of several :).
___
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] \setupdescription

2004-08-10 Thread Hans Hagen
Peter Münster wrote:
Hello,
how could I define a list, that looks like this:
titel 1   text text text text text text text text text text text text text
 text text text text text text text text text text text text text
 text text text text text text text text text text text
long titel 2   text text text text text text text text text text text text
 text text text text text text text text text text text text text
 text text text text text text text text text text text
I tried with parameters distance and width of \setupdescription, but no
success.
TIA for any hint, Peter
 

\starttext
\definedescription[one]  [location=top,width=3cm]
\definedescription[two]  [location=left,hang=broad,width=2.5cm]
\definedescription[three][location=hanging,width=broad,margin=2em]
\one   {titel 1}  \input ward \par
\two   {long titel 2} \input ward \par
\three {long titel 2} \input ward \par
\stoptext
even i have to look it  up -)
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
-

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \setupdescription

2004-08-10 Thread Peter Mnster
On Mon, 9 Aug 2004, Hans Hagen wrote:

 Peter Münster wrote:
 
 Hello,
 how could I define a list, that looks like this:
 
 titel 1   text text text text text text text text text text text text text
   text text text text text text text text text text text text text
   text text text text text text text text text text text
 
 long titel 2   text text text text text text text text text text text text
   text text text text text text text text text text text text text
   text text text text text text text text text text text

 \definedescription[three][location=hanging,width=broad,margin=2em]
 
 \three {long titel 2} \input ward \par

Thank you Hans, \three is quite near what I'm looking for.
But with \three {short} ... \par the text begins too much at the left.
Consider the long title 2 as an exception. The more general label will
look like title 1. Here is a little better example to show what I want:

A text text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

BBB   text text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

CCtext text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

long titel 2   text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

I used to do this in LaTeX with mdwlist.sty, see also
http://contextgarden.net/Description

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \setupdescription

2004-06-11 Thread Peter Mnster
Hello,
how could I define a list, that looks like this:

titel 1   text text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

long titel 2   text text text text text text text text text text text text
  text text text text text text text text text text text text text
  text text text text text text text text text text text

I tried with parameters distance and width of \setupdescription, but no
success.

TIA for any hint, Peter

-- 
http://pmrb.free.fr/contact/
_
FilmSearch engine: http://f-s.sf.net/
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context