Re: [NTG-context] Recursive printing letters using Letters module...

2010-08-29 Thread Wolfgang Schuster

Am 29.08.2010 um 03:19 schrieb Jaroslav Hajtmar:

> Hello
> I answer it yourself. I was experimented and thought about using buffers and 
> the problem is successfully for my library resolved :-)
> I think that I found an interesting use of the letter module...
> 
> Jaroslav
> 
> Only for example :
> 
> [...]
> 
> \startbuffer[myletter]
> \startletter[
>toname={\Firstname\ \Name},
>toaddress={\Street\\ \Zipcode\ \Town},
>opening={Dear \Firstname,},
>subject={Step by step guide to write a letter to \Firstname\ \Name},
>closing={{\color Greetings from the Author} to \Name\ \Firstname}]
> 
> Thus, I came to the conclusion ... \Mygreeting
> 
> \stopletter
> \stopbuffer


You can’t use buffers inside \dorecurse and the letter environment
is a buffer with a few extension to accept a argument for values.

You can get around this with the alternative mode for the environment
with is enabled by:

\setupletterstyle[option][method=content] % \setupletteroptions[method=content]

\dorecurse{5}
  {...
   \startletter
 [toname={\Firstname\ \Name},
  toaddress={\street\\\Zipcode\ \Town},
  ...]
   This, I came to the conclusion … \Mygreeting
   \stopletter
   ...}

The disadvantage is that \startlines or \starttyping can't be used anymore
inside of a letter.


The second method you can use is to drop the letter environment and set
the values for the address and name with \setupletter and store the content
with the lettercontent environment (just a names buffer). The letter itself
can now be flushed with \setups[letter:place].

\setupletter
  [toname={\Firstname\ \Name},
   toaddress={\street\\\Zipcode\ \Town},
   ...]

\startlettercontent
This, I came to the conclusion … \Mygreeting
\stoplettercontent

\dorecurse{5}{...\setups[letter:place]...}


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] problem with mpost/metafun/MKII/MKIV???

2010-08-29 Thread Rene van Hassel
Hello Members,


I have a problem with texlive 2009.
In the version 2007, I made some file with "decorations", made by metapost.Then 
 
you got a list of numbered -mpgraph files. In the version 2009, I don't getns
these files and my .pdf files are without the "decorations".  With 
"decorations" 
I mean blocks around pieces of text, witin a lecture note. Also the first 
page is white, till it was first green with some figures on it. 

While texexec works, I see mpgraph files but only numbered 
by .1, in the 2007 version it started by 4000 and it went to almost 3650.
I see also that there is made use of MKIV  instead of MKII in the 2007
version. 

What to do such that the 2009 version, gives the same result as the 
2007 version. I installed the 2009 version of the TUG side with 
tlmgr and almost everything of texlive is installed. Only most of the languages 
are not installed, further everything,


greetings,


Rene'
___
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] Postscript Type1 fonts & MK IV

2010-08-29 Thread Taco Hoekwater

On 08/29/2010 08:50 AM, John Magolske wrote:


Is it inherently tricky to get Type1 PS Mac fonts working with ConTeXt
&  luatex on Linux?


It should not be.


Also, the SabonLT-Roman.afm file that came from Linotype has a section
titled "StartKernData", but .afm files generated using type1afm,
fontforge, font2afm, etc. have no kerning section. Would using such
.afm files cause sub-standard output with regard to kerning?


Yes. If the pfb font versions match, you should be able use the afm
from Linotype.


load afm>  reading /home/john/.fonts/SomeMacintoshPSfont.afm


Why the odd afm name?  Is there a matching  SomeMacintoshPSfont.pfb ?

If there is, context cannot find it, and that is where this fatal
message comes from:


Type1: Could not open Type1 font: (null)) )


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


Re: [NTG-context] problem with mpost/metafun/MKII/MKIV???

2010-08-29 Thread Taco Hoekwater

On 08/29/2010 09:09 AM, Rene van Hassel wrote:

