[NTG-context] [***SPAM***] Resetting Page Backgrounds

2012-04-18 Thread Raymond LeClair
I have written Python classes to automate reading a Tumblr blog and writing a 
file for processing by ConTeXt. No manual editing of the ConTeXt input file is 
allowed.

Photos are incorporated in a graphic created using METAPOST commands embedded 
in the ConTeXt input file. Then the graphic is used as a background. I need 
this background to appear only on one page.

My current solution is to use TeX conditionals to test if the page number has 
incremented, then reset the background to empty. This approach fails in many 
cases. The code below provides a minimum working example of a failure. Photos 
are shown as squares to reduce the size of this post.

Is there a better way to reset the background?

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.13  int: english/english
this is luatex, version beta-0.70.1-2011051908 (rev 4277)

% == Start Minimum Working Example ==
\pdfminorversion=5

\definepapersize[LG1][width=8.5in,height=8.5in]
\definepapersize[LP1][width=8.5in,height=8.5in]

\setuppapersize[LG1][LP1]

\definelayout[contents_1]
 [backspace=3.25in,
  leftmargin=2.25in,
  leftmargindistance=0.25in,
  width=4.75in,
  rightmargindistance=0.25in,
  rightmargin=0.25in,
  topspace=0.5in,
  header=0.25in,
  headerdistance=4.75in,
  height=7.75in,
  footerdistance=0.25in,
  footer=0.25in]

\definelayout[contents_2]
 [backspace=3.25in,
  leftmargin=2.25in,
  leftmargindistance=0.25in,
  width=4.75in,
  rightmargindistance=0.25in,
  rightmargin=0.25in,
  topspace=0.5in,
  header=0.25in,
  headerdistance=3.5in,
  height=7.75in,
  footerdistance=0.25in,
  footer=0.25in]

\definelayout[contents_4]
 [backspace=3.25in,
  leftmargin=2.25in,
  leftmargindistance=0.25in,
  width=4.75in,
  rightmargindistance=0.25in,
  rightmargin=0.25in,
  topspace=0.5in,
  header=0.25in,
  headerdistance=1.0in,
  height=7.75in,
  footerdistance=0.25in,
  footer=0.25in]

\setupwhitespace[small]
\setupfloats[spacebefore=none]
\setuppagenumbering[location=footer,style=\white]

\starttext

\setupheader[state=start]
\setupheadertexts[\hbox to 2.5in{MARCH}THESOUNDARABBITMAKES][][][]

\setuppagenumber[state=start]

\setupfooter[state=start]
\setupfootertexts[\pagenumber][]

\page
\setupbackgrounds[page][background={{}}]
\setuplayout[contents_4]
\hskip1em

\page
\startuniqueMPgraphic{2e31ddc5-43da-4879-a223-61674e0df438}
 page_width := 8.5in;
 page_height := 8.5in;

 draw (0, 0)--(page_width, 0)
   withpen pencircle scaled 1bp withcolor white;

 draw (0, 0)--(0, page_height)
   withpen pencircle scaled 1bp withcolor white;

 photo_grp_x_shift := 3.25in;
 photo_grp_y_shift := 3.25in;
 photo_grp_width := 4.75in;
 photo_grp_height := 4.75in;

 draw (photo_grp_x_shift, photo_grp_y_shift)
   --(photo_grp_x_shift, photo_grp_y_shift + photo_grp_height)
   --(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift + photo_grp_height)
   --(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift)
   --(photo_grp_x_shift, photo_grp_y_shift)
   withpen pencircle scaled 1bp withcolor black;

 photo_grp_x_shift := 0.75in;
 photo_grp_y_shift := 5.75in;
 photo_grp_width := 2.25in;
 photo_grp_height := 2.25in;

 draw (photo_grp_x_shift, photo_grp_y_shift)
   --(photo_grp_x_shift, photo_grp_y_shift + photo_grp_height)
   --(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift + photo_grp_height)
   --(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift)
   --(photo_grp_x_shift, photo_grp_y_shift)
   withpen pencircle scaled 1bp withcolor black;

 photo_grp_x_shift := 0.75in;
 photo_grp_y_shift := 3.25in;
 photo_grp_width := 2.25in;
 photo_grp_height := 2.25in;

 draw (photo_grp_x_shift, photo_grp_y_shift)
   --(photo_grp_x_shift, photo_grp_y_shift + photo_grp_height)
   --(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift + photo_grp_height)
   --(photo_grp_x_shift + photo_grp_width, photo_grp_y_shift)
   --(photo_grp_x_shift, photo_grp_y_shift)
   withpen pencircle scaled 1bp withcolor black;
