Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Alan Stone
On Mon, May 25, 2009 at 11:43 PM, Khaled Hosny khaledho...@eglug.orgwrote:

 On Fri, May 22, 2009 at 12:04:08PM +0200, Alan Stone wrote:
  On Fri, May 22, 2009 at 11:42 AM, Khaled Hosny khaledho...@eglug.org
 wrote:
 
  How can I disable page numbers (or header/footer) in empty pages, as
  page 2 in the following example:
 
  \setuppagenumbering[alternative=doublesided]
  \starttext
  \chapter{one}
  \input tufte
  \chapter{two}
  \input tufte
  \stoptext
 
  Regards,
   Khaled
 
 
  http://www.ntg.nl/pipermail/ntg-context/2008/030594.html
 
   Alan

 Thanks for the tip, but I've a slightly more complex layout and it might
 need a more generalized solution, see:

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

 \setuphead
  [chapter]
  [page=mychapterpagebreak]


 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]

 \starttext
\chapter {testA} \dorecurse{10}{\input tufte }
\startstandardmakeup \dorecurse{4}{\input tufte }
 \stopstandardmakeup
\chapter {testB} \dorecurse{10}{\input tufte }
 \stoptext

 The page after first chapter and before the markup is empty and thus
 shouldn't have any headers/footers, but it isn't.

 Regards,
  Khaled

 --
   Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer



\setupsectionblock[bodypart][page=yes]
\setupmakeup[standard][page=empty]

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

\setuphead
 [chapter]
 [page=mychapterpagebreak]

\setuppagenumbering[alternative=doublesided,location={header,margin}]

\setupheadertexts[{My special headertext}]
\setupfootertexts[This is a text in the footer]

\starttext

 \startbodymatter
  \chapter {testA}
  \dorecurse{10}{\input tufte }
   \stopbodymatter

 \startstandardmakeup
  \dorecurse{4}{\input tufte }
 \stopstandardmakeup

 \startbodymatter
  \chapter {testB}
  \dorecurse{10}{\input tufte }
   \stopbodymatter

\stoptext

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


[NTG-context] IV. Talking and Tweaking

2009-05-26 Thread Piotr Kopszak
Hello,

I finally decided to learn lua and start making use of it in ConTeXt.
I was quite excited to find examples of interfaces in the fourth part
of A New Kind of TeX paper. It would be really useful if someone
could give examples how they could actually be  used, at least some of
them e.g.

command.insert, command.hbox, command.vbox, tex.parindent

I think it would also be quite useful to propose a limited set of most
useful interfaces, something like the Top Ten ConTeXt commands. Is it
possible at all?

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


Re: [NTG-context] IV. Talking and Tweaking

2009-05-26 Thread luigi scarso
On Tue, May 26, 2009 at 11:56 AM, Piotr Kopszak kops...@gmail.com wrote:

 Hello,

 I finally decided to learn lua and start making use of it in ConTeXt.
 I was quite excited to find examples of interfaces in the fourth part
 of A New Kind of TeX paper. It would be really useful if someone
 could give examples how they could actually be  used, at least some of
 them e.g.

 command.insert, command.hbox, command.vbox, tex.parindent


luatexref-t.pdf
http://www.luatex.org/svn/trunk/manual/luatexref-t.pdf

mk.pdf
http://www.pragma-ade.com/general/manuals/mk.pdf

-- 
luigi
___
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] IV. Talking and Tweaking

2009-05-26 Thread Hans Hagen

Piotr Kopszak wrote:

Hello,

I finally decided to learn lua and start making use of it in ConTeXt.
I was quite excited to find examples of interfaces in the fourth part
of A New Kind of TeX paper. It would be really useful if someone
could give examples how they could actually be  used, at least some of
them e.g.

command.insert, command.hbox, command.vbox, tex.parindent


where are these command.* defined? in context command is a reserved 
namespace


tex.parindent is \parindent at the lua end but setting it that way will 
probably mess up context's own indent handling


