Re: [NTG-context] Broken Nightly 2012.07.04

2012-07-06 Thread Kip Warner
On Sat, 2012-07-07 at 06:16 +0200, Wolfgang Schuster wrote:
> Do you have more than one installation of the context suite on your system
> and you’re making the changes in the wrong tree (you can see the path
> for the used files on the command line when you generate the format).

I have as far as I know only one installation and that is the ConTeXt
debs from Adam's PPA. 

$ context --version

resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context
file: /usr/share/texmf/tex/context/base/context.mkiv
mtx-context | current version: 2012.07.04 23:48

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

2012-07-06 Thread Kip Warner
On Fri, 2012-07-06 at 23:25 +0200, Hans Hagen wrote:
> is there a minimal example? 

I'm not sure where it's bailing. The line it points to has nothing to do
with inline math or formulas. But alas, ConTeXt error messages are
usually totally useless in most cases. You could try just running make
on my book which you have and you'll see the same error.

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

2012-07-06 Thread Kip Warner
On Fri, 2012-07-06 at 07:32 +0200, luigi scarso wrote:
> > Do you rebuild the format ?

I cleared the cache in ~/.texmf-var and ran context --make en (which
ConTeXt runs anyways after doing the former), but still same problem.

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

2012-07-06 Thread Kip Warner
On Fri, 2012-07-06 at 09:21 +0200, Hans Hagen wrote:
> context --make en

Like I said, I already cleared the cache in ~/.texmf-var/. But for safe
measure, I ran the aforementioned anyways after doing that too. Same
problem. 

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

2012-07-05 Thread Kip Warner
On Thu, 2012-07-05 at 10:04 +0200, Hans Hagen wrote:
> \p_mathspacing => \p_math_spacing

I patched math-arr.mkiv, but I am still getting the same error. I don't
know why since I replaced all instances of \p_mathspacing with
\p_math_spacing and deleted the cache in ~/.texmf-var/.

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

2012-07-04 Thread Kip Warner
Hey list,

Nightly 2012.07.04 appears to break when compiling my book. I see the
following:

! Undefined control sequence.
\math_arrows_construct_single ...s \p_mathspacing 
  \endcsname
\p_mathspacing ...
\math_arrows_handle_finalize ...7}{#1}{#4}{#8}{#9}
  }\else \mathrel
{\math_arr...
\mathematics ...mmode #1\else \normalstartimath #1
  \normalstopimath \fi 
\445>i:gives ...e \mathematics {\xrightarrow {}{}}
  \enspace 
l.11 \chemicalgives
   
\inlinechemical ...emicals.inline(\!!bs #1\!!es )}
  }
l.128 \inlinechemical{CO_2,+,H_2,+,->,H_2O,+,CO}

E
? You want to edit file Terms_and_Concepts/Terms_and_Concepts.tex at
line 11

The file in question is located here:

<https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Terms_and_Concepts/Terms_and_Concepts.tex>

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

2012-06-28 Thread Kip Warner
On Tue, 2012-06-26 at 10:57 +0200, Hans Hagen wrote:
> fixed in next beta

Hey Hans. Works now in 2012.06.28. Thanks a lot =)

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

2012-06-27 Thread Kip Warner
On Thu, 2012-06-28 at 05:31 +0200, Wolfgang Schuster wrote:
> grph-trf.mkiv
> 
> %\setvalue{\??scalenorm\v!broad  
> }#1#2#3#4#5{\global#1\dimexpr#5-4\@@exbodyfont\relax}
> %\setvalue{\??scalenorm\s!unknown}#1#2#3#4#5{\global#1\dimexpr#2\dimexpr\@@exbodyfont/10\relax\relax}
>  % brr ex
> \setvalue{\??scalenorm\v!broad  
> }#1#2#3#4#5{\global#1\dimexpr#5-4\externalfiguresparameter\c!bodyfont\relax}
> \setvalue{\??scalenorm\s!unknown}#1#2#3#4#5{\global#1\dimexpr#2\dimexpr\externalfiguresparameter\c!bodyfont/10\relax\relax}
>  % brr ex

Hey Wolfgang. I patched the file as recommended and still the same error
message.

> @Kip: When you make a change in a core file you have to regenerate the format 
> (context --make).

I always clear ~/.texmf-var after updating ConTeXt. But I also ran
context --make as well this time, although that is run automatically
when ~/.texmf-var is empty, no? Regardless, I did both prior to
recompiling and got the same error.

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

2012-06-27 Thread Kip Warner
On Tue, 2012-06-26 at 10:57 +0200, Hans Hagen wrote:
> fixed in next beta

Hey Hans. So I recompiled the book with ConTeXt 2012.06.27 and it still
breaks:

! Undefined control sequence.
\423>unknown ...\dimexpr #2\dimexpr \@@exbodyfont 
  /10\relax \relax 
\grph_scale_by_factor_d ...t \d_grph_scale_v_size 

\grph_scale_calculate_norm...
\grph_scale_calculations_yes ...h_scale_by_factor 
  \fi \ifconditional
\c_grph...
\grph_scale_calculate ...h_scale_calculations_yes 
  \fi \fi \fi 
\syst_boxes_with_next_box ...grph_scale_calculate 
  \ifconditional
\c_grph_sca...
\doscalefigure ...re {\box \foundexternalfigure }}
  }
...
l.45 ...he jenya is \externalfigure[jenya_inline].
  
E
? You want to edit file Game_World/Economics_and_Commerce.tex at line 1

This is the file it is referring to. Note that line 1 is just a comment.
<https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Game_World/Economics_and_Commerce.tex>

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

2012-06-27 Thread Kip Warner
On Wed, 2012-06-27 at 14:17 +0200, Wolfgang Schuster wrote:
> Hans missed the “s” in \externalfiguresparameter\c!…

So much for German precision ;)

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

2012-06-27 Thread Kip Warner
On Tue, 2012-06-26 at 10:57 +0200, Hans Hagen wrote:
> 
> fixed in next beta 

Hey Hans. This is what I got on the same line:

! Undefined control sequence.
 \externalfigureparameter 
\c!interaction 
\doifnot #1#2->\edef \m_syst_string_one {#1
   }\edef \m_syst_string_two
{#2}\if...
 ...reparameter \c!interaction }\v!none 

\grph_epdf_add_overlay 
\firstofoneargument #1->#1
  
 ...v!none \grph_epdf_add_overlay }
  \fi 
\grph_include_finalize ...nalfigurepostprocessors 
  \edef \p_reset
{\externalf...
...
l.42 ...eativecommons.org/licenses/by-nc-sa/3.0/)]



I'm running ConTeXt 2012.06.26. Perhaps that isn't new enough?

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

2012-06-26 Thread Kip Warner
On Tue, 2012-06-26 at 10:57 +0200, Hans Hagen wrote:
> fixed in next beta

Thanks Hans. Nice work. Will let you know if it works.

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

2012-06-25 Thread Kip Warner
On Tue, 2012-06-26 at 05:27 +0200, Wolfgang Schuster wrote:
> grph-epd.mkiv (untested):
> 
> \startsetups system:graphics:epdf
>%\ctxlua{figures.mergegoodies("\@@efinteraction")}%
> \ctxlua{figures.mergegoodies("\externalfiguresparameter\c!interaction")}%
> \reference[\figurereference]{}% todo: dest area
> \stopsetups
> 
> and
> 
> \appendtoks
> \iflocation
>  
> %\doif\figurefiletype{pdf}{\doifnot\@@efinteraction\v!none\grph_epdf_add_overlay}%
>   
> \doif\figurefiletype{pdf}{\doifnot{\externalfiguresparameter\c!interaction}\v!none\grph_epdf_add_overlay}%
> \fi
> \to \externalfigurepostprocessors

Hey Wolfgang. Thanks for your expeditious reply. I patched grph-epd.mkiv
as directed and got the following error on the same file / line
(Handbook.tex:42),

! Undefined control sequence.
 \@@efinteraction 

\doifnot #1#2->\edef \m_syst_string_one {#1
   }\edef \m_syst_string_two
{#2}\if...
 \doifnot \@@efinteraction \v!none 
 \grph_epdf_add_overlay 
\firstofoneargument #1->#1
  
 ...v!none \grph_epdf_add_overlay }
  \fi 
\grph_include_finalize ...nalfigurepostprocessors 
  \edef \p_reset
{\externalf...
...
l.42 ...eativecommons.org/licenses/by-nc-sa/3.0/)]
          
? E
You want to edit file Handbook.tex at line 42

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

2012-06-25 Thread Kip Warner
Hey list,

I'm using ConTeXt 2012.06.25 and I noticed a broken compilation of my
book:

! Undefined control sequence.
 \@@efinteraction 

\doifnot #1#2->\edef \m_syst_string_one {#1
   }\edef \m_syst_string_two
{#2}\if...
 \doifnot \@@efinteraction \v!none 
 \grph_epdf_add_overlay 
\firstofoneargument #1->#1
  
 ...v!none \grph_epdf_add_overlay }
  \fi 
\grph_include_finalize ...nalfigurepostprocessors 
  \edef \p_reset
{\externalf...
...
l.42 ...eativecommons.org/licenses/by-nc-sa/3.0/)]
  
? E
You want to edit file Handbook.tex at line 42

The actual file can be found here:
<https://bazaar.launchpad.net/~avaneya/avaneya/trunk/view/head:/Documentation/Contributors/Handbook/Handbook.tex>

-- 
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] Space Between Number and Reference

2012-06-22 Thread Kip Warner
On Thu, 2012-06-21 at 22:54 +0200, Wolfgang Schuster wrote:
> I guess \placepublications[width=] gives you control over the 
> width of the digits but I cant say for sure without a example.
> 
> Wolfgang

