Re: [NTG-context] docs (was: Re: Microtype in ConTeXt)

2010-03-27 Thread Arthur Reutenauer
> That may be the problem!

For what it's worth, I agree with you, Michael.  ConTeXt developers seem to be
unable to express their ideas clearly.  It's sad to see such deficient
communication skills, and it's to be expected that if they go on all their
knowledge is going to be lost.

You're right, again, and I thank you for pointing this simple fact that, alas,
only a few have noticed until now.  Hopefully we will see better than
unintelligible scribbles being passed out as documentation in the future.

Arthur
___
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] pk-directory

2010-03-27 Thread Arthur Reutenauer
> No, neither OpenType or TrueType support bitmap-only, they can embed
> bitmaps besides the regular outlines

  Thanks for the precision, Khaled.  I have to admit I never looked into
the details, I only knew one could embed bitmaps, but it seems I
extrapolated a bit.

Arthur
___
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] pk-directory

2010-03-27 Thread Khaled Hosny
On Sat, Mar 27, 2010 at 11:36:22AM +0100, Arthur Reutenauer wrote:
> > may we can be package them in an otf format
> 
>   Right, OpenType can embed bitmap fonts (even TrueType could, if I'm
> not mistaken); if the font is only available as PK, it should be
> possible to make it into an OpenType font, using FontForge, for example.

No, neither OpenType or TrueType support bitmap-only, they can embed
bitmaps besides the regular outlines (X11 have there own OpenType
bitmap-only format, but it isn't a standard).

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
___


[NTG-context] docs (was: Re: Microtype in ConTeXt)

2010-03-27 Thread Michael Saunders
Peter, that post of Hans's mainly argues that the old manual is good
enough and then goes on to talk about development.  For example:

"Even an old manual can quite well describe functionality as much
didn't change."

It can if it ever did.  I don't think cont-eni.pdf etc., describe the
functionality well at all.

"As one can visually get all kind of output and as
typographical elements can interfere the ultimate manual would
show $n!$ variants and become quite unreadable. There is no easy
way out of this. "

There is:  describe each option concisely and abstractly, then you
need only be concerned with $n$ elements.  Almost every LaTeX package
manages to do this successfully, and they are very usable.

"More documentation would not help all users. "

There needn't be more.  It needn't be lengthy, just clear, complete,
and concise.

"There are quite some options that were never meant for
usage beyond our own, but as we ship the full product, they become
visible. No, they are not documented apart from the source. Yes,
if useful they should be documented but why by me? "

Because you are probably the only person on earth who understands
them.  Getting that knowledge out of your head and into others' will
require an act of communication.

"I only work on a manual (or article or whatever) if it's fun to do."

That may be the problem!

Hans, Here are some constructive suggestions.  I hope you take them seriously:

If you ever write another manual, perhaps when MKIV is complete,

1.  Start from scratch.  Throw away the old material.

2.  Forbid yourself the use of code examples.  They are a crutch which
impedes communication.  First, write the whole manual with normal,
abstract, expository prose.  When it's complete and explains
everything fully---when it {\em makes sense}--- {\em then} illustrate
it with as many code samples as you like.

3.  Have a standard format, a sort of checklist, for what must be said
about each argument, parameter, command and group of commands:
---What is its function?
---How is it used?
---What is it used for (what effect is it supposed to achieve)?
---What are the options?
A regular format like this will make it much easier on you.  You'll
have a regular structure that you simply have to fill in.  It might
even make the task more fun.

4.  Get someone to serve as an editor.

These will solve most of your writing problems.  I look forward to a
new manual someday.

Thanks,

-- Michael
___
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] color problem with columns

2010-03-27 Thread Wolfgang Werners-Lucchini
Hallo,

on Vers 38 at page 2 (see example) text is green.


\setupcolors[state=start]
\newcounter\V
\def\Vers#1{\increment\V {\color[darkgreen]\rm\bi \V} #1}
\starttext
\startcolumns
\dorecurse{50}{\Vers{Dies ist ein Testsatz der gerade lange genug 
ist, um zu zeigen was zu zeigen ist.}\par}
\stopcolumns
\stoptext


How can this be fixed?

Wolfgang

PS If a Vers is starting on a new page, the number is black.
___
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] pk-directory

2010-03-27 Thread Taco Hoekwater

