Re: [NTG-context] problem with url in \setupexternalfigures
On 14-1-2010 9:18, Peter Münster wrote: On Wed, Jan 13 2010, Hans Hagen wrote: ok, i can fix that but there is a problem ... if no suffix is given, the quality list is followed and the first request will be http://pmrb.free.fr/tmp/hacker-test.pdf which gives a home page which is no pdf of course and luatex does not like that Hello Hans, I get error 404 (not found): wget http://pmrb.free.fr/tmp/hacker-test.pdf --2010-01-14 09:05:32-- http://pmrb.free.fr/tmp/hacker-test.pdf Resolving pmrb.free.fr... 212.27.63.139 Connecting to pmrb.free.fr|212.27.63.139|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2010-01-14 09:05:32 ERROR 404: Not Found. at some point i want to use the built in socket code instead of calling curl in which case we can intercept the 404 case (i had no time for that yet) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] problem with url in \setupexternalfigures
On 14-1-2010 0:04, Aditya Mahajan wrote: Of course, this will only work for moudles that provide only one file. you can pick up the test version and play with ... \enabletrackers[modules.loading] \input http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex % \usemodule[http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex] \usemodule[http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste] % \usemodule[x][set-12] \starttext file: \typefile{http://github.com/adityam/cut-n-paste/raw/master/tex/context/third/cut-n-paste/t-cut-n-paste.tex} \stoptext a suffix is mandate with http etc as otherwise we get a match anyway (a homepage or some error page) eventually all file loading will be scheme aware Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] problem with url in \setupexternalfigures
On Wed, Jan 13 2010, Hans Hagen wrote: > ok, i can fix that but there is a problem ... > > if no suffix is given, the quality list is followed and the first request > will be > > http://pmrb.free.fr/tmp/hacker-test.pdf > > which gives a home page which is no pdf of course and luatex does not like > that Hello Hans, I get error 404 (not found): wget http://pmrb.free.fr/tmp/hacker-test.pdf --2010-01-14 09:05:32-- http://pmrb.free.fr/tmp/hacker-test.pdf Resolving pmrb.free.fr... 212.27.63.139 Connecting to pmrb.free.fr|212.27.63.139|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2010-01-14 09:05:32 ERROR 404: Not Found. > as i don't want to complicate the lookup mechanism even more, i will not > catch this and users can best use a suffix when using an url Not really optimal, but should not be a problem. Thanks, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] NOT reusing figures
On 14-1-2010 22:48, Matthias Weber wrote: Dear All, I just notice another discrepancy between 2009 and earlier ConTeXt: I organize my project in folders/subfolders according to chapters/sections, and each section folder contains the files needed for that section: the ConTeXt source, images, and helper files etc. Now it happens so that some images in different directories have the same name. In my ConTeXt (2009), only the first image is loaded and used instead of the local one (which is explicitly referenced with the correct path). I can clearly rename all file names to become unique, but it strikes me as a little odd. what do you mean with 2009? a recent beta? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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] Text backgrounds once again (follow-up)
On Thu, 14 Jan 2010, Matthias Weber wrote: Thanks, that is what I want to see. So ConTeXt live is broken as well as TeXlive 2009? No. Both are (understandably) slightly paranoid, and disable \write18 by default. Either enable write18 in Texlive (http://wiki.contextgarden.net/write18) or add \runMPgraphicsfalse on top of your file. Aditya ___ 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] NOT reusing figures
Dear All, I just notice another discrepancy between 2009 and earlier ConTeXt: I organize my project in folders/subfolders according to chapters/ sections, and each section folder contains the files needed for that section: the ConTeXt source, images, and helper files etc. Now it happens so that some images in different directories have the same name. In my ConTeXt (2009), only the first image is loaded and used instead of the local one (which is explicitly referenced with the correct path). I can clearly rename all file names to become unique, but it strikes me as a little odd. Matthias ___ 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] Text backgrounds once again (follow-up)
Thanks, that is what I want to see. So ConTeXt live is broken as well as TeXlive 2009? Matthias On Jan 14, 2010, at 4:39 PM, Willi Egger wrote: Hi Mathias, I tested your sample-code with the minimals This is LuaTeX, Version beta-0.50.0-2009122422 ConTeXt ver: 2010.01.11 14:57 MKIV fmt: 2010.1.11 int: english/ english The outcome is to my knowledge correct See attachment. Kind regards Willi On Jan 14, 2010, at 9:55 PM, Matthias Weber wrote: More precisely, what formerly worked (with my 2008 installation, and it still works when I switch back) is the following minimized setup. The frame and the background are gone :(, the red text is there. Matthias \setupcolors[state=start] \definecolor[defc][r=.9,g=.9,b=.94] \definetextbackground [defbackground] [background=color, backgroundcolor=defc, align=right, frame=on, corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, framecolor=darkred, location=paragraph, color=darkred] \defineenumeration [definition] [before={\starttextbackground[defbackground]}, after={\stoptextbackground}, text=Definition, way=bysection, location=hanging, letter=rm] \starttext \startdefinition \input knuth \stopdefinition \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 ___ ___ 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] Text backgrounds once again (follow-up)
Hi Mathias, I tested your sample-code with the minimals This is LuaTeX, Version beta-0.50.0-2009122422 ConTeXt ver: 2010.01.11 14:57 MKIV fmt: 2010.1.11 int: english/ english The outcome is to my knowledge correct See attachment. Kind regards Willi backgrounds.pdf Description: Adobe PDF document On Jan 14, 2010, at 9:55 PM, Matthias Weber wrote: More precisely, what formerly worked (with my 2008 installation, and it still works when I switch back) is the following minimized setup. The frame and the background are gone :(, the red text is there. Matthias \setupcolors[state=start] \definecolor[defc][r=.9,g=.9,b=.94] \definetextbackground [defbackground] [background=color, backgroundcolor=defc, align=right, frame=on, corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, framecolor=darkred, location=paragraph, color=darkred] \defineenumeration [definition] [before={\starttextbackground[defbackground]}, after={\stoptextbackground}, text=Definition, way=bysection, location=hanging, letter=rm] \starttext \startdefinition \input knuth \stopdefinition \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 __ _ ___ 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] Text backgrounds once again (follow-up)
More precisely, what formerly worked (with my 2008 installation, and it still works when I switch back) is the following minimized setup. The frame and the background are gone :(, the red text is there. Matthias \setupcolors[state=start] \definecolor[defc][r=.9,g=.9,b=.94] \definetextbackground [defbackground] [background=color, backgroundcolor=defc, align=right, frame=on, corner=round, before=\blank, after=\blank, leftoffset=5pt, rightoffset=5pt, topoffset=5pt, bottomoffset=5pt, framecolor=darkred, location=paragraph, color=darkred] \defineenumeration [definition] [before={\starttextbackground[defbackground]}, after={\stoptextbackground}, text=Definition, way=bysection, location=hanging, letter=rm] \starttext \startdefinition \input knuth \stopdefinition \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 ___
[NTG-context] Page numbering and MkIV
This code: \enableregime[utf] \starttext \title{BLAH BLAH\\ BLAH} \setuppagenumbering[state=stop] \page \setuppagenumbering[state=start,location={footer,center},conversion=romannumerals,style={\bf}] \completecontent \page \setuppagenumbering[state=stop] \chapter[chapter:foo]{Foo Bar} \setuppagenumbering[state=start,location={footer,center},conversion=no,style={\ss\bf}] \section[sect:evocation]{EVOCATION} Lorem ipsum. \stoptext Produces what I expect with MkII (blank page, roman numbered page, arabic numbered page), but MkIV produces PDF with arabic numbering on every page. Any ideas? -- Vedran Miletić ___ 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] Text backgrounds once again
Dear all, after a long break I am returning to two larger projects of mine, and to celebrate, I upgraded to ConTeXt from the current TeXLive. To my surprise, mostly everything looks as before (which is good), but all my text backgrounds are gone. A little search brought up Wolf-gang's example (from 1-20 2009) \setupcolors[state=start] \definetextbackground [example] [location=paragraph, background=color, backgroundcolor=middlegray, frame=off] \starttext \input knuth \startexample \dorecurse{4}{\input knuth\par} \stopexample \input knuth \stoptext which doesn't produce any backgrounds - neither on my installation, nor at ConTeXt live. What is the current way to produce backgrounds around text snippets? I'll need/want it framed with rounded corners eventually, too. Thanks! ___ 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] simple layout
> \NC \tbox{\externalfigure[...]} \NC ... \NC\AR > > You can find more box type in supp-box.tex Yes! I have never heared about this. Thank you very much! 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 ___