Re: [NTG-context] MkIV in the wiki?

2013-06-24 Thread Sietse Brouwer
Hi Pablo,

MkIV-compilation is already enabled -- just use

context mode=mkiv source=yes
(showing the source is optional, but usually what you want)
/context

For more info on the `context` tags:
http://wiki.contextgarden.net/Help:Context

Cheers,
Sietse
___
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] Auto selecting optical sizes for a font

2013-06-24 Thread Keith J. Schultz
HI Georg, All,

as such ConTexT should support the use of the size table in its font handling,
but as Hans has mentioned design sizes a very special and few actually know 
what that information means and put it to a useful purpose.

Question would be in far this font feature should be rudimentarily supported.

regards
Keith.

Am 24.06.2013 um 00:28 schrieb Georg Duffner g.duff...@gmail.com:

 Am 22.06.2013 16:57, schrieb Hans Hagen:
 
 We have no feature 'size' (or I must have forgotten about it). As
 there is no consistency in designsizes and there is always some
 esthetic choice involved no automatic mechanism is (and will be)
 build in.
 
 Hi,
 
 There is a 'size' table in opentype fonts which contains informations about 
 the design size, the design range and a style-ID and -name. Fonts that come 
 with different optical sizes do in fact use that table exactly for the 
 purpose desired by Andrés. Latin Modern does so, Adobe fonts do so and EB 
 Garamond happens to use that table too. XeLaTeX and LuaLaTeX interpret it 
 correctly (by means of fontspec, IIRC). So perhaps it’s worth reconsidering 
 this.
 
 Best regards,
 Georg
 ___
 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] wrong interlinespace or wrong font?

2013-06-24 Thread Sietse Brouwer
Hi Pablo,

I think this is a problem with the Unifraktur Maguntia font. I just
downloaded it [1], and measured it using \blackrule -- and the
x-height is indeed ridiculously low.

[1] from here: http://unifraktur.sourceforge.net/maguntia.html

\setupinterlinespace[line=3.2ex]
\usemodule[simplefonts]
\setmainfont[UnifrakturMaguntia]
\starttext

xAAgfas\smash{\blackrule[height=1ex]}\smash{\blackrule[height=2mm]\\
xAAgfas\smash{\blackrule[height=2ex]}\\
xAAgfas\smash{\blackrule[height=3ex, color=red]}\\
xAAgfas\smash{\blackrule[height=3.2ex, color=blue]}\\

\stoptext

Probably best to take this up with the font designer? I have no idea
how a font is supposed to declare its x-height. (I get the impression
that `font-con.lua` queries some parameter called 'xheight' or
'x_height', but you should take these impressions of mine with a grain
of salt.)

Cheers,
Sietse
___
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] Disabling interactive citations

2013-06-24 Thread Sander Maijers

On 16-06-13 20:18, Sander Maijers wrote:

I want to disable the clickable citations (in MkIV) while keeping other
interaction for things like cross-references. So far I unsuccessfully
tried some commands in my environment file like:

\setupcite[interaction=stop,compress=yes]

This is just my guesswork as I haven't found documentation for (setup)cite.

P.S.:
As for my motives, the links:
1. are missing when using the 'authoryear' alternative with APA
bibliography style;
2. link to references.pdf while my project is one document in one
differently named file and references.tex is just one product in it.
___

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
___



I haven't been able to solve this ever since I asked. Can anybody help 
me with this?

___
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 wiki page added

2013-06-24 Thread Sietse Brouwer
 I have added a new simplefonts page for new users. (I hope it isn't full
 of errors ;-).)

It's beautiful. A model of completeness and clarity, and I am
especially delighted that you took the trouble to remove the duplicate
info from [[Fonts in LuaTeX]]. Nice work!

I made two minor changes:
* Article names always start with a capital letter (this makes them
easier to guess), so I moved the page to [[Simplefonts]]
* for links to source files, you can use the `src` template:
`{{src|font-ini.lua}}`.

Neither of these changes diminishes the fact that you wrote an
excellent article.

Thanks, and all the best,
Sietse