\stopuniqueMPgraphic

\defineoverlay[2e31ddc5-43da-4879-a223-61674e0df438][\uniqueMPgraphic{2e31ddc5-43da-4879-a223-61674e0df438}]

\setupbackgrounds[page][background={{2e31ddc5-43da-4879-a223-61674e0df438}}]
\setuplayout[contents_1]

\edef\lastpagenumber{\pagenumber}

{\bf November 08, 2010}
({\bf Enryakuji})
\ifnum\pagenumber\lastpagenumber
 \setupbackgrounds[page][background={{}}]\setuplayout[contents_4]
\fi\pagenumber\par

My labmates, professor, and I visited this temple in Shiga prefecture last 
weekend to see the 紅葉 ({\bf kouyou} , autumn colors). Amazingly even though it 
is November, many of the trees had not changed yet. But 

Re: [NTG-context] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-12-01 Thread Raymond LeClair
Thanks for the reply!

Found I needed to use \letterbackslash\letterhash for this to work. Does that 
make sense?

On Nov 30, 2011, at 10:37 AM, Aditya Mahajan wrote:

 Try:
 
 using \letterhash instead of \#
 
 or
 
 \startasciimode
 \def \FrontMatterTitle {
 \startreusableMPgraphic{frontmattertitle:\overlaywidth:\overlayheight}
   matter_paper_width := 4.25in;
   matter_paper_height := 6.875in;
   front_left_margin := 0.3889in;
   top_margin := 0.3472in;
   draw (0, 0)--(matter_paper_width, matter_paper_height)
 withpen pencircle scaled 1bp withcolor white;
   picture titleText;
 
   %% == HERE IS THE SOURCE OF THE PROBLEM ==
 
   titleText := btex {\vbox{\hsize 2.7291667in \baselineskip 38.0pt
   \setupalign[flushleft,hyphenated,verytolerant]
   \TitleFont THE BEGINNINGS OF #BOOM}} etex;
 %% NOTE I changed \# to # and % to %%
   labeloffset := 0bp;
   label.lrt(titleText, (front_left_margin,
 matter_paper_height - top_margin));
 \stopreusableMPgraphic
 \reuseMPgraphic{frontmattertitle:\overlaywidth:\overlayheight}
 }
 
 \stopasciimode
 
 You can also use \framed[width=2.73in, 
 foregroundstyle={\TitleFont\setupinterlinespace[38pt],
 align={flushleft, }]{The } instead of explicit \vbox.
 
 Aditya
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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] Escaping a special character in a MetaPost figure within a ConTeXt document fails

2011-11-30 Thread Raymond LeClair
I have escaped the '#' character in the usual way, using a backslash, as '\#' 
in a btex...etex picture as part of a MetaPost figure created within a ConTeXt 
document, but the escaped character still causes the ConTeXt processing to fail.

Here is an example...

\pdfminorversion=5

\definepapersize[LG1][width=4.25in,height=6.875in]
\definepapersize[LP1][width=4.25in,height=6.875in]

\setuppapersize[LG1][LP1]

\definelayout[frontmatter]
 
[topspace=0.in,header=0.5556in,height=6.4305556in,footer=0.6944in,
  backspace=1.056in,width=2.861in,location=middle,
  
leftmargindistance=0.in,rightmargindistance=0.in,
  leftmargin=0.8333in,rightmargin=0.in]

\definefont[TitleFont][Serif sa 3.5]

\definecolor[TransparentWhite][b=1,t=0,a=1]

\def \FrontMatterTitle {
  \startreusableMPgraphic{frontmattertitle:\overlaywidth:\overlayheight}
matter_paper_width := 4.25in;
matter_paper_height := 6.875in;
front_left_margin := 0.3889in;
top_margin := 0.3472in;
draw (0, 0)--(matter_paper_width, matter_paper_height)
  withpen pencircle scaled 1bp withcolor white;
picture titleText;

% == HERE IS THE SOURCE OF THE PROBLEM ==

titleText := btex {\vbox{\hsize 2.7291667in \baselineskip 38.0pt
\setupalign[flushleft,hyphenated,verytolerant]
\TitleFont THE BEGINNINGS OF \#BOOM}} etex;
labeloffset := 0bp;
label.lrt(titleText, (front_left_margin,
  matter_paper_height - top_margin));
  \stopreusableMPgraphic
  \reuseMPgraphic{frontmattertitle:\overlaywidth:\overlayheight}
}

\defineoverlay[frontmattertitle][\FrontMatterTitle]

\starttext

\setuplayout[frontmatter]

{\TransparentWhite\title{...}}
\setupbackgrounds[page][background={{frontmattertitle}},state=repeat]
{\TransparentWhite\midaligned{...}}

\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] Should \setupinterlinespace work in \setupmargindata?

2011-08-17 Thread Raymond LeClair
The following fails, badly:

\definefont[MarginFont][Serif sa 0.5]
\setupmargindata[style=\MarginFont\setupinterlinespace[line=12pt]]
\starttext
\inmargin{abc\\def}\input tufte
\stoptext

Have I got the wrong syntax?

ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.13  int: english/english

___
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] Tracking in MKII and MKIV

2011-08-15 Thread Raymond LeClair
I am automating the creation of books using ConTeXt with a graphic design 
graduate student at the Rhode Island School of Design.

The book cover is created using MetaPost inside a ConTeXt source file.

The graphic designer tells me it is very common to specify the interletter 
spacing, or tracking, and in fact, he considers this capability to be essential.

I understand that these, so called, microtypography capabilities are present in 
pdfTeX fully, but only partially present in LuaTeX (protrusion and expansion), 
although tracking can be set in a way using \kerncharacters[0.5] in LuaTeX.

However, the quality of the typesetting produced by LuaTeX is completely 
inadequate, while the quality of the typesetting produced by pdfTeX is very 
good.

Am I miss-understanding the differences in capability between pdfTeX and LuaTeX 
in this regard?

Relevant examples follow and PDFs are attached.


I processed the following ConTeXt source file using MKII:

This is pdfTeX, Version 3.1415926-1.40.10 (Web2C 2009) (format=cont-en 
2011.8.13)
ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 2011.8.13  int: english/english

= START MKII EXAMPLE =
\pdfminorversion=5

\definepapersize[LG1][width=9.3in,height=6.87in]
\definepapersize[LP1][width=9.55in,height=7.12in]

\setuppapersize[LG1][LP1]

\setuplayout[location=middle,marking=off]

\setuppagenumber[state=stop]

\startMPenvironment
  \usetypescript[modern][ec]
  \switchtotypeface[modern][7.0pt]
  \setupinterlinespace
  \def\stretchedspacefactor{4}
  \def\stretchedspaceamount{0.25em}
\stopMPenvironment

\startuniqueMPgraphic{cover}
  cover_paper_width := 9.55in;
  cover_paper_height := 7.12in;
  left_margin := 0.3472in;
  top_margin := 0.3472in;
  bottom_margin := 0.3472in;

  draw (0, 0)--(cover_paper_width, cover_paper_height)
withpen pencircle scaled 1bp withcolor white;

  picture labelText;
  labelText := btex {\vbox{\hsize 2.389in \baselineskip 10.5pt
   T\hskip 0.25em\stretchednormalcase{HIS BOOK
 CONTAINS 988 TWEETS POSTED TO TWITTER BY
 LADYGAGA FROM MARCH 27, 2008 TO AUGUST 5,
 2011. IT WAS PUBLISHED ON DEMAND ON AUGUST
 14, 2011}}} etex;
  labeloffset := 0bp;
  label.lrt(labelText, (left_margin,
cover_paper_height - top_margin));

\stopuniqueMPgraphic

\defineoverlay[cover][\uniqueMPgraphic{cover}]

\starttext

\title{}
\setupbackgrounds[paper][background={cover}]

\stoptext
= STOP MKII EXAMPLE =

I processed the following ConTeXt source file using MKIV:

this is luatex, version beta-0.70.1-2011051908 (rev 4277)
ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.13  int: english/english

= START MKVI EXAMPLE =
\pdfminorversion=5

\definepapersize[LG1][width=9.24in,height=6.87in]
\definepapersize[LP1][width=9.49in,height=7.12in]

\setuppapersize[LG1][LP1]

\setuplayout[location=middle,marking=off]

\setuppagenumber[state=stop]

\definefont[LabelFont][Serif sa 0.583]

\startuniqueMPgraphic{cover}
  cover_paper_width := 9.49in;
  cover_paper_height := 7.12in;
  left_margin := 0.3472in;
  top_margin := 0.3472in;
  bottom_margin := 0.3472in;
 
  draw (0, 0)--(cover_paper_width, cover_paper_height)
withpen pencircle scaled 1bp withcolor white;

  picture labelText;
  labelText := btex {\vbox{\hsize 2.389in \baselineskip 10.5pt 
\LabelFont
   {\kerncharacters[0.5]
THIS BOOK CONTAINS 988 TWEETS POSTED TO
TWITTER BY LADYGAGA FROM MARCH 27, 2008
TO AUGUST 5, 2011. IT WAS PUBLISHED ON
DEMAND ON AUGUST 14, 2011}}} etex;
  labeloffset := 0bp;
  label.lrt(labelText, (left_margin,
cover_paper_height - top_margin));

\stopuniqueMPgraphic

\defineoverlay[cover][\uniqueMPgraphic{cover}]

\starttext

\title{}
\setupbackgrounds[paper][background={cover}]

\stoptext
= STOP MKVI EXAMPLE =

The MKII PDF



cover-mkii.pdf
Description: Adobe PDF document

The MKIV PDF



cover-mkiv.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
___

Re: [NTG-context] Would Multiple Processes Cause: luatex: execution interrupted

2011-07-05 Thread Raymond LeClair
Taco,

Thanks for your reply!

You are correct, the issue appears to be memory. The system is hosted on a 
linode, the smallest of which is 512 MB RAM. I increased this to 1024 MB RAM 
and this appears to fix the problem.

Very much appreciate your help.

Ray.

On Jul 5, 2011, at 2:15 AM, Taco Hoekwater wrote:

 On 07/05/2011 08:11 AM, luigi scarso wrote:
 On Tue, Jul 5, 2011 at 4:23 AM, Raymond LeClair
 raymond.lecl...@synterein.com  wrote:
 Thanks for your reply!
 
 On Jul 4, 2011, at 5:35 PM, Taco Hoekwater wrote:
 
 Quite possibly  (but that is very hard to verify and would be even harder 
 to debug). Best practise is to give each process its own temporary 
 directory, just in case.
 
 This is, in fact, guaranteed by design: each file resides in a directly 
 which is named using a uuid.
 
 Is it possible that context or luatex are creating files in a common 
 directory, say the cache directory, and access by one process locks the 
 file for access by another?
 It's possible: say for example that each task rebuild the format at
 every run just to be sure. The format  is shared by all instances for
 the same minimals or TeXLive, so conflicts may arise.
 The same for example for the font cache.
 
 Possible but, I think, quite unlikely. Another possibility is that you simply 
 run out of memory?
 
 Best wishes,
 Taco
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


[NTG-context] Would Multiple Processes Cause: luatex: execution interrupted

2011-07-04 Thread Raymond LeClair
I run context in a task queue with four worker processes. It is possible that 
context is invoked simultaneously to process distinct input files by tasks 
running in separate worker processes. I see periodic fatal errors, as follows:

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted

However, the same input files can be processed by context directly without 
errors. Is it possible that context running in simultaneous but separate 
processes conflict?

This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) 
ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.7.2  int: english/english

___
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] Would Multiple Processes Cause: luatex: execution interrupted

