Re: [NTG-context] where to break a long header

2021-06-05 Thread Sandra Snan
Thank you so much! That was awesome!

That was the missing puzzle piece: the book is now perfect!


 writes:

> \startsection[title={A very \\ long title},list={A very long title}]
> 
> Von: ntg-context  im Auftrag von Sandra Snan 
> 
> Gesendet: Samstag, 5. Juni 2021 07:59:33
> An: ntg-context@ntg.nl
> Betreff: [NTG-context] where to break a long header
>
> I had an unsually long header and it didn't look great:
>
> https://ellen.idiomdrottning.org/sateotc1.png
>
> A crlf fixes it:
>
> https://ellen.idiomdrottning.org/sateotc2.png
>
> But then that shows up in the table of contents so that's not a good
> solution. What is the best practice for this situation?
> ___
> 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
> ___
> ___
> 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
> ___
___
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] where to break a long header

2021-06-05 Thread Sandra Snan
I had an unsually long header and it didn't look great:

https://ellen.idiomdrottning.org/sateotc1.png

A crlf fixes it:

https://ellen.idiomdrottning.org/sateotc2.png

But then that shows up in the table of contents so that's not a good
solution. What is the best practice for this situation?
___
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] quotes potruding out in the left margin

2021-06-04 Thread Sandra Snan
Thank you both for your help. Additionally, I needed to make sure that
\setupbodyfont comes after all this. But now I've finally got the
margin-potruding quotations of my dreams.

 writes:

>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Wolfgang
>> Schuster
>> Gesendet: Freitag, 4. Juni 2021 10:08
>> An: mailing list for ConTeXt users 
>> Betreff: Re: [NTG-context] quotes potruding out in the left margin
>> 
>> Sandra Snan schrieb am 04.06.2021 um 09:52:
>> > Oh, the example you just posted doesn't work on live.contextgarden,
>> > let alone on my installation. The quotation marks still don't potrude.
>> 
>> I tested my example on the garden and got the expected output with the
>> quotation marks in the margin (only partially but this is normal with the
>> quality setting).
>> 
>
> I can confirm that this works. As Wolfgang notes protrusion is only partial 
> with the default settings, but you can tweak it with \setupfontprotrusion 
> (see below).
> \setupfontprotrusion [quality] [left=2] is probably what you want since this 
> puts the complete quotation mark into the margin.
>
> I don't know what the numbers mean. Maybe someone can add to this.
>
> Denis
>
> 
> %\setupfontprotrusion [quality] [left=0] % no protrusion on the left margin
> \setupfontprotrusion [quality] [left=1] % default
> %\setupfontprotrusion [quality] [left=1.5] % more protrustion
> %\setupfontprotrusion [quality] [left=2] % even more protrustion
> %\setupfontprotrusion [quality] [left=2.5] % too much protrusion
>
> \definefontfeature
>   [default]
>   [default]
>   [protrusion=quality,
>expansion=quality]
>
> \setupquotation
>   [method=font]
>
> \setupalign
>   [hz,hanging]
>
> \showframe
>   [text]
>   [text]
>
> \starttext
>
> oh hi there
>
> “you are so”
>
> \quotation{you are so}
>
> here here
>
> \stoptext
> 
> ___
> 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
> ___
___
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] quotes potruding out in the left margin

2021-06-04 Thread Sandra Snan
Oh, the example you just posted doesn't work on live.contextgarden, let
alone on my installation. The quotation marks still don't potrude.


Wolfgang Schuster  writes:

> Sandra Snan schrieb am 04.06.2021 um 08:44:
>> Hi♥
>>
>> How do I get the quotes to potrude out in the left margin?
>>
>> For example in the following text, I want the "y" in "you are so" to be
>> aligned with the "oh" in "oh hi there" and the "here" in "here here".
>>
>> \definefontfeature
>>[default]
>>[default]
>>[protrusion=quality,expansion=quality]
>>
>> \setupalign[hz,hanging]
>>
>> \starttext
>> oh hi there
>>
>> "you are so"
>>
>> here here
>> \stoptext
>>
>> Also in the real text I'll also be using
>> \definefontfamily [praise][serif][junicode]
>> but, the above min via behavior I couldn't get to work at live.contextgarden
>
> You need proper quotation mark (as shown in my example below) sand not 
> ". Another option is to use the \quotation command and enable the 
> protrusion option for (see \setupquotation).
>
> When you have a text with a lot of quotation marks but your system has 
> no easy way to input them you can check if your text editor has smart 
> quotes feature which replaces " with the proper quotes.
>
> \definefontfeature
>    [default]
>    [default]
>    [protrusion=quality,expansion=quality]
>
> \setupquotation
>    [method=font]
>
> \setupalign[hz,hanging]
>
> \starttext
>
> oh hi there
>
> “you are so”
>
> \quotation{you are so}
>
> here here
>
> \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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] quotes potruding out in the left margin

