[NTG-context] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
Hello list,

For the last section of every chapter I want a grey background for the
text, which otherwise should look the same as every other section, except
that it starts on a new page (I can set that by defining my own section
command).

The last section summarizes the chapter.

My current implementation is using a frame:


\defineframed[achtergrond]
[frame=off,
background=color,
backgroundcolor=gray,
width=fit,
height=fit,
offset=2ex,
align={flushleft,nothyphenated,verytolerant}]

And use it as:

\achtergrond{
\section{Last section}

\startitemize[n]
\item ...
\stopitemize
}

But this does not accomodate sections longer then a page. And I can't
place \page command in the middle of an itemize, and using \stopitemize,
\startitemize[continue] makes the pages vary in sizes.

Is there some way to achieve the desired effect (grey background behind
the text, and otherwise page layour identical to other sections) without
the problem that text exceeds the page size?

Greetings,

Rob

PS. The defined frame is also used elsewhere, but the last section should
in fact not have normal alignment like the other sections.


___
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] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
 Hello list,

 For the last section of every chapter I want a grey background for the
 text, which otherwise should look the same as every other section, except
 that it starts on a new page (I can set that by defining my own section
 command).

 The last section summarizes the chapter.

 My current implementation is using a frame:


 \defineframed[achtergrond]
 [frame=off,
 background=color,
 backgroundcolor=gray,
 width=fit,
 height=fit,
 offset=2ex,
 align={flushleft,nothyphenated,verytolerant}]

 And use it as:

 \achtergrond{
 \section{Last section}

 \startitemize[n]
 \item ...
 \stopitemize
 }

 But this does not accomodate sections longer then a page. And I can't
 place \page command in the middle of an itemize, and using \stopitemize,
 \startitemize[continue] makes the pages vary in sizes.

 Is there some way to achieve the desired effect (grey background behind
 the text, and otherwise page layour identical to other sections) without
 the problem that text exceeds the page size?

 Greetings,

 Rob

 PS. The defined frame is also used elsewhere, but the last section should
 in fact not have normal alignment like the other sections.




What perhaps fixes this problem is defining my own section command like this:

\definehead[summary][section]

\setuphead[summary]
 [
 number=no,
 style=bold,
 before={\page\setupbackgrounds[text][text][state=start]
   [background=color,backgroundcolor=gray]},
 after={\setupbackgrounds[text][text][state=stop]}
 ]

According to the wiki
(http://wiki.contextgarden.net/Command/setupbackgrounds) that should work,
but Context doesn't seem to understand the syntax and prints the part:
[background=color,backgroundcolor=gray] before the section title.

What did I do wrong?

Greetings,

Rob



___
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] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 17:18 schrieb Rob Heusdens robh...@xs4all.nl:
 
 Hello list,
 
 For the last section of every chapter I want a grey background for the
 text, which otherwise should look the same as every other section, except
 that it starts on a new page (I can set that by defining my own section
 command).
 
 The last section summarizes the chapter.
 
 My current implementation is using a frame:
 
 
 \defineframed[achtergrond]
[frame=off,
background=color,
backgroundcolor=gray,
width=fit,
height=fit,
offset=2ex,
align={flushleft,nothyphenated,verytolerant}]
 
 And use it as:
 
 \achtergrond{
 \section{Last section}
 
 \startitemize[n]
 \item ...
 \stopitemize
 }
 
 But this does not accomodate sections longer then a page. And I can't
 place \page command in the middle of an itemize, and using \stopitemize,
 \startitemize[continue] makes the pages vary in sizes.
 
 Is there some way to achieve the desired effect (grey background behind
 the text, and otherwise page layour identical to other sections) without
 the problem that text exceeds the page size?
 
 Greetings,
 
 Rob
 
 PS. The defined frame is also used elsewhere, but the last section should
 in fact not have normal alignment like the other sections.
 
 
 
 
 What perhaps fixes this problem is defining my own section command like this:
 
 \definehead[summary][section]
 
 \setuphead[summary]
 [
 number=no,
 style=bold,
 before={\page\setupbackgrounds[text][text][state=start]
   [background=color,backgroundcolor=gray]},
 after={\setupbackgrounds[text][text][state=stop]}
 ]
 
 According to the wiki
 (http://wiki.contextgarden.net/Command/setupbackgrounds 
 http://wiki.contextgarden.net/Command/setupbackgrounds) that should work,
 but Context doesn't seem to understand the syntax and prints the part:
 [background=color,backgroundcolor=gray] before the section title.
 
 What did I do wrong?

1. Put both assignments in the same argument, i.e. change


\setupbackgrounds[text][text][state=start][background=color,backgroundcolor=gray]

to


\setupbackgrounds[text][text][state=start,background=color,backgroundcolor=gray]

2. You have to finish the page before you disable the coloured background.

  after={\page\setupbackgrounds[…]}

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] Strange bug in interactive table of content...

