Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Marco Patzer
On Tue, 14 Mar 2017 23:44:29 +0100
Marco Patzer  wrote:

> Your example works for me. But it's still unclear what I'm doing
> wrong. According to your explanation this should work:
> 
>   \definefontfamily
> [mainface]
> [rm]
> [Caecilia LT Std]
> [tf=Caecilia LT Std Roman]
> 
> However, it shows:
> 
>   selectfont > The requested font 'Caecilia LT Std' has no files for
> the 'tf' alternative, Latin Modern is used instead.
> 
> It appears that ConTeXt somehow can't find the font.

Thanks to Wolfgang's assistance I figured that the syntax in my OP
was correct and the issue is with my installation. It works for me
in a virgin installation, but throws the abovementioned error in my
current installation.

I don't know what borked my installation and why it only affected
some fonts and not others.

So sorry for the noise and thanks for quick responses.

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Pablo Rodriguez
On 03/15/2017 12:56 PM, Marco Patzer wrote:
> [...]
> Thanks to Wolfgang's assistance I figured that the syntax in my OP
> was correct and the issue is with my installation. It works for me
> in a virgin installation, but throws the abovementioned error in my
> current installation.
> 
> I don't know what borked my installation and why it only affected
> some fonts and not others.

How about removing the directory tex/texmf-cache/luatex-cache/?

I had some problems with fonts and removing it was the way of solving them.

Just in case it helps,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Wolfgang Schuster



Pablo Rodriguez 
15. März 2017 um 19:10via Postbox 



How about removing the directory tex/texmf-cache/luatex-cache/?

I had some problems with fonts and removing it was the way of solving 
them.

You can remove the font cache with

mtxrun --script cache --fonts --erase

and the complete cache with

mtxrun --script cache --erase


The font cache is regenerated with

mtxrun --script fonts --reload

and the normal cache (which is needed to use context, fonts etc. 
scripts) with


mtxrun --generate


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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Marco Patzer
On Wed, 15 Mar 2017 19:26:06 +0100
Wolfgang Schuster  wrote:

> > Pablo Rodriguez 
> > 15. März 2017 um 19:10via Postbox 
> > 
> >
> > How about removing the directory tex/texmf-cache/luatex-cache/?
> >
> > I had some problems with fonts and removing it was the way of
> > solving them.  
> You can remove the font cache with
> 
>  mtxrun --script cache --fonts --erase
> 
> and the complete cache with
> 
>  mtxrun --script cache --erase

I don't know if those commands would have helped. Since it doesn't
store any personal information I purged my context installation and
did a reinstall. Now all fonts work.

> The font cache is regenerated with
> 
>  mtxrun --script fonts --reload

I tried that (without clearing the cache) before, but to no avail.

Marco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] two suggestions for \setuphead

2017-03-15 Thread Pablo Rodriguez
Hans,

here is my minimal sample:

\showframe
\starttext
\setuphead[section][alternative=margin]
\section{This is a title}
\stoptext

After having to adapt a special page design for a friend, I realized
that reverse would be an even greater value for the alternative option
in \setuphead when it could be combined with margin, inmargin and
margintext.

This may be reached with a special command, but avoiding a extra hack
would be very helpful for newbies.

Another issue with margin numbering is alignment:

\showframe
\starttext
\setuphead[section][alternative=margin, align=center]
\section{This is a title}
\stoptext

Would it be possible in this case to set both numberalign and textalign?
(If no margin or inmargin alternative is selected and both numberalign
and textalign are specified, textalign should have preference)

I think those two suggestions would provide extra features for headings.

How about implementing both in ConTeXt?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bug in filling fields and Acrobat Reader XI?

2017-03-15 Thread Pablo Rodriguez
On 03/14/2017 07:27 PM, Pablo Rodriguez wrote:
> On 03/14/2017 07:06 PM, Henning Hraban Ramm wrote:
>> Am 2017-03-14 um 18:44 schrieb Pablo Rodriguez:
>> [...]
>>> There you have the validation script, but I’m afraid this is Greek to me.
>>
>> But guessing from your homepage you understand Greek ;).
> 
> Na ja, auf Spanisch sagte ich auch »das kommt mir Spanisch vor«.