Wolfgang Werners-Lucchini wrote:

On 27 Mar 2010 at 12:00, ntg-context-requ...@ntg.nl wrote:


That being said, I realize that it means Metafont fonts can't be
used in Mark IV, am I right?

Dumping a ready-made pk file in the local directory worked last
time I tried it.



No success! Neiter *.pk nor *.600pk 
and not with a local subdir /dpi600


What extension have you used?


.600pk (but that was ages ago, when I still cared about pk fonts)

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
___


[NTG-context] docs (was: Re: Microtype in ConTeXt)

2010-03-27 Thread Peter Münster
On Sat, Mar 27 2010, Michael Saunders wrote:

> Notice that Yan Zhou isn't complaining that the docs are old.   Our
> problem is that they are sketchy and rambling, bits and pieces of this
> and that without any systematic explanations.  Often they are just
> some unexplained code samples that communicate nothing (unless you
> happen to be the guy who invented the language).   I can't think of
> one command that is fully explained along with all its possible
> parameters.   The wiki is better written, but even less complete.   It
> might not be possible to do better, but this is a huge obstacle to
> anyone who actually wants to use ConTeXt.  The docs hint at a lot of
> features that sound better than LaTeX, but actually getting them to
> work is a different story.

Hello Michael,

See also here:
http://archive.contextgarden.net/message/20100308.123128.f65942c8.en.html

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] letter: backaddress

2010-03-27 Thread Wolfgang Schuster

Am 27.03.10 17:56, schrieb Wolfgang Werners-Lucchini:

I do not understand the the main principle.
   

You're mixing different things.

What is the difference between

\setupletterstyle[option][backaddress=yes]
   

In t-letter.tex you can fint this:

\startsetups[\v!letter:\v!layer]

  \doif\lsoptionmarking
\v!yes{\directsetup{\v!letter:\v!place:\v!foldmark   }}
  
\doif\lsoptionbackaddress\v!yes{\directsetup{\v!letter:\v!place:\v!backaddress}}
  \doif\lsoptionaddress
\v!yes{\directsetup{\v!letter:\v!place:\v!address}}
  \doif\lsoptionreference  
\v!yes{\directsetup{\v!letter:\v!place:\v!reference  }}
  \doif\lsoptionlocation   
\v!yes{\directsetup{\v!letter:\v!place:\v!location   }}
  \doif\lsoptionlettermain 
\v!yes{\directsetup{\v!letter:\v!place:\v!lettermain }}
  \doif\lsoptionletternext 
\v!yes{\directsetup{\v!letter:\v!place:\v!letternext }}


\stopsetups

With \setupletterstyle[=yes|no] you can show or hide elements
(like the foldmarks or the backaddress) in the output.

\setupletterstyle[backaddress][alternative=yes]

In 'default.nli' I found

\defineletterelement[\v!backaddress][\v!auto]
   {\doifelselettervalue\c!backaddress
  {\lettervalue\c!backaddress}
  {\lettervalue\c!fromname
   \doiflettervalue\c!fromaddress\\
   \lettervalue\c!fromaddress}}

what I interpret in the following way:

If 'backaddress'=auto
   If exist a constant 'backaddress'
 use it
   else
 compose one from 'fromname' and 'fromaddress'
   

The constant needs a content, if there is no content for 'backadress'
the field is filled with 'fromname' and 'fromaddress'.

\defineletterelements creates a macro, where the first argument is
the name of the elements and the second a name for the alternative,
e.g. \defineletterelement[][]{definition}

You can use the created element with 
\setupletterstyle[][alternative=],

in your case \setupletterstyle[backaddress][alternative=auto]

When you don't like this mechanism you can use the internal
element setups itself with

\startsetups letter:backaddress
...
\stopsetups

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] U3D inclusion

2010-03-27 Thread Michail Vidiassov

Dear gummybears (and hopefully Hans),

On Sat, 23 Jan 2010, gummybears wrote:


After a couple of tests here are my findings

*) The preview does not work at this moment. I only see a light blue square 
which can be activated.
After which the 3d viewer shows the embedded 3d image
The developers are waiting for some functions to appear in luatex before 
doing the preview "the right way". I have a patch implementing preview "somehow".



*) Specifying several views as shown in back-u3d.mkiv shows up in the resulting pdf as 
"unknown view"