2015-01-30 Thread Rob Heusdens
 On 01/30/2015 04:02 PM, Rob Heusdens wrote:
 [...]
 I am using a recent version.
 [...]
 So, I should upgrade to the newest beta?

 Using a beta from 2014.11.26 21:43 shows the bug you described.

 Upgrading to latest beta makes sense in this case.

 If you allow me an opinion, I try to keep ConTeXt updated (I have just
 updated it), so I can enjoy the latest features and report the possible
 issues I might face.


 Pablo
 --
 http://www.ousia.tk


Hello Pablo,

I can imagine people sticking to the latest stable release only instead of
picking up the latest beta.

I have a workaround, so it is not so important (and this kind of bug
almost never shows up, I just accidently ran into it, and I was just
amazed by the peculiarity of it).

Just to be sure, how can I upgrade to latest beta?

Greetings,

Rob

___
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] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 18:17 schrieb Rob Heusdens robh...@xs4all.nl:
 
 Problem is however resetting the background. In the after option of
 \setuphead will not work, the \page is ejected directly after the section
 title. I want to reset to normal background after the section itself
 finishes. After this special section (summary) always a new chapter begins
 (except perhaps the last summary).
 
 Should I add that manually as the last command of every summary (where
 also the chapter ends), or is there some way to perform a command after
 the summary itself (at the location where one would place \stopsummary if
 using the \startsummary syntax) ends?
 
 The background should only be displayed behind the text itself, not the
 whole text area (so if a section ends halfway of the page, the bottom part
 should have no background) with some extra space surrounding it
 (above,below,left,right) using the offset or perhaps backgroundoffset
 options of \setupframed).

Use text backgrounds.

\definetextbackground
  [SummaryBackground]
  [frame=off,
   background=color,
   backgroundcolor=gray]

\definehead[summary][section]

\setuphead
  [summary]
  [before=,
   beforesection={\blank\starttextbackground[SummaryBackground]},
   aftersection={\stoptextbackground\blank}]

\starttext

\startsection[title=Knuth]

\input{knuth}

\stopsection

\startsummary[title=Zapf]

\input{zapf}

\stopsummary

\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] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens

 Am 30.01.2015 um 17:18 schrieb Rob Heusdens robh...@xs4all.nl:

 Hello list,

 For the last section of every chapter I want a grey background for the
 text, which otherwise should look the same as every other section,
 except
 that it starts on a new page (I can set that by defining my own section
 command).

 The last section summarizes the chapter.

 My current implementation is using a frame:


 \defineframed[achtergrond]
[frame=off,
background=color,
backgroundcolor=gray,
width=fit,
height=fit,
offset=2ex,
align={flushleft,nothyphenated,verytolerant}]

 And use it as:

 \achtergrond{
 \section{Last section}

 \startitemize[n]
 \item ...
 \stopitemize
 }

 But this does not accomodate sections longer then a page. And I can't
 place \page command in the middle of an itemize, and using
 \stopitemize,
 \startitemize[continue] makes the pages vary in sizes.

 Is there some way to achieve the desired effect (grey background behind
 the text, and otherwise page layour identical to other sections)
 without
 the problem that text exceeds the page size?

 Greetings,

 Rob

 PS. The defined frame is also used elsewhere, but the last section
 should
 in fact not have normal alignment like the other sections.




 What perhaps fixes this problem is defining my own section command like
 this:

 \definehead[summary][section]

 \setuphead[summary]
 [
 number=no,
 style=bold,
 before={\page\setupbackgrounds[text][text][state=start]
   [background=color,backgroundcolor=gray]},
 after={\setupbackgrounds[text][text][state=stop]}
 ]

 According to the wiki
 (http://wiki.contextgarden.net/Command/setupbackgrounds
 http://wiki.contextgarden.net/Command/setupbackgrounds) that should
 work,
 but Context doesn't seem to understand the syntax and prints the part:
 [background=color,backgroundcolor=gray] before the section title.

 What did I do wrong?

 1. Put both assignments in the same argument, i.e. change

 
 \setupbackgrounds[text][text][state=start][background=color,backgroundcolor=gray]

 to

 
 \setupbackgrounds[text][text][state=start,background=color,backgroundcolor=gray]

 2. You have to finish the page before you disable the coloured background.

   after={\page\setupbackgrounds[…]}

 Wolfgang

Hello Wolfgang,

Yes, of course! I misinterpreted it, but now I see there is in fact only 3
options, not 4. I was misdirected by the 4 lines displayed below the
command explaining the syntax.

Problem is however resetting the background. In the after option of
\setuphead will not work, the \page is ejected directly after the section
title. I want to reset to normal background after the section itself
finishes. After this special section (summary) always a new chapter begins
(except perhaps the last summary).

Should I add that manually as the last command of every summary (where
also the chapter ends), or is there some way to perform a command after
the summary itself (at the location where one would place \stopsummary if
using the \startsummary syntax) ends?

The background should only be displayed behind the text itself, not the
whole text area (so if a section ends halfway of the page, the bottom part
should have no background) with some extra space surrounding it
(above,below,left,right) using the offset or perhaps backgroundoffset
options of \setupframed).