2021-06-04 Thread Sandra Snan
Hi♥

How do I get the quotes to potrude out in the left margin?

For example in the following text, I want the "y" in "you are so" to be
aligned with the "oh" in "oh hi there" and the "here" in "here here".

\definefontfeature
  [default]
  [default]
  [protrusion=quality,expansion=quality]

\setupalign[hz,hanging]

\starttext
oh hi there

"you are so"

here here
\stoptext

Also in the real text I'll also be using
\definefontfamily [praise][serif][junicode]
but, the above min via behavior I couldn't get to work at live.contextgarden
___
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] interline space default changed?

2020-01-10 Thread Sandra Snan
Thank you so much for the swift reply, Hans. Much appreciated.

Hans Hagen  writes:

> On 1/9/2020 11:08 AM, Sandra Snan wrote:
>> I was rerunning ConTeXt on some older documents and the interline space
>> isn't the same. Sure, the new default looks great, but what was the old
>> default? I need to match what I've already published. Thank you♥
> The interlinespace is defined in 'ex' units so it depends on that value 
> in the font that you use ... maybe the font changed?

That's certainly possible. I switched computers and distros so all of
those things might've been refreshed or altered upstream. I'm using
Junicode for the main & bold but with Tex Gyre Schola for italic, and
then grabbing miscellaneoussymbols out of a DejaVu Serif fallback and
using DejaVu Sans Mono for mono (althought this particular page doesn't
have any mono). If it isn't that case that those fonts have changed
their metrics, which I wouldn't know, I'm kinda out of the loop
generally (#unplugged), I was thinking that maybe the culprit could be
that it used to work off of the italic's ex height and now works off of
the main's ex height but that's just wild guessing on my part.

I'm working around the problem by setting the interline space to
3.0675ex which makes the recompiled pages match the previously compiled
pages exactly. (I don't know why that number. I found it by trying every
number and seeing what matched.) The previously compiled pages didn't
have an interline space set.

Thanks again.

Sandra

___
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] interline space default changed?

2020-01-09 Thread Sandra Snan
I was rerunning ConTeXt on some older documents and the interline space
isn't the same. Sure, the new default looks great, but what was the old
default? I need to match what I've already published. Thank you♥

Sandra

___
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] LuaTeX finds font, mtxrun --fonts does not list it?

2016-05-30 Thread Sandra Snan
For some reason, it just started working today. After all this time. I
have no idea what was going on.
\definefontfamily[jeans][sans][file:futuralt]
and then referring to to the font family "jeans" later on.
Looks great, too.

Sandra

Sandra Snan <sandra.s...@idiomdrottning.org> writes:

> Wolfgang Schuster <schuster.wolfg...@gmail.com> writes:
>
>>> Am 28.05.2015 um 11:37 schrieb Sandra Snan <sandra.s...@idiomdrottning.org>:
>>>> what happens if you put file: before a name?
>>> \definefontfamily[futura][sans][file:futuralt]
>>
>> Don’t use the “file:” prefix in the third argument.
>
> I don't understand this exchange.
>
>>> \setuppapersize[A4, portrait][A4, portrait]
>>
>> There is no “portrait” keyword for the \setuppapersize and you can also drop 
>> this line because ConTeXt uses A4 as default paper size.
>
> I was working from a template for A7 landscape that's why this was still
> in there.
>
> But a lot of the other stuff is just cargo-culted cruft and voodoo that
> has accumulated over the years of only rarely making new templates.
> Thank you for helping me clear it out.
>
> Here is the file now:
>
> % interface output=luatex
> \setuppagenumbering[location=]
> \setuplanguage[sv][leftquote=›,rightquote=‹,leftquotation=»,rightquotation=«]
> \mainlanguage [sv]
> \definefontfamily[futura][sans][Futura LT]
> \definefontfamily [praise][serif][junicode]
> \setupalign[justified,hanging,hz]
> \setupbodyfont[praise]
> \setuphead[section][style={\switchtotypeface[futura]}]
> \starttext
> $body$
> \stoptext
>
> % Still no luck with the Futura.
___
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] LuaTeX finds font, mtxrun --fonts does not list it?