Hello Members,


I have a problem with texlive 2009.
In the version 2007, I made some file with "decorations", made by metapost.Then
you got a list of numbered -mpgraph files. In the version 2009, I don't getns
these files and my .pdf files are without the "decorations".  With "decorations"
I mean blocks around pieces of text, witin a lecture note. Also the first
page is white, till it was first green with some figures on it.

While texexec works, I see mpgraph files but only numbered
by .1, in the 2007 version it started by 4000 and it went to almost 3650.
I see also that there is made use of MKIV  instead of MKII in the 2007
version.

What to do such that the 2009 version, gives the same result as the
2007 version.


Your symptoms indicate that you probably need to add

  shell_escape = t

to the texmf.cnf file.

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


Re: [NTG-context] Postscript Type1 fonts & MK IV

2010-08-29 Thread John Magolske
* Taco Hoekwater  [100829 00:24]:
> On 08/29/2010 08:50 AM, John Magolske wrote:
>>
>> Is it inherently tricky to get Type1 PS Mac fonts working with ConTeXt
>> &  luatex on Linux?
>
> It should not be.
>
>> load afm>  reading /home/john/.fonts/SomeMacintoshPSfont.afm
>
> Why the odd afm name?  Is there a matching  SomeMacintoshPSfont.pfb ?

There is a matching SomeMacintoshPSfont.pfb. The odd name has to do
with me replacing the real font name with a made-up name in what I
pasted into my email to the list. Maybe that's silly/overly-cautious
... but I think the license for that font doesn't allow converting it
from a Mac PS font to a (Win?) PS font, generating afm files from it
with type1afm, etc. Anyhow, to re-cap, I did:

* go to the iMac & find a font named "SomeMacintoshPSfont"
* use Fontforge to generate "SomeMacintoshPSfont.pfb"
* use the type1afm utility to generate "SomeMacintoshPSfont.afm"
* put these pfb & afm files in the ~/.fonts directory on Linux box
* run `mtxrun --generate`
* run `mtxrun --script fonts --reload`
* view output of `mtxrun --script fonts --list --all` to get names
  for use in typscript.

But it doesn't work for some reason...

load afm > saving: SomeMacintoshPSfont in cache
...
define fonts > source file 'SomeMacintoshPSfont' is not found

Regards,

John


-- 
John Magolske
http://B79.net/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] Postscript Type1 fonts & MK IV

2010-08-29 Thread Taco Hoekwater

On 08/29/2010 10:11 AM, John Magolske wrote:


Anyhow, to re-cap, I did:

* go to the iMac&  find a font named "SomeMacintoshPSfont"
* use Fontforge to generate "SomeMacintoshPSfont.pfb"
* use the type1afm utility to generate "SomeMacintoshPSfont.afm"
* put these pfb&  afm files in the ~/.fonts directory on Linux box


There were some issues earlier this week with fonts in ~/.fonts
not being found, and I don't recall what was going on exactly.

But definitely, you can try to put the files in

   /fonts/data

and see if that helps (even if you do that just for testing).

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


Re: [NTG-context] Postscript Type1 fonts & MK IV

2010-08-29 Thread Khaled Hosny
On Sat, Aug 28, 2010 at 11:50:38PM -0700, John Magolske wrote:
> 
> Also, the SabonLT-Roman.afm file that came from Linotype has a section
> titled "StartKernData", but .afm files generated using type1afm,
> fontforge, font2afm, etc. have no kerning section. Would using such
> .afm files cause sub-standard output with regard to kerning?

FontForge can load mac type1 kerning, see:
http://fontforge.sourceforge.net/faq.html#FOND-kern

I think after that generating a pfb font will also generate an afm file
as well.

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


Re: [NTG-context] Recursive printing letters using Letters module...

2010-08-29 Thread Jaroslav Hajtmar

Hello, Wolfgang,
thanked for alternative solutions. While saying that the use of the 
buffers is not possible, but even though you do not seem to really work 
with my scancsv.lua library, and even very good! With the help of my 
library and your letter module I can print dozens of similar letters 
which differ only certain data. Thanks for your letter module - very 
helps me


