[NTG-context] Various ConTeXt Questions

2008-04-03 Thread Edd Barrett
Hi there,

I am taking a look at conTeXt as a means of typesetting documents with
more advanced page layouts which otherwise would be produced with
desktop publishing suites.

I am very new to conTeXt, so I know very little about it. The only
documentation I have been able to find on the internet is:
ConTeXt Garden
ConTeXt an excursion
ConTeXt : The manual

I have been sifting through these for a while, and whilst the
documentation is good, I still have questions. I must apologise if I
missed the answers in the docs or if the questions are just plain
dumb.

1) Is there a way to make ConTeXt stricter?
It seem that ConTeXt will not complain if you misspell the names of
colours, layers, overlays etc. I would rather it did.

2) Is there a way to overlay many layers/overlays at one place.
It seems using background= can only take 1 layer/overlay. Even better
if I could offset the layer/overlay from an origin.

3) I have had difficulty pushing the whole layout including the margin
to the right about 2cm.
I have tried using setuplayout to alter leftedge, leftedgedistance and
backspace. Is that not the way to do it?

3a) Similarly I would like to make the textheight longer so that the
footer is about 1cm from the bottom of the page. I have had no luck in
setting textheight using setuplayout.

4) Is there a module to parse CVS tags, like the RCS package for laTeX?

5) Can I use OpenType and TrueType fonts in ConTeXt? Ideally via fontspec.

6) Is there a book on ConTeXt for beginners aside from what I have
already listed above?

7) Can I specify RGB colours in th 0 = x = 255 format?
So far I have had to write a script to help me convert them.

8) Is anyone proficient with ConTeXt going to the Cork TeX User Group meeting?

Thanks.

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Wolfgang Schuster
Hi Edd,

 I am taking a look at conTeXt as a means of typesetting documents with
 more advanced page layouts which otherwise would be produced with
 desktop publishing suites.

 I am very new to conTeXt, so I know very little about it. The only
 documentation I have been able to find on the internet is:
 ConTeXt Garden
 ConTeXt an excursion
 ConTeXt : The manual

You can find all manuals from Pragma on their homepage:
http://www.pragma-ade.com/show-man-1.htm

 I have been sifting through these for a while, and whilst the
 documentation is good, I still have questions. I must apologise if I
 missed the answers in the docs or if the questions are just plain
 dumb.

 1) Is there a way to make ConTeXt stricter?
 It seem that ConTeXt will not complain if you misspell the names of
 colours, layers, overlays etc. I would rather it did.

 2) Is there a way to overlay many layers/overlays at one place.
 It seems using background= can only take 1 layer/overlay. Even better
 if I could offset the layer/overlay from an origin.

1. You could set multiple overlays with a comma seperated list and braces before
and after the list.

[...,background={overlay 1,overlay 2,...,overlay n},...]


2. You could use the x and y or offset, hoffset and voffset parameters
for \setlayer
to set the distance from your layer from all four corners of the page,
textblock or any
other pageblock.

 3) I have had difficulty pushing the whole layout including the margin
 to the right about 2cm.
 I have tried using setuplayout to alter leftedge, leftedgedistance and
 backspace. Is that not the way to do it?

The distance between the left margin of the paper and the left margin of
the textblock is set with the backspace key for \setuplayout.

\setuplayout[backspace=...]

 3a) Similarly I would like to make the textheight longer so that the
 footer is about 1cm from the bottom of the page. I have had no luck in
 setting textheight using setuplayout.

You could set a fixed value for the footer and let TeX calculate the textheight.

\setuplayout
  [bottomspace=1cm,
   height=fit]

 4) Is there a module to parse CVS tags, like the RCS package for laTeX?

 5) Can I use OpenType and TrueType fonts in ConTeXt? Ideally via fontspec.

It is possible to use TrueType and OpenType fonts with pdfTeX but this requires
tfm files and a map file.

The easier method is to use XeTeX or LuaTeX as engines and the only thing
you need is a typescript file with the font names and their mapping to ConTeXt's
own font names.

http://wiki.contextgarden.net/Fonts_in_XeTeX (a little bit outdated)
http://wiki.contextgarden.net/Mark_IV#Fonts_and_typescripts (shoudl
also work with XeTeX)

 6) Is there a book on ConTeXt for beginners aside from what I have
 already listed above?

 7) Can I specify RGB colours in th 0 = x = 255 format?
 So far I have had to write a script to help me convert them.