at some point there will be a context lua api defined but it's a bit 
early for that now



I think it would also be quite useful to propose a limited set of most
useful interfaces, something like the Top Ten ConTeXt commands. Is it
possible at all?


could be interesting ... a wiki page where users can mention their top-ten


-
  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] IV. Talking and Tweaking

2009-05-26 Thread Piotr Kopszak

 command.insert, command.hbox, command.vbox, tex.parindent

 where are these command.* defined? in context command is a reserved
 namespace


I found it on screen IV. of

http://luatex.org/talks/luaconf-paper.pdf

and nowhere else, that's why I asked. (Sorry, tex.parindent is
mentioned in luatexref-t.pdf)

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


[NTG-context] Available fonts and using them

2009-05-26 Thread richard . stephens

Hello all,

I have read many of the documents from the Wiki on using fonts, but I am
still not sure of one or two, probably obvious, things:

1) I'm being asked to use Arial font (not my choice!) and I see from
searching the context tree that there are .afm files, .tfm files and .map
files with 'arial' in the name. Does this mean I can use Arial out of the
box? If so, how? I've tried putting \setupbodyfont[arial,10pt] in my
environment file, but it does nothing. I've tried various other things as
well, copied but only half understood, from the other documents, but none
of them work either! I could follow the guide on installing a new font, but
if it's already available then I'd rather not!

2) How do I find out what fonts are available out of the box and how do I
invoke them?

Thanks,

Richard.

P.S. I'm using mkii -- one day I'll get around to setting up mkiv, but not
today!


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.  

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


[NTG-context] Top 10 luatex interfaces

2009-05-26 Thread Piotr Kopszak
http://www.survs.com/survey?id=BB81EXR7channel=WX0QXIKGPC

have fun!

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


Re: [NTG-context] rsync error by updating context#8207;

2009-05-26 Thread Taco Hoekwater

y...@mathematik.uni-marburg.de wrote:

hi, I got following error by updating context:

The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at main.c(1127) [receiver=3.0.2]

under following command:

rsync.exe -rvzctlp
http://minimals.contextgarden.net/current/context/latest
D:\context\tex\texmf-context


Rsync.exe being a cygwin port, it probably objects to the explicit
drive letter D: on the command line.

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] sections, subsections, indenting, startnarrower, alignment

2009-05-26 Thread Amaël Broustet
Wouldn't be easier to achieve this using section personalized section
numbering ?

Best,
Amaël  