Hey Wolfgang. The problem was there actually wasn't one afterall. What
was happening only occurred when I compiled just the References appendix
of my book, but it all came out fine when I compiled the whole book.

-- 
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] Space Between Number and Reference

2012-06-21 Thread Kip Warner
Hey list,

I am dumping all of my references into an appendix with the following:

\placepublications[criterium=all]

It works great for references 1 to 9, but anything longer than a single
digit and the actual reference text just ends up being superimposed
over it instead of shifting over.

I'm guessing there is a setup for this somewhere.

-- 
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] Broken chem module?

2012-06-06 Thread Kip Warner
On Wed, 2012-06-06 at 23:49 +0200, Hans Hagen wrote:
> i uploaded a beta so the garden version should work ok

Maybe I could just download your copy of the chem-str.mkiv to replace my
own. Do you have a direct link to the revision you just uploaded so that
I can give it a test?

-- 
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] Broken chem module?

2012-06-06 Thread Kip Warner
On Wed, 2012-06-06 at 10:22 +0200, Hans Hagen wrote:
> fixed in next upload.
> 
> If you're in a hurry you can change this in chem-str.mkiv:
> 
> \unexpanded\def\chemicalsymbol[#1]%
>  
> {\csname\??chemicalsymbol\ifcsname\??chemicalsymbol#1\endcsname#1\else\s!unknown\fi\endcsname}
> 
> Hans

Thanks Hans, but it did not seem to change anything. This is what line
93-94 of chem-str.mkiv looks like after I edited it:

\unexpanded\def\chemicalsymbol[#1]%
  {\csname\??chemicalsymbol\ifcsname\??chemicalsymbol#1\endcsname#1\else
\s!unknown\fi\endcsname}

The deb I am using is for ConTeXt 2012.06.05 17:36.

-- 
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] Broken chem module?

2012-06-02 Thread Kip Warner
Hey list,

The following minimal does not appear to typeset the reaction properly
in 2012.05.30.

\starttext
\placeformula[reaction:Sabatier Reaction]
\startformula
\inlinechemical{CO_2,+,4H_2,->,CH_4,+,2H_2O,+,heat}
\stopformula
\stoptext

But maybe I am not doing something right.

-- 
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] Units or px

2012-05-10 Thread Kip Warner
On Thu, 2012-05-10 at 09:55 +0200, Hans Hagen wrote:
> On 10-5-2012 00:39, Kip Warner wrote:
> > Hey list,
> >
> > ConTeXt 2012.05.08 13:45 reports that the units module is deprecated and
> > to use the px module in its place. Is it telling the truth or is this a
> 
> px? the message is:
> 
> The units module is obsolete because functionality is built into the core.
> 
> > harmless warning?
> 
> rather harmless indeed, just a warning
> 
> Hans

Thanks Hans.

-- 
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] Units or px

2012-05-09 Thread Kip Warner
On Thu, 2012-05-10 at 00:50 +0200, Wolfgang Schuster wrote:
> True and true.
> 
> I guess you mean this message: The units module is obsolete because 
> functionality is built into the core.
> 
> What the sentence tells you is that you dont need the units module because 
> the core has a similar function but you can still use it.
> 
> Wolfgang

Thanks Wolfgang. Although I was looking at the wrong warning, I'll take
your word for it and remove the units module import anyways.

-- 
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] Units or px

2012-05-09 Thread Kip Warner
On Wed, 2012-05-09 at 15:39 -0700, Kip Warner wrote:
> Hey list,
> 
> ConTeXt 2012.05.08 13:45 reports that the units module is deprecated and
> to use the px module in its place. Is it telling the truth or is this a
> harmless warning?

Nevermind. I'm a fool. It was a Gtk runtime that was issuing an
unrelated warning, not ConTeXt.

-- 
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] Units or px

2012-05-09 Thread Kip Warner
Hey list,

ConTeXt 2012.05.08 13:45 reports that the units module is deprecated and
to use the px module in its place. Is it telling the truth or is this a
harmless warning?

-- 
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] Increase textbackground page break white space

2012-05-08 Thread Kip Warner
Hey list,

Some of my textbackgrounds occupy more than one page and break part way
through them, as expected. Where their containing text is split at the
page break, I am finding that the frame is too close to the contents. So
I'd like to increase the white space of the bottom and top of the
textbackground's frame and content where it splits across a page.

This is what I have been using so far:

\definetextbackground[SomeTextBackground]
   [location=paragraph,
color=color_text,
background=color,
backgroundcolor=colour_text_background_shaded,
frame=on,
framecolor=colour_text,
topoffset=0.5cm,
bottomoffset=0.5cm,
leftoffset=0.5cm,
rightoffset=0.5cm,
before={
\blank[2*big]
},
after={
\blank[2*big]
},
style=smalltype,
corner=round]

I've been trying to solve this problem for months without any luck.

-- 
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] LuaTeX error after update to ubuntu 12.04

2012-04-29 Thread Kip Warner
On Sat, Apr 28, 2012 at 02:10:33PM +0900, S Barmeier wrote:
> In ubuntu 12.04 all font packages are renamed to fonts-*, rather than
> ttf-* or otf-* etc.

Most, but not all. ttf-ubuntu-font-family and ttf-ubuntu-title appear to be 
among some of the exceptions.

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


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Rendering differences between PDF viewers

2012-04-28 Thread Kip Warner
On Sat, 2012-04-28 at 17:52 +0200, Peter Rolf wrote:
> tested with latest beta (26.04.2012) and no problems so far.

Well done Peter.

-- 
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] LuaTeX error after update to ubuntu 12.04

2012-04-27 Thread Kip Warner
On Sat, 2012-04-28 at 13:25 +0900, S Barmeier wrote:
> After updating to ubuntu 12.04, my shouts of joy were smothered by the
> following
> 
> !LuaTeX error: cannot find OpenType font file for reading ()
>  ==> Fatal error occurred, no output PDF file produced!

Fuuck...and here I was planning on upgrading tomorrow morning.

-- 
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] Referncing the Bibliography Appendix

2012-04-27 Thread Kip Warner
On Thu, 2012-04-26 at 09:14 +0200, Mojca Miklavec wrote:
> Not tested, but I think that you could use a normal title (something
> like \section[references]{References}) and then \placepublications
> instead of \completepublications (if I didn't make a typo). 

Thanks Mojca.

-- 
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] Referncing the Bibliography Appendix

2012-04-27 Thread Kip Warner
On Thu, 2012-04-26 at 09:24 +0200, Philipp Gesang wrote:
> This listing assumes you use only one bibliography on chapter
> level.

Thanks Philipp. That worked.

-- 
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] Referncing the Bibliography Appendix

2012-04-25 Thread Kip Warner
Hey list,

How do I set a reference to my bibliography. I don't mean a citation,
but the complete list. I have a \completepublications already which
dumps the list properly, but I cannot link to it. I tried
\in{appendix}[References] and \in{appendix}[Publications], but neither
works.

-- 
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] Rendering differences between PDF viewers

2012-04-24 Thread Kip Warner
On Tue, 2012-04-24 at 14:42 +0200, Hans Hagen wrote:
> as a prelude, the next beta will have
> 
> \setupcolors[pagecolormodel=rgb] % gray rgb cmyk auto none
> 
> and issue a warning when no model is set when using transparencies

Thanks Hans. I'll add that to my environment. When using the
aforementioned beta, I take it I can remove the inline lua?

\startluacode
backends= backendsor { }
backends.codeinjections = backends.codeinjections or { }

function backends.codeinjections.rgbtransparencygroup()
local d = lpdf.dictionary {
S  = lpdf.constant("Transparency"),
CS = lpdf.constant("DeviceRGB"),
I  = true }
lpdf.registerpagefinalizer(function()
lpdf.addtopageattributes("Group",d) end)
end

backends.codeinjections.rgbtransparencygroup()
\stopluacode

-- 
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] Interactive image

2012-04-20 Thread Kip Warner
On Thu, 2012-04-19 at 23:53 +0200, Wolfgang Schuster wrote:
> \setupinteraction[state=start]
> 
> \starttext
> This is a cow: 
> \goto{\externalfigure[cow][height=2ex]}[url(http://en.wikipedia.org/wiki/Cow)]
> \stoptext

Thanks Wolfgang. I added it to the wiki:
http://wiki.contextgarden.net/Using_Graphics#Picture_with_hyperlink

-- 
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] Interactive image

2012-04-19 Thread Kip Warner
Hey list,

I am typesetting some images with \externalfigure. I'd like to make some
of them interactive such that clicking on them invokes a URL, but
leaving them without borders.

Is there a recommended way to do this, such as wrapping \externalfigure
in something like the following?

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}

\href{www.something...}{\externalfigure[...]}

Or is there a better way?

-- 
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] Comma separating multiple footnotes

2012-04-19 Thread Kip Warner
On Thu, 2012-04-19 at 12:01 +0200, Wolfgang Schuster wrote:
> 
> Don’t use \textcomma in MkIV, it’s a math symbol and doesn’t scale
> when you change the relative font size.

Would this be better then?

\setupnote[footnote]
[textseparator={,}]

-- 
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 font with document source

2012-04-18 Thread Kip Warner
On Wed, 2012-04-18 at 12:26 +0200, Hans Hagen wrote:
> maybe some day ... as caching is somewhat special then (lookups by names 
> as well) it's non trivial ... technically one can mount an additional 
> pseudo tree already but even then it might conflict when working on 
> shares that are used by multiple users (fonts defined with file: are 
> less problematic, but name: lookups get messy)

Understandable, given that font installation is extremely platform
specific.

-- 
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] MLA Bibliography