This is not possible but you could use the hex notation

\setupcolor[hex]
\setupcolors[state=start]

\definecolor[hexred]  [#FF]
\definecolor[hexgreen][h=00FF00]

\starttext

\color[hexred]{Red Text}

\color[hexgreen]{Green Text}

\stoptext

 8) Is anyone proficient with ConTeXt going to the Cork TeX User Group meeting?

 Thanks.

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


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Hans Hagen
Edd Barrett wrote:

 8) Is anyone proficient with ConTeXt going to the Cork TeX User Group meeting?

taco an i will be there

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Edd Barrett
Hi,

Thanks for the input, that should be enough to keep me going.

I am going to push some of this info back to conTeXt garden if that is okay.

Will see you in Ireland Hans (if all goes to plan).

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] xetex and attachment: troubles

2008-04-03 Thread Andrea Valle

Thanks Mojca,




The problem is not the --xtx switch, but the lack of support for the
underlying (xdvipdfmx) driver.



Sorry, please remember I'm very far from there...
I was just meaning: the problem is in xetex engine?



I googled a bit and found the following slides:
  http://project.ktug.or.kr/dvipdfmx/doc/tug2005.pdf
see page 18 in particular.


thanks, means really nothing to me :-)



In spec-fdf there is:

\definespecial \doattachfile {\doPDFattachfile}

\def\doPDFattachfile#1#2#3#4#5#6#7#8%
  {\bgroup % title width height color symbol file
   \edefconvertedargument\PDFfile{#8}%
   % beware: the symbol may (indirectly) use the file
   % reference when typesetting the object number;
   \presetPDFsymbolappearance{#5}{#6}{#2}{#3}{#4}% sets width/height
   \startPDFsymbolappearance
 \doPDFembedfile\PDFfile{#7}{#8}%
 \doPDFgetembeddedfilereference\PDFfile\PDFobjectreference
 \setFDFlayer\@@DriverAttachmentLayer
 \doPDFannotation{\width}{\totalheight}
   {/Subtype /FileAttachment
/FS \PDFobjectreference\space
/Contents (#1)
\PDFsymbol
\FDFlayer
\PDFattributes}%
   \stopPDFsymbolappearance
   \egroup}





Something similar needs to be added to spec-dpx.tex.


Can't follow you here. What is spec-dpx?


Best

-a-





--


Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





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

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


Re: [NTG-context] staticMPfigure

2008-04-03 Thread Taco Hoekwater


Wolfgang Werners-Lucchini wrote:
 Hallo,
 
 the following example is a cooked down version of something I found 
 on the net. Compiling this
 
 %
 \setupcolors[state=start]
 
 \forceMPTEXcheck{LABEL}
 
 \startMPinclusions
 vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext(%
\framed[width=1.5cm]{  s  }),p)
 enddef ;
 \stopMPinclusions

I could not get this to work either. Something has changed
in the MPinclusions parsing, maybe? (Putting the definition
in a separate mp file prevents the error, of course)

Best wishes,
Taco


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

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


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Mojca Miklavec
On Wed, Apr 2, 2008 at 4:46 PM, Edd Barrett wrote:

Hello,

  1) Is there a way to make ConTeXt stricter?
  It seem that ConTeXt will not complain if you misspell the names of
  colours, layers, overlays etc. I would rather it did.

Currently not :(

  3a) Similarly I would like to make the textheight longer so that the
  footer is about 1cm from the bottom of the page. I have had no luck in
  setting textheight using setuplayout.

Use height=... for that.

  4) Is there a module to parse CVS tags, like the RCS package for laTeX?

There have been some attempts, but I don't remember the outcome.

  5) Can I use OpenType and TrueType fonts in ConTeXt? Ideally via fontspec.

Fontspec is written for (Xe)LaTeX only (admittedly, it has some more
advanced features in comparison to ConTeXt mechanisms), but both XeTeX
and LuaTeX should nevertheless work OK with ConTeXt with no special
package or module.

Blame me for not updating the Fonts in XeTeX page on Wiki.

  8) Is anyone proficient with ConTeXt going to the Cork TeX User Group 
 meeting?

There is also a ConTeXt meeting in August (Easyjet flies from Stansted
almost directly to the conference site), so if you want some more fun
next to the lake in the middle of Alps, in a small country that you
have probably never visited before, you're more than welcome to come.

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


