For a compiled PDF, see
https://drive.google.com/open?id=0Bwo7pPA5_WkDdlNLbHdkMjg2dkU

Thanks in advance for the help :-)

On 4 May 2016 at 10:31, Antoine Cailliau <antoinecaill...@gmail.com> wrote:

> Thank you very much for the example. I got it working for the "regular"
> style-alternative.
>
> I don't know why, but the italic style-alternative do not work. In the
> log, the font is not even loaded... Do you have an idea of what I'm doing
> wrong?
>
> \definefontalternative[me]
> \definefontalternative[meit]
> \definefontalternative[se]
> \definefontalternative[seit]
>
> \starttypescript [serif] [minionpro]
>   \definebodyfont [default] [rm]
>     [tf=Serif                 sa 1,
>      it=SerifItalic           sa 1,
>      me=SerifMedium           sa 1,
>      meit=SerifMediumItalic   sa 1,
>      se=SerifSemiBold         sa 1,
>      seit=SerifSemiBoldItalic sa 1,
>      bf=SerifBold             sa 1,
>      bi=SerifBoldItalic       sa 1]
> \stoptypescript
>
> \starttypescript [serif] [minionpro]
>     \definefontsynonym [Serif]                [file:MinionPro-Regular.otf]
>     \definefontsynonym [SerifItalic]          [file:MinionPro-It.otf]
>     \definefontsynonym [SerifMedium]          [file:MinionPro-Medium.otf]
>     \definefontsynonym [SerifMediumItalic]    [file:MinionPro-MediumIt.otf]
>     \definefontsynonym [SerifSemiBold]        [file:MinionPro-Semibold.otf]
>     \definefontsynonym [SerifSemiBoldItalic]
>  [file:MinionPro-SemiboldIt.otf]
>     \definefontsynonym [SerifBold]            [file:MinionPro-Bold.otf]
>     \definefontsynonym [SerifBoldItalic]      [file:MinionPro-BoldIt.otf]
> \stoptypescript
>
> \definetypeface [source] [rm] [serif] [minionpro] [default]
> [features=default]
> \definetypeface [source] [mm] [math]  [xits]      [default]
>
> ----
>
> mtx-context     | warning: synctex is enabled
> mtx-context     | run 1: luatex
> --fmt="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en"
> --jobname="font2"
> --lua="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui"
> --no-parse-first-line --synctex=1 --c:autogenerate --c:currentrun=1
> --c:directives="system.synctex=1" --c:fulljobname="./font2.tex"
> --c:input="./font2.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="1"
> "cont-yes.mkiv"
> This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)
>  \write18 enabled.
>
> system          > synctex functionality is enabled (1)!
> open source     > 1 > 1 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv
>
> ConTeXt  ver: 2015.05.18 12:26 MKIV current  fmt: 2016.4.25  int:
> english/english
>
> system          > 'cont-new.mkiv' loaded
> open source     > 2 > 2 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
> close source    > 2 > 2 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkiv
> system          > files > jobname 'font2', input './font2', result 'font2'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > 2 > 3 > /Users/acailliau/Google
> Drive/PhD/Dissertation/test-context/font2.tex
> open source     > 3 > 4 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkiv
> open source     > 4 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkiv
> close source    > 4 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkiv
> close source    > 3 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkiv
> fonts           > preloading modern-designsize (mono)
> *fonts           > typescripts > unknown library 'modern-designsize'*
> *fonts           > 'fallback modern-designsize tt 12pt' is loaded*
> backend         > xmp > using file
> '/usr/local/texlive/2015/texmf-dist/tex/context/base/lpdf-pdx.xml'
> pages           > flushing realpage 1, userpage 1
> close source    > 2 > 5 > /Users/acailliau/Google
> Drive/PhD/Dissertation/test-context/font2.tex
> close source    > 1 > 5 >
> /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkiv
>
> mkiv lua stats  > used config file:
> selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path:
> /usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9
> mkiv lua stats  > synctex tracing: synctex has been enabled (extra log
> file generated)
> mkiv lua stats  > resource resolver: loadtime 0.105 seconds, 0 scans with
> scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths:
> <none>
> mkiv lua stats  > stored bytecode data: 371 modules (0.300 sec), 78 tables
> (0.009 sec), 449 chunks (0.309 sec)
> mkiv lua stats  > traced context: maxstack: 1132, freed: 0, unreachable:
> 1132
> mkiv lua stats  > running in nuts mode: yes
> mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 439 lists of 438
> mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 9 attribute, 35
> glue_spec, 3 attribute_list, 2 temp
> mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
> instances (re)created, 202 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf
> output)
> mkiv lua stats  > loaded patterns: en::2, load time: 0.000
> mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
> mkiv lua stats  > callbacks: 577 direct, 762 indirect, 1339 total
> mkiv lua stats  > randomizer: resumed with value 0.5377294446983
> mkiv lua stats  > result saved in file: font2.pdf, compresslevel 3,
> objectcompresslevel 3
> *mkiv lua stats  > loaded fonts: 8 files: minionpro-bold.otf,
> minionpro-boldit.otf, minionpro-it.otf, minionpro-medium.otf,
> minionpro-regular.otf, minionpro-semibold.otf, xits-math.otf,
> xits-mathbold.otf*
> mkiv lua stats  > fonts load time: 0.275 seconds
> mkiv lua stats  > used platform: osx-ppc, type: unix, binary subtree: bin
> mkiv lua stats  > luatex banner: this is luatex, version beta-0.80.0 (tex
> live 2015) (rev 5238)
> mkiv lua stats  > control sequences: 42831 of 65536 + 100000
> mkiv lua stats  > lua properties: engine: lua, used memory: 113 MB (ctx:
> 113 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
> mkiv lua stats  > runtime: 0.790 seconds, 1 processed pages, 1 shipped
> pages, 1.266 pages/second
>
> SyncTeX written on font2.synctex.gz.
> system          | total runtime: 0.999 seconds
>
>
> On 3 May 2016 at 22:13, Wolfgang Schuster <schuster.wolfg...@gmail.com>
> wrote:
>
>> Antoine Cailliau <antoinecaill...@gmail.com>
>> 3. Mai 2016 um 08:58
>>
>>> The \definefontfamily command is limited to the default alternatives
>>> (tf, bf, it, sl, bi, bs ans sc).
>>>
>>
>> Thanks for your answer, what shall I use to define non-default
>> alternatives?
>>
>> At the moment your only option is to write your own typescript for the
>> fonts.
>>
>> \definefontalternative[sb]
>> \definefontalternative[si]
>>
>> \starttypescript [sans] [source-sans]
>>   \definebodyfont [default] [ss]
>>     [tf=Sans             sa 1,
>>      it=SansItalic       sa 1,
>>      sb=SansMedium       sa 1,
>>      si=SansMediumItalic sa 1,
>>      bf=SansBold         sa 1,
>>      bi=SansBoldItalic   sa 1]
>> \stoptypescript
>>
>> \starttypescript [sans] [source-sans]
>>     \definefontsynonym [Sans]             [file:SourceSansPro-Regular.otf
>> ]
>>     \definefontsynonym [SansItalic]       [file:SourceSansPro-It.otf]
>>     \definefontsynonym [SansMedium]       [
>> file:SourceSansPro-Semibold.otf]
>>     \definefontsynonym [SansMediumItalic] [
>> file:SourceSansPro-SemiboldIt.otf]
>>     \definefontsynonym [SansBold]         [file:SourceSansPro-Bold.otf]
>>     \definefontsynonym [SansBoldItalic]   [file:SourceSansPro-BoldIt.otf]
>> \stoptypescript
>>
>> \definetypeface [source] [ss] [sans] [source-sans] [default]
>> [features=default]
>> \definetypeface [source] [mm] [math] [xits]        [default]
>>
>> \setupbodyfont[source]
>>
>> \starttext
>>
>> Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi
>> BoldItalic}
>>
>> \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
>>
>> ___________________________________________________________________________________
>
>
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to