[NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Piotr Kopszak
Dear list,

 I am beginning a rather tedious documentation project and will most
   probably end up with DocBook. The fact is I haven't used it for any
   serious work for about 10 years. Docbook In ConText haven't been
   updated since 2003. Does it mean it's so perfect or instead rather
   obsolete? Could you recommend other approaches which work
   out-of-the-box (or almost). Obviously I would prefer ConTeXt based
   solutions. DocBook is not mandatory in fact, I would happily learn  other
   documentation system. Main prerequisite is utf-8 output at least in
   pdf and html and sensible defaults (this time I don't want to be a
   typographer, nor I want to fiddle with structure).

   Best

   Piotr
   --
   http://okle.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Thomas Schmitz

On Thu, 2 Jun 2011 11:39:46 +0200
 Piotr Kopszak kops...@gmail.com wrote:

Dear list,

I am beginning a rather tedious documentation project 
and will most
  probably end up with DocBook. The fact is I haven't 
used it for any
  serious work for about 10 years. Docbook In ConText 
haven't been
  updated since 2003. Does it mean it's so perfect or 
instead rather
  obsolete? Could you recommend other approaches which 
work
  out-of-the-box (or almost). Obviously I would prefer 
ConTeXt based
  solutions. DocBook is not mandatory in fact, I would 
happily learn  other
  documentation system. Main prerequisite is utf-8 
output at least in
  pdf and html and sensible defaults (this time I don't 
want to be a

  typographer, nor I want to fiddle with structure).

  Best

  Piotr
  --
  http://okle.pl


Difficult to say of course without knowing the complexity 
of your documents, but just a few thoughts: if you're 
referring to Simon Pepping's Docbook in ConTeXt, this 
was targeted at mkii, so it will probably still work, but 
could be considered obsolete. xml support in mkiv has 
changed a lot, but is much more powerful and flexible. 
It's fairly easy to write a stylesheet to translate your 
xml for typesetting, so I would look at the relevant xml 
documentation (like xml-mkiv.pdf) and make a fresh start. 
You can always refine and elaborate things as you go, and 
if you really hit a wall, there's the list.


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Piotr Kopszak
Many thanks for your reply! I would certainly go this way having a
couple of months or a year perspective. Besides I'm eager to try
finally the new way mkIV deals with xml. But realistically, preparing
and testing a mapping of  even a subset of DocBook is a question of at
least a couple of personmonths if not worse. Sadly, I'm not in a
position to that now.

Best

Piotr

2011/6/2 Thomas Schmitz tschm...@uni-bonn.de:
 On Thu, 2 Jun 2011 11:39:46 +0200
  Piotr Kopszak kops...@gmail.com wrote:

 Dear list,

 I am beginning a rather tedious documentation project and will most
  probably end up with DocBook. The fact is I haven't used it for any
  serious work for about 10 years. Docbook In ConText haven't been
  updated since 2003. Does it mean it's so perfect or instead rather
  obsolete? Could you recommend other approaches which work
  out-of-the-box (or almost). Obviously I would prefer ConTeXt based
  solutions. DocBook is not mandatory in fact, I would happily learn  other
  documentation system. Main prerequisite is utf-8 output at least in
  pdf and html and sensible defaults (this time I don't want to be a
  typographer, nor I want to fiddle with structure).

  Best

  Piotr
  --
  http://okle.pl

 Difficult to say of course without knowing the complexity of your documents,
 but just a few thoughts: if you're referring to Simon Pepping's Docbook in
 ConTeXt, this was targeted at mkii, so it will probably still work, but
 could be considered obsolete. xml support in mkiv has changed a lot, but is
 much more powerful and flexible. It's fairly easy to write a stylesheet to
 translate your xml for typesetting, so I would look at the relevant xml
 documentation (like xml-mkiv.pdf) and make a fresh start. You can always
 refine and elaborate things as you go, and if you really hit a wall, there's
 the list.

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

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




-- 
http://okle.pl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Hans Hagen

On 2-6-2011 11:39, Piotr Kopszak wrote:

Dear list,

  I am beginning a rather tedious documentation project and will most
probably end up with DocBook. The fact is I haven't used it for any
serious work for about 10 years. Docbook In ConText haven't been
updated since 2003. Does it mean it's so perfect or instead rather
obsolete? Could you recommend other approaches which work


it was never something official (afaik it even hacked core macros) but 
an experiment by a user


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Hans Hagen

On 2-6-2011 12:53, Piotr Kopszak wrote:

Many thanks for your reply! I would certainly go this way having a
couple of months or a year perspective. Besides I'm eager to try
finally the new way mkIV deals with xml. But realistically, preparing
and testing a mapping of  even a subset of DocBook is a question of at
least a couple of personmonths if not worse. Sadly, I'm not in a
position to that now.


Months? I never had a reason for doing a docbook mapping but a couple of 
hours should get you a start. Th eonly reason why I'd look into docbook 
is if I'd need in in a project. (I'd happily spent a few well paid 
months on it then.)