2012-04-18 Thread Kip Warner
On Wed, 2012-04-18 at 12:27 +0200, Philipp Gesang wrote:
> Sorry, my bad. I forgot that the builtin “\cite” macro takes
> bracketed args, not braced ... So, the listing below is tested,
> make sure you have the file context/bib/sample.bib in $PWD:
> 
> 
> \setupbibtex[
>   database=sample,
>   sort=author,
> ]
> 
> \setuppublications[
>   alternative=apa,
> ]
> 
> \glet\originalcite\cite
> \let\cite\relax
> 
> \unprotect
> 
> \def\cite{\dodoubleempty\do_cite}
> 
> \def\do_cite[#1][#2]{%
>   %%% Wraps citations into footnotes.
>   \iffirstargument
> \startfootnote
> \ifsecondargument
>   \originalcite[#1][#2]%
> \else
>   \originalcite[#1]%
> \fi
> \stopfootnote
>   \fi%
> }
> 
> \protect
> 
> \starttext
> 
> \section{nova methodos referendi}
> \input knuth\cite[hh2010]
> 
> \stoptext \endinput

Thanks a lot Philipp. That's pretty comprehensive.

> You get footnote citations (see above). The problem is how you
> (or your bib style, for that matter) define *full citation*. If
> it’s ok to have the crippled version like “Leibniz, G. W.”
> instead of “Leibniz, Gottfried Wilhelm” or (as I needed it)
> without inversion “Gottfried Wilhelm Leibniz”, it might suffice
> to use “\cite[alternative=data][my_bib_key]”.

Yes, I've been using data for now. I'm just struggling to figure out how
to stylize it properly.

> I’ve been following this thread and it would appear that most
> people who are in some way working with citations /
> bibliographies are avoiding the built-in facilities. 

I think the problem is that a lot of us jumped into ConTeXt's
bibliography support without realizing that it is not really mature
enough to be usable for professional use yet. It takes a lot of work.

> I confess
> I’m no exception; writing my own bib support was in fact a
> prerequisite that made Context usable for me in the first place.
> It handles these full citations, inverted author or not, but it’s
> by no means a general solution. If you’re really stuck with your
> citation issues I can mail you the repo off-list, but you will
> have to know your way around (occasionally badly written) Lua
> code in order to adapt it in any way.

Thanks a lot for the generous offer, but sadly I probably wouldn't know
what to do with it. Unlike a lot of people on this list, my first
exposure to digital typesetting came with ConTeXt which would make such
a thing very painful. On top of that, I'd have to be more comfortable
with Lua.

> On the other hand, there’s been an announcement by Paul Isambert
> some time ago that his *Librarian* package cooperates with
> Context in some way:
> > http://archive.contextgarden.net/message/20100405.024343.6e4aa50d.en.html
> From the documentation it looks pretty powerful. Have never used
> it myself, though.
> 
> Sorry for the delay, exams and stuff ...
> Philipp

No problem Philipp. Thanks for your help.

-- 
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 font with document source

2012-04-18 Thread Kip Warner
On Wed, 2012-04-18 at 09:41 +0200, Hans Hagen wrote:
> It can give problems with the same fonts being on the system several 
> times in several versions
> 
> a simple way to install fonts is to drop everything in
> 
> texmf-fonts/fonts/data/opentype  (or just data, or mayb ewith on elevel 
> more for the vendor)
> 
> and do a "mtxrun --generate". This keep things in one spot.

Thanks Hans.

-- 
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] Rendering differences between PDF viewers

2012-04-18 Thread Kip Warner
On Wed, 2012-04-18 at 09:38 +0200, Hans Hagen wrote:
> At some point it can become an option (or semi automatic) but the 
> problem is that we don't know in advance if we operate in rgb or cmyk. I 
> can imagine that when we have enabled cmyk and disabled rgb or reverse, 
> it can be added automatically but even then users must make sure that 
> all images are in the right colorspace as well. And what with spotcolors?

Thanks Hans.

-- 
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] Comma separating multiple footnotes

2012-04-18 Thread Kip Warner
On Wed, 2012-04-18 at 09:10 +0200, Wolfgang Schuster wrote:
> You need \setupnote because the other setting for the number in the text re 
> also set with \setupnote.

So this should suffice then in the environment?

% Implemented by Hans in bleeding edge ConTeXt...
\setupnote[footnote]
[textseparator={\textcomma}]

-- 
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] Rendering differences between PDF viewers

2012-04-18 Thread Kip Warner
On Wed, 2012-04-18 at 08:47 +0200, Martin Schröder wrote:
> Adobe Reader needs a special object in the page for it to handle
> included pdfs or pngs with transparency correctly on the first page
> (search for pdftex and "page groups".) pdfTeX tries to fix this
> automagically for years (1.40.6, I think) by synthesizing this object,
> but Hans rejects any automagic solution for LuaTeX (since it may
> conflict with mechanisms of ConTeXt) and ConTeXt instead tries to do
> the right thing. Here it obviously fails.

Thanks Martin.

-- 
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] Bibtex with ConTeXt mkiv

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 10:41 +0200, Taco Hoekwater wrote:
> That's weird. It is probably a bug in Hans' reimplementation of the
> bib module for mkiv. 

I've cc'd Hans in case he has something to offer on that.

> But it is fairly simple to work around, using a
> new macro definition like this:
> 
>\unexpanded\def\mycite{\dodoubleempty\domycite}
>\def\domycite[#1][#2]%
>  {\ifsecondargument
> \footnote{\cite[alternative=data,#1][#2]}%
>   \else
> \footnote{\cite[data][#1]}%
>   \fi}
> 
> Then \mycite[] also inserts the \footnote command automatically,
> and you can still use \mycite[extras={...}][].

That works awesome Taco. Thanks a lot. It doesn't matter that it can't
accept multiple keys easily and put on their own lines, since it
wouldn't make sense if you've got extra={} data to add anyways.

> Perhaps, but I have never seen it done like that, and it takes more
> than a bit of programming to make the bibliography module do that.
> Sorry, no time for that.

It's ok. You've done more than enough.

> No, you can't do that. Hans would have to write an extension for
> that, I do not even know where to start.

Understandable.

-- 
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] Including font with document source

2012-04-17 Thread Kip Warner
Hey list,

Is there a way to include a set of font files with a ConTeXt document's
source files such that a path to the directory containing the font can
be directly specified in the environment? I was thinking that if it were
possible to do this already, the simplefonts module might have a setup
for this.

The reason why I'd like to consider this is to make it easier on my
users who wish to build my document from source without them having to
manually download a font and figure out how to install it on their given
platform.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 12:48 +0200, Peter Rolf wrote:
> Hi Kip,
> 
> give it a try and add this to you document...
> 
> 
> \startluacode
> 
> backends= backendsor { }
> backends.codeinjections = backends.codeinjections or { }
> 
> function backends.codeinjections.rgbtransparencygroup()
> local d = lpdf.dictionary {
> S  = lpdf.constant("Transparency"),
> CS = lpdf.constant("DeviceRGB"),
> I  = true }
> lpdf.registerpagefinalizer(function()
> lpdf.addtopageattributes("Group",d) end)
> end
> 
> backends.codeinjections.rgbtransparencygroup()
> 
> \stopluacode
> 
> 
> This does not work, if you also use CMYK based graphics/pictures in your
> document (as this is done document wide).

You know Peter, I must admit. ConTeXt has made me rather cynical at
times. I don't know how many times I've tried a snippet of this or that,
only to have it do exactly what I hadn't intended. Having said that,
every now and then I am blown away when something I never expected to
actually get working, gets working. Thank you so much, that worked
beautifully. Both Evince (poppler based) and AR look identical now.

I stuck it in my environment file. I wonder if there is a safer way of
doing this than via "inline asm", so to speak. Also, maybe for my
benefit, and anybody else having the same problem, you might be able to
explain what was happening?

-- 
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] Comma separating multiple footnotes

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 22:13 +0200, Hans Hagen wrote:
> ok, will be added

Hey Hans. Should it be 

\setupnote[footnote][textseparator=…], or

\setupnotation[footnote][textseparator=…] ?

Thanks for accepting the patch.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 11:53 +0200, Peter Rolf wrote:
> I might be wrong, but is this color shift not just a 'page group'
> problem, caused by the transparent PNG?

I don't know, but even the image on the upper right aside, the rest of
the page's colours are off as well.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 09:31 +0200, luigi scarso wrote:
> Every pdf for general use should be checked at least with the latest
> AdobeReader under windows, which is currently one of the best pdf
> viewer.

I think a better approach would be to consider Adobe's PDF specification
as reference material, but not implementations of it that we cannot
audit that may or may not have done so correctly.

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 10:54 +0200, Henning Hraban Ramm wrote:
> Hi Kip,
> 
> the attached screenshot is from Acrobat Pro 10.1.3 on OSX 10.7.
> Looks good to me. I guess your color management setup is wrong.
> 
> Greetlings, Hraban

Hey Hrabab. Your looks much better than AR's, but it still doesn't look
the same as on my end. It looks much brighter.

I wonder if there is some additional information renderer's need, such
as a value for gamma correction or a colour profile that I need to stuff
in my environment file to make it work?

-- 
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] Rendering differences between PDF viewers

2012-04-17 Thread Kip Warner
On Tue, 2012-04-17 at 09:12 +0200, Alan BRASLAU wrote:
> With one MAJOR difference: for Acrobat reader, one is dependent on the whims 
> and desires of Adobe (and its paying market); the other pdf viewers are open 
> source.

Exactly.

-- 
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] MLA Bibliography

2012-04-16 Thread Kip Warner
On Tue, 2012-04-17 at 02:52 +0200, Jaroslav Hajtmar wrote:
> Hello Kip.
> If you're interested, then I send you my "simple" AMS sorted solution 
> ;-) - only for your inspiration your solution.
> It's certainly not a step in the right direction, but rather an 
> emergency solution that helped me achieve a result which was strictly 
> required by supervisor of thesis.
> 
> Here is link to my files: 
> http://public.hajtmar.com/?cesta=JRsVFQdsBhwIWyAdFwQROwZWEh0hHhAfEzETCRgNcRkQAA
> (There is also a ZIP package) ..
> 
> with greetings
> Jaroslav Hajtmar

