Re: [NTG-context] vertical space with \reference

2015-11-21 Thread Michael Green
> On Nov 20, 2015, at 1:50 PM, Hans Hagen wrote:

> On 11/20/2015 7:17 PM, Michael Green wrote:
>> Context puts extra vertical between “Line one" and “Line two” in this 
>> example. Should it do that?
>> 
>> \starttext
>> Line one.
>> 
>> \reference[refs]{}%
>> 
>> Line two.
>> \stoptext
> 
> yes because you inject an (invisible) signal .. also, think of it: where 
> does the ref belong to, line 1 or line 2, so best bind it to a line

Good point. Thank you!

___
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] vertical space with \reference

2015-11-20 Thread Michael Green
Context puts extra vertical between “Line one" and “Line two” in this example. 
Should it do that?

\starttext
Line one.

\reference[refs]{}%

Line two.
\stoptext

I ask because pandoc inserts \reference[refs]{}% at the beginning of its 
bibliography section; that produces extra vertical space. I do not think this 
command should produce any space at all, but perhaps I am mistaken.

Thank you!
___
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] database module: the first letter is lost

2014-06-25 Thread Michael Green
This appears to be the same as the problem Peter Münster found with the letter 
module

\usemodule[database]

\defineseparatedlist[MyTable]
[separator=tab,
before=\bTABLE,after=\eTABLE,
first=\bTR,last=\eTR,
left=\bTD,right=\eTD]

\starttext

The first letter of “Cell” is lost.

\startseparatedlist[MyTable]
Cell 1  Cell 2
\stopseparatedlist

With an extra return, “Cell” is intact.

\startseparatedlist[MyTable]

Cell 1  Cell 2
\stopseparatedlist


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

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


Re: [NTG-context] Where is the documentation of the letter module

2012-05-24 Thread Michael Green
On May 24, 2012, at 3:13 PM, Florian Wobbe wrote:

 is there anyone else who knows where the current correspondence docu resides? 
 I tried again to locate it but to no avail.

I find the manual in these places.

/tex/texmf-modules/doc/context/third/letter

https://bitbucket.org/wolfs/correspondence/downloads


There is some guidance about what's new in these messages:

http://www.ntg.nl/pipermail/ntg-context/2012/064695.html

http://www.ntg.nl/pipermail/ntg-context/2012/065039.html
___
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] strc-lst.lua [was: Bibliography problem]

2012-02-03 Thread Michael Green
On 2012-02-03 06:04 -800, Philipp Gesang wrote:
 On 2012-02-02 20:22, Michael Green wrote: 
  
  If I add \placepublications[criterium=all], I get errors that appear to 
  be related to what we changed...
 
 Wait a sec -- this should have been fixed by the modification to strc-lst.lua.

You're right. I made a simple error in modifying strc-lst.lua. I typed 1 
(numeral) rather than l (letter). Now it all works as you said it should. 
Thanks!
___
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] strc-lst.lua [was: Bibliography problem]

2012-02-02 Thread Michael Green
On 2012-02-01 12:48 -800, Philipp Gesang wrote:

 On 2012-01-27 12:23, Michael Green wrote: 
  I'm having a problem with bibliographies. 
 
 I believe the bug is in strc-lst.lua. 
 
  line 526ff.  
 
 function lists.location(n) 
 local l = lists.result[n] 
 - return l.references.internal or n 
 + return l and l.references.internal or n 
 end 
 
 · 
 
 Works here. 
 
 Philipp 
 

Thanks for all your help, but I'm afraid it's still not working for me.

I did two tests. (1) Using this change alone and (2) using this change together 
with the one you recommended to strc-lst.mkvi
http://archive.contextgarden.net/message/20120201.194023.3e8d62a3.en.html

Alas, the logs were the same both times. If it works for you perhaps there's 
something amiss on my end. But I don't have the foggiest idea what it might be.



ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.2.1  int: english/english

