* (again) PDF info fields @ 2016-07-17 19:29 Pablo Rodriguez 2016-07-17 19:54 ` Alan BRASLAU 2016-07-17 21:42 ` Hans Hagen 0 siblings, 2 replies; 5+ messages in thread From: Pablo Rodriguez @ 2016-07-17 19:29 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (again) PDF info fields 2016-07-17 19:29 (again) PDF info fields Pablo Rodriguez @ 2016-07-17 19:54 ` Alan BRASLAU 2016-07-17 21:09 ` Pablo Rodriguez 2016-07-17 21:42 ` Hans Hagen 1 sibling, 1 reply; 5+ messages in thread From: Alan BRASLAU @ 2016-07-17 19:54 UTC (permalink / raw) To: Pablo Rodriguez; +Cc: mailing list for ConTeXt users 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={XXXX}] ... \stopdocument On Sun, 17 Jul 2016 21:29:38 +0200 Pablo Rodriguez <oinos@gmx.es> 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? > > 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.braslau@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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (again) PDF info fields 2016-07-17 19:54 ` Alan BRASLAU @ 2016-07-17 21:09 ` Pablo Rodriguez 0 siblings, 0 replies; 5+ messages in thread From: Pablo Rodriguez @ 2016-07-17 21:09 UTC (permalink / raw) To: mailing list for ConTeXt users 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={XXXX}] > > ... > > \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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (again) PDF info fields 2016-07-17 19:29 (again) PDF info fields Pablo Rodriguez 2016-07-17 19:54 ` Alan BRASLAU @ 2016-07-17 21:42 ` Hans Hagen 2016-07-18 8:26 ` Pablo Rodriguez 1 sibling, 1 reply; 5+ messages in thread From: Hans Hagen @ 2016-07-17 21:42 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (again) PDF info fields 2016-07-17 21:42 ` Hans Hagen @ 2016-07-18 8:26 ` Pablo Rodriguez 0 siblings, 0 replies; 5+ messages in thread From: Pablo Rodriguez @ 2016-07-18 8:26 UTC (permalink / raw) To: mailing list for ConTeXt users On 07/17/2016 11:42 PM, Hans Hagen wrote: > On 7/17/2016 9:29 PM, Pablo Rodriguez wrote: >> [...] >> 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 Many thanks for the implementation, Hans. >> 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 This is exactly what I needed. 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-07-18 8:26 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-07-17 19:29 (again) PDF info fields Pablo Rodriguez 2016-07-17 19:54 ` Alan BRASLAU 2016-07-17 21:09 ` Pablo Rodriguez 2016-07-17 21:42 ` Hans Hagen 2016-07-18 8:26 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).