Re: [NTG-context] TOC: alternative=c not working?

2012-03-06 Thread Hans Hagen

On 5-3-2012 21:30, Wolfgang Schuster wrote:


Am 05.03.2012 um 08:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:


Hello,

the following sample doesn't give the dotted style (#.# Name  page) of 
the TOC - dots are missing:

 t-TOC.mkiv
\setupcombinedlist[content][alternative=c]

\starttext
  \completecontent
  \page

  \section{Sec}
\subsection{SSec}
  \subsubsection{SSSec}

\input knuth
\stoptext


My fault or something is broken or a new approach?


Use \setuplist[section,…][alternative=c].


in the latest beta the alternative option works but not other settings 
(like width) as they are rather list specific


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] Footnotes gone

2012-03-06 Thread Hans Hagen

On 6-3-2012 02:28, Kip Warner wrote:

Hey list,

For the first time in several months, today's nightly build actually
managed to digest my book without crashing or bailing. I'm using
2012.03.05.

There is one thing I noticed though and that is all of my footnotes are
now invisible. The number next to them is visible, but the text itself
is black on black (my page colour is black).

I am preparing my footnotes as such:
\definecolor[colour_page][r=0,g=0,b=0]
\definecolor[colour_text][r=0.754,g=0.516,b=0.324]
\definecolor[colour_footnote_background][colour_page]
\definecolor[colour_footnote_text][colour_text]

\setupfootnotes
   [color=colour_footnote_text,
backgroundcolor=colour_footnote_background]

This was working in previous builds, but it could be someone changed the
method to alter the footnote text's colour.


you forgot to include the minimal example

-
  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] Footnotes gone

2012-03-06 Thread Wolfgang Schuster

Am 06.03.2012 um 02:28 schrieb Kip Warner:

 Hey list,
 
 For the first time in several months, today's nightly build actually
 managed to digest my book without crashing or bailing. I'm using
 2012.03.05.
 
 There is one thing I noticed though and that is all of my footnotes are
 now invisible. The number next to them is visible, but the text itself
 is black on black (my page colour is black).
 
 I am preparing my footnotes as such:
 \definecolor[colour_page][r=0,g=0,b=0]
 \definecolor[colour_text][r=0.754,g=0.516,b=0.324]
 \definecolor[colour_footnote_background][colour_page]
 \definecolor[colour_footnote_text][colour_text]
 
 \setupfootnotes
  [color=colour_footnote_text,
   backgroundcolor=colour_footnote_background]
 
 This was working in previous builds, but it could be someone changed the
 method to alter the footnote text's color.

The style, color etc. of the footnote text can be changed with the 
\setupnotation
(in older versions \setupnotedefinition) command, the \setupnote (or 
\setupfootnotes)
command controls only general settings like the rule or the space before
the footnote block and the style and color of the number in the running text.

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] Style file for iPad?

2012-03-06 Thread Alasdair McAndrew
If this has been asked before, my apologies.

Is there a style file for formatting PDFs from ConTeXt for reading on an
iPad?  So far I've just used

\setuppapersize[A4][A4]
\setuplayout[backspace=20mm,
width=160mm,
topspace=20mm, top=0mm,
header=0mm, footer=10mm,
bottomspace=20mm,bottom=0mm,
textheight=250mm]

which works fine - for printing - but isn't optimized for the iPad.  If
anybody has any suggestions or examples, I'd be very grateful of them!

Thanks,
Alasdair

-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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] Style file for iPad?

2012-03-06 Thread Philipp A.
2012/3/6 Alasdair McAndrew amc...@gmail.com

 Is there a style file for formatting PDFs from ConTeXt for reading on an
 iPad?


 make an ebook instead. PDF files aren’t for screen reading, but for
printing.

semantic markup like it is used in ebook formats is much better suited for
screens of all sizes.
___
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] Style file for iPad?

2012-03-06 Thread Alasdair McAndrew
Yes, but what ebook formats handle mathematics and diagrams?

-A.

