Re: [NTG-context] index formatting
On Sep 12, 2006, at 7:41 PM, Hans Hagen wrote: > should not happen, so i need a simple test doc -) > > there has been some code changes (related to collapsing page numbers > Hans, just downloaded the latest beta (2006.09.13 00:41 MK II), and the problem is gone. Thanks a lot for taking care of it so quickly! All best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] runMPgraphicstrue produces undefined figure
> Check your log file for > > systems : system commands are enabled Thanks, that was the problem. It was saying 'disabled' instead. The fix was to change /etc/texmf/texmf.cnf to enable write18. The shell_escape line has to be set to 't' rather than 'f', i.e.: shell_escape = t Actually, on my system (Ubuntu, a Debian derivative), changing the texmf.cnf file directly is not a good idea. Instead one should change the same line in /etc/texmf/texmf.d/95NonPath.cnf and then run 'update-texmf' as root to generate the texmf.cnf file. Warning: If you've enabled 'shell_escape', then don't run *TeX on untrusted files, in case they do anything malicious like 'rm -fr /'. Also now I see how I got fooled into thinking that write18 was already enabled. The one-line tex file from metafun-s.pdf contains \immediate\write18{echo It works}. When run it produces an "It works" whether or not write18 is enabled. If disabled: (./3.tex echo It works ) which made me think that all was okay. If enabled you get this: \write18 enabled. (./3.texIt works ) -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] the closing bracket (structuring syntax)
On Mon, 14 Aug 2006, Aditya Mahajan wrote: >> And what would be the opposite? >> >> For example \startquote ... \stopquote >> to something like {\MyQuote ... } > > AFAIK, there is no easy way to do this. One can use \aftergroup trickery. \def\MyQuote{\symbol[leftquote]\aftergroup\endMyQuote} \def\endMyQuote{\symbol[rightquote]} \starttext {\MyQuote This is a test} \mainlanguage[fr] {\MyQuote This is a test} \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] String single quote in \tt
On Tue, 12 Sep 2006, Taco Hoekwater wrote: > Hans Hagen wrote: >> Aditya Mahajan wrote: >> >>> Unless I misunderstood noligature, this does not work. >>> >>> \pdfnoligatures\tentt >>> \tt a = 'string' ; >>> \bye >>> >>> Still gives me rightquote. >>> >> we need to ask taco ... he has to run your snippet in his mind/memory > > The single straight quote in 'Typewriter Text' encoding is \char 13, > the directional one is in the ' slot (no, i do not know why) > > Something rude like > > \catcode`'=\active \def'{\char13 } > \tt a = 'string' ; > > works in this example, but may not be usable in practise. Thanks. I tried to modify this example to work with context, and the simplest solution is \catcode`'=\active \def'{\raise.6em\hbox{\char13}} \starttext \tt a = 'string' ; \stoptext One probably also needs \catcode``=\active \def`{\char0} I will experiment and see if this definition can be activated on every teletype font switch. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \bar missing in euler
On Wed, 13 Sep 2006, Hans Hagen wrote: > Aditya Mahajan wrote: >> On Fri, 21 Jul 2006, Aditya Mahajan wrote: >> > it's eul > > > \startmathcollection[eul:texnansi] >\definemathsymbol [breve] [accent] [tf] ["15] > \stopmathcollection > \startmathcollection[eul:ec] >\definemathsymbol [breve] [accent] [tf] ["08] > \stopmathcollection > > \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] > \setupbodyfont[e,10pt] > > $\breve e$ Thanks... here is a list of all accents. \startmathcollection[eul:texnansi] \definemathsymbol [acute][accent] [tf] ["13] \definemathsymbol [grave][accent] [tf] ["12] \definemathsymbol [ddot] [accent] [tf] ["A8] \definemathsymbol [tilde][accent] [tf] ["98] \definemathsymbol [bar] [accent] [tf] ["16] \definemathsymbol [breve][accent] [tf] ["15] \definemathsymbol [check][accent] [tf] ["14] \definemathsymbol [hat] [accent] [tf] ["88] \definemathsymbol [dot] [accent] [tf] ["5] % Why is mathring not defined?? \definemathsymbol [mathring] [accent] [tf] ["17] \stopmathcollection \startmathcollection[eul:ec] \definemathsymbol [acute][accent] [tf] ["1] \definemathsymbol [grave][accent] [tf] ["0] \definemathsymbol [ddot] [accent] [tf] ["4] \definemathsymbol [tilde][accent] [tf] ["3] \definemathsymbol [bar] [accent] [tf] ["9] \definemathsymbol [breve][accent] [tf] ["8] \definemathsymbol [check][accent] [tf] ["7] \definemathsymbol [hat] [accent] [tf] ["2] \definemathsymbol [dot] [accent] [tf] ["A] % Why is mathring not defined?? \definemathsymbol [mathring] [accent] [tf] ["6] \stopmathcollection Here I have replaced the \hat from the text fonts. math-eul.tex already redefines hat as \definemathsymbol [hat] [accent] [sy] ["DE] which appears to be too wide. This method works for most fonts that I tested with, but the result is UGLY (as expected). Check out the output of \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] \setupbodyfont[e,10pt] $ \acute b \grave b \ddot b \tilde b \bar b \breve b \check b \hat b \dot b $ I wish Hermann Zapf had added these accents in Euler. Hans, why is mathring accent missing from all collections except fourier? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with Context ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int: english/english
WN wrote > > Here is the minimal test file with the log, a bit strange that the exit > code is 0 > new beta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \bar missing in euler
Aditya Mahajan wrote: > On Fri, 21 Jul 2006, Aditya Mahajan wrote: > it's eul \startmathcollection[eul:texnansi] \definemathsymbol [breve] [accent] [tf] ["15] \stopmathcollection \startmathcollection[eul:ec] \definemathsymbol [breve] [accent] [tf] ["08] \stopmathcollection \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] \setupbodyfont[e,10pt] $\breve e$ >> On Tue, 11 Jul 2006, Hans Hagen wrote: >> >>> Adam Lindsay wrote: Makes sense. I'll look at the new definitions you just sent. On the "user" side, what do you imagine it would look like: \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] >>> ^^^ this one (actually it listens to the outer encoding) >> >> I am missing something. I tried the following (with the alpha, >> cont-new.tex contains the new definitions), but get not accent with >> the following code. >> >> \startmathcollection[euler:texnansi] >> \definemathsymbol [breve] [accent] [tf] ["15] >> \stopmathcollection >> \startmathcollection[euler:ec] >> \definemathsymbol [breve] [accent] [tf] ["08] >> \stopmathcollection >> >> >> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] >> \setupbodyfont[e,10pt] >> >> \starttext >> $\breve e$ >> \stoptext > > I am restarting one of my old threads, so please be patient. > > To restate the problem, some accents are missing from euler font. Adam > suggested using a hack along the lines of latex to pull those accents > from the text font, later Hans posted some code that took care of > encoding and stuff. Hans added the code to cont-new.tex with a example > usage in the comments. > > I could never get the example to work. > > Hans, the code in cont-new.tex is slightly differnt from the code that > you posted on the ML. The code on the ML works, while the code in > cont-new.tex does not. > > The attached file compares the output of the code in cont-new.tex with > the code posted on the ML. Can you look into it to see what is going > on. Since euler is the only incomplete math font, the definitions for > all the accents can be added to math-eul.tex. > > Aditya > > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- - 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] \bar missing in euler
On Fri, 21 Jul 2006, Aditya Mahajan wrote: On Tue, 11 Jul 2006, Hans Hagen wrote: Adam Lindsay wrote: Makes sense. I'll look at the new definitions you just sent. On the "user" side, what do you imagine it would look like: \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] ^^^ this one (actually it listens to the outer encoding) I am missing something. I tried the following (with the alpha, cont-new.tex contains the new definitions), but get not accent with the following code. \startmathcollection[euler:texnansi] \definemathsymbol [breve] [accent] [tf] ["15] \stopmathcollection \startmathcollection[euler:ec] \definemathsymbol [breve] [accent] [tf] ["08] \stopmathcollection \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] \setupbodyfont[e,10pt] \starttext $\breve e$ \stoptext I am restarting one of my old threads, so please be patient. To restate the problem, some accents are missing from euler font. Adam suggested using a hack along the lines of latex to pull those accents from the text font, later Hans posted some code that took care of encoding and stuff. Hans added the code to cont-new.tex with a example usage in the comments. I could never get the example to work. Hans, the code in cont-new.tex is slightly differnt from the code that you posted on the ML. The code on the ML works, while the code in cont-new.tex does not. The attached file compares the output of the code in cont-new.tex with the code posted on the ML. Can you look into it to see what is going on. Since euler is the only incomplete math font, the definitions for all the accents can be added to math-eul.tex. Aditya\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec] \setupbodyfont[e,10pt] \starttext \startbuffer \startmathcollection[euler:texnansi] \definemathsymbol [breve] [accent] [tf] ["15] \stopmathcollection \startmathcollection[euler:ec] \definemathsymbol [breve] [accent] [tf] ["08] \stopmathcollection $\breve e$ \stopbuffer Testing for code in \filename{cont-new.tex} \start \getbuffer\typebuffer \stop \startbuffer \unprotect \def\dohandlemathtoken#1% {\csname \ifmmode [EMAIL PROTECTED]@\outerencoding#1\endcsname [EMAIL PROTECTED]@\outerencoding [EMAIL PROTECTED]@\mathcollection#1\endcsname [EMAIL PROTECTED]@\mathcollection [EMAIL PROTECTED]@\nomathcollection#1\endcsname [EMAIL PROTECTED]@\nomathcollection \else\ifcsname\characterencoding#1\endcsname \characterencoding \else \nocharacterencoding \fi\fi\fi\fi \else \ifcsname\characterencoding#1\endcsname \characterencoding \else\ifcsname\nocharacterencoding#1\endcsname \nocharacterencoding [EMAIL PROTECTED]@\outerencoding#1\endcsname [EMAIL PROTECTED]@\outerencoding [EMAIL PROTECTED]@\mathcollection#1\endcsname \strippedcsname\mathematics [EMAIL PROTECTED]@\mathcollection [EMAIL PROTECTED]@\nomathcollection#1\endcsname \strippedcsname\mathematics [EMAIL PROTECTED]@\nomathcollection \else \nocharacterencoding \fi\fi\fi\fi\fi \fi #1\endcsname} \let\dohandlecommand\dohandlemathtoken \def\checkoutermathencoding {\ifx\outerencoding\empty \ifx\outerencoding\s!default\else \edef\outerencoding{\currentencoding}% \fi \fi} \startmathcollection[texnansi] \definemathsymbol [breve] [accent] [tf] ["15] \stopmathcollection \startmathcollection[ec] \definemathsymbol [breve] [accent] [tf] ["08] \stopmathcollection \prependtoks \checkoutermathencoding \to \everymathematics \let\outerencoding\empty $\breve e$ \stopbuffer \page Testing for code sent by Hans on the mailing list \start \getbuffer\typebuffer \stop \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] runMPgraphicstrue produces undefined figure
On Tue, 12 Sep 2006, Sanjoy Mahajan wrote: > I'm playing with simple files in order to learn metafun. The following > small example produces an undefined figure. It illustrates either a > context problem or, more likely, a confusion on my part. > > = cut here === > \runMPgraphicstrue > \starttext > > \startreusableMPgraphic{a} > fill fullcircle scaled 2cm; > \stopreusableMPgraphic > > \placefigure[here,none]{}{\reuseMPgraphic{a}} > \input tufte > \stoptext > = cut here === > > The figure is a square saying 'undefined'. Taking away the > \runMPgraphicstrue line produces the expected filled circle. > > I use a web2c distribution (linux) with > > context version 2006.08.08 21:51, > TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD Strange... It works fine here with ConTeXt ver: 2006.09.10 13:33 MK II fmt: 2006.9.10 int: english/english Normally, runMPgraphics is set to true in one of the files, so you do not need to set it to true. I have no idea why you should be getting 'undefined'. Check your log file for systems : system commands are enabled and system(mpost -progname=metafun -mem=metafun mptest-mpgraph)...executed. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with Context ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int: english/english
WN wrote: > Another important thing, how can I make sure, when I update or download > Context , it's a stable version > instead of a beta ? Looking at the entries on the mailinglist related to > the ''beta'' release, I wonder > if I have to use version control instead so I can always revert back to > the release which worked. > Or will the version control be built into the Context system instead, > just wondering ? > if you're not afraid for testing, take the beta (depends on if you asked for new features as well) otherwise take the current especially the current beta's are real beta's because i'm shuffling some code around (mk iv preparations) > savetxt(1,72.52364pt,8.26648pt,0.0pt) shifted (0,-0.0pt); > savetxt(2,135.12482pt,8.26648pt,2.1pt) shifted (0,-2.1pt); > ! TeX capacity exceeded, sorry [input stack size=1]. > [EMAIL PROTECTED]@testmp-mpgraph ->[EMAIL PROTECTED]@testmp-mpgraph > strange indeed 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] runMPgraphicstrue produces undefined figure
I'm playing with simple files in order to learn metafun. The following small example produces an undefined figure. It illustrates either a context problem or, more likely, a confusion on my part. = cut here === \runMPgraphicstrue \starttext \startreusableMPgraphic{a} fill fullcircle scaled 2cm; \stopreusableMPgraphic \placefigure[here,none]{}{\reuseMPgraphic{a}} \input tufte \stoptext = cut here === The figure is a square saying 'undefined'. Taking away the \runMPgraphicstrue line produces the expected filled circle. I use a web2c distribution (linux) with context version 2006.08.08 21:51, TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD It passes the write18 test given in the metafun-s.pdf manual (p.214 of the PDF file). -Sanjoy `A society of sheep must in time beget a government of wolves.' - Bertrand de Jouvenal ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with Context ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int: english/english
Hans, Here is the minimal test file with the log, a bit strange that the exit code is 0 Btw when I use only 1 \sometxt instead of the 2, the document compiles without errors and Context says it produced 1 page which it did, but the page does not contain any graphics. Another important thing, how can I make sure, when I update or download Context , it's a stable version instead of a beta ? Looking at the entries on the mailinglist related to the ''beta'' release, I wonder if I have to use version control instead so I can always revert back to the release which worked. Or will the version control be built into the Context system instead, just wondering ? Wim \starttext Minimal testfile \startMPcode numeric u; picture pic; u := 1cm; pic := \sometxt{versnelde klok}; pic := pic shifted (2u,2u); draw pic; pic := \sometxt{rechtlijnig bewegende klok}; pic := pic shifted (2u,3u); draw pic; \stopMPcode \stoptext >texmfstart texexec --autopdf --pdf testmp.tex TeXExec | processing document 'testmp.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file testmp.top TeXExec | using randomseed 753 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. (f:\context\usr\local\context\tex\texmf-local/web2c/natural.tcx) entering extended mode (./testmp.tex ConTeXt ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int: english/english language: language en is active system : cont-new loaded (f:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex color : palette rollover is available ) system : cont-old loaded (f:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (f:\context\usr\local\context\tex\texmf-local/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (f:\context\usr\local\context\tex\texmf-local/tex/context/user/cont-sys.tex) bodyfont: 12pt rm is loaded language: patterns nl->texnansi:texnansi->1->2:3 nl->ec:ec->2->2:3 fr-> texnansi:texnansi->3->2:3 fr->ec:ec->4->2:3 de->texnansi:texnansi->5->2:3 de->e c:ec->6->2:3 it->texnansi:texnansi->7->2:3 it->ec:ec->8->2:3 pt->texnansi:texna nsi->9->2:3 pt->ec:ec->10->2:3 hr->ec:ec->11->2:3 pl->pl0:pl0->12->2:3 pl->ec:e c->13->2:3 pl->qx:qx->14->2:3 cz->il2:il2->15->2:3 cz->ec:ec->16->2:3 sk->il2:i l2->17->2:3 sk->ec:ec->18->2:3 sl->ec:ec->19->2:3 ru->t2a:t2a->21->2:3 en->ec:e c->22->2:3 uk->ec:ec->23->2:3 us->ec:ec->24->2:3 agr->agr:agr->25->2:3 da->ec:e c->26->2:3 sv->ec:ec->27->2:3 af->ec:ec->28->2:3 no->ec:ec->29->2:3 deo->ec:ec- >30->2:3 es->ec:ec->31->2:3 ca->ec:ec->32->2:3 la->ec:ec->33->2:3 ro->ec:ec->34 ->2:3 tr->ec:ec->35->2:3 fi->ec:ec->37->2:3 hu->ec:ec->38->2:3 loaded specials: tex,postscript,rokicki loaded system : testmp.top loaded (./testmp.top specials: loading definition file tpd (f:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-tpd.tex specials: loading definition file fdf (f:\context\usr\local\context\tex\texmf-local/tex/context/base/spec-fdf.tex) specials: fdf loaded ) specials: fdf,tpd loaded ) systems : system commands are enabled (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (./testmp.tuo) (f:\context\usr\local\context\tex\texmf-local/tex/context/base/sort-def.tex) (f:\context\usr\local\context\tex\texmf-local/tex/context/base/sort-lan.tex) (./testmp.tuo) (./testmp.tuo) systems : begin file testmp at line 1 color : currentcolor (def) is not defined savetxt(1,72.52364pt,8.26648pt,0.0pt) shifted (0,-0.0pt); savetxt(2,135.12482pt,8.26648pt,2.1pt) shifted (0,-2.1pt); ! TeX capacity exceeded, sorry [input stack size=1]. [EMAIL PROTECTED]@testmp-mpgraph ->[EMAIL PROTECTED]@testmp-mpgraph ,1 [EMAIL PROTECTED]@testmp-mpgraph ->[EMAIL PROTECTED]@testmp-mpgraph ,1 [EMAIL PROTECTED]@testmp-mpgraph ->[EMAIL PROTECTED]@testmp-mpgraph ,1 [EMAIL PROTECTED]@testmp-mpgraph ->[EMAIL PROTECTED]@testmp-mpgraph ,1 [EMAIL PROTECTED]@testmp-mpgraph ->[EMAIL PROTECTED]@testmp-mpgraph ,1 [EMAIL PROTECTED]@testmp-mpgraph ->[EMAIL PROTECTED]@testmp-mpgraph ,1 ... l.16 \stopMPcode No pages of output. Transcript written on testmp.log. TeXExec | runtime: 1.912 >Exit code: 0 [EMAIL PROTECTED] wrote: > WN
Re: [NTG-context] no indent after figure
> Hi Wolfgang, > > use the following code because my old one worked only when > \setupfloats[indentnext=yes] was used. > > \unprotect > > \def\OTRONEdosomepagefloat#1[#2]% > {%\checkwaitingfloats{#1}% >\global\setbox#1\vbox > {\unvbox#1% > \vbox to \textheight > {\doifnotinset\v!high{#2}\vfill > \box\floatbox > \doifnotinset\v!low{#2}\vfill}% > \goodbreak}% >\doinsertfloatinfo >\nonoindentation} > > \protect Thank you! I'll try this. > Dont know I there are any sideeffects, you couls try to use the > code in yout file and response if you couls see any problems. > > Btw. are the ??xx (here ??bk) Variables document somewhere? > They are namespaces for the ConTeXt-Macros and ??bk stands for > "Blokken (floats)". Ahh! Dutch names. I searched for the real name of the figurenumber to solve an other problem I posted a few days ago. And so I was looking for the right präfix for float (figure) or caption (don't even know where that number lives). Grüße aus der Rhön Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] margintext style and more
Peter Rolf wrote: > >> > I don't think that there is any bookkeeping of the inmargin stuff. But > maybe I'm wrong. > \repositionmarginboxtrue experimental for a few years now -) 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] Homogeneous captions for figures
Renaud AUBIN wrote: > Hi all, > > I wanted to obtain to obtain an homogeneous formatting for my captions > whenever I use \placefigure or \placefloatcaption within combination, > so I've tried \setupcaption and \setupcaptions but > > >} > \p!doifinsetelse ...onefalse \edef \!!stringa {#3} > \ifx \!!stringa > \empty \el... > ...le \floatcaptionparameter }\c!align > {\let > \captionovershoot \!... ok, fixed, should have been {\floatcaptionparameter \c!align} (occasionally i'm adapting modules to this parameter stuff which saves space) 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 Context ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int: english/english
WN wrote: > When I compile my documents with the new version of Context (beta) > I get the following error (see below) with some of my metapost code which > uses \sometxt. > > Does anybody knows how to fix this ? > can you make a small test file? 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] Intermediate files in subdirectory
Fredrik Sjunnesson wrote: > > I will give the tools you suggest a try, maybe they are good enough. > you can also run texexec --purge .. which will clean up most of the files after a run 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] index formatting
Thomas A. Schmitz wrote: > Hi all, > > there is a problem with index formatting (I'm using the latest beta, > but have no idea if this was always the case or has been introduced > recently). My index is in two columns (the default, I believe). If an > item has several references, the lines doesn't break, but continues > into the margin or into column 2. Lines do break after the en-dash at > index ranges, so it looks like the space after the comma is non- > breakable. It's difficult to make a minimal example for that, but > what I see is this: > > Virgil 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 > > instead of > > Virgil 1, 2, 3, 4, > 4, 6, 7, 8, 9, > 10, 11, 12, 13 > > should not happen, so i need a simple test doc -) there has been some code changes (related to collapsing page numbers - 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] Making context produce dvi file.
Sanjoy Mahajan wrote: texexec --dvips yourfile >>> That works after excising some grqphics. Just as a matter of >>> curiosity, why is the parameter --dvips and not dvi? >>> >> because one can also say -dvipdfmx >> > > Trying a few tests here (TeXExec 6.2.0): 'texexec --dvi' seems > equivalent to running 'texexec --dvips'. > > And, a small point of disagreement with the old man entry for texexec: > 'texexec --output=dvi' produces pdf. > > line 116 in tex.rb in the ruby base path can be adapted: ['dvips','ps','dvi'] .each do |b| @@backends[b] = 'dvips' end untested > -Sanjoy > > `Never underestimate the evil of which men of power are capable.' > --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- - 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] Problem with Context ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int: english/english
When I compile my documents with the new version of Context (beta) I get the following error (see below) with some of my metapost code which uses \sometxt. Does anybody knows how to fix this ? Thanks Wim >texmfstart texexec --autopdf --pdf cart.tex TeXExec | processing document 'cart.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file cart.top TeXExec | using randomseed 1247 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. (f:\context\usr\local\context\tex\texmf-local/web2c/natural.tcx) entering extended mode (./cart.tex ConTeXt ver: 2006.09.11 14:37 MK II fmt: 2006.9.12 int: english/english ... color : currentcolor (def) is not defined savetxt(1,64.06398pt,7.43599pt,0.15399pt) shifted (0,-0.15399pt); ! TeX capacity exceeded, sorry [input stack size=1]. [EMAIL PROTECTED]@cart-mpgraph ->[EMAIL PROTECTED]@cart-mpgraph ,1 [EMAIL PROTECTED]@cart-mpgraph ->[EMAIL PROTECTED]@cart-mpgraph ,1 [EMAIL PROTECTED]@cart-mpgraph ->[EMAIL PROTECTED]@cart-mpgraph ,1 [EMAIL PROTECTED]@cart-mpgraph ->[EMAIL PROTECTED]@cart-mpgraph ,1 [EMAIL PROTECTED]@cart-mpgraph ->[EMAIL PROTECTED]@cart-mpgraph ,1 [EMAIL PROTECTED]@cart-mpgraph ->[EMAIL PROTECTED]@cart-mpgraph ,1 ... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] String single quote in \tt
Hans Hagen wrote: > Aditya Mahajan wrote: > >> Unless I misunderstood noligature, this does not work. >> >> \pdfnoligatures\tentt >> \tt a = 'string' ; >> \bye >> >> Still gives me rightquote. >> > we need to ask taco ... he has to run your snippet in his mind/memory The single straight quote in 'Typewriter Text' encoding is \char 13, the directional one is in the ' slot (no, i do not know why) Something rude like \catcode`'=\active \def'{\char13 } \tt a = 'string' ; works in this example, but may not be usable in practise. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] String single quote in \tt
Aditya Mahajan wrote: > Unless I misunderstood noligature, this does not work. > > \pdfnoligatures\tentt > \tt a = 'string' ; > \bye > > Still gives me rightquote. > we need to ask taco ... he has to run your snippet in his mind/memory 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] Captions in Combinations
Pepe Barbe wrote: > Hello, > > In my layout settings I have the following: > > \setupcaptions[ headstyle=\ss\bf,style=\tfx ] > > \setupcombinations[ style={\tfx\em} ] > > Hoping that the captions in the figures and in the combinations would > have the same size, but they don't. Any ideas why this might be? > > T can you make a minimal sample file 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] Captions in Combinations
On 9/12/06, Pepe Barbe <[EMAIL PROTECTED]> wrote: > In my layout settings I have the following: > > \setupcaptions[ headstyle=\ss\bf,style=\tfx ] > > \setupcombinations[ style={\tfx\em} ] > > Hoping that the captions in the figures and in the combinations would > have the same size, but they don't. Any ideas why this might be? This is very weird but I noticed the problem might be because I am using inline Math in the captions. The caption of the entire combination has mixed test and math and the size of the math is larger than the text. Any ideas why this happens? Pepe ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] no indent after figure
On Tue, 12 Sep 2006 10:58:26 +0200 "Wolfgang Werners-Lucchini" <[EMAIL PROTECTED]> wrote: > > The following example solves now your problem on my > > machine without the ugly solution with \indentation. > > > > \unprotect > > > > \def\OTRONEdosomepagefloat#1[#2]% > > {%\checkwaitingfloats{#1}% > >\global\setbox#1\vbox > > {\unvbox#1% > > \vbox to \textheight > > {\doifnotinset\v!high{#2}\vfill > > \box\floatbox > > \doifnotinset\v!low{#2}\vfill}% > > \goodbreak}% > >\doinsertfloatinfo > >\dochecknextindentation\??bk > >\dorechecknextindentation} > > > > \protect > > Hi Wolfgang, use the following code because my old one worked only when \setupfloats[indentnext=yes] was used. \unprotect \def\OTRONEdosomepagefloat#1[#2]% {%\checkwaitingfloats{#1}% \global\setbox#1\vbox {\unvbox#1% \vbox to \textheight {\doifnotinset\v!high{#2}\vfill \box\floatbox \doifnotinset\v!low{#2}\vfill}% \goodbreak}% \doinsertfloatinfo \nonoindentation} \protect > > \setupindenting[medium,yes] > > \setupfloat[figure][default={page,high,none}] > > \setupfloats[indentnext=yes] > > > > \starttext > > > > \dorecurse{2}{\input knuth \par} > > > > \placefigure > > [] > > [fig:bild] > > {Text} > > {\hrule width 6cm height 14cm depth 0cm\relax} > > > > \dorecurse{3}{\input knuth \par} > > > > \stoptext > > > > Hope it works for you too. > > > > Wolfgang > > Yes, it works! I can see no problems in my created minimum example file \setupindenting[medium,yes] \setupwhitespace[medium] \setupfloat[figure][default={page,high,none}] \starttext \dorecurse{2}{\input knuth \par} \placefigure [] [fig:bild] {Text} {\hrule width 6cm height 14cm depth 0cm\relax} \dorecurse{3}{\input knuth \par} \placefigure [] [fig:bild] {Text} {\hrule width 6cm height 14cm depth 0cm\relax} \setupindenting[medium,no] \dorecurse{3}{\bf\input knuth \par} \placefigure [] [fig:bild] {Text} {\hrule width 6cm height 14cm depth 0cm\relax} \setupindenting[medium,yes] \dorecurse{3}{\tf\input knuth \par} \stoptext > But aren't there any unwanted sideeffects? > There must be a good reason for Hans, to NOT include this in the > output-routine. Dont know I there are any sideeffects, you couls try to use the code in yout file and response if you couls see any problems. To make your life easier put the attached file cont-loc.tex in the directory of your ConTeXt installation. ConTeXt will now load this file with my patch on every run and you dont need to put the patch in one of your project files. > Btw. are the ??xx (here ??bk) Variables document somewhere? > The ??xx Variables defined with the \definesystemvariable in the mult-ini Module and most of them are set in the mult-sys Module. They are namespaces for the ConTeXt-Macros and ??bk stands for "Blokken (floats)". Happy TeXing Wolfgang (from Bavaria) \unprotect \def\OTRONEdosomepagefloat#1[#2]% {%\checkwaitingfloats{#1}% \global\setbox#1\vbox {\unvbox#1% \vbox to \textheight {\doifnotinset\v!high{#2}\vfill \box\floatbox \doifnotinset\v!low{#2}\vfill}% \goodbreak}% \doinsertfloatinfo \nonoindentation} \protect \endinput ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Captions in Combinations
Hello, In my layout settings I have the following: \setupcaptions[ headstyle=\ss\bf,style=\tfx ] \setupcombinations[ style={\tfx\em} ] Hoping that the captions in the figures and in the combinations would have the same size, but they don't. Any ideas why this might be? Thanks, Pepe ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] no indent after figure
> The following example solves now your problem on my > machine without the ugly solution with \indentation. > > \unprotect > > \def\OTRONEdosomepagefloat#1[#2]% > {%\checkwaitingfloats{#1}% >\global\setbox#1\vbox > {\unvbox#1% > \vbox to \textheight > {\doifnotinset\v!high{#2}\vfill > \box\floatbox > \doifnotinset\v!low{#2}\vfill}% > \goodbreak}% >\doinsertfloatinfo >\dochecknextindentation\??bk >\dorechecknextindentation} > > \protect > > \setupindenting[medium,yes] > \setupfloat[figure][default={page,high,none}] > \setupfloats[indentnext=yes] > > \starttext > > \dorecurse{2}{\input knuth \par} > > \placefigure > [] > [fig:bild] > {Text} > {\hrule width 6cm height 14cm depth 0cm\relax} > > \dorecurse{3}{\input knuth \par} > > \stoptext > > Hope it works for you too. > > Wolfgang Yes, it works! But aren't there any unwanted sideeffects? There must be a good reason for Hans, to NOT include this in the output-routine. Btw. are the ??xx (here ??bk) Variables document somewhere? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Making context produce dvi file.
Mojca Miklavec wrote: > On 9/11/06, John R. Culleton wrote: > >> On Monday 11 September 2006 11:21, Hans Hagen wrote: >> >>> Mari Voipio wrote: >>> On Mon, 11 Sep 2006, John R. Culleton wrote: > But how do I get Context to produce a dvi file? > >>> texexec --dvips yourfile >>> >>> Hans >>> >> Thanks! >> That works after excising some grqphics. Just as a matter of >> curiosity, why is the parameter --dvips and not dvi? >> > > Simple explanation: because it generates a PostScript file as well ;) > > But I'm supporting you in that question. I would also prefer to have a > switch --dvi which would skip the "dvips" postprocessing part. > --nobackend beware: there is no 'dvi' as such, there is alwasy backend specific code involved > And an answer to those who were wondering if ConTeXt doesn't produce > dvi by default. Yes, it did once. And still does if you're using the > old perl script "texexec.pl" which is becomming more and more > deprecated (and not supported any more anyway). > > 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] DTD
Hello Peter, >>> is there a public DTD (RNC prefered) for the context macro format in >>> cont-en.xml? >> >> There is http://dl.contextgarden.net/texshow/interface.rnc >> > Thanks Patrick and Hans. I searched for something like this on the wiki, > but found no link to it. Well, I've put it on the url above after I've seen your mail. I'll add it to a wiki page now. > And also in RNC, it couldn't be better :) Right. And if you have any improvements, just tell me. Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context