On 23 June 2013 20:36, Pablo Rodríguez oi...@web.de wrote:
 Dear list,

 I have added a new simplefonts page for new users. (I hope it isn't full
 of errors ;-).)

 There may be some missing information, because I don't understand how
 the standard font handling in ConTeXt works.

 And I removed duplicated content from the font handling in LuaTeX
 (http://wiki.contextgarden.net/index.php?title=Fonts_in_LuaTeXaction=historysubmitdiff=21929oldid=20049).

 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://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] What is the status of ConTeXt's various test suites?

2013-06-24 Thread Sietse Brouwer
Hi Lukáš,

On 6/10/2013 12:59 PM, Sietse Brouwer wrote:
 There appear to be a number of test suites in existence.
 (1) The suite on pragma-ade.com. I suspect this is the one Hans actually
 uses.
 http://www.pragma-ade.com/download-1.htm (click on cont-tst.7z)

 QUESTION: when one downloads and unzips this file in a directory, how
 does one run it?

On 10 June 2013 13:11, Hans Hagen pra...@wxs.nl wrote:
 Lukáš has his own scripts.

 Here I can run this:

 mtxrun --script testsuite --compare --oldname=cld-compare-old 
 --newname=cld-compare-new   --pattern=**/*.cld
 mtxrun --script testsuite --compare --oldname=mkiv-compare-old 
 --newname=mkiv-compare-mkiv --pattern=**/*.mkiv
 mtxrun --script testsuite --compare --oldname=mkvi-compare-old 
 --newname=mkvi-compare-mkiv --pattern=**/*.mkvi
 mtxrun --script testsuite --compare --oldname=tex-compare-old 
 --newname=tex-compare-new   --pattern=**/*.tex

I tried running this, but mtxrun complains that the script `testsuite`
doesn't exist.
Lukáš, what script do you use to run the test suite?

Cheers,
Sietse
___
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] Auto selecting optical sizes for a font

2013-06-24 Thread Georg Duffner

Am 2013-06-24 10:27, schrieb Keith J. Schultz:


as such ConTexT should support the use of the size table in its font handling,
but as Hans has mentioned design sizes a very special and few actually know
what that information means and put it to a useful purpose.

Question would be in far this font feature should be rudimentarily supported.


IMO, they should be fully supported. There are not so many fonts with 
that property and even less in the free software world, so one can 
assume that somebody possessing such font knows what that means and 
probably expects its support.


I think, context should by default use the appropriate font for each 
font-size corresponding to the design range defined in the font’s table, 
while providing an interface to override that automatism.


Best regards,
Georg
___
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] Cloze Text (text with gaps)

2013-06-24 Thread Christian Prim
Hi list

I wonder if I can typeset a cloze text using context. The gaps (__)
must have a given length (say in cm or the length of a given word, given
sentence) and must break at the end of a line.

\hl[4] is nice but won't do the trick since it won't break. \fillinline and
others fill the hole line, but I only want to fill a given size.

Are there some ideas how to deal with it?

Example:

The name of the _ is _
. And now it's time to go to bed.
Some more text.

Hope you get the point.

Thanks in advance
Christian

PS.: For Latex there is a package:
http://tex.stackexchange.com/questions/79689/control-ulines-for-cloze-text
___
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] MkIV in the wiki?

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 09:52, Sietse Brouwer wrote:
 Hi Pablo,
 
 MkIV-compilation is already enabled -- just use
 
 context mode=mkiv source=yes
 (showing the source is optional, but usually what you want)
 /context
 
 For more info on the `context` tags:
 http://wiki.contextgarden.net/Help:Context

Hi Sietse,

many thanks for your tip and sorry for the noise.

Cheers,


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


Re: [NTG-context] wrong interlinespace or wrong font?

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 10:26, Sietse Brouwer wrote:
 Hi Pablo,
 
 I think this is a problem with the Unifraktur Maguntia font. I just
 downloaded it [1], and measured it using \blackrule -- and the
 x-height is indeed ridiculously low.
 
 [1] from here: http://unifraktur.sourceforge.net/maguntia.html
 
 \setupinterlinespace[line=3.2ex]
 \usemodule[simplefonts]
 \setmainfont[UnifrakturMaguntia]
 \starttext
 
 xAAgfas\smash{\blackrule[height=1ex]}\smash{\blackrule[height=2mm]\\
 xAAgfas\smash{\blackrule[height=2ex]}\\
 xAAgfas\smash{\blackrule[height=3ex, color=red]}\\
 xAAgfas\smash{\blackrule[height=3.2ex, color=blue]}\\
 
 \stoptext
 
 Probably best to take this up with the font designer?

Many thanks for your reply, Sietse.

I'll report the proper bug to the font designer.

I cannot compile your code either on my system or on
http://live.contextgarden.net/. I don't know what the error might be,
but I'm not able to compile it.

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


Re: [NTG-context] Disabling interactive citations

2013-06-24 Thread Wolfgang Schuster

Am 24.06.2013 um 10:55 schrieb Sander Maijers s.n.maij...@student.ru.nl:

 On 16-06-13 20:18, Sander Maijers wrote:
 I want to disable the clickable citations (in MkIV) while keeping other
 interaction for things like cross-references. So far I unsuccessfully
 tried some commands in my environment file like:
 
 \setupcite[interaction=stop,compress=yes]
 
 This is just my guesswork as I haven't found documentation for (setup)cite.
 
 P.S.:
 As for my motives, the links:
 1. are missing when using the 'authoryear' alternative with APA
 bibliography style;
 2. link to references.pdf while my project is one document in one
 differently named file and references.tex is just one product in it.
 ___
 
 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
 ___
 
 
 I haven't been able to solve this ever since I asked. Can anybody help me 
 with this?

Can you provide a working minimal example?

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] Disabling interactive citations