Most likely a typo bug in lpdf-u3d (at the start of make3dview - if you are 
listening, Hans ;)
Have a fix for that too.


*) I also experimented with different values for coo, c2c, roll etc. When not 
specifying any of these settings
the embedded 3d is always shown with the incorrect roll i.e the roll is always 
90 degrees off


Most likely my fault, but there are different points of view on what is 
default camera position (moview15, Asymptote, OpenGL, U3D, Adobe Viewer),

so most likely the default default is not the one Asymtote expects.
Plus Asymptote is micromanaging things - it not only sets camera,
but also moves the model itself, to be better seen, apparently.
We'll have to dig into that someday - see you on Asymptote forum if 
you wanna play and have time for technicalities.


 Sincerely, Michail
PS. Sorry for slow answer - had to fix Asymptote PRC output first.

___
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] Microtype in ConTeXt

2010-03-27 Thread Michael Saunders
> On 27-3-2010 1:15, Yan Zhou wrote:
>
>> As I can see now ConTeXt is indeed a far more advanced system than LaTeX. 
>> But I have one more query. Where can I find the documents. When following 
>> these replies and some other messages in the list, I find some commands not 
>> documented in the Manual or Reference Manual. In LaTeX, all commands are 
>> detailed documented in source2e.tex, in TeX, The TeXBook explains 
>> everything. So in ConTeXt, where can I find such detailed documents. I tried 
>> the documented source, but it is more like a PDF version or source with only 
>> a little documentation.
>
> as most of the functrionality does not change you can use older docs
> (website, wiki etc) for most cases
>
> newer things i.e. introduced in mkiv using luatex are described in for
> instance mk.pdf and articles
>
> of course the wiki is a good source as well


Notice that Yan Zhou isn't complaining that the docs are old.   Our
problem is that they are sketchy and rambling, bits and pieces of this
and that without any systematic explanations.  Often they are just
some unexplained code samples that communicate nothing (unless you
happen to be the guy who invented the language).   I can't think of
one command that is fully explained along with all its possible
parameters.   The wiki is better written, but even less complete.   It
might not be possible to do better, but this is a huge obstacle to
anyone who actually wants to use ConTeXt.  The docs hint at a lot of
features that sound better than LaTeX, but actually getting them to
work is a different story.
___
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] pk-directory

2010-03-27 Thread luigi scarso
On Fri, Mar 26, 2010 at 11:16 PM, Hartmut Henkel  wrote:
> On Fri, 26 Mar 2010, Wolfgang Werners-Lucchini wrote:
>> On 26 Mar 2010 at 22:09, Hartmut Henkel wrote:
>> > On Fri, 26 Mar 2010, Hans Hagen wrote:
>> > > On 26-3-2010 21:30, Wolfgang Werners-Lucchini wrote:
>> > > >
>> > > > how should the directory be named where a 600 dpi pk-font is
>> > > > searched for by luatex?
>> > >
>> > > i'm not so sure if luatex does pk fonts (i havent't included pk
>> > > fonts in 15 years)
>> >
>> > it does, with the default kpathsea paths, e. g.:
>> >
>> > This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
>> > (./xx.tex [1] )
>> > > > r10.600pk>
>> >
>> > This is LuaTeX, Version beta-0.52.0-2010032122 (rev 3515)
>> > (./xx.tex [1] )
>> > > > pi600/cmr10.pk>
>>
>> I have tried both variants but nothing works. I use the minimals under
>> windows. What can I do (examine files, logs) to solve the problem?
>
> sorry, i can't help. (Plain) luatex (as of TeX Live) would work, but the
> minimals seem not to contain plain luatex (which is a pity), and context
> does some automatism which includes Type0C fonts instead of pk.
hm there is a plain
minimals-beta/tex/texmf/tex/plain/base/plain.tex
and in
minimals-beta/tex/texmf-context/tex/generic/context
#> luatex --ini luatex-plain.tex
#> luatex --fmt=luatex-plain.fmt  luatex-test.tex
works with some errors about font path
(I believe we  need some fontmap files  from texlive)
-- 
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pk-directory

2010-03-27 Thread Arthur Reutenauer
> Is there a debug-switch which informs the user what and where luatex 
> is searching?

  If you're working in a shell, try setting the KPATHSEA_DEBUG
