Re: [NTG-context] E-books and XML.
Am 2014-08-28 um 23:39 schrieb Hans Hagen pra...@wxs.nl: I just recognized there’s a problem with references, esp. register: section detail=Titel location=aut:2 sectiontitleErinnerung /sectiontitle registerentryErinnerung/registerentry registerpages break/ registerpagelink destination=internal(3) location=aut:34/link/registerpage/registerpages registerentryVor meinem inn’ren Auge schweben Namen/registerentry registerpages break/ registerpagelink destination=internal(4) location=aut:44/link/registerpage/registerpages (These are title and start of lyrics of a song.) Beside the inconvenience that there is no node wrapping registerentry and registerpages, the locations don’t match. If there are several index entries pointing to the same point (page), as here, they’re continuously numbered, so that it’s no solution to just subtract 1, as I do at the moment to create my ToC. new beta \setupbackend [export=yes, xhtml=yes, css=export-example.css] \starttext \index{foo}foo \page \index{bar}bar \page \index{foo}foo \page \index{bar}bar \page \index{foo+test}foo \page \index{bar+test}bar \page \placeregister[index] \stoptext gives: register detail=index registersection registertagb/registertag registerentries registerentry registercontentbar/registercontent registerpagesregisterpage2/registerpageregisterseparator,/registerseparatorregisterpage4/registerpage/registerpages /registerentry registerentries registerentry registercontenttest/registercontent registerpagesregisterpage6/registerpage/registerpages /registerentry /registerentries /registerentries /registersection registersection registertagf/registertag registerentries registerentry registercontentfoo/registercontent registerpagesregisterpage1/registerpageregisterseparator,/registerseparatorregisterpage3/registerpage/registerpages /registerentry registerentries registerentry registercontenttest/registercontent registerpagesregisterpage5/registerpage/registerpages /registerentry /registerentries /registerentries /registersection /register Maybe the internal location numbers mean something, but I need a working reference; export.xml doesn’t know anything about pages, therefore the destination makes no sense. Doesn’t ConTeXt have some unique internal reference name? Thank you for caring, the tag hierarchy is good now, but why did you leave out the locations now? I need some connection between register entry and the origin to be able to create a link. I can’t use the page numbers, since they don’t exist in the XML (and of course they make no sense there). Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] E-books and XML.
On 8/29/2014 8:33 AM, Henning Hraban Ramm wrote: Am 2014-08-28 um 23:39 schrieb Hans Hagen pra...@wxs.nl: I just recognized there’s a problem with references, esp. register: section detail=Titel location=aut:2 sectiontitleErinnerung /sectiontitle registerentryErinnerung/registerentry registerpages break/ registerpagelink destination=internal(3) location=aut:34/link/registerpage/registerpages registerentryVor meinem inn’ren Auge schweben Namen/registerentry registerpages break/ registerpagelink destination=internal(4) location=aut:44/link/registerpage/registerpages (These are title and start of lyrics of a song.) Beside the inconvenience that there is no node wrapping registerentry and registerpages, the locations don’t match. If there are several index entries pointing to the same point (page), as here, they’re continuously numbered, so that it’s no solution to just subtract 1, as I do at the moment to create my ToC. new beta \setupbackend [export=yes, xhtml=yes, css=export-example.css] \starttext \index{foo}foo \page \index{bar}bar \page \index{foo}foo \page \index{bar}bar \page \index{foo+test}foo \page \index{bar+test}bar \page \placeregister[index] \stoptext gives: register detail=index registersection registertagb/registertag registerentries registerentry registercontentbar/registercontent registerpagesregisterpage2/registerpageregisterseparator,/registerseparatorregisterpage4/registerpage/registerpages /registerentry registerentries registerentry registercontenttest/registercontent registerpagesregisterpage6/registerpage/registerpages /registerentry /registerentries /registerentries /registersection registersection registertagf/registertag registerentries registerentry registercontentfoo/registercontent registerpagesregisterpage1/registerpageregisterseparator,/registerseparatorregisterpage3/registerpage/registerpages /registerentry registerentries registerentry registercontenttest/registercontent registerpagesregisterpage5/registerpage/registerpages /registerentry /registerentries /registerentries /registersection /register Maybe the internal location numbers mean something, but I need a working reference; export.xml doesn’t know anything about pages, therefore the destination makes no sense. Doesn’t ConTeXt have some unique internal reference name? Thank you for caring, the tag hierarchy is good now, but why did you leave out the locations now? I need some connection between register entry and the origin to be able to create a link. I can’t use the page numbers, since they don’t exist in the XML (and of course they make no sense there). There is probably some more cleanup to do with respect to referencing (like with lists) but it takes time (till now I never really needed the export which started as a quick and dirty experiment and normally I need usage in projects to spend real time on such things.) Anyway. I've added some more register stuff, but not yet in the default css where the register is simply ignored (no time for that now). Maybe we should make a todo list for the export. It's not that complex but just takes time. New beta ... 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] Startparagraph oddities
On 8/29/2014 12:22 AM, Rik Kabel wrote: There appears to be an inconsistency in the implementation of \startparagraph. When it is used with one argument (or two by my reading of the source) it defines \stopparagraph with a terminal \endgraf, yet with no arguments this is not done. Strangely (to me) it also appears to insert a line-break before \startparagraph[]. The example below demonstrates these issues. I would expect to have \endgraf inserted with each \stopparagraph regardless of the argument count. There is also a wiki issue with overloading of the command name \startparagraph. The existing command entry points to the paragraphs mechanism for setting up parallel paragraphs in columns. There is also a \startParagraph command described for the t-pararef module. There is no mention of \startparagraph in the \startsection page, which might be an appropriate place. Perhaps some Wikipedia-style disambiguation mechanism is needed. \starttext \startparagraph One \stopparagraph \startparagraph Twee \stopparagraph \startparagraph Drie \stopparagraph \startparagraph[] One \stopparagraph \startparagraph Twee \stopparagraph \startparagraph Drie \stopparagraph \stoptext fixed in 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 ___
Re: [NTG-context] E-books and XML.
Am 2014-08-29 um 16:17 schrieb Hans Hagen pra...@wxs.nl: Thank you for caring, the tag hierarchy is good now, but why did you leave out the locations now? I need some connection between register entry and the origin to be able to create a link. I can’t use the page numbers, since they don’t exist in the XML (and of course they make no sense there). There is probably some more cleanup to do with respect to referencing (like with lists) but it takes time (till now I never really needed the export which started as a quick and dirty experiment and normally I need usage in projects to spend real time on such things.) Anyway. I've added some more register stuff, but not yet in the default css where the register is simply ignored (no time for that now). Thank you, I’ll see what I can make out of it. (I’ll try to trace every reference back to the chapter level, where I split output HTML files.) Maybe we should make a todo list for the export. It's not that complex but just takes time. Is there already a solution for \em (or \emph) and other switches? They don’t show up in export.xml. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] E-books and XML.
On 8/29/2014 1:46 PM, Henning Hraban Ramm wrote: Am 2014-08-29 um 16:17 schrieb Hans Hagen pra...@wxs.nl: Thank you for caring, the tag hierarchy is good now, but why did you leave out the locations now? I need some connection between register entry and the origin to be able to create a link. I can’t use the page numbers, since they don’t exist in the XML (and of course they make no sense there). There is probably some more cleanup to do with respect to referencing (like with lists) but it takes time (till now I never really needed the export which started as a quick and dirty experiment and normally I need usage in projects to spend real time on such things.) Anyway. I've added some more register stuff, but not yet in the default css where the register is simply ignored (no time for that now). Thank you, I’ll see what I can make out of it. (I’ll try to trace every reference back to the chapter level, where I split output HTML files.) Maybe we should make a todo list for the export. It's not that complex but just takes time. Is there already a solution for \em (or \emph) and other switches? They don’t show up in export.xml. use 'highlights' - 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] Itemize and framed
Hi, Is this the best way to insert a list in a frame ? thank you, Fabrice \setupcolors[state=start] \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] \starttext \framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{% \rbox{ \startitemize[1] \item planter le piquet 1 à côté de l'arbre 1 ; \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les piquets 3 et 4 ; \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une part ; et avec l'arbre 1 et le piquet 4 d'autre part. \item mesurer sa distance à l'arbre 1 ; \item rechercher, dans le tableau, la distance correspondante entre les deux arbres. \stopitemize}} \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 ___
Re: [NTG-context] Itemize and framed
Hi, It looks fine, but you can as well use \startframedtext, as in: \starttext \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] \starttext \startframedtext[ width=\textwidth, corner=06, frame=on, framecolor=H1prime, location=middle, background=color, backgroundcolor=H4] \startitemize[1] \item planter le piquet 1 à côté de l'arbre 1 ; \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les piquets 3 et 4 ; \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une part ; et avec l'arbre 1 et le piquet 4 d'autre part. \item mesurer sa distance à l'arbre 1 ; \item rechercher, dans le tableau, la distance correspondante entre les deux arbres. \stopitemize \stopframedtext \stoptext Best regards: OK On 29 Aug 2014, at 15:19, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: Hi, Is this the best way to insert a list in a frame ? thank you, Fabrice \setupcolors[state=start] \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] \starttext \framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{% \rbox{ \startitemize[1] \item planter le piquet 1 à côté de l'arbre 1 ; \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les piquets 3 et 4 ; \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une part ; et avec l'arbre 1 et le piquet 4 d'autre part. \item mesurer sa distance à l'arbre 1 ; \item rechercher, dans le tableau, la distance correspondante entre les deux arbres. \stopitemize}} \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 ___
Re: [NTG-context] Itemize and framed
Am 29.08.2014 um 15:55 schrieb Otared Kavian ota...@gmail.com: Hi, It looks fine, but you can as well use \startframedtext, as in: \starttext \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00] \starttext \startframedtext[ width=\textwidth, corner=06, frame=on, framecolor=H1prime, location=middle, background=color, backgroundcolor=H4] \startitemize[1] \item planter le piquet 1 à côté de l'arbre 1 ; \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les piquets 3 et 4 ; \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une part ; et avec l'arbre 1 et le piquet 4 d'autre part. \item mesurer sa distance à l'arbre 1 ; \item rechercher, dans le tableau, la distance correspondante entre les deux arbres. \stopitemize \stopframedtext \stoptext In this case framedtext is the better choice but it can be done with framed as well but one has to set values for align and disable the strut, e.g. \framed [align=right,strut=no] {\startitemize … \stopitemize} and when you use MkIV replace \framed with \startframed, i.e. \startframed[align=right,strut=no] \startitemize … \stopitemize \stopframed 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 ___
Re: [NTG-context] Itemize and framed
Thank you for your answers, I continue to learn. However, the solution should Otared me better because the numbering is less near the edge of the frame. ___ 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] Strange behavior in a table.
Everything is in the title, thank you. \starttext \`A l'aide du graphique, compléter les tableaux de correspondance suivants. \blank[small] {\setupTABLE[row][even][height=0.6cm] \setupTABLE[row][odd][height=0.6cm] \setupTABLE[1][1,2][width=3.2cm] \setupTABLE[column][2,3,4,5,6,7][width=0.14\textwidth] \bTABLE[align={middle,lohi}] \bTR \bTH {Hauteur en dm} \eTH \bTD {0} \eTD \bTD {0,5} \eTD \bTD {1} \eTD \bTD {1,5} \eTD \bTD {2} \eTD \bTD {2,5} \eTD \eTR \bTR \bTH {Volume d'eau en L} \eTH \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \eTR \eTABLE \blank[small] \bTABLE[align={middle,lohi}] \bTR \bTH {Volume d'eau en L} \eTH \bTD {1} \eTD \bTD {2} \eTD \bTD {3} \eTD \bTD {4} \eTD \bTD {5} \eTD \bTD {10} \eTD \eTR \bTR \bTH {Hauteur en dm} \eTH \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \bTD {} \eTD \eTR \eTABLE} Les graduations obtenues n'étant pas assez fines, Pascal demande à son gendre de préciser ses calculs. La suite de l'histoire ...plus tard. \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 ___
Re: [NTG-context] Strange behavior in a table.
Am 29.08.2014 um 19:34 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: Everything is in the title, thank you. What do you expect, the cells in the first column are too small for the text you’re trying to put in. There are also two things you should change: (1) As you use the same setup for each table create a template for them at the begin of the document and load ot at the begin of each table with “setups=name of the template”. (2) Remove the braces around the text in the cells because you don’t need them, font etc. changes are local to cell where you set them and won’t affect other cells. Below is a example with a simplified version of your table template: \startsetups[table:initialize] \setupTABLE[height=0.6cm,width=0.1\textwidth] \setupTABLE[column][first][width=0.4\textwidth] \setupTABLE[start][align={middle,lohi}] \stopsetups \showframe[text][text] \starttext \bTABLE[setups=table:initialize] \bTR \bTH Hauteur en dm \eTH \bTD 0 \eTD \bTD 0,5 \eTD \bTD 1 \eTD \bTD 1,5 \eTD \bTD 2 \eTD \bTD 2,5 \eTD \eTR \bTR \bTH Volume d'eau en L \eTH \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE \stoptext 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] hyperlinks with special characters
I have already asked this question on Stackexchange. It appears that no one who has seen the question knows an answer. I figure I'll ask here too, just to cover all bases. I need to link to some online resources in my PDF file. Based on the official documentation, I have written: \useURL[dbdk] [http://dbpedia.org/page/The_Dark_Knight_(film)] [] [it's link to DBPedia] Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \from[dbdk] dolor sit amet. Note my code for the link to DBpedia: I had to write it in this convoluted way, instead of using my preferred \goto, because the link has the special characters, `(` and `)`. These characters interfered with `url()`. I can't use HTML's URL encoding scheme because the `%`s interfere with TeX. Is there another escape code format in ConTeXt for use within `\goto{...}[url(...)]`? Using the suggestion by @phg, I tried the following: \startasciimode Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \goto{it's link to DBPedia}[url(http://dbpedia.org/page/The_Dark_Knight_%28film%29)] dolor sit amet. \stopasciimode I still had to use escape codes, `%28` and `%29`, to keep it from interfering with url(). It turns out that DBpedia does not like these codes, and requires the actual characters. Is there another way I put them in `\goto{...}[url(...)]`? Thanks! Prash signature.asc Description: This is a digitally signed message part. ___ 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] Problem with embedding code TikZ code
In the code below, I do not understand why the label Arbre 2 does not have the color you want, that is to say the same as the label Arbre 1. Thank you. \usemodule[tikz] \usetikzlibrary[calc] \definecolor[A2][c=0.60, m=0.00, y=0.00, k=0.10] \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00] \starttext \starttikzpicture[line width=0.3mm, =stealth, x=1cm, y=1cm,line cap=round, line join=round] \tikzstyle{epais}=[line width=0.5mm, line cap=butt] \tikzstyle{tres epais}=[line width=0.8mm, line cap=butt] \draw [tres epais] (6.02,3.63)-- (8.88,3.64); \draw (6.02,3.63)-- (6.03,0.77); \draw [tres epais] (6.03,0.77)-- (6.02,3.63); \draw [tres epais] (8.88,3.64)-- (8.89,0.78); \draw [dashed] (-3.38,3.6)-- (8.89,-0.09); \draw [dashed] (8.89,-0.09)-- (8.89,0.78); \draw [dashed] (-3.38,3.6)-- (6.02,3.63); \draw [A2,epais,domain=-1:2] plot(\x,{(-8.9-4.4*\x)/-3}); \draw [A2,epais,domain=1.5:4.5] plot(\x,{(--1.58-5.12*\x)/-4.72}); \draw (8.84,4.4) node {\color[H1prime]{\bf Arbre 1}}; \draw (-2.96,4.4) node {\color[H1prime]{\bf Arbre 2}}; \node at (8.14,0.8) {\small piquet 4}; \draw [A1](8.84,-0.3) node {\bf Georges}; \node[rotate=45] at (0.28,1.88) {\color[A2]{\bf Ravin}}; \node[rotate=90] at (9.4,1.74) {\color[B1prime]{\bf longueur mesurée}}; \draw (2.46,4) node {\color[B1prime]{\bf longueur inconnue à estimer}}; \draw[B1prime,-] (9.05,3.62)-- (9.05,-0.09); \draw[B1prime,-] (-3.38,3.8)-- (8.9,3.8); \node at (8.84,4.0) {\small piquet 1}; \node[rotate=30] at (6.22,4) {\small piquet 2}; \node[rotate=30] at (6.22,0.5) {\small piquet 3}; \stoptikzpicture \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 ___
Re: [NTG-context] Itemize and framed
Hi Fabrice, Actually with both solutions you can control the distance of the framed material to the frame by the key « offset=SomeMeasure » For instance you can say: \startframedtext[ width=\textwidth, offset=.5em, corner=06, frame=on, framecolor=H1prime, location=middle, background=color, backgroundcolor=H4] and changing .5em to another value you cans choose what you find better. Best regards: OK On 29 Aug 2014, at 19:30, Fabrice couvreur.fabr...@wanadoo.fr wrote: Thank you for your answers, I continue to learn. However, the solution should Otared me better because the numbering is less near the edge of the frame. ___ 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] hyperlinks with special characters
On 8/29/2014 7:48 PM, Prashanth N Rao wrote: I have already asked this question on Stackexchange. It appears that no one who has seen the question knows an answer. I figure I'll ask here too, just to cover all bases. I need to link to some online resources in my PDF file. Based on the official documentation, I have written: \useURL[dbdk] [http://dbpedia.org/page/The_Dark_Knight_(film)] [] [it's link to DBPedia] Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \from[dbdk] dolor sit amet. Note my code for the link to DBpedia: I had to write it in this convoluted way, instead of using my preferred \goto, because the link has the special characters, `(` and `)`. These characters interfered with `url()`. I can't use HTML's URL encoding scheme because the `%`s interfere with TeX. Is there another escape code format in ConTeXt for use within `\goto{...}[url(...)]`? Hm, I can support properly nested () and {} but how about not balanced ... one way out is to support and '' special(operation) special(operation(whatever)) special(operation{argument,argument{whatever}}) special(operation{argument{whatever}}) special(operation() special(operation(whatever) special(operation{argument,argument{whatever}) special(operation{argument{whatever}) I'll add that but it needs testing because the ref parser is already somewhat complex. Using the suggestion by @phg, I tried the following: \startasciimode Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \goto{it's link to DBPedia}[url(http://dbpedia.org/page/The_Dark_Knight_%28film%29)] dolor sit amet. \stopasciimode I still had to use escape codes, `%28` and `%29`, to keep it from interfering with url(). It turns out that DBpedia does not like these codes, and requires the actual characters. Is there another way I put them in `\goto{...}[url(...)]`? you can use: \letterpercent - 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] Strange error with bookmarks
On 8/26/2014 1:45 PM, Michał Goliński wrote: While trying to make a longer document with ConTeXt I stumbled into a strange error with the latest beta (I spotted it for the first time some time ago). For the following file: \setupinteraction[state=start,focus=standard] \placebookmarks[part,chapter][part,chapter][number=no] \starttext \chapter{0} \startpart[title={A}] \chapter{1} \chapter{2} \stoppart \startpart[title={B}] \chapter{3} \chapter{4} \chapter{5} \chapter{6} \chapter{7} \chapter{8} \chapter{9} \chapter{10} \stoppart \completecontent[criterium=all] \stoptext ConTeXt would generate a file in which the link for chapter 6 is not working. Neither the link in the table of contents works nor the link in the generated PDF bookmarks. When removing the second line, the link in the table of contents doesn't work, but everyting is ok if one removes the table of contents. What seems even more weird for me, the problem goes away if one removes *any* chapter. It persists for chapter 6 even if chapters are distributed differently between parts without changing their order. Am I doing something wrong? I hope someone might be able to help. It works here (with summatrapdf) ... can it be a viewer issue? Do you run the latest context? 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] hyperlinks with special characters
On Friday 29 August 2014 21:52:33 Hans Hagen wrote: On 8/29/2014 7:48 PM, Prashanth N Rao wrote: I have already asked this question on Stackexchange. It appears that no one who has seen the question knows an answer. I figure I'll ask here too, just to cover all bases. I need to link to some online resources in my PDF file. Based on the official documentation, I have written: \useURL[dbdk] [http://dbpedia.org/page/The_Dark_Knight_(film)] [] [it's link to DBPedia] Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \from[dbdk] dolor sit amet. Note my code for the link to DBpedia: I had to write it in this convoluted way, instead of using my preferred \goto, because the link has the special characters, `(` and `)`. These characters interfered with `url()`. I can't use HTML's URL encoding scheme because the `%`s interfere with TeX. Is there another escape code format in ConTeXt for use within `\goto{...}[url(...)]`? Hm, I can support properly nested () and {} but how about not balanced ... one way out is to support and '' special(operation) special(operation(whatever)) special(operation{argument,argument{whatever}}) special(operation{argument{whatever}}) special(operation() special(operation(whatever) special(operation{argument,argument{whatever}) special(operation{argument{whatever}) I'll add that but it needs testing because the ref parser is already somewhat complex. If I may make a suggestion, you could just support one escape character - \ That way, balanced or unbalanced, they just have to know one convention. If I understood your examples correctly, i.e. these are the strings one would write within url(), this is how they could do it: special\(operation\) special\(operation\(whatever\)\) special\(operation{argument,argument{whatever}}\) special\(operation{argument{whatever}}\) special\(operation\(\) special\(operation\(whatever\) special\(operation{argument,argument{whatever}\) special\(operation{argument{whatever}\) And if they ever need a literal \ in their URL, they would have to write \\ In my examples above, I have escaped only ( and ) because they interefere with url(). If the any other character interferes with your code, they could escape it as I have shown. Using the suggestion by @phg, I tried the following: \startasciimode Lorem ipsum \goto{the LinkedMDB.org entry on The Dark Knight}[url(http://data.linkedmdb.org/page/film/6224)], and \goto{it's link to DBPedia}[url(http://dbpedia.org/page/The_Dark_Knight_%28film%29)] dolor sit amet. \stopasciimode I still had to use escape codes, `%28` and `%29`, to keep it from interfering with url(). It turns out that DBpedia does not like these codes, and requires the actual characters. Is there another way I put them in `\goto{...}[url(...)]`? you can use: \letterpercent - 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 ___ signature.asc Description: This is a digitally signed message part. ___ 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] Strange behavior in a table.
Sorry for the mistake. To the eye, I thought the distance chosen was sufficient, and I did not think to change it. In any case, your help is wonderful, thank you. ___ 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] bug in hyphenation?
Dear list, the following sample shows bad hyphenation in the first body line and in many linenotes: \showframe \definepapersize[HippPaper][width=6in, height=9in] \setuppapersize[HippPaper] \setupnote[linenote][rule=off, paragraph=yes, split=verystrict, scope=text, inbetween=\hskip1.5em, compress=yes] \setupnotation[linenote][numbercommand=, width=broad, alternative=serried, distance=1em] \starttext \startlinenumbering \showhyphens{testing paragraph} \dorecurse{50}{This\linenote{That} is\linenote{was} a\linenote{one} testing\linenote{nesting} sentence\linenote{table}. } \stoplinenumbering \stoptext If this is not a bug, what am I missing here? 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 ___