2013-06-24 Thread Sander Maijers

On 24-06-13 17:44, Wolfgang Schuster wrote:


Am 24.06.2013 um 10:55 schrieb Sander Maijers s.n.maij...@student.ru.nl:


On 16-06-13 20:18, Sander Maijers wrote:

I want to disable the clickable citations (in MkIV) while keeping other
interaction for things like cross-references. So far I unsuccessfully
tried some commands in my environment file like:

\setupcite[interaction=stop,compress=yes]

This is just my guesswork as I haven't found documentation for (setup)cite.

P.S.:
As for my motives, the links:
1. are missing when using the 'authoryear' alternative with APA
bibliography style;
2. link to references.pdf while my project is one document in one
differently named file and references.tex is just one product in it.
___

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
___



I haven't been able to solve this ever since I asked. Can anybody help me with 
this?


Can you provide a working minimal example?


Can you tell me what the working example should do or show? I have big 
thesis document with which I have this issue, which is not really 
publishable yet. As far as I know the clickable references are there as 
a result of \setupinteraction? I can give you this code if that is of help:


\setupinteraction
[author=\Author,
title=\TitleB,
subtitle=\Subject,
keyword=\Keywords,
date=\Date,
state=start,
menu=on,
page=yes,
click=yes,
display=new,
style=cap,
color=darkblue]



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
___



___
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] Auto selecting optical sizes for a font

2013-06-24 Thread Hans Hagen

On 6/24/2013 12:28 AM, Georg Duffner wrote:

Am 22.06.2013 16:57, schrieb Hans Hagen:


We have no feature 'size' (or I must have forgotten about it). As
there is no consistency in designsizes and there is always some
esthetic choice involved no automatic mechanism is (and will be)
build in.


Hi,

There is a 'size' table in opentype fonts which contains informations
about the design size, the design range and a style-ID and -name. Fonts
that come with different optical sizes do in fact use that table exactly
for the purpose desired by Andrés. Latin Modern does so, Adobe fonts do
so and EB Garamond happens to use that table too. XeLaTeX and LuaLaTeX
interpret it correctly (by means of fontspec, IIRC). So perhaps it’s
worth reconsidering this.


It's too much trouble for the few fonts that come in design sizes. As 
typescripts need to be defined adding the bit of extra info is no 
problem. I had a look at the relevant info and in order to make it work 
with the context font loader (the name driven one, as for files it is 
irrelevant anyway) quite some fuzzy logic has to be applied: we need a 
proper way (at least in context) to identify regular, italic, bold 
italic etc combined with the font name and the fact that names (as well 
as modifiers) are poluted makes that for lm a different logic has to be 
applied than for eb and if I don't do some filtering we get an 
inconsistent lot of of antykwas being seen as a design size collection 
as well.  I just tried to make a an auto-internal-goodie generator and 
some tracing showed me that if we can get 50% done right, we need to 
work around the other 50%. (I have lots of fonts on my system).


So for the moment I'll stick to providing goodies files. After all, 
users load a relevant typescript anyway so much gets hidden. If we get 
dozens of design sized files I'll look into it again.


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] Auto selecting optical sizes for a font

2013-06-24 Thread Hans Hagen

On 6/24/2013 10:02 AM, Keith J. Schultz wrote:

HI Georg, All,

as such ConTexT should support the use of the size table in its font handling,
but as Hans has mentioned design sizes a very special and few actually know
what that information means and put it to a useful purpose.