Wow Jaroslav, that looks pretty complex. It does work, but my main issue
right now isn't so much with sorting as it is just getting citations to
typeset properly. I do thank you for providing the zip though. These are
the issues I am having lately:

Using \cite[data][] depicts a full citation which is what I'd like,
but I just need it as a footnote. There is probably a way to do this by
having \cite do this automatically, otherwise I would have to wrap each
call to it using \footnote.

I'd like data to be the default format. I tried
\setuppublications[alternative=data], but now all I see is an [[error
2]] typeset in the document.

Another thing too is it would still be great if any time there was a
'url' tag present in the BibTeX database, automatically the 'title' is
typeset interactive such that clicking it invokes the url. I think that
is pretty elegant as an ideal situation, but it sounds difficult to
implement.

-- 
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] Rendering differences between PDF viewers

2012-04-16 Thread Kip Warner
On Tue, 2012-04-17 at 08:54 +0200, Hans Hagen wrote:
> (AR might have flaws but so do all other viewers I've seen.)

I don't doubt it, but something that salient is pretty bad though. The
whole document looks just awful.

> Is there a small example file?

Sure. <https://www.avaneya.com/temp/Viking_Lander_Remastered.pdf>

-- 
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] MLA Bibliography

2012-04-16 Thread Kip Warner
On Tue, 2012-04-17 at 02:12 +0200, Mojca Miklavec wrote:
> Maybe that (with explanation) deserves an entry on the wiki, but you
> can have a nice exercise. If this doesn't help you, I'll take a look
> tomorrow or day after tomorrow. 

Thanks a lot Mojca. Although I'm not confident in my ConTeXt'ing to
adapt that for URL use, it's definitely pleasing to know that it is
probably possible to do.

-- 
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] MLA Bibliography

2012-04-16 Thread Kip Warner
On Tue, 2012-04-17 at 02:52 +0200, Jaroslav Hajtmar wrote:
> Hello Kip.
> If you're interested, then I send you my "simple" AMS sorted solution 
> ;-) - only for your inspiration your solution.
> It's certainly not a step in the right direction, but rather an 
> emergency solution that helped me achieve a result which was strictly 
> required by supervisor of thesis.
> 
> Here is link to my files: 
> http://public.hajtmar.com/?cesta=JRsVFQdsBhwIWyAdFwQROwZWEh0hHhAfEzETCRgNcRkQAA
> (There is also a ZIP package) ..
> 
> with greetings
> Jaroslav Hajtmar

Thanks a lot Jaroslav. I'll take a look at 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
___

Re: [NTG-context] MLA Bibliography

2012-04-16 Thread Kip Warner
On Mon, 2012-04-16 at 12:27 +0200, Jaroslav Hajtmar wrote:
> I agree that the output format can be set as needed (a lots of time of 
> experimentation). But I needed a special sort of bibliographic items 
> (numbering according to their occurrence in the text) and that I have 
> unfortunately failed. For average amateurs are code modifications beyond 
> its capabilities.

*nods*

> I just want to say that ConTeXt is absolutely amazing tool, but 
> sometimes  without professional advice the desired result is unattainable.
> When time is pressed and help not comming, sometimes a lot can be 
> stressful. 

*nods*

> However, to not complaint BUT it is the mere statement. This 
> conference is above standard and willing to help to laity.

*nods*

-- 
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] MLA Bibliography

2012-04-16 Thread Kip Warner
On Sun, 2012-04-15 at 20:09 +0200, Mojca Miklavec wrote:
> It requires some time and tedious work, but if you know exactly what
> you want, changing the layout should not be too difficult. Here are
> some fragments of code that I'm using (I wanted DOI to be printed out,
> that's why I changed the way how article is printed):
> 
> \setuppublicationlayout[article]{%
>\insertartauthors{}{\unskip. }{\insertthekey{}{. }{}}%
>\insertarttitle{\bgroup }{\egroup. }{}%
>\insertjournal{\bgroup \it}{\egroup}
> {\insertcrossref{In }{}{}}%
>\insertvolume
> {, }
> {\insertissue{(}{)}{}%
>  \insertpages{:}{}{}%
>  \insertpubyear{, }{}{}.}
> {\insertpages{, pages }{}{}%
>  \insertpubyear{, }{}{}.}%
>\insertnote{ }{.}{}%
>\insertdoi{ doi:}{.}{}%
>\insertcomment{}{.}{}%
> }
> 
> % new fields and bibliography types:
> 
> \newbibfield[conference]
> \newbibfield[cobissid]
> 
> \setuppublicationlayout[conference]{%
>   \insertartauthors{}{\unskip. }{}%
>   \insertarttitle{\bgroup }{\egroup. }{}%
>   \insertconference{\bgroup \it}{\egroup\insertday{, }{.
> }{}\insertmonth{}{\ }{}\insertpubyear{}{}{}. }{}%
>   \insertcobissid{[COBISS.SI-ID\ }{]}{}%
> }
> 
> \setuppublicationlayout[webpage]{%
>   \inserttitle{\bgroup\it }{\egroup. }{}%
>   \inserturl{}{}{}%
> }

This is great Mojca. If there is a url field in the bibliography
database present for a given entry, how would one have the title
interactive to the url? I struggled with that and eventually gave up
after a few hours of trying.

-- 
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] Rendering differences between PDF viewers

2012-04-16 Thread Kip Warner
On Sun, 2012-04-15 at 18:00 +0200, Hans Hagen wrote:
> keep in mind that acrobat has monitor profiles, simulates paper and
> has different rendering code when transparencies are used 

I've crawled all over Adobe's proprietary Reader's settings and I can't
find anything for adjusting monitor profiles. This is very disappointing
because many of the readers of my book will probably be using that
shitty renderer.

-- 
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] Rendering differences between PDF viewers

2012-04-16 Thread Kip Warner
On Sun, 2012-04-15 at 11:07 +0200, Mojca Miklavec wrote:
> Bug in AR.

=(

> Convince Adobe to fix it or find a way to render that page without
> prerequisites for the bug to show up.

That's probably not going to happen any time soon, I would think.

> I'm not sure about your particular case, but I have seen the problem
> multiple times, most often when combined with transparency on the same
> page.

Damn. I sent a bug report to Adobe, but I doubt they'll do anything.

-- 
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] MLA Bibliography

2012-04-16 Thread Kip Warner
On Sat, 2012-04-14 at 05:51 +0200, Jaroslav Hajtmar wrote:
> Hi Kip ...
> I had a similar problem with a bibliography. Supervisor of thesis wants 
> to have a bibliography in a specific format (sorted AMS like) in which 
> it can not produce the ConTeXt.

Hey Jaroslav. No surprise =(

> Maybe this is just because I am a bit stupid and I could not correct the 
> bibliography in ConTeXt and run something similar to what I wanted none 
> of the conference met, so no one could help me. I finally after many 
> hours of experiments on all bibliography resigned and I made myself a 
> simple tool for typesetting bibliographies. But it is only a virtue of 
> necessity and bibliography entries I we entered all on the line (ie, 
> exactly how it should look in the list of bibliography), ie. I do that 
> without specifying a style author = someone, title = foo, etc. 

I'm very close to doing something similar. I wish the wiki had been more
clear that ConTeXt's bibliography module is not really ready for
professional use.

> That is 
> to say that if you do not need to have the bibliography in the format in 
> which we would expect from BibTeX, so I suggest to do it my way (I mean 
> the format of bibliographic entries in text, sorting items, etc..) All 
> of this can be done in Lua. In printed form, nobody will know that this 
> is actually done "manually" without "BibTeX" ...
> Originally I thought that I can not do, but eventually everything turned 
> out well. It is true that the bibliographic citations in the work is not 
> so much (about a hundred).

Thanks for your feedback Jaroslav. I'm sure you'll have a suggestion or
two after you see the mess I am having to deal with in the book I am
working on. =)

-- 
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] Rendering differences between PDF viewers

2012-04-14 Thread Kip Warner
Hey list,

I've noticed an unfortunate visual difference in my document's colours
when rendered with Evince 2.32.0 where they come out as expected (or
even with Zathura) against Adobe Reader 9.5.7.

Rendered with Evince 2.32.0:
https://www.avaneya.com/temp/evince.png

Rendered with Adobe Reader 9.5.7:
https://www.avaneya.com/temp/reader.png

Note how the latter is overly saturated in the red. Does anyone have any
clues as to why this might happen and what I might do to make it appear
as intended in Adobe Reader? I wonder if this might have something to do
with different renderer's different gamma correction? 

It's kind of funny that this could happen because I thought the whole
point of PDFs was that they were truly portable.

-- 
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] Comma separating multiple footnotes

2012-04-13 Thread Kip Warner
On Fri, 2012-04-13 at 15:58 +0200, Wolfgang Schuster wrote:
> I wrote a patch for the footnote code where you can set a symbol between the 
> numbers with \setupnote[footnote][textseparator=…] 

Hey Wolfgang. It looks great. I'm assuming I'd stick the following in my
environment file:

\setupnote[footnote][textseparator={,}]

Also, should it have been \setupnote or \setupnotation?

> but it’s decision to include it.

I suppose I could use it for now with the expectation that it will
neither do nor break anything, but that when it is included in the
official distribution, it will work?

-- 
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] MLA Bibliography

