Re: [NTG-context] Textbackground issue with margin pictures

2017-04-03 Thread Tom
> On 3. Apr 2017, at 10:16, Hans Hagen <pra...@wxs.nl> wrote:
> 
> On 4/3/2017 2:20 AM, Tom wrote:
>> Hi,
>> 
>> today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15.
>> 
>> I noticed that my textbackgrounds now interfere with margin pictures, that 
>> is,
>> if there is a margin picture at the side of a textbackground, then the
>> textbackground is suppressed for the entire height of the margin picture.
>> 
>> 
>> Here is a minimal:
>> 
>> \setuplayout [
>> leftmargin=0mm,
>> rightmargin=45mm,
>> height=fit,
>> width=fit,
>> ]
>> 
>> \definetextbackground [test]
>> 
>> \starttext
>> 
>> \placefigure [margin]{}{}
>> 
>> \starttextbackground [test]
>> \dorecurse{3}{\readfile{ward}{}{}}
>> \stoptextbackground
>> 
>> \stoptext
>> 
>> 
>> With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue, 
>> everything’s fine there.
>> 
>> Here are two screenshots:
>> 
>> Desired behavior (Ctx Current): http://d.pr/i/Xgtc
>> Non-desired behavior (Ctx Beta): http://d.pr/i/1gyi
>> 
>> Is this a bug?
> 
> \definetextbackground [test] [location=paragraph]
> 
> \setupfloat[figure][freeregion=no]



Thank you, Hans, this works absolutely great!

Two little questions:

I have set it now globally for _all_ floats as \setupfloats[freeregion=no].
At a first glance it doesn’t seem to cause any issues. 
Is there any pitfall when setting it globally, which I might not be aware?

Is 'freeregion=no' an option that is meant to stay, or is it a workaround for 
the recent betas?

Thanks again,
Best,
-- 
Tom



> 
> \starttext
> 
> \placefigure [margin]{}{}
> 
> \starttextbackground [test]
>\dorecurse{3}{\readfile{ward}{}{}}
>\placefigure {}{}
>\dorecurse{3}{\readfile{ward}{}{}}
> \stoptextbackground
> 
> \stoptext
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Textbackground issue with margin pictures

2017-04-02 Thread Tom
Hi,

today I updated from ConTeXt 2015.11.19 to the recent Beta 2017.03.26 16:15.

I noticed that my textbackgrounds now interfere with margin pictures, that is,
if there is a margin picture at the side of a textbackground, then the 
textbackground is suppressed for the entire height of the margin picture.


Here is a minimal:

\setuplayout [
leftmargin=0mm,
rightmargin=45mm,
height=fit,
width=fit,
]

\definetextbackground [test] 

\starttext

\placefigure [margin]{}{}

\starttextbackground [test]
\dorecurse{3}{\readfile{ward}{}{}}
\stoptextbackground

\stoptext


With the ConTeXt Current from 2016.05.19 13:43 I don’t see the issue, 
everything’s fine there.

Here are two screenshots:

Desired behavior (Ctx Current): http://d.pr/i/Xgtc
Non-desired behavior (Ctx Beta): http://d.pr/i/1gyi

Is this a bug?

Thanks for any help.

-- 
Thomas Floeren


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2016-09-22 Thread Tom
Of course, “Ctx Typeset Tool“, not “Typest”, sorry.
-- 
Tom

http://dflect.net




> On 22 Sep 2016, at 23:32, Tom <t...@mac.com> wrote:
> 
> I’ve updated the Ctx Typest Tool for macOS Sierra.
> 
> Due to a lack of computers I hadn’t installed the Sierra Beta, so this update 
> for the moment is a beta.
> A non-trivial rewrite was needed, and now main functionality works fine for 
> me, I also tested the tools, found a couple of problems, and fixed them.
> 
> Download as usual: http://dflect.net/context-typeset-tool/ 
> <http://dflect.net/context-typeset-tool/>
> 
> Release notes:
> 
> 1.3.0 (65) (2016-09-18)
> Compatibility: macOS 10.11, 10.12; probably 10.10 (untested); maybe 10.9.
> Removed ASObjC Runner from the bundle (incompatibility with macOS Sierra).
> Rewritten all code formerly related to ASObjC Runner.
> Removed terminal-notifier -> No more notifications under macOS 10.8.
> Changed Trash Generated PDF Files action: it now shows a list where you can 
> select the PDFs to trash.
> Updated 7zr to ver 16.02
> Removed the Python dependency.
> Fixed some path and encoding problems for mtxrun and texutil.
> 
> 
> 
> -- 
> Tom
> 
> http://dflect.net <http://dflect.net/>
> 
> 
> 
> 
>> On 24 Mar 2016, at 05:13, Thomas Floeren <t...@mac.com 
>> <mailto:t...@mac.com>> wrote:
>> 
>> Hi,
>> 
>> A small fix for the Typeset Tool:
>> 
>> 1.2.5 (64) / 2016-03-22
>> Notifications now working on El Capitan (10.11).
>> 
>> http://dflect.net/context-typeset-tool/ 
>> <http://dflect.net/context-typeset-tool/>
>> 
>> 
>> Best,
>> 
>> -- 
>> Tom
>> 
> 
> ___
> 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
___

Re: [NTG-context] For the Mac users: AppleScript to launch ConTeXt in a flexile way

2016-09-22 Thread Tom
I’ve updated the Ctx Typest Tool for macOS Sierra.

Due to a lack of computers I hadn’t installed the Sierra Beta, so this update 
for the moment is a beta.
A non-trivial rewrite was needed, and now main functionality works fine for me, 
I also tested the tools, found a couple of problems, and fixed them.

Download as usual: http://dflect.net/context-typeset-tool/

Release notes:

1.3.0 (65) (2016-09-18)
Compatibility: macOS 10.11, 10.12; probably 10.10 (untested); maybe 10.9.
Removed ASObjC Runner from the bundle (incompatibility with macOS Sierra).
Rewritten all code formerly related to ASObjC Runner.
Removed terminal-notifier -> No more notifications under macOS 10.8.
Changed Trash Generated PDF Files action: it now shows a list where you can 
select the PDFs to trash.
Updated 7zr to ver 16.02
Removed the Python dependency.
Fixed some path and encoding problems for mtxrun and texutil.



-- 
Tom

http://dflect.net




> On 24 Mar 2016, at 05:13, Thomas Floeren <t...@mac.com> wrote:
> 
> Hi,
> 
> A small fix for the Typeset Tool:
> 
> 1.2.5 (64) / 2016-03-22
> Notifications now working on El Capitan (10.11).
> 
> http://dflect.net/context-typeset-tool/ 
> <http://dflect.net/context-typeset-tool/>
> 
> 
> Best,
> 
> -- 
> Tom
> 

___
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 align in side by side paragraphs

2016-05-06 Thread Tom Harrop
Hello,

How can I make both/all columns in a paragraphs environment align flush bottom, 
e.g. for addressing a letter? I saw a line in the manual about using top=\vfill 
but I couldn’t get this to work. Should I be using TABLE here?

Thanks (again),

Tom

\starttext

\defineparagraphs[Par]
  [n=2, before={\blank}, after={\blank}] 

\setupparagraphs[Par][1]
  [align=flushleft]
\setupparagraphs[Par][2]
  [align=flushright]

\startPar
  \vfill % I hoped this would push bob’s address down
  Bob’s name \crlf
  Company \crlf
  Bob’s street \crlf
  Bob’s town \crlf
  Bob’s country
\Par
  My street \crlf
  My town \crlf
  My country 
  \blank
  My phone number
  \blank
  Today's date
\stopPar

Dear Bob,

Blah blah blah

\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] Overlapping terms in description lists

2016-04-23 Thread Tom Harrop
Thanks for the reply.

> On 21 Apr 2016, at 1:18 pm, luigi scarso  wrote:
> 
> the title is in  a \vtop and not a \vbox, and its height is fixed to \strutht 
> (and the depth to \strutdp)
> so basically the title is one line.

OK, I’ll do my best to stick to one line.

I guess it would be better to use a paragraphs or column environment for long 
labels but the ConTeXt is generated by pandoc, which writes 'definition lists' 
as \startdescription \stopdescription.___
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] Overlapping terms in description lists

2016-04-20 Thread Tom Harrop

Hello again,

The document I'm typsetting uses description lists. To keep the list 
entries close together I'm using before=\nowhitespace and 
after=\nowhitespace in \definedescription. This is fine so long as the 
term is short, but when the term wraps to two lines it can overlap with 
the term below.


Here's an example:


\setuppapersize[A5]
\setupalign[flushleft, nothyphenated]

\definedescription[description]
[before=\nowhitespace, after=\nowhitespace]

\starttext

\startdescription{Short term:}
  Items with short terms are fine.
\stopdescription

\startdescription{This is a really long term:}
  Long term + short definition
\stopdescription

\startdescription{This is a really long term:}
  ... the long term of the item above the mashes into the term below.
\stopdescription

\stoptext


And here is an attempt at a plain text representation of what I'm trying 
to achieve:



Short term: Items with short terms are fine.
This is a really
long term:  Long term + short definition
This is a really
long term:  ... the long term of the item above the mashes 
into the

term below.


Is this possible using \definedescription? I tried some combinations of 
\vfill and \framed but I couldn't get it to work.


Sorry to repeatedly post newbie questions. Any tips would be appreciated!

Thanks,

Tom

___
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] Move textrule closer to head

2016-04-13 Thread Tom Harrop

On 13/04/16 18:47, Pablo Rodriguez wrote:
Hi Tom, how about another rule? (From 
http://wiki.contextgarden.net/Titles#Titling_Style.) 
\setuphead[subsubsection] [after=\hrule\blank] I hope it helps, Pablo 


Ahh, it's perfect. I missed that page of the wiki! 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] Move textrule closer to head

2016-04-13 Thread Tom Harrop

Hello,

I'm a ConTeXt beginner. I'm working on a document where I would like a 
textrule under my subsubsection headings. If I use after=\textrule, the 
placement of the textrule is too far from the heading, and I haven't 
found a way to move it closer to the heading either with \setuphead or 
\setuptextrules.


Here is an example:


\setuphead[subsubsection]
  [after=\textrule]

\starttext

\subsubsection{I would like less space between this heading and its 
textrule}


Here is some text.

\stoptext



I realise that the spacing looks pretty good in the PDF produced by this 
example, so you'll just have to believe me that it needs to be closer to 
the headings in my document.


I'd appreciate any help on this, including suggestions of 
alternative/better methods to do this.


Thanks for reading,

Tom
___
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] Possible typo in source file type-imp-lato.mkiv

2016-03-20 Thread Tom Harrop

Hi,

I was having trouble getting italics to work for a PDF that uses the 
Lato font. Bold and 'normal' were rendering just fine.


In the log I saw some lines like:

fonts   > defining > font with asked name 'lato-reglta' is not 
found using lookup 'file'

fonts   > defining > unknown font 'lato-reglta', loading aborted


I noticed Context was searching for *reglta (with a lower case "L") 
rather than regita (with an "i").


Looking at the file 
http://source.contextgarden.net/tex/context/base/type-imp-lato.mkiv I 
can see that all the synonyms point to *lta rather than *lta inside the 
\definefontsynonym commands.


I tried changing all the instances of *lta to *ita in type-imp-lato.mkiv 
on two different systems (Ubuntu and MacOS) and in both cases I 
subsequently got italics in my PDF.


I suppose this could be a bug. Is this list the right place to report it?

My apologies if it is in fact something I was doing wrong!

Thanks,

Tom
___
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] Apply a start/stop command pair to certain subsections

2016-03-10 Thread Tom Harrop

Hello,

I'm a new Context user, and I have a question about conditional 
formatting of paragraphs.


I'm typsetting a CV. I am using pandoc to generate the .tex file from 
Markdown before compiling the pdf with context. Because pandoc inserts 
the body of the document from one variable ($body), I would like to 
avoid using e.g. \startmycommand and then \stopmycommand to modify 
individual subsections.


What I can do from Markdown is tag the headings, so that (for example) 
the "Publications" subsection starts as 
"\subsection[pubs]{Publications}". I would like to know if there is a 
way to automatically apply a start/stop command pair to the "pubs" 
subsection(s), or if it better to do this with an external script that 
modifies the .tex file before I call context.


Below is an example where I can get the output I'm looking for 
(paragraphs in the "pubs" subsection have a hanging indent) by defining 
a start/stop command pair and manually applying it to the "pubs" 
subsection.


If anyone has any tips to apply this automatically to the "pubs" 
subsection(s) but not the "text" subsections, I'd appreciate it! I have 
searched the wiki, read through the "Context: an excursion" document and 
looked around in the mail archive and stackexchange, but I didn't find 
exactly what I want.


Many thanks for reading,

Tom Harrop

---Example below---

\definestartstop [negindent] [
  before={%
\startnarrower[left]%
\setupindenting[-\leftskip,yes,first]%
\setuphead[subsection][indentnext=yes]%
  },
  after=\stopnarrower,
]

\starttext

\subsection[text]{Normal text}

I would like the text in this subsection to appear without indents.

In the following subsection I need hanging indents.

\startnegindent

\subsection[pubs]{Publications}

Jaynes, Julian. {\os 1990}. {\em The Origin of Consciousness in the 
Breakdown of the Bicameral Mind}. New York City: Houghton Mifflin Company.


Pye, David. {\os 1995}. {\em The Nature and Art of Workmanship}. London: 
The Herbert Press.


Persson, Tomas. {\os 2008}. {\em Pictorial Primates: A Search for Iconic 
Abilities in Great Apes}. Lund: Lund University Cognitive Studies.


\stopnegindent

\subsection[text]{More text}

This subsection should be back to normal.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua.


\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] Is fine-grained grid control possible?