Question would be in far this font feature should be rudimentarily supported.


it is (and has always been) supported, given that one loads the goodie 
file and sets the option, and it's not even that rudimentary (and as you 
say, design sizes are dangerous when misused)


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] simplefonts wiki page added

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 11:01, Sietse Brouwer wrote:
 I have added a new simplefonts page for new users. (I hope it isn't full
 of errors ;-).)
 
 It's beautiful. A model of completeness and clarity, and I am
 especially delighted that you took the trouble to remove the duplicate
 info from [[Fonts in LuaTeX]]. Nice work!

Many thanks for your kind words, Sietse.

 I made two minor changes:

I made another change: I added the compiled documents.

Is there any way to know which fonts are installed with ConTeXt
Standalone (which, I assume, is the distribution the wiki runs)?

Does any font include ancient Greek or Russian (to show the font
fallback mechanism)? Other scripts are fine, but then I'd need help for
that.

 * Article names always start with a capital letter (this makes them
 easier to guess), so I moved the page to [[Simplefonts]]

I avoided that since it was a module name. But you are the expert here.

 * for links to source files, you can use the `src` template:
 `{{src|font-ini.lua}}`.

Thanks, I didn’t know that.

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

Re: [NTG-context] Auto selecting optical sizes for a font

2013-06-24 Thread Hans Hagen

On 6/24/2013 11:49 AM, Georg Duffner wrote:

Am 2013-06-24 10:27, schrieb Keith J. Schultz:


as such ConTexT should support the use of the size table in its font
handling,
but as Hans has mentioned design sizes a very special and few actually
know
what that information means and put it to a useful purpose.

Question would be in far this font feature should be rudimentarily
supported.


IMO, they should be fully supported. There are not so many fonts with
that property and even less in the free software world, so one can
assume that somebody possessing such font knows what that means and
probably expects its support.


It doesn't change the fact that predictable font names (including 
weight, width, variant and modifier) are (and will remain) a mess so 
users need to know precisely what they ask for, even automatisms kick 
in. Ok, most users won't notice as dont definition files take care of 
loading, but in that case taking care of the designsizes can be hidden 
as well (which it is).



I think, context should by default use the appropriate font for each
font-size corresponding to the design range defined in the font’s table,
while providing an interface to override that automatism.


Well, in that case we should also obey min/max specs that say that fonts 
cannot be used below or above certain sizes (and I found quite some that 
has such narrow ranges).


In the case of eb ... it's just a few entries in a goodie file, so that 
does the job. In pratice, finding a properly matched and sized monospace 
and math takes more time -)


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] simplefonts wiki page added

2013-06-24 Thread Hans Hagen

On 6/24/2013 7:46 PM, Pablo Rodríguez wrote:

On 24/06/13 11:01, Sietse Brouwer wrote:

I have added a new simplefonts page for new users. (I hope it isn't full
of errors ;-).)


It's beautiful. A model of completeness and clarity, and I am
especially delighted that you took the trouble to remove the duplicate
info from [[Fonts in LuaTeX]]. Nice work!


Many thanks for your kind words, Sietse.


I made two minor changes:


I made another change: I added the compiled documents.

Is there any way to know which fonts are installed with ConTeXt
Standalone (which, I assume, is the distribution the wiki runs)?


mtxrun --script font --list --all --info

etc


Does any font include ancient Greek or Russian (to show the font
fallback mechanism)? Other scripts are fine, but then I'd need help for
that.


* Article names always start with a capital letter (this makes them
easier to guess), so I moved the page to [[Simplefonts]]


I avoided that since it was a module name. But you are the expert here.


* for links to source files, you can use the `src` template:
`{{src|font-ini.lua}}`.


Thanks, I didn’t know that.

Many thanks for your encouragement and your help,


Pablo




--

-
  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] faked fonts not working

2013-06-24 Thread Pablo Rodríguez
On 22/06/13 16:03, Pablo Rodríguez wrote:
 Dear list,
 
 as far as I can remember, this used to work in the past:
 
 \setupbodyfontenvironment[default][em=italic]
 \usemodule[simplefonts]
 
 \definefontfeature[fakeitalic][default][slant=.25]
 \definefontfeature[fakebold][default][extend=2]
 \definefontfeature[fakebolditalic][default][slant=.25, extend=2]
 \setmainfont[Larabiefont][italicfont={* Regular}, boldfont={*
 Regular}, bolditalicfont={* Regular}, italicfeatures=fakeitalic,
 boldfeatures=fakebold, bolditalicfeatures=fakebolditalic]