2012-04-13 Thread Kip Warner
On Fri, 2012-04-13 at 06:51 +0200, Philipp Gesang wrote:
> > (1) I'd like it such that each time I use \cite, the full citation and
> > not just "(Some One, 1967)" appears in a footnote, rather than inline.
> 
> You need to clarify two things here:
> 
> 1 You want to map the “\cite” macro to something like
>   “\footcite”? 

Either by mapping \cite, or by using some other macro, yes.

> Have you tried something along the lines of this
> 
> \let \goodoldcite \cite
> \unexpanded\def\cite#1{\footnote{\goodoldcite{#1}}}

Yes, it doesn't work though. All I see are footnotes that contain
"(Xx, )". But maybe I am not using it properly. I just use
\cite[reference] and that is what I see.

> 2 You want “\cite” to retrieve full citations? Assuming this
>   requires that they contain the complete names of authors,
>   editors and stuff, you might be out of luck. Last time I
>   checked this was impossible to realize within the constraints
>   of the bib module:
>   http://archive.contextgarden.net/message/20100212.073108.f4699471.en.html

Ouch. So basically no footnote citations like in most of the books I
read. You'd think there would just be a \cite[everything] option?

> Hth. Anyways, you’re right, the native Context bib support is not
> really fulfilling.

=(

-- 
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] MLA Bibliography

2012-04-13 Thread Kip Warner
On Fri, 2012-04-13 at 10:29 +1200, Pontus Lurcock wrote:
> I had a quick google before writing my previous mail, but only turned
> up
> http://archive.contextgarden.net/message/20100208.170849.f874f701.hu.html
> , which implies that at least as of two years ago MLA bibliographies
> were still an unsolved problem.

That's too bad.

> Sounds like a bug, but never having used the other styles I don't
> really know.

=(

> The aforementioned bibmod-doc.pdf file by Taco is the best
> documentation I've found, though it's a little out of date. But it's
> worth reading to get the idea of how ConTeXt interacts with BibTeX.

I've read it top to bottom several times now =(

> As you say, discussion is a little scant too. I'm a user with a fairly
> limited understanding of the bibliography system, but I try to do what
> I can with bibliography questions if nobody else is answering.

It's appreciated.

> Here's a sample entry from my PhD bibliography:
> 
> % TODO is there a better way to cite a webpage?
> @manual{acton2011zplotit,
>   author = {Acton, Gary},
>   title = {{ZPLOTIT} Software Users' Guide, version 2011-01},
>   year = {2011},
>   address =
>   {\hyphenatedurl{http://paleomag.ucdavis.edu/software-Zplotit.html}},
>   note = {Retrieved 1 February 2011}
> }
> 
> ... as the TODO shows, I don't consider this a perfect solution :-).
> With APA style, this produces an acceptable-looking entry, although
> semantically ‘address’ is probably the wrong key for the URL.

Perhaps, but you just gave me a great idea.

> \hyphenatedurl allows the url to be split nicely, but doesn't make it
> clickable; for that the tricks detailed at
> http://wiki.contextgarden.net/url should work. I'd guess that
> something like
> 
>   address = {\useURL[dummy][http://www.example.com]\from[dummy]}
> 
> should make a clickable bibliography URL.

See I totally forgot that it's basically copying the values of the tags
directly into the bbl file which is already ConTeXt syntax, so all I
have to do is replace the value of the title tag with the url. Here is
what I did and it works marvellously:

@Misc{asymptotic_notation,
author  = {Walker, Julienne},
month   = {apr},
publisher   = {Eternally Confuzzled},
title   =
{\href{http://www.eternallyconfuzzled.com/arts/jsw_art_bigo.aspx}{Asymptotic 
Notation}},
year= {2012}
}

I've defined \href as such:

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}

It works great and this is what I see:

"Walker, Julienne (2012a). Asympt% otic Notation. Eternally Confuzzled."

But why the "% " string gets inserted in there I do not know?

-- 
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] Comma separating multiple footnotes

2012-04-12 Thread Kip Warner
On Tue, 2012-04-10 at 11:21 +0200, Wolfgang Schuster wrote:
> Am 10.04.2012 um 03:14 schrieb Kip Warner:
> 
> > Hey list,
> > 
> > Is there any means of setting up footnotes such that whenever they are
> > tangential, they are automatically separated by a comma delimiter?
> 
> No there isnt but its not hard hard to add a separator because its already 
> possible to change the distance between the numbers.

Would that be done with \setupnotation or maybe \setupfootnotes? Either
way, I'm not sure how to do this.

-- 
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] MLA Bibliography

2012-04-12 Thread Kip Warner
On Thu, 2012-04-12 at 19:57 +1200, Pontus Lurcock wrote:
> On Tue 10 Apr 2012, Kip Warner wrote:
> 
> > I'd like to use an MLA style bibliography with MKIV. The style is
> > available here:
> > 
> > www.reed.edu/cis/help/latex/bibtexstyles.html
> > 
> > Actually, it doesn't matter to me whether it is that one or any that
> > supports MLA already that ships with ConTeXt.
> 
> Unfortunately I don't think that either option is viable: ConTeXt
> doesn't come with an MLA style as far as I know, and you can't just
> drop in a BST because ConTeXt doesn't use BibTeX to typeset
> bibliographies (it just uses it as a preprocessor to convert .bib
> files into its own \startpublication ... \stoppublication format).

Indeed, that is unfortunate. I am a little surprised because I would
think that the people who use ConTeXt tend to be more from the sciences
than the humanities, and so I wouldn't have expected APA style as the
default. But surely someone must have found a way by now?

> The available styles are listed in bibmod-doc.pdf and you can also
> find them in tex/texmf-context/tex/context/bib ; MLA isn't amongst
> them.

Agreed. But when I change it to anything other than apa, even to
something allegedly supported, like num, I just see a [[error 2]]
typeset.

> Unfortunately you'll probably have to define the style yourself using
> \setupcite and \setuppublicationlayout -- see bibmod-doc.pdf for
> details and the existing bibliography styles for guidance.

I wonder if someone has already done that?

> Hope this helps,

Very. I'm glad to find someone who knows about the bibliography module,
since discussion and documentation seems to be scant. I have a few other
bibliography related questions that you or Hans might be able to answer:

(1) I'd like it such that each time I use \cite, the full citation and
not just "(Some One, 1967)" appears in a footnote, rather than inline.
I'm thinking this is done with one of the setup commands, but not sure
how to do this. My *tex is fairly weak.


(2) I'd like to do the above, but also in some cases be able to specify
a specific page number or anecdote to add to the footnote.


(3) I'd like any entry in the BibTeX database that has a url to have the
title clickable such that the browser is invoked to that url. Which
brings me to the next question.


(4) Since my database is specified in the .bib format, what is the
preferred way of specifying a URL where there is one? I've seen a bunch
of different suggestions ranging from using the 'note' tag to wrapping
in a \def.


(5) Is there any way to dump a list of all the references, similar to
\placepublications command that just lists references that contain a
certain keyword or something? e.g. organized by a category?

Take care Pont,

-- 
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] \BibTeX usage

2012-04-12 Thread Kip Warner
On Thu, 2012-04-12 at 06:48 +0200, Wolfgang Schuster wrote:
> \usemodule[abr-01]
> %\usemodule[abr-02]
> %\usemodule[abr-03]
> %\usemodule[abr-04]
> \starttext
> \BIBTEX
> \stoptext
> 
> Wolfgang

That works, but it is a dummy macro that isn't actually tied to BibTeX.
That's fine, except I need version info as well which the macro doesn't
provide. It isn't critical and if this isn't possible, it isn't a big
deal.

Thanks Wolfgang,

-- 
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] \BibTeX usage

2012-04-11 Thread Kip Warner
Hey list,

I assumed that there was some macro akin to \CONTEXT for the BibTeX
module, and I believe there is, \BibTeX. The problem is it isn't
recognized when I attempt to compile my document with it. Is there a
module that must be included or something else one must do? I'd also
like to be able to extract the BibTeX version as well, if possible (akin
to \contextversion).

-- 
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] Dump table of contents

2012-04-10 Thread Kip Warner
On Mon, 2012-04-09 at 21:57 -0400, Aditya Mahajan wrote:
> It works at my end (but I am using a 1.5 month old beta), so sorry, I 
> cannot say what is going wrong with your file.
> 
> Did you try it with a small example file to see if that works? 

I haven't tried with a minimal, but I think what I will end up doing is
just extracting the pages manually using pdftk. The direct ConTeXt
method is rather cumbersome and difficult to get working on a very large
and convoluted document, like my book.

Thanks for your help anyways Aditya. Helpful as always.

-- 
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] MLA Bibliography

2012-04-10 Thread Kip Warner
Hey list,

I'd like to use an MLA style bibliography with MKIV. The style is
available here:

www.reed.edu/cis/help/latex/bibtexstyles.html

Actually, it doesn't matter to me whether it is that one or any that
supports MLA already that ships with ConTeXt.

In my environment file, I tried the following:

\setuppublications[alternative=mla]

That didn't appear to change anything, so I did what I normally do when
I don't trust the output of ConTeXt. I changed the "mla" to a garbage
string and it still compiled. So it must be either ignoring the style or
I am doing it wrong.

How can I use an MLA bibliography?

-- 
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] Comma separating multiple footnotes

2012-04-09 Thread Kip Warner
Hey list,

Is there any means of setting up footnotes such that whenever they are
tangential, they are automatically separated by a comma delimiter?

-- 
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] Dump table of contents

2012-04-09 Thread Kip Warner
On Mon, 2012-04-09 at 04:07 -0400, Aditya Mahajan wrote:
> Sorry, this should have read: WITHOUT the .tex extension

I tried both with and without it. ConTeXt doesn't appear to raise any
error and it doesn't generate a PDF. I've attached the log in case it is
helpful. 

Thanks for your help Aditya.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
resolvers   > resolving > loading configuration file '/usr/share/texmf/web2c/contextcnf.lua'