Le vendredi 22 mai 2009 à 14:40 -0700, afsmith a écrit :
 Hi again ntg-context.
 
 I have been working on my own CV/Resume module. Up until now I've just
 been asking about specific bits of the implementation of this thing I
 want to do, but perhaps that was a mistake as it hasn't really helped
 progress much, so:
 What I am trying to achieve is to define some three-argument command
 to give a section/subject header and a date, and then a block of text.
 The header and date should be on the same line, but aligned in either
 direction (subject aligned left, date aligned right)
 This block of text underneath it should be indented and able to
 include an instance of the same command. Let me try to explain the
 desired output in a little monospaced text diagram..
 
 |(Subject)___(Date)|
 |__(Subsubject)__(Date)|
 |texttexttexttexttexttexttexttext__|
 |textmoretextmoretextmoretexttext__|
 |__(Subsubject)__(Date)|
 |texttexttexttexttexttextexttext___|
 |textmoretextmoretextmoretexttext__|
 
 The subject and subsubject parts don't need to literally use
 \subject , for example I also tried to use \start(description){...
 for this purpose as well but that failed equally. Just something that
 works reasonably as a section header.
 
 I promise I have looked in the archives before asking :) for example
 http://www.mail-archive.com/ntg-context@ntg.nl/msg2.html
 http://www.mail-archive.com/ntg-context@ntg.nl/msg37664.html
 http://www.mail-archive.com/ntg-context@ntg.nl/msg11337.html
 http://www.mail-archive.com/ntg-context@ntg.nl/msg17276.html
 
 And here is an example of something I was playing with...
 
 ---
 \definehead[mysubject][subject]
 
 \defineframed[lrframe][
 width=\localhsize,
 align=normal,
 rulethickness=1pt]
 
 \setuphead[mysubject][style={\bf}]
 \define[3]\CHRONSUBJ
 {\mysubject{\dontleavehmode\lrframe{#1\hfill#2}}
 \startnarrower[left]{#3}\stopnarrower}
 
 \showframe[text]
 \starttext
 \CHRONSUBJ
   {This happened from June 08 to June 09}
   {06/08--06/09}
   {\CHRONSUBJ
 {This happened from June 08 to December 08}
 {06/08--12/08}
 {\input tufte }
   \CHRONSUBJ
 {This happened from January 09 to June 09}
 {01/09--06/09}
 {\input zapf }}
 \stoptext
 ---
 
 -A
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bug in MarkIV ? section numbering

2009-05-26 Thread Amaël Broustet
Dear all,

the following example :
...
\chapter{Blabla}
\subsection{bla}
...
 is  numbered 

1 Blabla
11 bla

The problem appears only if I skip the \section step.
In fact

\chapter{Blabla}
\section{Bla}
\subsection{bla}

gives

1 Blabla
1.1 Bla
1.1.1 bla


Is the first example the expected behavior ?
I would better have think to something like
1 Blabla
1.0.1 bla


Best,
Amaël

___
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] rsync error by updating context#8207;

2009-05-26 Thread Hans Hagen

Taco Hoekwater wrote:

y...@mathematik.uni-marburg.de wrote:

hi, I got following error by updating context:

The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at main.c(1127) 
[receiver=3.0.2]


under following command:

rsync.exe -rvzctlp
http://minimals.contextgarden.net/current/context/latest
D:\context\tex\texmf-context


Rsync.exe being a cygwin port, it probably objects to the explicit
drive letter D: on the command line.


/cygdrive/d


-
  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] IV. Talking and Tweaking

2009-05-26 Thread Hans Hagen

Piotr Kopszak wrote:

command.insert, command.hbox, command.vbox, tex.parindent

where are these command.* defined? in context command is a reserved
namespace



I found it on screen IV. of

http://luatex.org/talks/luaconf-paper.pdf

and nowhere else, that's why I asked. (Sorry, tex.parindent is
mentioned in luatexref-t.pdf)


keep in mind that these are old talks and interfaces (and ideas) might 
have changed so luatexref-t.pdf is the reference


(mk.pdf is the development history showing usage)

-
  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] bug in MarkIV ? section numbering

2009-05-26 Thread luigi scarso
On Tue, May 26, 2009 at 2:12 PM, Amaël Broustet cont...@amael.net wrote:

 Dear all,

 the following example :
 ...
 \chapter{Blabla}
 \subsection{bla}
 ...
  is  numbered

 1 Blabla
 11 bla

 The problem appears only if I skip the \section step.
 In fact

 \chapter{Blabla}
 \section{Bla}
 \subsection{bla}

 gives

 1 Blabla
 1.1 Bla
 1.1.1 bla


 Is the first example the expected behavior ?
 I would better have think to something like
 1 Blabla
 1.0.1 bla

and in some
situations I'd  like to stop with a fatal error.



-- 
luigi
___
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 disable page numbers in empty pages