system   cont-new.mkiv loaded
(/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   2012bib.top loaded
(2012bib.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
publications wrote a new auxiliary file \jobname.aux
This is BibTeX, Version 0.99d (TeX Live 2011)
The top-level auxiliary file: 2012bib.aux
The style file: cont-no.bst
Database file #1: test.bib
publications loading formatting style from bibl-apa
(/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/bib/bibl-apa.tex){/Users/michaelgreen/Applications/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
checkmissing or ungrouped '=' after 'pubs' in line 5 (68:)
publications loading database from 2012bib.bbl
(2012bib.bbl)
! Extra \endgroup.

system   tex  error on line 5 in file 2012bib.tex: Extra  ...

 1 \setupbibtex[database=test]
 2 \setuppublications[alternative=apa]
 3 
 4 \starttext
 5   Here is a cite command: \cite[hh2010a]
 6 
 7 \stoptext
 8 \endinput
 9 %\placepublications[criterium=all]
10 


\docite ...else \donumberedcite {#1}\fi \endgroup 
  
to be read again 

l.5 Here is a cite command: \cite[hh2010a]
  
? 

 Example file  
 
\setupbibtex[database=test] 
\setuppublications[alternative=apa] 
 
\starttext 
Here is a cite command: \cite[hh2010a] 
\stoptext 

 test.bib  
@ARTICLE{hh2010a,
  author = {Hans Hagen},
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] strc-lst.lua [was: Bibliography problem]

2012-02-02 Thread Michael Green
On 2012-02-02 15:46 -800, Philipp Gesang wrote:
 On 2012-02-02 15:26, Michael Green wrote: 
  On 2012-02-01 12:48 -800, Philipp Gesang wrote: 
  
  Thanks for all your help, but I'm afraid it's still not working for me. 
  
  I did two tests. (1) Using this change alone and (2) using this change 
  together with the one you recommended to strc-lst.mkvi 
  http://archive.contextgarden.net/message/20120201.194023.3e8d62a3.en.html 
 
 I believe the second one should already have fixed it. Have you 
 run “context --make” after you modified both files? 

Aha! That's what I didn't do. Thank you very much!

So, of course, there's another problem.

If I add \placepublications[criterium=all], I get errors that appear to be 
related to what we changed. Note that if I press return twice, the document is 
produced as expected.

Thanks again for the help.

mjg

 file 

\setupbibtex[database=test]
\setuppublications[alternative=apa]

\starttext
Here is a cite command: \cite[hh2010a]
\placepublications[criterium=all]

\stoptext
\endinput
--

 test.bib -

@ARTICLE{hh2010a,
  author = {Hans Hagen},
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}
--

 log ---
ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.2.2  int: english/english

system   cont-new.mkiv loaded
(/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   2012bib.top loaded
(2012bib.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
publications wrote a new auxiliary file \jobname.aux
This is BibTeX, Version 0.99d (TeX Live 2011)
The top-level auxiliary file: 2012bib.aux
The style file: cont-no.bst
Database file #1: test.bib
publications loading formatting style from bibl-apa
(/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/bib/bibl-apa.tex){/Users/michaelgreen/Applications/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
publications loading database from 2012bib.bbl
(2012bib.bbl)
publications placing all entries, use 'text' to be more selective
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: 
attempt to index local 'l' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: in 
function 'location'
...text/tex/texmf-context/tex/context/base/strc-lst.lua:692: in 
function 'listlocation'
main ctx instance:1: in main chunk.

system   tex  error on line 4 in file 2012bib.tex: LuaTeX error  ...

 1 \setupbibtex[database=test]
 2 \setuppublications[alternative=apa]
 3 
 4   \starttext
 5 Here is a cite command: \cite[hh2010a]
 6 \placepublications[criterium=all]
 7 
 8 \stoptext
 9 \endinput
10 


\ctxcommand ...\directlua \zerocount {commands.#1}
  
inserted text ...cation {\structurelistlocation 
  }\fi \doifstructurelisthas...
\strc_lists_apply_renderingsetup ...enderingsetup 
  \edef \currentlistalternat...
l.4 }
 
\typesetpubslist ...hacks.flush(\@@pbsorttype )}
  \stoppacked \endgroup 
\dodoplacepublications ...sttrue \typesetpubslist 
  \inpublistfalse \global \a...
...
l.6 \placepublications[criterium=all]
 
? 
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: 
attempt to index local 'l' (a nil value)
stack traceback:
...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: in 
function 'location'
...text/tex/texmf-context/tex/context/base/strc-lst.lua:692: in 
function 'listlocation'
main ctx instance:1: in main chunk.

system   tex  error on line 4 in file 2012bib.tex: LuaTeX error  ...

 1 \setupbibtex[database=test]
 2 \setuppublications[alternative=apa]
 3 
 4   \starttext
 5 Here is a cite command: \cite[hh2010a]
 6 \placepublications[criterium=all]
 7 
 8 \stoptext
 9 \endinput
10 


\ctxcommand ...\directlua \zerocount {commands.#1}
  
inserted text ...cation {\structurelistlocation

[NTG-context] Bibliography problem

2012-01-27 Thread Michael Green
I'm having a problem with bibliographies.

 Example file 

\setupbibtex[database=test]
\setuppublications[alternative=apa]

\starttext
Here is a cite command: \cite[hh2010a]

%\placepublications[criterium=all]

\stoptext

 test.bib 

@STRING{hh = {Hans Hagen}}

@ARTICLE{hh2010a,
  author = hh,
  title = {The Font Name Mess},
  journal = {MAPS},
  year = {2010},
  volume = {40},
  pages = {2-8},
  keywords = {context},
}

 Log 

This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) 
 \write18 enabled.
(2012bib.tex

ConTeXt  ver: 2012.01.25 14:16 MKIV  fmt: 2012.1.26  int: english/english

system   cont-new.mkiv loaded
(/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   2012bib.top loaded
(2012bib.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
publications wrote a new auxiliary file \jobname.aux
This is BibTeX, Version 0.99d (TeX Live 2011)
The top-level auxiliary file: 2012bib.aux
The style file: cont-no.bst
Database file #1: test.bib
publications loading formatting style from bibl-apa
(/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/bib/bibl-apa.tex){/Users/michaelgreen/Applications/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
checkmissing or ungrouped '=' after 'pubs' in line 5 (68:)
publications loading database from 2012bib.bbl
(2012bib.bbl)
! Extra \endgroup.

system   tex  error on line 5 in file 2012bib.tex: Extra  ...

1 \setupbibtex[database=test]
2 \setuppublications[alternative=apa]
3 
4 \starttext
5   Here is a cite command: \cite[hh2010a]
6 
7 %\placepublications[criterium=all]
8 
9 \stoptext


\docite ...else \donumberedcite {#1}\fi \endgroup 
  
to be read again 

l.5 Here is a cite command: \cite[hh2010a]
  
? 

___
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] Problem with letter module

2012-01-19 Thread Michael Green
On Jan 19, 2012, at 7:32 AM, Romain Diss wrote:

 Unfortunately, I have now another problem which I didn't notice before 
 because 
 the \encl{} error didn't let me go to the end of the tex processing. The 
 following minimal example do not compile:
 
 % example
 \usemodule[letter]
 \startletter
  \input tufte
 \stopletter
 % end
 
 Instead, I get the following error message:
 
 ! Missing number, treated as zero.
 
 system   tex  error on line 100 in file letter.tex: Missing number, 
 treated as zero ...
 
 
 to be read again 
   \relax 
 \pack_layers_set_content ..._pack_layers_x \relax 
  \d_pack_layers_y_position 
 ...
 \pack_layers_set_finish ...layers_set_content {#1}
  \fi \fi \else \writestatus...
 \correspondence_layer_place ...dence_layer_direct 
  \fi \else \ifodd \c_corres...
 \executedefinedoverlay ...dp \the \everyoverlay #2
  \else \lower 
 \d_framed_tar...
 \pack_framed_process_background_indeed_external ...
  \else \kern 
 -\framedbackgr...
 ...
 l.7 \stopletter
 
 
 Any idea which could help me?

Does your file start with a byte order mark (BOM)?

___
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] References to annotations

2011-10-07 Thread Michael Green
Thank you again!

 You need the following mode setting:
 
 \usemodule[letter]
 
 \startletter
 
 \startnotmode[*trialtypesetting]
 \placetable[here][]{title}
 \starttable[|l|]
 \NC That?s all \NC\MR
 \stoptable
 \stopnotmode
 
 \stopletter
___
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] References to annotations

2011-10-05 Thread Michael Green
I'm getting two unexpected results from references to annotations:

1. The numbering is different: \placeannotationnumber starts at 1, \in[ref] 
starts at 0

2. \atpage sometimes gives the page number and sometimes yields something 
surprising: as we show below (or above). That's nifty, but unexpected.

Thank you.

Michael

 Example -

\usemodule[annotation]

\defineannotation[Arg][alternative=command,number=yes,command=\ArgCommand,text=Argument]

\define[2]\ArgCommand{
  \startitemize[n]
\placeannotationcontent
  \stopitemize
  \placeannotationtext\ \placeannotationnumber\ \placeannotationtitle
}

\starttext
\startArg[title=An OK Argument,reference=OK]
\item All men are mortal.
\item Socrates is a man.
\item Therefore, Socrates isn’t going to make it.
\stopArg

References to the first argument: \in{argument}[OK], \atpage[OK]

References to the second argument: \in{argument}[NotOK], \atpage[NotOK]

\page

\startArg[title=A Bad Argument,reference=NotOK]
\item Someone I don’t know called me.
\item Barack Obama is someone I don’t know.
\item Therefore, Barack Obama called me.
\stopArg

References to the second argument: \in{argument}[NotOK], \atpage[NotOK]

References to the first argument: \in{argument}[OK], \atpage[OK]

\stoptext

-

 Results 

[page 1]

1. All men are mortal.
2. Socrates is a man.
3. Therefore, Socrates isn’t going to make it.
Argument 1 An OK Argument

References to the first argument: argument 0, at page 1
References to the second argument: argument 1, as we show below

[page 2]

1. Someone I don’t know called me.
2. Barack Obama is someone I don’t know.
3. Therefore, Barack Obama called me.
Argument 2 A Bad Argument

References to the second argument: argument 1, at page 2
References to the first argument: argument 0, as we show above
-
___
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] References to annotations

2011-10-05 Thread Michael Green
That works. Thank you very much!

Coincidentally, I found a similar issue with the letter module. The table in 
the example below will be numbered Table 2

\usemodule[letter]

\starttext

\startletter

\placetable[here][]{title}
\starttable[|l|]
\NC That’s all \NC\MR
\stoptable

\stopletter
\stoptext 



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

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


Re: [NTG-context] m-barcodes error

2010-07-09 Thread Michael Green

On Jul 7, 2010, at 12:31 PM, Wolfgang Schuster wrote:


Am 07.07.10 20:34, schrieb Hans Hagen:

On 7-7-2010 7:35, Wolfgang Schuster wrote:

Am 07.07.10 19:18, schrieb Michael Green:

I can’t get the example in the m-barcodes module to work. I have no
urgent need to print barcodes; I was just curious. I'm writing  
in case

I found an easily corrected bug.

The release notes from 2010.05.08 call this module mkiv only. But
according to the log, the file m-pstricks.mkii is used. And that  
seems

to be the proximate cause of the error.


The barcode module use pstricks and this requires the pstricks  
module
which works only with mkii because the tex file is first  
converted to

postscript and afterwards to pdf. pstricks a separate package (from
Hebrbert Voß) and not included in the minimals.


it should work with mkiv as well but differently


but there is no pstricks pache in the minimals, maybe i make one  
with the required files but not today


Wolfgang




OK. I thought I had installed the relevant files by hand. But it  
appears to be more complex than I realized. Thanks for explaining it  
to me.


Michael
___
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] m-barcodes error

2010-07-07 Thread Michael Green
I can’t get the example in the m-barcodes module to work. I have no urgent
need to print barcodes; I was just curious. I'm writing in case I found an
easily corrected bug.

The release notes from 2010.05.08 call this module mkiv only. But according
to the log, the file m-pstricks.mkii is used. And that seems to be the
proximate cause of the error.

mjg

-

ConTeXt  ver: 2010.06.23 12:45 MKIV  fmt: 2010.7.6  int: english/english

-

command: context barcode-test.tex

-

file: barcode-test.tex

\usemodule[barcodes]

\starttext

% this is copied straight from m-barcodes.mkiv

\startPSTRICKS
\pspicture(-4mm,-1mm)(38mm,26mm)
 \psbarcode{9781860742712}{includetext guardwhitespace}{ean13}%
 \endpspicture
\stopPSTRICKS

\stoptext

-

log before the error:

systems : begin file barcode-test-pstricks-0001 at line 1
system  : module pstric loaded

(/context/tex/texmf-context/tex/context/base/m-pstricks.tex
(/context/tex/texmf-context/tex/context/base/m-pstricks.mkii
! I can't find file `multido'.
argument \input multido
  \relax \input pstricks \relax \input pst-plot
\rel...

\firstoftwoarguments #1#2-#1

l.47 ...s}{using indirect method; enable write18}}
___
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] basic \cite[]

2010-04-17 Thread Michael Green
Michael Saunders odradek5 at gmail.com writes:

 Taco:
 
  Try
 
 \setuppublications[alternative=num]
 
 Thank you, but using that I get the same result:
 

Mk II gets the desired result; Mk IV does not.

Example:

\usemodule[bib]
\setuppublications[alternative=num,refcommand=num]
\setupbibtex[database=bibl-test]

\starttext

\subject{Text}

Sentence referring to Shue’s article. \cite[Shue:1978lg]

Sentence referring to Sussman’s article. \cite[Sussman:2005oz]

\subject{References}
\placepublications

\stoptext

bibl-test.tex

@article{Sussman:2005oz,
Author = {Sussman, David},
Journal = {Philosophy \ Public Affairs},
Number = {1},
Pages = {1--33},
Title = {What's Wrong with Torture?},
Volume = {33},
Year = {2005}}

@article{Shue:1978lg,
Author = {Shue, Henry},
Journal = {Philosophy \ Public Affairs},
Number = {2},
Pages = {124--143},
Title = {Torture},
Volume = {7},
Year = {1978}}

___
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] Latest beta...

2010-04-13 Thread Michael Green

Mojca Miklavec mojca.miklavec.lists at gmail.com writes:

 On Tue, Apr 6, 2010 at 21:24, Willi Egger wrote:
  I just updated the latest beta in a completely new tree:
 
  I get now the following message:
 
  .../lua60/tex/texmf-osx-intel/bin/context: line 2:  1634 Bus error
  mtxrun --script context $@
 [snip]
 This might as well be a mac-intel-only luatex-related problem
 (something for Taco in any case), but I cannot reproduce it yet.

 Mojca
  
 
___



I hit a similar problem on a ppc mac. So it's probably not an intel- 
only thing.


The .firstsetup script crashes. It worked fine through at least March  
23, for what it's worth.


Here's a transcript

I have a crash log too, if that would help.

sudo ./first-setup.sh
receiving file list ... done
bin/
bin/mtx-update.lua
bin/mtxrun
bin/texlua

wrote 18489 bytes  read 4918220 bytes  229614.37 bytes/sec
total size is 6550101  speedup is 1.33
MTXrun | fileio: variable 'SELFAUTOLOC' set to '/Users/michaelgreen/ 
Applications/context/bin'
MTXrun | fileio: variable 'SELFAUTODIR' set to '/Users/michaelgreen/ 
Applications/context'
MTXrun | fileio: variable 'SELFAUTOPARENT' set to '/Users/ 
michaelgreen/Applications'
MTXrun | fileio: variable 'TEXMFCNF' set to '{$SELFAUTODIR, 
$SELFAUTOPARENT}{,{/share,}/texmf{-

local,.local,}/web2c}'
MTXrun | fileio: no cnf files found (TEXMFCNF may not be set/known)
MTXrun | using script: ./bin/mtx-update.lua

MTXrun | state: loaded
MTXrun | update: start
./first-setup.sh: line 69:  5194 Bus error   mtxrun -- 
verbose --script ./bin/mtx-update.lua --

update --make --force --engine=all --context=beta --texroot=$PWD/tex $@

___
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] subpagenumber starts at 2

2009-12-24 Thread Michael Green

On Dec 23, 2009, at 1:21 PM, Hans Hagen wrote:



On 23-12-2009 19:04, Wolfgang Schuster wrote:

\setupheadertexts[\subpagenumber\ -- \nofsubpages]


\setupsubpagenumber[way=bytext,state=start]

\setupsubpagenumber[way=bytext,state=start,number=1]


fixed in next beta (hopefully)

--  



It's not quite there yet (though it now does what I need it to do --  
thanks!)


Using LuaTeX, Version beta-0.47.0-2009121822
ConTeXt  ver: 2009.12.24 17:55 MKIV  fmt: 2009.12.24  int: english/ 
english


1. If I include number=1, the sequence goes like this:

subpage 1, realpage 1: blank - 3
subpage 2, realpage 2: 1 - 3
subpage 3, realpage 3: 2 - 3
subpage 1, realpage 4: blank - 3
subpage 2, realpage 5: 1 - 3
subpage 3, realpage 6: 2 - 3
subpage 1, realpage 7: blank - 3
subpage 2, realpage 8: 1 - 3
subpage 3, realpage 9: 2 - 3


\setupheadertexts[\subpagenumber\ -- \nofsubpages]

\setupsubpagenumber[way=bytext,state=start,number=1]

\def\MakeThreePages{This is the first of three subpages.\page This is  
the second of three subpages.\page This is the third of three subpages. 
\page \resetsubpagenumber}


\starttext

\dorecurse{3}{\MakeThreePages}

\stoptext

2. If I take number=1 out, it goes like this:

subpage 1, realpage 1: 1 - 4
subpage 2, realpage 2: 2 - 4
subpage 3, realpage 3: 3 - 4
subpage 1, realpage 4: 1 - 4
subpage 2, realpage 5: 2 - 4
subpage 3, realpage 6: 3 - 4
subpage 1, realpage 7: 1 - 4
subpage 2, realpage 8: 2 - 4
subpage 3, realpage 9: 3 - 4

\setupheadertexts[\subpagenumber\ -- \nofsubpages]

\setupsubpagenumber[way=bytext,state=start]

\def\MakeThreePages{This is the first of three subpages.\page This is  
the second of three subpages.\page This is the third of three subpages. 
\page \resetsubpagenumber}


\starttext

\dorecurse{3}{\MakeThreePages}

\stoptext


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

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


[NTG-context] subpagenumber starts at 2

2009-12-23 Thread Michael Green
subpagenumber starts at 2 instead of 1. Perhaps I missed a new way to  
do this.


Thanks!

mjg

This is LuaTeX, Version beta-0.47.0-2009121823

ConTeXt  ver: 2009.12.18 11:12 MKIV  fmt: 2009.12.21  int: english/ 
english



\setupheadertexts[\subpagenumber\ -- \nofsubpages]

\setupsubpagenumber[way=bytext,state=start]

\def\MakeThreePages{This is the first of three subpages.\page This is  
the second of three subpages.\page This is the third of three  
subpages.\page \resetsubpagenumber}


\starttext

\dorecurse{3}{\MakeThreePages}

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

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


[NTG-context] lower case a incompatible with hanging

2009-12-21 Thread Michael Green

On Dec 21, 2009, at 3:00 AM, Lutz Haseloff wrote:


2009/12/19 Taco Hoekwater t...@elvenkind.com


Hi,

This was a bug in luatex: the function that copies the font
information from the base font to the expanded font did not
copy the last glyph at all.


[snip]



Lutz Haseloff wrote:


Hi Michael,

Your file works here without problems with the same ConTeXt and
LuaTeX, Version beta-0.47.0-2009121623.



That's weird, did you use Michaels font?



I don't think so:

My OctavianMTStd.otf:
Version 2.040;PS 002.000;honconv 1.0.51;makeotf.lib 2.0.18671


Greetings Lutz



They're different. Mine is: Version 1.047;PS 001.000;Core  
1.0.38;makeotf.lib1.6.5960


mjg

___
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] bibliography authoryears problem

2009-12-04 Thread Michael Green

On Dec 4, 2009, at 3:00 AM, ntg-context-requ...@ntg.nl wrote:



Message: 4
Date: Fri, 04 Dec 2009 09:23:13 +0100
From: Taco Hoekwater t...@elvenkind.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] bibliography authoryears problem
Message-ID: 4b18c6f1.5090...@elvenkind.com
Content-Type: text/plain; charset=ISO-8859-1


Hi,

Michael Green wrote:

When using refcommand=authoryears and Mk IV the first reference is
formatted incorrectly.

There is the left parenthesis, then a line break, then the rest of  
the

reference followed by the right parenthesis.


Here is the cause: the first \cite in mkiv internally runs
\usepublications[\jobname]. This inputs bib-test.bbl, which
contains a \par, and that is where the new line comes from.

A workaround is to add

  \usepublications[\jobname]

in the document preamble.

It works in mkii because in mkii, that command is executed at
\starttext.

For Hans: perhaps \usemodule[bib] should run the command? I know that
is supposed to be obsolete, but I assume you do not want to use the
odd logic from mkii in mkiv.

Best wishes,
Taco



That solves both the problems I noted. Thanks!

mjg
___
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] bibliography authoryears problem

2009-12-03 Thread Michael Green
I should have mentioned that there's a similar problem with  
refcommand=authoryear (my previous post concerned  
refcommand=authoryears).


Using Mk IV, the first citation is preceded with a new line. Mk II  
behaves appropriately. And all citations other than the first one are  
formatted correctly by Mk IV.


This is quite similar to the problem I reported with  
refcommand=authoryears. In both cases, only the first citation is  
wrong and the error in both cases involves a line break. Perhaps they  
have a related cause. Happy hunting!


mjg

Samples are attached.

This is LuaTeX, Version beta-0.46.0-2009112820
 \write18 enabled.
(bib-test-2.tex

ConTeXt  ver: 2009.12.01 17:09 MKIV  fmt: 2009.12.1  int: english/ 
english




bib-test-2.pdf
Description: Adobe PDF document


bib-test-2.tex
Description: Binary data


test-bib.bib
Description: Binary data
___
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] bibliography authoryears problem

2009-12-02 Thread Michael Green
When using refcommand=authoryears and Mk IV the first reference is  
formatted incorrectly.


There is the left parenthesis, then a line break, then the rest of the  
reference followed by the right parenthesis.


With MkII it comes out correctly. And in MkIV, every reference except  
the first is correct.


This is similar to a problem reported in another thread, but I don't  
see how the resolution proposed there applies here.


http://archive.contextgarden.net/message/20091116.073439.c2549ecb.en.html

It isn't a crucial thing for me. I can use MkII when I need to use  
this citation style. I'm just submitting this as a possible bug report.



This is LuaTeX, Version beta-0.46.0-2009112820
 \write18 enabled.
(bib-test.tex

ConTeXt  ver: 2009.12.01 17:09 MKIV  fmt: 2009.12.1  int: english/ 
english


I'm attaching three files: the source, the bibliography, and the pdf  
output that I get.




bib-test.tex
Description: Binary data


test-bib.bib
Description: Binary data




bib-test.pdf
Description: Adobe PDF document


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

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


[NTG-context] pdfs with boxes instead of letters

2009-10-30 Thread Michael Green

On Oct 30, 2009, Oliver Buerschaper wrote:


 I seem to have spoken too soon. The very next document I prepared
 had the same boxes-rather-than-letters problem.

 That said, I cleared the font caches again and, after restarting,
 the document looked correct. Perhaps this is a coincidence. Or
 perhaps there is something amiss with the way my computers are
 caching fonts. Sigh.

Well, if your engine is pdftex (from an unpatched TeXLive 2008) then
chances are you're running into the nasty (TM) font cache bug:

http://www.tug.org/mactex/fontcache/

Oliver


The symptoms seem right: strange, unpredictable display problems with  
Apple's pdf software but not Adobe's. And it's not just pdftex,  
apparently. They say that luatex is affected too. That's primarily  
what I use. So we have both known symptoms (sort of - they're vague)  
and an allegedly known cause. Perhaps we have a diagnosis.


Here is Dick Koch, A Fix for the Corrupt Font Cache Bug

http://www.tug.org/mactex/fontcache/Font-Cache-Bugfix.pdf

The “corrupt font cache bug” on OS X has been traced by Melissa  
O’Neill to a bug in  pdftex, present in that program since 2004.  
The incorrect code is also used in other  programs, notably dvips,  
luatex, and metapost.  …


The code containing the pdftex bug was used with little change in  
modern versions of  dvips, so fixing the bug in dvips was not  
difficult. However, it wasn’t so easy to find the  corresponding  
code in luatex and metapost. Instead of waiting for decisive fixes  
in these  programs, we decided to just release the fixed pdftex and  
dvips. This should fix the bug  for most users. Notice that pdftex  
is used when typesetting in “pdftex” mode and dvips  is used when  
typesetting in “TeX and DVI” mode. XeTeX does not have the bug.


And in another document, Looking over the Debugger’s Shoulders ,  
Koch summarizes what they discovered this way:


http://www.tug.org/mactex/fontcache/Debugging.pdf

Two bugs contributed to the problem. First, pdftex, dvips, luatex,  
and metapost were  not correctly subsetting certain fonts. And  
second, a large number of fonts contained  subroutines which did not  
conclude with a RETURN command. Many of these were  created with the  
utility mmpfb, which has been patched.


Question: is this still a problem for luatex 0.44? (Please say no).

If not, perhaps I should clean my caches and use only MkII/XeTeX.

Even then, I gather that old documents created with luatex will still  
be little time bombs (see Appendix, below). I guess I have to delete  
all pdfs made by luatex and regenerate them as needed. That's a lot of  
documents.


Nasty is right. Oy.

mjg

Appendix: Koch's explanation of why the font cache might become  
corrupt seemingly for no reason at all.


http://www.tug.org/mactex/fontcache/Font-Cache-Bugfix.pdf

When GUI programs display pdf files,  they call Apple’s internal  
pdf routines. In turn, these routines call Apple’s font routines  
to  construct bitmaps for the outline fonts. These Apple routines  
store the bitmaps in a font  cache to speed up future display. For  
reasons unknown until recently, this font cache can  become corrupt;  
this is “triggered” by displaying a defective pdf file. After  
that trigger,  display problems persist for all files. To fix the  
problem, the font cache needs to be rebuilt,  as happens when the  
machine is rebooted. Adobe Acrobat does not use Apple’s pdf  
display  routines, so it is immune to the bug. ...


Once you install the repaired pdftex and dvips binaries, pdf files  
created by these programs  will not contain damaged fonts and thus  
won’t trigger the bug. But unfortunately, your old pdf files may  
still be damaged. In addition, users on other platforms won’t have  
the  repaired binaries for some time, so pdf files sent by  
colleagues may still be damaged and  trigger the bug. That is why  
you may still experience the bug from time to time until the  TeX  
world catches up.


It isn’t even necessary to display an old damaged pdf file to  
trigger the bug, because Apple’s  QuickLook software and the  
software in Finder which gives a miniature version of the first   
page in the file browser can trigger it. If you keep experiencing  
the bug after applying the  fix, you may need to retypeset files  
which you often open.


___
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] pdfs with boxes instead of letters

2009-10-30 Thread Michael Green

On Oct 30, 2009, Oliver Buerschaper wrote:


Well, if your engine is pdftex (from an unpatched TeXLive 2008) then
chances are you're running into the nasty (TM) font cache bug:

http://www.tug.org/mactex/fontcache/

Oliver


One other question. which pdftex shows that it's in the minimal  
distribution


They released a patch for this problem in April 2009. Specifically,  
they patched the binary files dvips and pdftex


Have these patches been applied to the versions of dvips and pdftex in  
the minimals? If not, is there any reason why I shouldn't substitute  
these patched versions for the ones in the minimals?


Thanks.

mjg

Source for the patch:
http://www.tug.org/mactex/fontcache/
http://www.tug.org/mactex/fontcache/patchedbinaries.tar.gz
___
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] ntg-context Digest, Vol 64, Issue 107

2009-10-30 Thread Michael Green

Mojca Miklavec wrote:

They released a patch for this problem in April 2009. Specifically,  
they

patched the binary files dvips and pdftex

Have these patches been applied to the versions of dvips and pdftex  
in the

minimals?


Not for dvips for a simple reason. It's not in minimals. The sources
for minimals contain the latest stable pdftex branch (that's returning
errors during compilation at the moment).


That's curious. There's a file called dvips in my minimals-context/tex/ 
temf-osx-intel/bin/


It seems to be dated 9/17/07

The version of pdftex is newer than the patched one: July 22 2009 vs.  
March 31 2009. I'm going to assume it's OK.


Taco Hoekwater wrote:



Question: is this still a problem for luatex 0.44? (Please say no).


I applied a patch tagged 'Melissa O'Neill' on March 22 (included as
of luatex-0.36.0), which I think is the one this is about.