On Tue, Mar 6, 2012 at 10:36 PM, Philipp A. flying-sh...@web.de wrote:

 2012/3/6 Alasdair McAndrew amc...@gmail.com

 Is there a style file for formatting PDFs from ConTeXt for reading on an
 iPad?


  make an ebook instead. PDF files aren’t for screen reading, but for
 printing.

 semantic markup like it is used in ebook formats is much better suited for
 screens of all sizes.


 ___
 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

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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] Style file for iPad?

2012-03-06 Thread Hans Hagen

On 6-3-2012 12:03, Alasdair McAndrew wrote:

If this has been asked before, my apologies.

Is there a style file for formatting PDFs from ConTeXt for reading on an
iPad?  So far I've just used

\setuppapersize[A4][A4]
\setuplayout[backspace=20mm,
width=160mm,
topspace=20mm, top=0mm,
header=0mm, footer=10mm,
 bottomspace=20mm,bottom=0mm,
textheight=250mm]

which works fine - for printing - but isn't optimized for the iPad.  If
anybody has any suggestions or examples, I'd be very grateful of them!


copied from s-inf-03.mkiv

\setuppapersize
  [S6,landscape]
  [S6,landscape]

\setuplayout
  [header=0cm,
   footer=1cm,
   backspace=.5cm,
   topspace=.5cm,
   width=middle,
   height=middle]

(not that I use the ipad for reading docs ... too must hassle to get 
something on it)


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] Style file for iPad?

2012-03-06 Thread Khaled Hosny
On Tue, Mar 06, 2012 at 10:40:20PM +1100, Alasdair McAndrew wrote:
 Yes, but what ebook formats handle mathematics and diagrams?

Plus the poor layout support in almost all ebook readers (brain dead
paragraph builder, no hyphenation, no OpenType support etc. etc. they
are usually pieces of junk for any remotely complex text layout job).

Regards,
 Khaled
___
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] Style file for iPad?

2012-03-06 Thread Aditya Mahajan

On Tue, 6 Mar 2012, Alasdair McAndrew wrote:


If this has been asked before, my apologies.

Is there a style file for formatting PDFs from ConTeXt for reading on an
iPad?


I use the following style for an ebook reader:

https://gist.github.com/1886670

I set the paper size to the physical size of the device 
screen, use tiny margins, and set an appropriate font size.


See 
http://randomdeterminism.wordpress.com/2009/10/21/creating-a-style-file-in-context/ 
for example output.


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] Style file for iPad?

2012-03-06 Thread Aditya Mahajan

On Tue, 6 Mar 2012, Hans Hagen wrote:


On 6-3-2012 12:03, Alasdair McAndrew wrote:

If this has been asked before, my apologies.

Is there a style file for formatting PDFs from ConTeXt for reading on an
iPad?  So far I've just used

\setuppapersize[A4][A4]
\setuplayout[backspace=20mm,
width=160mm,
topspace=20mm, top=0mm,
header=0mm, footer=10mm,
 bottomspace=20mm,bottom=0mm,
textheight=250mm]

which works fine - for printing - but isn't optimized for the iPad.  If
anybody has any suggestions or examples, I'd be very grateful of them!


copied from s-inf-03.mkiv

\setuppapersize
 [S6,landscape]
 [S6,landscape]


A5 is closer to the screen size than S6.

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] Style file for iPad?

2012-03-06 Thread Hans Hagen

On 6-3-2012 14:48, Aditya Mahajan wrote:

On Tue, 6 Mar 2012, Hans Hagen wrote:


On 6-3-2012 12:03, Alasdair McAndrew wrote:

If this has been asked before, my apologies.

Is there a style file for formatting PDFs from ConTeXt for reading on an
iPad? So far I've just used

\setuppapersize[A4][A4]
\setuplayout[backspace=20mm,
width=160mm,
topspace=20mm, top=0mm,
header=0mm, footer=10mm,
bottomspace=20mm,bottom=0mm,
textheight=250mm]

which works fine - for printing - but isn't optimized for the iPad. If
anybody has any suggestions or examples, I'd be very grateful of them!


copied from s-inf-03.mkiv

\setuppapersize
[S6,landscape]
[S6,landscape]


A5 is closer to the screen size than S6.