Greetings,

Rob

___
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] Strange bug in interactive table of content...

2015-01-30 Thread Pablo Rodriguez
On 01/30/2015 04:02 PM, Rob Heusdens wrote:
 [...]
 I am using a recent version.
 [...]
 So, I should upgrade to the newest beta?

Using a beta from 2014.11.26 21:43 shows the bug you described.

Upgrading to latest beta makes sense in this case.

If you allow me an opinion, I try to keep ConTeXt updated (I have just
updated it), so I can enjoy the latest features and report the possible
issues I might face.


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

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

Re: [NTG-context] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 19:28 schrieb Rob Heusdens robh...@xs4all.nl:
 
 Use text backgrounds.
 
 \definetextbackground
  [SummaryBackground]
  [frame=off,
   background=color,
   backgroundcolor=gray]
 
 \definehead[summary][section]
 
 \setuphead
  [summary]
  [before=,
   beforesection={\blank\starttextbackground[SummaryBackground]},
   aftersection={\stoptextbackground\blank}]
 
 \starttext
 
 \startsection[title=Knuth]
 
 \input{knuth}
 
 \stopsection
 
 \startsummary[title=Zapf]
 
 \input{zapf}
 
 \stopsummary
 
 \stoptext
 
 Wolfgang
 
 Hello Wolfgang,
 
 Your example works. After adjusting the \summary to using \startsummary,
 \stopsummary, and using your code, with only minor additions, as below:
 
 \definetextbackground
  [SummaryBackground]
  [frame=off,
   background=color,
   backgroundcolor=gray,
   backgroundoffset=2ex] % - added
 
 \definehead[summary][section]
 
 \setuphead[summary]
[number=no, % - added
style=bold, % - added
before=,
beforesection={\page\starttextbackground[SummaryBackground]}, % -
 changed \blank to \page
aftersection={\stoptextbackground\page}] % - changed \blank to \page
 
 I get some unwanted result. See the picture.
 
 The bold does not show up, and a small portion of the topleft corner of
 the background frame is missing
 
 Changing bold to italic also has no effect.
 
 Something strange
 
 Also trying with \blank instead of \page, the background then starts right
 after the previous section, and it seems the indentation causes the
 missing background on the first line.
 
 So I placed \noindentation\page into beforesection (replacing \blank)
 and get the background result I want, but still the bold is missing in the
 summary title, and too much whitespace appears before the section title.
 
 The title should be placed in the same position as normal text would
 appear (and as a side note: in fact I am copying a style that was used in
 a printed book that I typeset, in which each section title - except for
 the summary - is just a normal sentence (or 2) typeset bold, with the rest
 of the text appearing after the section title just as after a normal
 sentence, so no vertical space between title and first sentence of the
 section. Since it appears in the content also, I had to use section
 commands, but is this behaviour duplicatable using setuphead for section?)
 
 
 How can I adjust that?

Make a working minimal example which shows the problem because I’cant
reproduce the problems you mention.

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] inline footnotes

2015-01-30 Thread mf
 Hi Massi,
 
 Could you possibly provide a small pdf sample that illustrates exactly
 what you are looking for? Thanks and 
 
 Best wishes 
 Idris

Thanks for your reply, Idris. Here's an example:

*** traditional (stacked) footnotes ***
***

1. This is the text of the first footnote
2. This is the text of the second footnote