environment variable to -1, you will get tons of information about path
lookups and directory searches.

Arthur
___
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] pk-directory

2010-03-27 Thread Wolfgang Werners-Lucchini
On 27 Mar 2010 at 12:00, ntg-context-requ...@ntg.nl wrote:

> > That being said, I realize that it means Metafont fonts can't be
> > used in Mark IV, am I right?
> 
> Dumping a ready-made pk file in the local directory worked last
> time I tried it.


No success! Neiter *.pk nor *.600pk 
and not with a local subdir /dpi600

What extension have you used?

Is there a debug-switch which informs the user what and where luatex 
is searching?

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] letter: backaddress

2010-03-27 Thread Wolfgang Werners-Lucchini
Hallo,

> \setupletterstyle[backaddress=yes]
> 
> it's a disabled by default but i forgot to do this also in the
> default style
> (most styles reset the layout and use default values before they
> modify it)
> > \setupletterstyle
> >[backaddress]
> >[alternative=auto,
> >
> 'auto' is now the default value
> 
> Wolfgang

I do not understand the the main principle.

What is the difference between

\setupletterstyle[option][backaddress=yes]

and

\setupletterstyle[backaddress][alternative=yes]

In 'default.nli' I found

\defineletterelement[\v!backaddress][\v!auto]
  {\doifelselettervalue\c!backaddress
 {\lettervalue\c!backaddress}
 {\lettervalue\c!fromname
  \doiflettervalue\c!fromaddress\\
  \lettervalue\c!fromaddress}}

what I interpret in the following way:

If 'backaddress'=auto
  If exist a constant 'backaddress'
use it
  else
compose one from 'fromname' and 'fromaddress'

To use this, I tried to set 

\setupletterstyle[option][backaddress=auto]

or

\setupletterstyle[backaddress][alternative=auto]

And I tried to set this constant backaddress, with

setlettervalue{backaddress}{something}

But no combination is working.

What worked is

\setupletterstyle[option][backaddress=yes]
\setlettervalue{backaddress}{something}

which should not work, because

\defineletterelement[\v!backaddress][\v!yes]
  {\lettervalue\c!fromname
   \doiflettervalue\c!fromaddress\\
   \lettervalue\c!fromaddress}

is composing the 'backaddress' from the fromdata.

My skills to read the sourcecode are very limited, so most likely I 
buhave something misunderstood.

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] letter: backaddress

2010-03-27 Thread Andreas Schneider
Wolfgang Schuster wrote:

> \setupletterstyle[backaddress=yes]

Ah, that did it! Thank you.

___
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] Interlinespace in headertexts

2010-03-27 Thread luigi scarso
On Sat, Mar 27, 2010 at 4:15 PM, Wolfgang Schuster
 wrote:
>
> ???
TeX in \ConTeXt ?
-- 
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Interlinespace in headertexts

2010-03-27 Thread Wolfgang Schuster

Am 27.03.10 16:01, schrieb luigi scarso:

\starttext
1·hello\par world

2·hello\par\nointerlineskip world  \par %% reset
3·hello\par world %% like 1

\blank

4·hello\par\nointerlineskip\vskip-1.2\lineheight
···world\par\nointerlineskip\vskip-1.2\lineheight
tonight

\vskip 3\lineheight

\vbox{\offinterlineskip \input knuth }

\stoptext
   

???

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] Interlinespace in headertexts

2010-03-27 Thread luigi scarso
On Sat, Mar 27, 2010 at 3:17 PM, Wolfgang Schuster
 wrote:
> Am 26.03.10 23:33, schrieb Willi Egger:
>>
>> Hi,
>>
>> When setting up a headertext in a \vbox there is no interlinespacing.
>> Placing the same text in a \vbox in the text area there is the default
>> interlinespacing.
>> Is there a simple explanation for this behaviour?
>
> When ConTeXt puts a page together (add headers, footers etc. to the text)
> it disables interlinespace between all the elements to avoid unwanted
> vertical
> space between header, text, footer ...
>
> Because header are added when the page is constructed the disabled
> interlinespace
> is active and you get the what you experienced.
>
> Normal text is typeset before the page is build and you get therefore the
> correct
> interlinespace.

\starttext
1·hello\par world