2011-07-04 Thread Raymond LeClair
Thanks for your reply!

On Jul 4, 2011, at 5:35 PM, Taco Hoekwater wrote:

 Quite possibly  (but that is very hard to verify and would be even harder to 
 debug). Best practise is to give each process its own temporary directory, 
 just in case.

This is, in fact, guaranteed by design: each file resides in a directly which 
is named using a uuid.

Is it possible that context or luatex are creating files in a common directory, 
say the cache directory, and access by one process locks the file for access by 
another?

___
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] ConTeXt Command Differences between Tex Live and Minimals

2011-06-30 Thread Raymond LeClair
In general, where do I look to resolve differences between ConTeXt commands 
which work using the Tex Live distribution, but which do not work using the 
Minimals distribution.

I am thinking of switching to the Minimals distribution since I can keep it 
more current, and it appears to resolve a problem hyphenating URLs which 
contain multiple, adjacent hyphens.

Specifically, the command \inothermargin is not recognized when using the 
Minimals distribution. While I would appreciate a solution to this issue, I 
would very much appreciate knowing where to look to resolve the issue myself. I 
have consulted the most recent documentation, and searched the ConTeXt wiki.

Tex Live Distribution reports:

MTXrun | current version: 2010.05.24 13:05
This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)

Minimals Distribution reports:

mtx-context | current version: 2011.05.18 18:04
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)

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

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


Re: [NTG-context] ConTeXt Command Differences between Tex Live and Minimals

2011-06-30 Thread Raymond LeClair
Perfect, I can compare sources...here's what I find:

== Tex Live Distribution ==

MTXrun | current version: 2010.05.24 13:05
This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)

# cd /usr/share/texmf/tex/context/base
# grep inothermargin *
page-mar.mkii:\def\inothermargin{\inother}

== Minimals Distribution ==

mtx-context | current version: 2011.05.18 18:04
This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277)

# cd /opt/context-current/tex/texmf-context/tex/context/base
# grep inothermargin *
page-mar.mkii:\def\inothermargin{\inother}

So it appears that the command \inothermargin is defined in both 
distributions. However...

\starttext
\inothermargin{donald}\input knuth
\stoptext

works in Tex Live but not in Minimals.

On Jun 30, 2011, at 10:46 AM, Mojca Miklavec wrote:

 On Thu, Jun 30, 2011 at 16:24, Raymond LeClair wrote:
 In general, where do I look to resolve differences between ConTeXt commands 
 which work using the Tex Live distribution, but which do not work using the 
 Minimals distribution.
 
 I'm afraid that the only option is to compare the sources
 (tex/gereric/context/base).
 
 (It is not very common that newer version doesn't support an older
 command though, while the reverse is often true.)
 
 Tex Live Distribution reports:
 
 MTXrun | current version: 2010.05.24 13:05
 This is LuaTeX, Version beta-0.60.2-2010071217 (TeX Live 2010) (rev 3736)
 
 You can install TeX Live 2011 if you want to use a more recent version
 of ConTeXt.