Best wishes,
Taco



That looks right. Thank you!___
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] pdfs with boxes instead of letters

2009-10-29 Thread Michael Green

On Oct 29, 2009, at 11:56 PM, Mojca Miklavec wrote:



Message: 3
Date: Thu, 29 Oct 2009 11:56:05 +0100
From: Mojca Miklavec mojca.miklavec.li...@gmail.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] pdfs with boxes instead of letters
Message-ID:
6faad9f00910290356j522794fw1326911d8a70b...@mail.gmail.com
Content-Type: text/plain; charset=UTF-8

The PDFs look OK here with both Preview and Skim. I would try to
delete the font cache on your computer and restart it.



That seems to have solved it. I see letters again! My quality of life  
just went up measurably. Thank you very much!


For the record, I used the simple method Wolfgang pointed to:  
restarting in Safe Mode then restarting again in normal mode.


It's extremely easy with no software or mucking around in unusual  
directories.


Specifically, I followed these instructions:

http://www.ascendercorp.com/support/
___
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] pdfs with boxes instead of letters

2009-10-29 Thread Michael Green

Michael Green wrote:


On Oct 29, 2009, at 11:56 PM, Mojca Miklavec wrote:



Message: 3
Date: Thu, 29 Oct 2009 11:56:05 +0100
From: Mojca Miklavec mojca.miklavec.li...@gmail.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] pdfs with boxes instead of letters
Message-ID:
6faad9f00910290356j522794fw1326911d8a70b...@mail.gmail.com
Content-Type: text/plain; charset=UTF-8

