Re: [NTG-context] simplefonts question

2016-01-14 Thread Wolfgang Schuster

Meer, Hans van der 
14. Januar 2016 um 14:49
How to set the calligraphic font in the simplefonts module?
With the instructions in the Wiki:

\usemodule[simplefonts]
\definefontfamily[fallbackfont][serif][lucidaot]
\definefontfamily[fallbackfont][sans][lucidaot]
\definefontfamily[fallbackfont][mono][lucidaot]
\definefontfamily[fallbackfont][math][lucidaot]
\setupbodyfont[fallbackfont]
\setcalligraphicfont[fallbackfont]

and got the following errors: (1) unknow font and (2) unknown definition.

open source > 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
close source > 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
fonts > defining > font with asked name 'unknown' is not found using 
lookup 'file'

fonts > defining > unknown font 'unknown', loading aborted
fonts > defining > unable to define 'unknown' as 
'fallbackfont-12pt-rm-tf-0--0'


hvdm-fig.tex: ! Undefined control sequence

l.11 \setcalligraphicfont
   [fallbackfont]


Why is ConTeXt able to use my Lucida font with simply 
\setupbodyfont[lucidaot] but does simplefont not?
You're using the wrong names for the fonts and there is also no need to 
load the simplefonts module.


\definefontfamily [mainface] [rm] [Lucida Bright OT]
\definefontfamily [mainface] [ss] [Lucida Sans OT]
\definefontfamily [mainface] [tt] [Lucida Sans Typewriter OT]
\definefontfamily [mainface] [mm] [Lucida Bright Math OT]
\definefontfamily [mainface] [hw] [Lucida Handwriting OT]
\definefontfamily [mainface] [cg] [Lucida Calligraphy OT]

\setupbodyfont[mainface]

\starttext

\rm\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\ss\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\tt\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\hw\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\cg\tf Roman \it Italic \bf Bold \bi BoldItalic \sc SmallCaps

\startformula
c^2 = a^2 + b^2
\stopformula

\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] \doiftext vs. \doifemtpy

2016-01-14 Thread Meer, Hans van der
Watch out. There is a pitfall here (yes, I have fallen in this trap).
Try \type{\doifempty{\empty}{yes}} = <\doifempty{\empty}{yes}>\crlf
and you will see that it is NOT empty despite the suggestive use of the \empty 
macro!

Hans van der Meer


On 14 Jan 2016, at 08:41, Marco Patzer 
> wrote:

On Wed, 13 Jan 2016 23:18:03 +0100
Pablo Rodriguez > wrote:

which is the difference between \doiftext and \doifempty?

First of all, the logic is reversed, \doiftext prints the second
argument if the first one contains text, \doifempty does print the
second argument if the first one *does not* contain anything. You can
get around this by using the \…else versions.

Then, the major difference is that \doifempty checks if the argument
is empty and nothing else. \doiftext checks if it contains a box of
non-zero width.

\starttext
 text: \doiftextelse{foo}{is text}{no text}\par
 text: \doifemptyelse{foo}{is empty}{not empty}\par
 empty: \doiftextelse{}{is text}{no text}\par
 empty: \doifemptyelse{}{is empty}{not empty}\par
 space: \doiftextelse{\space}{is text}{no text}\par
 space: \doifemptyelse{\space}{is empty}{not empty}\par
 zero width: \doiftextelse{\framed[width=0cm]{frame}}{is text}{no text}\par
 zero width: \doifemptyelse{\framed[width=0cm]{frame}}{is empty}{not empty}\par
 image: \doiftextelse{\externalfigure[cow]}{is text}{no text}\par
 image: \doifemptyelse{\externalfigure[cow]}{is empty}{not empty}\par
\stoptext

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

[NTG-context] fontname