*** inline footnotes (one paragraph for all the footnotes) ***
**

1. first footnote --- 2. second footnote --- 3. the third
footnote, extending to the next line --- 4. fourth one


*** footnotes in columns in ConTeXt (\setupfootnotes[n=3]) ***
**

1. first footnote 2. second one 3. third one
4. fourth one, hy-phenated


Inline footnotes are good when you have a lot of short notes,
that would eat a lot of vertical space, and sometimes other
longer footnotes.
I've put an m-dash as a separator, but you could use a wide
space or another separator.

Footnotes in columns are good if they are ALL shorter than
the column width.

The LaTeX package footmisc provides the inline footnotes
by the option para. But, if I understand right, LaTeX packages
are not compatible with ConTeXt.

___
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] Indentation inside environment

2015-01-30 Thread Fabrice

Hi Wolfgang,
For the first option, it's ok, thank you.
Can you clarify for the second option?
Best regards,
Fabrice
___
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] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
 Make a working minimal example which shows the problem because I’cant
 reproduce the problems you mention.

 Wolfgang

Hello Wofgang,

So far I am unable of re-producing the missing bold description for
summary section titles (and all of  sudden, the summary titles no longer
show up in the TOC either even though 'summary' is included in the
definedcombinedlist , although the page still shows with empty title).

This example does however show that the alignment to the section title of
summary sections does not line up properly with normal section text. It's
a bit too low. How to fix that?

And another thing, the background sometimes extends to a new page even
though there is no text, which looks silly. Deleting the \blank in the
\setupheads entry for the option after does not help.

Below is the code.

Greetings,

Rob

% test background
\setupwhitespace[none]
\setupindenting[yes, small, next]
\setuppagenumbering[alternative=doublesided]

\definetextbackground
  [SummaryBackground]
  [frame=off,
   background=color,
   backgroundcolor=gray,
   backgroundoffset=2ex]

\definehead[summary][section]

\setuphead
  [summary]
  [number=no,
   style=bold,
   before=,
   beforesection={\noindentation\page\starttextbackground[SummaryBackground]},
   aftersection={\stoptextbackground\blank}]

\setuphead[section][number=no,style=bold]


\definecombinedlist[content][section,summary]
\setupcombinedlist[content][level=4, alternative=c]

\starttext
\completecontent
\page
\dorecurse{9}{
\startsection[title={Knuth -- \recurselevel}]

\input{knuth}

\stopsection
}

\startsummary[title=Samenvatting]

\input{zapf}

\stopsummary

\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] Indentation inside environment

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 19:56 schrieb Fabrice couvreur.fabr...@wanadoo.fr:
 
 Hi Wolfgang,
 For the first option, it's ok, thank you.
 Can you clarify for the second option?

Something like (untested):

\defineenumeration[FirstLevel][numberconversion=A,alternative=top]

\starttext

\startFirstLevel
\startitemize[n]
\item
\item
\item
\stopitemize
\stopFirstLevel

\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] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
Correction, I added offset=none,frameoffset=0pt, to the parameters for
the textbackground frame.

Code again with correction:

% test background
\setupwhitespace[none]
\setupindenting[yes, small, next]
\setuppagenumbering[alternative=doublesided]

\definetextbackground
  [SummaryBackground]
  [frame=off,offset=none,frameoffset=0pt,
   background=color,
   backgroundcolor=gray,
   backgroundoffset=2ex]

\definehead[summary][section]

\setuphead
  [summary]
  [number=no,
   style=bold,
   before=,
   beforesection={\noindentation\page\starttextbackground[SummaryBackground]},
   aftersection={\stoptextbackground\blank}]

\setuphead[section][number=no,style=bold]


\definecombinedlist[content][section,summary]
\setupcombinedlist[content][level=4, alternative=c]

\starttext
\completecontent
\page
\dorecurse{9}{
\startsection[title={Knuth -- \recurselevel}]

\input{knuth}

\stopsection
}

\startsummary[title=Samenvatting]

\input{zapf}

\stopsummary

\stoptext



Still the summary title is a bit lower on the page then other text.


___
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] Grey background for pages belonging to last section of every chapter

2015-01-30 Thread Rob Heusdens
 Use text backgrounds.

 \definetextbackground
   [SummaryBackground]
   [frame=off,
background=color,
backgroundcolor=gray]

 \definehead[summary][section]

 \setuphead
   [summary]
   [before=,
beforesection={\blank\starttextbackground[SummaryBackground]},
aftersection={\stoptextbackground\blank}]

 \starttext

 \startsection[title=Knuth]

 \input{knuth}

 \stopsection

 \startsummary[title=Zapf]

 \input{zapf}

 \stopsummary

 \stoptext

 Wolfgang

