Re: [NTG-context] title page ( \framed)

2010-06-27 Thread Peter Münster
On Sun, Jun 27 2010, Alan BRASLAU wrote:
 In typesetting a title page,
 why in this minimal example is the framed title not centered?
 
 \starttext
 \startstandardmakeup [doubleside=no,align=middle]
   \framed
   {Title}
 \stopstandardmakeup
 \stoptext

Hello,

You need \dontleavehmode (see also here, question 21:
http://wiki.contextgarden.net/FAQ )

Cheers, Peter

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


Re: [NTG-context] post-commit hook for contextman

2010-06-27 Thread Peter Münster
On Mon, Jun 07 2010, Taco Hoekwater wrote:

 Is it possible, to get email on every commit to
 http://foundry.supelec.fr/gf/project/contextman ?

 Sure. Subscribe to the Lists - contextman-commits mailing list

Hello,

The list seems to be broken. I don't get any email...

Cheers, Peter

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


Re: [NTG-context] \framed

2010-06-27 Thread Alan BRASLAU
On Sunday 27 June 2010 08:27:44 Peter Münster wrote:
 
 You need \dontleavehmode (see also here, question 21:
 http://wiki.contextgarden.net/FAQ )
 

Of course. I remembered this afterwords.
We need to explain this more clearly in the documentation
under \framed{} (which contains discussion on vertical spacing)

\dontleavehmode does not appear in the manual.
I will try to correct this...

The Gardien of the Main_Page should add
http://wiki.contextgarden.net/FAQ
(suggestion: just after Mailing Lists)

Alan
___
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] post-commit hook for contextman

2010-06-27 Thread Taco Hoekwater


Hi Fabrice,

On 06/27/2010 09:13 AM, Peter Münster wrote:

On Mon, Jun 07 2010, Taco Hoekwater wrote:


Is it possible, to get email on every commit to
http://foundry.supelec.fr/gf/project/contextman ?


Sure. Subscribe to the Lists -  contextman-commits mailing list


Hello,

The list seems to be broken. I don't get any email...


Can you check this list please? The last message I have received from it 
was in April last year, so I guess that was still on the old

software.

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

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


Re: [NTG-context] vim syntax highlighting in MKIV

2010-06-27 Thread Martin 'golodhrim' Scholz
On Sun, 27 Jun 2010 01:41:35 -0400, Aditya Mahajan wrote:

 On Sat, 26 Jun 2010, Aditya Mahajan wrote:
 
 Almost all the errors in t-vim over the years have due to trying to
 support kpse: directive. (The errors were not a fault of ConTeXt, but
 the way quotes are handled by cmd.exe and the various shells in *nix. I
 still haven't figured out a syntax that works with all shells). This
 makes me wonder whether it was a good idea to make vim module work out
 of the box. Perhaps a more robust alternative was to ask the uses to
 copy 2context.vim to $HOME/.vim/scripts/ and forget about getting
 mtxrun to locate the file. What do others think?
 
 In the spirit of MkIV, I have attempted to redo the vim module from
 scratch.
 
 http://github.com/adityam/filter
 
 Download t-vim.tex t-filter.tex and 2context.vim. For testing just place
 them in the current directory.
 
 This new version is delegates the task of creating external files and
 running vim to get syntax highlighting to t-filter. It reads the file
 under a restrictive catcode regime... so 2context.vim only has to escape
 a few characters: \ { }, everything else has a catcode other (except
 space and newline which are active).
 
 Currently, this new module only supports
 
 * syntax highlighting (syntax=filetype)
 
 * two color schemes (alternative=pscolor and alternative=blackandwhite)
 
 * specifying start and stop lines (start=... , stop=...)
 
 An additional feature is that the module stores the md5 sums of all
 files, and runs vim only if the file has changed. So, this should be
 significantly faster than the old module.
 
 Difference
 
 * No \typevimfile... instead \definevimtyping[whatever] creates a
 command \typewhateverfile that can be used as
   \typewhateverfile[options][file]
 
 * Currently, no support for line numbering, although that should be easy
 to add now.
 
 * No support for active spaces yet.
 
 * Most importantly, this only runs under MkIV. That is because
 \doprocesslocalsetups is not defined in MkII.
 
 Hans, can you add the definition of \doprocesslocalsetups to MkII?
 
 I have only tested on linux. Testing on other platforms will be
 appreciated (Just run the files under test/vim/).
 
 Aditya

Hi Aditya,
just cloned the your git and linked them into the project I use the 
syntax highlightling, and it works, thanks for the fast and professional 
help...

Greetings


-- 
---
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 
e-Mail: scholz@googlemail.com

Avec!

___
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] How do I stretch text in header?

2010-06-27 Thread Oliver Heins
I want to typeset the section title in stretched smallcaps in the
header.  This is what I came up with, but it won't print the section
title, but instead the phrase »section«:

\setuppagenumbering[none]

\def\stretchedspacefactor{4}
\def\stretchedspaceamount{.2em}
\setupheader[]
\setupheadertexts[\setups{header}]
\startsetups[header]
  \hfill {\sc\stretchedlowercase{\getmarking[section]}}\hfill
%  \hfill {\sc\getmarking[section]}\hfill % works, but no stretching
\stopsetups

\starttext

\section{This is a test!}

\input knuth

\stoptext


Thanks,
 olli

-- 
Oliver Heins he...@sopos.org  http://www.sopos.org/olli
GPG: F27A BA8C 1CFB B905 65A8  2544 0F07 B675 9A00 D827
1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827
Please avoid sending me Word or PowerPoint attachments:
http://www.gnu.org/philosophy/no-word-attachments.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] How do I stretch text in header?

2010-06-27 Thread Wolfgang Schuster

Am 27.06.10 13:02, schrieb Oliver Heins:

I want to typeset the section title in stretched smallcaps in the
header.  This is what I came up with, but it won't print the section
title, but instead the phrase »section«:
   


Do you use Mark 2 or Mark 4?

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] vim syntax highlighting in MKIV

