Re: [NTG-context] Closing PDF file at each run
Hooman Javidnia wrote: but still the PDF is not refreshed for the second run. I am using Acrobat 7. I read in WinEdt's mailing list that Adobe Acrobat has changed its caption from version 6 onwards. Could this be a problem related to the versions of Acrobat? I wouldn't think so. Perhaps texexec cannot find pdfopen? (I am out of my league now, not using windows myself) Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Closing PDF file at each run
Hooman Javidnia wrote: but still the PDF is not refreshed for the second run. I am using Acrobat 7. I read in WinEdt's mailing list that Adobe Acrobat has changed its caption from version 6 onwards. Could this be a problem related to the versions of Acrobat? it works ok here; no caption i sinvolved afaik does it work from the console? 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mswincontext.zip installation
� wrote: Hi, thanks ! that did it for me... I did (a) and then (b) :) Here is the sequence I used (assuming C:\Programs\context) Start-Run-cmd cd C:\Programs\context cdemo.bat Then I closed the SciTe thing but I remained in the cmd. Then, in one line as Mojca says: C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex And texexec --make --all Then I closed the cmd, started by double click the cdemo.bat and voila ! there is also a colsole in scite itself (just key in texexec --make --all in the log pane) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with encoding, XML and writetolist...
� wrote: Hi all, I have problem with chars encoding now; I have updated ConTeXt sometimes in January; before the time I was using old (year) version. In this prehistorical version the problem was not present. What is the stuff? The following code generates content with titles without spaces -- accented characters are replaced with \char XXX variant, so during reading TUI line TeX gobbles a space after XXX as a part of number syntax rule. can you send me a zip with the test file so that the 8 bit chars are ok? 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] wrong order of content-list items if using balanced columnsets
Hans Hagen wrote: Vit Zyka wrote: Hello Wizards, the next example illustrates the problem with wrong order of content-list items if using balanced columnsets: - \setuplayout[grid=yes,topspace=1cm,bottomspace=1cm,height=middle] \showgrid \definecolumnset[A][n=2,balance=yes] \setupcolumnsetlines[A][1][1][21] \setupcolumnsetlines[A][1][2][21] \definecolumnset[B][n=2,balance=yes] \starttext \startcolumnset[A] \section{Knuth} \dorecurse{2}{\input knuth \endgraf} \stopcolumnset \placeongrid{\hairline} \startcolumnset[B] \section{Zapf} \dorecurse{1}{\input zapf \endgraf} \blank Content: \placecontent[criterium=all] \stopcolumnset \stoptext Problem is that the second section (Zapf) is inserted to .tui before the first one (Knuth). My observation: on the page where one columnset (A) is closed by \setupcolumnsetlines and the second (B) continues, .tuo contains marks from B firstly. This makes book content unsable in this configuration. Any solutions? I am thinking about: Proper order writting to .tuo or to sort items according to mark number - it is correct (not sure if it is implemented?). it's a kind of bug; how about swapping the order: (page-lyr.tex) \def\settextpagecontent#1#2#3% #2 and #3 will disappear {\doifelselayerdata{OTRTEXT} {\setbox#1\hbox to \makeupwidth {\startoverlay {\tightlayer[OTRTEXT]} % first, otherwise problems with toc {\normalsettextpagecontent{#1}{#2}{#3}\box#1} \stopoverlay}% \dp#1\zeropoint}% {\normalsettextpagecontent{#1}{#2}{#3}}} Slaaav! (you really don't want to know what happens there -) World record document with 40 balanced columnsets says it is OK. Thanks you Hans Vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \input introduces space
Hello, \input seems to introduce a space. Example: \starttext \immediate\write18{echo -n X bla.tex} X\input bla\relax X \stoptext How could I get rid of this space? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \input introduces space
Hi Peter, Not the \input command, but the end-of-line in the inputted file is creating the space, indirectly. TeX normally appends a character with the current value of \endlinechar to each line of an input-ed file, and that character is later converted to a space. Setting \endlinechar to -1 temporarily is a possibility, another is writing a percent sign to the end of the line, yet another is ending the written line with \relax (or a similar space-gobbling command), and finally changing the catcode of the current \endlinechar to 9 (ignored) also works. Cheers, Taco Peter Münster wrote: Hello, \input seems to introduce a space. Example: \starttext \immediate\write18{echo -n X bla.tex} X\input bla\relax X \stoptext How could I get rid of this space? Cheers, Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \input introduces space
Taco Hoekwater wrote: Setting \endlinechar to -1 temporarily is a possibility, another is writing a percent sign to the end of the line, yet another is ending the written line with \relax (or a similar space-gobbling command), and finally changing the catcode of the current \endlinechar to 9 (ignored) also works. Here is a file demonstrating all four: \starttext % 1 \immediate\write18{echo -n X bla1.tex} X{\endlinechar=-1 \input bla1 }X % 2 \immediate\write18{echo -n X\letterpercent bla2.tex} X\input bla2 X % 3 \immediate \write18 {echo -n X\letterbackslash\letterbackslash relax bla3.tex} X\input bla3 X % 4 \immediate\write18{echo -n X bla4.tex} X{\catcode`\^^M=9 \input bla4 }X \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \input introduces space
On Tue, 28 Feb 2006, Taco Hoekwater wrote: Taco Hoekwater wrote: Setting \endlinechar to -1 temporarily is a possibility, another is writing a percent sign to the end of the line, yet another is ending the written line with \relax (or a similar space-gobbling command), and finally changing the catcode of the current \endlinechar to 9 (ignored) also works. Here is a file demonstrating all four: Hello Taco, thanks a lot for your solutions, one can even omit the -n now! Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \input introduces space
Taco Hoekwater wrote: Hi Peter, Not the \input command, but the end-of-line in the inputted file is creating the space, indirectly. TeX normally appends a character with the current value of \endlinechar to each line of an input-ed file, and that character is later converted to a space. Setting \endlinechar to -1 temporarily is a possibility, another is writing a percent sign to the end of the line, yet another is ending the written line with \relax (or a similar space-gobbling command), and finally changing the catcode of the current \endlinechar to 9 (ignored) also works. Cheers, Taco Peter M�nster wrote: Hello, \input seems to introduce a space. Example: \starttext \immediate\write18{echo -n X bla.tex} X\input bla\relax X \stoptext How could I get rid of this space? Cheers, Peter in addition to taco's answers: X\ignorespaces \input bla\relax \removeunwantedspaces X can help you out; btw, can you wikify taco's response? somewhere under 'how tex reads input'; in due time we can then add some additional info about how scantokens etc behave (everyeof stuff and such) 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mswincontext.zip installation
And me to! Thanks! Would some kind soul care to write up on the Wiki the best way to update the windows stand alone version? Please. Keith -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jose Ignacio Marín Alberdi Sent: 27 February 2006 21:58 To: mailing list for ConTeXt users Subject: Re: [NTG-context] mswincontext.zip installation Hi, thanks ! that did it for me... I did (a) and then (b) :) Here is the sequence I used (assuming C:\Programs\context) Start-Run-cmd cd C:\Programs\context cdemo.bat Then I closed the SciTe thing but I remained in the cmd. Then, in one line as Mojca says: C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex And texexec --make --all Then I closed the cmd, started by double click the cdemo.bat and voila ! Thanks ! jima -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Mojca Miklavec Enviado el: lunes, 27 de febrero de 2006 13:08 Para: mailing list for ConTeXt users Asunto: Re: [NTG-context] mswincontext.zip installation Jose Ignacio Marín Alberdi wrote: Hi all, I am experiencing some trouble using mswincontext.zip. I have properly installed perl and ruby as the wiki says. (http://wiki.contextgarden.net/Windows_Installation#Stand-alone_ConTeXt_dist ribution) But when it comes to use cdemo.bat I got: texmfstart newtexexec.rb --autopdf --pdf demo-tex.tex TeXExec | processing document 'demo-tex.tex' TeXExec | provide ctx file TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | tex engine: pdfetex TeXExec | tex format: cont-en TeXExec | progname: context This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5) \write18 enabled. I can't find the format file `cont-en.fmt'! TeXExec | runtime: 2.594 Exit code: 0 I thought this was a click and go package installation. I guess I have to do some format creation and all that, but I have nothing TeXy installed (just the mswincontext.zip). What do I need? Sorry, this step is missing on Wiki (forgotten). Can you try the following: Open command line (Start-Run-cmd) and do either a) or b): a) cd to directory where cdemo.bat resides, execute it and exit (this will set the path for you) b) execute (this should be in one line): C:\Programs\context\usr\local\context\tex\setuptex.bat C:\Programs\context\usr\local\context\tex (change C:\Programs\context to the proper folder) Then execute texexec --make --all The last one is the crucial step for making formats. Perhaps making formats should be present in menu in Scite (perhaps it already is, I can't check from here). Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 27/02/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 27/02/2006 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] framing columns
Hans, Thanks for your suggestion, but in the meantime I worked hard to find a solution and now do a framedtext within a framed text. Calculating the width and height of the inner framedtext from the surrounding one's offset and the margin wanted. After puzzling out that location=middle can put the inner framedtext centered it seems to work for me. But it is a bit more work than the solution you are showing me here; surely I will try your suggestion because it seems so much simpler. I must admit I would not have found out on my own about the two uses of \hsize. As for your question: can you put that in the wiki? I have not the faintest idea of how to put things in a wiki. Not even do I understand the phenomenon wiki. yours sincerely, dr. H. van der Meer On Feb 28, 2006, at 2:42, Hans Hagen wrote: Hans van der Meer wrote: A nasty problem arises when I try to enclose columns into a framedtext and at the same time want to typeset it narrower inside the frame. 1. framedtext: columns will not typeset, simplecolumns does 2. narrower: columns honors narrowing, simplecolumns does not. Now I am caught between two impossibilities. Is it an option that simplecolumns will also be honoring startnarrower..stopnarrower? Is there another, simple solution? \framed[width=\hsize]\bgroup \startnarrower \setlocalhsize \hsize\localhsize \startsimplecolumns \input tufte \par \input tufte\par \stopsimplecolumns \stopnarrower \egroup - when no width is given, framed will to to find the best fit - you set the hsize according to the narrower before the columns can you put that in the wiki? 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupbackgrounds?
Hans, ah, just omit the \showframe since it's built on top of the background mechanism and when activated it disables backgrounds Thanks, I would never have thougt of that. yours sincerely, dr. H. van der Meer On Feb 28, 2006, at 2:08, Hans Hagen wrote: Hans van der Meer wrote: I cannot get backgrounds to work as I understand from the manual. This example is from the manual: \setupcolors[state=start] \setupinteraction[state=start] % don't if needed, manual p. 122 seems to suggest it \setupbackgrounds[header,text,footer][text] [background=color,backgroundcolor=darkcyan] \showframe This does not show coloring of the indicated area. It colors only when the first option is [page] or [paper] and then it colors the whole page. So I never get coloring in the indicated parts. ah, just omit the \showframe since it's built on top of the background mechanism and when activated it disables backgrounds 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \input introduces space
On Tue, 28 Feb 2006, Hans Hagen wrote: btw, can you wikify taco's response? somewhere under 'how tex reads input'; in due time we can then add some additional info about how scantokens etc behave (everyeof stuff and such) Of course, but it won't be possible the next 10 days, so be patient. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] some commands still use texexec without texmfstart
Hi, I use a standalone context distribution in parallel with miktex. The way miktex is configured, it provides a texexec.exe file in its bin directory. Context provides a texexec.bat file in its bin directory. Normally, texexec is supposed to be run using texmfstart which picks texexec.rb from the script directory and everything works fine. There are however some macros that call texexec without texmfstart. As a result the miktex texexec (texexec.exe) is called over context's texexec.bat. I am listing the files that call raw texexec. Shouldn't all of these be called using texmfstart? 1. core-fig.tex has a line \executesystemcommand{texmfstart texexec.pl --batch --pdf #1 #3}} Notice the texexec.pl 2. page-app.tex has a line \executesystemcommand{texexec \bufferprefix\@@texapp.tex --once --batch} No texmfstart 3. supp-mps.tex has a definition \def\executeMPTEX#1% {texexec } No texmfstart Some support scripts also use texexec without texmfstart 1. mptopdf.pl has a line $mpbin = 'texexec --mptex $PassOn' } 2. texfont.pl has if ($show) { system (texexec --once --silent $texfile) } 3. texsync uses system(texexec --make --alone #{str}) 4. ctxtools.rb uses one = texexec --make --alone --all #{interface} two = texexec --batch --silent --interface=#{interface} x-set-01 5. pdftrimwhite uses $result = `texexec --batch --once --purge $resultfile` } 6. makempy.pl uses $tex{context} = texexec --batch --once --interface=en --pdf ; -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texexec.ini not read
I was trying to make the stand along context work with cygwin using cygwin ruby. Following the advice on the wiki of adding /scripts/context/ruby to rubylib, everything works fine. However, I am not able to enable write18. I copied texexec.rme to texexec.ini and added -shell-escape to all set TeXPassString in texexec.ini. However, I still get system(mpost .) disabled in my log file. Reading through newtexexec.rb it seems that it does not check the ini file. Is this correct? Or am I missing something. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Search in ConTeXt PDF files
Hi, HansI uploaded a small test file with its pdf in a zip file (46.7 kb) to this link: http://rapidshare.de/files/14396912/teste.zip.htmlI searched the word Kephalaia, which appears in the header, but Acrobat (v. 7.0.7) can not find the word...GreetingsMarcus ViniciusHans Hagen [EMAIL PROTECTED] wrote: Marcus Vinicius Mesquita de So wrote: Hi! Strangely Acrobat does not find words in headers. Did this ocurred already to anyone?can you make a small pdf file that we can test?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-___ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Closing PDF file at each run
Hooman Javidnia a écrit : Hi, When compiling a file in SciTE using F7, if the file, is already open in Adobe Acrobat, the compilation stops and asks for a new file name to write the PDF file to. I think the normal behavior would be to automatically close the current instance of the file in Acrobat and compile it again. Is there something wrong with my installation, or this is a bug? Regards, -- Hooman Hi. This is interesting, since I have the same problem with WinEdt and Acrobat (on Windows). I had notice that is there is not input file in my ConTeXt file, then, when I compile by WinEdt interface, the pdf file is closed with no problem. If I use an \input file.tex command in the ConTeXt file, then one ask me a file name for the pdf, since the file can not be closed automatically. I had consult WinEdt mailing list too, and no solution there. I have no solution, but from the symtom I describe, I suspect this is a ConTeXt thing... Fabrice. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Closing PDF file at each run
On Tue, 28 Feb 2006, Hans Hagen wrote: Hooman Javidnia wrote: but still the PDF is not refreshed for the second run. I am using Acrobat 7. I read in WinEdt's mailing list that Adobe Acrobat has changed its caption from version 6 onwards. Could this be a problem related to the versions of Acrobat? it works ok here; no caption i sinvolved afaik does it work from the console? No, it doesn't work. From the messeage at the end of the compilation, I can see that 'pdfopen' can't be found on the system. Taco's guess was correct. Is this command part of TeX implementation or I should download it from somewhere? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec.ini not read
--- On Feb 28, Aditya Mahajan wrote --- I was trying to make the stand along context work with cygwin using cygwin ruby. Following the advice on the wiki of adding /scripts/context/ruby to rubylib, everything works fine. However, I am not able to enable write18. I copied texexec.rme to texexec.ini and added -shell-escape to all set TeXPassString in texexec.ini. However, I still get system(mpost .) disabled in my log file. Reading through newtexexec.rb it seems that it does not check the ini file. Is this correct? Or am I missing something. Strange. If I run the command for dos command prompt, I get system (mpost .) executed It seems that texexec is looking at different profiles under cygwin. Or rather, for some reason texexec can not find the correct file in cygwin. I am attaching both log files. There is not much difference there. It seems that I still need to work with cmd rather than bash :-( Any hints will be appreciated. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context