Hello Wolfgang,

Your example works. After adjusting the \summary to using \startsummary,
\stopsummary, and using your code, with only minor additions, as below:

\definetextbackground
  [SummaryBackground]
  [frame=off,
   background=color,
   backgroundcolor=gray,
   backgroundoffset=2ex] % - added

\definehead[summary][section]

\setuphead[summary]
[number=no, % - added
style=bold, % - added
before=,
beforesection={\page\starttextbackground[SummaryBackground]}, % -
changed \blank to \page
aftersection={\stoptextbackground\page}] % - changed \blank to \page

I get some unwanted result. See the picture.

The bold does not show up, and a small portion of the topleft corner of
the background frame is missing

Changing bold to italic also has no effect.

Something strange

Also trying with \blank instead of \page, the background then starts right
after the previous section, and it seems the indentation causes the
missing background on the first line.

So I placed \noindentation\page into beforesection (replacing \blank)
and get the background result I want, but still the bold is missing in the
summary title, and too much whitespace appears before the section title.

The title should be placed in the same position as normal text would
appear (and as a side note: in fact I am copying a style that was used in
a printed book that I typeset, in which each section title - except for
the summary - is just a normal sentence (or 2) typeset bold, with the rest
of the text appearing after the section title just as after a normal
sentence, so no vertical space between title and first sentence of the
section. Since it appears in the content also, I had to use section
commands, but is this behaviour duplicatable using setuphead for section?)


How can I adjust that?

Greetings,

Rob

(my context version is  2014.12.03 18:26)___
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] Interactive table of content -- jumps always 1 page too far

2015-01-30 Thread Rob Heusdens
Hello list,

Having the problem that if I jump to a chapter or section by clicking on
the interactive table of content (while the page numbers presented do
match the actual page number where the chapter or section begins) always
leads me to jumping one page too far.

I've tried to produce a MWE, but failed so far, even if I add all the
commands and setups which could affect page numbering, it doesn't
reproduce the error.

I didn't do setting the userpage number by hand. In fact the page number
is off by 2 from the real page number, caused by a makeup title page,
which does not do page counting (btw. is there a way to force a custom
title page makeup to DO count the page number?) and an extra page coming
right after it before the table of contents. Setting the right page number
on the table of contents page solves that, but clicking an entry in the
table of contents still sends me one page too far.

Can anyone guid me on where to look or what to try to solve this nasty
problem?

Thanks.

Greetings,

Rob

___
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] inline footnotes

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 22:44 schrieb mf mass...@fastwebnet.it:
 
 Hi Massi,
 
 Could you possibly provide a small pdf sample that illustrates exactly
 what you are looking for? Thanks and 
 
 Best wishes 
 Idris
 
 Thanks for your reply, Idris. Here's an example:
 
 *** traditional (stacked) footnotes ***
 ***
 
 1. This is the text of the first footnote
 2. This is the text of the second footnote
 
 
 *** inline footnotes (one paragraph for all the footnotes) ***
 **
 
 1. first footnote --- 2. second footnote --- 3. the third
 footnote, extending to the next line --- 4. fourth one
 
 
 *** footnotes in columns in ConTeXt (\setupfootnotes[n=3]) ***
 **
 
 1. first footnote 2. second one 3. third one
 4. fourth one, hy-phenated
 
 
 Inline footnotes are good when you have a lot of short notes,
 that would eat a lot of vertical space, and sometimes other
 longer footnotes.
 I've put an m-dash as a separator, but you could use a wide
 space or another separator.
 
 Footnotes in columns are good if they are ALL shorter than
 the column width.
 
 The LaTeX package footmisc provides the inline footnotes
 by the option para. But, if I understand right, LaTeX packages
 are not compatible with ConTeXt.

\setupnotation[footnote][alternative=serried,numbercommand=,numberstopper=.]
\setupnote[footnote][paragraph=yes,inbetween=~–~]

\starttext

One\footnote{first footnote}
Two\footnote{second footnote}
Three\footnote{The third footnote, extending to the next line}
Four\footnote{fourth one}

\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] inline footnotes

2015-01-30 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Massi,

Could you possibly provide a small pdf sample that illustrates exactly what you 
are looking for? Thanks and 