2010-06-27 Thread Peter Münster
On Sun, Jun 27 2010, Aditya Mahajan wrote:

 In the spirit of MkIV, I have attempted to redo the vim module from 
 scratch.

 http://github.com/adityam/filter

 Download t-vim.tex t-filter.tex and 2context.vim. For testing just place 
 them in the current directory.

Hello Aditya,

Thanks for these great modules!  It would be nice to make them available in
the minimals!

Cheers, Peter

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


Re: [NTG-context] vim syntax highlighting in MKIV

2010-06-27 Thread Wolfgang Schuster

Am 27.06.10 07:41, schrieb Aditya Mahajan:

On Sat, 26 Jun 2010, Aditya Mahajan wrote:

Almost all the errors in t-vim over the years have due to trying to 
support kpse: directive. (The errors were not a fault of ConTeXt, but 
the way quotes are handled by cmd.exe and the various shells in *nix. 
I still haven't figured out a syntax that works with all shells). 
This makes me wonder whether it was a good idea to make vim module 
work out of the box. Perhaps a more robust alternative was to ask the 
uses to copy 2context.vim to $HOME/.vim/scripts/ and forget about 
getting mtxrun to locate the file. What do others think?


In the spirit of MkIV, I have attempted to redo the vim module from 
scratch.


http://github.com/adityam/filter

[...]

* Most importantly, this only runs under MkIV. That is because 
\doprocesslocalsetups is not defined in MkII.


Hans, can you add the definition of \doprocesslocalsetups to MkII?


If you don't matter about performance you can use 
'\processcommacommand[...]\directsetup'


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] producing a pdf/X-1a:2001 file

2010-06-27 Thread Peter Rolf
Am 26.06.2010 22:25, schrieb Ciro:
 Peter, thank you for you file.
 I tested it, but the \usePDFXoutputintent
 command is not understood by texexec.

true. the example code is mkiv only. as mkii is frozen (no new features)
pdf/x support is limited to mkiv. you also wrote
'The file produced by LuaTex is PDF 1.5.', so where is the problem? ;)

mkii (pdftex): texexec yourbook.tex
mkiv (luatex): context yourbook.tex

anyhow, here is an interesting link about pdf/x-1a