Re: [NTG-context] xetex and attachment: troubles

2008-04-03 Thread Andrea Valle

Thanks Mojca, Hans,

ok, I've understood.

:)

-a-



On 3 Apr 2008, at 12:17, Hans Hagen wrote:


Mojca Miklavec wrote:

On Thu, Apr 3, 2008 at 11:08 AM, Andrea Valle wrote:

Thanks Mojca,

The problem is not the --xtx switch, but the lack of support  
for the

underlying (xdvipdfmx) driver.


Sorry, please remember I'm very far from there...
I was just meaning: the problem is in xetex engine?



I googled a bit and found the following slides:
  http://project.ktug.or.kr/dvipdfmx/doc/tug2005.pdf
see page 18 in particular.


thanks, means really nothing to me :-)


It was meant for someone else trying to help :-)


she meant me; however, i have no test file and probably a non working
xetex on my machine (need to update)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





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

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


Re: [NTG-context] staticMPfigure

2008-04-03 Thread Hans Hagen
Taco Hoekwater wrote:
 
 Wolfgang Werners-Lucchini wrote:
 Hallo,

 the following example is a cooked down version of something I found 
 on the net. Compiling this

 %
 \setupcolors[state=start]

 \forceMPTEXcheck{LABEL}

 \startMPinclusions
 vardef [EMAIL PROTECTED](expr s, p)= [EMAIL PROTECTED](textext(%
\framed[width=1.5cm]{  s  }),p)
 enddef ;
 \stopMPinclusions
 
 I could not get this to work either. Something has changed
 in the MPinclusions parsing, maybe? (Putting the definition
 in a separate mp file prevents the error, of course)

hm, i'll have a look, but in mkiv there will be no such checks supported 
anyway

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] xetex and attachment: troubles

2008-04-03 Thread Mojca Miklavec
On Thu, Apr 3, 2008 at 11:08 AM, Andrea Valle wrote:
 Thanks Mojca,

 The problem is not the --xtx switch, but the lack of support for the
 underlying (xdvipdfmx) driver.


 Sorry, please remember I'm very far from there...
 I was just meaning: the problem is in xetex engine?



 I googled a bit and found the following slides:
   http://project.ktug.or.kr/dvipdfmx/doc/tug2005.pdf
 see page 18 in particular.

  thanks, means really nothing to me :-)

It was meant for someone else trying to help :-)

  Something similar needs to be added to spec-dpx.tex.

 Can't follow you here. What is spec-dpx?

[TEXMF]/tex/context/base/spec-dpx.tex is a file that someone should
fix in order to make attachments work with XeTeX.

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


Re: [NTG-context] xetex and attachment: troubles

2008-04-03 Thread Hans Hagen
Mojca Miklavec wrote:
 On Thu, Apr 3, 2008 at 11:08 AM, Andrea Valle wrote:
 Thanks Mojca,

 The problem is not the --xtx switch, but the lack of support for the
 underlying (xdvipdfmx) driver.


 Sorry, please remember I'm very far from there...
 I was just meaning: the problem is in xetex engine?



 I googled a bit and found the following slides:
   http://project.ktug.or.kr/dvipdfmx/doc/tug2005.pdf
 see page 18 in particular.

 thanks, means really nothing to me :-)
 
 It was meant for someone else trying to help :-)

she meant me; however, i have no test file and probably a non working 
xetex on my machine (need to update)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] how to NOT reset subsection ONLY ??

2008-04-03 Thread Steffen Wolfrum
Hi,


please have a look a this:


\setupsection[section-2][conversion=numbers]
\setupsection[section-3][conversion=numbers,previousnumber=no]
\setupsection[section-4][conversion=numbers,previousnumber=no]
\setupsection[section-5][conversion=numbers,previousnumber=no]

\setuphead[section][resetnumber=no]


\starttext

\chapter{aa}
\section{bbb}
\subsection{ccc}
\section{bbb}
\subsection{ccc}
\subsubsection{sss}

\chapter{aa}
\section{bbb}
\subsection{(-should be 3) ccc}
\section{bbb}
\subsection{(-should be 4) ccc}
\subsubsection{ddd}

\stoptext



trying to avoid resetting subsection by \setuphead[section] 
[resetnumber=no] fails:
chapter resets everything! but chapter should only reset section and  
not subsection too!!