(Source/Makeup/Table_of_Contents_Standalone_Product.tex

ConTeXt  ver: 2012.04.07 14:42 MKIV  fmt: 2012.4.9  int: english/english

system  > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > Table_of_Contents_Standalone_Product.top loaded

system  > options > start used options

used options> % runtime options files (command line driven)
used options> \unprotect
used options> % feedback and basic job control
used options> % handy for special styles
used options> \startluacode
used options> document = document or { }
used options> document.arguments={
used options>  ["environment"]="Source/Environment.tex",
used options> }
used options> document.files={
used options>  "Source/Makeup/Table_of_Contents_Standalone_Product.tex",
used options> }
used options> \stopluacode
used options> % process info
used options> \setupsystem[inputfile=Source/Makeup/Table_of_Contents_Standalone_Product.tex]
used options> \setupsystem[\c!n=1,\c!m=1]
used options> % modes
used options> % options (not that important)
used options> \startsetups *runtime:options
used options> \stopsetups
used options> % styles and modules
used options> \startsetups *runtime:modules
used options> \environment Source/Environment.tex 
used options> \stopsetups
used options> % done
used options> \protect \endinput

system  > options > stop used options

(Table_of_Contents_Standalone_Product.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
(Source/Environment.tex
resolvers   > modules > loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv<+ /usr/share/texmf/tex/context/base/x-mathml.lua>)
resolvers   > modules > loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading > ConTeXt User Module / Simplefonts
<+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>)
fonts   > typescripts > unknown: library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) )

system  > files > start used files

used files  >1: filename=Source/Makeup/Table_of_Contents_Standalone_Product.tex | foundname=Source/Makeup/Table_of_Contents_Standalone_Product.tex | usedmethod=direct
used files  >2: filename=cont-new.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv | usedmethod=database
used files  >3: filename=Table_of_Contents_Standalone_Product.top | foundname=Table_of_Contents_Standalone_Product.top | usedmethod=direct
used files  >4: filename=lang-us.lua | filetype=lua | foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua | usedmethod=database
used files  >5: filename=Source/Environment.tex | foundname=Source/Environment.tex | usedmethod=direct
used files  >6: filename=m-units.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  >7: filename=m-units.mkiv | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  >8: filename=usr/share/texmf/tex/context/base/m-units.mkiv | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=qualified
used files  >9: filename=x-mathml.lua | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/x-mathml.lua | usedmethod=database
used files  >   10: filename=t-simplefonts.tex | filetype=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files  >   11: filename=t-simplefonts.tex | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files  >   12: filename=usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmeth

Re: [NTG-context] Dump table of contents

2012-04-08 Thread Kip Warner
On Mon, 2012-04-09 at 00:08 -0400, Aditya Mahajan wrote:
> \def\loaddatafile#1%
>  {\ctxlua {
>  job.initialize("#1.tuc","#1.tua")
>  }}%
> 
> \loaddatafile{full-book} %with the .tex extension
> 
> \starttext
> \placelist[chapter]
> \stoptext

Thanks Aditya, but I tried doing that. ConTeXt doesn't seem to emit an
error, but neither does it a PDF. I've attached the output log.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
resolvers   > resolving > loading configuration file '/usr/share/texmf/web2c/contextcnf.lua'

(Source/Makeup/Table_of_Contents_Standalone_Product.tex

ConTeXt  ver: 2012.04.07 14:42 MKIV  fmt: 2012.4.8  int: english/english

system  > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > Table_of_Contents_Standalone_Product.top loaded

system  > options > start used options

used options> % runtime options files (command line driven)
used options> \unprotect
used options> % feedback and basic job control
used options> % handy for special styles
used options> \startluacode
used options> document = document or { }
used options> document.arguments={
used options>  ["environment"]="Source/Environment.tex",
used options> }
used options> document.files={
used options>  "Source/Makeup/Table_of_Contents_Standalone_Product.tex",
used options> }
used options> \stopluacode
used options> % process info
used options> \setupsystem[inputfile=Source/Makeup/Table_of_Contents_Standalone_Product.tex]
used options> \setupsystem[\c!n=1,\c!m=1]
used options> % modes
used options> % options (not that important)
used options> \startsetups *runtime:options
used options> \stopsetups
used options> % styles and modules
used options> \startsetups *runtime:modules
used options> \environment Source/Environment.tex 
used options> \stopsetups
used options> % done
used options> \protect \endinput

system  > options > stop used options

(Table_of_Contents_Standalone_Product.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
(Source/Environment.tex
resolvers   > modules > loaded: 'units'
(/usr/share/texmf/tex/context/base/m-units.mkiv<+ /usr/share/texmf/tex/context/base/x-mathml.lua>)
resolvers   > modules > loaded: 'simplefonts'
(/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex
loading > ConTeXt User Module / Simplefonts
<+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>)
fonts   > typescripts > unknown: library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}) )

system  > files > start used files

used files  >1: filename=Source/Makeup/Table_of_Contents_Standalone_Product.tex | foundname=Source/Makeup/Table_of_Contents_Standalone_Product.tex | usedmethod=direct
used files  >2: filename=cont-new.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/cont-new.mkiv | usedmethod=database
used files  >3: filename=Table_of_Contents_Standalone_Product.top | foundname=Table_of_Contents_Standalone_Product.top | usedmethod=direct
used files  >4: filename=lang-us.lua | filetype=lua | foundname=/usr/share/texmf/tex/context/patterns/lang-us.lua | usedmethod=database
used files  >5: filename=Source/Environment.tex | foundname=Source/Environment.tex | usedmethod=direct
used files  >6: filename=m-units.mkiv | filetype=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  >7: filename=m-units.mkiv | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=database
used files  >8: filename=usr/share/texmf/tex/context/base/m-units.mkiv | foundname=/usr/share/texmf/tex/context/base/m-units.mkiv | usedmethod=qualified
used files  >9: filename=x-mathml.lua | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/base/x-mathml.lua | usedmethod=database
used files  >   10: filename=t-simplefonts.tex | filetype=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files  >   11: filename=t-simplefonts.tex | filetype=tex | format=tex | foundname=/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.tex | usedmethod=database
used files  >   12: filename=usr

[NTG-context] Dump table of contents

2012-04-08 Thread Kip Warner
Hey list,

Is it possible to instruct ConTeXt to generate just the table of
contents, skipping all other front matter, back matter, appendices, body
matter, etc.? For example, only the following I'd like to see in the
outputted PDF:

% Contents at a glance...
\title{Contents at a Glance}
\placelist[chapter]

% Complete table of contents...
\title{Table of Contents}
\placecontent

Right now I am generating the full book, but then passing through pdftk
manually to extract just the pages that fall within the aforementioned.

I tried putting the aforementioned code in its own product file and then
passing that through ConTeXt with the book's environment, but the
problem is that the TOC now has nothing in it, of course.

-- 
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] Page background image

2012-04-05 Thread Kip Warner
On Thu, 2012-04-05 at 04:41 +0200, Wolfgang Schuster wrote:
> \defineoverlay[backgroundfigure][\overlayfigure{mill}]
> 
> \setupbackgrounds[page][background=backgroundfigure]
> 
> \starttext
> \dorecurse{12}{\page[empty]}
> \stoptext
> 
> Wolfgang

Thanks Wolfgang & Aditya. Both solutions are useful.

-- 
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] Page background image

2012-04-04 Thread Kip Warner
Hey list,

I have an image that I would like to use as the page background on every
page of a document. The image matches the dimensions of the full page
already. I know how to insert it as a floating figure or as a logo in
the margin, but not as the entire page itself.

-- 
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] TABLE not splitting across page boundary

2012-04-03 Thread Kip Warner
On Tue, 2012-04-03 at 10:16 +0200, Hans Hagen wrote:
> indeed. that kind of wrapping does not work for successive (split)
> floats

Suggestions? All I need is the table on the right side, text flowing
around it, and if the table is too long, to split across page
boundaries.

-- 
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] TABLE not splitting across page boundary

2012-04-02 Thread Kip Warner
On Mon, 2012-04-02 at 12:54 +0200, Hans Hagen wrote:
> \placetable[force,nonumber,right,split]

Thanks Hans. That works for splitting the table, but text no longer
wraps around it properly anymore. The table is aligned on the right side
of the page, and splits at a page boundary as requested, but the rest of
the page is blank on its left with body text only above and below it.

\input knuth

\placetable[nonumber,right,split,4*hang]{}
{
\bTABLE[width=0.25\textwidth]
\setupTABLE[column][1]
[align={middle,lohi},
 background=color,
 backgroundcolor=colour_table_row_even,
 style=\bfxx,
 width=2.3cm]
\setupTABLE[column][2]
[align=flushleft,
 option=stretch,
 background=color,
 backgroundcolor=colour_table_row_odd]
\setupTABLE[each][each]
[style=\tfxx]

\bTABLEbody

\bTR
\bTC Stuff \eTC
\bTC Stuff \eTC
\eTR

...
\eTABLEbody

\eTABLE
}

\input knuth

-- 
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] TABLE not splitting across page boundary

2012-04-01 Thread Kip Warner
Hey list,

I am having difficulty getting my table to split across page boundaries.
It doesn't have, nor need, headers, but just individual unrelated rows.
Here is a minimal illustrating the problem I am having:

\starttext
Here is some text.
\placetable[force,nonumber,right]{}
{
\bTABLE[width=0.25\textwidth,split=yes]
\setupTABLE[column][1]
[align={middle,lohi},
 style=\bfxx,
 width=2.3cm]
\setupTABLE[column][2]
[align=flushleft,
 option=stretch]
\setupTABLE[each][each]
[style=\tfxx]

\bTABLEbody

\dorecurse{100}{
\bTR
  \bTC  body \eTC
  \bTC  body \eTC
\eTR
}

\eTABLEbody

\eTABLE
}