2013-04-20 Thread Tom Ellis
On Fri, Apr 19, 2013 at 09:58:47AM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 
 I asked a question on tex.stackoverflow, and it was suggested ConTeXt could
 help and that I should repost my question here.
 

  http://tex.stackexchange.com/questions/108850/is-fine-grained-grid-control-possible
 
 I want to make a variety of checklists which are essentially based on a grid
 layout.  I care about having fine-grained control over the exact placement
 of labels and boxes.  I do not care about paragraphs, hypenation, equations,
 or anything like that which I know TeX is very good at.
 
 Is ConTeX a good fit for my needs?  How could I do it?
 
 I've already though about Tikz and PGF but I don't think they give me enough
 fine-grained control.  If I fail to find a way to solve my problem using TeX
 I will probably explore SVG and PostScript.
 
 Here are some examples of the kind of thing I would like to do that I pulled
 from an image search for checklist
 
 * 
 https://studenttechportfolio.wikispaces.com/file/view/checklist.png/34343465/checklist.png
 * 
 http://checklisttemplate911.com/wp-content/uploads/2012/02/checklist-template12.jpg
 * http://img.docstoccdn.com/thumb/orig/72289360.png
 * http://www.bimmerfest.com/forums/attachment.php?attachmentid=88940stc=1
 * 
 http://theorganisedhousewife.com.au/shop/wp-content/uploads/2012/12/conference-checklist.jpg
 * 
 http://2.bp.blogspot.com/-piQobSY-8Mw/Tcihq580IgI/AgE/Fd0AQD1e69Y/s1600/Operator_Page_1.jpg
 * 
 http://www.dbh.govt.nz/UserFiles/Image/Publications/building/weathertightness/remediation-checklist-2.gif
 * http://spxcooling.com/images/M92-1447C-s.jpg
 
 Most of these are simple tables with itemized lists. I don't think
 that you need grid or any other fine-grained control to get this
 output. So, the short answer is yes, ConTeXt can easily do such
 checklists.

Agreed, but for the checklists I want to make I would prefer more
fine-grained control.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Is fine-grained grid control possible?

2013-04-20 Thread Tom Ellis
On Fri, Apr 19, 2013 at 02:13:44PM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 
 On Fri, Apr 19, 2013 at 09:58:47AM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 
 Is ConTeX a good fit for my needs?  How could I do it?
 
 Here are some examples of the kind of thing I would like to do that I 
 pulled
 from an image search for checklist
 
 Most of these are simple tables with itemized lists. I don't think
 that you need grid or any other fine-grained control to get this
 output. So, the short answer is yes, ConTeXt can easily do such
 checklists.
 
 Agreed, but for the checklists I want to make I would prefer more
 fine-grained control.
 
 Then please give an example of the type of checklists that you want
 to make rather than picking random samples from google. Otherwise,
 it is impossible to answer whether what you have in mind is feasible
 in ConTeXt or not.

I care about having fine-grained control over the exact placement of labels
and boxes.  That is, can I place boxes and text labels at exact coordinates
on a page, either in absolute terms or relative to each other?  That's all
I'm after.

Tom

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

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


[NTG-context] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
I asked a question on tex.stackoverflow, and it was suggested ConTeXt could
help and that I should repost my question here.


http://tex.stackexchange.com/questions/108850/is-fine-grained-grid-control-possible

I want to make a variety of checklists which are essentially based on a grid
layout.  I care about having fine-grained control over the exact placement
of labels and boxes.  I do not care about paragraphs, hypenation, equations,
or anything like that which I know TeX is very good at.

Is ConTeX a good fit for my needs?  How could I do it?

I've already though about Tikz and PGF but I don't think they give me enough
fine-grained control.  If I fail to find a way to solve my problem using TeX
I will probably explore SVG and PostScript.

Here are some examples of the kind of thing I would like to do that I pulled
from an image search for checklist

* 
https://studenttechportfolio.wikispaces.com/file/view/checklist.png/34343465/checklist.png
* 
http://checklisttemplate911.com/wp-content/uploads/2012/02/checklist-template12.jpg
* http://img.docstoccdn.com/thumb/orig/72289360.png
* http://www.bimmerfest.com/forums/attachment.php?attachmentid=88940stc=1
* 
http://theorganisedhousewife.com.au/shop/wp-content/uploads/2012/12/conference-checklist.jpg
* 
http://2.bp.blogspot.com/-piQobSY-8Mw/Tcihq580IgI/AgE/Fd0AQD1e69Y/s1600/Operator_Page_1.jpg
* 
http://www.dbh.govt.nz/UserFiles/Image/Publications/building/weathertightness/remediation-checklist-2.gif
* http://spxcooling.com/images/M92-1447C-s.jpg

Thanks,

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

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


Re: [NTG-context] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
On Fri, Apr 19, 2013 at 09:58:47AM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 
 I asked a question on tex.stackoverflow, and it was suggested ConTeXt could
 help and that I should repost my question here.
 

  http://tex.stackexchange.com/questions/108850/is-fine-grained-grid-control-possible
 
 I want to make a variety of checklists which are essentially based on a grid
 layout.  I care about having fine-grained control over the exact placement
 of labels and boxes.  I do not care about paragraphs, hypenation, equations,
 or anything like that which I know TeX is very good at.
 
 Is ConTeX a good fit for my needs?  How could I do it?
 
 I've already though about Tikz and PGF but I don't think they give me enough
 fine-grained control.  If I fail to find a way to solve my problem using TeX
 I will probably explore SVG and PostScript.
 
 Here are some examples of the kind of thing I would like to do that I pulled
 from an image search for checklist
 
 * 
 https://studenttechportfolio.wikispaces.com/file/view/checklist.png/34343465/checklist.png
 * 
 http://checklisttemplate911.com/wp-content/uploads/2012/02/checklist-template12.jpg
 * http://img.docstoccdn.com/thumb/orig/72289360.png
 * http://www.bimmerfest.com/forums/attachment.php?attachmentid=88940stc=1
 * 
 http://theorganisedhousewife.com.au/shop/wp-content/uploads/2012/12/conference-checklist.jpg
 * 
 http://2.bp.blogspot.com/-piQobSY-8Mw/Tcihq580IgI/AgE/Fd0AQD1e69Y/s1600/Operator_Page_1.jpg
 * 
 http://www.dbh.govt.nz/UserFiles/Image/Publications/building/weathertightness/remediation-checklist-2.gif
 * http://spxcooling.com/images/M92-1447C-s.jpg
 
 Most of these are simple tables with itemized lists. I don't think
 that you need grid or any other fine-grained control to get this
 output. So, the short answer is yes, ConTeXt can easily do such
 checklists.

Agreed, but for the checklists I want to make I would prefer more
fine-grained control.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
On Fri, Apr 19, 2013 at 02:13:44PM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 On Fri, Apr 19, 2013 at 09:58:47AM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 
 Is ConTeX a good fit for my needs?  How could I do it?
 
 Here are some examples of the kind of thing I would like to do that I 
 pulled
 from an image search for checklist
 
 Most of these are simple tables with itemized lists. I don't think
 that you need grid or any other fine-grained control to get this
 output. So, the short answer is yes, ConTeXt can easily do such
 checklists.
 
 Agreed, but for the checklists I want to make I would prefer more
 fine-grained control.
 
 Then please give an example of the type of checklists that you want
 to make rather than picking random samples from google. Otherwise,
 it is impossible to answer whether what you have in mind is feasible
 in ConTeXt or not.

I care about having fine-grained control over the exact placement of labels
and boxes.  That is, can I place boxes and text labels at exact coordinates
on a page, either in absolute terms or relative to each other?  That's all
I'm after.

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

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


Re: [NTG-context] Is fine-grained grid control possible?

2013-04-19 Thread Tom Ellis
On Fri, Apr 19, 2013 at 04:35:52PM -0400, Aditya Mahajan wrote:
 On Fri, 19 Apr 2013, Tom Ellis wrote:
 I care about having fine-grained control over the exact placement of labels
 and boxes.  That is, can I place boxes and text labels at exact coordinates
 on a page, either in absolute terms or relative to each other?  That's all
 I'm after.
 
 http://wiki.contextgarden.net/Layers
 
 This allows you to place any content at any location on a page,
 inside a frame, on an image, etc.

Very nice, thank you Aditya.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] MetaPost Animations

2012-12-29 Thread Tom Fossen

Op 29-12-12 16:42, Mojca Miklavec schreef:

On Sat, Dec 29, 2012 at 3:55 AM, Troy Henderson wrote:

Are the gears more correct now?


[ ... ]

Bonus question: independent from the gears shape (assume that it stays
as it is), there is something fundamentally wrong with the animation.
What is that? ;)




I think you draw our attention to the question: which one of the wheals 
is driving which one?


Tom


--
Tom Fossen
Amersfoort
Netherlands
___
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] [***SPAM***] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Tom
Minimals MKIV ignores the structureenvironment blocks when the suffix is
'matter' but applies them if the suffix is 'part.' Furthermore, they are
applied in \starttext if between \startfrontmatter -- \stopfrontmatter, etc.
blocks and error if between \startfrontpart -- \stopfrontpart, etc. blocks.
The following code executes but does not apply the environment block
commands. Commenting out the three \startstructureblockenvironment commands
with 'matter arguments and uncommenting the three 'part' commands will
cause the environment block commands to be executed.

Ironically, the \start-\stop pairs between \starttext and \stoptext error if
'part' is used but execute if 'matter.' 

\def\MyFrontMatterCommand#1#2% #1 is number, #2 is text
 {\framed[frame=off,align=middle,width=broad]
 {\switchtotypeface[ChapterStart] #2}}

\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=off]
 {\vbox{\centerline{\headtext{chapter} #1}\par\blank{\centerline{#2}


\definepagebreak[mychapterpagebreak][yes,header,right]

\startstructureblockenvironment[frontmatter]
%ignored if frontmatter, applied if frontpart
%\startstructureblockenvironment[frontpart]

\setuppagenumbering[state=start,location=bottom,conversion=romannumerals] 

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.5in]}]

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]
%ignored if bodymatter, applied if bodypart
%\startstructureblockenvironment[bodypart]

\setuppagenumbering[alternative=doublesided,location=]

\setuppagenumbering[state=start,location=bottom,conversion=numbers] 

\setuphead[chapter]
 [command=\MyChapterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}
  \placeinitial] 

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]
%ignored if back, applied if backpart
%\startstructureblockenvironment[backpart]

\setuphead[title]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]

\setuphead[chapter]
 [command=\MyFrontMatterCommand,textstyle=\ss\bfd,
  header=empty,footer=chapter,page=mychapterpagebreak,
  number=no,after={\blank[0.25in]}]


\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors if startfrontpart

%sample front matter
\input knuth 

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\chapter{Introduction} 
\input knuth  

\stopfrontmatter

\startbodymatter %errors if startbodypart

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
Lorem {\index{lorem}}ipsum dolor sit amet, consectetur adipiscing elit.
Maecenas ipsum turpis, imperdiet vel aliquam eu, iaculis at lorem. Proin ut
orci ac dui sodales commodo vel quis sem. Etiam nunc odio, luctus non cursus
elementum, elementum non. 

\stopbodymatter

\startbackmatter %errors if startbackpart
\title{Appendices}
\page[blank]
\completeindex
\stopbackmatter

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




___
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] Minimals ignores structureblockenvironment for frontmatter etc.

2011-03-20 Thread Tom
Thank you, Wolfgang. Your table is most helpful. This can probably be found
in the documentation but not where I looked. This probably relates to the
recent discussion regarding manuals for novices.

My observation is that \completecontent and \completeindex are treated like
chapter starts in that 'Contents' and 'Index' are formatted as if they were
chapter titles.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, March 20, 2011 9:49 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Minimals ignores structureblockenvironment for
frontmatter etc.


Am 20.03.2011 um 14:37 schrieb Tom:

 Minimals MKIV ignores the structureenvironment blocks when the suffix is
 'matter' but applies them if the suffix is 'part.' Furthermore, they are
 applied in \starttext if between \startfrontmatter -- \stopfrontmatter,
etc.
 blocks and error if between \startfrontpart -- \stopfrontpart, etc.
blocks.
 The following code executes but does not apply the environment block
 commands. Commenting out the three \startstructureblockenvironment
commands
 with 'matter arguments and uncommenting the three 'part' commands will
 cause the environment block commands to be executed.

Sectionblocks have two names, one which you use for the settings and another
one when you enable it in your text, e.g. frontmatter has the internal name
frontpart but in the document you use it with frontmatter.


| Name  | Command (\startXXX ... \stopXXX) |
|---
| frontpart | frontmatter  |
| bodypart  | bodymatter   |
| appendix  | appendices   |
| backpart  | backmatter   |


Wolfgang


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

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

___

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

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


[NTG-context] Table of Contents entries without page numbers

2011-03-20 Thread Tom
It is relatively easy to create table of contents entries without chapter
numbers, but I can't figure out how to include entries without page numbers.
I want to place a title page, 'Appendices,' in the ToC after the last
chapter and before the first appendix. I can easily create the page using
\title{Appendices} but it doesn't show up in the ToC. Using
\chapter{Appendices} creates a ToC entry with a page number and an appendix
number, which can be eliminated. There must be some way of placing headers
within a ToC. 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





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

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


Re: [NTG-context] Is Minimals ready for non-developers to use? (Tom)

2011-03-14 Thread Tom
Dalyoung,

To the contrary, You have been most helpful. Installing the latest version
of Minimals worked fine but I wonder why they even advertise that there is a
stable version to be downloaded. I guess they mean a stable version of MKII.
I had the same experience that you had with the Introduction not showing up
in the TOC. Do you know how to report a bug?

Thank you for your assistance and moral support. For awhile I thought I was
going nuts.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Jeong Dalyoung
Sent: Monday, March 14, 2011 5:16 AM
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Is Minimals ready for non-developers to use?
(Tom)


Dear Tom,

I am sorry that my experience is not help for you.
I am usning Mac OS X.
I just downloaded first-setup.sh and run it. Then it installs minimal and
makes formats well.

Minimal's current version: 2011.02.25 22:03
This is LuaTeX, Version beta-0.65.0-2010121316

However, I believe that Mojca's suggestion will relieve you from the install
problem.

Hope you succeed to install stable ConTeXt.

Best regards,

Dalyoung