any idea how to solve this problem (without fiddling with every  
appearance of subsection individually)??


Thank you,

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

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


Re: [NTG-context] placecontent and arranging

2008-04-03 Thread Andrea Valle

This is a FAQ, maybe you could add something to the wiki (I'm sure
it's already there).


Couldn't find it, so I added a note to the Imposition page

-a-


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





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

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


Re: [NTG-context] how to NOT reset subsection ONLY ??

2008-04-03 Thread Wolfgang Schuster
On Thu, Apr 3, 2008 at 10:51 AM, Steffen Wolfrum [EMAIL PROTECTED] wrote:
 Hi,


 please have a look a this:


 \setupsection[section-2][conversion=numbers]
 \setupsection[section-3][conversion=numbers,previousnumber=no]
 \setupsection[section-4][conversion=numbers,previousnumber=no]
 \setupsection[section-5][conversion=numbers,previousnumber=no]

 \setuphead[section][resetnumber=no]


 \starttext

 \chapter{aa}
 \section{bbb}
 \subsection{ccc}
 \section{bbb}
 \subsection{ccc}
 \subsubsection{sss}

 \chapter{aa}
 \section{bbb}
 \subsection{(-should be 3) ccc}
 \section{bbb}
 \subsection{(-should be 4) ccc}
 \subsubsection{ddd}

 \stoptext



 trying to avoid resetting subsection by \setuphead[section]
 [resetnumber=no] fails:
 chapter resets everything! but chapter should only reset section and
 not subsection too!!

 any idea how to solve this problem (without fiddling with every
 appearance of subsection individually)??

You could define subsection as a copy from section.

\setupsection[section][conversion=numbers,previousnumber=no]

\definehead[subsection][section]
\setuphead[subsection][style=]

I tried to get this effect also with ConTeXt's subhead and setupsection
commands but failed to get the desired effect. The only way to know
and understand the keys for both commands is to read the source :-(

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


[NTG-context] How to make an epigragh?

2008-04-03 Thread cidadaum

Hello!

I want to do an epigraph (a small quotation with an identationation  
of, say, 6 or more cm)  the beginning of a chapter: How I can I do it?  
(sorry but didn't understand it from the manuals.

Thanks

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

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


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Aditya Mahajan
On Thu, 3 Apr 2008, Mojca Miklavec wrote:

  4) Is there a module to parse CVS tags, like the RCS package for laTeX?

 There have been some attempts, but I don't remember the outcome.

Parsing tags is simple, for example, 
http://archive.contextgarden.net/message/20070920.231549.347dc370.en.html
and
http://archive.contextgarden.net/message/20080123.123404.d1e0dbab.en.html

If you can specify exactly what you want, I can create a module for this.

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


Re: [NTG-context] How to make an epigragh?

2008-04-03 Thread Tobias Burnus
[EMAIL PROTECTED] wrote:
 I want to do an epigraph (a small quotation with an identationation  
 of, say, 6 or more cm)  the beginning of a chapter: How I can I do it?  
 (sorry but didn't understand it from the manuals.
   
I did it in my theses like described in 
http://wiki.contextgarden.net/Extended_description
Hope it helps.

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

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


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Edd Barrett
On Thu, Apr 3, 2008 at 12:59 PM, Aditya Mahajan [EMAIL PROTECTED] wrote:
  Parsing tags is simple, for example,
  http://archive.contextgarden.net/message/20070920.231549.347dc370.en.html
  and
  http://archive.contextgarden.net/message/20080123.123404.d1e0dbab.en.html

  If you can specify exactly what you want, I can create a module for this.

Just a way of isolating each of the marco's values that cvs defines. How about:

---8---
\definecvskeyword[cvsdate][D/M/Y]{$Date$}% will be expanded upon
commit to something like $Date: 1999/12/23 01:59:22 $
\starttext
Last Updated: \cvskeyword[cvsdate]
\stoptext
---8---

would produce:
Last Updated: 1999/12/23 01:59:22

List of standard keywords here, but bear in mind that users can ake
their own per repository:
http://badgertronics.com/writings/cvs/keywords.html


Thoughts?

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Various ConTeXt Questions

2008-04-03 Thread Peter Münster
On Thu, Apr 03 2008, Edd Barrett wrote:

 Just a way of isolating each of the marco's values that cvs defines. How 
 about:
 
 ---8---
 \definecvskeyword[cvsdate][D/M/Y]{$Date$}% will be expanded upon
 commit to something like $Date: 1999/12/23 01:59:22 $
 \starttext
 Last Updated: \cvskeyword[cvsdate]
 \stoptext
 ---8---
 
 would produce:
 Last Updated: 1999/12/23 01:59:22

Hello Edd,

Perhaps like this:

% engine=luatex

\startluacode
thirddata = thirddata or { }

-- write the replacement string
-- p: pattern
-- r: replacement pattern
-- s: subject
function thirddata.replace(p, r, s)
s = string.gsub(s, ^.- .. p .. .-$, r)
tex.print(s)
end
\stopluacode

\def\definereplacement{\doquadrupleargument\dodefinereplacement}

\def\dodefinereplacement[#1][#2][#3][#4]{\expandafter
  \def\csname #1\endcsname{\ctxlua{thirddata.replace(#2, #3, #4)}}}

\definereplacement[cvsdate] [(\%d+)/(\%d+)/(\%d+)] [\%3.\%2.\%1]
  [$Date: 1999/12/23 01:59:22 $]
\definereplacement[cvstime] [(\%d+):(\%d+):(\%d+)] [\%1h \%2m \%3s]
  [$Date: 1999/12/23 01:59:22 $]
\definereplacement[cvsfile] [: (.+),] [\\type{\%1}]
  [$RCSfile: keyword.html,v $]

\starttext
File: \cvsfile, last Updated: \cvsdate\ at \cvstime
\stoptext


Cheers, Peter

-- 
http://pmrb.free.fr/contact/

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

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


[NTG-context] unknown reference fnt:f:50

2008-04-03 Thread cidadaum
Hi!

I have compiled my  file but it stopped on page 14 with the log file  
(bottom of the message) saying unknown reference

I remarked that hyphenation patterns for portuguese do this hypenation  
li-gar-am instead of li-ga-ram. How can I correct that?
I remarked that hyphenation for pronominal verbs in portuguese is also  
incorrect (though wordprocessors do that as well) because when, say,  
this verb amo-te is broken across two lines it should be hyphenated  
this way
amo-
-te

A fix will be very welcomed.

armando

i.t., there should be two hyphens sbreaks this ver)
[EMAIL PROTECTED]:~/Documents texexec --xtx augusto_eduardo_nunes31mart.tex
TeXExec | processing document 'augusto_eduardo_nunes31mart.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file augusto_eduardo_nunes31mart.top
TeXExec | using randomseed 1411
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeX, Version 3.141592-2.2-0.996 (Web2C 7.5.6)
  (WARNING: translate-file natural.tcx ignored)
entering extended mode
(./augusto_eduardo_nunes31mart.tex

ConTeXt  ver: 2007.01.12 15:56 MKII  fmt: 2007.9.22  int: english/english

language: language en is active
system  : cont-new loaded
(/usr/share/texmf/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/usr/share/texmf/tex/context/base/cont-new.mkii))
system  : cont-old loaded
(/usr/share/texmf/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/share/texmf/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/share/texmf/tex/context/user/cont-sys.rme
(/usr/share/texmf/tex/context/base/type-exa.tex)
(/usr/share/texmf/tex/context/base/type-syn.tex)
(/usr/share/texmf/tex/context/base/type-enc.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-map.tex)
(/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-akb.tex)
(/usr/share/texmf/tex/context/base/type-xtx.tex)
fonts   : resetting map file list
fonts   : using map file: texnansi-public-lm
c \usedmapfile{=}{texnansi-public-lm}
fonts   : using map file: original-base
c \usedmapfile{=}{original-base}
fonts   : using map file: ec-public-lm
c \usedmapfile{=}{ec-public-lm}
fonts   : using map file: ec-base
c \usedmapfile{=}{ec-base}
fonts   : using map file: lm-ec
c \usedmapfile{=}{lm-ec}
fonts   : using map file: 8r-base
c \usedmapfile{=}{8r-base}
fonts   : using map file: t5-base
c \usedmapfile{=}{t5-base}
fonts   : using map file: texnansi-base
c \usedmapfile{=}{texnansi-base}
fonts   : using map file: qx-base
c \usedmapfile{=}{qx-base}
fonts   : using map file: original-ams-base
c \usedmapfile{=}{original-ams-base}
fonts   : using map file: original-ams-euler
c \usedmapfile{=}{original-ams-euler}
fonts   : using map file: original-public-lm
c \usedmapfile{=}{original-public-lm}
fonts   : using map file: qx-public-lm
c \usedmapfile{=}{qx-public-lm}
fonts   : using map file: t5-public-lm
c \usedmapfile{=}{t5-public-lm}
c \usedmapline{+}{umvs MarVoSym marvosym.pfb}
)
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3  
de-texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3  
fr-ec:ec-6-2:3
  es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3  
it-texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3  
nl-ec:ec-
 13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3  
 sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : augusto_eduardo_nunes31mart.top loaded
(./augusto_eduardo_nunes31mart.top
specials: loading definition file dpx
(/usr/share/texmf/tex/context/base/spec-dpx.tex
specials: loading definition file fdf
(/usr/share/texmf/tex/context/base/spec-fdf.tex
(/usr/share/texmf/tex/context/base/spec-fdf.mkii))
specials: fdf loaded
)
specials: fdf,dpx loaded
) (/usr/share/texmf/tex/context/base/type-pre.tex)
(/usr/share/texmf/tex/context/base/sort-def.tex)
(/usr/share/texmf/tex/context/base/sort-lan.tex)
systems : begin file augusto_eduardo_nunes31mart at line 2
[1.1] [2.2] [3.3] [4.4] [5.5] [6.6] [7.7] [8.8] [9.9]
references  : unknown reference [][fnt:t:1]
references  : unknown reference [][fnt:f:1]
references  : unknown reference [][fnt:t:2]
references  : unknown reference [][fnt:f:2]
[10.10] [11.11]
references  : unknown reference [][fnt:t:3]
references  : unknown reference [][fnt:f:3]
references  : unknown reference [][fnt:t:4]
references  : unknown reference [][fnt:f:4]
[12.12] [13.13]
references  : unknown reference [][fnt:t:5]

Re: [NTG-context] unknown reference fnt:f:50

2008-04-03 Thread Aditya Mahajan
On Thu, 3 Apr 2008, [EMAIL PROTECTED] wrote:

 Hi!

 I have compiled my  file but it stopped on page 14 with the log file
 (bottom of the message) saying unknown reference

I think that your file has a missing } somewhere. Run texmfstart concheck 
filename and it should
tell you where the missing } is.

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


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

2008-04-03 Thread Tobias Burnus
Hello Taco,

Taco Hoekwater wrote:
 Tobias Burnus wrote:
   
 The problem is: If I do not escape the % signs, I get a TeX error. If I 
 escape them with \%, both the link and the printed text show the 
 backslash. What is the proper way of doing it?
 
 Yikes. There is no 'proper way' afaik, sorry.
 I am busy catching up right now, so I have no time to delve into this
 for the next few days. You will probably have to remind me (end of the 
 week?)
   
OK: * Ping * ;-)

 * * *