http://www.prepressure.com/pdf/basics/pdfx-1a

there a quite a lot of other restrictions in pdf/x-1a (aside from what
can be handled in context). be sure to fulfil them all.
and you have to ask your printing house, what output intent is used
(probably stated on their side).

updated test files (now one for each version) are attached.


 thank you
 ciro
 
 
 
 
 
 On Sat, Jun 26, 2010 at 7:14 AM, Peter Rolf indi...@gmx.net wrote:
 Am 26.06.2010 04:36, schrieb luigi scarso:
 On Sat, Jun 26, 2010 at 2:34 AM, Ciro c...@kavyata.com wrote:
 The company that is printing my book requires format
 PDF/X-1a:2001.  The file produced by LuaTex is PDF 1.5.

 I wonder if there will be a problem, and if so, how can I do the
 conversion to X-1a:2001?
 It's a complex subject, I fear that you need acrobat to be sure or
 defend your result

 Anyway
 http://www.tug.org/pipermail/pdftex/2009-June/thread.html#8050

 Context should be able to produce PDF/X-1a:2003 so far (donno the
 difference to the 2001 version). I will look into it tomorrow (no time
 now). To give you a first impression what is needed (data,formats), I
 attached a test file (mkiv only) for the 2003 variant.


 Best wishes, Peter

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

% PDF/X-1a:2003
\pdfminorversion=4% PDF/X-1a:2003 allows PDF1.4, but no transparency, JBIG2 
compression
\setupcolors[rgb=no]% only CMYK and Gray allowed


%\embedICCprofile{CMYK}{ISOcoated_v2_300_eci.icc}