Jaroslav




Dne 29.8.2010 9:02, Wolfgang Schuster napsal(a):

Am 29.08.2010 um 03:19 schrieb Jaroslav Hajtmar:

   

Hello
I answer it yourself. I was experimented and thought about using buffers and 
the problem is successfully for my library resolved :-)
I think that I found an interesting use of the letter module...

Jaroslav

Only for example :

[...]

\startbuffer[myletter]
\startletter[
toname={\Firstname\ \Name},
toaddress={\Street\\ \Zipcode\ \Town},
opening={Dear \Firstname,},
subject={Step by step guide to write a letter to \Firstname\ \Name},
closing={{\color Greetings from the Author} to \Name\ \Firstname}]

Thus, I came to the conclusion ... \Mygreeting

\stopletter
\stopbuffer
 


You can’t use buffers inside \dorecurse and the letter environment
is a buffer with a few extension to accept a argument for values.

You can get around this with the alternative mode for the environment
with is enabled by:

\setupletterstyle[option][method=content] % \setupletteroptions[method=content]

\dorecurse{5}
   {...
\startletter
  [toname={\Firstname\ \Name},
   toaddress={\street\\\Zipcode\ \Town},
   ...]
This, I came to the conclusion … \Mygreeting
\stopletter
...}

The disadvantage is that \startlines or \starttyping can't be used anymore
inside of a letter.


The second method you can use is to drop the letter environment and set
the values for the address and name with \setupletter and store the content
with the lettercontent environment (just a names buffer). The letter itself
can now be flushed with \setups[letter:place].

\setupletter
   [toname={\Firstname\ \Name},
toaddress={\street\\\Zipcode\ \Town},
...]

\startlettercontent
This, I came to the conclusion … \Mygreeting
\stoplettercontent

\dorecurse{5}{...\setups[letter:place]...}


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] questions regarding `\date`

2010-08-29 Thread Wolfgang Schuster

Am 28.08.2010 um 21:02 schrieb Peter Münster:

> On Sat, Aug 28 2010, Wolfgang Schuster wrote:
> 
>> It's a problem with the optional argument, if the second argument is
>> missing the space after the first is gobbled but it can be fixed.
> 
> It's a general problem with ConTeXt macros. The same applies for example for
> \externalfigure. Should this be fixed for all commands, that can be used in
> running text, or should this behaviour just be well documented?


The alternative defintions for \date and \externalfigure i showed
do fix the problem with the space after the command but the price
for this is that you can write the arguments in two different lines
or put a space between them because the second argument is then
no longer seen by tex.

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] extra blank page in front of standardmakeup

2010-08-29 Thread Mojca Miklavec
On Sat, Aug 28, 2010 at 08:59, Otared Kavian wrote:
> Hi Mojca,
>
> Both your example and Wolfgang's suggestion work fine with my installation 
> (Minimals on Mac OS X 10.6.3, ConTeXt  ver: 2010.08.20 00:00) either with 
> mkii, or mkiv.
>
> Maybe you ahve a problem with your installation?

I'm sorry. It seems that I'm always the only one with problems :) :) I
first tried a fresh installation which worked perfectly fine. I
retried the old installation and it was still broken (same version of
ConTeXt). After that I deleted texmf-cache in the old installation and
magically both problems disappeared at once.

I'm sorry for the noise and thanks a lot for all the hints.

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

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


[NTG-context] Fwd: Re: problem with mpost/metafun/MKII/MKIV???

2010-08-29 Thread Taco Hoekwater



 Original Message 
Subject: Re: [NTG-context] problem with mpost/metafun/MKII/MKIV???
Date: Sun, 29 Aug 2010 11:04:28 +
From: Rene van Hassel 
To: Taco Hoekwater 

Hello Taco,


