Re: [NTG-context] proposal about link borders
Hi All, If we are going this then it would be nice to define the color of the link border. I will leave the details or a syntax up to the implementors. regards Keith. Am 21.03.2014 um 18:30 schrieb Pablo Rodriguez oi...@gmx.es: Hi Hans, many thanks for fixing the issue with links (and other two issues about PDF information). I have two proposals about hyperlinks, after having looked at an uncompressed file with hyperlinks. AFAIK, they haven’t been implemented (I have checked the wiki, the “ConTeXt Commands” documents, the reference manual, and the source [I apologize, if I have overlooked something]). My first proposal would be an option to have link borders enabled. I guess that something like \setupinteraction[linkborders=on] would be a good choice. With this option, one can have an interactive version and a printable version of a document in the same file. This is extremely useful in many scenarios. My second proposal would be an option to have colored link borders. \setupinteraction[linkbordercorlor=on] could be the option to enable color in link borders. I think both proposals could be useful for (at least for some) interactive documents. 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 ___ ___ 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] lower superscripts in MkIV -- too low?
Hi Sanjoy, I agree with you to say that the position of subscripts and superscripts in mkiv is not perfect: the same remark applies to the position of the derivative sign « prime » as $u’(t)$. Actually in mkii (and also in plain TeX) the positions of the superscripts in your example are the same, but this is not the case with subscripts: $x_{3}\ x\mathstrut_{3}$ that is in mkii the latter $x\mathstrut_{3}$ gives a lower subscript, while in plain TeX both subscripts are positioned at an identical depth. I would say the position of subscripts and superscripts in mkiv should be identical with one gets with the latest beta (version 2014.03.20 16:59) in the following example \starttext $x\mathstrut_{3}$ and $x\mathstrut^{3}$ \stoptext However as Hans pointed out, regarding maths typesetting in mkiv there are also some font related issues. Best regards: OK On 21 mars 2014, at 17:34, Sanjoy Mahajan san...@mit.edu wrote: Dear math typesetting aficianados, In the following example, \starttext $x^3\ x\mathstrut^3$ \stoptext the superscript without the strut is about 2pt lower than with the strut, using MkIV. With MkII or plain TeX, they are the same height (at the higher position obtained by using the \mathstrut in MkIV). My eye tells me that the higher position looks more right. Do others agree? Or, if it's a matter of taste, is the difference configurable so that one can get the MkII behavior even without the \mathstrut? -- -Sanjoy ___ 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] lower superscripts in MkIV -- too low?
On 3/22/2014 8:17 AM, Otared Kavian wrote: Hi Sanjoy, I agree with you to say that the position of subscripts and superscripts in mkiv is not perfect: the same remark applies to the position of the derivative sign « prime » as $u’(t)$. Actually in mkii (and also in plain TeX) the positions of the superscripts in your example are the same, but this is not the case with subscripts: $x_{3}\ x\mathstrut_{3}$ that is in mkii the latter $x\mathstrut_{3}$ gives a lower subscript, while in plain TeX both subscripts are positioned at an identical depth. I would say the position of subscripts and superscripts in mkiv should be identical with one gets with the latest beta (version 2014.03.20 16:59) in the following example \starttext $x\mathstrut_{3}$ and $x\mathstrut^{3}$ \stoptext However as Hans pointed out, regarding maths typesetting in mkiv there are also some font related issues. we have a more modern implementation in the next beta - 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 ___
[NTG-context] Placing arbitrary pdf bookmarks
Hello all, I am willing to use ConTeXt to produce a bunch of stickers. My stickers are grouped into categories but I don't want any headers or titles to interfere with the layout of the stickers, so I didn't use \startchapter and the likes. However, I would like to add pdf bookmarks in order to quickly jump to the start of a category. After taking a look at strc-bkm.mkiv, I tried the following \setupinteraction[state=start] \definelist[building] \definelist[aisle] \placebookmarks[building,aisle] \starttext \bookmark[building]{B1} \bookmark[aisle]{A1} Sticker 1 Sticker 2 \page \bookmark[aisle]{A2} Sticker 3 Sticker 4 \page \bookmark[building]{B2} \bookmark[aisle]{A3} Sticker 5 Sticker 6 \stoptext But it didn't worked. I didn't get any error message but no bookmark either. How can I directly add a bookmark to the pdf table of contents ? Previously I was using the ReportLab toolkit which provided for this purpose the bookmarkPage and addOutlineEntry functions. Is there a similar solution with ConTeXt ? Thanks for your help, -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51 ___ 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] Placing arbitrary pdf bookmarks
On 03/22/2014 04:35 PM, Jean-Philippe Rey wrote: Hello all, I am willing to use ConTeXt to produce a bunch of stickers. My stickers are grouped into categories but I don't want any headers or titles to interfere with the layout of the stickers, so I didn't use \startchapter and the likes. Hi Jean-Philippe, I think there is workaround for your case: not placing heads in document. Here you have a shorter sample \setupinteraction[state=start] \placebookmarks[chapter,section] \setuphead[chapter,section][placehead=no] \starttext \chapter{B1} \section{A1} Sticker 1 Sticker 2 \page \chapter{A2} Sticker 3 Sticker 4 \stoptext BTW, those links doesn’t seem to works with evince or xpdf. SumatraPDF seems to have no problem with them. (Just in case you happen to use any of these PDF viewers [I’m reporting the issue to evince developers].) I hope it helps, 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] Placing arbitrary pdf bookmarks
Hi Pablo, Le 22 mars 2014 à 17:31, Pablo Rodriguez oi...@gmx.es a écrit : On 03/22/2014 04:35 PM, Jean-Philippe Rey wrote: Hello all, I am willing to use ConTeXt to produce a bunch of stickers. My stickers are grouped into categories but I don't want any headers or titles to interfere with the layout of the stickers, so I didn't use \startchapter and the likes. I think there is workaround for your case: not placing heads in document. Very good hint, thank you. It works perfectly fine with MkII. With MkIV, although the head is not printed, some whitespace is added that disturbs the layout. I tried \setuphead[chapter,section][placehead=hidden] and got rid of the spurious whitespace ... but also of the pdf bookmarks :-( \setuphead[chapter,section][placehead=no,page=no,before=,after=] don't work either. Here is an example to demonstrate the problem (again, it works fine with MkII, unfortunately I am using lua to compose my stickers). \setupinteraction[state=start] \placebookmarks[chapter,section] \setuphead[chapter,section][placehead=no] \starttext \chapter{B1} \section{A1} Sticker 1 Sticker 2 \page Sticker 3 \section{A2} Sticker 4 \page \chapter{B2} Sticker 5 \section{A3} Sticker 6 \stoptext -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51 ___ 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] Placing arbitrary pdf bookmarks
On 03/22/2014 07:11 PM, Jean-Philippe Rey wrote: [...] Very good hint, thank you. It works perfectly fine with MkII. With MkIV, although the head is not printed, some whitespace is added that disturbs the layout. I tried \setuphead[chapter,section][placehead=hidden] and got rid of the spurious whitespace ... but also of the pdf bookmarks :-( \setuphead[chapter,section][placehead=no,page=no,before=,after=] don't work either. Jean-Philippe, my fault, this is the right head configuration: \setuphead[chapter,section][placehead=empty,before=,after=,] This should work now: \showgrid \setupinteraction[state=start] \placebookmarks[chapter,section] \setuphead[chapter,section][placehead=empty,before=,after=,] \starttext \chapter{B1} \section{A1} Sticker 1 Sticker 2 \page Sticker 3 \section{A2} Sticker 4 \page \chapter{B2} Sticker 5 \section{A3} Sticker 6 \stoptext I hope it helps now, 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] hyperlinks in latest beta?
Hans--there are still some odd failures in hyperlinking between components. At least in the following product file with two components, some links work (\reference), some only sometimes (\at) and others never (\in). The problem seems to be with labels. \startproduct LinkTest \setupinteraction[state=start] \component Test01 \component Test02 \stopproduct \startcomponent Test01 \product LinkTest \reference[startknuth]{}\input knuth \page \input knuth\reference[endknuth]{}\footnote[knuth]{A note.} \section[new]{a title} \input ward \page[makeup] \stopcomponent \startcomponent Test02 \product LinkTest \type{\reference}, pp.\ \at[startknuth]-\at[endknuth] \type{\in} using a label: \at[knuth]n\in[knuth] as well as \at[new] (ref to section). \page[makeup] \stopcomponent The links to labeled items work within a single document: \startcomponent Test03 \setupinteraction[state=start] \section[new]{A title} text\footnote[test]{text.} \page reference to note: \at[test]n\in[test] reference to section: \at[new] \page[makeup] \stopcomponent Alan On Thu, Mar 20, 2014 at 10:52 AM, Alan Bowen bowenala...@gmail.com wrote: Hans--the links function as they should in today's beta. Many thanks! Alan On Thu, Mar 20, 2014 at 8:42 AM, Hans Hagen pra...@wxs.nl wrote: On 3/20/2014 12:41 PM, Wolfgang Schuster wrote: Am 20.03.2014 um 10:09 schrieb Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 3/20/2014 12:57 AM, Alan Bowen wrote: Pablo, Hans-- Just checked. The links are not working for me either in ConTeXt ver: 2014.03.19 23:11 MKIV beta. simple example ... \setupinteraction[state=start] \starttext Text\pagereference[test] \page \at{Page}[test] \stoptext what binary do you use? luatex 0.79? what viewer? - This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746) - Adobe Reader 11 - The preview app for Macs can you send me the pdf with \nopdfcompression (works ok here so i want to see the difference) - 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] Placing arbitrary pdf bookmarks
Hello Pablo, Le 22 mars 2014 à 20:00, Pablo Rodriguez oi...@gmx.es a écrit : my fault, this is the right head configuration: \setuphead[chapter,section][placehead=empty,before=,after=,] Works perfectly. Thank you very much. -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51 ___ 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] lower superscripts in MkIV -- too low?
However as Hans pointed out, regarding maths typesetting in mkiv there are also some font related issues. we have a more modern implementation in the next beta I realized that this would also fix my issue with the superscripted degree symbol coming out too low (which I had mysteriously thought was only for that symbol). I will happily test the new beta on a myriad of superscripts that haunt my .tex files. -Sanjoy ___ 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 behaviours between header and footer
Hi guys, a quick reminder if someone can help me on this topic. Thanks :) On 19 Mar 2014 14:18, Flavien Lambert petit.lep...@gmail.com wrote: Dear all, in the following example, header and footer behave differently, the frame at the bottom being out of the footer space. Could you tell me how to obtain a frame inside the footer like the header one? Thanks a lot, Flavien. \setupheadertexts[{\framed[frame=off,width=\textwidth,height=\headerheight]{not offset}}][] \setupfootertexts[{\framed[frame=on,height=\footerheight]{offset}}][] \showframe \starttext \input knuth \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 ___