http://www.tug.org/texlive/pretest.html
 
 Mojca
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


[NTG-context] Repeated Hyphens in URL Cause Fatal Error

2011-06-28 Thread Raymond LeClair
The following (real) URL causes a fatal error:

\starttext
\hyphenatedurl{http://www.freakingnews.com/Celebrities-Upside-Down-Pictures2433-0.asp}
\stoptext

This is LuaTeX, Version beta-0.50.0-2010010503
ConTeXt  ver: 2009.11.26 16:28 MKIV  fmt: 2011.6.24  int: english/english
Tex Live distribution on Ubuntu 10.04 LTS

Anyone know why?

(The URL was included in the tweets of a random Twitter user)

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

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


Re: [NTG-context] PDF Version Selection

2011-03-19 Thread Raymond LeClair
Fantastic! This fixes my problem uploading documents to Lulu. Thank you. This 
has been one tough bug to track down.

On Mar 18, 2011, at 5:05 PM, Aditya Mahajan wrote:

 On Fri, 18 Mar 2011, Hans Hagen wrote:
 
 On 18-3-2011 8:51, Raymond LeClair wrote:
 Is it possible to select the PDF version that is produced by running 
 context file.tex?
 For example, running context file.tex produced file.pdf of PDF version 
 _1.5_ on Ubuntu with ConTeXt  ver: 2009.11.26 16:28 MKIV and of PDF version 
 _1.6_ on Mac OS X with ConTeXt  ver: 2010.05.24 13:05 MKIV.
 I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt  ver: 
 2010.05.24 13:05 MKIV.
 
 just choose the relevant pdf/x version
 
 http://wiki.contextgarden.net/PDFX
 
 I think that the OP just wants
 
 \pdfminorversion=5
 
 Aditya
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___



smime.p7s
Description: S/MIME cryptographic signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] PDF Version Selection

