Re: [NTG-context] (again) PDF info fields
On 7/17/2016 9:29 PM, Pablo Rodriguez wrote: Hans, sorry for insisting in this issue. I may be missing consecuences or requirements that make impossible its implementation. I see two inconsistencies in the following output: \def\BookTitle{{\itd A \ConTeXt\ Book}} \def\BookAuthor{{\sc The Author}} \setupinteraction[state=start, title=\BookTitle, author=\BookAuthor] \enabledirectives[references.bookmarks.preroll] \placebookmarks[chapter,section,subsection] \starttext \chapter{\BookTitle} \section{\BookAuthor} \subsection{\ConTeXt\ is \TeX, but not \LaTeX} \stoptext Would it be possible that PDF info fields can have their contents prerolled as it happens with bookmarks? personally i'd never set those fields from macros but directly anyway, I'll add \enabledirectives[interaction.identity.preroll] as yet another example of feature creep In the bookmarks, \ConTeXt\ is rendered as ConTEXT. Since “The TeXbook” only mentions \TeX and no \TEX, would it be possible to preroll \TeX, \ConTeXt and \LaTeX as TeX, ConTeXt and LaTeX? well, it mentions \TeX but that renders as TEX so changing the definitions is a bad idea; and you don't want the \ in your case anyway you can of course do \appendtoks\def\TEX{TeX}\to\everypreroll Hans - 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (again) PDF info fields
On 07/17/2016 09:54 PM, Alan BRASLAU wrote: > Try, > > \setupdocument > [metadata:title={\documentvariable{title}}, >metadata:subtitle={\documentvariable{subtitle}}, >metadata:author={\documentvariable{author}}, >metadata:address={\documentvariable{address}}, >metadata:doi={doi:\documentvariable{doi}}, >metadata:keywords={\documentvariable{keywords}}] > > \startdocument > [title={Your title}, >subtitle={your subtitle}, >author={your name}, >address={your address}, >keywords={your keywords}, >abstract={The abstract goes here.\par > The Abstract and the keywords have to fit in this page.}, > year={2016}, >doi={}] > > ... > > \stopdocument Hi Alan, sorry, but this is only a another way of reaching the same result: \setupinteraction[state=start] \enabledirectives[references.bookmarks.preroll] \placebookmarks[chapter,section,subsection] \setupdocument [metadata:title={\documentvariable{title}}] \startdocument [title={\em Your title}] \documentvariable{title} \section{\documentvariable{title}} \stopdocument I need the expansion (prerolling, or whichever the name is), because the real source is a more complex XML source and I need only the text, no commands. Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (again) PDF info fields
Try, \setupdocument [metadata:title={\documentvariable{title}}, metadata:subtitle={\documentvariable{subtitle}}, metadata:author={\documentvariable{author}}, metadata:address={\documentvariable{address}}, metadata:doi={doi:\documentvariable{doi}}, metadata:keywords={\documentvariable{keywords}}] \startdocument [title={Your title}, subtitle={your subtitle}, author={your name}, address={your address}, keywords={your keywords}, abstract={The abstract goes here.\par The Abstract and the keywords have to fit in this page.}, year={2016}, doi={}] ... \stopdocument On Sun, 17 Jul 2016 21:29:38 +0200 Pablo Rodriguezwrote: > Hans, > > sorry for insisting in this issue. I may be missing consecuences or > requirements that make impossible its implementation. > > I see two inconsistencies in the following output: > > \def\BookTitle{{\itd A \ConTeXt\ Book}} > \def\BookAuthor{{\sc The Author}} > \setupinteraction[state=start, title=\BookTitle, author=\BookAuthor] > \enabledirectives[references.bookmarks.preroll] > \placebookmarks[chapter,section,subsection] > > \starttext > \chapter{\BookTitle} > > \section{\BookAuthor} > > \subsection{\ConTeXt\ is \TeX, but not \LaTeX} > \stoptext > > Would it be possible that PDF info fields can have their contents > prerolled as it happens with bookmarks? > > In the bookmarks, \ConTeXt\ is rendered as ConTEXT. Since “The > TeXbook” only mentions \TeX and no \TEX, would it be possible to > preroll \TeX, \ConTeXt and \LaTeX as TeX, ConTeXt and LaTeX? > > Many thanks for your help, > > Pablo -- Alan Braslau CEA DSM-IRAMIS-SPEC CNRS UMR 3680 Orme des Merisiers 91191 Gif-sur-Yvette cedex FRANCE tel: +33 1 69 08 73 15 fax: +33 1 69 08 87 86 mailto:alan.bras...@cea.fr ___ 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] (again) PDF info fields
Hans, sorry for insisting in this issue. I may be missing consecuences or requirements that make impossible its implementation. I see two inconsistencies in the following output: \def\BookTitle{{\itd A \ConTeXt\ Book}} \def\BookAuthor{{\sc The Author}} \setupinteraction[state=start, title=\BookTitle, author=\BookAuthor] \enabledirectives[references.bookmarks.preroll] \placebookmarks[chapter,section,subsection] \starttext \chapter{\BookTitle} \section{\BookAuthor} \subsection{\ConTeXt\ is \TeX, but not \LaTeX} \stoptext Would it be possible that PDF info fields can have their contents prerolled as it happens with bookmarks? In the bookmarks, \ConTeXt\ is rendered as ConTEXT. Since “The TeXbook” only mentions \TeX and no \TEX, would it be possible to preroll \TeX, \ConTeXt and \LaTeX as TeX, ConTeXt and LaTeX? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] special characters in URLs
On 7/16/2016 4:11 PM, Alan Bowen wrote: I need to establish links to URLs that include the ampersand (&) and number sign (#). e.g., http://www.mhs.ox.ac.uk/collections/imu-search-page/record-details/?TitInventoryNo=40829=field=on=2020 and http://www.davidaking.org/instrument-catalogue-TOC.htm#part6 you can use \letterhash How does one do this? The best I have done thus far is to get broken links that display as they should. i'll add a last minute cleanup for \#, \%, \& and spaces Hans - 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (no subject)
Hi Fabrice, If you want the framed box to be placed on the same baseline as the letter A, in the example, then you have to tell ConTeXt to place a margin material right after A, as in A\\ \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} B \\ C and you can play with setupframed by choosing an option « low » or » high » according to your desire. Best regards: Otared > On 16 Jul 2016, at 23:23, Fabrice Couvreur> wrote: > > Hi Kavian, > Okay, but I do not understand why the top of the framed can not be on the > baseline of the letter A. > Fabrice > > 2016-07-16 11:28 GMT+02:00 Otared Kavian : > Hi Fabrice, > > Indeed you can place your float a little bit higher in th emargin, as in the > example below, by using the keyword « high ». > > Best regrads: Otared K. > % begin fabrice-inmargin.tex > \setuplayout > [width=13cm, >rightmargin=5cm] > > \setupbodyfont[pagella,11pt] > > \definefloat >[recipe] >[figure] > > \setupfloat >[recipe] >[default={rightmargin,none,high}] > > \setupframed > [frame=on, >width=\rightmarginwidth, >align=justify, >offset=2pt, >location=low, >rulethickness=1pt, >framecolor=darkred, >corner=00] > > \showgrid > \showframe > > \starttext > > A\\ B \\ C > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > \input ward.tex > > \setupfloat >[recipe] >[default={rightmargin,none,low}] > > A\\ B \\ C > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > \stoptext > % end fabrice-inmargin.tex > > > On 16 Jul 2016, at 00:44, Fabrice Couvreur > > wrote: > > > > Hi Kavian (your first name ?) > > Thank you for your suggestion but it is still a little problem: why the > > baseline of the framed is the thirdA and not the first ? > > thank you, > > Fabrice > > > > \useMPlibrary [dum] > > > > \setuplayout > > [width=13cm, > >rightmargin=5cm] > > > > > > \setupbodyfont[pagella,11pt] > > > > \definefloat > >[recipe] > >[figure] > > > > \setupfloat > >[recipe] > >[default={rightmargin,none}] > > > > \setupframed > > [frame=on, > >width=\rightmarginwidth, > >align=justify, > >offset=2pt, > >location=low, > >rulethickness=1pt, > >framecolor=darkred, > >corner=00] > > > > \starttext > > > > \showframe > > > > > > A\\A\\A > > \placerecipe{}{\framed{La vie n'est pas un long fleu||ve tranquille !}} > > > > > > > > \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 > ___ > > ___ > 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 ___
Re: [NTG-context] different default size when imposing documents
On 07/13/2016 09:00 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 12. Juli 2016 um 17:18 >> >> Hans, >> >> after enabling image scaling in \insertpages >> (https://mailman.ntg.nl/pipermail/ntg-context/2016/086114.html), I’m >> afraid that the default value and compatibility in imposition is broken. >> [...] >> Would it be possible to restore the width value to its previous default? > > Fixed. Wolfgang, many thanks for your fix. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___