___
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] Is Minimals ready for non-developers to use? (Tom)

2011-03-14 Thread Tom
Thank you for explaining this, Mojca. Knowing that it will be fixed sometime 
before September gives me hope. In the meantime, I think I have a workaround 
that, although awkward, will create a correct PDF. What I will do is create a 
PDF that is correct except for the TOC that Context generates, create a correct 
TOC PDF with another tool, then create a new PDF with the good pages from the 
original PDF and the bad TOC replaced by the good one.

Is there a list of known bugs somewhere? That would eliminate a lot of 
frustration and your having to deal with problems that are already being 
handled.

Is it possible for one to create a new font style? For example, if I have a 
need for two different sanserif fonts (Iwona and Helvetica for the sake of 
argument) to be used sporadically throughout a document. It would be nice to be 
able to do something like \ss1 to select the first one and \ss2 to select the 
second one. \ss to select the first one and \aa (or two other letters) to 
select the other.

Thanks,

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: Mojca Miklavec [mailto:mojca.miklavec.li...@gmail.com] 
Sent: Monday, March 14, 2011 2:56 PM
To: mailing list for ConTeXt users
Cc: Tom
Subject: Re: [NTG-context] Is Minimals ready for non-developers to use? (Tom)

On Mon, Mar 14, 2011 at 14:22, Tom wrote:
 Dalyoung,

 To the contrary, You have been most helpful. Installing the latest version
 of Minimals worked fine but I wonder why they even advertise that there is a
 stable version to be downloaded.

When minimals were created, a new stable version was released
approximately once a week. It used to be a problem to get the beta
version working since beta often depended on a new version of luatex
(which was also released every two/three weeks, but often not
synchronized with ConTeXt releases).

Now Hans only releases a stable version twice a year or so. The
problem is that minimals have not been designed with that in mind and
there is only a single version of texmfcnf.lua and only a single
version of luatex binary. Consequently minimals can only work either
with beta or with current when the two versions diverge, but not with
both and beta has priority.

I need to change the way the distribution works entirely, from the
grounds up (I have many parts ready, but not ready to publish yet).

An easy solution would be to create another mirror and only provide a
working current version there.

 I guess they mean a stable version of MKII.
 I had the same experience that you had with the Introduction not showing up
 in the TOC. Do you know how to report a bug?

You don't need to report it. I'm aware of that flaw. I could do a
temporary fix, but I would prefer to fix it properly. I'm sorry that
it alredy took me several years to address those issues, but I promise
to fix it before the conference. Properly.

You also need to keep in mind that even though it is advertized as
stable, bugs won't be fixed (many project often have at least two
branches of development - one for fixing the released version and one
for real development; the released version should get bugfixes, but in
context development that doesn't and won't happen unless some
volunteer starts carefully checking the new code and only applies
bugfixes to the stable version).

So most people that use ConTeXt actively need bugfixes very often and
the only way to get the bugs fixed is to use the latest version. Well,
latest version comes with its own bugs, but at least you have a chance
to get them fixed quickly.

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
___


[NTG-context] Is Minimals ready for non-developers to use?

2011-03-13 Thread Tom
Dalyoung,

I attempted to install Minimals on my Windows system--twice--to no avail. I
selected the current option because I don't want to be constantly updating
the software when I am not using anything that remotely resembles cutting
edge features. I am using a short, lower-case directory name as suggested.
MKII appears to work fine but I get the following messages when I try to
compile Hello.tex:

MTXrun | forcing cache reload
MTXrun | resolvers: loading configuration file
'C:/ctm/context/tex/texmf/web2c/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-context.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

I also get similar errors when attempting to run the following:

mtxrun --selfupdate
mtxrun --generate
luatools --generate
context --make

From the message archives I see that others have had similar problems but I
don't understand what the suggested fixes were. One massage stated that the
instructions on ConTeXtGarden were deprecated, but I don't know if the
instructions have been changed since that time.

Do you have any idea what the problem might be?  

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Jeong Dalyoung
Sent: Sunday, March 13, 2011 8:49 AM
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV

Dear Tom,



What version are you using? 

I am using minimal not TeXlive2010. Of course, there are some bugs in beta.
But it would be fixed soon.
Moreover, you can have more than one Minimal folder. So it is easy to use
stable version if the beta has bugs.



BTW, where did you read to use front part instead of frontmatter? 

There was a thread whose title is Roman Page numbers.
And among the mails on 2009. 2. 4, there was a sample written by Wolfgang .

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]

\setuplist[chapter][pageconversionset=pagenumber]

\startstructureblockenvironment[frontpart]

\setupuserpagenumber[numberconversion=romannumerals]
\setuppagenumber[number=1]

\stopstructureblockenvironment

\startstructureblockenvironment[bodypart]

\setuppagenumber[number=1]

\stopstructureblockenvironment

\starttext

\startfrontmatter

\completecontent[criterium=all]

\chapter{Intro}

\input tufte

\stopfrontmatter

\startbodymatter

\chapter{knuth}

\input knuth

\stopbodymatter

\stoptext

Mailing list is a good place for me to learn ConTeXt. There are so many
things which are not described in the manual.
I cannot give you a solution. But many experts who are reading this list
will give you a solution.

Cheers,

Dalyoung

___
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] Am not getting Roman numeral page numbers in MKIV

2011-03-12 Thread Tom
Thank you for taking the time to look into this for me, Dalyoung. I changed
bodymatter to bodypart in two places and got the same results as you did.
Page numbering is reset to 1 for the Introduction. However, I still don't
get Roman numerals in the front part and, as you also experienced, the TOC
is not listed in the TOC.

I am using Texlive 2010, which I downloaded on February 11, just two months
ago yesterday. One would expect such basic functions to be rock solid in
MKIV by now.

What version are you using? 

I have avoided downloading Minimals for the reasons mentioned in the thread
currently running on documentation plus that I don't want to be constantly
downloading new versions because of serious bugs and having simple things
that formerly worked to no longer work due to one of these bugs. I am not
using advanced features by any means. This is very frustrating.

BTW, where did you read to use front part instead of frontmatter? 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Jeong Dalyoung
Sent: Saturday, March 12, 2011 3:35 AM
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV

Dear Tom,

Since I am an enduser of ConTeXt, I couldn't expalin what happens here.
 I just run your code in the mail and got the following results.

 
 1. Front matter page numbers are not lower-case Roman numerals although
they
 are listed as such in the TOC.

The Roman numerals in both front part and in TOC.
 
 2. The Introduction is not listed in the TOC.

Same as your output. No 

 3. Page numbering isn't reset to 1 in the bodymatter section.
 
Same as you, but if I change \startstructureblockenvironment[bodymatter] to
\startstructureblockenvironment[bodypart], then Introduction starts from
page 1.
So I guess that there are something between [bodymatter] and [bodypart].

best regards,

Dalyoung


___
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] Minimals installation problem

2011-03-12 Thread Tom
After installing Minimals apparently successfully on a Windows Vista system,
I got the following messages when executing context hello:

MTXrun | forcing cache reload
MTXrun | resolvers: loading configuration file
'C:/Context/tex/texmf/web2c/texmfcnf.lua'
MTXrun | resolvers
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-context.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

The directory name, Context, is not longer than eight characters and has no
embedded spaces, so that should not be a problem. Executing texexec hello
works fine. However, I want to use MKIV not MKII. BTW, I chose the current
option to get a stable version.

What could be the problem? 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Am not getting Roman numeral page numbers in MKIV

2011-03-11 Thread Tom
In MKIV, I am still unable to get lower-case Roman numeral page numbers on
the front matter pages, but if I use frontpart in the \defineconversionset
instead of frontmatter, the page numbers in the ToC are converted. Where is
a good explanation of the structureblockenvironment?

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
%pagenumbers in TOC not converted if frontmatter

\definestructureconversionset[bodymatter:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]

\definehead [intro][chapter]
\setuphead  [intro][number=no]


\startstructureblockenvironment[frontmatter] 
%whether frontpart or frontmatter seems to make no difference

\setuppagenumbering
 [conversion=romannumerals, location=bottom]
\setuppagenumber[number=1]

\definecombinedlist [content][intro,chapter,section]

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]

\setuppagenumbering
 [conversion=numbers, location=bottom]
\setuppagenumber[number=1]

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]

\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors on startfrontpart

%sample front matter
\input knuth

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\stopfrontmatter

\startbodymatter


\intro{Introduction}
\input knuth

\setupheadnumber[chapter][0] %resets first chapter number to 1
\setuppagenumbering
 [state=start, 
  conversion=numbers, location=bottom]

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
\input knuth

\stopbodymatter

\startbackmatter

\stopbackmatter

\stoptext 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Friday, March 11, 2011 8:29 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Am not getting Roman numeral page numbers in MKIV


Am 11.03.2011 um 06:00 schrieb Jeong Dalyoung:

 Also I use \startstructureblockenvironment[backpart] instead of
\startsectionblockenvironment[backmatter].

You can use both but we should mention in manuals, the wiki etc. only the
second.

Wolfgang


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

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

___

___
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] Am not getting Roman numeral page numbers in MKIV

2011-03-11 Thread Tom
I used to think I was of average intelligence but I can't figure out to do
the most basic thing in ConTeXt. My current problems with this simple code
are:

1. Front matter page numbers are not lower-case Roman numerals although they
are listed as such in the TOC.
2. The Introduction is not listed in the TOC.
3. Page numbering isn't reset to 1 in the bodymatter section.

Obviously, I'm not reading the correct documentation or am too stupid to
understand what I am reading.

\definehead [intro][chapter]
\setuphead  [intro][incrementnumber=no]

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
%pagenumbers in TOC not converted if frontmatter

\definestructureconversionset[bodymatter:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\setuplist[intro][pageconversionset=pagenumber]


\startstructureblockenvironment[frontmatter]
%whether frontpart or frontmatter seems to make no difference

\setuppagenumber[number=1]

\setuppagenumbering[state=start,location=bottom,conversion=romannumerals] 

\definecombinedlist [content][intro,chapter,section]

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]

\setuppagenumber[state=start,number=1]

\setuppagenumbering[state=start,location=bottom,conversion=numbers] 

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]

\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors on startfrontpart

%sample front matter
\input knuth  %page numbers not being converted to Roman numerals

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\stopfrontmatter

\startbodymatter

\intro{Introduction}  %is not appearing in TOC
\input knuth  %page number not being set to 1

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
\input knuth

\stopbodymatter

\startbackmatter

\stopbackmatter

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com


___
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] Am not getting Roman numeral page numbers in MKIV

2011-03-10 Thread Tom
The following code is intended to produce lower-case Roman numeral page
numbers for the first 3 pages before switching to Hindu-Arabic numerals
starting with the Introduction. However, I get Hindu-Arabic numerals instead
of the lower-case Roman numerals page numbers.

\definehead [intro][chapter]
\setuphead  [intro][number=no]

\setuppagenumbering
 [state=start, 
  conversion=romannumerals, location=bottom]

\startsectionblockenvironment[frontpart]

\definecombinedlist [content][intro,chapter,section]

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]

\stopsectionblockenvironment

\startsectionblockenvironment[backmatter]

\stopsectionblockenvironment

\starttext 
\setuppagenumber[state=start]

\startfrontmatter

%sample front matter
\input knuth

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\stopfrontmatter

\startbodymatter

\setuppagenumber[state=start,conversion=number,number=1]

\intro{Introduction}
\input knuth

\setupheadnumber[chapter][0] %resets first chapter number to 1

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
\input knuth

\stopbodymatter

\startbackmatter

\stopbackmatter

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Roman numeral page numbers produced in MKII

2011-03-10 Thread Tom
After posting the message about the following code not generating lower-case
Roman numeral page numbers, I tested the code with MKII and it works fine.
There must be a difference in how page number conversion is done between
MKII and MKIV.

\definehead [intro][chapter]
\setuphead  [intro][number=no]

\setuppagenumbering
 [state=start, 
  conversion=romannumerals, location=bottom]

\startsectionblockenvironment[frontpart]

\definecombinedlist [content][intro,chapter,section]

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]

\stopsectionblockenvironment

\startsectionblockenvironment[backmatter]

\stopsectionblockenvironment

\starttext 
\setuppagenumber[state=start]

\startfrontmatter

%sample front matter
\input knuth

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\stopfrontmatter

\startbodymatter

\setuppagenumber[state=start,conversion=number,number=1]

\intro{Introduction}
\input knuth

\setupheadnumber[chapter][0] %resets first chapter number to 1
\setuppagenumbering
 [state=start, 
  conversion=numbers, location=bottom]

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
\input knuth

\stopbodymatter

\startbackmatter

\stopbackmatter

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Fonts in ConTeXt is now available from boekplan.com

2011-03-01 Thread Tom
Is this book going to be available in the U.S.? If so, where can I find it?
If not, may I suggest that you upload your PDFs to CreateSpace.com and have
it made available to buyers through Amazon.com. I normally don't like
limiting a book's availability to a single reseller, but for a niche book it
makes sense. There is no cost to upload the book but an optional $39 fee
that reduces print costs dramatically. There is no inventory cost as books
are printed only when customers order copies. If multiple titles are to be
published, using Lightning Source may make more sense for serving the U.S.
market.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Marco Pessotto
Sent: Tuesday, March 01, 2011 2:19 PM
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] Fonts in ConTeXt is now available from
boekplan.com

Taco Hoekwater t...@elvenkind.com writes:

 After some delays, thankfully the book Fonts in ConTeXt is now
 finally available for immediate ordering.

Due to the high costs of shipping and bank payment, could you tell me if
the book Layouts in ConTeXt will be out as scheduled in a month (so I'll
wait to buy them both, saving some logistic money)?

As always, thanks for all you do.

Bests

-- 
Marco


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

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

___

___
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] (no subject)

2011-03-01 Thread Tom
The following code seems to ignore both justification (to the extent that a
mono-spaced font could be justified) and the right margin. I recall seeing
something that deals with this problem somewhere but can't recall where.

