[NTG-context] Problem with setup for fonts
Dear all, I’ve been “out of ConTeXt” for a few months. In the meantime some things seem to have changed quite a bit. My present task is to handle the typesetting of the revision, for an external publisher, of my wife’s PhD thesis. I stumbled on a problem with fonts. I can typeset the book in its present version and the revised chapters with mkiv versions till mid 2016. The version I recently installed, on 23-08-2017, does not recognize the setups for the font selection anymore. The MWE below shows the problem. The older mkiv’s give Verdana, the present version some different font, probably the default TeX font. The same happens, m.m., when I replace Verdana with, for example, dejavu. %++MWE+++ \usemodule[simplefonts] \setmainfont[Verdana] \setupbodyfont[10pt] %\setupinterlinespace[line=18pt] \definebodyfontenvironment[10pt][interlinespace=19pt] \definebodyfontenvironment[9pt]%[interlinespace=16pt] \definebodyfontenvironment[8pt] \setupindenting[yes,20pt]%,next] \setuppagenumbering[alternative=doublesided] \starttext \input knuth \stoptext %%+++%% So clearly these commands do not work anymore. I experimented a bit with information on wiki.contextgarden.net but without success. Can someone help me out here? Thanks in advance. Best regards, Robert Blackstone ___ 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] Some questions about my document
Hello, I would like to have this : Chapitre I : Espaces probabilisés I.1 - Expérience aléatoire et univers Définition 1.1 Définition 1.2 Thank you Fabrice % \definestructureconversionset [structure] [numbers, Romannumerals, numbers, numbers, numbers] [numbers] \setupheads [sectionconversionset=structure] \setupenumerations [ before={\blank[big]}, after={\blank[big]}, alternative=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=bold, prefix=chapter, way=bychapter, conversion=numbers] \defineenumeration [definition] [ text=Définition, title=yes, style=italic, list=all, listtext={Définition}] \starttext \startchapter[title=Espaces probabilisés] \startsection[title=Expérience aléatoire et univers] \startdefinition On appelle expérience aléatoire une expérience sur un système dont le résultat n'est pas connu d'avance et peut varier si on répète cette expérience. \stopdefinition \startdefinition On appelle univers l'ensemble des résultats possibles. Il est noté \math{\Omega}. \stopdefinition \stopchapter \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 ___
Re: [NTG-context] Problem with setup for fonts
On 08/24/2017 10:57 AM, Robert Blackstone wrote: > [...] > %++MWE+++ > \usemodule[simplefonts] > \setmainfont[Verdana] > \setupbodyfont[10pt] Robert, those command now read: \definefontfamily[mainface][rm][Verdana] \setupbodyfont[mainface, 10pt] \starttext \input zapf \stoptext I hope 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] show bounding boxes
Hi Herbert, On Wed, 23 Aug 2017 02:18:34 -0600, Herbert Voss wrote: Hello all, is it possible to get additional frames around words and the whole line? \definefontfeature[default][default][boundingbox=frame] \starttext »Tee for Two« shows negative kerning. \input sapolsky \stoptext Curious: What kind of applications are you interested in, particularly for the framing-the-whole-line case? I suspect want you want is doable but will take some start|stopluacode trickery that is far beyond my pay grade. In any case, these might be useful tracing features to add to the bag of tricks, if they are not already there.. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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] show bounding boxes
On 8/23/2017 10:18 AM, Herbert Voss wrote: Hello all, is it possible to get additional frames around words and the whole line? \definefontfeature[default][default][boundingbox=frame] \starttext »Tee for Two« shows negative kerning. \input sapolsky \stoptext you can enable some tracers: \starttext \bgroup \showglyphs \showfontkerns \showmakeup[hbox] »Tee for Two« shows negative kerning. \input sapolsky \par \egroup \stoptext (I will add a \showmakeup[line] that will mark lines.) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Draw a line under the headertext in ConTeXt except some pages
Hi, How to proceed so that the text of the head is not on the page with the table of contents and pages with the title of the chapter ? Thanks Fabrice \setuplayout [ header=\lineheight, headerdistance=\lineheight, ] \setupbackgrounds[header][text][bottomframe=on] \setupheadertexts[{\getmarking[section]}][pagenumber] [{\getmarking[chapter]}][pagenumber] \setuppagenumbering[alternative=,location=] \definestructureconversionset [structure] [numbers, Romannumerals, numbers, numbers, numbers] [numbers] \setupheads [sectionconversionset=structure] \setuplist [chapter] [ style=bold, ] \starttext \placelist[chapter,section][alternative=c] \startchapter[title=Espaces probabilisés] \startsection[title=Expérience aléatoire et univers] \dorecurse{5}{\input knuth} \stopsection \startsection[title=Événements] \dorecurse{5}{\input knuth} \stopsection \stopchapter \startchapter[title=Variables aléatoires : généralités] \startsection[title=Définition] \dorecurse{5}{\input knuth} \stopsection \startsection[title=Loi de probabilité d'une variable aléatoire] \dorecurse{5}{\input knuth} \stopsection \stopchapter \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 ___
Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages
On 08/24/2017 05:10 PM, Fabrice Couvreur wrote: > Hi, > How to proceed so that the text of the head is not on the page with the > table of contents and pages with the title of the chapter ? Hi Fabrice, to the first question: \setuphead [chapter] [header=empty] You might not want the rule in those pages. Play with the options: %~ \setupheader[text][after=\vskip 3pt \hrule] \setupheader[text][after={\blackrule[ width=\textwidth, height=1em]}] It is wiser (not only to solve the problem), that you write a \title before \placelist. I hope 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] show bounding boxes
Am 24.08.2017 um 15:23 schrieb Idris Samawi Hamid ادريس سماوي حامد: \definefontfeature[default][default][boundingbox=frame] \starttext »Tee for Two« shows negative kerning. \input sapolsky \stoptext Curious: What kind of applications are you interested in, particularly for the framing-the-whole-line case? for my students to show how words, lines, paragraphs, and pages are build with boxes. Herbert I suspect want you want is doable but will take some start|stopluacode trickery that is far beyond my pay grade. In any case, these might be useful tracing features to add to the bag of tricks, if they are not already there.. Best wishes Idris ___ 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] show bounding boxes
Am 24.08.2017 um 15:46 schrieb Hans Hagen: you can enable some tracers: \starttext \bgroup \showglyphs \showfontkerns \showmakeup[hbox] »Tee for Two« shows negative kerning. \input sapolsky \par \egroup \stoptext thanks, works fine! Herbert (I will add a \showmakeup[line] that will mark lines.) ___ 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] Problem with setup for fonts
On 24 Aug 2017, at 17:10 , Pablo Rodriguez wrote: > > On 08/24/2017 10:57 AM, Robert Blackstone wrote: >> [...] >> %++MWE+++ >> \usemodule[simplefonts] >> \setmainfont[Verdana] >> \setupbodyfont[10pt] > > Robert, > > those command now read: > >\definefontfamily[mainface][rm][Verdana] >\setupbodyfont[mainface, 10pt] >\starttext >\input zapf >\stoptext > > I hope it helps, > > Pablo Thanks Pablo. It does help. Best regards, Robert ___ 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] Draw a line under the headertext in ConTeXt except some pages
Hi Pablo, Thank you so much ! Fabrice %\setupbackgrounds[header][text][bottomframe=on] \setuphead [chapter] [header=empty] \setupheader[text][after=\vskip 1pt \hrule] \starttext \starttitle[title={\bf My Book}] \stoptitle \placelist[chapter,section][alternative=c] \stoptext 2017-08-24 18:12 GMT+02:00 Pablo Rodriguez : > On 08/24/2017 05:10 PM, Fabrice Couvreur wrote: > > Hi, > > How to proceed so that the text of the head is not on the page with the > > table of contents and pages with the title of the chapter ? > > Hi Fabrice, > > to the first question: > > \setuphead > [chapter] > [header=empty] > > You might not want the rule in those pages. Play with the options: > > %~ \setupheader[text][after=\vskip 3pt \hrule] > \setupheader[text][after={\blackrule[ > width=\textwidth, > height=1em]}] > > It is wiser (not only to solve the problem), that you write a \title > before \placelist. > > I hope 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 > > ___ ___ 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] Strange behavior with the Garamond font
Hello, I reinstalled the fonts in : fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/ total 16 drwxr-xr-x 2 fab fab 4096 août 25 02:14 ebgaramond drwxr-xr-x 5 fab fab 4096 avril 11 2016 fourier-GUT drwxrwxr-x 9 fab fab 4096 avril 4 2011 kpfonts drwxr-xr-x 3 fab fab 4096 août 12 23:50 STIXv2.0.0 fab@debian:~$ I compiled the following file : \loadtypescriptfile[mathdesign] \setupbodyfont[garamond] \starttext \input knuth \stoptext which font it embedded : ab@debian:~$ pdffonts layout22.pdf name type encoding emb sub uni object ID - --- --- --- - AHYUQI+GaramondNo8-Regular CID Type 0C Identity-H yes yes yes 10 0 It still does not work ! Fabrice 2017-08-18 23:41 GMT+02:00 Fabrice Couvreur : > Hi, > @Aditya > > This does not solve my problem > > @Pablo > > fab@debian:~$ pdffonts layout15.pdf > name type encoding > emb sub uni object ID > - > --- --- --- - > AHYUQI+GaramondNo8-Regular CID Type 0C Identity-H > yes yes yes 10 0 > > > 2017-08-18 20:17 GMT+02:00 Aditya Mahajan : > >> On Thu, 17 Aug 2017, Fabrice Couvreur wrote: >> >> When I speak of non-readable, I mean it looks like "hieroglyphics". >>> >> >> Try >> >> mtxrun --script fonts --reload --force >> >> and then compiling again. >> >> 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/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ >> > > layout22.pdf Description: Adobe PDF document ___ 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] Strange behavior with the Garamond font
On Fri, 25 Aug 2017, Fabrice Couvreur wrote: Hello, I reinstalled the fonts in : fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/ total 16 drwxr-xr-x 2 fab fab 4096 août 25 02:14 ebgaramond drwxr-xr-x 5 fab fab 4096 avril 11 2016 fourier-GUT drwxrwxr-x 9 fab fab 4096 avril 4 2011 kpfonts drwxr-xr-x 3 fab fab 4096 août 12 23:50 STIXv2.0.0 fab@debian:~$ I compiled the following file : \loadtypescriptfile[mathdesign] \setupbodyfont[garamond] \starttext \input knuth \stoptext You have EBGaramond font, but you are using mathdesign typescript which is designed for URW Garamond. So you need to either install URW Garamond (in AFM format) or create a typescript for EBGaramond. For reference, this is the relevant part of type-imp-mathdesign.mkiv: % URW Garamond \starttypescript [\s!serif] [garamond] \definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm] \definefontsynonym [Garamond-Italic] [\s!file:ugmri8a.afm] \definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm] \definefontsynonym [Garamond-BoldItalic] [\s!file:ugmmi8a.afm] \stoptypescript \starttypescript [\s!serif] [garamond] [\s!name] \setups[\s!font:\s!fallback:\s!serif] \definefontsynonym [\s!Serif][Garamond-Regular] \definefontsynonym [\s!SerifItalic] [Garamond-Italic] \definefontsynonym [\s!SerifBold][Garamond-Bold] \definefontsynonym [\s!SerifBoldItalic] [Garamond-BoldItalic] \stoptypescript \starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all] \loadfontgoodies[mdugm-math] \definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm] \definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf] \stoptypescript \starttypescript [mathdesigngm,garamond] \definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond] [\s!default] \definetypeface [\typescriptone] [\s!ss] [\s!sans] [modern] [\s!default] \definetypeface [\typescriptone] [\s!tt] [\s!mono] [modern] [\s!default] \definetypeface [\typescriptone] [\s!mm] [\s!math] [garamond] [\s!default] \quittypescriptscanning \stoptypescript 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___