2·hello\par\nointerlineskip world  \par %% reset
3·hello\par world %% like 1

\blank

4·hello\par\nointerlineskip\vskip-1.2\lineheight
···world\par\nointerlineskip\vskip-1.2\lineheight
tonight

\vskip 3\lineheight

\vbox{\offinterlineskip \input knuth }

\stoptext




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


Re: [NTG-context] Interlinespace in headertexts

2010-03-27 Thread Wolfgang Schuster

Am 26.03.10 23:33, schrieb Willi Egger:

Hi,

When setting up a headertext in a \vbox there is no interlinespacing. 
Placing the same text in a \vbox in the text area there is the default 
interlinespacing.

Is there a simple explanation for this behaviour?

When ConTeXt puts a page together (add headers, footers etc. to the text)
it disables interlinespace between all the elements to avoid unwanted 
vertical

space between header, text, footer ...

Because header are added when the page is constructed the disabled 
interlinespace

is active and you get the what you experienced.

Normal text is typeset before the page is build and you get therefore 
the correct

interlinespace.

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] letter: backaddress

2010-03-27 Thread Wolfgang Schuster

Am 27.03.10 14:51, schrieb Andreas Schneider:

Hello,

Speaking of the letter module ... I don't get any backaddress at all in the
current minimals. Did something change? The example below used to work.
   

\setupletterstyle[backaddress=yes]

it's a disabled by default but i forgot to do this also in the default style
(most styles reset the layout and use default values before they modify it)

\setupletterstyle
   [backaddress]
   [alternative=auto,
   

'auto' is now the default value

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] letter: backaddress

2010-03-27 Thread Andreas Schneider
Hello,

Speaking of the letter module ... I don't get any backaddress at all in the 
current minimals. Did something change? The example below used to work.



\usemodule[letter][style=dinb]
\setuppapersize[A4][A4]

\setupletterstyle
  [backaddress]
  [alternative=auto,
   style=\tfxx,
   bottomframe=on]

\setupletter[
  fromname={Sender},
  fromaddress={Sent\\From},
  backaddress={Sender - Address}]

\setupletter[
  toname={Recipient},
  toaddress={Address}]

\setupletter[subject={The Subject}]

\starttext\startletter
Some Text.
\stopletter\stoptext


Best Regards,
Andreas.

___
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] URL setup

2010-03-27 Thread Vyatcheslav Yatskovsky

Hi

Now I see. Thanks.


\setupinteraction
   [state=start,
color=red] % \goto and \from

\setupurl
   [color=orange] % \url


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


Re: [NTG-context] Microtype in ConTeXt

2010-03-27 Thread Wolfgang Schuster

Am 27.03.10 12:21, schrieb Hans Hagen:

when i set different values for certain words the last setting in a
paragraph is used for each word, is this intended?

\starttext

text \kerncharacters[.2]{text} text \kerncharacters[1]{text} text

text \kerncharacters[1]{text} text \kerncharacters[.2]{text} text

\stoptext

 you can test the beta on the ftp ... i reimplemented the interface

Works.

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] Microtype in ConTeXt

2010-03-27 Thread Hans Hagen

On 27-3-2010 6:28, Wolfgang Schuster wrote:

Am 25.03.10 23:42, schrieb Hans Hagen:

there is no reason to use a different model than we have now (also,
these 1000 based values are old fashioned tex approaches that don't
make much sense nowadays)

ok, makes sense

when i set different values for certain words the last setting in a
paragraph is used for each word, is this intended?

\starttext

text \kerncharacters[.2]{text} text \kerncharacters[1]{text} text

text \kerncharacters[1]{text} text \kerncharacters[.2]{text} text

\stoptext


you can test the beta on the ftp ... i reimplemented the interface

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


Re: [NTG-context] pk-directory

2010-03-27 Thread Taco Hoekwater

Arthur Reutenauer wrote:

may we can be package them in an otf format


  Right, OpenType can embed bitmap fonts (even TrueType could, if I'm
not mistaken); if the font is only available as PK, it should be
possible to make it into an OpenType font, using FontForge, for example.


The chance of this working is minimal. For certain, I have never
tested bitmapped opentype fonts, and I also am sure that subsetting
won't work at all. Also, I am even less interested in bitmapped
opentype fonts than I am in pk files.


  That being said, I realize that it means Metafont fonts can't be used