sorry, but I will tell you my resulst so far.
After installing Texlive 2009, and I put the directory of texlive
open for writing as usr, so chmod 777 /usr/local/texlive,
I followed all kind of suggestions on the page of ConTeXt-garden,
such as the generation of luatools and go so on.
I also put your suggestion in the texmf.conf file of version 2009,
and I put the paths to the new texlive version into the
.profile file.
It took very long time before the file was "compiled" completely,
much longer as before, with texlive version 2007.
But I got my "decorations" back.
I have only the idea that is worked with MKII and not with
MKIV, I have no idea if this is in the line of the development
of ConTeXt? Has MKIV to be used or MKII?
If I do as user which pdflatex and so on I get answers back
with /usr/local/texlive/2009.. , so I have the idea that texlive
2009 is used.
The following command:
texexec --version
gives:
/usr/local/texlive/2009/texmf-dist/scripts/context/ruby/base/system.rb:16: 
warning: Insecure world writable dir 
/usr/local/texlive/2009/bin/i386-linux in PATH, mode 040777

TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD

I don't like that  "insecure world writable", but oke for the moment being.
There is also used, much space of the hard-disk
in the home directory. I think that I will not try to do this at my ASUS 
eee PC,

with the 16Gb SDD!  The operating system is almost (4/3)times what is was.
(Two texlive systems.) I not really trust it, but oke for this moment,


greetings,


Rene'

___
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] Making a feedback form

2010-08-29 Thread Hans Hagen

On 28-8-2010 1:09, Cecil Westerhof wrote:

Hans,

2010/8/28 Hans Hagen:

there is the widgets manual on the website .. still valid


Thanks. This is for interactive feedback forms and I need paper ones,
but I think I can use it.


ok, paper is easier, mostly itemize (which has some features for that) and
framed and so then


I'll look into that. I also need checkboxes, but htere was something
like that in widgets.


yes, but using pdf fill in forms for that is overkill, better define a 
symbol for that


aren't there users out there who have made forms already who can provide 
examples?


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Fwd: Re: problem with mpost/metafun/MKII/MKIV???

2010-08-29 Thread Hans Hagen



I don't like that "insecure world writable", but oke for the moment being.


this is some harmless but annoying ruby message that I've learned to ignore

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] creating own hyperlinks in bibliography

2010-08-29 Thread Mojca Miklavec
On Sat, Aug 28, 2010 at 09:02, Otared Kavian wrote:
> Hi Mojca,
> Could you please post a full example where your newly defined biblio field
> works?

Sure.

In reality it's just two things that you need to do:
- \newbibfield[nameofyourkey]
- you need to change \setuppublicationlayout for all the
books/articles/etc. where you want to use that field

First a simple example of a new entity (webpage), not a new biblio
field. All the fields are already known though.

