Re: [NTG-context] Problem using the new buildin simplefont \definefontfamily with OTF fonts
Thanks much. 南京大学 现代工程与应用科学学院 2013级 罗晨星 Luo Chenxing — chenxing@gmail.com 2014-03-10 13:02 GMT+08:00 罗晨星 : > Well with > \definefontfamily[mainface][serif][Minion Pro][opticalsize=yes] > It does work. But I just wonder why some people could omit this option? Is > there a bug? > > Will this be omitted in later distributions? > > Results has been attached, 4 complete build result for you to analyze. > > 南京大学 现代工程与应用科学学院 2013级 > 罗晨星 > Luo Chenxing > — > chenxing@gmail.com > > > 2014-03-10 10:23 GMT+08:00 Wolfgang Schuster > : > > >> Am 10.03.2014 um 02:05 schrieb Wolfgang Schuster < >> schuster.wolfg...@gmail.com>: >> >> > Hi, >> > >> > can you run the attached file and show me the resulting pdf file? >> >> Can you also try what happens when you enable optical sizes! >> >> \definefontfamily[mainface][serif][Minion Pro][opticalsize=yes] >> >> \setupbodyfont[mainface] >> >> \starttext >> Hello World! >> \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] Problem using the new buildin simplefont \definefontfamily with OTF fonts
Well with \definefontfamily[mainface][serif][Minion Pro][opticalsize=yes] It does work. But I just wonder why some people could omit this option? Is there a bug? Will this be omitted in later distributions? Results has been attached, 4 complete build result for you to analyze. 南京大学 现代工程与应用科学学院 2013级 罗晨星 Luo Chenxing — chenxing@gmail.com 2014-03-10 10:23 GMT+08:00 Wolfgang Schuster : > > Am 10.03.2014 um 02:05 schrieb Wolfgang Schuster < > schuster.wolfg...@gmail.com>: > > > Hi, > > > > can you run the attached file and show me the resulting pdf file? > > Can you also try what happens when you enable optical sizes! > > \definefontfamily[mainface][serif][Minion Pro][opticalsize=yes] > > \setupbodyfont[mainface] > > \starttext > Hello World! > \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] Problem using the new buildin simplefont \definefontfamily with OTF fonts
1. All the OTF fonts have been loaded correctly, they showed both in the console and in the database file, but none of them worked correctly for the \definefontfamily control sequence. minionpro minionprobold /home/alan/.fonts/MinionPro-Bold.otf minionprobold minionprobold /home/alan/.fonts/MinionPro-Bold.otf minionproboldcapt minionproboldcapt /home/alan/.fonts/MinionPro-BoldCapt.otf minionproboldcn minionproboldcn /home/alan/.fonts/MinionPro-BoldCn.otf minionproboldcncapt minionproboldcncapt /home/alan/.fonts/MinionPro-BoldCnCapt.otf minionproboldcndisp minionproboldcndisp /home/alan/.fonts/MinionPro-BoldCnDisp.otf minionproboldcnit minionproboldcnit /home/alan/.fonts/MinionPro-BoldCnIt.otf minionproboldcnitcapt minionproboldcnitcapt /home/alan/.fonts/MinionPro-BoldCnItCapt.otf minionproboldcnitdisp minionproboldcnitdisp /home/alan/.fonts/MinionPro-BoldCnItDisp.otf minionproboldcnitsubh minionproboldcnitsubh /home/alan/.fonts/MinionPro-BoldCnItSubh.otf minionproboldcnsubh minionproboldcnsubh /home/alan/.fonts/MinionPro-BoldCnSubh.otf minionprobolddisp minionprobolddisp /home/alan/.fonts/MinionPro-BoldDisp.otf minionproboldit minionproboldit /home/alan/.fonts/MinionPro-BoldIt.otf minionprobolditalic minionproboldcnit /home/alan/.fonts/MinionPro-BoldCnIt.otf minionprobolditcapt minionprobolditcapt /home/alan/.fonts/MinionPro-BoldItCapt.otf minionprobolditdisp minionprobolditdisp /home/alan/.fonts/MinionPro-BoldItDisp.otf minionprobolditsubh minionprobolditsubh /home/alan/.fonts/MinionPro-BoldItSubh.otf minionproboldsubh minionproboldsubh /home/alan/.fonts/MinionPro-BoldSubh.otf minionprocapt minionprocapt /home/alan/.fonts/MinionPro-Capt.otf minionprocn minionprocn /home/alan/.fonts/MinionPro-Cn.otf minionprocncapt minionprocncapt /home/alan/.fonts/MinionPro-CnCapt.otf minionprocndisp minionprocndisp /home/alan/.fonts/MinionPro-CnDisp.otf minionprocnit minionprocnit /home/alan/.fonts/MinionPro-CnIt.otf minionprocnitcapt minionprocnitcapt /home/alan/.fonts/MinionPro-CnItCapt.otf minionprocnitdisp minionprocnitdisp /home/alan/.fonts/MinionPro-CnItDisp.otf minionprocnitsubh minionprocnitsubh /home/alan/.fonts/MinionPro-CnItSubh.otf minionprocnsubh minionprocnsubh /home/alan/.fonts/MinionPro-CnSubh.otf minionprodisp minionprodisp /home/alan/.fonts/MinionPro-Disp.otf minionproit minionproit /home/alan/.fonts/MinionPro-It.otf minionproitalic minionprocnit /home/alan/.fonts/MinionPro-CnIt.otf minionproitcapt minionproitcapt /home/alan/.fonts/MinionPro-ItCapt.otf minionproitdisp minionproitdisp /home/alan/.fonts/MinionPro-ItDisp.otf minionproitsubh minionproitsubh /home/alan/.fonts/MinionPro-ItSubh.otf minionpromedium minionpromedium /home/alan/.fonts/MinionPro-Medium.otf minionpromediumcapt minionpromediumcapt /home/alan/.fonts/MinionPro-MediumCapt.otf minionpromediumcn minionpromediumcn /home/alan/.fonts/MinionPro-MediumCn.otf minionpromediumcncapt minionpromediumcncapt /home/alan/.fonts/MinionPro-MediumCnCapt.otf minionpromediumcndisp minionpromediumcndisp /home/alan/.fonts/MinionPro-MediumCnDisp.otf minionpromediumcnit minionpromediumcnit /home/alan/.fonts/MinionPro-MediumCnIt.otf minionpromediumcnitcapt minionpromediumcnitcapt /home/alan/.fonts/MinionPro-MediumCnItCapt.otf minionpromediumcnitdisp minionpromediumcnitdisp /home/alan/.fonts/MinionPro-MediumCnItDisp.otf minionpromediumcnitsubh minionpromediumcnitsubh /home/alan/.fonts/MinionPro-MediumCnItSubh.otf minionpromediumcnsubh minionpromediumcnsubh /home/alan/.fonts/MinionPro-MediumCnSubh.otf minionpromediumdisp minionpromediumdisp /home/alan/.fonts/MinionPro-MediumDisp.otf minionpromediumit minionpromediumit /home/alan/.fonts/MinionPro-MediumIt.otf minionpromediumitcapt minionpromediumitcapt /home/alan/.fonts/MinionPro-MediumItCapt.otf minionpromediumitdisp minionpromediumitdisp /home/alan/.fonts/MinionPro-MediumItDisp.otf minionpromediumitsubh minionpromediumitsubh /home/alan/.fonts/MinionPro-MediumItSubh.otf minionpromediumsubh minionpromediumsubh /home/alan/.fonts/MinionPro-MediumSubh.otf minionpronormal minionprocapt /home/alan/.fonts/MinionPro-Capt.otf minionproregularminionproregular /home/alan/.fonts/MinionPro-Regular.otf minionprosemibold minionprosemibold /home/alan/.fonts/MinionPro-Semibold.otf minionprosemiboldcapt minionprosemiboldcapt /home/alan/.fonts/MinionPro-SemiboldCapt.otf minionprosemiboldcn minionprosemiboldcn /home/alan/.fonts/MinionPro-SemiboldCn.otf minionprosemiboldcncapt minionprosemiboldcncapt /home/alan/.fonts/Min
[NTG-context] Customize register format
Hi, I am trying to reproduce the following register layout: http://i.imgur.com/qXSK2VM.png Entries include a section name, page number, author, and author URL; the entries are formatted fairly differently from a standard index. So far I have: \setupinteraction[state=start,] \define\Punctuate{\color[black]{\normal.}} \define[2]\href{\begingroup\goto{\color[blue]{#1}}[url(#2)]\endgroup} \define[1]\TextCommand{\item\currentregisterpageuserdata{title}, } \define[1]\PageCommand{#1\Punctuate{} {\href{\currentregisterpageuserdata{author}}{\currentregisterpageuserdata{authorurl}}}\Punctuate\stopitemize} % #1 - Author; #2 - Author URL; #3 - Section title \define[3]\PhotographerIndexEntry{% \setregisterentry[PhotographerIndex][entries={#1}][ title={#3}, author={#1}, authorurl={#2}, ]{} } \defineregister[PhotographerIndex][ n=1, indicator=no, textcommand=\TextCommand, pagecommand=\PageCommand, distance=\zeropoint, before={\startitemize[packed,nowhite]}, ] \setuphead[section][aftersection=\page,] \starttext \startsection[title={Maguro}] Text \PhotographerIndexEntry{Kenji Fujimoto}{http://bit.ly/1fNWF0Y}{Maguro} \stopsection \startsection[title={Unagi}] Text \PhotographerIndexEntry{Kenji Fujimoto}{http://bit.ly/1fNWF0Y}{Unagi} \stopsection \placePhotographerIndex \stoptext This fails because values for "entries={#1}" must be unique. How can I customize the registers to resemble the given layout? (Aside, the section title is repeated twice -- is there a way to remove the duplication? I tried \namedstructurevariable, but couldn't figure out how to get the expanded value.) Thank you. ___ 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***] ConTeXt Daily Build
Where are there instructions for using the daily build, newest Context code? [ Is this the same as the standalone version that I've heard of? ] Thanks ___ 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] Problem using the new buildin simplefont \definefontfamily with OTF fonts
Am 07.03.2014 um 14:35 schrieb 罗晨星 : > I am using Ubuntu 13.10 with ConTeXt daily build and LuaTeX daily build. My > ConTeXt version is 2014.02.14 17:07, LuaTeX version beta-0.78.3 (TeX Live > 2014/dev/Debian) (rev 4850) . > > While there are some problems with using the newly added feature of build-in > support of simplefonts. > > I was using something like > > \definefontfamily[mainface][serif][Kepler] > \setupbodyfont[mainface] > \starttext > Hello World! > \stoptext > > It would end up with using Latin Modern font. > > The log is like this: > > system > 'cont-new.mkiv' loaded > (/usr/share/texmf/tex/context/base/cont-new.mkiv) > system > files > jobname '003', input './003', result '003' > fonts > latin modern fonts are not preloaded > languages > language 'en' is active > (/home/alan/tex/test/003.tex > fonts > preloading latin modern fonts (math) > {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} > fonts > 'fallback modern mm 12pt' is loaded > fonts > preloading latin modern fonts (mono) > fonts > 'fallback modern tt 12pt' is loaded > 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 'mainface-12pt-rm-tf-0--0' > backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' > > However, when I use something like Times New Roman (TTF), Utopia (TTF), > Georgia(TTF), FZShuSong-Z01 (TTF Chinese font) it would be working all right, > fonts applied, no error reported. > > But like in the example, Kepler (OTF), Minion Pro (OTF), Utopia Std (OTF) > would failed to be applied. It is as if it would fail every OTF font. > > When I am using some font in the legacy simplefonts module mode, something > like: > > \usemodule[simplefonts] > \setmainfont[Kepler] > \starttext > Hello World! > \stoptext > > Would be working alright. Logged as below: > > fonts > latin modern fonts are not preloaded > languages > language 'en' is active > (/home/alan/tex/test/003.tex > resolvers > modules > 'simplefonts' is loaded > (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.mkiv > loading > ConTeXt User Module / Simplefonts > <+ > /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} > backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' > pages > flushing realpage 1, userpage 1 > ) ) > > So what's the problem? Is there anything I should look into? > > If it is a problem with TeXLive how can I use the ConTeXt Standalone without > conflict with the previous installed TeXLive (Since I am also using LaTeX) ? 1. Make sure context has added the fonts to its database, you can check this for the minion pro fonts with the following command: mtxrun --script fonts --list --all minionpro* When you don’t see a list with the file for the minion pro font you can try to update the database with mtxrun --script fonts --refresh 2. Use the correct name in the third argument of \definefontfamily, e.g. “Kepler” has to be replaced with “Kepler Std”. 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 ___
[NTG-context] Broken bibliographies in 2014-03-07 beta
Bibliographies are no longer generated. MWE is the example code at http://wiki.contextgarden.net/Bibliography_mkiv, which no longer generates an output file and shows the following in the blg file: I found no \citation commands---while reading file cite.aux I found no \bibdata command---while reading file cite.aux I found no \bibstyle command---while reading file cite.aux You've used 0 entries,... With the stable version, the same section reads: Database file #1: sample.bib You've used 4 entries, -- Rik ___ 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 ___