S6 has an 3:4 aspect ratio

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] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 05/03/12 11:39, Hans Hagen wrote:
 On 4-3-2012 11:20, Pablo Rodríguez wrote:
 \starttext
 \startlinenumbering
 \dorecurse{10}{\input zapf\par\input knuth}
 \stoplinenumbering
 \stoptext
 
 currently it's not possible but it's no big deal to add that feature at 
 some point as it's a matter of keeping track of first/last numbers; for 
 the page it's trivial but as we also support numbering in columns and 
 other places some housekeeping is needed (read: a quick hack is possible 
 but I will only do a proper solution)

Many thanks for your reply, Hans.

I think that implemented a proper ConTeXt solution would be useful for
other users.

I would really appreciate it, if a solution could be implemented.

Many thanks again for your help,


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] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 05/03/12 15:12, luigi scarso wrote:
 2012/3/4 Pablo Rodríguez:
 [...]
 Many thanks for your reply, Wolfgang.
 
 If you allow me one more question: is showing the numbers on the same
 page they refer to beyond the limits of TeX/LuaTeX?
 
 Absolutely no. As Hans said, a quick/dirty trick is possible: just
 mark the object with \pagereference[unique id]. The data is stored
 into the *tuc file, which can be read from  the second pass.

Many thanks for the code, Luigi.

My question was to basic, but I wondered why this didn't worked.

 Of course, it's possible  doesn't mean it's the right context
 way.

It does the work until it's implemented in ConTeXt.

Many thanks again for your help,


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
___


[NTG-context] footnotes bychapter

2012-03-06 Thread Thomas A. Schmitz

This works with the November beta, but not the current:

\setupfootnotes[way=bychapter,
location=page,
rule=off]

\starttext

\startchapter[title=One]

Chapter\footnote{Note 1} with two\footnote{Note 2} footnotes.

\stopchapter

\startchapter[title=Two]

Chapter\footnote{Should be Note 1} with two additional\footnote{should 
be Note 2} footnotes.


\stopchapter

\stoptext

Bug, or has the syntax changed?

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

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


Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 05/03/12 15:12, luigi scarso wrote:
 2012/3/4 Pablo Rodríguez
 If you allow me one more question: is showing the numbers on the same
 page they refer to beyond the limits of TeX/LuaTeX?
 
 Absolutely no. As Hans said, a quick/dirty trick is possible: just
 mark the object with \pagereference[unique id]. The data is stored
 into the *tuc file, which can be read from the second pass.

Luigi, I'm afraid it doesn't work as expected in the real file

Lines are numbered there with [step=5]. So I get in headers only
actually numbered lines, although it header should contain the real line
numbers (even with the line number isn't shown on that line).

How would it the the code in that case? (Sorry for asking this, but I'm
afraid I cannot code in lua [or in any other language].)

Many thanks for your help,


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

2012-03-06 Thread Hans Hagen

On 6-3-2012 18:29, Thomas A. Schmitz wrote:

This works with the November beta, but not the current:

\setupfootnotes[way=bychapter,
location=page,
rule=off]

\starttext

\startchapter[title=One]

Chapter\footnote{Note 1} with two\footnote{Note 2} footnotes.

\stopchapter

\startchapter[title=Two]

Chapter\footnote{Should be Note 1} with two additional\footnote{should
be Note 2} footnotes.

\stopchapter

\stoptext

Bug, or has the syntax changed?


no, just something 'not done yet' (but will be done asap, some setup 
synchronization code needed)



-
  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] is it possible to have first and last line numbers from page?