The PDFs look OK here with both Preview and Skim. I would try to
delete the font cache on your computer and restart it.



That seems to have solved it. I see letters again! My quality of  
life just went up measurably. Thank you very much!


For the record, I used the simple method Wolfgang pointed to:  
restarting in Safe Mode then restarting again in normal mode.


It's extremely easy with no software or mucking around in unusual  
directories.


Specifically, I followed these instructions:

http://www.ascendercorp.com/support/


I seem to have spoken too soon. The very next document I prepared had  
the same boxes-rather-than-letters problem.


That said, I cleared the font caches again and, after restarting, the  
document looked correct. Perhaps this is a coincidence. Or perhaps  
there is something amiss with the way my computers are caching fonts.  
Sigh.

___
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] pdfs with boxes instead of letters

2009-10-28 Thread Michael Green
When I open the pdfs that I make with ConTeXt (II or IV), I often see  
x'd out boxes instead of letters. I'm writing in the hopes that  
someone has some ideas about what I might do.


Here is some more specific information about what happens

1. I have posted a jpeg of a representative page: 
http://carneades.pomona.edu/test/badpdf.jpg

2. The problem comes up when the pdf viewer is either Apple's Preview  
or Skim (which, as I understand it, uses the same basic code). This  
happens on machines with both OSX 10.4 PPC and 10.5 Intel.


3. It happens with a wide variety of fonts.

4. When opened with one of Adobe's pdf readers (Adobe Reader, Acrobat  
Pro), the file always looks fine.


5. Opening and closing the file can make the problem parts change. So,  
for instance, opening and closing the file can make it so that roman  
letters show while italic letters are crossed boxes or vice versa.  
Usually, if I do this enough, I can get to a normal view with all  
letters looking like letters.


6. It started happening in the spring. (I've been hoping it would go  
away in the normal course of ConTeXt changes.)


One obvious answer is just to use Adobe's software. That won't work  
for me because those programs cannot successfully send a file to  
either of the printers I have available here. (They also don't  
automatically update when a file changes, which is a nuisance.)


So I have a dilemma. If I want to print, I have to use the Apple and  
Apple-derived software. If I want to see letters, I have to use the  
Adobe software. But I cannot do both.


I doubt this is a ConTeXt specific problem, but hope there might be a  
solution through ConTeXt. More generally, I would be terrifically  
grateful for any ideas about what to do. Thank you for your time.


Michael
___
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] NTG-context] [Dev-luatex] Luatex 0.44.0 announcement

2009-10-28 Thread Michael Green

On Oct 28, 2009, at 3:04 PM, Mojca Miklavec wrote:



Message: 7
Date: Wed, 28 Oct 2009 22:40:54 +0100
From: Mojca Miklavec mojca.miklavec.li...@gmail.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] [Dev-luatex] Luatex 0.44.0 announcement
Message-ID:
6faad9f00910281440w4077606bk71a0de0d8fc23...@mail.gmail.com
Content-Type: text/plain; charset=UTF-8

On Tue, Oct 27, 2009 at 12:06, Taco Hoekwater wrote:

Hi,

I have just uploaded the archives for a new luatex release, 0.44.0.


Is there any Mac Tiger volunteer willing to test if binaries compiled
on Snow Leopard work on Tiger? (No binaries are in minimals yet; I
need some volunteer to test first.)

(In case there is no volunteer, we'll target the binaries for  
Leopard.)


Mojca



I'm willing. I even think I'm able, assuming the testing isn't very  
extensive.


mjg
___
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] \externalfigure stopped working

2009-10-17 Thread Michael Green

On Oct 17, 2009, at 8:40 AM, Hans Hagen wrote:


Michael Green wrote:

MTXrun | current version: 2009.10.16 16:13

I get the gray dummy box.

\starttext

\externalfigure[cow.pdf]

\stoptext