\stoptext

-- 
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] Text background broken frame

2012-04-01 Thread Kip Warner
Hey list,

The following minimal seems to identify a problem with making the frame
border's of text backgrounds vanish.

\definetextbackground[ExampleFrame]
   [frame=on]

\definetyping
[Example]
[before=\startExampleFrame,
after=\stopExampleFrame]

% To move footnotes inside of text boxes to the bottom of the page with
%  the rest of the footnotes. When uncommented, kills frame...
\kindofpagetextareas\plusone

\starttext
\startExample
Some text
\stopExample
\stoptext


If you comment out the \kindofpagetextareas\plusone line, it works fine.
Is this the expected behaviour? I am using it at the suggestion of Hans
to help mitigate a problem with footnotes inside of text boxes.

http://archive.contextgarden.net/message/20111222.082458.06567594.en.html

I am using ConTeXt version 2012.03.30 16:16.

-- 
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] ConTeXt in the Cloud?

2012-03-29 Thread Kip Warner
On Thu, 2012-03-29 at 13:20 -0400, Matthias Weber wrote:
> Dear All,
> 
> as the proud owner of one of these tablet thingies  I am trying to make it as 
> TeX-friendly as possible. Because the chances
> of running TeX on it are slim, I've been looking at alternatives. The major 
> goal would be to be able to create a 
> presentation in ConTeXt on a tablet. For LaTeX, there is a cloud based 
> services called ScribTeX,
> which allows you to store (in the free version) up to three projects with up 
> to 50MB space in the cloud, and have it LaTeXed.
> As their cloud can be accessed via an App, you can edit the files on your 
> tablet, send them to the cloud, have them TeXed, and
> download the pdf.
> 
> I am tempted to contact the ScribTeX people and ask them to suport ConTeXt as 
> well, but as I am just a little user and wouldn't have 
> a clue about legalities, technicalities, etc, I thought I might ask here 
> first.
> 
> Thanks!
> 
> 
> Matthias

Hey Matthias,

It sounds like all you are trying to do is host a file on a server, but
the consumer lexicon may be confusing you. I recommend these two links:

https://www.gnu.org/philosophy/words-to-avoid.html#CloudComputing

https://www.gnu.org/philosophy/who-does-that-server-really-serve.html

Best of luck and take care,

-- 
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] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 12:58 +0100, Philipp Gesang wrote:
> Fyi I just added a couple words to the article:
> <http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups>
> please expand as needed!

Thank you.

-- 
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] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 12:21 +0100, Philipp Gesang wrote:
> You’re right, it can cause confusion to people migrating from
> Latex where package options, afair, allows mixed key-value/list
> syntax (like e.g. Lua does as well). Random example from the
> KOMA-Script manual:
> 
>   \documentclass[BCOR=12mm,DIV=calc,twoside]{scrartcl}
>  ^  ^^^
>  assignment  …  switch

Thanks Philipp. I'm finding that one of the big weaknesses of ConTeXt is
similar to a common criticism of the first one listed on Git here:

https://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/

It requires users to know too much about how ConTeXt actually works
internally (e.g. its information model). Maybe this is necessary. Maybe
it isn't. I'm fairly new to typesetting and never came from a background
of decades of experience with TeX. But it seems to me like any
programming language, and ConTeXt is a kind of one for document
engineering, should have users focusing on creating beautiful books and
not on the language's information and processing model. 

Just my two cents.

-- 
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] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 11:38 +0100, Mojca Miklavec wrote:
> - Maybe it could be more explicit, but if you ever take a look at
> documentation

Sorry, but which documentation should one obviously be looking at? The
half a dozen PDFs, the several versions of the wiki, the mailing list,
one of the actual hard copy books, the source code? Bits and pieces are
scattered everywhere with little rhyme or reason at times.

> , for example
> http://wiki.contextgarden.net/Command/setupitemgroup
> you will notice that some brackets are depicted with [...,...] and
> others with [...,...=...,...]

Yes, and where was the thinking behind that explained in the user
manual? It wasn't. Look for the word "assignment".

> - The fact that luatex crashes is simply a bug that should be fixed,
> so if you didn't do it already, please add a ticket to the tracker. 

I cc'd the minimal example to the luatex mailing list, but I won't have
time right now to get more details for them on their tracker.

-- 
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] Itemize without page break

2012-03-21 Thread Kip Warner
On Tue, 2012-03-20 at 18:22 -0400, Aditya Mahajan wrote:
> Anything else will leave to undersirable behaviour (or segfaults :) ) As I 
> had said in one of my earlier emails, this is the case for ALL context 
> macros that take both options and assignments.

Fair enough. I got it to work now with,

\startitemize[R,2*broad][start=11,before=\startlinecorrection,after=
\stoplinecorrection]

My only concern here is that, for something as incredibly fundamental
and recurring in the world of ConTeXt, the caveats and distinctions to
be made between options and assignments, that can and have taken down
entire operating systems, or cause hour after hour of no end of vague
syntactical errors, or even successful compilations with the wrong
effects, shouldn't that probably have been mentioned at least once, even
if only in passing, somewhere within the 369 page user manual? The word
"assignment" I couldn't locate once. 

I'm not sure if this is a concept inherited from TeX, but if it is, it's
probably not a good idea for the documentation and the user interface to
assume that ConTeXt users have a background with TeX or derived.

Thanks for the help,

-- 
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] [luatex] Itemize without page break

2012-03-21 Thread Kip Warner
On Tue, 2012-03-20 at 22:41 +0100, luigi scarso wrote:
> > As I said earlier, I get a segmentation fault if I leave it to run, but
> > I always have to kill it before it takes down the entire operating
> > system with it (apparently this is normal). I don't get the TeX capacity
> > exceeded error message, as you saw from my earlier console output.
> Ok, this is not normal and I suspect that it's linux 64bit issue --
> can be bug of luatex then.
> Can anyone confirm that on  linux 64bit the following
> \starttext
> 
> \startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
> \item foo
> \stopitemize
> \stoptext
> gives a segmentation fault ?

What's probably happening is eventually the system runs out of memory,
the swap gets depleted as well, and as a last act of desperation, the
kernel finally denies an allocation request to luatex which is pretty
rare. The latter probably then dereferences the null pointer and then it
blows.

-- 
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] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
> You can’t have a assignment in both parameters because this would lead
> to the same problem as before,
> combine both settings in one argument and it works. 

I must not be doing it right because the item numbers are gone now and
replaced with hyphens:

\startitemize[R,2*broad,before=\startlinecorrection,after=
\stoplinecorrection,start=11]
\setupitemize[left=(, right=)]
\item foo.
\item foo.
\stopitemize

-- 
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 21:44 +0100, Hans Hagen wrote:
> sure, but mu experience is that browsers of email clients are way more 
> demanding than tex when it comes to memory usage

I've never had either take down the entire operating system. There is a
different from intended memory usage and unintended anyways. In this
case, we are talking about the latter.

> for tex it depends how much memory is permitted (there are some maxima 
> that can be set in configuration files) ... i must say that I never run 
> out of memory, although with doing extreme torture tests with many fonts 
> one can come pretty close

Well, you saw what happened with my sample minimal.

Anyways, if this is normal behaviour, that's fine, I just wanted to
bring it to the list's attention. That's all.

-- 
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 21:39 +0100, luigi scarso wrote:
> When  TeX says
> ! TeX capacity exceeded, sorry [token memory size=<...>]
> it is its graceful way to exit from  an irreversible situation.
> It can be caused by luatex or ConTeXt mkiv
> but it's *not* a segmentation fault, as you said early:
> >Actually highly probably, since the seg fault is raised in luatex and
> >not context. Even if context is feeding it malformed input, luatex
> >should not ever crash.
> Only luatex can do a segmentation fault -- of course due a tex macro
> /lua function possibly called  from ConTeXt.
> What happen for me (linux ubuntu 10lts 32bit)  and Hans (windows (7
> professional 64bit ?) )  is a "TeX capacity exceeded," , not a seg.
> fault, and sometime happen if one calls a macro in a wrong way.
> So, do you have a segmentation fault or a TeX capacity exceeded on you
> linux 64bit box ?

As I said earlier, I get a segmentation fault if I leave it to run, but
I always have to kill it before it takes down the entire operating
system with it (apparently this is normal). I don't get the TeX capacity
exceeded error message, as you saw from my earlier console output.

-- 
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 20:26 +0100, Hans Hagen wrote:
> well you can try what happens if you run stock lua:
> 
> local t = { }
> while true do
>  t[#t+1] = "just a bogus string: " .. (#t+1)
> end
> 
> at some point your system will run out of (virtual) memory or lua will 
> run out of whatever its limits are

Of course. And the same could be done in C, C++, or really any language
that supports dynamic memory allocation. We just hope that programs that
are built from them won't do that.

-- 
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] [luatex] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 16:57 +0200, Khaled Hosny wrote:
> Older TeX engines had hard memory limit, so in case of such
> "syntactical" errors the engine would consume all its allocated memory
> and die (with a misleading error message), LuaTeX dynamically allocates
> memory (for good reasons) so it won't stop before consuming all your
> available memory, its the responsibility of an operating system to
> prevent such a faulty application from taking the whole system down.

I'd be very interested in seeing the operating system memory manager's
algorithm that could do such a remarkable thing.

-- 
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] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 09:17 +0100, Hans Hagen wrote:
> which is not really a crash of my operating system; there is not much
> I 
> can do about this issue I fear. 

Totally up to you. I just wanted to bring it to your attention.

-- 
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] Itemize without page break

2012-03-19 Thread Kip Warner
On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
> TeX has it’s problem with certain errors, accept it.