in Mark IV, am I right?


Dumping a ready-made pk file in the local directory worked last
time I tried it.

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] pk-directory

2010-03-27 Thread luigi scarso
On Sat, Mar 27, 2010 at 11:36 AM, Arthur Reutenauer
 wrote:
>> may we can be package them in an otf format
>
>  Right, OpenType can embed bitmap fonts (even TrueType could, if I'm
> not mistaken);
true
> if the font is only available as PK, it should be
> possible to make it into an OpenType font, using FontForge, for example.
 I'm not sure maybe with mftrace
http://lilypond.org/mftrace/
From ff site
""
Different font formats
FontForge supports Type1, truetype, opentype, cff, type42, cid-keyed
and svg fonts, also bdf and NFNT for bitmaps
FontForge will sort-of accept metafont files (essentially it runs
metafont and autotraces the result). It won't produce .mf files
""
>
>  That being said, I realize that it means Metafont fonts can't be used
> in Mark IV, am I right?
true --- for now.

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


Re: [NTG-context] pk-directory

2010-03-27 Thread Arthur Reutenauer
> may we can be package them in an otf format

  Right, OpenType can embed bitmap fonts (even TrueType could, if I'm
not mistaken); if the font is only available as PK, it should be
possible to make it into an OpenType font, using FontForge, for example.

  That being said, I realize that it means Metafont fonts can't be used
in Mark IV, am I right?

Arthur
___
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] pk-directory

2010-03-27 Thread luigi scarso
On Sat, Mar 27, 2010 at 10:37 AM, Hans Hagen  wrote:
> On 27-3-2010 0:45, Taco Hoekwater wrote:
>>
>> Wolfgang Werners-Lucchini wrote:
>>>
>>> Hallo,
>>>
>>> how should the directory be named where a 600 dpi pk-font is searched
>>> for by luatex?
>>
>> Context mkiv does not support pk files (the luatex executable itself
>> does, but context mkiv overrules all search paths and does not support
>> searching for pk files).
>
> the find and read callbacks are set so it should find them, although there
> might be logic in kpse with respect to pk files that is not implemented
> (like generating bitmaps or so)
>
> i wonder if it's really worth the trouble to support bitmap fonts in mkiv as
> hardly anyone will use them
may we can be package them in an otf format
-- 
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] pk-directory

2010-03-27 Thread Hans Hagen

On 27-3-2010 0:45, Taco Hoekwater wrote:

Wolfgang Werners-Lucchini wrote:

Hallo,

how should the directory be named where a 600 dpi pk-font is searched
for by luatex?


Context mkiv does not support pk files (the luatex executable itself
does, but context mkiv overrules all search paths and does not support
searching for pk files).


the find and read callbacks are set so it should find them, although 
there might be logic in kpse with respect to pk files that is not 
implemented (like generating bitmaps or so)


i wonder if it's really worth the trouble to support bitmap fonts in 
mkiv as hardly anyone will use them


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


Re: [NTG-context] Microtype in ConTeXt

2010-03-27 Thread Hans Hagen

On 27-3-2010 1:15, Yan Zhou wrote:


As I can see now ConTeXt is indeed a far more advanced system than LaTeX. But I 
have one more query. Where can I find the documents. When following these 
replies and some other messages in the list, I find some commands not 
documented in the Manual or Reference Manual. In LaTeX, all commands are 
detailed documented in source2e.tex, in TeX, The TeXBook explains everything. 
So in ConTeXt, where can I find such detailed documents. I tried the documented 
source, but it is more like a PDF version or source with only a little 
documentation.


as most of the functrionality does not change you can use older docs 
(website, wiki etc) for most cases


newer things i.e. introduced in mkiv using luatex are described in for 
instance mk.pdf and articles


of course the wiki is a good source as well

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


Re: [NTG-context] Importing program text.

2010-03-27 Thread Peter Münster
On Fri, Mar 26 2010, John Culleton wrote:
> 
> I want to import the text of several programs in my latest book. 
> My requirements are:
> 1. Monospaced font.

\setuptyping[style=\tt]


> 2. Courier or similar typeface

I don't know.


> 3. Smaller than normal typeface (to avoid wraparound.) 

\setuptyping[style=\tx\tt]

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
___