\starttext
\tt 
Janet had gone away to get the bath ready, when my aunt, to my great alarm,
became in one moment rigid with indignation, and had hardly voice to cry
out, {\quotation Janet! Donkeys!}
Upon which, Janet came running up the stairs as if the house were in flames,
darted out on a little piece of green in front, and warned off two
saddle-donkeys, lady-ridden, that had presumed to set hoof upon it; while my
aunt, rushing out of the house, seized the bridle of a third animal laden
with a bestriding child, turned him, led him forth from those sacred
precincts, and boxed the ears of the unlucky urchin in attendance who had
dared to profane that hallowed ground.
\rm  
\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] [***SPAM***] \type works differently in MKIV than MKII

2011-02-27 Thread Tom
The following code creates the desired output in MKII but the \par commands
appear to be ignored by MKIV:

\starttext

\type+{\framed[frame=off,align=middle]+ \par
\type+  \{\placefigure [here]+ \par
\type+   {none}+ \par
\type+   {\externalfigure[frontispiece][width=\textwidth]}}}+ \par
\par

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




___
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] \stretched in chapter titles in MKII

2011-02-23 Thread Tom
I can actually use this for books that don't have chapter titles because I
like how it appears with a font like Iwona-light.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Tuesday, February 22, 2011 5:15 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \stretched in chapter titles in MKII


Am 22.02.2011 um 14:42 schrieb Tom:

 I'm sorry for being so thick but this code errors out when I run it under
 TexLive 2010 MKIV. The problem seems to be in the processing of
textcommand,
 so I commented it out. The error went away and the \ChapterNumberCommand
 seemed to execute correctly. However, I want to stretch the title as well
as
 the chapter number, so that is not a solution. I couldn't find
documentation
 for \structuretitle and \structurenumber and am completely lost.

Use the ConTeXt minimals or use a more pleasant layout for your headers,
the stretched titles don't look very nice.

Wolfgang


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

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

___

___
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] Setting starting chapter number

2011-02-23 Thread Tom
Thanks, Wolfgang. That did the trick.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Wednesday, February 23, 2011 2:17 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Setting starting chapter number


Am 23.02.2011 um 05:34 schrieb Tom:


I have the need to start a document on a chapter number greater than 1 but
cannot find the command that sets the starting chapter number. I assume that
such a command exists and have probably overlooked the right one.

http://wiki.contextgarden.net/Reference/en/setupheadnumber

Wolfgang


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

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


Re: [NTG-context] including pdf

2011-02-23 Thread Tom
I have a somewhat related question in that I am creating a document that
will be used as an appendix to other documents. So, I can control the
various aspects of the PDF that is created and use \copypages. What I want
to do is number the pages A-1, etc. (or B-1, etc. depending on which
appendix it will be placed). That will avoid coordinating page numbers with
those in the documents to which it will be appended. What I can't figure out
how to do is to prefix the pagenumber with A- (or B-). It is probably a
simple matter but I can't figure out how to do it.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



___
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] \stretched in chapter titles in MKII

2011-02-22 Thread Tom
I'm sorry for being so thick but this code errors out when I run it under
TexLive 2010 MKIV. The problem seems to be in the processing of textcommand,
so I commented it out. The error went away and the \ChapterNumberCommand
seemed to execute correctly. However, I want to stretch the title as well as
the chapter number, so that is not a solution. I couldn't find documentation
for \structuretitle and \structurenumber and am completely lost.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Tuesday, February 22, 2011 3:40 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \stretched in chapter titles in MKII


Am 22.02.2011 um 01:18 schrieb Tom:

 The code that follows works fine in MKII but doesn't stretch the chapter
 title in MKIV. What must I change? Also, I want to convert the chapter
 number to text before stretching it. Has anything been done to the
routines
 that convert numerals to alpha characters since last summer?

Use \structuretitle and \structurenumber to access the values.

\defineconversion [tom] [One,Two,Three,Four,Five,.]

\define[1]\ChapterTextCommand
  {\line{\expanded{\stretched{\structuretitle

\define[1]\ChapterNumberCommand
  {\line{\expanded{\stretched{Chapter
\convertnumber{tom}{\structurenumber}

\setuphead
  [chapter]
  [  alternative=middle,
   style=\ssc,
   textstyle=\bf,
 numberstyle=\tf,
 textcommand=\ChapterTextCommand,
   numbercommand=\ChapterNumberCommand]

\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext

Wolfgang


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

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

___

___
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] Setting starting chapter number

2011-02-22 Thread Tom
I have the need to start a document on a chapter number greater than 1 but
cannot find the command that sets the starting chapter number. I assume that
such a command exists and have probably overlooked the right one.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] \stretched in chapter titles in MKII

2011-02-21 Thread Tom


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com
The code that follows works fine in MKII but doesn't stretch the chapter
title in MKIV. What must I change? Also, I want to convert the chapter
number to text before stretching it. Has anything been done to the routines
that convert numerals to alpha characters since last summer?

Thanks,

Tom


-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Tuesday, July 06, 2010 12:19 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] \stretched in chapter titles in MKII

Am 05.07.10 21:15, schrieb Tom:
 I am trying to stretch two lines of text to the same width for use as a
 chapter head.
 I have two major problems:

 1. The second line of text is appended to the end of the first line 
 instead
 of being placed below it.

 2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}.
 Because of these errors I have hardcoded the values in the example that
 follows:

\define[1]\ChapterTextStretch  {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr
etch{Chapter 
\currentheadnumber}}

\setuphead
   [chapter]
   [alternative=middle,
textstyle=sansbold,
numberstyle=sans,
deeptextcommand=\ChapterTextStretch,
deepnumbercommand=\ChapterNumberStretch]

\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext

Wolfgang


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

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

___

___
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] Stretching chapter titles - MKII

2011-02-16 Thread Tom
I tried to execute MKIV by typing in context hello.tex and got an error
message. Apparently something else needs to be installed.

MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

What major changes to my documents will I likely need to make to shift to
MKIV? 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
Am 15.02.2011 um 01:45 schrieb Tom:

 
 Follows is some code that executes. The lines immediately following
 \starttext create a sample of the desired output format. However, I want
to
 accomplish similar results for chapter titles via the passing of arguments
 containing the chapter title and number. Numerous attempts at that have
 resulted in abject failure. I am clearly missing something.

Can't you use MkIV, it has better support for tracking?

Wolfgang



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

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


[NTG-context] Braces in TexLive MKIV

2011-02-16 Thread Tom
When I recently upgraded to TexLive MKII, I learned that \lq, etc. no longer
worked in that version but that \lbrace still did. Today, I tried MKIV and
find that \lbrace does not work in MKIV. So, I tried \braceleft because
\quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft work
in MKIV. What is now the proper representation for this character? 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Braces in TexLive MKIV

2011-02-16 Thread Tom
Thanks, Wolfgang. My document now compiles without errors and produces a
PDF. It is my understanding that one of the ways MKIV differs greatly from
MKII is in the handling of fonts. Which documentation should I look at first
to learn about fonts in MKIV (not that I understand them in MKII yet)? 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Wednesday, February 16, 2011 5:24 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Braces in TexLive MKIV


Am 16.02.2011 um 22:04 schrieb Tom:

 When I recently upgraded to TexLive MKII, I learned that \lq, etc. no
longer
 worked in that version but that \lbrace still did. Today, I tried MKIV and
 find that \lbrace does not work in MKIV. So, I tried \braceleft because
 \quoteleft worked in TexLive 2010 MKII. Neither \lbrace nor \braceleft
work
 in MKIV. What is now the proper representation for this character? 

Choose one!

\starttext
\{ $\{$ $\lbrace$ \letterleftbrace\ \textbraceleft
\stoptext

Wolfgang


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

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

___

___
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] Chapter Command causes ToC to not display correctly

2011-02-14 Thread Tom
The code below seems to work fine when the first MyChapterCommand is
commented out and the second one is active. However, when the first one is
active and the second one is commented out, the ToC does not display
properly. What could be causing this to happen?

I know that the first MyChapterCommand is not appropriate and use an
appropriate on in the front matter environment for the actual book.

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

%\starthiding
%Chapter number only - not appropriate for frontmatter
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=on]
 {\vbox{\centerline{ #1 
%\stophiding

\starthiding
%lines above and below chapter number and title
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off,bottomframe=on,topframe=on]
 {\vbox{\headtext{chapter} #1\blank#2}}} 
\stophiding

% headings

\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]},befo
re=\page]
\definehead [intro] [chapter]

\setuphead[chapter][style=\ss\bfd,alternative=middle,
  command=\MyChapterCommand,
  header=empty,footer=chapter,
  after={\blank[0.5in]},before={\blank[force,1.0in]}
  \placeinitial]

\setuphead[intro][number=no]
\setuphead[dedication][incrementnumber=no]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering
[state=start,alternative=doublesided,conversion=numbers,location=]
\setupheadertexts
 [chapter][pagenumber][pagenumber][My Book Title]
\setupheader[style={\switchtobodyfont[pagenumber,20pt]\sl}]

%turn on indentation 
\setupindenting[yes,medium,next]

\starttext
\dedication{}
\startdedication
\startalignment[middle]
To someone who inspired or supported me. Let's see how this works for
dedications that span multiple lines.
\stopalignment
\stopdedication
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\stoptext



Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Chapters not sowing up in ToC

2011-02-14 Thread Tom
When attempting to place only the chapter number on the first page of a
chapter, the chapters do not appear in the ToC  the ToC does not display.
Inserting #2 just before the last } in the definition for MyChapterCommand
causes the ToC to appear with chapter names although it and the chapters are
ugly.

Is it necessary to include chapter names at the beginning of chapters?
Perhaps this is intended because leaving chapter names off the beginning of
chapters would reduce the value of the ToC. Maybe ToCs are not desired in
such situations.


%insert #2 before last } to cause ToC to appear although
%very ugly
\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=off]
 {\vbox{\centerline{\headtext{chapter} #1 

\setuphead[chapter]
 [command=\MyChapterCommand,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}]

\starttext

\completecontent
\chapter{The First Chapter}
\input knuth
\chapter{The\\Second\\Chapter}
\input knuth
\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com








___
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] Stretching chapter titles - MKII

2011-02-14 Thread Tom

Follows is some code that executes. The lines immediately following
\starttext create a sample of the desired output format. However, I want to
accomplish similar results for chapter titles via the passing of arguments
containing the chapter title and number. Numerous attempts at that have
resulted in abject failure. I am clearly missing something.


\def\MyChapterCommand#1#2
  {\switchtobodyfont[ss,30pt]
   \hbox to \hsize {\stretched{Chapter\\One}}
   \blank[small]
   \switchtobodyfont[sansbold,20pt]
   \hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}}

\setuphead[chapter]
 [command=\MyChapterCommand,
  header=empty,footer=chapter,page=mychapterpagebreak,
  after={\blank[0.5in]},before={\blank[force,1.0in]}]
  

\starttext
\switchtobodyfont[sans,30pt]
\hbox to \hsize {\stretched{Chapter\\One}}
\blank[small]
\switchtobodyfont[sansbold,20pt]
\hbox to \hsize {\stretched{It\\Was\\The\\Best\\Of\\Times}}

\chapter{It\\Was\\The\\Best\\Of\\Times}
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Using fonts from multiple families

2011-02-13 Thread Tom
Thank you very much, Wolfgang. The time zone difference is helpful
sometimes. I went to bed last night very frustrated and woke up this morning
to find your solution in my inbox. It is also good to see that your
assistance to me has also helped someone else. I do have a couple of
questions:

1. Why aren't the \usetypescriptfile commands necessary?
2. It never occurred to me to consider the dedication as a separate chapter.
Logically, it is but is the inverse of other chapters, sort of, in that the
chapter title isn't normally displayed and the body of the chapter is
printed in a different font than are the other chapters.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 4:59 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Using fonts from multiple families


Am 13.02.2011 um 04:38 schrieb Tom:

 
 
 \usetypescriptfile[type-one]
 \usetypescriptfile[type-gyr]
 TexLive 2010 MKII on a PC
 
 I'm completely flummoxed as how to use fonts from different families.
 Follows is an attempt to use Pallatino (rm) for the text of a book,
 Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page
 headers (intended but not implemented), and Chancery (cg) for the
 dedication. The only font that appears to come out right are the chapter
 titles and I can't change their size without changing the size of the text
 font. I apparently haven't found the right manual yet or am too stupid to
 understand what must be a relatively simple concept.

You can define multiple typefaces.

% engine=pdftex

% fonts

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering[style={\switchtobodyfont[pagenumber]}]

\starttext
\dedication{Dedication}
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\stoptext

Wolfgang


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

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

___

___
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] Using fonts from multiple families

2011-02-13 Thread Tom
This should be my last question on this topic. I want to center the
dedication but align=middle (or center) and alternative=middle added to
\definestartstop[dedication] seem to have no effect. I can't seem to find a
simple way to center an odd line of paragraph of text. Using a frame seems
like using a sledgehammer to pound a tack.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 8:36 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Using fonts from multiple families


Am 13.02.2011 um 14:23 schrieb Tom:

 Thank you very much, Wolfgang. The time zone difference is helpful
 sometimes. I went to bed last night very frustrated and woke up this
morning
 to find your solution in my inbox. It is also good to see that your
 assistance to me has also helped someone else. I do have a couple of
 questions:
 
 1. Why aren't the \usetypescriptfile commands necessary?

ConTeXt already load there files to let you use the palatino etc. fonts

 2. It never occurred to me to consider the dedication as a separate
chapter.
 Logically, it is but is the inverse of other chapters, sort of, in that
the
 chapter title isn't normally displayed and the body of the chapter is
 printed in a different font than are the other chapters.

Add this to my example:

\definestartstop[dedication][style={\switchtobodyfont[dedication]}]

You can now write in your document

\dedication{...}

and

\startdedeication
...
\stopdedication

Wolfgang


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

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

___

___
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] Getting paragraphs to indent

2011-02-13 Thread Tom
My intention is to indent all paragraphs that do not follow whitespace.
However, my code isn't making that happen. What am I doing wrong?

(TexLive 2010 MKII on PC)

\setupcolors[state=start]
\definecolor [gray] [s=0.75]

%\usetypescriptfile[type-one]
%\usetypescriptfile[type-gyr]

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}]
\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfd,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][incrementnumber=no]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering
[state=start,alternative=doublesided,conversion=numbers,location=]
\setupheadertexts
 [chapter][pagenumber][pagenumber][My Book Title]