You probably don't need all of docbook, so you could start with some 
simple tests. The mkii docbook stuff you mentioned definitely is doing a 
small subset.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] teletype style in type-win.mkiv

2011-06-02 Thread Richard Stephens
Hello all,

I'm afraid I've never spent the time to understand fonts properly, I just
make do with the defaults most of the time. Now, however, I am being forced
to use company default fonts for some documents. I have got as far as using
the following commands to setup my body font:

\usetypescriptfile[type-win]
\usetypescript[arial]
\setupbodyfont[arial, 10pt]

But the teletype style now has no effect: e.g. using {\tt teletype} gives
the same font as normal, and \showbodyfont reveals the same.

I've tried making sense of the type-win.mkiv file but it's beyond me! Any
suggestions how to get \tt to use Courier New, for instance?

Thanks,

Richard

Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] teletype style in type-win.mkiv

2011-06-02 Thread Hans Hagen

On 2-6-2011 3:57, Richard Stephens wrote:


I've tried making sense of the type-win.mkiv file but it's beyond me! Any
suggestions how to get \tt to use Courier New, for instance?


\setupbodyfont[mcore]


Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged.
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.


(always funny such a remark as the confidentially banner takes most 
toner/ink)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Problem installing minimals on PowerMac G4

2011-06-02 Thread Robert Blackstone
Hi,

When installing the current version of ConTeXt-minimals on my old
PowerMac G4 (OSX 10.4.11), on which the minimals have been installed,
and have worked, without any problems up till october last year, the
process stopped midway, because the file 'metafun' could not be
opened.
The last lines of the log are:

TeXExec | using tex engine xetex
TeXExec | using tex format path ./xetex
TeXExec | unable to make format due to lack of permissions
TeXExec | using mp engine mpost
TeXExec | using mps format path .
TeXExec | generating mps format metafun
This is MetaPost, version 1.504 (kpathsea version 6.0.0)
! I can't open file `metafun'.
* metafun

Please type another input file name: 

Does anybody know what can be done about this?
(I even do not know how to abort the process other than quitting Terminal.)

Incidentally, the PowerMac has not been used between october and now.
Thanks in advance.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] teletype style in type-win.mkiv

2011-06-02 Thread Richard Stephens
On 2 June 2011 15:26, Hans Hagen pra...@wxs.nl wrote:

 On 2-6-2011 3:57, Richard Stephens wrote:

  I've tried making sense of the type-win.mkiv file but it's beyond me! Any
 suggestions how to get \tt to use Courier New, for instance?


 \setupbodyfont[mcore]


Sorry Hans, I don't understand what I'm supposed to do with that command.
Anyway, I have found another way around the problem. I have removed the
typescript and font commands for Arial and replaced them with:

\setupbodyfont[helvetica, 10pt]

which is indistinguishable from Arial for 99% of the population, and it has
the advantage that all the styles are already defined, including \tt.

Richard

Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188 Registered in England and Wales. Registered 
office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose the contents to another person, use it for any purpose or store or 
copy the information in any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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 installing minimals on PowerMac G4

2011-06-02 Thread Mojca Miklavec
On Thu, Jun 2, 2011 at 17:37, Robert Blackstone wrote:
 Hi,

 When installing the current version of ConTeXt-minimals on my old
 PowerMac G4 (OSX 10.4.11), on which the minimals have been installed,
 and have worked, without any problems up till october last year, the
 process stopped midway, because the file 'metafun' could not be
 opened.

Where did you install the minimals?

Can you try
   chown -R yourusername /path/to/installation
?

 The last lines of the log are:

 TeXExec | using tex engine xetex
 TeXExec | using tex format path ./xetex
 TeXExec | unable to make format due to lack of permissions
 TeXExec | using mp engine mpost
 TeXExec | using mps format path .
 TeXExec | generating mps format metafun
 This is MetaPost, version 1.504 (kpathsea version 6.0.0)
 ! I can't open file `metafun'.
 * metafun

 Please type another input file name: 

 Does anybody know what can be done about this?
 (I even do not know how to abort the process other than quitting Terminal.)

Ctrl-C (a couple of times), Ctrl-D, Ctrl-\, ... or killall (but I'm
not experience enough in giving you further details).

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
___


Re: [NTG-context] teletype style in type-win.mkiv

2011-06-02 Thread Aditya Mahajan

On Thu, 2 Jun 2011, Richard Stephens wrote:


On 2 June 2011 15:26, Hans Hagen pra...@wxs.nl wrote:


On 2-6-2011 3:57, Richard Stephens wrote:

 I've tried making sense of the type-win.mkiv file but it's beyond me! Any

suggestions how to get \tt to use Courier New, for instance?



\setupbodyfont[mcore]



Sorry Hans, I don't understand what I'm supposed to do with that command.


There was a typo there. It should be

\setupbodyfont[mscore]

MkIV defines a typescript for microsoft core fonts called mscore. In 
recent version of context, you don't need to specify \setuptypescript, 
\setupbodyfont does that for you. So, just include that command on the top 
of your file, and it should work.


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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Bruce
Hans Hagen pragma at wxs.nl writes:

 
 On 2-6-2011 12:53, Piotr Kopszak wrote:
  Many thanks for your reply! I would certainly go this way having a
  couple of months or a year perspective. Besides I'm eager to try
  finally the new way mkIV deals with xml. But realistically, preparing
  and testing a mapping of  even a subset of DocBook is a question of at
  least a couple of personmonths if not worse. Sadly, I'm not in a
  position to that now.
 
 Months? I never had a reason for doing a docbook mapping but a couple of 
 hours should get you a start. Th eonly reason why I'd look into docbook 
 is if I'd need in in a project. (I'd happily spent a few well paid 
 months on it then.)
 
 You probably don't need all of docbook, so you could start with some 
 simple tests. The mkii docbook stuff you mentioned definitely is doing a 
 small subset.

I never understand why you would try to typeset XML directly in ConTeXt? 
Why not just convert the DocBook to ConTeXt source using XSLT (or if the 
docs are simpler, use markdown with pandoc and you can easily get ConTeXt 
and HTML from the same source)?

Bruce

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] DocBook in ConTeXt - any new ideas?

2011-06-02 Thread Hans Hagen

On 2-6-2011 7:17, Bruce wrote:

Hans Hagenpragmaat  wxs.nl  writes:



On 2-6-2011 12:53, Piotr Kopszak wrote:

Many thanks for your reply! I would certainly go this way having a
couple of months or a year perspective. Besides I'm eager to try
finally the new way mkIV deals with xml. But realistically, preparing
and testing a mapping of  even a subset of DocBook is a question of at
least a couple of personmonths if not worse. Sadly, I'm not in a
position to that now.


Months? I never had a reason for doing a docbook mapping but a couple of
hours should get you a start. Th eonly reason why I'd look into docbook
is if I'd need in in a project. (I'd happily spent a few well paid
months on it then.)

You probably don't need all of docbook, so you could start with some
simple tests. The mkii docbook stuff you mentioned definitely is doing a
small subset.


I never understand why you would try to typeset XML directly in ConTeXt?
Why not just convert the DocBook to ConTeXt source using XSLT (or if the
docs are simpler, use markdown with pandoc and you can easily get ConTeXt
and HTML from the same source)?


(1) because xslt mappings can become pretty unreadable
(2) because you still need to make a file (and define environments)
(3) because it then create another depencency and intermediate 
processing stage
(4) because sometimes it makes sense to let the typesetting engine make 
decisions

(5) because in mkiv one can apply lua functions to xml content
(6) ...

anyhow, the whole idea of xml is that it can be processed by whatever 
machinery (and using xslt and/or xsl-fo for everything kin dof 
contradicts that)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] teletype style in type-win.mkiv

2011-06-02 Thread Pontus Lurcock
On Thu 02 Jun 2011, Richard Stephens wrote:

 \setupbodyfont[helvetica, 10pt]

 which is indistinguishable from Arial for 99% of the population, and
 it has the advantage that all the styles are already defined,
 including \tt.

Anyone who can distinguish Helvetica from Arial is likely to have
sufficient taste to realize that Helvetica is superior ;-).

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/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] No chapter prefixes in section numbers

2011-06-02 Thread Aditya Mahajan

On Thu, 2 Jun 2011, Wolfgang Schuster wrote:



Am 02.06.2011 um 02:28 schrieb Aditya Mahajan:


Hi,

I do not want chapter number to be prefixed in section and subsection numbers. 
Thus,

\starttext
\chapter{One}
\section{Two}
\subsection{Three}
\stoptext

should give:

1 One
1 Two
1.1 Three

How to achieve that? I tried

\setuphead[section][prefixset=none]

but to no affect.


\setuphead[section]   [sectionsegments=section]
\setuphead[subsection][sectionsegments=section:subsection]


Thanks.


Prefixes are used from commands which show the section numbers
in front of their own number, e.g. floats or enumerations.


Ah, that is why strc-sec did not use any prefixset.

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
___