2016-01-14 Thread dr. Hans van der Meer
I want to display the name of the current (body)font.
\fontname{#1} should do the trick but what parameter to use?
\currentfont
\bodyfont
\currentbodyfont
are all wrong.

Eevn the book "fonts in context" didn't help me out.

What to use?

Hans van der Meer

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

2016-01-14 Thread Herbert Voss

Am 14.01.2016 um 12:15 schrieb dr. Hans van der Meer:

I want to display the name of the current (body)font.
\fontname{#1} should do the trick but what parameter to use?
\currentfont
\bodyfont
\currentbodyfont
are all wrong.


\starttext
\truefontname{Regular}
\stoptext


Herbert


___
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] tooltip and buttom for footnotes?

2016-01-14 Thread Ursula Hermann
Hello Wolfgang or Hans?

 

Can one of you help me please. Iwant something like this: 

 

\setuppapersize[S6][S6]

\setupinteraction[state=start]

\setupcolors[state=start]

 

\starttext

Here is an example: by saying

\type{\tooltip[left]{Example}{Is it nice}}, we get

\blank

\midaligned{\tooltip[bottom]{Example}{Isn't it nice?}}

\blank

 

This file when opened in Adobe Acrobat will show the tooltip "Isn't it
nice?" when one hovers over the word "Example".

 

\blank

\midaligned{\tooltip[bottom]{an example}{Isn't it nice?}  of tooltip on the
bottom}

\blank

\midaligned{an example of tooltip on the \tooltip[right]{right}{Isn't it
nice?}}

\blank

\midaligned{\tooltip[left]{an}{Isn't it nice?}  example of tooltip on the
left}

 

\stoptext

 

But i would need it for footnotes in pdf. Is this possible, or do I have to
define somehting?

 

Thanks 

 

Uschi 

___
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] font style query

2016-01-14 Thread dr . Hans van der Meer
Some fonts as for example Lucida have a calligraphic style called up with \cg.
If it is not present a default is taken.
However, I would like to take other action in that case, for example switching 
to another font.

Thus, how to test on the presence of that calligraphic style in the current 
font?

Hans van der Meer

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

2016-01-14 Thread massifr
> I want to display the name of the current (body)font.
> \fontname{#1} should do the trick but what parameter to use?
> \currentfont
> \bodyfont
> \currentbodyfont
> are all wrong.
> 
Try \fontname\font

\purefontname\font should show only its name, not the size, 
but this does not work for me (version 2015.05.18 included in Debian)

Greetings,
Massi
___
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] what bib module?

2016-01-14 Thread Meer, Hans van der
Calling:
\usemodule[bib]

I get the log message:
resolvers   > modules > 'bibtex' is not found
resolvers   > modules > 'oldbibtex' is loaded

My code is somewhat old, I must confess. What should I use now?

Hans van der Meer

___
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] simplefonts question

2016-01-14 Thread Meer, Hans van der
How to set the calligraphic font in the simplefonts module?
With the instructions in the Wiki:

\usemodule[simplefonts]
\definefontfamily[fallbackfont][serif][lucidaot]
\definefontfamily[fallbackfont][sans][lucidaot]
\definefontfamily[fallbackfont][mono][lucidaot]
\definefontfamily[fallbackfont][math][lucidaot]
\setupbodyfont[fallbackfont]
\setcalligraphicfont[fallbackfont]

and got the following errors: (1) unknow font and (2) unknown definition.

open source > 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
close source> 6 > 12 > 
/Users/hansm/Applications/TeX-sources/context-29/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
fonts   > defining > font with asked name 'unknown' is not found using 
lookup 'file'
fonts   > defining > unknown font 'unknown', loading aborted
fonts   > defining > unable to define 'unknown' as 
'fallbackfont-12pt-rm-tf-0--0'

hvdm-fig.tex: ! Undefined control sequence

l.11 \setcalligraphicfont
   [fallbackfont]


Why is ConTeXt able to use my Lucida font with simply \setupbodyfont[lucidaot] 
but does simplefont not?
Why is \setcalligraphicfont undefined?

Hans van der Meer


___
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] font style query

2016-01-14 Thread massifr
> Some fonts as for example Lucida have a calligraphic style called up with \cg.
> If it is not present a default is taken.
> However, I would like to take other action in that case, for example 
> switching to another font.
> 
> Thus, how to test on the presence of that calligraphic style in the current 
> font?

It depends on the font, whether it has a calligraphic variant.
In the case of Lucida, its name is "Lucida Calligraphy".
There's also a "Lucida Handwriting".

You can use it in ConTeXt because there are some default typescripts 
mapping that font on the \cg fontstyle.
You can look at these files in your ConTeXt distribution:
/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv
/tex/texmf-context/tex/context/base/type-imp-lucida-typeone.mkiv

If you want to use a different font, for which there's no default typescript, 
you have to write your own typescripts.
You can also mix font families, taking the missing calligraphic variant 
from a different family with a similar look.

Hope it helps,
greetings,
Massi
___
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] Error in latest beta: luat-exe.lua not found

2016-01-14 Thread Romain Diss
Hi,

Le 13/01/2016, Hans Hagen a écrit
> On 1/13/2016 1:22 AM, Romain Diss wrote:
> >Le 13/01/2016, Hans Hagen a écrit
> >>On 1/13/2016 12:01 AM, Romain Diss wrote:
> >>>On 1/12/2016, Hans Hagen wrote:
> On 1/12/2016 9:33 PM, Romain Diss wrote:
> >I just downloaded the new beta and I can not launch context anymore. It
> >complains it can't find a 'luat-exe.lua' file:
> >>system  > lua > loading of file 
> >>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed:
> >> cannot open 
> >> /opt/context/tex/texmf-context/tex/context/base/luat-exe.lua: No such 
> >> file or directory
> >>resolvers   > lua > loading file 
> >>'/opt/context/tex/texmf-context/tex/context/base/luat-exe.lua' failed
> >>error loading file: luat-exe.lua (aborting)
> >>
> >>is that file sompelace on the system?
> >Yes, it is located in 
> >/opt/context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua
> >
> >Concerning the 'context --version' error message, the 'context.mkiv' is
> >also located in /opt/context/tex/texmf-context/tex/context/base/mkiv/
> >and not in /opt/context/tex/texmf-context/tex/context/base/ as printed
> >in the output.
> 
> i'll upload a version with a bit more checking
Don't know if it's already done but nothing changed on my side. I tried
to create symbolic links of all base/mkiv/ files into base directory.
Context is processing further but is stopped anyway. It complains it
doesn't find 'page-otr.lua' although the link is done. I also noticed
that context needed 'syst-rtp.mkiv' which I did not find in base/mkiv
but in base/mkii.

I do not know where to investigate more an I'm surprised I am the only
one concerned by this bug. Is it possible that an environment variable
could be responsible of this (I didn't change anything these last
times).

Thank you for help.


-- 
Romain Diss
___
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] what bib module?