\setupheader[style={\switchtobodyfont[pagenumber,20pt]\sl},color=gray]

%turn on indentation 
\setupindenting[medium]
\indenting[next]

\starttext
\dedication{}
\startdedication
To someone who inspired or supported me. Let's see how this works for
dedications that span multiple lines.
\stopdedication
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\input knuth
\input knuth
\input knuth
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 4:59 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Using fonts from multiple families


Am 13.02.2011 um 04:38 schrieb Tom:

 
 
 \usetypescriptfile[type-one]
 \usetypescriptfile[type-gyr]
 TexLive 2010 MKII on a PC
 
 I'm completely flummoxed as how to use fonts from different families.
 Follows is an attempt to use Pallatino (rm) for the text of a book,
 Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page
 headers (intended but not implemented), and Chancery (cg) for the
 dedication. The only font that appears to come out right are the chapter
 titles and I can't change their size without changing the size of the text
 font. I apparently haven't found the right manual yet or am too stupid to
 understand what must be a relatively simple concept.

You can define multiple typefaces.

% engine=pdftex

% fonts

\definetypeface [mainface] [rm] [serif] [palatino][default]
\definetypeface [mainface] [ss] [sans]  [iwona-heavy] [default]
\definetypeface [mainface] [tt] [mono]  [modern]  [default]
\definetypeface [mainface] [mm] [math]  [palatino][default]

\definetypeface [pagenumber] [ss] [sans] [iwona-light] [default]

\definetypeface [dedication] [rm] [serif] [chancery] [default]

\setupbodyfont[mainface]

% headings

\definehead [intro] [chapter]
\definehead [dedication][chapter]

\setuphead[chapter][style=\ss\bfa,alternative=middle]
\setuphead[intro][number=no]
\setuphead[dedication][number=no,style={\switchtobodyfont[dedication,16pt]}]

\definecombinedlist [content][intro,chapter,section]

% pagenumbers

\setuppagenumbering[style={\switchtobodyfont[pagenumber]}]

\starttext
\dedication{Dedication}
\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\input knuth
\stoptext

Wolfgang


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

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

___

___
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] Getting paragraphs to indent

2011-02-13 Thread Tom
Those things worked. Now I'm trying to figure out which fonts are standard
with TexLive MKII. So far, I've identified the following:

modern
palatino
modernvariable
postscript includes Times Roman, Helvetica and Courier
antykwa-torunska referred to as just antykwa 
fourier
bookman
optima
iwona
iwona-light
iwona-heavy
chancery

Have I missed any?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Sunday, February 13, 2011 3:58 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Getting paragraphs to indent


Am 13.02.2011 um 21:40 schrieb Tom:

 My intention is to indent all paragraphs that do not follow whitespace.
 However, my code isn't making that happen. What am I doing wrong?
 
 \definestartstop[dedication][style={\switchtobodyfont[dedication,20pt]}]
 \definehead [dedication][chapter]

Don't define two commands with the same name, \definestartstop[dedication]
was meant as alternative to \definehead[dedication]. To force a page break
you can add before=\page to \definestartstop.

 \setupindenting[medium]
 \indenting[next]

Enable indenting, \indenting is just a synonym for \setupindenting but
use the \setup-command.

\setupindenting[yes,medium,next]

 \dedication{}

???

Wolfgang


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

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

___

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

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


[NTG-context] Table of Contents issues

2011-02-12 Thread Tom
Using a very recent download of TexLive 2010 (MKII) on my PC, my success
generating a useful table of contents has been somewhat limited.

I can't figure out how to put the title, Contents, in the font I desire.
The various parameters I found in the documentation affect the chapter
titles and the page numbers but nothing I've found allows me to control the
title of the ToC. What am I overlooking? 

I would also like for the unnumbered chapter titles, such as introduction
or preface, to align with the other chapter titles, not with their numbers.
Aligntitle seems to have no effect on anything from what I have seen.

\definehead [intro][chapter]
\setuphead  [intro][number=no,textstyle=\ss\bf]
\setuphead  [chapter][textstyle=\ss\bf,numberstyle=\ss\bf] 
\definecombinedlist [content][intro,chapter,section]
\setupcombinedlist[content][style=\ss\bf,textstyle=\ss\bf,pagestyle=\ss\bf,n
umberstyle=\ss\bf,aligntitle=yes]
\setuplist [intro][headnumber=no]

\starttext
\completecontent
\intro{Introduction}
\input knuth
\chapter{First chapter}
\input knuth
\chapter{Second Chapter}
\input Knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





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

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


Re: [NTG-context] Table of Contents issues

2011-02-12 Thread Tom
This works. Now I want to make the chapter titles larger but my experiments
using style have failed. There must be a different way to do this. If I
understand bodyfont correctly, it is used for the text of the document, not
for the titles. In my case, the body is in a serif font and the titles are
sanserif.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Saturday, February 12, 2011 1:56 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Table of Contents issues


Am 12.02.2011 um 18:12 schrieb Tom:

 Using a very recent download of TexLive 2010 (MKII) on my PC, my success
 generating a useful table of contents has been somewhat limited.
 
 I can't figure out how to put the title, Contents, in the font I desire.
 The various parameters I found in the documentation affect the chapter
 titles and the page numbers but nothing I've found allows me to control
the
 title of the ToC. What am I overlooking? 
 
 I would also like for the unnumbered chapter titles, such as
introduction
 or preface, to align with the other chapter titles, not with their
numbers.
 Aligntitle seems to have no effect on anything from what I have seen.

\setuphead[chapter][style=sansbold] 

\definehead[intro][chapter]
\setuphead [intro][number=no]

\definecombinedlist[content][intro,chapter,section]
\setupcombinedlist [content][style=sansbold]

\starttext
\completecontent
\intro{Introduction}
\input knuth
\chapter{First chapter}
\input knuth
\chapter{Second Chapter}
\input knuth
\stoptext

Wolfgang


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

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

___

___
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] Using fonts from multiple families

2011-02-12 Thread Tom


\usetypescriptfile[type-one]
\usetypescriptfile[type-gyr]
TexLive 2010 MKII on a PC

I'm completely flummoxed as how to use fonts from different families.
Follows is an attempt to use Pallatino (rm) for the text of a book,
Iwono-heavy for chapter titles (sansbold), Iwona-light (sans) for page
headers (intended but not implemented), and Chancery (cg) for the
dedication. The only font that appears to come out right are the chapter
titles and I can't change their size without changing the size of the text
font. I apparently haven't found the right manual yet or am too stupid to
understand what must be a relatively simple concept.


\starttypescript [BookFont][texnansi,ec,qx,t5,default]

\definetypeface[BookFont][rm][serif][pallatino][default] %text body
\definetypeface[BookFont][ss][sans][iwona-light][default] %page headers
\definetypeface[BookFont][ss][sansbold][iwona-heavy][default] %chapters
\definetypeface[BookFont][tt][type][postscript][default] %embedded code
\definetypeface[BookFont][cg][calligraphic][chancery][default] %dedic.
\definetypeface[BookFont][mm][math][pallatino][default] %math

\stoptypescript

\usetypescript[BookFont][ec]
\setupbodyfont[BookFont,12pt]
\switchtobodyfont[serif]

\setuphead  [chapter][style=sansbold, alternative=middle]

\definehead [intro][chapter]
\setuphead  [intro][number=no]
\definecombinedlist [content][intro,chapter,section]
\setuphead[chapter][style=sansbold]

\starttext
{\cg Dedication}
\page

\completecontent
\intro{Introduction - Ag}
\input knuth
\chapter{First chapter - Ag}
\input knuth
\chapter{Second Chapter - Ag}
\input Knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Saturday, February 12, 2011 1:56 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Table of Contents issues


Am 12.02.2011 um 18:12 schrieb Tom:

 Using a very recent download of TexLive 2010 (MKII) on my PC, my success
 generating a useful table of contents has been somewhat limited.
 
 I can't figure out how to put the title, Contents, in the font I desire.
 The various parameters I found in the documentation affect the chapter
 titles and the page numbers but nothing I've found allows me to control
the
 title of the ToC. What am I overlooking? 
 
 I would also like for the unnumbered chapter titles, such as
introduction
 or preface, to align with the other chapter titles, not with their
numbers.
 Aligntitle seems to have no effect on anything from what I have seen.

\setuphead[chapter][style=sansbold] 

\definehead[intro][chapter]
\setuphead [intro][number=no]

\definecombinedlist[content][intro,chapter,section]
\setupcombinedlist [content][style=sansbold]

\starttext
\completecontent
\intro{Introduction}
\input knuth
\chapter{First chapter}
\input knuth
\chapter{Second Chapter}
\input knuth
\stoptext

Wolfgang


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

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

___

___
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] Iwona-Light error

2011-02-11 Thread Tom
I just attempted to install Tex Live 2010  got a warning about a conflict
with [pdf]tex program on the Tex Live 2008 system path. 2008 still comes up
when I run Context, but the system path was automatically updated with the
install. What else must I do?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Thursday, February 10, 2011 12:26 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Iwona-Light error

On Thu, Feb 10, 2011 at 15:37, Tom wrote:
 I'm using TexLive 2008.05.21 15:21 MKII fmt: 2009.7.8 int: English/English
 (I haven't upgraded to a more recent version because I don't know how to
 have 2 executable versions on my PC at the same time)

 I can't find Helvetica-Caps or Helvetica-Caps-Regular in type-one.tex, the
 only file I changed. I can't find them in the original, unchanged version
of
 the file either. I can email you the file if you'd like.

Then it is in type-tfm.tex (or something like that).

But I would advice you to install minimals in parallels (you can then
switch between both).

All you need to do is to change PATH when you want to switch. (But in
any case it might be better to use at least TeX Live 2010.)

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
___


Re: [NTG-context] Iwona-Light error

2011-02-11 Thread Tom
Windows Vista 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Friday, February 11, 2011 11:08 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Iwona-Light error

On Fri, Feb 11, 2011 at 17:07, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 On Fri, Feb 11, 2011 at 16:34, Tom t...@tuxedo-press.com wrote:
 I just attempted to install Tex Live 2010  got a warning about a
conflict
 with [pdf]tex program on the Tex Live 2008 system path. 2008 still comes
up
 when I run Context, but the system path was automatically updated with
the
 install. What else must I do?

 Are you using Windows on unix/linux/freebsd/mac?

typo: or, not on of course

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
___


Re: [NTG-context] Iwona-Light error

2011-02-11 Thread Tom
I'm using Windows on a PC.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Friday, February 11, 2011 11:08 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Iwona-Light error

On Fri, Feb 11, 2011 at 16:34, Tom t...@tuxedo-press.com wrote:
 I just attempted to install Tex Live 2010  got a warning about a conflict
 with [pdf]tex program on the Tex Live 2008 system path. 2008 still comes
up
 when I run Context, but the system path was automatically updated with the
 install. What else must I do?

Are you using Windows on unix/linux/freebsd/mac?

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
___


Re: [NTG-context] Iwona-Light error

2011-02-10 Thread Tom
I'm using TexLive 2008.05.21 15:21 MKII fmt: 2009.7.8 int: English/English
(I haven't upgraded to a more recent version because I don't know how to
have 2 executable versions on my PC at the same time)

I can't find Helvetica-Caps or Helvetica-Caps-Regular in type-one.tex, the
only file I changed. I can't find them in the original, unchanged version of
the file either. I can email you the file if you'd like.

Thanks, 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Thursday, February 10, 2011 1:42 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Iwona-Light error

On Wed, Feb 9, 2011 at 23:53, Tom wrote:
 That works. Now I get:
 Cannot find Helvetica-Caps.mf
 for Postscript font.

I'm not able to reproduce that and the typescripts seem to be fine.
Did you fix anything else by accident? (Modifying a single instance of
Helvetica-Caps into Helvetica-Caps-Regular for example.) What version
of ConTeXt do you use?

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] Iwona-Light error

2011-02-09 Thread Tom
I get the following error message when trying to use the iwona-light font in
MKII:
Cannot find Iwona-CapsLight.mf.

Iwona and Iwona-Heavy load OK.

The following code demonstrates the problem:

\usetypescriptfile[type-one]
\usetypescript[iwona-light][ec]
\setupbodyfont[iwona-light,12pt]

\starttext

\showbodyfont
\showbodyfontenvironment
\input knuth

\stoptext

BTW, the new chapter on typography helps immensely. However, I am a bit
confused by table 1.7 which, among other things, states that commercial
fonts are typeset in bold. It might be my old eyes, but I don't see
anything in that table typeset in bold. 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Iwona-Light error

2011-02-09 Thread Tom
That works. Now I get:
Cannot find Helvetica-Caps.mf 
for Postscript font.

\usetypescriptfile[type-one]
\usetypescript[postscript][ec]
\setupbodyfont[postscript,12pt]

\starttext
\switchtobodyfont[ss]
\showbodyfont
\showbodyfontenvironment
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Wednesday, February 09, 2011 2:51 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Iwona-Light error

On Wed, Feb 9, 2011 at 20:37, Tom t...@tuxedo-press.com wrote:
 I get the following error message when trying to use the iwona-light font
in
 MKII:
 Cannot find Iwona-CapsLight.mf.

In type-one.mkii it should have been:

\starttypescript [sans] [iwona-light] [name]
\setups[font:fallback:sans]
...
\definefontsynonym [SansCaps]   [Iwona-CapsLight-Regular]
\definefontsynonym [SansItalicCaps] [Iwona-CapsLight-Italic]

Instead of just Iwona-CapsLight and Iwona-CapsLightItalic.

Thanks for noticing.

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
___


Re: [NTG-context] Problem switching fonts in MKII

2011-01-31 Thread Tom
Hi,