actually there has been a fix

by default graphics are *not* looked up in the tex tree unless you
specify the 'default' location:

\setupexternalfigures[location={local,global,default}]

\starttext

\externalfigure[cow.pdf]

\stoptext

works ok


Great! Thanks!___
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] \externalfigure stopped working

2009-10-16 Thread Michael Green

MTXrun | current version: 2009.10.16 16:13

I get the gray dummy box.

\starttext

\externalfigure[cow.pdf]

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

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


Re: [NTG-context] letter module: different first page for multiple letters in one file

2009-10-10 Thread Michael Green

On Oct 10, 2009, at 3:00 AM, Wolfgang Schuster wrote:


Am 10.10.2009 um 01:48 schrieb Michael Green:


I have one file containing several letters that I process using
Wolfgang's letter module.

I have a special background for the first page of a letter. I define
and set three layers: PCLogo, PCDept, and PCAddress. Here is a
representative example:
\definelayer
 [PCLogo]
 [width=\paperwidth,
  height=\paperheight,
  preset=lefttop,
  y=20pt,
  state=start]

Then I make these layers backgrounds like so:

\setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}]

The result I *get* is that the first letter in the file gets the
background on its first page as normal. But the subsequent letters
do not. Their first pages are plain.

The result I *want* is for each letter to have the background on its
first page, like the first letter in the file gets.

How can I achieve that?


Are your graphics for stationary or logos and headers etc.

Wolfgang




I'm trying to emulate my college's stationery. The layers I made  
include one graphic and two boxes of text.


We use the graphic and two text boxes on the first page of a letter.  
The other pages use plain sheets of paper.


You also showed me how to get the effect I want in a separate  
message. This solution worked perfectly. Thank you very much!


The solution:


\usemodule[letter]

\definelayer[PC][width=\paperwidth,height=\paperheight]

\startsetups PC

\setlayer[PC][y=20pt]{...}

\setlayer[PC][x=..,y=..]{...}

\stopsetups

\setupletterstyle[lettermain][setups=PC,background=PC]

... % more settings

\starttext

\startletter
...
\stopletter

... % more letters

\stoptext



As I understand it,  \setupletterstyle[lettermain][setups=PC,…] means  
that those setups are repeated with every letter. Hence, the desired  
effect.


Thanks again!

Michael___
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] letter module: different first page for multiple letters in one file

2009-10-09 Thread Michael Green
I have one file containing several letters that I process using  
Wolfgang's letter module.


I have a special background for the first page of a letter. I define  
and set three layers: PCLogo, PCDept, and PCAddress. Here is a  
representative example:

\definelayer
  [PCLogo]
  [width=\paperwidth,
   height=\paperheight,
   preset=lefttop,
   y=20pt,
   state=start]

Then I make these layers backgrounds like so:

\setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}]

The result I *get* is that the first letter in the file gets the  
background on its first page as normal. But the subsequent letters do  
not. Their first pages are plain.


The result I *want* is for each letter to have the background on its  
first page, like the first letter in the file gets.


How can I achieve that?

Thank you!
Michael


___
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] should \getmarking[title] work?

2009-06-25 Thread Michael Green
I expected \getmarking[title] to give me the contents of \title. It  
used to work (as of late spring). Perhaps something has changed.


MTXrun | current version: 2009.06.14 21:01
This is LuaTeX, Version beta-0.40.5-2009061123 (Web2C 2009) luatex.web  
= v2471



Test file:

\starttext
\title{This is the title}

The title should be here: \getmarking[title]. But it's just a blank  
space.


\stoptext


-
This message has been scanned by Postini anti-virus software.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] should footnote columns work?

2009-06-25 Thread Michael Green
Footnotes are not put into columns in the test file below. In longer  
files, the line separating footnotes from the text overlaps the last  
line or two of the text.


MTXrun | current version: 2009.06.14 21:01
This is LuaTeX, Version beta-0.40.5-2009061123 (Web2C 2009) luatex.web  
= v2471


test file:

\setupfootnotes[n=2,columndistance=3em]
\starttext

\input bryson\footnote{Bryson}

\input davis\footnote{Davis}


\stoptext


-
This message has been scanned by Postini anti-virus software.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] should \getmarking[title] work?

2009-06-25 Thread Michael Green

On Jun 25, 2009, at 3:00 AM, Wolfgang Schuster wrote:


Am 25.06.2009 um 00:51 schrieb Michael Green:


I expected \getmarking[title] to give me the contents of \title. It
used to work (as of late spring). Perhaps something has changed.

MTXrun | current version: 2009.06.14 21:01
This is LuaTeX, Version beta-0.40.5-2009061123 (Web2C 2009)
luatex.web = v2471

Test file:

\starttext
\title{This is the title}

The title should be here: \getmarking[title]. But it's just a blank
space.

\stoptext


\starttext

\title[sec:title]{This is the title}

The title should be here: \ref[s][sec:title].

\stoptext

Wolfgang



Thanks! That worked using Mk II but not with Mk IV. Is that to be  
expected?


Michael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] horizontal space in \inframed and \hskip

2009-01-14 Thread Michael Green
I am having some trouble with horizontal spacing. I'm trying to set  
one width for \inframed and \hskip but the two are coming out different.


Here is an example. It is a syllabus for a college course. I would  
like the entries for topics (e.g. “Glaucon’s challenge”), descriptions  
(e.g. “Glaucon poses …”), and readings (e.g. “{\it Republic} …”) to  
start at the same horizontal point on the page so that their left  
edges will be aligned.


I use the longest date on which class will be held to define a  
horizontal length (longestdate). I use that length to set the width of  
a frame for text that precedes ClassTopic and an hskip that precedes  
both ClassDesc and Reading. I expected the horizontal space to be  
equal. But ClassTopic is a couple points to the right of the other two.


Thanks!

%% Start example file

%% Horizontal length of longest date -- taken from 
http://archive.contextgarden.net/message/20070314.120612.adab0a8b.en.html

\def\setwidthof#1\to#2%
{\bgroup
\setbox\scratchbox\hbox{#1}%
\expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}}}

\setwidthof{{\it Wednesday, January 28.\hskip 1em}}\to\longestdate

%% Definitions

\def\ClassDate#1{\item \inframed[width= 
\longestdate,frame=off,align=right]{\it #1. }}%

\def\ClassTopic#1{{\WORD #1}}%
\def\ClassDesc#1{\hskip \longestdate #1}%
\def\Reading{\hskip \longestdate {\sc reading} }%


\starttext
\title{Syllabus test}

\startitemize[n]


\ClassDate{Monday, January 26} \ClassTopic{glaucon’s challenge}

	\ClassDesc{Glaucon poses a challenge for justice. We’ll talk about  
the nature of his test. What must Socrates prove about justice in  
order to satisfy the challenge? Do we really have to meet such a  
demanding test?}


\Reading{{\it Republic}, Bk. II, 357a–369b, pp. 38–44.}

\ClassDate{Wednesday, January 28} \ClassTopic{origins of the state}

	\ClassDesc{What problem does the state solve? That is, why would  
people who didn’t have a state want one? What did Plato believe was  
the primary cause of conflict in human affairs?}


\Reading{{\it Republic}, Bk. II, 368e–376e, pp. 43–52.}


\stopitemize


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

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


Re: [NTG-context] horizontal space in \inframed and \hskip

2009-01-14 Thread Michael Green

On Thu, Jan 15, 2009 at 1:04 AM, Luigi Scarso wrote:


There is a space in between \ClassDate{..} and \ClassTopic{..}:
\ClassDate{Monday, January 26} \ClassTopic{glaucon's challenge}

Is my pdf right ?

-- luigi



Oh thank you, that's exactly what I wanted. It's hard to believe that  
didn't occur to me. A space takes space. Imagine that!


mjg
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module: no linebreak in signature

2008-11-19 Thread Michael Green
Wolfgang Schuster wrote:

 You can write the setting for the paper size in a new file with
 the namer user.nls and put it somewhere in your TeX directory
 where ConTeXt could find it. It's similiar to cont-usr.tex because
 my module loads for every letter you write.


Ah, I see. That's an interesting feature. Thanks!

Michael

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] letter module: no linebreak in signature

2008-11-18 Thread Michael Green
Using Wolfgang Schuster's wonderful letter module, I enter my  
signature with my name and title like so:

\setupletter[signature={Michael Green \\ Assistant Professor of  
Philosophy}]

This used to produce a line break between Green and Assistant so  
the output would look like this:

Michael Green
Assistant Professor of Philosophy

But it no longer does. Now it comes out like this:

Michael Green  Assistant Professor of Philosophy

Is there a preferred way to accomplish the effect I want?

Thanks!

Michael

--  Example  

ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/ 
english

\setuppapersize[letter][letter]

\usemodule[letter][style=semiblock]
\setupletter[%
  closing={Sincerely yours,},
  signature={Michael Green \\ Assistant Professor of Philosophy},
  date=\currentdate
]

\setupletter[%
  opening={To the Addressee,},
]

\starttext

\startletter

Here is the content of the letter.
\stopletter
\stoptext

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

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


Re: [NTG-context] letter module: no linebreak in signature

2008-11-18 Thread Michael Green

On Nov 18, 2008, at 10:46 AM, Wolfgang Schuster wrote:


 Am 18.11.2008 um 17:47 schrieb Michael Green:

 Using Wolfgang Schuster's wonderful letter module, I enter my
 signature with my name and title like so:

 \setupletter[signature={Michael Green \\ Assistant Professor of
 Philosophy}]

 This used to produce a line break between Green and Assistant so
 the output would look like this:

 Michael Green
 Assistant Professor of Philosophy

 But it no longer does. Now it comes out like this:

 Michael Green  Assistant Professor of Philosophy

 Is there a preferred way to accomplish the effect I want?

 I uploaded a new version, if you have no time update for
 the moment use \crlf as replacement.


Wow, that was incredibly fast. Thank you very much! The new version  
works as I expected.


 --  Example  

 ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/
 english

 \setuppapersize[letter][letter]

 Do you need lettersize for all your letters?


Yes, I have to use US lettersize paper (8.5 inches x 11 inches) for  
the physical paper on which my letters are printed. For long letters,  
I use a narrower textarea, but I don't think that's what you're  
asking me.

Thanks again.

Michael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns in footnotes broken

2008-11-02 Thread Michael Green
The manual describes a way to set footnotes in columns:  
\setupfootnotes[n=number] (Context: the manual (Nov. 12, 2001), pp.  
101-2)

That has caused errors for me in the 2008-10-23 or 2008-10-31 releases.

mjg

TEST DOCUMENT:

\setupfootnotes[n=2]

\starttext

First sentence here.\footnote{Note one.} Second sentence here. 
\footnote{Note two.} Third sentence here.\footnote{Note three.}

\stoptext

ERROR MESSAGE

ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.11.1  int: english/ 
english

[snip]

fonts  : using map file: original-public-lm
{/Users/michaelgreen/Applications/context/tex/texmf-context/fonts/map/ 
pdftex/context/original-public-lm.map}
! Missing } inserted.
inserted text
 }