\usePDFXoutputintent
  [%reference=no,
   info={ISO Coated v2 (ECI)},
   outputcondition={Offset printing, according to ISO 12647-2:2004/Amd 1, 
OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase curves A 
(CMY) and B (K)},
   id=FOGRA39,
   name=http://www.color.org]


\starttext

\setupinteraction
  [title=TITLE,
   subtitle=SUBTITLE,
   author=AUTHOR,
   keyword={{KEYWORD1, KEYWORD2}, KEYWORD3},
  ]


\startluacode
-- PDF/X-1a:2003
lpdf.addtoinfo(GTS_PDFXVersion,PDF/X-1a:2003)
lpdf.injectxmpinfo(xml://rdf:RDF,rdf:Description rdf:about='' 
xmlns:pdfxid='http://www.npes.org/pdfx/ns/id/'pdfxid:GTS_PDFXVersionPDF/X-1a:2003/pdfxid:GTS_PDFXVersion/rdf:Description,false)
\stopluacode
\null

\definecolor[cmykblack][k=1]

\hbox\bgroup
\blackrule[color=cyan,width=1cm,height=1cm]%
\blackrule[color=magenta,width=1cm,height=1cm]%
\blackrule[color=yellow,width=1cm,height=1cm]%
\blackrule[color=cmykblack,width=1cm,height=1cm]
\egroup

\stoptext
% PDF/X-1a:2001
\pdfminorversion=3% PDF/X-1a:2003 allows PDF1.4, but no transparency, JBIG2 
compression
\setupcolors[rgb=no]% only CMYK and Gray allowed


%\embedICCprofile{CMYK}{ISOcoated_v2_300_eci.icc}

\usePDFXoutputintent
  [%reference=no,
   info={ISO Coated v2 (ECI)},
   outputcondition={Offset printing, according to ISO 12647-2:2004/Amd 1, 
OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase curves A 
(CMY) and B (K)},
   id=FOGRA39,
   name=http://www.color.org]


\starttext

\setupinteraction
  [title=TITLE,
   subtitle=SUBTITLE,
   author=AUTHOR,
   keyword={{KEYWORD1, KEYWORD2}, KEYWORD3},
  ]


\startluacode
-- PDF/X-1a:2001
lpdf.addtoinfo(GTS_PDFXVersion,PDF/X-1a:2001)
lpdf.injectxmpinfo(xml://rdf:RDF,rdf:Description rdf:about='' 
xmlns:pdfxid='http://www.npes.org/pdfx/ns/id/'pdfxid:GTS_PDFXVersionPDF/X-1a:2001/pdfxid:GTS_PDFXVersion/rdf:Description,false)
\stopluacode
\null

\definecolor[cmykblack][k=1]

\hbox\bgroup
\blackrule[color=cyan,width=1cm,height=1cm]%
\blackrule[color=magenta,width=1cm,height=1cm]%
\blackrule[color=yellow,width=1cm,height=1cm]%
\blackrule[color=cmykblack,width=1cm,height=1cm]
\egroup


Re: [NTG-context] two languages hyphenation

2010-06-27 Thread Vyatcheslav Yatskovsky

Hi Hans,


Since they are written in two different scripts you can theoretically
enable them simultaneously (but I'm not sure if this is supported by
default).


interesting and quite trivial to support ... do you have a test file?


I suspect to use \mainlanguage[en,ua] command, if it's possible

This my test file:

\setupbodyfont[mscore,rm,24pt]
%\mainlanguage[en] %only English hyphens
%\mainlanguage[ua] %only Ukrainian hyphens
\mainlanguage[en,ua]  %%only English hyphens, no Uk

\starttext

\dorecurse{4}{Для мене велика честь бути з вами сьогодні на випускному в 
одному з найкращих університетів світу. Зізнаюся, я так і не закінчив 
коледж - і ніколи не був ближче до випускного, ніж зараз. І я хочу 
розповісти вам три історії зі свого життя. Три історії і все. }


\dorecurse{4}{I am honored to be with you today at your commencement 
from one of the finest universities in the world. I never graduated from 
college. Truth be told, this is the closest I've ever gotten to a 
college graduation. Today I want to tell you three stories from my life. 
That's it. No big deal. Just three stories.}


\stoptext

--
Best Regards,
Vyatcheslav Yatskovsky
___
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] vim syntax highlighting in MKIV

2010-06-27 Thread Aditya Mahajan

On Sun, 27 Jun 2010, Wolfgang Schuster wrote:


Am 27.06.10 07:41, schrieb Aditya Mahajan:


In the spirit of MkIV, I have attempted to redo the vim module from 
scratch.


http://github.com/adityam/filter

[...]

* Most importantly, this only runs under MkIV. That is because 
\doprocesslocalsetups is not defined in MkII.


Hans, can you add the definition of \doprocesslocalsetups to MkII?


If you don't matter about performance you can use 
'\processcommacommand[...]\directsetup'


Thanks. Works perfectly.

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] vim syntax highlighting in MKIV

2010-06-27 Thread Aditya Mahajan

On Sun, 27 Jun 2010, Peter Münster wrote:


On Sun, Jun 27 2010, Aditya Mahajan wrote:


In the spirit of MkIV, I have attempted to redo the vim module from
scratch.

http://github.com/adityam/filter

Download t-vim.tex t-filter.tex and 2context.vim. For testing just place
them in the current directory.


Hello Aditya,

Thanks for these great modules!  It would be nice to make them available in
the minimals!


I will add them to the garden, once I the features stabalize a bit.

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] producing a pdf/X-1a:2001 file

2010-06-27 Thread Ciro
I just installed ConTeXt minimals, but my fonts are not found now:

define fonts font with name Barnard-Oblique is not found

font files are there, but some how context can't see them.

I ran context --generate and got lines like this:

MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-fonts'
MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-local'
MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-linux'
MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-context


and also ran mtxrun --script fonts --reload and got lines like this:

MTXrun | fontnames: scanning /home/ciro/context/tex/texmf for AFM files
MTXrun | fontnames: 3323 entries found, 0 AFM files checked, 0 okay