On 01/30/11 19:18, Tom wrote:
 Kudos for the new documentation chapters on Typography and Fonts. However,
I
 still can't completely get my hands around it. Running the following code
 under TexLive MKII doesn't give the desired results in that defining font
 synonyms and switching to those typefaces doesn't seem to work. Obviously,
 I'm doing something wrong.

As far as I know, you cannot define fontsynonyms to typefaces. If you
want to use names like 'TextFont' as a typeface, you have to use
\definetypeface.

Best wishes,
Taco

Thanks, Taco. That did the trick. Now to experiment with more of the fonts
included in the TexLive distribution.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Problem switching fonts in MKII

2011-01-30 Thread Tom
Kudos for the new documentation chapters on Typography and Fonts. However, I
still can't completely get my hands around it. Running the following code
under TexLive MKII doesn't give the desired results in that defining font
synonyms and switching to those typefaces doesn't seem to work. Obviously,
I'm doing something wrong.

\usetypescriptfile[type-gyr]
\usetypescript[palatino][ec]
\setupbodyfont[palatino,11pt]
\definefontsynonym[AltTextFont][palatino]

\usetypescriptfile[type-one]
\usetypescript[bookman][default]
\setupbodyfont[bookman,11pt]
\definefontsynonym[TextFont][bookman]

\starttext

\switchtotypeface[TextFont]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[AltTextFont]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[bookman][11pt]
\showbodyfont
\input knuth
\blank[big]

\switchtotypeface[palatino][11pt]
\showbodyfont
\input knuth

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com





___
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] Determining available fonts

2011-01-06 Thread Tom
\showbodyfont  \showbodyfontenvironment display details about a single
font. Which command lists or otherwise identifies fonts available for use on
a Tex Live MKII system? I want to find out what fonts have been loaded onto
my system. These would most likely be the standard fonts included with the
on-line download. The documentation shows me how to load additional fonts
but I don't yet know what is there by default.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] TT font disregards margins

2011-01-05 Thread Tom
I need to intersperse my text with code typed by someone else and am
attempting to give the appearance of the code having been typed on a
typewriter. The problem I am encountering is that the Teletyped text does
not respect margin settings. What could be done to correct this? (I am
running MKII on a Windows system). Example follows:

\definepapersize[6X9][width=6.0in, height=9.0in]
\setuppapersize[6X9][6X9]


\setuplayout[
 width=middle,
 height=middle,
 backspace=.75 in,
 topspace=.5 in,
 header=.25 in,
 footer=0 in,
 headerdistance=.25 in,
 footerdistance=0 in,
 bottomspace=0.9 in,
 cutspace=.875 in,
]

\starttext

WHETHER I shall turn out to be the hero of my own life, or whether that
station will be held by anybody else, these pages must show. To begin my
life with the beginning of my life, I record that I was born (as I have been
informed and believe) on a Friday, at twelve o'clock at night. It was
remarked that the clock began to strike, and I began to cry, simultaneously.

\blank[big]

{\tt{WHETHER I shall turn out to be the hero of my own life, or whether that
station will be held by anybody else, these pages must show. To begin my
life with the beginning of my life, I record that I was born (as I have been
informed and believe) on a Friday, at twelve o'clock at night. It was
remarked that the clock began to strike, and I began to cry,
simultaneously.}}

\stoptext
 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] Identifying fonts on my system

2010-12-30 Thread Tom
My first step in trying to understand fonts is to determine exactly which
fonts are loaded onto my system. Is there a command that will list all the
fonts currently resident on my TexLive 2008 MKII installatation? Mfonts.pdf
mentions that Adobe's 15 standard fonts are also available. How do I
determine what they are and how to identify them in commands?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






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

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


[NTG-context] Table resolution too low

2010-12-23 Thread Tom
I just created a PDF of a bookblock by using MKII to produce  the .ps file
and Adobe Acrobat to create the PDF from it. When preflighting the PDF, all
the photos were found to be 300dpi or greater but the table created by the
following code was flagged at being only 150ppi. I don't see this as a
problem but is there a way to cause it to be 300dpi or greater to eliminate
the warning?

\placetable[here,force]{none}
{\starttable[|l|l|l|]
\HL
\VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR
\HL
\VL Albert Exendine \VL End \VL 1970 \VL\SR
\HL
\VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR
\HL
\VL James Johnson \VL Quarterback \VL 1969 \VL\SR
\HL
\VL Ed Rogers \VL End \VL 1968 \VL\SR
\HL
\VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR
\HL
\VL Gus Welch \VL Quarterback \VL 1975 \VL\SR
\HL
\VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR
\HL
\stoptable}}


Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






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

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


Re: [NTG-context] Table resolution too low

2010-12-23 Thread Tom






Am 2010-12-23 um 16:11 schrieb Tom:

 I just created a PDF of a bookblock by using MKII to produce   
 the .ps file
 and Adobe Acrobat to create the PDF from it.

Why do you make the detour via PS at all?

 When preflighting the PDF, all
 the photos were found to be 300dpi or greater but the table created  
 by the
 following code was flagged at being only 150ppi. I don't see this as a
 problem but is there a way to cause it to be 300dpi or greater to  
 eliminate
 the warning?

There's no reason why a table should be resolution dependend at all,  
consisting just of fonts and lines.
But since you try to go via PS, there might be lowres pixel fonts (PK)  
involved.

Please provide a complete minimal example and describe how and why you  
force ConTeXt to produce PS.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

Here is an example:

\starttext
\placetable[here,force]{none}
{\starttable[|l|l|l|]
\HL
\VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR
\HL
\VL Albert Exendine \VL End \VL 1970 \VL\SR
\HL
\VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR
\HL
\VL James Johnson \VL Quarterback \VL 1969 \VL\SR
\HL
\VL Ed Rogers \VL End \VL 1968 \VL\SR
\HL
\VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR
\HL
\VL Gus Welch \VL Quarterback \VL 1975 \VL\SR
\HL
\VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR
\HL
\stoptable}
\stoptext

Using Tex-Live MKII, I created the .ps with texexec --dvi TableExample

Needing a PDF/X-1a:2001 file, I created the PDF from the .ps file using
Adobe Acrobat Distiller 9

The warnings point to the lines in the table but not to the text.

Tom


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

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


Re: [NTG-context] Table resolution too low

2010-12-23 Thread Tom

On Thu, Dec 23, 2010 at 8:36 PM, Tom t...@tuxedo-press.com wrote:
 On Thu, Dec 23, 2010 at 4:42 PM, Tom t...@tuxedo-press.com wrote:
 Here is an example:

 \starttext
 \placetable[here,force]{none}
 {\starttable[|l|l|l|]
 \HL
 \VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR
 \HL
 \VL Albert Exendine \VL End \VL 1970 \VL\SR
 \HL
 \VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR
 \HL
 \VL James Johnson \VL Quarterback \VL 1969 \VL\SR
 \HL
 \VL Ed Rogers \VL End \VL 1968 \VL\SR
 \HL
 \VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR
 \HL
 \VL Gus Welch \VL Quarterback \VL 1975 \VL\SR
 \HL
 \VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR
 \HL
 \stoptable}
 \stoptext

 Using Tex-Live MKII, I created the .ps with texexec --dvi TableExample

 If you try

texexec  TableExample

 what happen ?

 --
 Luigi

 The PDF that is created is PDF 1.5 (Acrobat 6.x)
If -- for some reason -- you need 1.4 try

\pdfminorversion4
\starttext
\placetable[here,force]{none}
{\starttable[|l|l|l|]
\HL
\VL \bf Player* \VL \bf Position \VL \bf Year Inducted \VL\SR
\HL
\VL Albert Exendine \VL End \VL 1970 \VL\SR
\HL
\VL Joe Guyon \VL Halfback/Tackle \VL 1971 \VL\SR
\HL
\VL James Johnson \VL Quarterback \VL 1969 \VL\SR
\HL
\VL Ed Rogers \VL End \VL 1968 \VL\SR
\HL
\VL Jim Thorpe \VL Halfback \VL 1951\dagger \VL\SR
\HL
\VL Gus Welch \VL Quarterback \VL 1975 \VL\SR
\HL
\VL Glenn S. {\quotation Pop} Warner \VL Coach \VL 1951\dagger \VL\SR
\HL
\stoptable}
\stoptext




 Preflighting it doesn't seem to generate the image resolution warning.
 Perhaps that is related to PDF/X-1a:2001.
So is it ok now ?


-- 
Luigi

It seems to be but I'm such a novice using these tools that I may be 
preflighting with the wrong options set. Knowing that the lower resolution on 
the table doesn't matter much is consoling.

It's about time for some eggnog.

Tom
___
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] Fonts in MKII

2010-12-12 Thread Tom
I am confused about using fonts in MKII. Which documentation provides the
best explanation and most accurate of how to use fonts in MKII. I am
particularly interested in using fonts that are bundled in Tex-Live. I will
leave bringing in other fonts till later when I understand the basics.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





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

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


Re: [NTG-context] Broken ConTeXt

2010-10-07 Thread Tom Maynard

 On 10/7/2010 9:09 AM, Mojca Miklavec wrote:


Did you by any chance set the variable TEXMF in your environment?
After much ado, I finally got everything working again.  I deleted 
everything (as usual), and then simplified my PATH (removing Cygwin and 
MikTeX, among others), cleaned up my environment variables ... and did a 
fresh install.  I got a cramp from having my fingers crossed the whole 
time, but a functional ConTeXt came out at the end.


Now, back to work!  Thanks everyone for your help.

Tom.

___
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] Running Mk-IV using TeXnicCenter

2010-10-06 Thread Tom Maynard
 The information on this page 
http://wiki.contextgarden.net/Configure_TeXnicCenter_for_ConTeXt ends up 
invoking MkII (i.e. texexec).  Is there any information on the 
equivalent MkIV configuration?


The commands given above are:

(A) Path to the compiler...

C:\ConTeXt\usr\local\context\tex\setuptex.bat  
C:\ConTeXt\usr\local\context\tex\texmf-mswin\bin\texmfstart

(B) Command line arguments...

texexec.rb --bat --nonstop --pdf --interface=nl --color %bm

I believe that the 'texmfstart' and obviously the 'texexec.rb' will have 
to change (at least).  To what?  There is no 'context.rb' on my system.


Any help is appreciated.

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

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


[NTG-context] Broken ConTeXt

2010-10-06 Thread Tom Maynard
 While I'm pretty sure I didn't do anything wrong, and I'm absolutely 
certain that it worked perfectly yesterday, ConTeXt is broken:


C:\ConTeXtpath
PATH=C:\ConTeXt\tex\texmf-mswin\bin;C:\Ruby187\bin;c:\bin;c:\tsepro;c:\program
iles\vim\vim72;c:\cygwin\bin;C:\Program 
Files\Java\jdk1.6.0_18\bin;C:\WINDOWS\
sstem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files\ooRexx;c:\program
files\MikTex 2.8\mktex\bin;c:\program files\MikTex 
2.8\miktex\bin\miktex\bin\


C:\ConTeXtcontext --version

MTXrun | forcing cache reload
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf' (runtime)
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf-local' (runtime)
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf-context' (runtime)
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf-mswin' (runtime)
MTXrun | resolvers
MTXrun | resolvers
MTXrun | the resolver databases are not present or outdated
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | resolvers: remembering file 'mtx-context.lua'
MTXrun | resolvers: using suffix based filetype 'lua'
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
C:\ConTeXt

And then I deleted it all, reinstalled Minimals, and get exactly the 
same result.  Is my luck really this bad?  What to do?


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

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


Re: [NTG-context] Broken ConTeXt

2010-10-06 Thread Tom Maynard

 On 10/6/2010 3:10 PM, Mojca Miklavec wrote:


Are the binaries in C:\ConTeXt\tex\texmf-mswin\bin or
C:\ConTeXt\texmf-mswin\bin? That is - with or without tex?

In the path the first entry is

PATH=C:\ConTeXt\tex\texmf-mswin\bin;

That is, then 'with tex.'



What does
mtxrun --generate
return you?


C:\mtxrun --generate

MTXrun | resolvers: variable 'SELFAUTOLOC' set to 
'C:/context/tex/texmf-mswin/bi

n'
MTXrun | resolvers: variable 'SELFAUTODIR' set to 
'C:/context/tex/texmf-mswin'

MTXrun | resolvers: variable 'SELFAUTOPARENT' set to 'C:/context/tex'
MTXrun | resolvers: variable 'TEXMFCNF' set to 
'c:\ConTeXt\texmf{-local,-context

,}/web2c'
MTXrun | resolvers: variable 'TEXMF' set to 
'{c:\ConTeXt\texmf,c:\ConTeXt\texmf-

local,c:\ConTeXt\texmf-context,c:\ConTeXt\texmf-mswin}'
MTXrun | resolvers: variable 'TEXOS' set to 'texmf-mswin'
MTXrun | resolvers
MTXrun | resolvers: warning: no lua configuration files found
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf' (runtime)
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf-local' (runtime)
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf-context' (runtime)
MTXrun | resolvers: skipping list of 'c:/ConTeXt/texmf-mswin' (runtime)
MTXrun | resolvers
MTXrun | resolvers
C:\



Apart from that - you are welcome to test if ConTeXt works fine on MikTeX (2.9).

It continues to work just fine on my TeXLive 2010 installation, but I 
don't think it ever worked on MikTeX 2.8 (the version I have installed).


I'm quite puzzled why a fresh installation (twice now) gives exactly the 
same result.


Tom.
___
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] Running Mk-IV using TeXLive 2010

2010-10-05 Thread Tom Maynard

 On 10/5/2010 12:32 PM, David Rogers wrote:


texexec gives MkII; context gives MkIV. I think this may need to be
documented somewhere easier to find for those new to ConTeXt.

I fell into this trap because either the Beginner's manual or some other 
specifically says to run TeXexec instead of ConTeXt -- since (it says) 
TeXexec will run automatically as many times as needed.  The implication 
is that TeXexec is smarter than ConTeXt.


I am brand new to ConTeXt and wanted to learn the new stuff and not 
spend any time with MkII, and I was surprised to see the difference 
between the two tools.