2009-05-26 Thread Khaled Hosny
On Tue, May 26, 2009 at 10:53:30AM +0200, Alan Stone wrote:
 \setupsectionblock[bodypart][page=yes]
 \setupmakeup[standard][page=empty]
  
 \definepagebreak
   [mychapterpagebreak]
    [yes,header,footer,right]
  
 \setuphead
  [chapter]
  [page=mychapterpagebreak]
  
 \setuppagenumbering[alternative=doublesided,location={header,margin}]
 
 \setupheadertexts[{My special headertext}]
 \setupfootertexts[This is a text in the footer]
  
 \starttext
  
  \startbodymatter
   \chapter {testA}
   \dorecurse{10}{\input tufte }
    \stopbodymatter
  
  \startstandardmakeup
   \dorecurse{4}{\input tufte }
  \stopstandardmakeup
  
  \startbodymatter
   \chapter {testB}
   \dorecurse{10}{\input tufte }
    \stopbodymatter
  
 \stoptext

Thanks alot, this was very helpfull. (BTW, the mypagebreak part isn't
really needed).

Regards,
 Khaled



-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] How to disable page numbers in empty pages

2009-05-26 Thread Alan Stone
On Tue, May 26, 2009 at 3:12 PM, Khaled Hosny khaledho...@eglug.org wrote:

 On Tue, May 26, 2009 at 10:53:30AM +0200, Alan Stone wrote:
  \setupsectionblock[bodypart][page=yes]
  \setupmakeup[standard][page=empty]
 
  \definepagebreak
[mychapterpagebreak]
 [yes,header,footer,right]
 
  \setuphead
   [chapter]
   [page=mychapterpagebreak]
 
  \setuppagenumbering[alternative=doublesided,location={header,margin}]
 
  \setupheadertexts[{My special headertext}]
  \setupfootertexts[This is a text in the footer]
 
  \starttext
 
   \startbodymatter
\chapter {testA}
\dorecurse{10}{\input tufte }
 \stopbodymatter
 
   \startstandardmakeup
\dorecurse{4}{\input tufte }
   \stopstandardmakeup
 
   \startbodymatter
\chapter {testB}
\dorecurse{10}{\input tufte }
 \stopbodymatter
 
  \stoptext

 Thanks alot, this was very helpfull. (BTW, the mypagebreak part isn't
 really needed).


It depends whether you put more than one \chapter in each bodymatter part(s)
or not.

Alan




 Regards,
  Khaled



 --
  Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer

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

2009-05-26 Thread Vyatcheslav Yatskovsky

If you have Windows OS, then please

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


I'm being asked to use Arial font (not my choice!)

Bets,
Vyatcheslav
___
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] define an incremental personal bullet of item

2009-05-26 Thread polytope

Dear all,

I'd like to use circled number 1, circled number 2, ... as bullets  
of itemized block.

There is an explanation how to define a personal bullet in the manual.
For each \item the same bullet is used.  But I want bullets  
automatically changed to the next character in unicode table.

(For example, the command \startitemize[n]
displays next number as a bullet  when the command \item is issued. )

Is there a way to do that?

Thank you.

Best regards,

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

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


Re: [NTG-context] Arial

2009-05-26 Thread Mohamed Bana
does that work with MKII???

if you have modest requirements, you could try using
http://wiki.contextgarden.net/otfinst for MKII.  it's pretty straight
forward, and i've used it to install Warnock and Myriad.

2009/5/26 Vyatcheslav Yatskovsky yatskov...@gmail.com

 If you have Windows OS, then please

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

  I'm being asked to use Arial font (not my choice!)

 Bets,
 Vyatcheslav

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


Re: [NTG-context] Arial

2009-05-26 Thread Aditya Mahajan

On Tue, 26 May 2009, Vyatcheslav Yatskovsky wrote:


If you have Windows OS, then please

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


I'm being asked to use Arial font (not my choice!)


You can also use helevetica. Most people will not notice the difference. 
So,


\usetypescript[postscript]
\setupbodyfont[ss, 12pt]

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] Seeking a Deeper ConTeXt: Questions f or Initializing

2009-05-26 Thread Bruce D'Arcus
Hans Hagen pragma at wxs.nl writes:

...

 in which case it keeps the input in xml and converts to other formats 
 (coule be tex in the case of rendering print).

As Hans says, if you're interesting in integrating XML and RDF in source
documents, you need to think of ConTeXt as a lower-level output format; not the
other way around.