2016-01-14 Thread Hans Hagen

On 1/14/2016 12:56 PM, Meer, Hans van der wrote:

Calling:
\usemodule[bib]

I get the log message:
resolvers   > modules > 'bibtex' is not found
resolvers   > modules > 'oldbibtex' is loaded

My code is somewhat old, I must confess. What should I use now?


\usemodule[oldbibtex]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Latest LuaTeX version (was: Bug in command \framed)

2016-01-14 Thread Mojca Miklavec
On 12 January 2016 at 22:21, Hans Hagen wrote:
>
> the windows version is ok (0.87.2 so really the latest from trunk)
>
> so, what platforms are not 0.87.1 or higher?

No single platform (other than Akira's binaries) provides 0.87.1 or later.

The latest LuaTeX release was 0.87.0, see:
https://foundry.supelec.fr/scm/viewvc.php/tags/?root=luatex
and the garden ships binaries for 0.87.0 only.

If you need a newer LuaTeX, we need a new LuaTeX release.

Mojca

(I initially missed this question as I often limit my reading based on subject.)
___
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] ddirectory search

2016-01-14 Thread Meer, Hans van der
With for example \setupexternalfigures ConTeXt will search figure files in the 
directories specified on this command.
Is there a corresponding \setup-macro for searching files one wants to input?

So that after \setup[direcory={..,..,..}] an "\input xyz" command (or 
anything alike) will find xyz.tex.

Hans van der Meer




___
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] Automatic negative tracking to prevent slight overfull hbox's

2016-01-14 Thread Alexander Dyomin
Dear list,
when I stumble upon a slightly overhanging line (where it's not allowed to 
hyphenate the hanging word and putting it on next line leaves huge 
whitespaces), decreasing letterspacing in that line seems like a good idea, and 
I manually insert \kerncharacters commands to do the trick. Here's a MWE for 
the purpose of demonstration:

% ConTeXt code
\setuppapersize[A5]
\setupbackgrounds[text] [rightframe=on,framecolor=red,rulethickness=0.1pt] 
%right margin line

\setupalign[hz,hanging] % microtypography enabled
\definefontfeature[default][default][protrusion=quality,expansion=quality]

\definetypeface[mainface][rm][specserif][Linux Libertine O] [default]
\setupbodyfont[mainface,14pt]

\mainlanguage[russian]
\setupindenting[yes,medium,first]

\starttext

{\kerncharacters[-0.018] Здесь будет длинный-предлинный текст, \mbox{в~коем}} 
никак нельзя перенести строку. 
Запрещено { \kerncharacters[-0.008] разрывать телефонные номера, например, 
\mbox{(000)1234-5678}}, многозначные числа и дефисные написания.
\stoptext


Is the a way for automating such negative tracking?

--

Best regards,
Alexander Dyomin
___
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] simplefonts question

2016-01-14 Thread massifr
> \definefontfamily [mainface] [rm] [Lucida Bright OT]
> \definefontfamily [mainface] [ss] [Lucida Sans OT]
> \definefontfamily [mainface] [tt] [Lucida Sans Typewriter OT]
> \definefontfamily [mainface] [mm] [Lucida Bright Math OT]
> \definefontfamily [mainface] [hw] [Lucida Handwriting OT]
> \definefontfamily [mainface] [cg] [Lucida Calligraphy OT]

What should I do to use \definefontfamily with GaramondPremierPro?
I have the otf files, but ConTeXt is not configured to use them by default.

This does not work:
\definefontfamily [mainface][rm][tf=file:GaramondPremrPro.otf]

ConTeXt can't find the otf file, even if it's in the same directory.
According to the wiki, it should work.

Best greetings,
Massi
___
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
___