[Update: the First Document tutorial suggests using TeXexec ... and 
that's probably where I first went wrong.]


Tom.

___
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] Running Mk-IV using TeXLive 2010

2010-10-05 Thread Tom Maynard

 On 10/5/2010 1:07 PM, Florian Wobbe wrote:
This is the result of the broken TeXLive 2010 installation. It should 
have worked out of the box before your failed update attempt. Try 
again with a clean TeXLive 2010 or install minimals.


This is the second trap I fell into by following the instructions in the 
manuals: all that rsync stuff jazzed up my TeXLive 2010 installation and 
I had to reinstall.  This bad advice is found on the Running Mark IV 
page on the wiki.  Of course, I wanted to run MkIV and ended up spending 
another hour reinstalling TeXLive to get it back.


On my desktop machine I have both TeXLive (for Cygwin) and ConTeXt 
minimals (for Windows) installed, my notebook has only TeXLive.  I am no 
longer tempted to update any of these, even if I prefer to stay current.


As a newbie, I wanted to try out the Concrete Roman font ... but 
abandoned that quest when it looked like I was going to have to tinker 
with the internals again.  I am now staying firmly on the end user 
side of the ConTeXt fence.


Tom.


___
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] Running Mk-IV using TeXLive 2010

2010-10-05 Thread Tom Maynard

 On 10/5/2010 2:06 PM, Aditya Mahajan wrote:


Using the font should be as easy as

\usemodule[simplefonts]
\setupmainfont[Concrete Roman]


! Undefined control sequence.
recently read \setupmainfront

l.3 \setupmainfont
  [Concrete Roman]
?

I spent quite some time yesterday trying to find out (A) if the font is 
actually installed (I think it is), and (B) what its name might be (I 
thought it might be cmuconcrete -- it isn't).  But the same manuals 
that proved helpful before advised me as a beginner to stay away from 
fonts or I could get into trouble.  I was and am ... and now I'm 
sticking with all the defaults.


Tom.

___
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] Running Mk-IV using TeXLive 2010

2010-10-05 Thread Tom Maynard

 On 10/5/2010 2:30 PM, luigi scarso wrote:


I remember  \setmainfont
and not \setupmainfont

That seems to work.  Thank you very much.  I appreciate your help.

Tom.

___
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] TeXexec MkII, ConTeXt MkIV

2010-10-03 Thread Tom Maynard

 Hello,

I have pretty recent installations of TeXLive 2010 (for Cygwin) and 
ConTeXt Minimals (for Windows).  In both installations, running TeXexec 
reports it is ConTeXt MkII ... but running ConTeXt directly reports 
itself as MkIV.


I would like to synchronize TeXexec and MkIV ... as MkIV ... how is this 
done -- for each installation?


Thanks for your help,
Tom.
___
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] TeXexec MkII, ConTeXt MkIV

2010-10-03 Thread Tom Maynard

 On 10/3/2010 1:16 AM, Aditya Mahajan wrote:


I think that you are confused by the terminology.

I was, but you have resolved that.  Your answer was, as you perfectly 
well know, completely correct.  Thank you (all of you!) for your help in 
getting me straightened out.


I'm (rather obviously) a newcomer to the ConTeXt world and am enjoying 
the discovery.


Thanks again to one and all.
Tom.


___
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] Images missing from PDF when created by Adobe

2010-07-22 Thread Tom

-Original Message-
On Jul 21, 2010, at 7:26 PM, Tom wrote:

 Using TexLive MKII, I can create a PDF that looks great directly from it,
 unfortunately it isn't PDF/X-1a:2001.

There's a LaTeX package which will create .pdfs conformant to that
specification --- perhaps the code could be ported over?

If not, use pdf2ps to get a PostScript file from the .pdf, then distill the
.ps file w/ the correct settings.

William
-- 
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.

Thanks for the tip, William. I am running TexLive MKII on a Windows system
and it doesn't seem to have pdf2ps. Bummer.

BTW, are you located in Mechanicsburg? If so, it's a small world.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] Images missing from PDF when created by Adobe

2010-07-22 Thread Tom
-Original Message-  Am 22.07.10 06:07, schrieb Tom:
 Thanks, Wolfgang. I never would have considered this to be the problem.
 Converting the first image to eps made it work. Should PostScript Level 2
 and Encapsulated PostScript be selected when converting the images in
Gimp?

 Does MKIV require the same image formats as MKII? Is this all an artifact
of
 some early incarnation of Context?

mkiv has only pdf as output format so you can use the same image formats
as mkii in pdf mode, the restriction has nothing to do with context, it 
comes
from the driver (pdftex) which allows only certain formats for pdf and dvi

Wolfgang

Do I understand correctly that MKIV will not output a dvi or ps file and
that no stable version of it outputs a PDF/X-1a:2001 format file?

Is a version with this feature expected to be stable in a year?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey


___
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] Images missing from PDF when created by Adobe

2010-07-21 Thread Tom
Needing to create PDF/X-1a:2001 files to satisfy a particularly persnickety
printer, I downloaded the 30-day free trial of Adobe Acrobat 9 Pro today. It
seems to work OK when printed to from Scribus but I'm having trouble with
my Context output.

Using TexLive MKII, I can create a PDF that looks great directly from it,
unfortunately it isn't PDF/X-1a:2001. texexec mytexfile --dvi readily
produces a dvi file but I don't know if it's any good. dvips mytexfile VERY
quickly produces as postscript file. Acrobat quickly converts the .ps file
to a PDF without displaying error message. However, all the images are
missing from the PDF that Acrobat creates. Is there a special setting
required for it to pick up the images?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




___
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] Images missing from PDF when created by Adobe

2010-07-21 Thread Tom
Here's an update to my question.

I found DVIOUT and viewed the dvi file. It is missing the images. Why would
Context put the images in the PDF it creates and not the DVI?

I made NO source code changes between running

texexec mytexfile

and

texexec mytexfile --dvi

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Tom
Sent: Wednesday, July 21, 2010 7:26 PM
To: 'mailing list for ConTeXt users'
Subject: [NTG-context] Images missing from PDF when created by Adobe

Needing to create PDF/X-1a:2001 files to satisfy a particularly persnickety
printer, I downloaded the 30-day free trial of Adobe Acrobat 9 Pro today. It
seems to work OK when printed to from Scribus but I'm having trouble with
my Context output.

Using TexLive MKII, I can create a PDF that looks great directly from it,
unfortunately it isn't PDF/X-1a:2001. texexec mytexfile --dvi readily
produces a dvi file but I don't know if it's any good. dvips mytexfile VERY
quickly produces as postscript file. Acrobat quickly converts the .ps file
to a PDF without displaying error message. However, all the images are
missing from the PDF that Acrobat creates. Is there a special setting
required for it to pick up the images?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





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


Re: [NTG-context] Images missing from PDF when created by Adobe

2010-07-21 Thread Tom
-Original Message-
  Am 22.07.10 03:58, schrieb Tom:
 Here's an update to my question.

 I found DVIOUT and viewed the dvi file. It is missing the images. Why
would
 Context put the images in the PDF it creates and not the DVI?

In PDF mode TeX can use images in pdf, png, jpg and jbig format but in 
dvi mode
it can only use images in eps format.

Wolfgang


Thanks, Wolfgang. I never would have considered this to be the problem.
Converting the first image to eps made it work. Should PostScript Level 2
and Encapsulated PostScript be selected when converting the images in Gimp?

Does MKIV require the same image formats as MKII? Is this all an artifact of
some early incarnation of Context?

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




___
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] Best version of ConTeXt

2010-07-08 Thread Tom




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Thursday, July 08, 2010 6:14 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Best version of ConTeXt

On Thu, Jul 8, 2010 at 02:03, Tom wrote:
 What would be the best version of ConTeXt to recommend to a friend who
 writes novels on a PC running Windows? The person has no programming
skills.
 He would probably require some assistance installing Tex-Live or whatever
 and would need a stable version because he couldn't manage frequent
updates.
 Problems would far outweigh additional features for him.

TeX Live 2010 should work fine.

Mojca


I don't expect there will be much ConTeXt activity from our Dutch friends
today due to the big game, but I will risk a question anyway.

From which site should Americans download Tex Live 2010? Minimals only?

The Wiki suggests that command-line and GUI installers can be downloaded
from there and that either a stable or beta version can be selected from
either of the installers. Is this the recommended method for non-technical
types to get Tex Live? I assume that the beta version is the latest 2010
version, bugs and all, and that the stable version is the one suggested by
Mojca and is close to the one that Taco says will go physical in September.
Will anything else, such as Ruby, be required? 

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey


___
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] Best version of ConTeXt

2010-07-08 Thread Tom

-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Mojca Miklavec
Sent: Thursday, July 08, 2010 9:21 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Best version of ConTeXt

On Thu, Jul 8, 2010 at 13:54, Tom wrote:

 From which site should Americans download Tex Live 2010? Minimals only?

http://www.tug.org/texlive/pretest.html
http://www.tug.org/texlive/mirmon/

 I assume that the beta version is the latest 2010
 version, bugs and all, and that the stable version is the one suggested by
 Mojca and is close to the one that Taco says will go physical in
September.

Yes, Taco only said that DVDs will be sent to members in September.

 Will anything else, such as Ruby, be required?

Ruby is not needed for MkIV, but if he is planning to use MKII, you'll
want to install Ruby anyway.

Mojca

I get very confused by all the different versions. For starters, what is Tex
Live? Is it the full blown Context or is it something else? The TUG site has
Tex Live 2009 which I assume is a stable version that is distributed on DVDs
to TUG members. I get the impression that other Context compilers for lack
of a better term exist and that Context Minimals is a stripped down version
of a more powerful one. How far off track am I?



Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey


 


___
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] Best version of ConTeXt

2010-07-08 Thread Tom
-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Henning Hraban Ramm
Sent: Thursday, July 08, 2010 5:11 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Best version of ConTeXt

Am 2010-07-08 um 20:54 schrieb Tom:
 I get very confused by all the different versions.

You asked for the best version, so we supposed you'd know several.

 For starters, what is Tex
 Live? Is it the full blown Context or is it something else? The TUG  
 site has
 Tex Live 2009 which I assume is a stable version that is distributed  
 on DVDs
 to TUG members. I get the impression that other Context compilers  
 for lack
 of a better term exist and that Context Minimals is a stripped down  
 version
 of a more powerful one. How far off track am I?

There are only 2 different versions of ConTeXt, called Mark II and  
Mark IV (MkII, MkIV). They are always distributed together and still  
share a lot of code.
MkII is stable, MkIV is the development version with several enhanced  
features and a completely new font handling.

There are 3 different engines for TeX that work with ConTeXt: pdfTeX,  
XeTeX and LuaTeX. MkIV works only with LuaTeX, MkII with any. Font  
setups (typescripts) differ per engine.

There are several distributions of TeX that contain ConTeXt, the most  
notable are TeX Live (jointly published by most TeX User Groups of the  
world) and MikTeX (Windows only). If you don't need LaTeX, we suggest  
our ConTeXt minimals distribution - at least for MkIV, because it's  
always the most up-to-date one.
Minimals is in no way stripped down (even if it was meant to be a  
bare bones ConTeXt distro), but contains even several tools and free  
fonts.
Most distributions contain all engines.

MkII ist called by texexec (a Ruby script, i.e. you need Ruby  
installed), MkIV ist called by context (a Lua script, directly  
executed by LuaTeX).


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

Thank you for being so concise, Hraban. This helps a lot.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey



___
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] Best version of ConTeXt

2010-07-07 Thread Tom
What would be the best version of ConTeXt to recommend to a friend who
writes novels on a PC running Windows? The person has no programming skills.
He would probably require some assistance installing Tex-Live or whatever
and would need a stable version because he couldn't manage frequent updates.
Problems would far outweigh additional features for him.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
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] \stretched in chapter titles in MKII

2010-07-06 Thread Tom
Further experimentation has found a partial solution. However, I am still
unable to get the chapter title line to stretch properly:

%works fine as is except that chapter title is hardcoded
%errors when hardcoded title is replaced with #2
%doesn't error when title is replaced with {#2} but title is not stretched
%number of closing }s determined by trial and error