I saw in a book some quite interesting author index. It consisted of the 
references followed by the page number(s):

Lastname, A. and B. Smith, My Journal, 44, 1234 (2020).33, 47, 77

How difficult would it to get it with t-bib? The page numbers would be 
simply the pages where the reference was \cite[]ed.

 * * *

For those, who do not yet know it and are interested: TUG is 
participating in Google Summer of Code, for which the (extended) 
application deadline is next Monday. See also 
http://www.tug.org/gsoc/ideas.html (There are some nice ConTeXt and 
LuaTeX projects listed.)   Taco of cause know more about this ;-)
(While I know more about GCC [and especially gfortran], which had a slow 
start but now 19 fair to excellent applications.)

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

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


[NTG-context] luatex feature question/request

2008-04-03 Thread Marcin Borkowski
Hello!

I was just wondering, whether something like this is possible in luatex
- and if not, if it might be implemented;).  I'd like to be able to
transform somehow the input right *before* TeX sees it.  What I mean is
e.g. a transformation using regexps.  Application I have in mind is as
follows: in Polish, there are a few prepositions which are one-letter
words; it's a bad custom to leave them hanging at the end of a line.
Such an option could automatically put ties (~) instead of spaces after
them - a feature sometimes requested by Polish TeX users.

Yours,

-- 
Marcin Borkowski (http://mbork.faculty.fmcs.amu.edu.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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___