MTXrun | fontnames: globbing path /home/ciro/.fonts/**.ttf
MTXrun | fontnames: identifying system font files with suffix TTF
MTXrun | fontnames: globbing path /home/ciro/.fonts/**.TTF
MTXrun | fontnames: 639 system files identified, 39 skipped, 39
duplicates, 600 hash entries added

what should I do?

thank you
Ciro
___
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 not found (was: producing a pdf/X-1a:2001 file)

2010-06-27 Thread Wolfgang Schuster

Am 27.06.10 17:55, schrieb Ciro:

I just installed ConTeXt minimals, but my fonts are not found now:

define fonts  font with name Barnard-Oblique is not found

font files are there, but some how context can't see them.

I ran context --generate and got lines like this:

MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-fonts'
MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-local'
MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-linux'
MTXrun | resolvers: not saving runtime tree
'tree:home/ciro/context/tex/texmf-context


and also ran mtxrun --script fonts --reload and got lines like this:

MTXrun | fontnames: scanning /home/ciro/context/tex/texmf for AFM files
MTXrun | fontnames: 3323 entries found, 0 AFM files checked, 0 okay

MTXrun | fontnames: globbing path /home/ciro/.fonts/**.ttf
MTXrun | fontnames: identifying system font files with suffix TTF
MTXrun | fontnames: globbing path /home/ciro/.fonts/**.TTF
MTXrun | fontnames: 639 system files identified, 39 skipped, 39
duplicates, 600 hash entries added

what should I do?
   


1. Change the subject of the thread.

2. Tell us where you put the fonts.

3. Show us a test document and your typescripts.

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] fonts not found

2010-06-27 Thread Ciro
Ok ,  I changed the subject:

I just installed ConTeXt minimals, but my fonts are not found now:

 define fonts     font with name Barnard-Oblique is not found

 font files are there, but some how context can't see them.

 I ran context --generate and got lines like this:

 MTXrun | resolvers: not saving runtime tree
 'tree:home/ciro/context/tex/texmf-fonts'
 MTXrun | resolvers: not saving runtime tree
 'tree:home/ciro/context/tex/texmf-local'
 MTXrun | resolvers: not saving runtime tree
 'tree:home/ciro/context/tex/texmf-linux'
 MTXrun | resolvers: not saving runtime tree
 'tree:home/ciro/context/tex/texmf-context


 and also ran mtxrun --script fonts --reload and got lines like this:

 MTXrun | fontnames: scanning /home/ciro/context/tex/texmf for AFM files
 MTXrun | fontnames: 3323 entries found, 0 AFM files checked, 0 okay

 MTXrun | fontnames: globbing path /home/ciro/.fonts/**.ttf
 MTXrun | fontnames: identifying system font files with suffix TTF
 MTXrun | fontnames: globbing path /home/ciro/.fonts/**.TTF
 MTXrun | fontnames: 639 system files identified, 39 skipped, 39
 duplicates, 600 hash entries added

My fonts are in $HOME/.fonts  (lunix/ubuntu)

I don't use typescripts. I use

\definefontsynonym [baob] [file:Barnard-Oblique] [features=default]

 what should I do?

 thank you
 Ciro
___
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] vim syntax highlighting in MKIV

2010-06-27 Thread Martin 'golodhrim' Scholz
On Sun, 27 Jun 2010 11:49:22 -0400, Aditya Mahajan wrote:

 On Sun, 27 Jun 2010, Peter Münster wrote:
 
 On Sun, Jun 27 2010, Aditya Mahajan wrote:

 In the spirit of MkIV, I have attempted to redo the vim module from
 scratch.

 http://github.com/adityam/filter

 Download t-vim.tex t-filter.tex and 2context.vim. For testing just
 place them in the current directory.

 Hello Aditya,

 Thanks for these great modules!  It would be nice to make them
 available in the minimals!
 
 I will add them to the garden, once I the features stabalize a bit.
 
 Aditya

Hey Aditya,

if you keep them sync with your git, I would be proud to announce a 
tester in my person...

Greetings
-- 
---
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 
e-Mail: scholz@googlemail.com

Once harm has been done, even a fool understands it.
-- Homer

___
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] Page numbering in Adobe Reader

2010-06-27 Thread Steffen Wolfrum
I just found this old thread as I was searching the archive for this topic:
Page numbering in Adobe Reader (i.e. roman in the preface and normal/arabic 
in the mainface)

Unfortunately this example (below) only gives no roman numbering...

Any more up-to-date info on this topic, somebody?!


Steffen



Am 16.10.2008 um 19:48 schrieb Zhichu Chen:

 Hi Hans and Taco,
 
 Some guy think it's cool to use romannumeral numbers in the
 preface and so is in the Adobe Reader. I searched the source
 but apparently it is not provided. I made a very dirty test file so
 could you make a switch in the \setupinteraction officially?
 
 My test file is like:
 ==
 \pdfcompresslevel 0
 
 \setupinteraction
  [state=start,
   focus=width,
   page=yes,
   openaction=firstpage,
   click=no,
   title=TEST,
   author=Neals,
   subtitle=Test,
   keyword={test}]
 
 \setupcolors
  [state=start]
 
 \newcount\FrontPageNumbers
 
 \setupsubpagenumber[way=bytext,state=start]
 \setuppagenumbering[location=]
 
 \startsectionblockenvironment[frontpart]
 \setupfootertexts[pagenumber]
 \setuppagenumbering[conversion=romannumerals]
 \stopsectionblockenvironment
 
 \startsectionblockenvironment[bodypart]
 \global\FrontPageNumbers=\pagenumber
 \global\advance\FrontPageNumbers\minusone
 \setuppagenumber[number=1]
 \resetsubpagenumber
 %  \setupfootertexts[\the\FrontPageNumbers]
 \setupfootertexts[pagenumber]
 \stopsectionblockenvironment
 
 \startsectionblockenvironment[backpart]
 \resetsubpagenumber
 \stopsectionblockenvironment
 
 \def\PageLabels{\pdfcatalog{/PageLabels  /Nums [ 0  /S /r 
 \the\FrontPageNumbers  /S /D  ]   }}
 
 
 \prependtoks
  \PageLabels
 \to \everystoptext
 
 \starttext
 
 
 
 \startfrontmatter
 % \chapter{Table of Contents}
 \completecontent[interaction=all]
 \chapter{Preface}
 \dorecurse{10}{\input zapf\par}
 % \chapter{Preface}
 % \dorecurse{10}{\input zapf\par}
 % \chapter{Preface}
 % \dorecurse{10}{\input zapf\par}
 \stopfrontmatter
 
 \startbodymatter
 \chapter{Test}
 \dorecurse{15}{\input tufte\par}
 \chapter{TestAgain}
 \dorecurse{15}{\input ward\par}
 \stopbodymatter
 
 \startbackmatter
 Index maybe.
 \stopbackmatter
 
 
 \stoptext
 ==
 
 A lot of the code to setup the main layout is stolen from Wolfgang :)
 
 
 -- 
 Best Regards
 Chen
 
 
  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn
 
 ___
 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
 ___

___
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] Page numbering in Adobe Reader

2010-06-27 Thread Wolfgang Schuster

Am 27.06.10 20:52, schrieb Steffen Wolfrum:

I just found this old thread as I was searching the archive for this topic:
Page numbering in Adobe Reader (i.e. roman in the preface and normal/arabic 
in the mainface)

Unfortunately this example (below) only gives no roman numbering...

Any more up-to-date info on this topic, somebody?!
   


http://www.ntg.nl/pipermail/ntg-context/2010/050463.html

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] fonts not found

2010-06-27 Thread Ciro
Never mind... Problem solved.

I re-installed everything and my fonts are recognized with no problem.
thank you
Ciro



On Sun, Jun 27, 2010 at 12:49 PM, Ciro c...@kavyata.com wrote:
 Ok ,  I changed the subject:

 I just installed ConTeXt minimals, but my fonts are not found now:

  define fonts     font with name Barnard-Oblique is not found

  font files are there, but some how context can't see them.

  I ran context --generate and got lines like this:

  MTXrun | resolvers: not saving runtime tree
  'tree:home/ciro/context/tex/texmf-fonts'
  MTXrun | resolvers: not saving runtime tree
  'tree:home/ciro/context/tex/texmf-local'
  MTXrun | resolvers: not saving runtime tree
  'tree:home/ciro/context/tex/texmf-linux'
  MTXrun | resolvers: not saving runtime tree
  'tree:home/ciro/context/tex/texmf-context


  and also ran mtxrun --script fonts --reload and got lines like this:

  MTXrun | fontnames: scanning /home/ciro/context/tex/texmf for AFM files
  MTXrun | fontnames: 3323 entries found, 0 AFM files checked, 0 okay

  MTXrun | fontnames: globbing path /home/ciro/.fonts/**.ttf
  MTXrun | fontnames: identifying system font files with suffix TTF
  MTXrun | fontnames: globbing path /home/ciro/.fonts/**.TTF
  MTXrun | fontnames: 639 system files identified, 39 skipped, 39
  duplicates, 600 hash entries added

 My fonts are in $HOME/.fonts  (lunix/ubuntu)

 I don't use typescripts. I use

 \definefontsynonym [baob] [file:Barnard-Oblique] [features=default]

  what should I do?

  thank you
  Ciro

___
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] producing a pdf/X-1a:2001 file

2010-06-27 Thread Ciro
I found open source pstill to do conversions between pdf versions...
It seems to work fine.
http://www.pstill.com/

thank you for your help

Ciro


-- Links:
http://www-personal.engin.umd.umich.edu/~cirosoto/
http://www.TheGuitarMakerExploration.com
https://www.createspace.com/3392936



On Sun, Jun 27, 2010 at 10:13 AM, Peter Rolf indi...@gmx.net wrote:
 Am 26.06.2010 22:25, schrieb Ciro:
 Peter, thank you for you file.
 I tested it, but the \usePDFXoutputintent
 command is not understood by texexec.

 true. the example code is mkiv only. as mkii is frozen (no new features)
 pdf/x support is limited to mkiv. you also wrote
 'The file produced by LuaTex is PDF 1.5.', so where is the problem? ;)

 mkii (pdftex): texexec yourbook.tex
 mkiv (luatex): context yourbook.tex

 anyhow, here is an interesting link about pdf/x-1a

 http://www.prepressure.com/pdf/basics/pdfx-1a

 there a quite a lot of other restrictions in pdf/x-1a (aside from what
 can be handled in context). be sure to fulfil them all.
 and you have to ask your printing house, what output intent is used
 (probably stated on their side).

 updated test files (now one for each version) are attached.


 thank you
 ciro





 On Sat, Jun 26, 2010 at 7:14 AM, Peter Rolf indi...@gmx.net wrote:
 Am 26.06.2010 04:36, schrieb luigi scarso:
 On Sat, Jun 26, 2010 at 2:34 AM, Ciro c...@kavyata.com wrote:
 The company that is printing my book requires format
 PDF/X-1a:2001.  The file produced by LuaTex is PDF 1.5.

 I wonder if there will be a problem, and if so, how can I do the
 conversion to X-1a:2001?
 It's a complex subject, I fear that you need acrobat to be sure or
 defend your result

 Anyway
 http://www.tug.org/pipermail/pdftex/2009-June/thread.html#8050

 Context should be able to produce PDF/X-1a:2003 so far (donno the
 difference to the 2001 version). I will look into it tomorrow (no time
 now). To give you a first impression what is needed (data,formats), I
 attached a test file (mkiv only) for the 2003 variant.


 Best wishes, Peter

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



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

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


Re: [NTG-context] Page numbering in Adobe Reader

2010-06-27 Thread Steffen Wolfrum

Am 27.06.2010 um 22:45 schrieb Wolfgang Schuster:

 Am 27.06.10 20:52, schrieb Steffen Wolfrum:
 I just found this old thread as I was searching the archive for this topic:
 Page numbering in Adobe Reader (i.e. roman in the preface and 
 normal/arabic in the mainface)
 
 Unfortunately this example (below) only gives no roman numbering...
 
 Any more up-to-date info on this topic, somebody?!
   
 
 http://www.ntg.nl/pipermail/ntg-context/2010/050463.html
 
 Wolfgang



I am not sure if I understood the meaning of the quoted link above correctly:
You mean that it's currently not possible with MkIV?
But the example file that is mentioned in that link don't produce anything with 
MkII either:
TeXExec | no ctx file found
TeXExec | nothing to process


Anyway, could someone show me an example where the resulting PDF has roman 
pagenumbering in preface and normal/arabic in mainface?
I have to admit I've never seen a document like this ...


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