Best wishes 
Idris

Sent from my *awesome* BlackBerry 10 smartphone.
  Original Message  
From: mass...@fastwebnet.it
Sent: Friday, January 30, 2015 1:16 AM
To: ntg-context@ntg.nl
Reply To: mass...@fastwebnet.it
Subject: [NTG-context] inline footnotes

Hello,
I'd like to know how to get inline footnotes with ConTeXt.
There are some packages in LaTeX (option para in footmisc, manyfoot, bigfoot) 
providing that feature.
How can I do that in ConTeXt?
Thanks,
Massi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Strange bug in interactive table of content...

2015-01-30 Thread Rob Heusdens
 On 01/30/2015 03:18 AM, Rob Heusdens wrote:
 A right parenthesis ')' shows up as black in the interactive table of
 contents (which otherwise displays as green).

 Here is a MWE:

 \setupcolors[state=start]
 \setupinteraction[state=start]
 \definecombinedlist[content][chapter]
 \setupcombinedlist[content][level=4, alternative=c]
 \setbreakpoints[compound]
 \starttext
 \completecontent
 \chapter{Noten bij de digitale (her)uitgave}
 \chapter{Noten bij de digitale (her)\-uitgave}
 \chapter{Tries: her)uit}
 \chapter{Tries: her)ui}
 \chapter{Tries: er)uit}
 \stoptext
 [...]
 Output in attachement.

 Hi Rob,

 using beta from 2015.01.26 11:39 displays all characters in green
 (tested in Fedora 20 with evince-3.10.3 and mupdf-1.6).

 If there was a bug, I guess it might have been fixed.

 I hope it helps,


 Pablo
 --
 http://www.ousia.tk


I am using a recent version.

mtx-context | ConTeXt Process Management 0.61
mtx-context |
mtx-context | main context file:
/home/ubuntu/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2014.12.03 18:26


So, I should upgrade to the newest beta?

greetings,

Rob

___
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] Indentation inside environment

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 12:59 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:
 
 Hi,
 I would have no indentation for the text (ward)
 thank you,
 Fabrice
 
 \starttext
 \startitemize[A][stopper={.},style=bold]
 \iem  

   
   \item

 \blank[big]
 \input ward
 \startitemize[n][stopper={.},style=bold]
 \item 
 \item 
 \item 
 \stopitemize
 \item 
 \blank[big]
 \input ward
 \startitemize[n][stopper={.},style=bold]
 \item 
 \item 
 \item 
 \stopitemize
 \stopitemize
 \stoptext

You can use the “intent” keyword (i.e. \startitemize[intext][..,..=..,..]) or 
as alternative
use a enumeration for the outer level of your 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] publications in footnotes (new bibliography mkiv)

2015-01-30 Thread Jörg Weger

At least I have found a workaround for that problem:

I will render my complete publications list for the paper by using

\placebtxrendering[method=dataset]

and copy the entry from the resulting PDF into the footnote of my 
ConTeXt file. There I can edit (= shorten) and format it.


For the future it be great to have a variant like

“\cite[publfootnote][BibTeX_key]”

that would render a predefined style of the publication (optionally 
different from the list entry) into a footnote.


Greetings Jörg


On 29.01.2015 13:41, Jörg Weger wrote:

I have to prepare a paper in literary science. I need to be able to
quote a reference in a footnote instead of a in-text reference. Such a
footnote should look the same or similar as the entry in the
publications list.

I guess that I have to do \setupbtxcitevariant and \definebtxcitevariant
but then I am stuck.

It would be great if one could put a separate page number/range for
every footnote.

Is there maybe already a mechanism for that?


Greetings Jörg


___
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] inline footnotes

2015-01-30 Thread massifr
Hello,
I'd like to know how to get inline footnotes with ConTeXt.
There are some packages in LaTeX (option para in footmisc, manyfoot, bigfoot) 
providing that feature.
How can I do that in ConTeXt?
Thanks,
Massi
___
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] Indentation inside environment

2015-01-30 Thread Fabrice Couvreur
Hi,
I would have no indentation for the text (ward)
thank you,
Fabrice

\starttext
\startitemize[A][stopper={.},style=bold]
\iem
\blank[big]
\input ward
\startitemize[n][stopper={.},style=bold]
\item
\item
\item
\stopitemize
\item
\blank[big]
\input ward
\startitemize[n][stopper={.},style=bold]
\item
\item
\item
\stopitemize
\stopitemize
\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
___