2015-05-29 Thread Sandra Snan
Wolfgang Schuster schuster.wolfg...@gmail.com writes:

 Am 28.05.2015 um 11:37 schrieb Sandra Snan sandra.s...@idiomdrottning.org:
 what happens if you put file: before a name?
 \definefontfamily[futura][sans][file:futuralt]

 Don’t use the “file:” prefix in the third argument.

I don't understand this exchange.

 \setuppapersize[A4, portrait][A4, portrait]

 There is no “portrait” keyword for the \setuppapersize and you can also drop 
 this line because ConTeXt uses A4 as default paper size.

I was working from a template for A7 landscape that's why this was still
in there.

But a lot of the other stuff is just cargo-culted cruft and voodoo that
has accumulated over the years of only rarely making new templates.
Thank you for helping me clear it out.

Here is the file now:

% interface output=luatex
\setuppagenumbering[location=]
\setuplanguage[sv][leftquote=›,rightquote=‹,leftquotation=»,rightquotation=«]
\mainlanguage [sv]
\definefontfamily[futura][sans][Futura LT]
\definefontfamily [praise][serif][junicode]
\setupalign[justified,hanging,hz]
\setupbodyfont[praise]
\setuphead[section][style={\switchtotypeface[futura]}]
\starttext
$body$
\stoptext

% Still no luck with the Futura.
___
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] LuaTeX finds font, mtxrun --fonts does not list it?

2015-05-28 Thread Sandra Snan
I'm trying to add a ttf font (Futura) so I can use it in ConTeXt.

I've ran
mtxrun --script fonts --list --all |less
looked at a ttf font that was there, copied my Futura ttfs to the same
directory it was in, and ran
mtxrun --script fonts --reload --force

But I still can't find it in
mtxrun --script fonts --list --all |less

nor can I use it in ConTeXt.
(The filenames don't have spaces.)

The curious thing is that the luatex cache has it.
It's listed in
/home/sandra/.texmf-var/luatex-cache/generic/names/luaotfload-names.luc
under various names, all starting with futuralt.


Curiously,
/home/sandra/.texmf-var/luatex-cache/context/[number]/fonts/otf/futuralt-book.tm[ac]
exist.

But the only book- related name in luaotfload-names.luc is
futuraltbook, not futuralt-book. Neither worked in ConTeXt, though.

How do I move forward with this, how do I add ttfs so that ConTeXt
understand them?

Sandra
___
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] LuaTeX finds font, mtxrun --fonts does not list it?

2015-05-28 Thread Sandra Snan
Hans Hagen pra...@wxs.nl writes:
 when resolving fonts context makes safe filenames for fonts so don't 
 worry about the - being gone

 the fact that there is a luc file means that the font has been loaded so 
 the question is: how does your tex code look

 what happens if you put file: before a name?

Here is the full file. $body$ is filled in by pandoc.

Sandra

% interface output=luatex
\usemodule[simplefonts][protrusion=quality,expansion=quality]
\setupsimplefonts[expansion=quality,protrusion=quality]
\setuppagenumbering[location=]
\enableregime   [utf-8]
\setuppapersize[A4, portrait][A4, portrait]
\setuplanguage[sv][leftquote=›,rightquote=‹,leftquotation=»,rightquotation=«]
\mainlanguage [sv]
\setupfontsynonym [Serif] [handling=pure]
\usetypescript[serif][hanging][pure]
\definefontfamily[futura][sans][file:futuralt]
\definefontfamily [praise][serif][junicode]

\setupalign[justified,hanging,hz]
\usetypescript[serif,sans,mono][hz][quality]
\setupbodyfont[praise]
\setuphead[section][style={\switchtotypeface[futura]\tfd}]
\starttext
$body$
\stoptext
___
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] the new simplefonts stuff

2014-09-05 Thread Sandra Snan
On Thu, 4 Sep 2014 12:24:08 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:
 
 Below is a short example which shows the different names in a font, as you can
 see in the output the names in each font are different except from the 
 familyname
 entry which is the same for all.
 

It just turned up as a blank page here. Weird.
So maybe it’s just that one font. Now that you’ve told me that it’s the
family name, specifically, I’ve tested with a lot of other fonts and
they have worked.

Sandra
___
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] the new simplefonts stuff

2014-09-05 Thread Sandra Snan
On Thu, 04 Sep 2014 08:53:02 -0700, Mica Semrick m...@silentumbrella.com 
wrote:
 On Debian, you can try: 
 fc-list : family
 to list the family name. I was playing with this last night on my Debian 
 Jessie system. 
 
 The colon is a wildcard operator that will match all fonts on the system. I 
 usually just grep the results for what I need.