\def\MyChapterCommand#1#2% #1 is number, #2 is text
{ \framed[frame=off,align=middle]
   {{\hbox to \hsize {\ss\stretched{Chapter {#1
\par 
   {{\hbox to \hsize {\switchtobodyfont[20pt]{\ss\bf\stretched{My
Chapter Title}}}

\setuphead[chapter]
 [command=\MyChapterCommand]
\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Tom
Sent: Monday, July 05, 2010 3:16 PM
To: ntg-context@ntg.nl
Subject: [NTG-context] \stretched in chapter titles in MKII

I am trying to stretch two lines of text to the same width for use as a
chapter head.
I have two major problems:

1. The second line of text is appended to the end of the first line instead
of being placed below it.

2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}.
Because of these errors I have hardcoded the values in the example that
follows:

\def\MyChapterCommand#1#2% #1 is number, #2 is text
 {\hbox to \hsize {\ss\stretched{Chapter 1}} 
   \par
  \hbox to \hsize {\ss\bf\stretched{Test Chapter Title}}}

\setuphead[chapter]
 [command=\MyChapterCommand]
 
\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






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


Re: [NTG-context] \stretched in chapter titles in MKII

2010-07-06 Thread Tom

\define[1]\ChapterTextStretch  {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr
etch{Chapter 
\currentheadnumber}}

\setuphead
   [chapter]
   [alternative=middle,
textstyle=sansbold,
numberstyle=sans,
deeptextcommand=\ChapterTextStretch,
deepnumbercommand=\ChapterNumberStretch]

\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext

Wolfgang

Thanks, Wolfgang. You have not only solved my immediate problem but have
also provided me with examples of using the \deep commands. I haven't found
enough documentation of them yet to get through my thick skull an
understanding of what they do and how to use them. Can you explain to me the
significance of the [1]s after the defines? 

I would still like to be able to convert chapter numbers to words without
impacting the table of contents. I am confused about how
\determineheadnumber and \currentheadnumber work. It appears to me that
\determineheadnumber places the chapter number in a register and
\currentheadnumber retrieves that value. I tried inserting \numstr before
\currentheadnumber. That converts the chapter number to text and doesn't
mess up the TOC  but the first line is no longer stretched. Clearly, I don't
understand this very well at all.

Tom 


___
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] \stretched in chapter titles in MKII

2010-07-06 Thread Tom

\define[1]\ChapterTextStretch  {\line{\stretched{#1}}}
\define[1]\ChapterNumberStretch{\determineheadnumber[chapter]\ChapterTextStr
etch{Chapter 
\currentheadnumber}}

\setuphead
   [chapter]
   [alternative=middle,
textstyle=sansbold,
numberstyle=sans,
deeptextcommand=\ChapterTextStretch,
deepnumbercommand=\ChapterNumberStretch]

\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext

Wolfgang

I've tried to modify this code to change the chapter numbers to words. That
part was successful but the above code only stretches the word Chapter but
not the numbers' words. I also get errors when I try to get all caps by
inserting \WORD in the first command.

\input c:/BookLayouts/MyFirstBook/Macros/numstr.tex

\define[1]\ChapterTextStretch  {\line{\stretched{#1}}} 

\define[1]\ChapterNumberStretch
{\ChapterTextStretch{Chapter\ChapterNumberWords}}

\define[1]\ChapterNumberWords
{\determineheadnumber[chapter]\numstr{\currentheadnumber}}

\setuphead
   [chapter]
   [alternative=middle,
textstyle=sansbold,
numberstyle=sans,
deeptextcommand=\ChapterTextStretch,
deepnumbercommand=\ChapterNumberStretch]

\starttext
\completecontent
\chapter{Test Chapter Title}
\input knuth
\chapter{Test Chapter With Very Long Title That Might Overflow Page}
\input knuth
\chapter{Test Chapter With Long Title Doesn't Overflow}
\input knuth
\stoptext

Tom


___
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] \stretched in chapter titles in MKII

2010-07-05 Thread Tom
I am trying to stretch two lines of text to the same width for use as a
chapter head.
I have two major problems:

1. The second line of text is appended to the end of the first line instead
of being placed below it.

2. I get errors when using #1 and #2 as values, i.e {Chapter #1} and {#2}.
Because of these errors I have hardcoded the values in the example that
follows:

\def\MyChapterCommand#1#2% #1 is number, #2 is text
 {\hbox to \hsize {\ss\stretched{Chapter 1}} 
   \par
  \hbox to \hsize {\ss\bf\stretched{Test Chapter Title}}}

\setuphead[chapter]
 [command=\MyChapterCommand]
 
\starttext
\chapter{Test Chapter Title}
\input knuth
\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] Unnumbered titles in table of contents

2010-07-04 Thread Tom
I modified the sample code for creating unnumbered table of contents entries
to include a title page for the appendices. It does create the unnumbered
appendices entry as desired, but increments the chapter number to B for
the first appendix chapter. How does one accomplish this without this
unwanted incrementing? Also, is it possible to have the unnumbered entries
align with the chapter titles rather than the chapter numbers?


\definehead [intro] [chapter]
\setuphead  [intro] [number=no]
\definecombinedlist [content][intro,chapter,section]
\setuplist  [intro] [headnumber=no]

\starttext
\completecontent
\startfrontmatter
\intro{Preface}
\stopfrontmatter

\startbodymatter
\chapter{Text of the Book}
\stopbodymatter
\startappendices
\intro{Appendices}
\chapter{Supporting Data}
\stopappendices

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] Shaded frame with colored text

2010-07-02 Thread Tom
Thanks. That did the trick. Now, How do I insert multi-page PDFs created
elsewhere in an appendix.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey




-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On
Behalf Of Wolfgang Schuster
Sent: Thursday, July 01, 2010 6:49 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Shaded frame with colored text

Am 02.07.10 00:42, schrieb Tom:
 I haven't had any luck filling in the background of a frame with any color
 other than black and with changing the color of the text in the frame to
 white or gray. What needs to be added to this mkii code?


Colors are disabled in MkII, to enable them include

\setupcolors[state=start]

to your document.
 \def\MyChapterCommand#1#2% #1 is number, #2 is text
{\framed[frame=on,align=middle]
   {\vbox{\headtext{chapter} #1\blank#2}}}

\framed
   [..,
background=color,
backgroundcolor=red,
foregroundcolor=blue,
...]
   {...}
 \setuphead[chapter]
   [command=\MyChapterCommand,textstyle=\ss\bf,
header=empty,footer=chapter,
numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in]

use 'numberstyle' instead of 'numbercommand' for style related settings
and replace your \vskip settings with \blank

   before={\blank[force,1.0in]},
   after={\blank[0.5in]},

Wolfgang


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

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

___


___
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] Shaded frame with colored text

2010-07-01 Thread Tom
I haven't had any luck filling in the background of a frame with any color
other than black and with changing the color of the text in the frame to
white or gray. What needs to be added to this mkii code?

\def\MyChapterCommand#1#2% #1 is number, #2 is text
  {\framed[frame=on,align=middle]
 {\vbox{\headtext{chapter} #1\blank#2}}} 

\setuphead[chapter]
 [command=\MyChapterCommand,textstyle=\ss\bf,
  header=empty,footer=chapter,
  numbercommand=\ss\bf\em\tfd,after=\vskip 0.5in,before=\vskip 1.0in]
 
\starttext
\chapter{Test Chapter}
\input knuth
\stoptext

Thanks,

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
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] \numstr errors out in chapter star logic

2010-06-30 Thread Tom



Am 28.06.10 23:33, schrieb Tom:
 The lazy method below yields eleven pages, each of which is headed by n
 Chapter n, where n represents the numerals from 1 to 11. The text version
of
 the chapter numbers do not appear.


\defineconversion[numstring][One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Te
 n,Eleven]

 \setuphead[chapter]
   [conversion=numstring]


How should i know you're using mkii! Replace \setuphead with \setupsection:

\setupsection[chapter][conversion=numstring]

Wolfgang

The following example converts chapter numbers to words for the \chapter
logic but also converts chapter numbers to words in unwanted places such as
in the TOC and section numbers in the text.

\defineconversion[numstring][One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Te
n,Eleven]

\setupsection[chapter]
 [conversion=numstring]  

\starttext

\completecontent
\dorecurse{11}{\chapter{Chapter #1}\par\section{Example section}}

\stoptext

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey



___
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] \numstr errors out in chapter star logic

2010-06-29 Thread Tom
\setupsection[chapter][conversion=numstring]

Wolfgang

This change produces the desired results on the first page of each chapter
but also has some, in my case, undesired side-effects. Chapter numbers in
the table of contents are now spelled out (I prefer numerals in the TOC) and
section numbers in the text begin with the words rather than the numerals
(again, I prefer numerals for section numbers). The documentation probably
explains how to deal with this, but I haven't been able to find it.  All I
want to do is make a cosmetic change to the tops of the chapter start pages.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey







___
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] \numstr errors out in chapter star logic

2010-06-28 Thread Tom
\numstr seems to work fine in the body of text but errors out as if #1 was
not a number when it is used in chapter start loc. Here is an example:


%\numstr begins here

\unprotect

\def\numstring#1{\expandaft...@numstring\csname c...@#1\endcsname}

\d...@numstring#1{\ns@numstr{#1}...@nineteens{null}{}}

\let\nums...@numstring%

\def...@numoutofrange#1#2{\number#1#2}

\def...@numstr#1#2#3#4%
  {\ifnum\number#1\plusone%
 #3%
   \else\ifnum\number#110 %
 \expandafter...@numstring\expandafter{\number#1}#2%
   \else%
 \...@numoutofrange{#1}{#4}%
   \fi\fi}

\def...@numstring#1#2{%
  \expandafter\ns@@numstring%
  \ifcase%
  \ifnum#110 1%
  \else\ifnum#1100 2%
  \else\ifnum#1\...@m 3%
  \else\ifnum#1\...@m 4%
  \else\ifnum#110 5%
  \else\ifnum#1100 6%
  \else\ifnum#11000 7%
  \else\ifnum#11 8%
  \else9%
  \fi\fi\fi\fi\fi\fi\fi\fi %
  \or#1% case 1: Add 8 leading zeros
  \or000#1%  case 2: Add 7 leading zeros
  \or00#1%   case 3: Add 6 leading zeros
  \or0#1%case 4: Add 5 leading zeros
  \or#1% case 5: Add 4 leading zeros
  \or000#1%  case 6: Add 3 leading zeros
  \or00#1%   case 7: Add 2 leading zeros
  \or0#1%case 8: Add 1 leading zero
  \or#1% case 9: Add no leading zeros
  \or%
  \...@nil#2%
  \fi}

\def\ns@@numstring#1#2#3#4#5#6#7\or...@nil#9%
  {\ifnum#1#2#3\z@
   \...@million#1#2#3%
   \ifnum#4#5#6\...@\space\fi%
   \fi%
   \ifnum#4#5#6\...@%
   \...@hundred#4#5#6{#1#2#3}{#4#5}\ns@nineteen%
   \ifnum#4#5#6\...@\space\fi%
   thousand%
   \ifnum#7\...@\space\fi%
   \fi%
   \...@hundred#7{#4#5#6}1#9}

\def...@million#1#2#3%
  {\ifnum#1#2#3=\plusone%
   \...@hundred#1#2#301\ns@nineteene%
   \space%
   million%
   \else%
   \...@hundred#1#2#301\ns@nineteens%
   \space%
   millions%
   \fi}

\def...@hundred#1#2#3#4#5#6%
  {\ifnum#1\...@%
   \ifnum#4#1\...@\ns@nineteen#1\space\fi%
   hundred%
   \ifnum#2#3\...@\space and\space\fi%
   \fi%
   \ifnum#2#320 %
   \ifnum#5#2#3\...@#6{#2#3}\fi%
   \else%
   \...@ninety#2\ifnum#3\...@-\ns@nineteen#3\fi%
   #60%
   \fi}

\def...@nineteen#1%
  {\ifcase#1\empty\or one\or two\or three\or four\or five\or six\or%
   seven\or eight\or nine\or ten\or eleven\or twelve\or thirteen\or%
   fourteen\or fifteen\or sixteen\or seventeen\or%
   eighteen\or nineteen\fi}

\def...@nineteens#1{\ns@nineteen{#1}}

\def...@nineteene#1{\ns@nineteen{#1}}


\def...@ninety#1%
  {\ifcase#1
   \or
   \or twenty%
   \or thirty%
   \or forty%
   \or fifty%
   \or sixty%
   \or seventy%
   \or eighty%
   \or ninety%
   \fi}

\protect


\def\MyChapterCommandA#1#2% #1 is number, #2 is text
  {\numstr{#1}}

\def\MyChapterCommandB#1#2% #1 is number, #2 is text
  {#1  #2}

\setuphead[chapter]
 [command=\MyChapterCommandA]  %change A to B to eliminate \substr call

\starttext

\chapter{First Chapter}

Some sample text. Chapter \numstr{1} numstr logic works correctly when
embedded in the text. Chapter title displays correctly when numstr not in
chapter start logic. Errors out when numstr is in chapter start logic as if
parameter is not a number.

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
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] \numstr errors out in chapter star logic

2010-06-28 Thread Tom

Am 28.06.10 17:59, schrieb Tom:
 \numstr seems to work fine in the body of text but errors out as if #1 was
 not a number when it is used in chapter start loc. Here is an example:

 [...]

 \setuphead[chapter]
   [command=\MyChapterCommandA]  %change A to B to eliminate \substr call


Try \setuphead[chapter][deepnumbercommand=\numstr]

Wolfgang

Making the following changes resulted in ! Missing Number, treated as zero.


%\def\MyChapterCommandA#1#2% #1 is number, #2 is text
%  {\numstr{#1}}

%\def\MyChapterCommandB#1#2% #1 is number, #2 is text
%  {#1  #2}

\setuphead[chapter]
 [deepnumbercommand=\numstr]  



Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey


___
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] Converting numerals to text

2010-06-27 Thread Tom

On Sun, 27 Jun 2010, Tom wrote:

 On Sat, Jun 26, 2010 at 22:31, Tom wrote:
 Is there a command or macro that converts a numeral to its English
 language
 equivalent? For example, I would like to display Thirteen for 13.

 http://wiki.contextgarden.net/Page_numbering_in_words

 http://thread.gmane.org/gmane.comp.tex.context/33962/focus=34304
 (there is an attachment t-counting.tex in that thread)

 Mojca


 The wiki includes the code for a macro, \numstr, that can be used to
create
 lower-case chapter numbers, but when I try to capitalize the first word,
get
 error messages. For example, the following errors out:

 Chapter \Word{\numstr{23}}

 As does

 Chapter \Words{\numstr{23}}

 but

 Chapter \numstr{23}

 Works as does

 Chapter \Words{twenty-three}

 However, the former returns twenty-three (all lower case)
 and the latter returns Twenty-three (only the first part is in upper case)

 It's not clear from the Chicago Manual of Style if three should be
 capitalized in this instance but, to my eye, it doesn't look right. Is
there
 a way to convert chapter numbers to text and select the desired
 capitalization?

If you want every word to be capitalized, simply change one, two, three, 
etc in the source of \numstr to One, Two, Three.

Aditya


If I do that, they will always be in upper case. I would lose the option of
having them in lower case.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey





___
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] Converting numerals to text

2010-06-26 Thread Tom
Is there a command or macro that converts a numeral to its English language
equivalent? For example, I would like to display Thirteen for 13.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






___
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] Suppressing page number on chapter's last page

2010-05-10 Thread Tom
The following link discusses a method for suppressing headers (including
page numbers) from blank pages at the ends of chapters:
http://wiki.contextgarden.net/Titles in the section titled Truly empty
pagebreak before chapters.

Tom Benjey
717-258-9733 voice
717-243-0074 fax
Twitter: @TomBenjey






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

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


  1   2   >