Re: [NTG-context] catcode problems (mkiv)
On 01/14/2011 05:52 PM, Peter Rolf wrote: What is the best way to 1. deal with the "%" character in ctxlua? Use \startluacode \stopluacode instead of ctxlua. 2. print significant spaces? My current 'solution' for 2. is writing to a tex buffer instead and then using \bgroup\obeyspaces\getbuffer[textext]\egroup Significant spaces are always nasty. You could convert them to "~" (of course then it does not break across lines) or "\ ". Best wishes, Taco ___ 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] Downloading long urls
Hi, While downloading urls, context santizes the filename but does not check the length of the url. So, one can end up with a situation where the filename is too long for the operating system to handle. For example, the following fails on 32bit linux. \enabletrackers[resolvers.schemes] \startluacode local report_webfilter = logs.new("thirddata.webfilter") local url = "http://www.bing.com/search?q=AreallyreallylongstringjusttoseehowthingsworkordontworkAreallyreallylongstringjusttoseehowthingsworkordontworkAreallyreallylongstringjusttoseehowthingsworkordontworkAreallyreallylongstringjusttoseehowthingsworkordontworAreallyreallylongstringjusttoseehowthingsworkordontworkkAreallyreallylongstringjusttoseehowthingsworkordontwork"; local specification = resolvers.splitmethod(url) local file = resolvers.finders['http'](specification) or "" if file and file ~= "" then report_webfilter("saving file %s", file) else report_webfilter("download failed") end \stopluacode \normalend Is there a robust way to avoid this problem? One possibility is that in data-sch.lua instead of local cleanname = gsub(original,"[^%a%d%.]+","-") use local cleanname = md5sum(original) What do you think? 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] Fullpage does not work after updating minimals
Hi Wolfgang, \usemodule[fullpage][style={in,empty}] \starttext Bla-bla \stoptext now gives system : module fullpage loaded (c:/contextminimal/texmf-context/tex/context/third/fullpage/t-fullpage.mkiv loading : ConTeXt User Module / Fullpage ! Undefined control sequence. system > error on line 244 in file test1.tex: Undefined control sequence ... l.244 \definenamespace ? Regards, Vyatchesav ___ 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] How to invoke Unicode symbols?
The following example does not work, while the font (Symbola) is found. Works here. Can you try it with a clean installation! Works, indeed! Thanks a lot, as always! ) Is \fontchar a hack or 'official' command? If the latter, it deserves to be wikified. -- Best Regards, Vyatcheslav Yatskovsky ___ 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] \e!start in lua
What is the best way to define the equivalent of \setvalue{\e!start\NAME}{...} in lua. e_start = ?? context.setvalue(e_start .. name, "...") Thanks, 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 ___
Re: [NTG-context] \startquotation, grid and footnote
Am 15.01.2011 um 11:44 schrieb Oliver Heins: > Hello, > > I have to typeset paragraphed quotations in a smaller font (and maybe > a smaller baselineskip, but this is not necessary) and with larger > margins. However, after the quotation, the main text has to be on the > grid again. > >Main Text Main Text >Main Text (on grid) >Main Text Main Text >Main Text (on grid) >Main Text Main Text > > quotation text > (need not to be > on grid, in a > smaller font) > quotation text > >Main Text Main Text >Main Text (on grid) >Main Text Main Text >Main Text (on grid) >Main Text Main Text > > > I tried to use contexts quotation-mechanism, but it puts quotationmarks > around the quotation, which is not only unnecessary (as the smaller font > size marks the paragraph as a quotation already), but a problem, because > footnotemarks appear right in front of the ending quotation mark > (»quot¹« instead of »quot«¹, which would be right). > > Footnotes seem to be a bigger problem. When using the linecorrection > mechanism (either with \start|\stoplinecorrection and with > \placeongrid), the footnotetexts don't get typeset at all. They seem to > get lost within the linecorrection environment. > > TIA for your help, > olli > > > \setuppapersize[A5][A4] > \setuplayout[location=middle, > marking=on, > offset=0mm, > grid=yes, > ] > > \mainlanguage[de] > \setuplanguage[de][leftquotation=\rightguillemot,rightquotation=\leftguillemot] With MkIV you can just write \setuplanguage[de][leftquotation=»,rightquotation=«] > \setupquotation[ > before={\startlinecorrection[blank]\noindentation}, > after={\stoplinecorrection}, > style=\tfx] \setupdelimitedtext [blockquote] [spacebefore=line, style=\tfx] > […] > > \startquotation > \getbuffer[quot]\footnote{foobar} > \stopquotation \startblockquote … \stopblockquote 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] \startquotation, grid and footnote
I forgot to say that I use mkiv. olli -- Oliver Heins he...@sopos.org http://www.sopos.org/olli GPG: F27A BA8C 1CFB B905 65A8 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ 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] \startquotation, grid and footnote
Hello, I have to typeset paragraphed quotations in a smaller font (and maybe a smaller baselineskip, but this is not necessary) and with larger margins. However, after the quotation, the main text has to be on the grid again. Main Text Main Text Main Text (on grid) Main Text Main Text Main Text (on grid) Main Text Main Text quotation text (need not to be on grid, in a smaller font) quotation text Main Text Main Text Main Text (on grid) Main Text Main Text Main Text (on grid) Main Text Main Text I tried to use contexts quotation-mechanism, but it puts quotationmarks around the quotation, which is not only unnecessary (as the smaller font size marks the paragraph as a quotation already), but a problem, because footnotemarks appear right in front of the ending quotation mark (»quot¹« instead of »quot«¹, which would be right). Footnotes seem to be a bigger problem. When using the linecorrection mechanism (either with \start|\stoplinecorrection and with \placeongrid), the footnotetexts don't get typeset at all. They seem to get lost within the linecorrection environment. TIA for your help, olli \setuppapersize[A5][A4] \setuplayout[location=middle, marking=on, offset=0mm, grid=yes, ] \mainlanguage[de] \setuplanguage[de][leftquotation=\rightguillemot,rightquotation=\leftguillemot] \setupquotation[ before={\startlinecorrection[blank]\noindentation}, after={\stoplinecorrection}, style=\tfx] \def\begquote{% \placeongrid[low]\bgroup \rightskip=10mm \leftskip=10mm \baselineskip=13pt \blank[small] \noindentation\small } \def\endquote{% \blank[small] \egroup } \startbuffer[quot] Ein autobiografischer Spielfilm ohne Bekenntnis des Regisseurs und ohne dessen Verkörperung einer Figur wird nur als fiktionale Biografie verstanden. Ein autobiografischer Spielfilm ohne Bekenntnis des Regisseurs, aber mit dessen Verkörperung einer fiktionalen Figur wird zumindest selbstreflexiv gedeutet. \stopbuffer \showgrid \starttext \input tufte \startquotation \getbuffer[quot]\footnote{foobar} \stopquotation \input tufte \begquote \getbuffer[quot]\footnote{barbaz} \endquote \input tufte \stoptext -- Oliver Heins he...@sopos.org http://www.sopos.org/olli GPG: F27A BA8C 1CFB B905 65A8 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ 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 ___