to be read again
\unvbox
\doplacenoteinserts ...ing \unvcopy \else \unvbox
   \fi  
\currentnoteins \fi \s...
\next3 ...oprocessnotes {\doplacenoteinserts }{#1}
   \doprocesscommaitem
argument \relax footnote,
endnote,linenote
\doprocesscommalist ...aitem \gobbleoneargument #1
   ,]\relax \global  
\advance ...
...
l.7 \stoptext

?


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

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


Re: [NTG-context] bib module error with context 2008.10.23

2008-10-27 Thread Michael Green

Taco Hoekwater wrote:

Michael Green wrote:


I noticed that the modules.contextgarden.net/bib page says you're
editing the apa style. Here are two corrections I made. Perhaps they
will help.


I just uploaded a new version to the garden, with your patches
for bibl-apa.tex. Please give it a try:

  http://modules.contextgarden.net/bib

Best wishes,
Taco


Thanks! It works fine.

I found a different problem with footnotes that I'm pretty sure is  
unrelated. I'll post a separate message.


mjg___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] footnote n=0 error

2008-10-27 Thread Michael Green
\setupfootnotes[n=0,columndistance=3em,] seems to cause a problem with  
context ver: 2008.10.23

When it's commented out, everything is fine. When it is left in, I get  
the error below.

Thanks!

mjg

ConTeXt  ver: 2008.10.23 17:32 MKIV  fmt: 2008.10.27  int: english/ 
english

[snip]

fonts  : resetting map file list
{/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf-context/ 
fonts/map/pdftex/context/original-empty.map}
fonts  : using map file: original-base
{/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf-context/ 
fonts/map/pdftex/context/original-base.map}
fonts  : using map file: lm-math
{/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf/fonts/map/ 
dvips/lm/lm-math.map}
fonts  : using map file: lm-rm
{/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf/fonts/map/ 
dvips/lm/lm-rm.map}
fonts  : using map file: original-ams-base
{/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf-context/ 
fonts/map/pdftex/context/original-ams-base.map}
fonts  : using map file: original-ams-euler
{/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf-context/ 
fonts/map/pdftex/context/original-ams-euler.map}
fonts  : using map file: original-public-lm
{/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf-context/ 
fonts/map/pdftex/context/original-public-lm.map} [1.1]
! Missing } inserted.
inserted text
 }
to be read again
\unvbox
\doplacenoteinserts ...ing \unvcopy \else \unvbox
   \fi \currentnoteins  
\or \i...
\next3 ...oprocessnotes {\doplacenoteinserts }{#1}
   \doprocesscommaitem
argument \relax footnote,
endnote,linenote
\doprocesscommalist ...aitem \gobbleoneargument #1
   ,]\relax \global  
\advance ...
...
l.120 \stoptext

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

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


Re: [NTG-context] bib module error with context 2008.10.23

2008-10-26 Thread Michael Green
Taco Hoekwater wrote:
 Hans Hagen wrote:

 Michael Green wrote:

 After updating the minimals for OSX-intel, I get an error when using
 the bib module. Here's the relevant bit of the log.


 you need a new bib module


 Not just that, you need a bib module that doesn't exist yet.
 I will do a new upload to modules.contextgarden on monday.

 Best wishes,
 Taco


Great!

I noticed that the modules.contextgarden.net/bib page says you're  
editing the apa style. Here are two corrections I made. Perhaps they  
will help.

1. line 286: changed  \insertpublisher{. }{.}{.} to  \insertpublisher 
{ }{.}{.}

Why: prevents double periods after the title. It's what you did for  
several other publication types in the version you sent me on August 10.

2. line 384: commented out insertpublisher line

Why: this is the entry for unpublished documents so I wasn't sure why  
it was there. More importantly, if it is left uncommented, there are  
two periods after the title.

Thanks!

mjg
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bib module error with context 2008.10.23

2008-10-24 Thread Michael Green
After updating the minimals for OSX-intel, I get an error when using  
the bib module. Here's the relevant bit of the log.

Thanks!

p.s. this isn't urgent for me. I'm just rolling back to the previous,  
working installation.

ConTeXt  ver: 2008.10.23 17:32 MKIV  fmt: 2008.10.24  int: english/ 
english

[snip]

system : module bib loaded
(/Volumes/Data/Users/mjg14747/Applications/context/tex/texmf-context/ 
tex/context/bib/t-bib.tex
! Undefined control sequence.
argument \v!author

\p!compareprocessaction ...]-\edef \!!stringb {#1
   }\ifx \!!stringb \s! 
defaul...
\next2 #1,-\p!doprocessaction {#1}
\doprocesscommaitem
argument ...v!author =\def \bibstyle {cont-au},
\v!title =\def  
\bibstyle...
\processnextcommalist ...dodoprocesscommaitem #4#5
   ,]\relax \global  
\advance ...
\dosetupbibtex ...nown =\def \bibstyle {cont-no}]
   \ifx \@@pbdatabase  
\empty ...
l.314 \dosetupbibtex[bibtex=bibtex]

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Installing ConTeXt Minimals on a Mac ... and using bibtex

2008-09-02 Thread Michael Green
I have the minimals installed in ~/Applications/context/

Context works great. However, I'm having trouble with bibtex.

[1] I export the following variables before using context.

. ~/Applications/context/tex/setuptex ~/Applications/context/tex
export TEXMFHOME='$HOME/Library/texmf'
export TEXMF='{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!! 
$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}';

(I added export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx-intel/ 
bin:$PATH but that didn't seem to make a difference in a couple of  
quick trials)

[2] The problem is that the minimal's bibtex can't find the bib file  
that I have stored in ~/Library/texmf/bibtex/bib/

It reports: I couldn't open database file bib-name.bib and I found  
no database files---while reading file file-name.aux

[3] which bibtex yields the path to the bibtex installed with the  
minimals:

/path-to-my-user-account/Applications/context/tex/texmf-osx-intel/bin/ 
bibtex

[4] When I open a new shell session, which bibtex points to /usr/ 
texbin/bibtex. In this new shell, bibtex finds the bib file.

It's a small thing, but if there's some other setting to make bibtex  
work in the same shell session that context does, that would be nice.

Thanks!

Michael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac ... and using bibtex

2008-09-02 Thread Michael Green
On Tue, 2 Sep 2008, Aditya Mahajan wrote:

 On Tue, 2 Sep 2008, Michael Green wrote:

 I have the minimals installed in ~/Applications/context/

 Context works great. However, I'm having trouble with bibtex.

 [1] I export the following variables before using context.

 . ~/Applications/context/tex/setuptex ~/Applications/context/tex
 export TEXMFHOME='$HOME/Library/texmf'
 export TEXMF='{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!
 $TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}';

 (I added export PATH=/Applications/ConTeXtMinimals/tex/texmf-osx- 
 intel/
 bin:$PATH but that didn't seem to make a difference in a couple of
 quick trials)

 [2] The problem is that the minimal's bibtex can't find the bib file
 that I have stored in ~/Library/texmf/bibtex/bib/

 It reports: I couldn't open database file bib-name.bib and I found
 no database files---while reading file file-name.aux

 You need to add ~/Library/texmf/bibtex/bib to the variable BIBINPUTS,
 either in texmf.cnf or in your .bashrc/calling script.

Perfect. Thank you!

Michael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-08-31 Thread Michael Green
On Aug 30, 2008, Alan Bowen wrote:

 What follows are some queries that I will be happy to write up for the
 wiki. The aim (hope?) is to develop a set of instructions for
 installing the minimals on a Mac that a Mac user without any real
 knowledge of unix (such as myself) can follow easily. (There are a
 number of people scattered around the world who help me in producing
 various publications; and since they too are not unix savvy, I need
 such instructions if we are to keep our installations functioning and
 up to date.)

 Once the ConTeXt minimals are installed in the Applications folder and
 the user can run
 \starttext
 Hello world!
 \stoptext
 which is where the wiki (Installationsection 1.2) currently leaves
 off, there still remain a few tasks.

 Specifically,

 (a) getting this ConTeXt installation to recognize a personal texmf
 directory

 (b) running the various binaries (e.g., texmfstart, ctxtools) in /
 Applications/ConTeXtMinimals from Terminal

 (c) establishing synchronization between  PDF output and its ConTeXt
 source. Currently, it does not seem to work (with TeXShop at least)
   Note, in the latest TeXShop there is
 Added support for SyncTeX. SyncTeX is new synchronization technology
 by Jerome Laurens which is included in TeX Live 2008 (but not earlier
 TeX distributions). The technology is built directly into pdfTeX and
 XeTeX. In modern TeX distributions, most typesetting actually calls
 pdfetex (even if using latex to output a dvi file), and thus the
 technology is available for such typesetting. To use the technology,
 add the flag --synctex=1

 Any advice on how to do (a), (b), and (c) will be much appreciated.

 Alan