2012-03-06 Thread luigi scarso
2012/3/6 Pablo Rodríguez oi...@web.de

 On 05/03/12 15:12, luigi scarso wrote:
  2012/3/4 Pablo Rodríguez
  If you allow me one more question: is showing the numbers on the same
  page they refer to beyond the limits of TeX/LuaTeX?
 
  Absolutely no. As Hans said, a quick/dirty trick is possible: just
  mark the object with \pagereference[unique id]. The data is stored
  into the *tuc file, which can be read from the second pass.

 Luigi, I'm afraid it doesn't work as expected in the real file

 I'm not surprised

 Lines are numbered there with [step=5]. So I get in headers only
 actually numbered lines, although it header should contain the real line
 numbers (even with the line number isn't shown on that line).

 How would it the the code in that case? (Sorry for asking this, but I'm
 afraid I cannot code in lua [or in any other language].)



 Many thanks for your help,

Do you have an example ?

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

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

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 06/03/12 19:48, luigi scarso wrote:
 2012/3/6 Pablo Rodríguez
 
 Luigi, I'm afraid it doesn't work as expected in the real file
 
 I'm not surprised 

My fault, because I didn' realize that numbers only appeared on each
fifth line.

 Lines are numbered there with [step=5]. So I get in headers only
 actually numbered lines, although it header should contain the real line
 numbers (even with the line number isn't shown on that line).
 
 How would it the the code in that case? (Sorry for asking this, but I'm
 afraid I cannot code in lua [or in any other language].)
 
 Do you have an example ?

Adapting from your code:

\startluacode
document.my_name_space = document.my_name_space or {}
document.my_name_space.pages = document.my_name_space.pages or {}
local f =  io.open(file.addsuffix(tex.jobname,tuc) )
print(' ',f)
if f==nil then
 --[=[ do nothin ]=]
else
 f:close()
 local tuc = dofile(file.addsuffix(tex.jobname,tuc))
 local data =  tuc.structures.references.collected[]
 local  w
 local pages = document.my_name_space.pages
 local realpage,ref
 for k, v in  pairs(data) do
   w=string.gmatch(k,'LIN:(\%d+):\%d+')
   ref = tonumber(w())
   realpage = tostring(v.references.realpage)
   pages[realpage]= pages[realpage] or {}
   table.insert(pages[realpage],ref)
 end
 for page,array in pairs(pages) do
   table.sort(array)
 end
end
\stopluacode

\definemarking[linenumber]
\define\LinenumberCommand
 
{\normalexpanded{\setmarking[linenumber]{\linenumber}}\pagereference[LIN:\linenumber:\currentpage]}

\setuplinenumbering[command=\LinenumberCommand,step=5]

\startsetups linenumber
 \startluacode
 local l=0;
 if document.my_name_space == nil then return end;
 if document.my_name_space.pages == nil then return end;
 local pages = document.my_name_space.pages;
 for _,_ in  pairs(pages) do l=l+1 end;
 if l== 0 then return end;
 --[=[ OK, we have some data to print ]=]
 local array = pages[tostring(tex.count.realpageno)]
 l=0;
 if array ==nil then return end;
 for _,_ in  pairs(array) do l=l+1 end;
 if l0 then context(array[1].. -- ..array[l]) end;
 \stopluacode
\stopsetups

\setupheadertexts[\texsetup{linenumber}]

\starttext

\dorecurse{6}{\input tufte\par}

\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering

\startlinenumbering
\dorecurse{20}{\input knuth\par}
\stoplinenumbering

\stoptext

On page 7 lines are numbered from lowest to highest values. A purist
might consider this wrong, but this is unlikely to happen on a real
book, since (I guess) line numbers on headers only make sense when they
two different series cannot be on the same page.

Many thanks for your help,


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] is it possible to have first and last line numbers from page?

2012-03-06 Thread luigi scarso
2012/3/6 Pablo Rodríguez oi...@web.de


 On page 7 lines are numbered from lowest to highest values. A purist
 might consider this wrong, but this is unlikely to happen on a real
 book, since (I guess) line numbers on headers only make sense when they
 two different series cannot be on the same page.

 Many thanks for your help,

 I see but ... how do you want to manage this situation ?
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] is it possible to have first and last line numbers from page?

2012-03-06 Thread Pablo Rodríguez
On 06/03/12 20:27, luigi scarso wrote:
 2012/3/6 Pablo Rodríguez
 
 On page 7 lines are numbered from lowest to highest values. A purist
 might consider this wrong, but this is unlikely to happen on a real
 book, since (I guess) line numbers on headers only make sense when they
 two different series cannot be on the same page.
 
 Many thanks for your help,
 
 I see but ... how do you want to manage this situation ? 

In that particular case, I have no idea. I number lines by chapter, so
it is impossible that I would face this situation.

The canonical way to handle that would be to get the number from first
line on the page and number from last line on the page. The header would
be in that case 198--27, which doesn't make any sense.

Since this is a hack for other purpose, you can simply ignore it.

Thanks for your help,


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

