Re: [NTG-context] Removing the quotes from the results of the reference links
On 29-3-2012 17:24, luigi scarso wrote: On Thu, Mar 29, 2012 at 5:18 PM, Alan BRASLAU wrote: On Thu, 29 Mar 2012 16:03:11 +0200 Hans Hagen wrote: author={\getvariable{Book}{author}}, the expansion introduces the , just to play it safe, putting {} around all \getvariable{}{} as in author={\getvariable{Book}{author}}, does not change anything. Acroread still displays quotes around the authors. Curiously, they do not appear under okular, so this is probably an Acroread quirk. Alan probably yes \nopdfcompression \setvariables [Book] [ title={My title}, subtitle={My subtitle}, author={First Author, Second Author and Third Author}, ] \setupinteraction [ title=\getvariable{Book}{title}, subtitle=\getvariable{Book}{subtitle}, author=\getvariable{Book}{author}, keyword={keyword1, keyword2, keyword3}, ] \starttext \input tufte \stoptext then open the pdf and you will see x:xmpmeta xmlns:x="adobe:ns:meta/"> http://www.w3.org/1999/02/22-rdf-syntax-ns#";> http://purl.org/dc/elements/1.1/";> application/pdf First Author, Second Author and Third Author (if you want to be sure, you can modify First Author, Second Author and Third Author in Zirst Author, Second Author and Third Author ) You can also try pdfinfo: Title: My title Subject:My subtitle Keywords: keyword1 keyword2 keyword3 Author: First Author, Second Author and Third Author Creator:ConTeXt - 2012.03.29 19:19 Producer: LuaTeX-0.71.0 CreationDate: 03/29/12 19:44:57 ModDate:03/29/12 19:44:57 Tagged: no Pages: 1 Encrypted: no Page size: 595.276 x 841.89 pts (A4) File size: 14908 bytes Optimized: no PDF version:1.6 and /Creator definitely starts with an F Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Removing the quotes from the results of the reference links
On Thu, Mar 29, 2012 at 5:18 PM, Alan BRASLAU wrote: > On Thu, 29 Mar 2012 16:03:11 +0200 > Hans Hagen wrote: > >> author={\getvariable{Book}{author}}, >> >> the expansion introduces the , >> > > just to play it safe, putting {} around all \getvariable{}{} as in > author={\getvariable{Book}{author}}, > does not change anything. > > Acroread still displays quotes around the authors. > Curiously, they do not appear under okular, so this is probably an > Acroread quirk. > > Alan probably yes \nopdfcompression \setvariables [Book] [ title={My title}, subtitle={My subtitle}, author={First Author, Second Author and Third Author}, ] \setupinteraction [ title=\getvariable{Book}{title}, subtitle=\getvariable{Book}{subtitle}, author=\getvariable{Book}{author}, keyword={keyword1, keyword2, keyword3}, ] \starttext \input tufte \stoptext then open the pdf and you will see x:xmpmeta xmlns:x="adobe:ns:meta/"> http://www.w3.org/1999/02/22-rdf-syntax-ns#";> http://purl.org/dc/elements/1.1/";> application/pdf First Author, Second Author and Third Author (if you want to be sure, you can modify First Author, Second Author and Third Author in Zirst Author, Second Author and Third Author ) -- luigi ___ 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] Removing the quotes from the results of the reference links
On Thu, 29 Mar 2012 16:03:11 +0200 Hans Hagen wrote: > author={\getvariable{Book}{author}}, > > the expansion introduces the , > just to play it safe, putting {} around all \getvariable{}{} as in author={\getvariable{Book}{author}}, does not change anything. Acroread still displays quotes around the authors. Curiously, they do not appear under okular, so this is probably an Acroread quirk. Alan ___ 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] Removing the quotes from the results of the reference links
On 29-3-2012 14:24, Alan BRASLAU wrote: I have: \setvariables [Book] [ title={My title}, subtitle={My subtitle}, author={First Author, Second Author and Third Author}, ] \setupinteraction [ title=\getvariable{Book}{title}, subtitle=\getvariable{Book}{subtitle}, author=\getvariable{Book}{author}, author={\getvariable{Book}{author}}, the expansion introduces the , keyword={keyword1, keyword2, keyword3}, ] and this yields (in acroread 9): Title: My title Author: "First Author, Second Author and Third Author" Subject: My subtitle Keywords: keyword1 keyword2 keyword3 So, quotation marks (" ") get put around the author; The subtitle becomes the subject; and adding the trailing comma after keyword={}, indeed removes the {} but also removes the explicit commas. Alan -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Removing the quotes from the results of the reference links
I have: \setvariables [Book] [ title={My title}, subtitle={My subtitle}, author={First Author, Second Author and Third Author}, ] \setupinteraction [ title=\getvariable{Book}{title}, subtitle=\getvariable{Book}{subtitle}, author=\getvariable{Book}{author}, keyword={keyword1, keyword2, keyword3}, ] and this yields (in acroread 9): Title: My title Author: "First Author, Second Author and Third Author" Subject: My subtitle Keywords: keyword1 keyword2 keyword3 So, quotation marks (" ") get put around the author; The subtitle becomes the subject; and adding the trailing comma after keyword={}, indeed removes the {} but also removes the explicit commas. Alan ___ 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] Removing the quotes from the results of the reference links
On 29-3-2012 11:48, Mojca Miklavec wrote: On Thu, Mar 29, 2012 at 10:51, Hans Hagen wrote: On 29-3-2012 10:41, Mojca Miklavec wrote: I get the braces when there is a space after braces, for example \setupinteraction [author=me, title={long title} ] I solved the problem by adding a comma right after the last brace, but I would also call that "a hint of a tiny buglet somewhere" ;) hm, but such a space before is always valid in key/value assignment or ] so there is no difference between title={long title} ] title={long title} , That has always been the case (ignoring leading an dtrailing spaces of a key would demand parsing token by token and that's not going to happen as it would slow down context a lot (so many parsing all over the place) It seems that it is not the case here. But are you able to reproduce the behaviour? I get pdfinfo filename.pdf Title: {long title} Author: me Sure, as this gets split: "{a,b,c}" And this is seen as a whole: "{a,b,c} " and is not split Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Removing the quotes from the results of the reference links
Hello all, Thanks for all the advice. Just allow me a little note: Due compatibility I compile my documents by ConTeXt MKIV, which is part of TeXLive the 2011. Command \getreference [title][ref], who described Wolfgang, here does not work!!! But this command is functional in the MKIV minimals standalone version. So I took the advice Steffen Wolfrum now, who works in both versions. Given that otherwise often work in minimals standalone version of ConTeXt, so I made a comment about Wolfgang advice - thanx. Thanx again. Jaroslav Hajtmar Dne 29.3.2012 10:51, Hans Hagen napsal(a): On 29-3-2012 10:41, Mojca Miklavec wrote: On Thu, Mar 29, 2012 at 10:32, Hans Hagen wrote: On 29-3-2012 09:11, Alan BRASLAU wrote: On a similar line, concerning syntax (but not references), the braces grouping keywords get passed on to the pdf properties: \setupinteraction [keyword={syntax, braces, commas}] Is this a bug or else the incorrect use of braces? That's weird, as here I get no { } in the properties shown by acrobat and the xml blob in the pdf has syntax braces commas I get the braces when there is a space after braces, for example \setupinteraction [author=me, title={long title} ] I solved the problem by adding a comma right after the last brace, but I would also call that "a hint of a tiny buglet somewhere" ;) hm, but such a space before is always valid in key/value assignment or ] so there is no difference between title={long title} ] title={long title} , That has always been the case (ignoring leading an dtrailing spaces of a key would demand parsing token by token and that's not going to happen as it would slow down context a lot (so many parsing all over the place) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : 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] Removing the quotes from the results of the reference links
On Thu, Mar 29, 2012 at 10:51, Hans Hagen wrote: > On 29-3-2012 10:41, Mojca Miklavec wrote: >> >> I get the braces when there is a space after braces, for example >> >> \setupinteraction >> [author=me, >> title={long title} >> ] >> >> I solved the problem by adding a comma right after the last brace, but >> I would also call that "a hint of a tiny buglet somewhere" ;) > > > hm, but such a space before is always valid in key/value assignment or ] so > there is no difference between > > title={long title} > ] > > title={long title} > , > > That has always been the case (ignoring leading an dtrailing spaces of a key > would demand parsing token by token and that's not going to happen as it > would slow down context a lot (so many parsing all over the place) It seems that it is not the case here. But are you able to reproduce the behaviour? I get > pdfinfo filename.pdf Title: {long title} Author: me 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Removing the quotes from the results of the reference links
On 29-3-2012 10:41, Mojca Miklavec wrote: On Thu, Mar 29, 2012 at 10:32, Hans Hagen wrote: On 29-3-2012 09:11, Alan BRASLAU wrote: On a similar line, concerning syntax (but not references), the braces grouping keywords get passed on to the pdf properties: \setupinteraction [keyword={syntax, braces, commas}] Is this a bug or else the incorrect use of braces? That's weird, as here I get no { } in the properties shown by acrobat and the xml blob in the pdf has syntax braces commas I get the braces when there is a space after braces, for example \setupinteraction [author=me, title={long title} ] I solved the problem by adding a comma right after the last brace, but I would also call that "a hint of a tiny buglet somewhere" ;) hm, but such a space before is always valid in key/value assignment or ] so there is no difference between title={long title} ] title={long title} , That has always been the case (ignoring leading an dtrailing spaces of a key would demand parsing token by token and that's not going to happen as it would slow down context a lot (so many parsing all over the place) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Removing the quotes from the results of the reference links
On Thu, Mar 29, 2012 at 10:32, Hans Hagen wrote: > On 29-3-2012 09:11, Alan BRASLAU wrote: >> >> On a similar line, concerning syntax (but not references), >> the braces grouping keywords get passed on to the pdf properties: >> >> \setupinteraction [keyword={syntax, braces, commas}] >> >> Is this a bug or else the incorrect use of braces? > > > That's weird, as here I get no { } in the properties shown by acrobat and > the xml blob in the pdf has > > syntax braces commas I get the braces when there is a space after braces, for example \setupinteraction [author=me, title={long title} ] I solved the problem by adding a comma right after the last brace, but I would also call that "a hint of a tiny buglet somewhere" ;) (It also took me some time to realize that one has to use subtitle instead of subject and keyword instead of keywords.) 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Removing the quotes from the results of the reference links
On 29-3-2012 09:11, Alan BRASLAU wrote: On Thu, 29 Mar 2012 08:50:06 +0200 Jaroslav Hajtmar wrote: Hello all, I can not find a way to remove the quotes from the results of the reference link Can someone help? On a similar line, concerning syntax (but not references), the braces grouping keywords get passed on to the pdf properties: \setupinteraction [keyword={syntax, braces, commas}] Is this a bug or else the incorrect use of braces? That's weird, as here I get no { } in the properties shown by acrobat and the xml blob in the pdf has syntax braces commas Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Removing the quotes from the results of the reference links
Hi Jaroslav, Am 29.03.2012 um 08:50 schrieb Jaroslav Hajtmar: > Hello all, > I can not find a way to remove the quotes from the results of the reference > link > Can someone help? > > Thanx > Jaroslav Hajtmar > > Here is minimal example: > > > \starttext > > \section[first]{First} > > \subsection[second]{Second} > > \input tufte > > \in{(see section}{ \about[second] at page \at[second])}[second]. > > > \stoptext I use this: \setupreferencing[left=,right=,width=] Steffen ___ 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] Removing the quotes from the results of the reference links
On Thu, 29 Mar 2012 08:50:06 +0200 Jaroslav Hajtmar wrote: > Hello all, > I can not find a way to remove the quotes from the results of the > reference link > Can someone help? On a similar line, concerning syntax (but not references), the braces grouping keywords get passed on to the pdf properties: \setupinteraction [keyword={syntax, braces, commas}] Is this a bug or else the incorrect use of braces? Alan ___ 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] Removing the quotes from the results of the reference links
Am 29.03.2012 um 08:50 schrieb Jaroslav Hajtmar: > Hello all, > I can not find a way to remove the quotes from the results of the reference > link > Can someone help? Use \getreference[title][second] to print the title of the heading. 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] Removing the quotes from the results of the reference links
Hello all, I can not find a way to remove the quotes from the results of the reference link Can someone help? Thanx Jaroslav Hajtmar Here is minimal example: \starttext \section[first]{First} \subsection[second]{Second} \input tufte \in{(see section}{ \about[second] at page \at[second])}[second]. \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 ___