Re: [NTG-context] Broken Nightly 2012.03.02

2012-03-04 Thread Jaroslav Hajtmar

Hello Kip.
I do not know whether it will be something, but try increasing the 
memory in some parts of texmf.cnf file.

I once enlarged in ConTeXt in TeXlive pool_size.context = 200

Good Luck. Jaroslav

At the same time are any values in texmf.cnt this:

buf_size.context = 400
extra_mem_bot.context = 200
extra_mem_top.context = 400
font_max.context = 5000
font_mem_size.context = 200
hash_extra.context = 10
main_memory.context = 200
max_strings.context = 30
nest_size.context = 500
pdf_mem_size.context = 50
param_size.context = 1
pool_free.context = 47500
pool_size.context = 200
save_size.context = 5
stack_size.context = 1
string_vacancies.context = 125000
trie_size.context = 50
hyph_size.context = 8191% prime
expand_depth.context = 1

obj_tab_size.context 300,000 = 1.40% + obsolete in
dest_names_size.context 300,000 = 1.40% + obsolete in


Dne 4.3.2012 2:49, Kip Warner napsal(a):

Hey list,

While attempting to compile my book, I get the following error:

$ context Source/Handbook.tex --purgeresult
...
graphics  invalid region for 'tbg:1'
! TeX capacity exceeded, sorry [input stack size=1].
argument  \next