2011-03-18 Thread Raymond LeClair
Is it possible to select the PDF version that is produced by running context 
file.tex?

For example, running context file.tex produced file.pdf of PDF version 
_1.5_ on Ubuntu with ConTeXt  ver: 2009.11.26 16:28 MKIV and of PDF version 
_1.6_ on Mac OS X with ConTeXt  ver: 2010.05.24 13:05 MKIV.

I would like to produce PDF version _1.5_ on Mac OS X with ConTeXt  ver: 
2010.05.24 13:05 MKIV.



smime.p7s
Description: S/MIME cryptographic signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Creation of PDF Oddly Differs on Ubuntu and Mac OS X

2011-03-17 Thread Raymond LeClair
A Lulu developer was able to find out that the original error was coming out of 
the PDFLib library:
{error_type:PDFlibException,error_value:Handle parameter or option of 
type 'page' has bad value 0}

Does that mean anything to anyone?

On Mar 17, 2011, at 4:01 AM, Mojca Miklavec wrote:

 On Thu, Mar 17, 2011 at 08:52, Taco Hoekwater wrote:
 
 As it says: Directory not empty, perhaps you could look in the finder
 or terminal to see what is still in there. I actually expect that
 there is a Finder-specific file or folder there, which would mean that
 the actual problem has nothing to do with the pdf itself, but just with
 a difference between MacOSX and Ubuntu.
 
 If that is true there is probably at least a file .DS_Store present on
 Mac OS X (which Finder won't show).
 
 Mojca
 ___
 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
 ___



smime.p7s
Description: S/MIME cryptographic signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Creation of PDF Oddly Differs on Ubuntu and Mac OS X

2011-03-16 Thread Raymond LeClair
All,

I am using ConTeXt to create a PDF for upload to Lulu.com.

I am getting the following exception using the LuLu Python publication API on 
Mac OS X 10.6.6 with Python 2.6.6 or 2.7.1:
ServiceError: Couldn't create Lulu project. '{error_type: 
LFilesystemException, error_value: shell command failed: rm -rf 
\'/opt/stable/stable/htdocs/items/volume_69/1029/10290657\' 21\\nrm: 
cannot remove directory 
`/opt/stable/stable/htdocs/items/volume_69/1029/10290657/1/cover\': 
Directory not empty, HTTPErrorCode: 500}'

Oddly, the exact same code works fine on Ubuntu 10.04 LTS with Python 2.6.5.

I have track down the issue to the difference between the _cover_ PDF created 
on Ubuntu with ConTeXt  ver: 2009.11.26 16:28 MKIV and on Mac OS X with ConTeXt 
 ver: 2010.05.24 13:05 MKIV, although the cover PDF generated on either 
platform appears correctly in Preview.

I have posted an archive that illustrates the issue at 
http://www.synterein.com/lulu_context_issues/lulu_context_issue_01.zip

Any wisdom out there? What should I look for next?
Ray.

978-621-5755



smime.p7s
Description: S/MIME cryptographic signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Creation of PDF Oddly Differs on Ubuntu and Mac OS X

2011-03-16 Thread Raymond LeClair
All,

I could have phrased my question better ... here is another attempt:

I use ConTeXt to generate a PDF for upload using the command context filename 
on either Mac OS X or Ubuntu. I have installed ConTeXt by installing a TeX Live 
distribution on each platform. The command completes without error on either 
platform. The PDFs open in Preview (a Mac OS X application for viewing PDFs) 
and appear to be correct, regardless of on which platform the PDFs were 
created. However, the upload of the PDF created on Mac OS X fails, while the 
upload of the PDF created on Ubuntu works.

So, there is something different about these two PDFs which I cannot determine 
by opening them in an application for viewing PDFs. But I do not know what is 
different, or how to find out.

I have posted an archive that illustrates the issue at 
http://www.synterein.com/lulu_context_issues/lulu_context_issue_01.zip

Any and all ideas would be appreciated.

Ray.

On Mar 16, 2011, at 8:49 AM, Raymond LeClair wrote:

 All,
 
 I am using ConTeXt to create a PDF for upload to Lulu.com.
 
 I am getting the following exception using the LuLu Python publication API on 
 Mac OS X 10.6.6 with Python 2.6.6 or 2.7.1:
 ServiceError: Couldn't create Lulu project. '{error_type: 
 LFilesystemException, error_value: shell command failed: rm -rf 
 \'/opt/stable/stable/htdocs/items/volume_69/1029/10290657\' 21\\nrm: 
 cannot remove directory 
 `/opt/stable/stable/htdocs/items/volume_69/1029/10290657/1/cover\': 
 Directory not empty, HTTPErrorCode: 500}'
 
 Oddly, the exact same code works fine on Ubuntu 10.04 LTS with Python 2.6.5.
 
 I have track down the issue to the difference between the _cover_ PDF created 
 on Ubuntu with ConTeXt  ver: 2009.11.26 16:28 MKIV and on Mac OS X with 
 ConTeXt  ver: 2010.05.24 13:05 MKIV, although the cover PDF generated on 
 either platform appears correctly in Preview.
 
 I have posted an archive that illustrates the issue at 
 http://www.synterein.com/lulu_context_issues/lulu_context_issue_01.zip
 
 Any wisdom out there? What should I look for next?
 Ray.
 
 978-621-5755
 
 ___
 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
 ___



smime.p7s
Description: S/MIME cryptographic signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Computer Modern Typewriter Proportional

2011-01-10 Thread Raymond LeClair
This is terrific! Thank you.

On Jan 10, 2011, at 3:36 AM, Philipp Gesang wrote:

 On 2011-01-09 19:31:24, Raymond LeClair wrote:
 Does anyone know how the Computer Modern Typewriter Proportional font 
 would be specified in ConTeXt?
 
 In Latex is is specified as follows:
 
 \usepackage[T1]{fontenc}
 \renewcommand*\ttdefault{cmvtt}
 \renewcommand*\familydefault{\ttdefault} %% Only if the base font of the 
 document is to be typewriter style
 
 See: http://www.tug.dk/FontCatalogue/cmvtt/
 
 Any help would be appreciated!
 
 Hello Raymond,
 
 there’s two ways I know of: 1. for *latin* modern, use the
 typescript “modern-variable”; 2. for *cm unicode*, redefine the
 mono typefaces. (Of course, if yow need exactly cm then this
 might not help you at all, sorry.) Here’s an example to
 demonstrate both.
 
 ·8··
 
 \usetypescriptfile[type-cmu]
 
 \unprotect
 \starttypescript [\s!mono] [computer-modern-unicode] % by default cmu does 
 not define the variable width mono faces
\setups[\s!font:\s!fallback:\s!mono]
\definefontsynonym [\s!Mono]   [CMUTypewriter-Variable]   
 [\s!features=\s!default]
\definefontsynonym [\s!MonoItalic] [CMUTypewriter-VariableItalic] 
 [\s!features=\s!default]
 \stoptypescript
 \protect
 
 \usetypescript [computer-modern-unicode]  % for cmu
 \usetypescript [modern-variable]  % for lm
 %\usetypescript [modern-variable-light]% alternative for lm
 
 \setupbodyfont [computer-modern-unicode]
 
 \starttext
 
 {\tt\input knuth\par}   % testing cmu
 {\tt\italic\input knuth\par}% testing cmu-it
 {\switchtobodyfont[modernvariable]\tt\input knuth\par}  % testing lm
 
 \stoptext
 
 ·8··
 
 Regards, Philipp
 
 Btw, modern-variable causes different line breaks than ordinary
 lm-tt but it does not appear to be as proportional as the cmu
 version. Did I do something wrong?
 
 ___
 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
 ___
 
 -- 
 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

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


[NTG-context] Computer Modern Typewriter Proportional

2011-01-09 Thread Raymond LeClair
Does anyone know how the Computer Modern Typewriter Proportional font would 
be specified in ConTeXt?

In Latex is is specified as follows:

\usepackage[T1]{fontenc}
\renewcommand*\ttdefault{cmvtt}
\renewcommand*\familydefault{\ttdefault} %% Only if the base font of the 
document is to be typewriter style

See: http://www.tug.dk/FontCatalogue/cmvtt/

Any help would be appreciated!

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