\setuppublicationlayout[webpage]{%
\inserttitle{\bgroup\it }{\egroup. }{}%
\inserturl{}{}{}%
}
\startpublication
[k=ESFRI,t=webpage,u=http://cordis.europa.eu/esfri/]
\biburl{http://cordis.europa.eu/esfri/}
\title{CORDIS: European Strategy Forum on Research Infrastructures}
\stoppublication

Here's an example of a new entity with a new field. I defined a new
entity "conference" with two new fields "conference" for conference
name and "cobissid" for unique slovenian identification of
publications:

\newbibfield[conference]
\newbibfield[cobissid]

% the date is formatted in Slovenian way (I just cloned one of my old examples):
\setuppublicationlayout[conference]{%
\insertartauthors{}{\unskip. }{}%
\insertarttitle{\bgroup }{\egroup. }{}%
\insertconference{\bgroup \it}{\egroup\insertday{, }{.
}{}\insertmonth{}{\ }{}\insertpubyear{}{}{}. }{}%
\insertcobissid{[\sc cobiss.si-id\ }{]}{}%
}

\startpublication
[k=biblioexample,
 t=conference,
 y=2010,
 s=,
 u=,
]
\artauthor[]{Otared}[O.]{}{Kavian}
\arttitle{Something about bibliography}
\conference{4th \ConTeXt\ meeting}
\pubyear{2010}\month{September}\day{13-19}
\cobissid{333}
\stoppublication

Now that I know how to do it, I would also add the following lines
which redefine the way how \insertcobissid works, but this is fully
optional and you would normally not need to do it:

\unprotect
\def\bibinsertcobissid#1#2#3%
 {{\bibdoifelse{\@@p...@cobissid}%
 {\edef\asci...@ea\detokenize\@EA{\@@p...@cobissid}}%
  #1\expanded{\gotoCOBISS{\@@p...@thekey}{\ascii}}#2}{#3}}}
\protect

\def\gotoCOBISS#1#2%
 {\ifbibinteractionelse
   
{\useURL[bibfoo#1][http://www.cobiss.si/scripts/cobiss?command=DISPLAY&base=cobib&rid=#2]%
\goto{#2}[url(bibfoo#1)]}%
   {#2}}

Note that if you want to add a field to book, you need to completely
rewrite the part with
\setuppublicationlayout[book]{%
but that depends a lot on the style you want to use. You would
normally check one of tex files that comes with bib module and
copy-paste from that one. This is my example where I wanted to add
cobissid and isbn (and maybe other modifications that I don't
remember), but your example would probably differ considerably, so do
not blindly copy-paste from this example.

\newif\ifeditedbook
\setuppublicationlayout[book]{%
   \insertauthors{}{\unskip. }{\inserteditors{}{\unskip, editor%
 \ifnum\getvalue{edi...@num}> 1 s\fi.%
 \ \global\editedbooktrue
 }{\insertthekey{}{\unskip. }{}}}%
   \inserttitle
{\bgroup\it }%
{\/\egroup
 \ifeditedbook.%
   \global\editedbookfalse
   \insertvolume
{ Number~}%
{\insertseries
{ in~\bgroup}%
{\egroup. }%
{\insertcrossref{ in~}{}{. }}}%
{\insertseries{ }{.}{} }%
\else
   \insertcrossref
{\insertchap{, }{}{}%
 \insertpages{, pages }{. }{. }%
 \insertvolume{Volume~}{ of~}{}%
 }%
{}%
{\insertvolume
   {, volume~}%
   {\insertseries
  { of~\bgroup\it}%
  {\egroup}
  {}}
   {}%
   \insertchap{, }{}{}%
   \insertpages{, pages }{.}{.}%
}%
\fi}%
{}%
   \insertpublisher
{ }%
{\insertedition{, }{ edition}{}%
 \insertpubyear{, }{.}{.}}%
{\insertedition{, }{ edition}{}%
 \insertpubyear{, }{.}{.}}%
   \insertpages{ }{p.}{}%
   \insertisbn{ {\sc isbn}: \bgroup\os}{\egroup.}{}%
   \insertcobissid{ {\sc cobiss.si-id}: \bgroup\os}{\egroup.}{}%
   \insertdoi{ {\sc doi}: }{.}{}%
   \insertnote{ }{.}{}%
}


> In some occasions I have had analogous needs (references to papers on
> arxive.org for instance, or other repositories. It would be handy to know
> how one can add such bibliography fields.

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

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

[NTG-context] Change address location in letter module

2010-08-29 Thread Jaroslav Hajtmar

Hello,
Is the ability to place data with the recipient address on the right 
side of the page? There are envelopes with a window on the right side.


Thanks. Jaroslav


\setupletterstyle[address][style=\ssbf] % OK
\setupletterstyle[address][style=\ssbf, location=right] % or align=right 
or leftmargin  etc is without effect




___
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] Making a feedback form

2010-08-29 Thread Vnpenguin
On Fri, Aug 27, 2010 at 15:03, Cecil Westerhof  wrote:
> I want to make a feedback form with ConTeXt. I hoped that there would
> be templates for this, but I did not find any. Are there no templates,
> or did I not look good?
>

PDF feedback form with fields to fill ?
___
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] Change address location in letter module

2010-08-29 Thread Wolfgang Schuster

Am 29.08.2010 um 14:37 schrieb Jaroslav Hajtmar:

> Hello,
> Is the ability to place data with the recipient address on the right side of 
> the page? There are envelopes with a window on the right side.
> 
> Thanks. Jaroslav
> 
> 
> \setupletterstyle[address][style=\ssbf] % OK
> \setupletterstyle[address][style=\ssbf, location=right] % or align=right or 
> leftmargin  etc is without effect


The address is placed with a layer and you need the normal layer options
to change it's position, the easiest way is to use the right top corner
as the origin and set the distances to this position.

\setupletterstyle[address] % \setupletterlayer[address]
   [style=sansbold,
preset=righttop,
hoffset=2cm,
voffset=7cm]

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] \bf disturbs flowing of text around image

2010-08-29 Thread Wolfgang Schuster

Am 29.08.2010 um 02:30 schrieb Martin Althoff:

> 
>> \dontleavehmode{\bf ...} ...
>> 
>> or
>> 
>> \bold{...} ...
> 
> Thanks Wolfgang,
> 
> \bold{...} ... doesn't work, \dontleavehmode{\bf ...} does work. 
> 
> Could you, or someone, give me an idea what is going on? Is something broken 
> in the background? Am I using outdated (not current MKIV) syntax by just 
> using \bf ? It seems \dontleavehmode is just a glitch-fix.


Here is a explanation from Hans: 
http://archive.contextgarden.net/message/20070125.190639.db5dba87.en.html

You can redefine \bold (it’s just a alternative command for \bf) to

\define\bold{\dontleavehmode\groupedcommand\bf\donothing}

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] diff mp-base.mp plain.mp

2010-08-29 Thread Hans Hagen

On 28-8-2010 12:20, Yury G. Kudryashov wrote:

Hi!

In mp-base.mp dotlabel calls label twice. Once with t_, and once without. Is
it intentional? plain.mp from texlive calls label only once with t_.


once is enough indeed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] fonts on ubuntu in ~/.fonts directory are not recognised

2010-08-29 Thread Salil Sayed
Hi,

the command 'mtxrun --script fonts --reload' does not find fonts in 
/home/me/.fonts directory on ubuntu, or any system fonts for that matter. 
Consequently the fonts installed there are not used. The output is like below.

Best,

Salil

MTXrun | fontnames: identifying system font files with suffix otf
MTXrun | fontnames: identifying system font files with suffix OTF
MTXrun | fontnames: 0 system files identified, 0 skipped, 0 duplicates, 0 hash 
entries added, runtime 0.009 seconds
MTXrun | fontnames: identifying system font files with suffix ttf
MTXrun | fontnames: identifying system font files with suffix TTF
MTXrun | fontnames: 0 system files identified, 0 skipped, 0 duplicates, 0 hash 
entries added, runtime 0.000 seconds




  ___
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] (solved) fonts on ubuntu in ~/.fonts directory are not recognised

2010-08-29 Thread Salil Sayed
I did not set the OSFONTDIR. Once setting that to ~/.fonts and exporting the 
variable the fonts were found. I should have found this before.

best,

Salil

--- On Sun, 8/29/10, Salil Sayed  wrote:

From: Salil Sayed 
Subject: [NTG-context] fonts on ubuntu in ~/.fonts directory are not recognised
To: "Context users mailing list" 
Date: Sunday, August 29, 2010, 10:12 PM

Hi,

the command 'mtxrun --script fonts --reload' does not find fonts in 
/home/me/.fonts directory on ubuntu, or any system fonts for that matter. 
Consequently the fonts installed there are not used. The output is like below.

Best,

Salil

MTXrun | fontnames: identifying system font files with suffix otf
MTXrun | fontnames: identifying system font files with suffix OTF
MTXrun | fontnames: 0 system files identified, 0 skipped, 0 duplicates, 0 hash 
entries added, runtime 0.009 seconds
MTXrun | fontnames: identifying system font files with suffix ttf
MTXrun | fontnames: identifying system font files with suffix TTF
MTXrun | fontnames: 0 system files identified, 0 skipped, 0 duplicates, 0 hash 
entries added, runtime 0.000 seconds




  
-Inline Attachment Follows-

___
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] Postscript Type1 fonts & MK IV

2010-08-29 Thread John Magolske
* Khaled Hosny  [100829 08:37]:
> On Sat, Aug 28, 2010 at 11:50:38PM -0700, John Magolske wrote:
> > 
> > Also, the SabonLT-Roman.afm file that came from Linotype has a section
> > titled "StartKernData", but .afm files generated using type1afm,
> > fontforge, font2afm, etc. have no kerning section. Would using such
> > .afm files cause sub-standard output with regard to kerning?
> 
> FontForge can load mac type1 kerning, see:
> http://fontforge.sourceforge.net/faq.html#FOND-kern

Thanks, useful information linked there:

  "The mac stored kerning information in the FOND resource associated
  with a bitmap font (it is not stored in the file with the postscript
  font). If you wish kerning data for a mac postscript font, you must
  find a font file containing a bitmap font with the same family and
  style as the postscript."

Reading this, I went into the directory of the font in question,
found the *.bmap file and ran `fondu -afm` on it. This created afm files
for all the fonts in that family, each file including a "StartKernData"
section with plenty of kerning data.

So I feel closer...at least I know how to create afm files that
include kerning data. But unfortunately, I still can't get these
fonts to work with ConTeXt. It must have something to do with the
font itself, as the SabonLT-Roman.afm and SabonLT-Roman.pfb I placed
in the ~/.fonts directory are working fine.

John

-- 
John Magolske
http://B79.net/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
___


[NTG-context] Migrations: exactly LaTeX margins --> ConTeXt margins

2010-08-29 Thread Xan xan
Hi,

I want to "migrate" one LaTeX document to ConTeXt document. I only want to
put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}.


Anyone could say me the exact values I have to put in **layout**?

Thanks,
Xan.
___
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] startenumerate in romans a la LaTeX

2010-08-29 Thread Xan xan
Hi,

I just want to simulate the behaviour of

\usepackage{enumerate}
...

\begin{enumerate}[(i)]
\item
\end{enumerate}

in ConTeXt. That is:
- items in (i), (ii), 
- right indentation of items: in context items start at the same point. In
LaTeX is the item text itself who starts at the same point, not the romans.


I try:
\defineenumeration
  [mylema]
  [text={Lemma}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic
 %enumera els lemes per seccion
[...]
\startmylema Let $G$ be a group with a finite presentation ${\cal P} =
\langle X \mid R \rangle$. Then for all null-homotopic words $u, v$ in
${\cal P}$,
\setupitems[align=right]
\startitemize[r][left=(,right=),stopper=]
\item $\text{area}(u \cdot w) = \text{area}
(w \cdot u)$
\item $\text{area}(wuw^{-1}) = \text{area}(w)$
\item $\text{area}(u \cdot w) \leq \text{area}(u) + \text{area}(w)$
\item $\text{area}(u) = \text{area}(u^{-1})$
\stopitemize
\stopmylema

but the numbers are left-aligned and they bit the text.

Can anyone help me?

Thanks,
Xan.

PS: I have a new email address. The old has problems with sending emails.
___
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] Migrations: exactly LaTeX margins --> ConTeXt margins

2010-08-29 Thread Hans Hagen

On 29-8-2010 7:11, Xan xan wrote:

Hi,

I want to "migrate" one LaTeX document to ConTeXt document. I only want to
put the _exact_ margins LaTeX use for \documentclass[12pt,a4paper]{article}.


Anyone could say me the exact values I have to put in **layout**?


You first have to figure out what the exact latex values are. I suppose 
that they are documented somewhere or can be deduced from the document 
class (maybe make a list for more popular document classes).


At some point there can be a module doing things like

\definelayout[latex-article][...]

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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