\doifmeaningelse ...\edef \!!stringa {\meaning #1
   }\def \!!stringb
{#2}\edef...
\spac_lines_between ...ningelse \next \obeyedline
   {\linesparameter \c!
inbetw...
\doifmeaningelse ...meaning #1}\def \!!stringb {#2
   }\edef \!!stringb
{\meanin...
\spac_lines_between ...ningelse \next \obeyedline
   {\linesparameter \c!
inbetw...
\doifmeaningelse ...meaning #1}\def \!!stringb {#2
   }\edef \!!stringb
{\meanin...
...
l.34 ... and the methane/oxygen return propellant.

!  ==  Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1

This happened with nightly 2012.03.02.

   



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

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


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

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


[NTG-context] ruby module

2012-03-04 Thread S Barmeier
Is it possible to place the ruby text in a margin?

This would allow me to keep line spacing decently tight and also prevent
the reader from only reading the annotation.

How can one change the font size of the annotation and is there a way to
keep it fixed, not being scaled according to the font size of the word
it annotates?

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

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


Re: [NTG-context] Broken Nightly 2012.03.02

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 02:49 schrieb Kip Warner:

 Hey list,
 
 While attempting to compile my book, I get the following error:
 
 $ context Source/Handbook.tex --purgeresult
 ...
 graphics invalid region for 'tbg:1'
 ! TeX capacity exceeded, sorry [input stack size=1].
 argument \next 
 
 \doifmeaningelse ...\edef \!!stringa {\meaning #1
  }\def \!!stringb
 {#2}\edef...
 \spac_lines_between ...ningelse \next \obeyedline 
  {\linesparameter \c!
 inbetw...
 \doifmeaningelse ...meaning #1}\def \!!stringb {#2
  }\edef \!!stringb
 {\meanin...
 \spac_lines_between ...ningelse \next \obeyedline 
  {\linesparameter \c!
 inbetw...
 \doifmeaningelse ...meaning #1}\def \!!stringb {#2
  }\edef \!!stringb
 {\meanin...
 ...
 l.34 ... and the methane/oxygen return propellant.
 
 !  == Fatal error occurred, no output PDF file produced!
 mtx-context | fatal error: return code: 1
 
 This happened with nightly 2012.03.02.

This is a problem with the lines environment and a minimal example does also 
show the same message.

\definetextbackground[test]%[state=stop]

\starttext \showframe

%\blank[force,35*line]
\blank[force,36*line]

\starttest

\startlines
One
Two
Three
Four
Five
\stoplines

\stoptest

\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] \inmargin

2012-03-04 Thread S Barmeier
I had a look at the garden reference of \setupinmargin. Trying to set
width=70mm, I get no change.

The default seems to be bold and aligned right. Changing the style
works, but trying to align inner/left also has no effect.

Any help?

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

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


Re: [NTG-context] ruby module

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 10:11 schrieb S Barmeier:

 Is it possible to place the ruby text in a margin?

No.

 This would allow me to keep line spacing decently tight and also prevent
 the reader from only reading the annotation.

This can be added but then you need a symbol (or something else) to see
to which word the annotation refers.

 How can one change the font size of the annotation and is there a way to
 keep it fixed, not being scaled according to the font size of the word
 it annotates?

You can change the style of the base text with the “basestyle” key and
of the annotation with the “textstyle” key.

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] \inmargin

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 10:39 schrieb S Barmeier:

 I had a look at the garden reference of \setupinmargin. Trying to set
 width=70mm, I get no change.

\setuplayout
  [backspace=8cm,
   leftmargin=7cm,
   cutspace=2cm,
   width=middle]

\starttext

\inmargin{\input ward }
\input knuth

\stoptext

 The default seems to be bold and aligned right. Changing the style
 works, but trying to align inner/left also has no effect.

Style and color:

\setupmargindata[…][style=…,color=…]

Alignment:

\setupmarginframed[align=…]

Can be also done direct:

\inmargin[style=…,color=…][align=…]{…}

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

2012-03-04 Thread Pablo Rodríguez
I have asked this question before (more than twice), after I found no
answer in the ConTeXt reference manual, the wiki or the mailing list.

I wanted to be able to have in the headers the first and last line
number from page. This feature is extremely useful when typesetting some
kinds of poetry.

The most basic sample would be:

\starttext
\startlinenumbering
\dorecurse{10}{\input zapf\par\input knuth}
\stoplinenumbering
\stoptext

Is that possible to achieve with ConTeXt?

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-04 Thread Wolfgang Schuster

Am 04.03.2012 um 11:20 schrieb Pablo Rodríguez:

 I have asked this question before (more than twice), after I found no
 answer in the ConTeXt reference manual, the wiki or the mailing list.
 
 I wanted to be able to have in the headers the first and last line
 number from page. This feature is extremely useful when typesetting some
 kinds of poetry.
 
 The most basic sample would be:
 
 \starttext
 \startlinenumbering
 \dorecurse{10}{\input zapf\par\input knuth}
 \stoplinenumbering
 \stoptext
 
 Is that possible to achieve with ConTeXt?


Yes but it’s not usable because the numbers are always shown on the next page.

\definemarking[linenumber]

\define\LinenumberCommand
  {\normalexpanded{\setmarking[linenumber]{\linenumber}}}

\setuplinenumbering[command=\LinenumberCommand]

\startsetups linenumber

\doiftext {
\getmarking[linenumber]
}
{
\getmarking[linenumber][first] – \getmarking[linenumber][last]
}

\stopsetups

\setupheadertexts[\texsetup{linenumber}]

\starttext

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

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

\resetmarking[linenumber]

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

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

2012-03-04 Thread Pablo Rodríguez
On 03/04/2012 12:04 PM, Wolfgang Schuster wrote:
 Am 04.03.2012 um 11:20 schrieb Pablo Rodríguez:

 I wanted to be able to have in the headers the first and last line
 number from page. This feature is extremely useful when typesetting some
 kinds of poetry.
 [...]
 Is that possible to achieve with ConTeXt?
 
 Yes but it’s not usable because the numbers are always shown on the next page.

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?

I'm asking this to know whether such a feature could be implemented some
day in ConTeXt.

Many thanks for your help again,


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] ruby module

2012-03-04 Thread S Barmeier
 Is it possible to place the ruby text in a margin?
 
 No.
 
 This would allow me to keep line spacing decently tight and also prevent
 the reader from only reading the annotation.
 
 This can be added but then you need a symbol (or something else) to see
 to which word the annotation refers.

I'm just thinking of annotating one or two words per line, which in an
appropriately small font size could just be stacked at the end of the
line in order of occurrence.
Problems would only arise if one line contained 3 or more words to be
annotated, and the next line also contained one...

Would this be possible to implement? Would this just be a \defineinright?

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

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


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

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 13:15 schrieb Pablo Rodríguez:

 On 03/04/2012 12:04 PM, Wolfgang Schuster wrote:
 Am 04.03.2012 um 11:20 schrieb Pablo Rodríguez:
 
 I wanted to be able to have in the headers the first and last line
 number from page. This feature is extremely useful when typesetting some
 kinds of poetry.
 [...]
 Is that possible to achieve with ConTeXt?
 
 Yes but it’s not usable because the numbers are always shown on the next 
 page.
 
 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?
 
 I'm asking this to know whether such a feature could be implemented some
 day in ConTeXt.

It’s a problem with the way how line numbering works.

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] ruby overhang

2012-03-04 Thread S Barmeier
\usemodule[ruby]
\setupruby[overhang=start]
\starttext
foo \ruby{bar}{foo bar baz} baz
\stoptext

end,yes,auto all give overhang=none. Am I doing something wrong?

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

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


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

2012-03-04 Thread Pablo Rodríguez
On 04/03/12 14:44, Wolfgang Schuster wrote:
 Am 04.03.2012 um 13:15 schrieb 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?

 I'm asking this to know whether such a feature could be implemented some
 day in ConTeXt.
 
 It’s a problem with the way how line numbering works.

Thanks for your reply, Wolfgang.

Would it be possible to make something similar with margin data or pure
margin sectioning commands? Only interested in knowing whether this
could work.

Thanks again for your help,


Pablo

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] Broken Nightly 2012.03.02

2012-03-04 Thread Kip Warner
On Sun, 2012-03-04 at 09:52 +0100, Jaroslav Hajtmar wrote:
 Hello Kip.
 I do not know whether it will be something, but try increasing the 
 memory in some parts of texmf.cnf file.
 I once enlarged in ConTeXt in TeXlive pool_size.context = 200
 
 Good Luck. Jaroslav

Thanks Jaroslav. It sounds like its an actual bug in ConTeXt so I will
wait for upstream to patch it before I probably muck something up inside
of it.

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

[NTG-context] Referencing a definition

2012-03-04 Thread Kip Warner
Hey list,

I have a definition, like so...

\startdefinition[definition:Foo]{Foo}
Definition of foo here...
\stopdefinition

I'd like to reference it in the same way I would a section like
\in{section}[Node]. How can I do the same with a definition such that it
will typeset a clickable section number or some such to get to the
definition?

Thanks.

-- 
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] ruby overhang