It is not a problem with the program raising an error, it was how it
went about doing it. It should not have to take down the entire
operating system to indicate to the user that there was a non-intuitive
syntactical error in typesetting.

-- 
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] Itemize without page break

2012-03-19 Thread Kip Warner
On Tue, 2012-03-20 at 06:22 +0100, Wolfgang Schuster wrote:
> The problem is the empty second argument.
> 
> \startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
> 
> When you pass two arguments with \startitemize the first argument os for 
> keywords (e.g. packed or fit)
> and second argument is for assignments (e.g. width=3cm) in your case context 
> is looking for the keywords
> “before=\startlinecorrection” and “after=\stoplinecorrection” which results 
> in a loop.

Even if that were the case, that's a fragility that no program should
its users endure. It should probably have bailed with an error message
after seeing that the second argument was empty rather than taking down
the entire operating system with it.

But regardless, this does not seem to be the case. The following minimal
still blows up, even with an assignment in the second parameter.

\starttext

\startitemize[before=\startlinecorrection,after=
\stoplinecorrection][start=11]
\item foo
    \stopitemize

\stoptext

-- 
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] Itemize without page break

2012-03-19 Thread Kip Warner
On Mon, 2012-03-19 at 09:17 +0100, Wolfgang Schuster wrote:
> Make a example because this works:
> 
> \starttext
> 
> %\dorecurse{2}{\input tufte\par}
> \dorecurse{3}{\input tufte\par}
> 
> \startitemize[before={\startlinecorrection[blank]},after=
> \stoplinecorrection]
> \dorecurse{4}{\startitem \input ward \stopitem}
> \stopitemize
> 
> \dorecurse{3}{\input tufte\par}
> 
> \stoptext 

I concur that your example works. Attached is an example of a minimal
that does not for me. ConTeXt does its thing, invoking luatex which
quickly gets nasty and starts spinning the clock - endlessly allocating
memory until a 4GB system is run into the ground.

This is what I see:

$ context minimal.tex 

resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex
--fmt="/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en"
 
--lua="/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui"
 --backend="pdf" "./minimal.tex" \stoptext
This is LuaTeX, Version beta-0.71.0-2012030522 (rev 4364) 
 \write18 enabled.

resolvers   > resolving > loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
(minimal.tex

ConTeXt  ver: 2012.03.13 21:26 MKIV  fmt: 2012.3.14  int:
english/english

system  > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > minimal.top loaded
(minimal.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
fonts   > typescripts > unknown: library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > defining > forced type afm of stmary10 not found
fonts   > defining > font with asked name 'stmary10' is not
found using lookup 'file'
fonts   > virtual math > loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fonts   > defining > forced type afm of stmary10 not found
fonts   > defining > font with asked name 'stmary10' is not
found using lookup 'file'
fonts   > virtual math > loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fonts   > defining > forced type afm of stmary10 not found
fonts   > defining > font with asked name 'stmary10' is not
found using lookup 'file'
fonts   > virtual math > loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fonts   > fallback modern rm 12pt is loaded

[***hangs at this point***]

I am using ConTeXt and LuaTeX packages off of Adam's PPA. These are
luatex version beta-0.71.0-2012030522 (rev 4364) under context version
2012.03.13 21:26 on amd64 hardware using Ubuntu Maverick.

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

\startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
\item foo
\stopitemize

\stoptext



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] Itemize without page break

2012-03-19 Thread Kip Warner
On Mon, 2012-03-19 at 22:50 +0100, Hans Hagen wrote:
> Packaging itemizes are on a todo list as I sometimes need it myself, but 
> it has a low priority

Ok, but I thought they were already "packaged" with context?

-- 
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] Itemize without page break

2012-03-19 Thread Kip Warner
On Mon, 2012-03-19 at 22:49 +0100, Hans Hagen wrote:
> On 19-3-2012 00:29, Kip Warner wrote:
> 
> >> I've cc'd the luatex user mailing list since this is probably, I
> >> suppose, a luatex issue more than a ConTeXt one.
> 
> not that probable

Actually highly probably, since the seg fault is raised in luatex and
not context. Even if context is feeding it malformed input, luatex
should not ever crash.

> test needed

On it. My book is a couple hundred pages long, so hopefully I will be
able to come up with one.

-- 
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] PDF Digital Signatures

2012-03-19 Thread Kip Warner
On Mon, 2012-03-19 at 10:27 +0100, Andreas Schneider wrote:
>  Under this part was a signature field
> I   could   click  which  made  Adobe  Reader  prompt  for  a  digital
> certificate. 

Great idea. It would be great if one could use any OpenPGP key.

-- 
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] Itemize without page break

2012-03-18 Thread Kip Warner
On Sun, 2012-03-18 at 16:25 -0700, Kip Warner wrote:
> On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
> > Am 17.03.2012 um 10:21 schrieb luigi scarso:
> > 
> > > On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner  wrote:
> > >> Hey list,
> > >> 
> > >> Is there any way to hint to ConTeXt that the contents of a \startitemize
> > >> \stopitemize pair should try to be all on the same page?
> > > plain old tex
> > > \vbox{%
> > > \startitemize
> > > \stopitemize%
> > > }
> > 
> > Better:
> > 
> > \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
> > 
> > \stopitemize
> > 
> > You can control the space before/after the linecorrection environment with 
> > the optional
> > argument which accepts all values for \blank, e.g. 
> > \startlinecorrection[2*line].
> > 
> > Wolfgang
> 
> Hey Wolfgang,
> 
> The good news is that this is probably what I need. The bad news is
> luatex completely blows itself to pieces, allocating memory until the
> system crashes. 
> 
> After much grinding of the machine, I managed to finally SIGSTOP and
> attach gdb to the naughty process.
> 
> I've cc'd the luatex user mailing list since this is probably, I
> suppose, a luatex issue more than a ConTeXt one.
> 
> I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
> version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.

One other thing that I should have made more clear, this only happens
when I insert the aforementioned line correction commands.

-- 
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] Itemize without page break

2012-03-18 Thread Kip Warner
On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
> Am 17.03.2012 um 10:21 schrieb luigi scarso:
> 
> > On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner  wrote:
> >> Hey list,
> >> 
> >> Is there any way to hint to ConTeXt that the contents of a \startitemize
> >> \stopitemize pair should try to be all on the same page?
> > plain old tex
> > \vbox{%
> > \startitemize
> > \stopitemize%
> > }
> 
> Better:
> 
> \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
> 
> \stopitemize
> 
> You can control the space before/after the linecorrection environment with 
> the optional
> argument which accepts all values for \blank, e.g. 
> \startlinecorrection[2*line].
> 
> Wolfgang

Hey Wolfgang,

The good news is that this is probably what I need. The bad news is
luatex completely blows itself to pieces, allocating memory until the
system crashes. 

After much grinding of the machine, I managed to finally SIGSTOP and
attach gdb to the naughty process.

I've cc'd the luatex user mailing list since this is probably, I
suppose, a luatex issue more than a ConTeXt one.

I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
$ gdb luatex 8477
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/luatex...Reading symbols from /usr/lib/debug/usr/bin/luatex...done.
done.
Attaching to program: /usr/bin/luatex, process 8477
Reading symbols from /lib/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpng12.so.0
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.12.1.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.12.1.so...done.
done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.12.1.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.12.1.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
154	../../../source/texk/web2c/luatexdir/tex/textoken.w: No such file or directory.
	in ../../../source/texk/web2c/luatexdir/tex/textoken.w
(gdb) bt full
#0  0x004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
p = 273242622
t = 273242621
#1  0x00471ded in macro_call () at ../../../source/texk/web2c/luatexdir/tex/expand.w:658
r = 273242622
p = 273242621
q = 273242622
s = -2109026328
t = 
u = 1572864
v = 
rbrace_ptr = 
n = 
unbalance = 9
m = 257
ref_count = 163662
save_scanner_status = 0
save_warning_index = 3331
match_chr = 35
#2  0x00472a45 in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:384
No locals.
#3  0x00511819 in test_for_cs () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:176
m = 
s = 
p = 526371
#4  conditional () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:483
b = 
r = 
m = 
n = 
p = 
---Type  to continue, or q  to quit---
q = 
save_scanner_status = 
save_cond_ptr = 74229
this_if = 
#5  0x00472695 in expand () at ../../../source/texk/web2c/luatexdir/tex/expand.w:236
t = 
p = 
cur_ptr = 
cv_backup = 1
cvl_backup = 0
radix_backup = 0
co_backup = 0
backup_backup = 0
save_scanner_status = 0
#6  0x00472a7d in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:391
No locals.
#7  0x0048022d in main_control () a

[NTG-context] Itemize without page break

2012-03-16 Thread Kip Warner
Hey list,

Is there any way to hint to ConTeXt that the contents of a \startitemize
\stopitemize pair should try to be all on the same page?

-- 
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] Integration of all the information around ConTeXt

2012-03-16 Thread Kip Warner
On Fri, 2012-03-16 at 13:24 +0100, Jan Heinen wrote:
> I think the best what I can do for ConTeXt is helping to 
> structure, organize and integrating the huge amount of 
> existing information.

Hear, hear!

-- 
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] Referencing a definition

2012-03-15 Thread Kip Warner
On Mon, 2012-03-05 at 18:04 +0100, Hans Hagen wrote:
> On 4-3-2012 23:52, Kip Warner wrote:
> > 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?
> 
> \definedescription[test]
> 
> \starttext
> 
> \starttest[ward] {one} \input ward \stoptest
> 
> bla bla \at{page}[ward] we define \about[ward]
> 
> \stoptext

Hey Hans,

How could I have a reference that typesets any word or phrase I choose,
but when clicked jumps to the aforementioned description?

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

<    1   2   3   4   5   >