Depending on your needs, I'd consider two options for the source format: XHTML +
RDFa, and OpenDocument 1.2 (which will include RDF and RDFa support; likely to
be implemented first in OpenOffice 3.2). DocBook is an option too, but does not
AFAIK support RDFa.

In any case, I'd worry less about the technology, and more about what you need
from it. That will make it easier to figure out which approach is best.

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


Re: [NTG-context] rsync error by updating context#8207;

2009-05-26 Thread Mojca Miklavec
On Tue, May 26, 2009 at 13:13,  y...@mathematik.uni-marburg.de wrote:
 hi, I got following error by updating context:

 The source and destination cannot both be remote.
 rsync error: syntax or usage error (code 1) at main.c(1127) [receiver=3.0.2]

 under following command:

 rsync.exe -rvzctlp
 http://minimals.contextgarden.net/current/context/latest
 D:\context\tex\texmf-context

As Hans replied, use /cygdrive/d

 By the way, does the first-setup.bat also update the context?

Yes.

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
___


[NTG-context] newbie question (\crlf)

2009-05-26 Thread Vyatcheslav Yatskovsky

Hello,

Sorry for a dumb TeX newbie question:: why 'version' does NOT begin from 
a new line?



\define[2]\maketitlepage{\centeredbox{{\bfd #1}\crlf {Version #2}}}

\starttext

\maketitlepage{My Manual}{1.0}

\stoptext


Regards,
Vyatcheslav
___
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] rsync error

2009-05-26 Thread richard . stephens

Hello,

I've been happily using a fairly old version of Context for a while
(ConTeXt  ver: 2008.08.05 18:47 MKII  fmt: 2008.11.14  int:
english/english) but decided that I perhaps ought to try to update to
something more modern. I tried to get the minimals for Windows by
downloading context-setup-mswin.zip, unzipping it to a new directory and
running first-setup.bat from a command window.
On the output in the command window, I get a number of rsync error
messages, the first of which is:
  rsync: failed to connect to contextgarden.net: Connection timed out
(116)
  rsync error: error in socket IO (code 10) at clientserver.c(122)
[receiver=3.0.2]
followed by lots of other warnings and errors and ultimately failure!

Any ideas?

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.  

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


Re: [NTG-context] define an incremental personal bullet of item

2009-05-26 Thread Hans Hagen

polytope wrote:

Dear all,

I'd like to use circled number 1, circled number 2, ... as bullets 
of itemized block.

There is an explanation how to define a personal bullet in the manual.
For each \item the same bullet is used.  But I want bullets 
automatically changed to the next character in unicode table.

(For example, the command \startitemize[n]
displays next number as a bullet  when the command \item is issued. )

Is there a way to do that?


\starttext

\startuniqueMPgraphic{circle}
draw fullcircle xsized(bbwidth (OverlayBox enlarged 2pt)) ;
\stopuniqueMPgraphic

\defineoverlay[circle][\uniqueMPgraphic{circle}]

\def\MyCircledNumber#1%
  {\inframed[background=circle,frame=off]{\number#1}}

\defineconversion[n][\MyCircledNumber]

\startitemize[n,broad]
\dorecurse{20}{\item test \recurselevel}
\stopitemize

\stoptext



-
  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] newbie question (\crlf)

2009-05-26 Thread Hans Hagen

Vyatcheslav Yatskovsky wrote:

Hello,

Sorry for a dumb TeX newbie question:: why 'version' does NOT begin from 
a new line?



\define[2]\maketitlepage{\centeredbox{{\bfd #1}\crlf {Version #2}}}

\starttext

\maketitlepage{My Manual}{1.0}

\stoptext


is an hbox ...

maybe use:

\define[2]\maketitlepage
  {\midaligned{\bfd #1}
   \blank
   \midaligned{Version #2}}


-
  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] newbie question (\crlf)

2009-05-26 Thread Wolfgang Schuster


Am 26.05.2009 um 18:31 schrieb Hans Hagen:


Vyatcheslav Yatskovsky wrote:

Hello,
Sorry for a dumb TeX newbie question:: why 'version' does NOT begin  
from a new line?

\define[2]\maketitlepage{\centeredbox{{\bfd #1}\crlf {Version #2}}}
\starttext
\maketitlepage{My Manual}{1.0}
\stoptext


is an hbox ...

maybe use:

\define[2]\maketitlepage
 {\midaligned{\bfd #1}
  \blank
  \midaligned{Version #2}}




I think it's more:

\define[2]\maketitlepage
  {\starttextmakeup[align=middle]
   {\bfd#1}
   \blank
   Version #2
   \stoptextmakeup}

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] Fwd: [XeTeX] ANN: Custom Stories, Inc. using xelatex now live

2009-05-26 Thread Wolfgang Schuster


Anfang der weitergeleiteten E-Mail:


Von: William Adams will.ad...@frycomm.com
Datum: 26. Mai 2009 17:38:29 MESZ
An: Unicode-based TeX for Mac OS X and other platforms xe...@tug.org
Betreff: [XeTeX] ANN: Custom Stories, Inc. using xelatex now live
Antwort an: Unicode-based TeX for Mac OS X and other platforms xe...@tug.org 



I hope no one objects to this --- it's more of a public thank you  
than anything else.


We've just taken Custom Stories, Inc., a customized children's  
storybook site live. The typesetting is done using XeLaTeX, and I  
don't believe would've been as effective using any other tool.  
(Unfortunately we couldn't afford to license Linotype's Zapfino for  
server use, so the letter in _Love Story_ isn't as nice as it  
could've been IMO).


http://www.customstoriesinc.com/

William
(who is working on the typesetting for the next story sometime real  
soon now)


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



___
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] newbie question (\crlf)

2009-05-26 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 26.05.2009 um 18:31 schrieb Hans Hagen:


Vyatcheslav Yatskovsky wrote:

Hello,
Sorry for a dumb TeX newbie question:: why 'version' does NOT begin 
from a new line?

\define[2]\maketitlepage{\centeredbox{{\bfd #1}\crlf {Version #2}}}
\starttext
\maketitlepage{My Manual}{1.0}
\stoptext


is an hbox ...

maybe use:

\define[2]\maketitlepage
 {\midaligned{\bfd #1}
  \blank
  \midaligned{Version #2}}




I think it's more:

\define[2]\maketitlepage
  {\starttextmakeup[align=middle]
   {\bfd#1}
   \blank
   Version #2
   \stoptextmakeup}


sure, although in the case of a real titlepage i nowadays always tend to 
set up a layer in combination with a makeup


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] Fwd: [XeTeX] ANN: Custom Stories, Inc. using xelatex now live

2009-05-26 Thread William Adams

On May 26, 2009, at 1:03 PM, Wolfgang Schuster quoted my having written:

The typesetting is done using XeLaTeX, and I don't believe would've  
been as effective using any other tool.



That should probably say:

The typesetting is done using XeTeX, and I don't believe it would've  
been as effective using any other tool --- specifically I used  
xelatex, 'cause I'm not cool and hip enough to know ConTeXt well  
enough to've been able to develop it in ConTeXt in a reasonable  
timeframe, even though in many ways that would've made for a cleaner  
interface to the server.


William

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

___
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] newbie question (\crlf)

2009-05-26 Thread Wolfgang Schuster


Am 26.05.2009 um 19:22 schrieb Hans Hagen:

sure, although in the case of a real titlepage i nowadays always  
tend to set up a layer in combination with a makeup


me too, it gives more control about the placement of the texts but for  
the beginning a simple markup env with centered text is enough and  
faster to write, a more fancy layout can be done later


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] sections, subsections, indenting, startnarrower, alignment

2009-05-26 Thread afsmith
I do not understand what you mean. Could you explain?

I stopped trying to use sections because I read somewhere in the
archives that sections cannot be used 'recursively' like this.
I have instead been trying to use definitions.


With regards to other approaches,  I have been trying to use several
different dimensions to solve this problem  but none of them seem to
work as expected inside the head of a definition inside a narrowed,
such as \localhsize and \makeupwidth, which mangle things in
unexpected ways.

Can anyone tell me however if there is some dimension that corresponds
to the local amount of indentation (made with narrower)?

-A




 Wouldn't be easier to achieve this using section personalized section
 numbering ?

 Best,
 Amaël


 Le vendredi 22 mai 2009 à 14:40 -0700, afsmith a écrit :
  Hi again ntg-context.
 
  I have been working on my own CV/Resume module. Up until now I've just
  been asking about specific bits of the implementation of this thing I
  want to do, but perhaps that was a mistake as it hasn't really helped
  progress much, so:
  What I am trying to achieve is to define some three-argument command
  to give a section/subject header and a date, and then a block of text.
  The header and date should be on the same line, but aligned in either
  direction (subject aligned left, date aligned right)
  This block of text underneath it should be indented and able to
  include an instance of the same command. Let me try to explain the
  desired output in a little monospaced text diagram..
 
  |(Subject)___(Date)|
  |__(Subsubject)__(Date)|
  |texttexttexttexttexttexttexttext__|
  |textmoretextmoretextmoretexttext__|
  |__(Subsubject)__(Date)|
  |texttexttexttexttexttextexttext___|
  |textmoretextmoretextmoretexttext__|
 
  The subject and subsubject parts don't need to literally use
  \subject , for example I also tried to use \start(description){...
  for this purpose as well but that failed equally. Just something that
  works reasonably as a section header.
 
  I promise I have looked in the archives before asking :) for example
  http://www.mail-archive.com/ntg-context@ntg.nl/msg2.html
  http://www.mail-archive.com/ntg-context@ntg.nl/msg37664.html
  http://www.mail-archive.com/ntg-context@ntg.nl/msg11337.html
  http://www.mail-archive.com/ntg-context@ntg.nl/msg17276.html
 
  And here is an example of something I was playing with...
 
  ---
  \definehead[mysubject][subject]
 
  \defineframed[lrframe][
  width=\localhsize,
  align=normal,
  rulethickness=1pt]
 
  \setuphead[mysubject][style={\bf}]
  \define[3]\CHRONSUBJ
  {\mysubject{\dontleavehmode\lrframe{#1\hfill#2}}
  \startnarrower[left]{#3}\stopnarrower}
 
  \showframe[text]
  \starttext
  \CHRONSUBJ
{This happened from June 08 to June 09}
{06/08--06/09}
{\CHRONSUBJ
  {This happened from June 08 to December 08}
  {06/08--12/08}
  {\input tufte }
\CHRONSUBJ
  {This happened from January 09 to June 09}
  {01/09--06/09}
  {\input zapf }}
  \stoptext
  ---
 
  -A
___
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] Seeking a Deeper ConTeXt: Questions for Initializing

2009-05-26 Thread John Haltiwanger


 In any case, I'd worry less about the technology, and more about what you
 need
 from it. That will make it easier to figure out which approach is best.

 Bruce



Markdown with RDFa on the side will suit quite nicely, thanks to pandoc. The
desire for semantical documents sounds like it will be resolved sooner or
later with Tagged PDF. Until then the semantics can reside outside the PDF
in my case. I consider it only a need inasmuch as I am an archivist by
archetype, and so the idea of the best looking documents (the PDFs) being
also the most monolithic just goes against my natural grain. For now it is
not an urgency, but I do thank you all for the advice and comments!

The markdown solution is doubly good because now I see a way to incorporate
conTeXt in a web project that centers on language The better rendered the
text, the better the project. Ah, the universal adoption of TeX in
everything I do may not be far off ;)

Regards,

John C. Haltiwanger
___
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] Seeking a Deeper ConTeXt: Questions for Initializing

2009-05-26 Thread luigi scarso
On Tue, May 26, 2009 at 11:26 PM, John Haltiwanger 
john.haltiwan...@gmail.com wrote:




 In any case, I'd worry less about the technology, and more about what you
 need
 from it. That will make it easier to figure out which approach is best.

 Bruce



 Markdown with RDFa on the side will suit quite nicely, thanks to pandoc.

Just a reminder to me for a sprint  in The Hague:
I think that Markdown can be parsed by context  mkiv with an ad hoc  lpeg


-- 
luigi
___
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] Seeking a Deeper ConTeXt: Questions for Initializing

2009-05-26 Thread Wolfgang Schuster


Am 25.05.2009 um 22:25 schrieb Mohamed Bana:

i tend to write in Markdown, as the syntax is very light weight,  
then compile with pandoc (http://johnmacfarlane.net/pandoc/).


$ pandoc --toc --smart --number-sections --standalone -H header.tex - 
w context file.pdc -o file.tex

$ texexec file.tex


I think you can automate the first step with a ctx file and use only  
'texexec/context --ctx=pandoc' to create a pdf from your source file.


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] newbie question (\crlf)

2009-05-26 Thread Vyatcheslav Yatskovsky

Thanks for all!

I have just one notice: to completely simulate \centeredbox, I need 
\vfill before and after.


\define[2]\maketitlepage
   {\starttextmakeup[align=middle]
\vfill{\bfd#1}
\blank
Version #2\vfill
\stoptextmakeup}

However, what is \starttextmakeup? What is can be used for?

Best,
Vyatcheslav

___
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] Seeking a Deeper ConTeXt: Questions for Initializing

2009-05-26 Thread Bruce D'Arcus
John Haltiwanger john.haltiwanger at gmail.com writes:

[...]

 Markdown with RDFa on the side will suit quite nicely, thanks to pandoc. 

Actually, you can embed the RDFa within the markdown files if you like. 

div property=x:section

# Introduction

Test.
/div

Pandoc will just pass it on to the output XHTML (though throw it out for the
context). But it's admittedly a little awkward to have to wrap the markdown with
XHTML every time to want to add a triple.

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


Re: [NTG-context] MkIV italic correction?

2009-05-26 Thread Dohyun Kim
2009/5/22 Taco Hoekwater t...@elvenkind.com:


 Hans Hagen wrote:
 Taco Hoekwater wrote:

 Khaled Hosny wrote:
 Not very helpful in this situation, but FontForge has a non-standard
 italic correction (ITLC) table[1], may be TeX related OpenTyp font
 projects like Latin Modern and Gyre fonts can use it?

 That would perhaps not be a bad idea. If that table is there then
 luatex will automatically use it (it is a subtable of 'TeX ', which
 also contains height and depth information, and font dimensions).

 so, that data would end up in a regular feature/lookup? of is it an
 entry in the glyph?

 They are automatically merged into the glyph, as

        glyph.italic_correction
        glyph.tex_height
        glyph.tex_depth


Hi,

Considering current state that we don't know any fonts that has ITLC table,
it would be better than nothing to implement italic correction as follows.
In the following code, fontdata is a table returned by the function
fonts.define.read.

local param = fontdata.parameters
local italicangle = fontdata.shared.otfdata.metadata.italicangle
if italicangle and italicangle  0 then
local uwidth = fontdata.shared.otfdata.metadata.uwidth or 40
local factor = fontdata.factor or 655.36
param.slant = - math.tan(italicangle*math.pi/180) * param.quad
for i,v in pairs(fontdata.characters) do
local gl = fontdata.descriptions[i]
local it = (gl.boundingbox[3] - gl.width + uwidth*0.5) * factor
if it  0 then v.italic = it end
end
end

Best,
Dohyun Kim
___
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
___