2012-03-04 Thread Wolfgang Schuster

Am 04.03.2012 um 15:43 schrieb S Barmeier:

 \usemodule[ruby]
 \setupruby[overhang=start]
 \starttext
 foo \ruby{bar}{foo bar baz} baz
 \stoptext
 
 end,yes,auto all give overhang=none. Am I doing something wrong?

You need also “align=center” because by default the base text is stretched 
(with a small space at the left and right side) to the width of the ruby text, 
look for distribute-space in the css3 spec [1].

[1] http://www.w3.org/TR/css3-ruby/#rubyalign

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] Including command output

2012-03-04 Thread Kip Warner
Hey list,

I'd like to include the output of a command. I am using the following to
define the command,

\def\BazaarRevision{\cldcontext{os.resultofbzr revno | tr -d '\\n'}}

and the following to use the output of the command,

\BazaarRevision

A concern I have is whether this command is executed multiple times
during the typesetting process when it need only be done once with the
result cached. If this is indeed the case, does anyone have any
suggestions?

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

[NTG-context] Itemize Prefixes

2012-03-04 Thread Kip Warner
Hey list,

I'd like an itemized list using the following format...

Article I ...
Article II ...
Article III ...

...and so on. I've tried defining the behaviour with...

\defineenumeration[article]
[location=top,
text=Article,
between=\blank,
before=\blank,
after=\blank]
\setupenumerations[article][R]

...but the problem is that after a list of items provided with matching
\startarticle \stoparticle pairs, the last count persists to the next
list of items which should start at 'I' again. I am assuming I am not
doing this correctly and would appreciate any suggestions.

-- 
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] Including command output

2012-03-04 Thread Aditya Mahajan

On Sun, 4 Mar 2012, Kip Warner wrote:


Hey list,

I'd like to include the output of a command. I am using the following to
define the command,

\def\BazaarRevision{\cldcontext{os.resultofbzr revno | tr -d '\\n'}}

and the following to use the output of the command,

\BazaarRevision

A concern I have is whether this command is executed multiple times
during the typesetting process when it need only be done once with the
result cached. If this is indeed the case,


Yes.


does anyone have any suggestions?


The cleaner way is to seperate the setup and use. For example:

\def\initilizebazaar
{\ctxlua{context.setevalue(
  usebazaarrevision,
   os.resultofbzr revno | tr -d '\\n')}}

\appendtoks \initilizebazaar \to \everystarttext

and then use can use \usebazaarrevision in the main text.

If you want to use the automagic way, you can define \BazaarRevision to 
redefined \BazaarRevision, for example:


\def\BazaarRevision
  {\ctxlua{context.setevalue(
BazaarRevision,
 os.resultofbzr revno | tr -d '\\n')}%
   \BazaarRevision}


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] Itemize Prefixes

2012-03-04 Thread Aditya Mahajan

On Sun, 4 Mar 2012, Kip Warner wrote:


Hey list,

I'd like an itemized list using the following format...

Article I ...
Article II ...
Article III ...

...and so on. I've tried defining the behaviour with...

\defineenumeration[article]
   [location=top,
   text=Article,
   between=\blank,
   before=\blank,
   after=\blank]
\setupenumerations[article][R]

...but the problem is that after a list of items provided with matching
\startarticle \stoparticle pairs, the last count persists to the next
list of items which should start at 'I' again. I am assuming I am not
doing this correctly and would appreciate any suggestions.


Use itemgroup rather than enumerations.

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] TOC: alternative=c not working?

2012-03-04 Thread 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?

NB: ConTeXt  ver: 2012.03.02 22:35 MKIV  fmt: 2012.3.5  int: english/english

Best regards,

Lukas


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

t-TOC.mkiv
Description: Binary data


t-TOC.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
___