I installed ConTeXt Minimals in my home directory's Applications  
folder (not the applications folder for the system as a whole). I'm  
reluctant to write in because my understanding of what I'm doing is  
shallow and I haven't used my solution beyond a few simple tests.

With that said, adding the following three lines to .bash_profile  
seems to work for me.

source ~/Applications/context/tex/setuptex ~/Applications/context/tex
TEXMFHOME=$HOME/Library/texmf
TEXMF={$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!! 
$TEXMFCONTEXT,!!$TEXMFEXTRA,!!$TEXMFMAIN}

Here is how I understand what I did.

(A) I think that the second and third lines (TEXMFHOME ... and  
TEXMF ...) handle issue (a).

I copied them from a message I read on the developer list.

http://archive.contextgarden.net/message/ 
20080607.102038.6212fc3c.en.html

I should add that the author, Oliver Buerschaper wrote to complain  
that additions to the personal texmf tree were not automatically  
recognized. He had to run luatools --generate again after changing  
something. I have no idea if this has been fixed since June, when he  
wrote his message. I assume it has, but haven't tested it.

(B) I think that the first line (source ...) handles issue (b). It  
tells the shell to look for TeX binaries in ~/Applications/context/tex.

This is the second instruction from the Linux/Mac/BSD section of the  
wiki's installation page, modified for my particular case.

http://wiki.contextgarden.net/ConTeXt_Minimals#Linux.2FMac.2FFreeBSD

Michael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Installing ConTeXt Minimals on a Mac

2008-08-31 Thread Michael Green

Alan Bowen wrote:

Thanks, Michael; this is very helpful. I will prepare a .bash_profile
file and try it out. Where did you put your .bash_profile file?

Alan


.bash_profile should be saved as a text file at the top level of your  
user account. That is, it should go right alongside the directories  
that are standardly installed, like Documents, Library, Movies, Music,  
Pictures, Public, and Sites.


Note 1: the dot in front means it won't be visible in the Finder,  
absent further fiddling and trickery.


Note 2: if you're using TeXShop, I think that these sorts of  
instructions go in engine files. If you look at the mac newbie  
installation instructions, you'll see that the bit about source ...  
is put into an engine file. I suspect, though I don't know, that the  
TEXMFHOME and TEXMF lines would be incorporated in a similar way.


This may be an easier route to trying this sort of thing out than  
using .bash_profile. It may be *much* easier if you're supporting  
other people. Again, I don't know.


By the way, Oliver B's problem appears to be resolved. Changes in the  
personal texmf tree are picked up now, without further intervention by  
the user.


Good luck!

Michael___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Michael Green
I would like to have a list of references sorted alphabetically by  
author surnames.

My environment file has \setupbibtex[sort=author] and  
\setuppublications[sorttype=bbl]

As I understand it, the \setupbibtex instruction is supposed to  
influence the .aux file. Specifically, the .aux file is supposed to  
include this line: \bibstyle{cont-au}. Then, bibtex will read the aux  
file and produce a .bbl file that is sorted alphabetically. Then  
ConTeXt's bib module will read the .bbl file and follow the sorting  
it finds in that file.

However, after each ConTeXt run this line in the .aux file is set as   
\bibstyle{cont-no}. This happens in both Mk IV and Mk II, ConTeXt   
ver: 2008.08.05 18:47

I can change the relevant line in the aux file by hand, from \bibstyle 
{cont-no} to \bibstyle{cont-au}. This gives me the desired result  
when the file was processed by ConTeXt. The reference list is sorted  
alphabetically.

In fact, subsequent ConTeXt runs using Mk IV (but not Mk II) produce  
an alphabetically sorted reference list, despite the changed line in  
the .aux file, provided bibtex is not run in the meantime. (Mk II  
runs it automatically but Mk IV doesn't ... I think)

But this is not a fully stable situation. Suppose the bib file  
changes. Then I would run bibtex again. And then the alphabetical  
sorting is undone. Or, it was when I tested it.

I don't know if this is a bug, a misunderstanding on my part, or a  
feature to be added later. If my memory is correct, this is not the  
way that Mk II used to behave. But in any event, It would be great to  
know of a more automatic way of handling this if one is available.

Thank you!

Michael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Michael Green

Taco Hoekwater wrote:

Michael Green wrote:
 I would like to have a list of references sorted alphabetically by
 author surnames.

 My environment file has \setupbibtex[sort=author] and
 \setuppublications[sorttype=bbl]

You probably have two \setupbibtex commands then, and that is
currently not allowed.

The \setupbibtex command with the database= line wins, and if that
one doesn't have a sort=, the default cont-no.bst will be used.

Best wishes,
Taco



That is exactly right: I did have two \setupbibtex commands. Thanks!

mjg___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \setupbibtex[sort=author]

2008-08-14 Thread Michael Green
Taco Hoekwater wrote:
 Michael Green wrote:

 That is exactly right: I did have two \setupbibtex commands. Thanks!


 it is good to know that my glass orb is still working :-)


It WAS a little spooky.

mjg
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Two bibliography problems

2008-08-11 Thread Michael Green
Taco Hoekwater wrote
 Michael Green wrote:


 The first problem, with the two periods after a book title, has been
 with me since at least last year. I can reproduce it with the  
 following:

 [A] ConTeXt version.

 ConTeXt  ver: 2008.08.05 18:47 MKIV  fmt: 2008.8.6  int: english/ 
 english


 Ah. This is using an experimental version of the bib module. I  
 uploaded
 a new version of the module for testing two months ago, after reports
 that the original bibl-apa was not quite following the apa guidelines.
 There has been a lack of feedback up until now, so be careful,
 there may well be more problems.

 Meanwhile, you could try the attached bibl-apa.tex instead.


That solves my problem. Thanks!

mjg
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Two bibliography problems

2008-08-09 Thread Michael Green

Taco Hoekwater wrote:

Michael Green wrote:

[snip]
(1) I get two periods after a book title when using
\setuppublications[alternative=apa].

[snip]

This happens with all books. On looking at the source, I'm afraid I
can't track down where it's coming from or how to fix it.

(2) Is it possible to use smart quotes in citations? For instance,  
for

this book, authored by O'Donovan, I can enter the appropriately curly
character between O and D in my bibtex file. But it comes out  
straight

in the final document.


Can you tell what version of context you are using and post a short
but complete example of your input? Neither problem sounds familiar,
so I have to look at your actual code to see that is going on.

Best wishes,
Taco




I can't reproduce the second problem, with the straight/smart quotes.  
Let's ignore it.


The first problem, with the two periods after a book title, has been  
with me since at least last year. I can reproduce it with the following:


[A] ConTeXt version.

ConTeXt  ver: 2008.08.05 18:47 MKIV  fmt: 2008.8.6  int: english/english

This is based TeXLive 2007, originally installed with the MacTeX  
installer and updated with cont-tmf,zip from pragma and the ppc- 
darwin binaries from http://minimals.contextgarden.net/pragma/osx-ppc/ 
texmf-osx-ppc/bin/.


My understanding of TeX installations is not sophisticated. Perhaps I  
goofed. But everything seems to work.


[B] File

\usemodule[bib]
\setuppublications[alternative=apa,refcommand=authoryear]

\setuppublicationlist[samplesize={Kav86},totalnumber=1]

\startpublication[k=Kavka:1986qe,t=book,
a={{Kavka}},y=1986,
n=2,s=Kav86]
\author[]{Gregory}[G.]{}{Kavka}
\pubyear{1986}
\title{Hobbesian Moral and Political Theory}
\city{Princeton}
\pubname{Princeton University Press}
\stoppublication

\starttext

Here is a reference to the Kavka book: \cite[Kavka:1986qe]

\placepublications

\stoptext

The output I get is:

Here is a reference to the Kavka book: Kavka (1986)
Kavka, G. (1986). Hobbesian Moral and Political Theory.. Princeton:  
Princeton

University Press.

Thanks for your help.

Michael___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Two bibliography problems

2008-08-08 Thread Michael Green

This sort of bibliography entry gives me two kinds of trouble.

@book{ODonovan:1999uv,
Address = {Grand Rapids, Michigan},
Author = {O'Donovan, Joan Lockwood and O'Donovan, Oliver},
Publisher = {William B. Eerdmans},
	Title = {From Irenaeus to Grotius: a sourcebook in Christian  
political thought, 100-1625},

Year = {1999}}

(1) I get two periods after a book title when using \setuppublications 
[alternative=apa]. For this particular entry, here is what I get.


O'Donovan, J. L. and O'Donovan, O. (1999). From Irenaeus to Grotius:  
a sourcebook in Christian political thought, 100-1625.. Grand Rapids,  
Michigan: William B. Eerdmans.


This happens with all books. On looking at the source, I'm afraid I  
can't track down where it's coming from or how to fix it.


(2) Is it possible to use smart quotes in citations? For instance,  
for this book, authored by O'Donovan, I can enter the appropriately  
curly character between O and D in my bibtex file. But it comes out  
straight in the final document.


Thanks!