2012-03-06 Thread Thomas A. Schmitz

On 3/6/12 7:46 PM, Hans Hagen wrote:

no, just something 'not done yet' (but will be done asap, some setup
synchronization code needed)


Great, good to know!

Thanks, and best wishes

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

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


Re: [NTG-context] Footnotes gone

2012-03-06 Thread Kip Warner
On Tue, 2012-03-06 at 09:50 +0100, Hans Hagen wrote:
 you forgot to include the minimal example

\definecolor[colour_page][r=0,g=0,b=0]
\definecolor[colour_text][r=0.754,g=0.516,b=0.324]
\definecolor[colour_footnote_background][colour_page]
\definecolor[colour_footnote_text][colour_text]

\setupfootnotes
[
 color=colour_footnote_text,
 backgroundcolor=colour_footnote_background
]

\starttext
This is some text with a footnote on the end.\footnote{And here is the
footnote.}

\stoptext

It seems to ignore the colour of the footnote's text and just sets it as
black. I also can't figure out how to set the colour of the footnote
number.

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


signature.asc
Description: This is a digitally signed message part
___
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 usage

2012-03-06 Thread Kip Warner
On Tue, 2012-03-06 at 08:35 +0100, Wolfgang Schuster wrote:
 Am 06.03.2012 um 03:05 schrieb Kip Warner:
 
  Hey list,
  
  I'd like the contents of my \startdefinition \stopdefinition pairs to
  have their title above them on a line of their own, but am having
  problems with the usage:
  
  \definedescription[definition]
   [location=top,
 
 alternative=top,
 
hang=20,
headcolor=colour_head,
headstyle=boldslanted,
command=\hskip-1cm,
margin=1cm]

As soon as I added that variable and assignment, it crapped out:

! Undefined control sequence.
\143top:width -\localhize 

\assignwidth ...dth \ifcsname \??dimensionwidth #1
  \endcsname #1\else \s!
unkn...
\139notation ...onalternativeparameter \c!width }

\constructionsheadwidth {...
\handlenoteitself ...c_constructions_stored_start 
  \begstrut
\strc_notes_set_...
\handlenoteinsert ... {\handlenoteitself {#1}{#2}}
  \egroup \the
\everyafterno...
\142notation:note ...rentnote \currentnotenumber 
  \fi \fi \endgroup \fi
\fi ...
...
l.23 ...f.org/external/np/pp/eng/2010/041310.pdf}}

It compiles fine if I remove it though.

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


signature.asc
Description: This is a digitally signed message part
___
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] Footnotes gone

2012-03-06 Thread Kip Warner
On Tue, 2012-03-06 at 10:47 +0100, Wolfgang Schuster wrote:
 The style, color etc. of the footnote text can be changed with the 
 \setupnotation
 (in older versions \setupnotedefinition) command, the \setupnote (or 
 \setupfootnotes)
 command controls only general settings like the rule or the space before
 the footnote block and the style and color of the number in the running text.
 
 Wolfgang

I tried just using the following:

\setupnotation[footnote]
[color=colour_footnote_text,
 backgroundcolor=colour_footnote_background]

Now all of the footnotes are sadly busted to shit. They're all numbered
3 and their text consists of a single word - the same word for all of
them. =(

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


signature.asc
Description: This is a digitally signed message part
___
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 usage

2012-03-06 Thread Marco
On 2012-03-06 Kip Warner k...@thevertigo.com wrote:

 As soon as I added that variable and assignment, it crapped out:
 
 ! Undefined control sequence.
 \143top:width -\localhize 
 
 \assignwidth ...dth \ifcsname \??dimensionwidth #1

Looks like this bug:

http://permalink.gmane.org/gmane.comp.tex.context.devel/1974

Marco


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

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


Re: [NTG-context] \definedescription usage

2012-03-06 Thread Kip Warner
On Wed, 2012-03-07 at 00:40 +0100, Marco wrote:
 Looks like this bug:
 
 http://permalink.gmane.org/gmane.comp.tex.context.devel/1974
 
 Marco

I don't know why, but I always seem to be the one to step on every
ConTeXt landmine.

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


signature.asc
Description: This is a digitally signed message part
___
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
___