Re: [NTG-context] PDF page numbers
Taco Hoekwater wrote: Mohamed Bana wrote: Derek CORDEIRO wrote: In latex + book/memoir + hyperref, if \frontmatter \mainmatter are used, the pdf files generated use the roman numbers in the pdf itself. It appears as ii (2 of 500) in the pdfviewer. Is it possible to do the same with ConTeXt? It would be great if ConTeXt could. sure, since it's just a page resource; i think i even played with it and dropped it when i got funny printing side effects (when selecting pages) in older versions of teh viewer Doesn't sound like rocket science. Perhaps someone could dig up the latex code that does this ? something for the mkiv backend Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
On Tue, Dec 16, 2008 at 2:40 PM, Zhichu Chen wrote: > Best Regards > Chen > > > Zhi-chu Chen | Shanghai Synchrotron Radiation Facility > No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China > tel: 086 21 5955 3405 | zhichu.chen.googlepages.com > | www.sinap.ac.cn > > > > > On Tue, Dec 16, 2008 at 4:33 PM, Taco Hoekwater > wrote: > > > > > > Mohamed Bana wrote: > >> Derek CORDEIRO wrote: > >>> In latex + book/memoir + hyperref, if \frontmatter \mainmatter are > >>> used, the pdf files generated use the roman numbers in the pdf itself. > >>> It appears as ii (2 of 500) in the pdfviewer. Is it possible to do the > >>> same with ConTeXt? > >> > >> It would be great if ConTeXt could. > > > > Doesn't sound like rocket science. Perhaps someone could dig up the > > latex code that does this ? > > Does the following code work for you? > == > \pdfcompresslevel 0 > > \setupinteraction > [state=start, > focus=width, > page=yes, > openaction=firstpage, > click=no, > title=TEST, > author=Neals, > subtitle=Test, > keyword={test}] > > \setupcolors > [state=start] > > \newcount\FrontPageNumbers > > \setupsubpagenumber[way=bytext,state=start] > \setuppagenumbering[location=] > > \startsectionblockenvironment[frontpart] > \setupfootertexts[pagenumber] > \setuppagenumbering[conversion=romannumerals] > \stopsectionblockenvironment > > \startsectionblockenvironment[bodypart] > \global\FrontPageNumbers=\pagenumber > \global\advance\FrontPageNumbers\minusone > \setuppagenumber[number=1] > \resetsubpagenumber > % \setupfootertexts[\the\FrontPageNumbers] > \setupfootertexts[pagenumber] > \stopsectionblockenvironment > > \startsectionblockenvironment[backpart] > \resetsubpagenumber > \stopsectionblockenvironment > > \def\PageLabels{\pdfcatalog{/PageLabels << /Nums [ 0 << /S /r >> > \the\FrontPageNumbers << /S /D >> ] >> >>}} > > > \prependtoks > \PageLabels > \to \everystoptext > > \starttext > > > > \startfrontmatter > % \chapter{Table of Contents} > \completecontent[interaction=all] > \chapter{Preface} > \dorecurse{10}{\input zapf\par} > % \chapter{Preface} > % \dorecurse{10}{\input zapf\par} > % \chapter{Preface} > % \dorecurse{10}{\input zapf\par} > \stopfrontmatter > > \startbodymatter > \chapter{Test} > \dorecurse{15}{\input tufte\par} > \chapter{TestAgain} > \dorecurse{15}{\input ward\par} > \stopbodymatter > > \startbackmatter > Index maybe. > \stopbackmatter > > > \stoptext > == > Works Perfectly! Regards, Derek -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Blog: http://www.derekcordeiro.com Follow Me: http://twitter.com/derekcordeiro ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn On Tue, Dec 16, 2008 at 4:33 PM, Taco Hoekwater wrote: > > > Mohamed Bana wrote: >> Derek CORDEIRO wrote: >>> In latex + book/memoir + hyperref, if \frontmatter \mainmatter are >>> used, the pdf files generated use the roman numbers in the pdf itself. >>> It appears as ii (2 of 500) in the pdfviewer. Is it possible to do the >>> same with ConTeXt? >> >> It would be great if ConTeXt could. > > Doesn't sound like rocket science. Perhaps someone could dig up the > latex code that does this ? Does the following code work for you? == \pdfcompresslevel 0 \setupinteraction [state=start, focus=width, page=yes, openaction=firstpage, click=no, title=TEST, author=Neals, subtitle=Test, keyword={test}] \setupcolors [state=start] \newcount\FrontPageNumbers \setupsubpagenumber[way=bytext,state=start] \setuppagenumbering[location=] \startsectionblockenvironment[frontpart] \setupfootertexts[pagenumber] \setuppagenumbering[conversion=romannumerals] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \global\FrontPageNumbers=\pagenumber \global\advance\FrontPageNumbers\minusone \setuppagenumber[number=1] \resetsubpagenumber % \setupfootertexts[\the\FrontPageNumbers] \setupfootertexts[pagenumber] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \resetsubpagenumber \stopsectionblockenvironment \def\PageLabels{\pdfcatalog{/PageLabels << /Nums [ 0 << /S /r >> \the\FrontPageNumbers << /S /D >> ] >> >>}} \prependtoks \PageLabels \to \everystoptext \starttext \startfrontmatter % \chapter{Table of Contents} \completecontent[interaction=all] \chapter{Preface} \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} % \chapter{Preface} % \dorecurse{10}{\input zapf\par} \stopfrontmatter \startbodymatter \chapter{Test} \dorecurse{15}{\input tufte\par} \chapter{TestAgain} \dorecurse{15}{\input ward\par} \stopbodymatter \startbackmatter Index maybe. \stopbackmatter \stoptext == > > Taco > ___ > 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
Mohamed Bana wrote: > Derek CORDEIRO wrote: >> In latex + book/memoir + hyperref, if \frontmatter \mainmatter are >> used, the pdf files generated use the roman numbers in the pdf itself. >> It appears as ii (2 of 500) in the pdfviewer. Is it possible to do the >> same with ConTeXt? > > It would be great if ConTeXt could. Doesn't sound like rocket science. Perhaps someone could dig up the latex code that does this ? Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
Derek CORDEIRO wrote: In latex + book/memoir + hyperref, if \frontmatter \mainmatter are used, the pdf files generated use the roman numbers in the pdf itself. It appears as ii (2 of 500) in the pdfviewer. Is it possible to do the same with ConTeXt? It would be great if ConTeXt could. Is there any introduction to using fonts(typefaces) in ConTeXt? I find myself stumbling on simple things(I'm a beginner). For example, the following works fine. \usetypescriptfile[type-gyr] \usetypescript[palatino] \setupbodyfont[palatino,11pt] but the following does not work. \usetypescriptfile[type-gyr] \usetypescript[schoolbook][ec] \setupbodyfont[schoolbook,11pt] I have tried with and older distribution of ConTeXt which comes along with Fedora 10 as well as with ConTeXt minimals. Incidentally if I use \definetypeface[schola][rm][serif][schola][default][encoding=t5] it works fine. What am I doing wrong? Regards, Derek ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
Derek CORDEIRO wrote: BTW, Is there anyway to report errors in the user manual(cont-eni.pdf, not the beginners manual, I found the wiki page for that)? Here on the mailing list is not the worst place, or a new page on the wiki, but best is at the tracker for the new reference manual (w.i.p.): http://foundry.supelec.fr/projects/contextman Best wishes, Taco ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
2008/12/10 Marcin Borkowski <[EMAIL PROTECTED]> > Dnia Tue, Dec 09, 2008 at 01:27:01PM +0100, Mojca Miklavec napisał(a): > > Hello Derek, > > > > On Tue, Dec 9, 2008 at 11:53 AM, Derek CORDEIRO wrote: > > > I find > > > myself stumbling on simple things(I'm a beginner). For example, the > > > following works fine. > > > > > > \usetypescriptfile[type-gyr] > > > \usetypescript[palatino] > > > \setupbodyfont[palatino,11pt] > > > > > > but the following does not work. > > > > > > \usetypescriptfile[type-gyr] > > > \usetypescript[schoolbook][ec] > > > \setupbodyfont[schoolbook,11pt] > > > > Some definitions/mappings are missing in the core. > > This should work in next version of ConTeXt and you will not need > > \usetypescriptfile[type-gyr] any more. > > Just out of curiosity: what do you mean by "next version"? Next beta or > MkV;)? > > I was tempted to ask the same question :) BTW, Is there anyway to report errors in the user manual(cont-eni.pdf, not the beginners manual, I found the wiki page for that)? -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Blog: http://www.derekcordeiro.com Follow Me: http://twitter.com/derekcordeiro ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
Dnia Tue, Dec 09, 2008 at 01:27:01PM +0100, Mojca Miklavec napisał(a): > Hello Derek, > > On Tue, Dec 9, 2008 at 11:53 AM, Derek CORDEIRO wrote: > > I find > > myself stumbling on simple things(I'm a beginner). For example, the > > following works fine. > > > > \usetypescriptfile[type-gyr] > > \usetypescript[palatino] > > \setupbodyfont[palatino,11pt] > > > > but the following does not work. > > > > \usetypescriptfile[type-gyr] > > \usetypescript[schoolbook][ec] > > \setupbodyfont[schoolbook,11pt] > > Some definitions/mappings are missing in the core. > This should work in next version of ConTeXt and you will not need > \usetypescriptfile[type-gyr] any more. Just out of curiosity: what do you mean by "next version"? Next beta or MkV;)? Greets -- Marcin Borkowski (http://mbork.pl) 888 * Nie lękaj się * Ja zawsze będę z Tobą! ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
On Tue, 9 Dec 2008, Derek CORDEIRO wrote: In latex + book/memoir + hyperref, if \frontmatter \mainmatter are used, the pdf files generated use the roman numbers in the pdf itself. It appears as ii (2 of 500) in the pdfviewer. Is it possible to do the same with ConTeXt? AFAIK, ConTeXt cannot do this out of the box right now. It would be nice feature to have. Is there any introduction to using fonts(typefaces) in ConTeXt? Have a look at the new manual, which explains how to use fonts in detail. http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf I find myself stumbling on simple things(I'm a beginner). Also have a look at http://www.pragma-ade.com/general/manuals/showfont.pdf which is old, but gives an overview of many fonts. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
Hello Derek, On Tue, Dec 9, 2008 at 11:53 AM, Derek CORDEIRO wrote: > I find > myself stumbling on simple things(I'm a beginner). For example, the > following works fine. > > \usetypescriptfile[type-gyr] > \usetypescript[palatino] > \setupbodyfont[palatino,11pt] > > but the following does not work. > > \usetypescriptfile[type-gyr] > \usetypescript[schoolbook][ec] > \setupbodyfont[schoolbook,11pt] Some definitions/mappings are missing in the core. This should work in next version of ConTeXt and you will not need \usetypescriptfile[type-gyr] any more. > I have tried with and older distribution of ConTeXt which comes along with > Fedora 10 as well as with ConTeXt minimals. Incidentally if I use > \definetypeface[schola][rm][serif][schola][default][encoding=t5] it works > fine. What am I doing wrong? Nothing. You are just using an "ancient" version of ConTeXt ... and you should not take my comment too seriously :) :) :) Mojca ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] PDF page numbers
Hi Dereck On Tue, Dec 9, 2008 at 6:53 PM, Derek CORDEIRO <[EMAIL PROTECTED]> wrote: > In latex + book/memoir + hyperref, if \frontmatter \mainmatter are used, the > pdf files generated use the roman numbers in the pdf itself. It appears as > ii (2 of 500) in the pdfviewer. Is it possible to do the same with ConTeXt? Some dirty staffs I've done here: http://www.ntg.nl/pipermail/ntg-context/2008/035378.html Mind take a look? > > Is there any introduction to using fonts(typefaces) in ConTeXt? I find > myself stumbling on simple things(I'm a beginner). For example, the > following works fine. > > \usetypescriptfile[type-gyr] > \usetypescript[palatino] > \setupbodyfont[palatino,11pt] > > but the following does not work. > > \usetypescriptfile[type-gyr] > \usetypescript[schoolbook][ec] > \setupbodyfont[schoolbook,11pt] > > I have tried with and older distribution of ConTeXt which comes along with > Fedora 10 as well as with ConTeXt minimals. Incidentally if I use > \definetypeface[schola][rm][serif][schola][default][encoding=t5] it works > fine. What am I doing wrong? > > Regards, > Derek > > ___ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > > -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] PDF page numbers
In latex + book/memoir + hyperref, if \frontmatter \mainmatter are used, the pdf files generated use the roman numbers in the pdf itself. It appears as ii (2 of 500) in the pdfviewer. Is it possible to do the same with ConTeXt? Is there any introduction to using fonts(typefaces) in ConTeXt? I find myself stumbling on simple things(I'm a beginner). For example, the following works fine. \usetypescriptfile[type-gyr] \usetypescript[palatino] \setupbodyfont[palatino,11pt] but the following does not work. \usetypescriptfile[type-gyr] \usetypescript[schoolbook][ec] \setupbodyfont[schoolbook,11pt] I have tried with and older distribution of ConTeXt which comes along with Fedora 10 as well as with ConTeXt minimals. Incidentally if I use \definetypeface[schola][rm][serif][schola][default][encoding=t5] it works fine. What am I doing wrong? Regards, Derek ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___