Michael___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Unable to generate luatex formats

2008-04-15 Thread Michael Green
[A] My experience is similar to Hans van der Meer's (quoted below).

luatools --generate does what I think it's supposed to.

luatools luat-env.lua returns a blank line.

[B] I followed Thomas Schmitz's instructions and used the  
source .luatex method, for what it's worth.

http://archive.contextgarden.net/message/ 
20071002.175335.21873a03.en.html

.luatex contains:

export TEXMFCACHE=/tmp
export TEXMFCNF=/usr/local/texlive/2007/texmf/web2c
export TEXMF={/Users/michaelgreen/.texlive2007/texmf-config,/Users/ 
michaelgreen/.texlive2007/texmf-var,/Users/michaelgreen/Library/ 
texmf,/usr/local/texlive/2007/texmf-config,!!/usr/local/texlive/2007/ 
texmf-var,/usr/local/texlive/2007/texmf,/usr/local/texlive/2007/../ 
texmf-local,!!/usr/local/texlive/2007/texmf-dist}
export LUAINPUTS={/usr/local/texlive/texmf-local/tex/context/base,/ 
usr/local/texlive/2007/texmf-dist/scripts/context/lua,/usr/local/ 
texlive/texmf-local/scripts/context/lua}

[C] Is there a chance that this is a permissions issue? I had to make  
luatools.lua executable by hand.

None of the other files in that directory are executable, where  
'that' directory is:

  /usr/local/texlive/texmf-local/scripts/context/lua

mjg

 From: Hans van der Meer [EMAIL PROTECTED]
 Subject: Re: [NTG-context] Unable to generate luatex formats

 Same thing here. luatools luat-env.lua gives an empty line. After
 luatools --generate again the same.
 And I have TEXMFCNF and TEXMF defined in .bashrc
 TEXMFCNF=/usr/local/texlive/2007/texmf/web2c
 TEXMF={/Users/hans/TeX/texmf-private,/usr/local/texlive/texmf-
 context,/usr/local/texlive/texmf-local,/usr/local/texlive/2007/texmf,/
 usr/local/texlive/2007/texmf-config,/usr/local/texlive/2007/texmf-
 dist,/usr/local/texlive/2007/texmf-doc,/usr/local/texlive/2007/texmf-
 var}

 So there must be something else amiis.

 Hans van der Meer


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Unable to generate luatex formats

2008-04-14 Thread Michael Green
The two files Taco pointed to *appear* to be OK (though I'm too  
inexperienced to say with certainty). That leaves something esoteric  
or a tossed salad of old and new code.

Since this is mainly a matter of learning and curiosity for me, I'll  
wait and see how things develop for a bit.

Thanks for your help!

mjg


 I think either

/usr/local/texlive/texmf-local/tex/context/base/luat-env.tex

 is not the one from the latest context distribution, or an extra
 luatools --generate command is needed.

 You can check the \contextversion by looking at

/usr/local/texlive/texmf-local/tex/context/base/context.tex

 around line 45, it should say

   \edef\contextversion{2008.04.11 14:48}


 There can be some more esoteric causes,  but these are the two most
 likely ones.


 in previou sversions the env was loaded runtime (this behaviour
 originated in the stepwise development of embedding bytecodes in the
 format, in the beginning all chunks were loaded at runtime); i managed
 to get rid of that; in addition to taco's suggestions ... so it  
 could be
 that old code and new code is mixed.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Unable to generate luatex formats

2008-04-12 Thread Michael Green
I'm getting the following error when running this command: luatools -- 
ini --verbose --compile cont-en

LuaTools | running command: luatex --ini --lua=cont-en.luc /usr/ 
local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex \\dump
This is LuaTeX, Version snapshot-0.25.2-2008041101 (Web2C 7.5.6)  
(INITEX)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/cont-en.tex
(/usr/local/texlive/2007/../texmf-local/tex/context/base/context.tex
(/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-pln.tex)
(/usr/local/texlive/2007/../texmf-local/tex/context/base/syst-prm.tex)
(/usr/local/texlive/2007/../texmf-local/tex/context/base/luat-env.tex
! LuaTeX error [string luas[0]]:1: attempt to call field  
'luafilechunk' (a ni
l value).
\ctxluabyteload ...nvironment.luafilechunk(#1) }

\ ...fproductionrun \else \ctxluabyteload {#1}{#2}
   \fi \global  
\everyloadluac...
l.168 \registerctxluafile{luat-env}{1.001}

?

I see that it is similar to an error that ZS had.

http://www.ntg.nl/pipermail/ntg-context/2008/030012.html

  But while ZS's problem was solved by updating, I'm installing for  
the first time with the newest versions.

What might be amiss? Thanks!

mjg
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] t-bib: URL and '%'; spacing between number

2008-04-01 Thread Michael Green
I hit a problem in the same area. Taco's solution then worked for me,  
though I can't tell if it's the same as your problem.

Here's the address of his answer to my question.

http://archive.contextgarden.net/message/ 
20070705.071416.5171d178.en.html
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] XeTeX typescripts in ver: 2007.07.24

2007-08-01 Thread Michael Green
In ver: 2007.01.12, a typescript like this works fine:

\starttypescript[serif][minion][uc]
\definefontsynonym  [MinionRegular] ['Minion Pro:mapping=tex-text; 
+onum;'][encoding=uc]
\stoptypescript

We get Minion Pro, mapping TeX markup to unicode characters and old- 
style numbers.

This seems not to work in ver: 2007.07.24: the font can't be found  
(I'll put a bit of the log file at the end). However, everything is  
fine when the typescript is changed to read like this.

\starttypescript[serif][minion][uc]
\definefontsynonym  [MinionRegular] ['Minion Pro']  [encoding=uc]
\stoptypescript

Here's what looks to me to be the relevant part of the log.

systems : begin file article at line 1
(/Users/michaelgreen/Library/texmf/tex/context/article.tex
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-xtx.tex)
(/Users/michaelgreen/Library/texmf/tex/context/myfonts.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-exa.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-syn.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-enc.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-siz.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-map.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-xtx.tex)
(/Users/michaelgreen/Library/texmf/tex/context/myfonts.tex)
! Font \*minion12ptrmtfrm*:='mapping=tex-text;+onum; at 12.0pt' not  
loadable:
installed font not found.

  (myfonts.tex is a file of typescripts for system fonts, made to  
match the those in the creating your own typescripts section of the  
wiki page: http://wiki.contextgarden.net/Fonts_in_XeTeX).

Perhaps the old functionality being replaced with something different.

Thanks.

Michael Green
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bib module and urls

2007-07-05 Thread Michael Green
The bib module has a problem with processing my bibliography files.  
Here is my amateur diagnosis. There are hundreds of entries in my  
bibliography file in which the % character is part of the url. When  
the bib module comes across a %, it ignores everything else on the  
line, including the closing brace, }. Bad things follow.

Here's some evidence for my diagnosis. I tried editing the urls by  
replacing % with \%. When the urls are written that way,  
everything works smoothly. But that is an undesirable solution. Among  
other things, it renders the url inaccurate.

So, I have two questions:

1. Is that diagnosis correct?
2. What can I do about it (short of deleting the url field)?

Thank you!

Here is a minimal example (1 and 2) followed by the log entry (3).

1. The test document

\usemodule[bib]
\setupbibtex[database=biblio]
\setuppublications[alternative=apa]

\starttext

Adamson wrote an important paper \cite[Adamson:1987yq].

\completepublications
\stoptext

2. The BibTeX entry

%% Saved with string encoding Unicode (UTF-8)

@article{Adamson:1987yq,
Author = {Adamson, J. S. A.},
Date-Added = {2007-07-04 08:47:37 -0700},
Date-Modified = {2007-07-04 09:11:17 -0700},
Endnotereftype = {Journal Article},
Journal = {The Historical Journal},
Note = {0018-246X
Article type: Full Length Article / Full publication date: Sep., 1987  
(198709). / Copyright 1987 Cambridge University Press},
Number = {3},
Pages = {567-602},
Title = {The English Nobility and the Projected Settlement of 1647},
Url = {http://links.jstor.org/sici?sici=0018-246X%28198709%2930%3A3% 
3C567%3ATENATP%3E2.0.CO%3B2-X},
Volume = {30},
Year = {1987}}

3. The relevant part of the log

system  : module bib loaded
(/usr/local/texlive/2007/texmf-dist/tex/context/bib/t-bib.tex
\etallimitcounter=\count214
\etaldisplaycounter=\count215
\todocounter=\count216
\bibitemcounter=\count217
\bibitemwanted=\count218

publications: loading formatting style from bibl-apa
(/usr/local/texlive/2007/texmf-dist/tex/context/bib/bibl-apa.tex))
publications: loading formatting style from bibl-apa
(/usr/local/texlive/2007/texmf-dist/tex/context/bib/bibl-apa.tex)
(./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo)
(./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo) (./URLinBib.tuo)
(./URLinBib.tuo) (./URLinBib.tuo)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-def.tex)
(/usr/local/texlive/2007/texmf-dist/tex/context/base/sort-lan.tex)
(./URLinBib.tuo) (./URLinBib.tuo)
publications: loading database from URLinBib.bbl
(./URLinBib.bbl)
Runaway argument?
k=Adamson:1987yq,t=article, a={{Adamson}},y=1987, u={http://links.jst 
\ETC.
! File ended while scanning use of \dostartpublication.
inserted text
 \par
to be read again
\relax
\dodoreadfile ...\preprocesssuffix \or \fi \relax
   \the  
\everyafterreadfile
\doateverystarttext -\the \everystarttext
\global \everystarttext  
\emptytoks
\starttext -\doatever
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___