Of all the ways to find out the family name that has been discussed in
this thread, this is one of the quickest ones. Thanks, I'll use it!

Sandra
___
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] the new simplefonts stuff

2014-09-04 Thread Sandra Snan
Thank you so much for your help, guys!

On Thu, 4 Sep 2014 00:21:22 +0200, Wolfgang Schuster 
schuster.wolfg...@gmail.com wrote:
 Am 03.09.2014 um 21:40 schrieb Joshua Krämer joshua.krae...@gmail.com:
[...]
  The only name which works in ConTeXt is the family name (which can be
  seen in FontForge): Swis721 BT, note the single s.  However, this
  name is *not* shown in the mtxrun output.

Something I realized as I was messing around waiting for fontforge to
install is that, at least for fonts that come with *.afm metric files
and *.pfb files,, you can look at them for some info. Looking at
ubkl8a.afm I see:

ellen% grep Name /usr/share/fonts/type1/texlive-fonts-recommended/ubkl8a.afm
FontName URWBookmanL-Ligh
FullName URW Bookman L Light
FamilyName URW Bookman L

The same info is similarly ascii-encoded in the pfb file. But when
fontforge had installed (I needed it to look at the otf and ttf fonts in
my example) I double checked and found the same info.

 
 The family name is shown when you use the info option, e.g.
 
 mtxrun --script font --list --info --all texgyrepagella*

This was one of the first things I tried.

ellen% mtxrun --script fonts  --info --list --all 
--pattern='bookmanlligh$'|grep name
mtx-fonts   | fontname: urwbookmanlligh
mtx-fonts   | fullname: urwbookmanlligh
mtx-fonts   | filename: ubkl8a.afm

Not really any of the same names even though it finds the same file.

I don't have Macintosh but in Inkscape the name shows up as URW Bookman
L and the font works there. I have Debian.

ellen% context --version|grep version
mtx-context | current version: 2014.05.21 22:04

I guess I'm missing something that will in hindsight look obvious...

Sandra

Example follows.

% Uncomment one of the \definefontfamily lines.

%% Just as a test for \definefontfamily, which works, text shows up in
%% DejaVu Serif which is a ttf font.
% \definefontfamily [five] [serif] [DejaVu Serif]

%% This is what fontforge reports as the family name for
%% Baskervaldx-Reg. It works for me, text shows up in Baskervaldx, which
%% is an otf font.
% \definefontfamily [five] [serif] [Baskervaldx]

%% Fontforge called this the ``name for humans'', it didn't fly, text didn't 
show up:
% \definefontfamily [five] [serif] [Baskervaldx Regular]

%% This is straight out of the manual, works, text shows up bookman.
%% Wanted this look, but with \definefontfamily.
% \definetypeface [five] [rm] [serif] [bookman]

%% None of these worked. Text doesn't show up at all.
% \definefontfamily [five] [rm] [URW Bookman L Light]
% \definefontfamily [five] [rm] [urwbookmanlligh]
% \definefontfamily [five] [rm] [URWBookmanL-Ligh]
% \definefontfamily [five] [rm] [URW Bookman L]

\setupbodyfont [five]
\starttext
Hello, snow! Won't you go, and return in december?
\stoptext
___
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] the new simplefonts stuff

2014-09-02 Thread Sandra Snan
This is probably a pretty basic question, but how do I find out the name
of the font that \definefontfamily expects in the third argument?

For example,
\definefontfamily [dejavu] [serif] [DejaVu Serif]
 works fine and sets the text in DejaVu Serif, but that’s not a name I
 can find with mtxrun –scripts font:

ellen% mtxrun --script fonts  --list --all --pattern='*DejaVu*'|wc -l
28
ellen% mtxrun --script fonts  --info --list --all --pattern='*DejaVu*'|grep -i 
DejaVu Serif|wc -l
0



 mtxrun --script fonts --info for Deja Vu doesn't
show that identifier anywhere. I want to find out what, for example,
Bookman is called.

\definetypeface [five] [rm] [serif] [bookman]
works fine and sets the text in some font that sure looks a lot like
Bookman to my eyes, but
\definefontfamily [five] [serif] [bookman]
doesn’t work at all and the text doesn’t show up.

ellen% mtxrun --script fonts  --list --all --pattern='*bookman*'|wc -l
5

I’ve looked all over for this... even tried understanding font-sel.mkvii
(with mediocre success).
Sandra

PS
Extra thanks if there’s a way to get ligatures and protrusion to work for 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
___