I have experienced that one fonts work with this and others don’t.

Is there no way to force these features on all fonts?

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


Re: [NTG-context] (mathematics) Stretching Unicode big operator

2013-06-24 Thread Hans Hagen

On 6/22/2013 10:45 PM, Sander Maijers wrote:

If I decide to use, for instance, Σ instead of \sum, this operator
is no longer stretched/scaling regardless of the sub/superscripts
specified tot it. Is it possible to keep stretching/scaling while using
Inicode characters for such operators?


This is because it's a greek sigma and I'm pretty sure that e.g. Thomas 
would be surprised to see a math symbol showing up in his greek.


You need to use another one:

$$\sum\frac{1}{\frac{1}{\frac{1}{\frac{1}{2$$

$$∑\frac{1}{\frac{1}{\frac{1}{\frac{1}{2$$

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] faked fonts not working

2013-06-24 Thread Hans Hagen

On 6/24/2013 7:58 PM, Pablo Rodríguez wrote:

On 22/06/13 16:03, Pablo Rodríguez wrote:

Dear list,

as far as I can remember, this used to work in the past:

\setupbodyfontenvironment[default][em=italic]
\usemodule[simplefonts]

\definefontfeature[fakeitalic][default][slant=.25]
\definefontfeature[fakebold][default][extend=2]
\definefontfeature[fakebolditalic][default][slant=.25, extend=2]
\setmainfont[Larabiefont][italicfont={* Regular}, boldfont={*
Regular}, bolditalicfont={* Regular}, italicfeatures=fakeitalic,
boldfeatures=fakebold, bolditalicfeatures=fakebolditalic]


I have experienced that one fonts work with this and others don’t.

Is there no way to force these features on all fonts?


\starttext

\definefontfeature[fakeitalic][default][slant=.25]
\definefontfeature[fakebold][default][extend=1.2]
\definefontfeature[fakebolditalic][default][slant=.25, extend=1.2]

\definedfont[Serif*fakeitalic]\input tufte
\definedfont[Serif*fakebold]\input tufte
\definedfont[Serif*fakebolditalic]\input tufte

\stoptext

you'll notice that there is a (known) bug in luatex (the backend): 
depending on the order of definitions such a fake can get lost in the 
middle of a line when first applied


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] simplefonts wiki page added

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 19:51, Hans Hagen wrote:
 On 6/24/2013 7:46 PM, Pablo Rodríguez wrote:
 [...]
 Is there any way to know which fonts are installed with ConTeXt
 Standalone (which, I assume, is the distribution the wiki runs)?
 
 mtxrun --script font --list --all --info

Many thanks for your help, Hans.


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

Re: [NTG-context] Disabling interactive citations

2013-06-24 Thread Aditya Mahajan

On Mon, 24 Jun 2013, Sander Maijers wrote:


On 24-06-13 17:44, Wolfgang Schuster wrote:


Am 24.06.2013 um 10:55 schrieb Sander Maijers s.n.maij...@student.ru.nl:


On 16-06-13 20:18, Sander Maijers wrote:

I want to disable the clickable citations (in MkIV) while keeping other
interaction for things like cross-references. So far I unsuccessfully
tried some commands in my environment file like:


Can you provide a working minimal example?


Can you tell me what the working example should do or show?


See:

http://meta.tex.stackexchange.com/questions/228
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl

Although these links talk about LaTeX, the idea is same in ConTeXt.

In your particular case, create a sample file with interaction and 
references that shows what you get vs what you want to achieve. The main 
advantage of such an example is that it makes it easier for others to 
answer your question (copy-paste your code and modify it rather than 
create an example from scratch).


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

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


Re: [NTG-context] Working with layers ... with example

2013-06-24 Thread Wolfgang Schuster

Am 25.06.2013 um 01:23 schrieb Sander Maijers s.n.maij...@student.ru.nl:

 At http://ideone.com/D6Mmj3 there is the title page for my document. I want 
 to place the table in the middle of the A4 page (horizontally and vertically) 
 and the logo beneath it, preferably at the bottom of the page.
 
 When I failed to get the table placed where I want it, at some point, I tried 
 to use a layer. In the end the table was placed okay, but in a messy way I 
 suppose.
 
 Now I have tried to add another layer but the logo appears to the right of 
 the table or not at all. As far as I understand there can only be one 
 background layer, so that trick with the table will not work again for the 
 logo I guess.
 
 Can someone please help me to use multiple layers that I can exactly position?

1. When you have multiple layers you have to to list them all in the 
\setupbackgrounds commands.

   \setupbackgrounds[page][background={document_logo,document_data}]

2. You can insert a certain numbers of empty lines in your document with 
\blank[n*line].

3. \startalignment makes no sense in a layer.

4. You can align single lines of text with \leftaligned, \midaligned or 
\rightaligned.


\startcomponent title_page

\product bachelors_thesis_text
\project bachelors_thesis
 
\definelayer
  [document_data]
  [x=0mm, y=0mm, width=20cm, height=30cm]

\definelayer
  [document_logo]
  [x=0mm, y=0mm, width=20cm, height=30cm]
 
\setupbackgrounds[page][background={document_logo,document_data}]
 
\setlayer
  [document_data]
  [hoffset=4cm, voffset=15cm]
  {\bTABLE[align=middle]
 \bTR 
   \bTD institution \eTD 
   \bTD[align=middle] \eTD 
 \eTR
 \bTR 
   \bTD in fulfillment of \eTD 
   \bTD[align=middle] \eTD
 \eTR
 \bTR 
   \bTD supervisors \eTD 
   \bTD[align=middle] \eTD 
 \eTR
 \bTR 
   \bTD revision date \eTD 
   \bTD[align=middle] \currentdate[weekday,month,day,{, },year] \eTD 
 \eTR
 \bTR 
   \bTD author e-mail \eTD 
   \bTD[align=middle]  \eTD 
 \eTR
 \bTR 
   \bTD further info \eTD 
   \bTD[align=middle]  \eTD
 \eTR
   \eTABLE}
 
\setlayer
  [document_logo]
  [hoffset=4cm, voffset=10cm]
  {\externalfigure[alogo.eps][factor=fit]}
 
\setupinteraction[state=start] 

\starttext

{\tfd Title}

\blank[3*line]

\rightaligned{\tfa\it Sander Maijers}   

\stoptext

\stopcomponent


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] Auto selecting optical sizes for a font

2013-06-24 Thread Andres Conrado Montoya
Thank you so much, Hans. :) It works great!.

I must agree, however, with Georg's considerations. I am very grateful
for the current solution, but an automatic selection of optical sizes
could be insanely good, from a book designer point of view (I'm a book
designer). Just for the curious, these are some links that go deeper
in the theme of Optical Sizes for Typography:

1. http://www.adobe.com/type/topics/opticalsize.html
2. 
http://graphicdesign.stackexchange.com/questions/8552/should-i-be-concerned-about-optimal-font-size-for-a-particular-font
3. http://ilovetypography.com/2012/04/11/designing-type-systems/
4. Book: Typography Monographs Vol. 2 - Size-specific Adjustments to
Type Designs: An Investigation of the Principles Guiding the Design of
Optical Sizes by Tim Ahrens, MA.
http://markbattypublisher.com/books/typography-monographs-volume-2-size-specific-adjustments-to-type-designs-an-investigation-of-the-principles-guiding-the-design-of-optical-sizes/

Thank you all. :)

Andrés Conrado Montoya
El Andi
andresconr...@gmail.com
http://chiquitico.org
http://twitter.com/conradolandia

Los fines no justifican los medios, porque la medida verdadera de
nuestro carácter está dada por los medios que estamos dispuestos a
utilizar, no por los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion
to do something about it. From out there on the moon, international
politics look so petty. You want to grab a politician by the scruff of
the neck and drag him a quarter of a million miles out and say, ‘Look
at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] [***SPAM***] Headers on Empty Page at End of Chapter

2013-06-24 Thread Malte Stien
Hello,

When you setup your chapters such that a chapter always starts on a right page, 
you naturally get the occasional empty left page just before that. I have my 
headers setup like this

  \setupheadertexts[chapter][section]

I get the chapter and section name of the previous section printed in the 
header of that empty page, but I want that page just empty. Is there a way?

Regards,
Malte.

--
“The Electric Monk was a labour-saving device, like a dishwasher or a video 
recorder... Electric Monks believed things for you, thus saving you what was 
becoming an increasingly onerous task, that of believing all the things the 
world expected you to believe.”

― Douglas Adams, Dirk Gently's Holistic Detective Agency

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