Da meinte ich »auf Deutsch sagte ich...«. (Natürlich war das ein Felher.)

> I have another issue with the width, but I have to find the conde first.

No “conde”, but code. Just a typo.

Here is my code:

\starttext
\setupinteraction   [state=start]
\usemodule[fields]
\setupfieldcategory[fillinfield]
[fieldbackgroundcolor=yellow,validate=]

En \fillinfield[lugar]{vamos a dar un gran lugar},
a \fillinfield[dia]{99} de \fillinfield[mes]
{febreromarzo} de \fillinfield[anyo]{}.
\blank[big]

En \fillinfield[lugarfirma]{vamos a dar un gran lugar},
a \fillinfield[diafirma]{99} de \fillinfield[mesfirma]
{febreromarzo} de \fillinfield[anyofirma]{}.
\stoptext

My question is the command syntax:

\fillinfield[tag]{text}

I have just accidentally discovered that the width of the fill-in field
is set from {text}. But if [tag] is wider, the field will be wider and
wrong positioned.

I have tried to understand this in m-fields.mkiv, but I don’t get
anything there.

Is this a bug or what am I missing?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] The requested font has no files for the 'tf' alternative

2017-03-15 Thread Henning Hraban Ramm
Am 2017-03-14 um 23:44 schrieb Marco Patzer :
>  selectfont > The requested font 'Caecilia LT Std' has no files for the 'tf' 
> alternative, Latin Modern is used instead.
> 
> It appears that ConTeXt somehow can't find the font.

There seem to be serious problems with font detection.

I spent most of yesterday trying to convince ConTeXt to load my font, even from 
the same directory and even proven candidates like Gentium and Delicious – I 
get mostly only TeX Gyre Palladio Math :(

While a simple example works:

\usetypescriptfile[type-fiee]
\usetypescript[fiee]
\setupbodyfont[fiee,rm,9.5pt]

\starttext
\input tufte
{\ss \input knuth }
\stoptext

The same code in an environment doesn’t. I tried force-reloading the font 
database several times, deleting the luatex cache, reverting to an older 
version - always the same. I’m out of resources now.



Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Fonts not found

2017-03-15 Thread Henning Hraban Ramm
Sorry for hijacking the other thread.
While I saw the same error message at some time, I seem to have a different 
problem.

Am 2017-03-15 um 08:17 schrieb Henning Hraban Ramm :

> There seem to be serious problems with font detection.
> 
> I spent most of yesterday trying to convince ConTeXt to load my font, even 
> from the same directory and even proven candidates like Gentium and Delicious 
> – I get mostly only TeX Gyre Palladio Math :(
> 
> While a simple example works:
> 
> \usetypescriptfile[type-fiee]
> \usetypescript[fiee]
> \setupbodyfont[fiee,rm,9.5pt]
> 
> \starttext
> \input tufte
> {\ss \input knuth }
> \stoptext
> 
> The same code in an environment doesn’t. I tried force-reloading the font 
> database several times, deleting the luatex cache, reverting to an older 
> version - always the same. I’m out of resources now.

My log says only:

...
open source > level 5, order 6, name 'type-fiee.tex'
close source> level 5, order 6, name 'type-fiee.tex'
fonts   > typescripts > unknown library 'default'
...
mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
lmroman12-regular.otf, texgyrepagella-math.otf
mkiv lua stats  > font engine: otf 3.027, afm 1.512, tfm 1.000, 10 instances, 3 
shared in backend, 0 common vectors, 3 common hashes, load time 0.824 seconds 
...
mkiv lua stats  > luatex banner: this is luatex, version 1.0.3 (tex live 
2017/dev)

I try to attach the typescript file.

Greetlings, Hraban



type-fiee.tex
Description: Binary data
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___