Re: [NTG-context] small caps italic and font switching inside math
On Thu, 29 Jun 2006, Mojca Miklavec wrote: > On 6/28/06, Taco Hoekwater wrote: >> Aditya Mahajan wrote: >>> Some catcode trickery might work. This is all I could manage. >> >> This does not work well, because >> >> HSO\low{4}\high{-} >> >> is not correct. > > True, but if I'm aware of it, I can use \lohi{4}{$-$} if needed, which > works even better in some cases, see below. Or use some more catcode trickery to ensure that - is equivalent to \mathematics{-} ;) > I converted the document from LaTeX and I didn't came to the idea of > using low and high (perhaps just because that's "not possible" > there). Latex is not all that bad :) It has \textsuperscript and \textsubscript (though most people still write 29$^\text{th}$ June rather than 29\textsuperscipt{th} June) > You could compare it to {\bf How to loose a guy in $10$ days}. > > I have a strange feeling that handling fonts in math is rather > limited, but no knowledge how to fix anything (just remembering that I > still don't know how to properly switch to bold math with some other > fancy font except with dirty tricks). The wrapping in \hbox is not that bad. A lot of math trickery happens inside a \hbox. The example on contextgarden (http://wiki.contextgarden.net/Bold_Math) is not too different from how bm.sty implements bold symbols in latex (which is the best bold math implementation in latex, AIUI). However, the \boldmath definition on contextgarden lacks 1. Use of pmb (poor man's bold) when a true bold character is not present. \boldsymbol{\sum} does not work. 2. Does not take care of the math spacing \formula{ a \boldsymbol{=} a } does not look correct. 3. Does not take care of delimiters \formula { \boldsymbol{\left(}\frac 1n\right)} does not work. 4. bm.sty goes into some trouble to define bold accents. So \bm{\hat}{a} produces a bold accent over a non-bold a. (I can not understand why would someone ever use that). Hans, why is [boldmath] not defined by default in all the typescripts? > I guess that it should be possible to remember the font before > switching to math and then switch to that font again, but that's all > black magic for me. A site on ConTeXt garden solves that for titles in > such a way that there's an additional command provided which also > appends bold to all the mathematics in titles, but that's useful for > titles only. It can be used everywhere. For example \def\myrmbf{\boldmath\rm\bf} {\myrmbf How to loose a guy in $10$ days} It will be nice if one could write \def\mybf{\boldmath\previousfont\bf} Maybe what is needed is a \beforemathswitch token set. Then one could do \appendtoks \boldmath to \beforemathswitch Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie questions
From:Thomas Moore <[EMAIL PROTECTED]> > \setuppapersize[letter] You want \setuppapersize[letter][letter] otherwise you get letter sized pages imposed on A4 paper (not widely available in Pomona probably!) because the default value for the second argument is A4. You might get lucky and end up with letter pages anyway if you have the right defaults in dvips, but that's a bit fragile (and probably direct pdf output would be on A4 paper). In an earlier thread I'd asked that the default be whatever the first argument is, but that idea was rejected on the (reasonable) grounds that the change would break too many documents. -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] small caps italic and font switching inside math
On 6/28/06, Taco Hoekwater wrote: > Aditya Mahajan wrote: > > Some catcode trickery might work. This is all I could manage. > > This does not work well, because > > HSO\low{4}\high{-} > > is not correct. True, but if I'm aware of it, I can use \lohi{4}{$-$} if needed, which works even better in some cases, see below. I converted the document from LaTeX and I didn't came to the idea of using low and high (perhaps just because that's "not possible" there). > > % \def\molecule#1{\mathematics{ {\rm #1}}} Thank you for the note. I would never use it inside formulas, but I would never though about such interference in more complex definitions either. > > \bgroup > > \catcode`\_=\active > > \catcode`\^=\active > > \gdef\activatelohi% > >{\catcode`\_=\active > > \def_{\low} > > \catcode`\^=\active > > \def^{\high}} > > > > % This does not work. Why? > > % \gdef\molecule#1{\activatelohi #1} > > (For educational purposes only, it cannot be used by > Mojca this way because of the staggered scripts) To be honest: in the particular document I never use any stacking (so this just perfectly suits my needs) except in one particular case: for typesetting isotopes. I completely forgot about the \lohi command which I never saw in practice until now (at least the command itself is documented, but there's no example and as can be reconstructed from the archives it seems that Hans added added the option [left] for usage in chemistry). Thank you, Hans! In the math mode I would have to use phantoms and such befere being able to achive the same effect, so something like $\rm _8^16O$ is "wrong" (ugly) anyway. Taco and Aditya: thanks a lot for the pointers to \low and \high and for showing me the trick. I appreciate the elegance of Taco's last solution, although I would never have come to it (I didn't know that something like that could work and I'm stil not quite sure what miracle happens in the last step ;). > Your macro has already parsed the argument. This way > >\def\molecule#1{{\activatelohi \scantokens{#1}}} > > it would work (because \scantokens re-evaluates the argument). > > And this way it does not need etex, nor the \gdef: > >\def\molecule% > {\bgroup > \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\low}% > \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\high}% > \domolecule }% >\def\domolecule#1{#1\egroup} > > I have not looked into it, but doesn't one of context's chem module > > fit this need? > >\usemodule[chemic] >\let\molecule\chemical > > It only gets the size right, not the boldnes. But it can be argued > that that is the correct behaviour anyways. Not so long ago you argued that \alpha-sheet, \beta-helix, \gamma-rays, ... should be part of text flow (a reason why the el companion encoding should have it), not a "mathematical thing". I have a lot of simple formulas such as \molecule{SF_6} and they look a-kind-of-ugly with a tiny script. You could compare it to {\bf How to loose a guy in $10$ days}. I have a strange feeling that handling fonts in math is rather limited, but no knowledge how to fix anything (just remembering that I still don't know how to properly switch to bold math with some other fancy font except with dirty tricks). I guess that it should be possible to remember the font before switching to math and then switch to that font again, but that's all black magic for me. A site on ConTeXt garden solves that for titles in such a way that there's an additional command provided which also appends bold to all the mathematics in titles, but that's useful for titles only. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie questions
On Wed, 28 Jun 2006, Thomas Moore wrote: > Dear ConTeXt gurus: I am not a context guru, but will still give it a shot ;) > OK, I have gotten some off-list help from Mojca, who has answered > most of my questions and helped me polish the two page version of my > code (thanks, Mojca!). I have included what he helped me work out > below. There is one remaining problem. The first page is correct, but > very subsequent page has a correct-looking header and another > superimposed. The second superimposed header is not wide enough and > has the wrong page number (the number of the previous page), though > the page number is on the correct side. It is as if the page output > command from TeX is issuing the \setups command *twice*, once before > fully updating variables like \rightmarginwidth and the page number, > and once after setups have been done correctly. Is this a bug, or am > I doing something stupid? > > Thanks for any insight, Tom I am not sure what about the exact layout you are trying to achieve. Does this give you what you want. \setuppapersize[letter] \setuppagenumbering [alternative=doublesided,location=] \setuplayout [backspace=1.0in, topspace=0.5in, width=4.5in, height=9.5in, rightmargin=2.35in, rightmargindistance=0.15in, leftmargin=0in, leftmargindistance=0in, header=\normallineheight, headerdistance=\dimexpr0.5in-\normallineheight, footer=0in] \setupheadertexts[chapter][pagenumber][pagenumber][chapter] \setupbackgrounds[header][text][bottomframe=on,rulethickness=1pt] \starttext \chapter{Test} This is a test of some math stuff. $0 = g_{\mu\nu}dx^\nu dx^\nu$. \dorecurse{10}{\input knuth} \showlayout \stoptext Aditya > Code follows: > > \usemodule[amsl] > \usemodule[newmat] > > \setuppapersize[letter] > \setuppagenumbering > [alternative=doublesided] > \setuplayout > [backspace=1.0in, > topspace=0.5in, > width=4.5in, > height=9.5in, > rightmargin=2.35in, > rightmargindistance=0.15in, > leftmargin=0in, > leftmargindistance=0in, > header=0.5 in, > footer=0in] > > \definelayer > [leftpage] > [hoffset=\the\dimexpr\cutspace-\leftmarginwidth-\leftmargindistance > \relax, % for left pages > voffset=\topspace, > width=\paperwidth, > height=\paperheight] > > \definelayer > [rightpage] > [hoffset=\the\dimexpr\backspace\relax, % for right pages > voffset=\topspace, > width=\paperwidth, > height=\paperheight] > > \setupbackgrounds > [leftpage] > [background=leftpage] > \setupbackgrounds > [rightpage] > [background=rightpage] > > \startsetups page:setup > > \setlayerframed > [leftpage] > [preset=lefttop] > [width=\dimexpr\textwidth+\leftmarginwidth+\leftmargindistance > \relax, % for left pages > rulethickness=1pt, > frame=off, > bottomframe=on] > {\pagenumber\hfill\getmarking[chapter][first]} % for left pages > > \setlayerframed > [rightpage] > [preset=lefttop] > [width=\dimexpr\textwidth+\rightmarginwidth+\rightmargindistance > \relax, % for right pages > rulethickness=1pt, > frame=off, > bottomframe=on] > {\getmarking[chapter][first]\hfill\pagenumber} % for right pages > > \stopsetups > > \setupheadertexts > [\setups{page:setup}] > > \starttext > \chapter{Test} > This is a test of some math stuff. $0 = g_{\mu\nu}dx^\nu dx^\nu$. > \dorecurse{10}{\input knuth} > > \showlayout > \stoptext > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > > -- 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] Newbie questions
Dear ConTeXt gurus: OK, I have gotten some off-list help from Mojca, who has answered most of my questions and helped me polish the two page version of my code (thanks, Mojca!). I have included what he helped me work out below. There is one remaining problem. The first page is correct, but very subsequent page has a correct-looking header and another superimposed. The second superimposed header is not wide enough and has the wrong page number (the number of the previous page), though the page number is on the correct side. It is as if the page output command from TeX is issuing the \setups command *twice*, once before fully updating variables like \rightmarginwidth and the page number, and once after setups have been done correctly. Is this a bug, or am I doing something stupid? Thanks for any insight, Tom Code follows: \usemodule[amsl] \usemodule[newmat] \setuppapersize[letter] \setuppagenumbering [alternative=doublesided] \setuplayout [backspace=1.0in, topspace=0.5in, width=4.5in, height=9.5in, rightmargin=2.35in, rightmargindistance=0.15in, leftmargin=0in, leftmargindistance=0in, header=0.5 in, footer=0in] \definelayer [leftpage] [hoffset=\the\dimexpr\cutspace-\leftmarginwidth-\leftmargindistance \relax, % for left pages voffset=\topspace, width=\paperwidth, height=\paperheight] \definelayer [rightpage] [hoffset=\the\dimexpr\backspace\relax, % for right pages voffset=\topspace, width=\paperwidth, height=\paperheight] \setupbackgrounds [leftpage] [background=leftpage] \setupbackgrounds [rightpage] [background=rightpage] \startsetups page:setup \setlayerframed [leftpage] [preset=lefttop] [width=\dimexpr\textwidth+\leftmarginwidth+\leftmargindistance \relax, % for left pages rulethickness=1pt, frame=off, bottomframe=on] {\pagenumber\hfill\getmarking[chapter][first]} % for left pages \setlayerframed [rightpage] [preset=lefttop] [width=\dimexpr\textwidth+\rightmarginwidth+\rightmargindistance \relax, % for right pages rulethickness=1pt, frame=off, bottomframe=on] {\getmarking[chapter][first]\hfill\pagenumber} % for right pages \stopsetups \setupheadertexts [\setups{page:setup}] \starttext \chapter{Test} This is a test of some math stuff. $0 = g_{\mu\nu}dx^\nu dx^\nu$. \dorecurse{10}{\input knuth} \showlayout \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] textbackground trouble
Hi Hans and Taco, Something goes wrong when a textbackground occurs right at the page boundary. Please have a look at the attached file (a snippet from an updated copy of Myway on using new math features). Aditya\usemodule[mag-01] % \input mathfix %Bugfix by Taco \setuptyping[style=\ttx\setupinterlinespace] \setupheadertexts[section] \setupbodyfontenvironment [default][em=italic] \definetextbackground [example] [width=\textwidth, background=color, backgroundcolor=lightgray, frame=off, leftoffset=1em, rightoffset=1em, location=paragraph, after={\blank[small]}, before={\blank[small]}] \def\ShowExample {\startexample % \nobreak \typebuffer \stopexample \getbuffer} \setvariables [magazine] [title={Using \textbackslash startalign and friends}, author=Aditya Mahajan, date=\currentdate, ] \starttext \setups[titlepage] \setups[title] \startbuffer \startformula \startalign[m=2] \NC a_1 x + b_1 y \NC = c_1 \NC d_1 u + e_1 v \NC = f_1 \NR \NC a_2 x + b_2 y \NC = c_2 \NC d_2 u + e_2 v \NC = f_2 \NR \stopalign \stopformula \stopbuffer \ShowExample The distance between the pairs can be increased by the option \type<> of \tex{startalign}. \startbuffer \startformula \startalign[m=2,distance=5em] \NC a_1 x + b_1 y \NC = c_1 \NC d_1 u + e_1 v \NC = f_1 \NR \NC a_2 x + b_2 y \NC = c_2 \NC d_2 u + e_2 v \NC = f_2 \NR \stopalign \stopformula \stopbuffer \ShowExample A combination of \type<<[m=...,n=...]>> can be used. \startbuffer \startformula \startalign[m=2,distance=8em,n=5, align={right,middle,middle,middle,left}] \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 \NC 4 \NC < \NC 3x + y \NC < \NC 9 \NR \NC 3 \NC < \NC 2y + 3z \NC < \NC 15 \NC 10\NC < \NC 8y + 5z \NC < \NC 20 \NR \stopalign \stopformula \stopbuffer \ShowExample Sometimes, one simply wants to display two separate set of equations side by side. For such applications the above pairs mode can be cumbersome to work with. There is another alternative in \tex{startformulas} \startbuffer \startformulas \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR \NC a_2 x + b_2 y \NC = c_2 \NR \stopalign \stopformula \startformula \startalign \NC d_1 u + e_1 v \NC = f_1 \NR \NC d_2 u + e_2 v \NC = f_2 \NR \stopalign \stopformula \stopformulas \stopbuffer \ShowExample More than two groups can also be placed. \startbuffer \startformulas \dorecurse{5}{\startformula \startalign[n=3,align={middle,middle,middle}] \NC a \NC = \NC b \NR \NC 2a \NC = \NC 2b \NR \stopalign \stopformula} \stopformulas \stopbuffer \ShowExample \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] extentable arrows
On Wed, 28 Jun 2006, Taco Hoekwater wrote: > Aditya Mahajan wrote: >> \xrightarrow{big superscipt} >> >> Any suggestions? > > > Not completely identical, but similar. The syntax can be made identical (even better) than that of amsmath. \def\xrightarrow{\dosingleempty\doxrightarrow} \def\xleftarrow {\dosingleempty\doxleftarrow} \def\doxrightarrow[#1]{\dodoublegroupempty\dodoxrightarrow{#1}} \def\doxleftarrow[#1]{\dodoublegroupempty\dodoxleftarrow{#1}} \def\dodoxrightarrow#1#2{\mathrel {{\domthxarr0359\rightarrowfill{#1}{#2 \def\dodoxleftarrow#1#2{\mathrel {{\domthxarr3095\leftarrowfill{#1}{#2 \starttext $$ A \xrightarrow[]{stuff on top} B $$ $$ A \xrightarrow[stuff below]{} B $$ \startformula A \xleftarrow[stuff below]{stuff on top} B \stopformula $$ A \xleftarrow B $$ $$ \rightarrow A \xrightarrow{stuff on top} B \leftarrow $$ $$ \rightarrow A \xleftarrow[stuff below] B \leftarrow $$ \stoptext Will make copy paste a bit easier! Though these days I find myself writing more in context and soon will face the reverse problem. I will need to copy context math into latex (needed for final journal submission) and some of the math features are simply missing from latex :) Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] extentable arrows
On Wed, 28 Jun 2006, Taco Hoekwater wrote: > Aditya Mahajan wrote: >> \xrightarrow{big superscipt} >> >> Any suggestions? > > > Not completely identical, but similar. > > Cheers, Taco > > > \def\domthxarr#1#2#3#4#5#6#7% > {\begingroup >\mathsurround\zeropoint >\setbox0\hbox{$\scriptstyle > \if0#1\else\mkern#1mu\fi > \mkern#3mu#7\mkern#4mu > \if0#2\else\mkern#2mu\fi $}% >\setbox4\hbox{#5}% >\dimen0\wd0 >\ifdim\wd4>\dimen0 \dimen0\wd4 \fi >\setbox2\hbox{$\scriptstyle > \if0#1\else\mkern#1mu\fi > \mkern#3mu#6\mkern#4mu > \if0#2\else\mkern#2mu\fi $}% >\ifdim\wd2>\dimen0 \dimen0\wd2 \fi >\setbox4\hbox to \dimen0{#5}% >\mathord{\vcenter{{\offinterlineskip > \hbox to \dimen0{\hss\box0\hss}% > \kern .2ex > \hbox to \dimen0{\hss\copy4\hss}% > \kern .2ex > \hbox to \dimen0{\hss\box2\hss% >\endgroup} > > \def\xrightarrow{\dodoubleempty\doxrightarrow } > > \def\xleftarrow {\dodoubleempty\doxleftarrow } > > \def\doxrightarrow[#1][#2]{\mathrel > {{\domthxarr0359\rightarrowfill{#1}{#2 > > \def\doxleftarrow[#1][#2]{\mathrel > {{\domthxarr3095\leftarrowfill{#1}{#2 Thanks Taco! However, the arrow is not centered when there is only subscript or superscript. Compare the height of arrows in the following. $$ \rightarrow A \xrightarrow[][stuff on top] B \leftarrow $$ $$ \rightarrow A \xleftarrow[stuff below][] B \leftarrow $$ How about, \def\domthxarr#1#2#3#4#5#6#7% {\begingroup \mathsurround\zeropoint \setbox0\hbox{$\scriptstyle \if0#1\else\mkern#1mu\fi \mkern#3mu#7\mkern#4mu \if0#2\else\mkern#2mu\fi $}% \setbox4\hbox{#5}% \dimen0\wd0 \ifdim\wd4>\dimen0 \dimen0\wd4 \fi \setbox2\hbox{$\scriptstyle \if0#1\else\mkern#1mu\fi \mkern#3mu#6\mkern#4mu \if0#2\else\mkern#2mu\fi $}% \ifdim\wd2>\dimen0 \dimen0\wd2 \fi \setbox4\hbox to \dimen0{#5}% \mathrel{\mathop{% \hbox to \dimen0{\hss\copy4\hss}}% \limits^{\box0}_{\box2}} % \mathord{\vcenter{{\offinterlineskip % \hbox to \dimen0{\hss\box0\hss}% % \kern .2ex % \hbox to \dimen0{\hss\copy4\hss}% % \kern .2ex % \hbox to \dimen0{\hss\box2\hss% \endgroup} I am simply trying to copy from amsmath definition. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] many "unknown reference" with the beta
Gerben Wierda wrote: > On Jun 28, 2006, at 11:42, Hans Hagen wrote: > > >> Gerben Wierda wrote: >> >>> With ConTeXt beta I get a lot of messages like >>> >>> >>> references : unknown reference [][fnt:f:1] references : unknown reference [][fnt:t:2] references : unknown reference [][fnt:f:2] >>> and sometimes referring to a reallabel >>> >>> >>> references : unknown reference [][discrete:wave] >>> What do these imply? I do not get them when using ConTeXt stable. >>> >>> >> they are auto-footnote cross refs; do you have two or more runs? >> > > I checked wit two times "texexec --pdf --once". But it seems they go > away after *three* runs. Figures. > > --once will not run texutil (now internally) > False alarm. > there is some new ref stuff with regards to figures but normally that will not show up (location analysis and renumbering stuff bases on where floats end up on the page, which could be different from the flow) 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] framed and align=no
Taco Hoekwater wrote: > Hans van der Meer wrote: > >> I get the impression that although "align=no", there still is a \hfil >> put in at the right. >> > > Yes, but it is an implied fil, from \parfillskip. Because you limited > the width of the \framed, it is processed in vertical mode, so > \parfillskip is added to the end of the paragraph. > > This should help: > >\unprotect >% for core-spa.tex >\setvalue{\@@ragged@@command\v!disable}% > {\appendtoks \raggedright \parfillskip\zeropoint > \to\everyraggedcommand} >\protect > >\starttext >\framed[width=4cm,align=disable] {\hfil xyz} >\stoptext > ah, i missed that mail -) let me think a while about that keyword (btw, {line,right} is somehow broken) 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] framed and align=no
Hans van der Meer wrote: > I seem to have a problem with alignment in \framed; these are small > examples with there outcome: > > \leftaligned{\framed[width=4cm,align=no]{xyz} "no" comes out to the left} > \leftaligned{\framed[width=4cm,align=no]{\hfil xyz} "no" comes out in > the middle} > \leftaligned{\framed[width=4cm,align=middle]{\hfil xyz} "middle" comes > out to the right} > \leftaligned{\framed[width=4cm,align=right]{\hfil xyz} "right" comes > out in the middle} > \leftaligned{\framed[width=4cm,align=right]{xyz} "right" comes out to > the left} > > I get the impression that although "align=no",� there still is a \hfil > put in at the right. no means ragged (i.e. no justification) best investigate this with paragraphs: \framed[width=4cm,align=no]{\input tufte } \framed[width=4cm,align=no]{\hfil \input tufte } \framed[width=4cm,align=middle]{\hfil \input tufte } \framed[width=4cm,align=right]{\hfil \input tufte } \framed[width=4cm,align=right]{\input tufte } the last line gets a parfillskip which is why you see interference with your hfil's ('use hfill or hfilll ro be sure), compare: \hsize 10cm \hfil xyz \input tufte \parfillskip0pt \hfil xyz \input tufte \end > > Searched through the sources, especially core-rule.tex but could not > find the right place; it is fairly complicated code, isn't it? > Using \hfill to force the alignment is not an option, because I need > that for overriding the alignment when using these alignments in macros. > > I would like very much to have "align=no" putting no glue, neither to > the right nor to the left, thus making it different from "align=right". > If I am right: > 1. can someone point me to the point in the source where I can change > things for the moment? > 2. will this be changed then in the next release? no, it would break many things (proper alignment of multi line paragraphs to start with) I can imagine an extension: \framed[width=4cm,align=no]{\hfil xxx} \framed[width=4cm,align=no]{\parfillskip0pt\hfil xxx\endgraf} \unprotected \setvalue{\@@ragged@@command abc}% {\appendtoks\raggedright\parfillskip\zeropoint\to\everyraggedcommand} \framed[width=4cm,align=abc]{\hfil xxx} but i don't know what keyword to use 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] Still font issues with I-Installer Mac OSX
On Jun 28, 2006, at 18:34, Taco Hoekwater wrote: > [1.1{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ > original-empty. > map}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ > original-base.m > ap}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec- > public-lm.map > }{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec- > base.map}{/usr/ > local/teTeX/share/texmf.tetex/fonts/map/dvips/context/8r-base.map}{/ > usr/local/t > eTeX/share/texmf.tetex/fonts/map/dvips/context/qx-base.map}{/usr/ > local/teTeX/sh > are/texmf.tetex/fonts/map/dvips/context/t5-base.map}{/usr/local/teTeX/ > share/tex > mf.tetex/fonts/map/dvips/context/texnansi-base.map}{/usr/local/teTeX/ > share/texm > f.tetex/fonts/map/dvips/context/original-ams-cmr.map}{/usr/local/ > teTeX/share/te > xmf.tetex/fonts/map/dvips/context/original-ams-euler.map}{/usr/local/ > teTeX/shar > e/texmf.tetex/fonts/map/dvips/context/original-public-lm.map}{/usr/ > local/teTeX/ > share/texmf.tetex/fonts/map/dvips/context/original-public-plr.map}{/ > usr/local/t > eTeX/share/texmf.tetex/fonts/map/dvips/context/original-public- > csr.map}{/usr/lo > cal/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-public- > vnr.map}{/u > sr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/texnansi- > public-lm.map > > > You are using pdftex, so I assume it should load the font map files > in "map/pdftex", not in "map/dvips". But I do not know what package > supplied those map/dvips font files in the first place, so I cannot > help you any further. (that whole folder does not exist on my system) The ConTeXt updater writes to texmf.local which takes precedence over texmf.tetex which contains a very old ConTeXt. It seems you installed the TeX i-Package but you did not install the ConTeXt updater. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] active unicode characters
On 6/28/06, Peter Münster wrote: > On Tue, 27 Jun 2006, Mojca Miklavec wrote: > > > > With iso-latin I could do "\defineactivecharacter X {special meaning}" but > > > with utf-encoding, this does not work. And I would like to switch to > > > utf... > > > > You can do that with XeTeX (see some comments on > > http://wiki.contextgarden.net/Encodings_and_Regimes_in_XeTeX; it might > > be that some macros should be extended to support the same command in > > ConTeXt to work properly - I didn't test it yet). > > Yes, perhaps XeTeX is an alternative for pdfTeX. Does it support all the > pdf-interaction features Partly > hz and hanging of pdfTeX As far as I know not (yet). > The page http://wiki.contextgarden.net/XeTeX#Issues is from 2004, so > perhaps the issues are gone away in the meantime? I didn't dare to touch them without someone approving the change since I'm not sure what exactly each one means: Font metrics - I guess it was fixed recently Grid typesetting - never tried Paper size - I guess it was fixed recently Object reuse - I have problems including figures at all anyway (but I'm talking about Linux & Windows ports) Bookmarks - problems still there PDF Literals - most probably still a problem Occasionally Explodes - it's written that it was fixed, so it may be removed I guess Hoefler Italic is too fancy - no idea how to test Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] extentable arrows
Aditya Mahajan wrote: > \xrightarrow{big superscipt} > > Any suggestions? Not completely identical, but similar. Cheers, Taco \def\domthxarr#1#2#3#4#5#6#7% {\begingroup \mathsurround\zeropoint \setbox0\hbox{$\scriptstyle \if0#1\else\mkern#1mu\fi \mkern#3mu#7\mkern#4mu \if0#2\else\mkern#2mu\fi $}% \setbox4\hbox{#5}% \dimen0\wd0 \ifdim\wd4>\dimen0 \dimen0\wd4 \fi \setbox2\hbox{$\scriptstyle \if0#1\else\mkern#1mu\fi \mkern#3mu#6\mkern#4mu \if0#2\else\mkern#2mu\fi $}% \ifdim\wd2>\dimen0 \dimen0\wd2 \fi \setbox4\hbox to \dimen0{#5}% \mathord{\vcenter{{\offinterlineskip \hbox to \dimen0{\hss\box0\hss}% \kern .2ex \hbox to \dimen0{\hss\copy4\hss}% \kern .2ex \hbox to \dimen0{\hss\box2\hss% \endgroup} \def\xrightarrow{\dodoubleempty\doxrightarrow } \def\xleftarrow {\dodoubleempty\doxleftarrow } \def\doxrightarrow[#1][#2]{\mathrel {{\domthxarr0359\rightarrowfill{#1}{#2 \def\doxleftarrow[#1][#2]{\mathrel {{\domthxarr3095\leftarrowfill{#1}{#2 \starttext $$ A \xrightarrow[][stuff on top] B $$ $$ A \xleftarrow[stuff below][stuff on top] B $$ $$ A \xleftarrow B $$ \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
G, Nah, I'll hold of on instructions. Much better your way. Thanks. On Jun 28, 2006, at 2:46 PM, Gerben Wierda wrote: > On Jun 28, 2006, at 20:24, Mojca Miklavec wrote: > >> 1. either >> >> alias texexec='/usr/local/teTeX/share/texmf.local/scripts/ >> context/stubs/unix/texexec >> >> or copy the content of that folder somewhere to PATH. Just make sure >> that texexec resolves to "texmfstart texexec" unless you really like >> writing it the long way. >> >> 2. write a page on the wiki about how you did it (or at least one of >> the mac users should do that) > > I will fix (but I have no idea if I can do it before my vacation) the > ConTeXt updater such that texmfstart is supported out of the box. If > you write instructions, make sure you remove them after I have fixed > this. > > G > > ___ > 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] many "unknown reference" with the beta
On Jun 28, 2006, at 11:42, Hans Hagen wrote: > Gerben Wierda wrote: >> With ConTeXt beta I get a lot of messages like >> >> >>> references : unknown reference [][fnt:f:1] >>> references : unknown reference [][fnt:t:2] >>> references : unknown reference [][fnt:f:2] >>> >> >> and sometimes referring to a reallabel >> >> >>> references : unknown reference [][discrete:wave] >>> >> >> What do these imply? I do not get them when using ConTeXt stable. >> > they are auto-footnote cross refs; do you have two or more runs? I checked wit two times "texexec --pdf --once". But it seems they go away after *three* runs. Figures. False alarm. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
On Jun 28, 2006, at 20:24, Mojca Miklavec wrote: > 1. either > > alias texexec='/usr/local/teTeX/share/texmf.local/scripts/ > context/stubs/unix/texexec > > or copy the content of that folder somewhere to PATH. Just make sure > that texexec resolves to "texmfstart texexec" unless you really like > writing it the long way. > > 2. write a page on the wiki about how you did it (or at least one of > the mac users should do that) I will fix (but I have no idea if I can do it before my vacation) the ConTeXt updater such that texmfstart is supported out of the box. If you write instructions, make sure you remove them after I have fixed this. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] extentable arrows
On Wed, 28 Jun 2006, Aditya Mahajan wrote: > Hi, > Does ConTeXt have anything equivalent to xleftarrow, xrightarrow of > amsmath. Basically, I need a command that can do > > A \xleftarrow[subscript]{superscript} B > > should give > >superscript > A <--- B >subscript > > and similar for xrightarrow, xleftrightarrow, xLeftarrow, xRightarrow > and xLeftRightarrow. > > > The closest that I could come to it was (only for superscripts) > > \def\xrightarrow#1{\buildrel{#1}\over\longrightarrow} > > But this is not extendable. > > \xrightarrow{big superscipt} > > > Any suggestions? This is how it is defined in amsmath.sty [EMAIL PROTECTED] \mathrel{\mathop{% [EMAIL PROTECTED] [EMAIL PROTECTED]@th \hbox{$\scriptstyle\mkern#3mu{#6}\mkern#4mu$}% \hbox{$\scriptstyle\mkern#3mu{#7}\mkern#4mu$}% \copy\z@ }% \hbox [EMAIL PROTECTED]@}}% \limits [EMAIL PROTECTED] #7\if0#2\else\mkern#2mu\fi}}% [EMAIL PROTECTED] #6\if0#2\else\mkern#2mu\fi}}}% } [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] I tried to contextify this, but keep on getting missing $ errors. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Still font issues with I-Installer Mac OSX
Frank wrote: > My guess is that some files are missing from map/pdftex and it then uses > map/dvips as a fallback. It would be interesting to know what you have > on your system in map/pdftex lots and lots of map files ;-) 8r-base.map el-public-lm.map original-context-symbol.map original-public-plr.mapqx-base.map texnansi-base.map 8r-urw-urwgothic.map original-adobe-euro.map original-dummy.map original-public-vnr.mapqx-os-public-lm.map texnansi-os-public-lm.map ec-base.map original-ams-base.maporiginal-empty.map original-vogel-symbol.map qx-public-lm.map texnansi-public-lm.map ec-os-public-lm.map original-ams-cmr.map original-micropress-informal.map original-wasy.map t5-base.map texnansi-urw-urwgothic.map ec-public-lm.map original-ams-euler.map original-public-csr.map original-youngryu-px.map t5-os-public-lm.map ec-urw-urwgothic.map original-base.maporiginal-public-lm.map original-youngryu-tx.map t5-public-lm.map ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
David Arnold wrote: > So, > > Wait a couple days and upload Context beta again from Gerben's site? > Stopper problem will then be fixed? > > indeed, since gerben sync each day you should by now be able to update Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] sectionnumber conversion redux
Idris Samawi Hamid wrote: > Hi Taco, > > Thnx for the help :-) > > On Wed, 28 Jun 2006 03:18:56 -0600, Taco Hoekwater <[EMAIL PROTECTED]> > wrote: > > >> Taco Hoekwater wrote: >> >>> Idris Samawi Hamid wrote: >>> >>> I sent this a week ago, still awaiting help :-) >>> I do not (yet) know how to fix the TOC. >>> >> It looks to me like you cannot get it right inside the TOC >> at the moment. :-( >> > > Hans, can this be fixed? > maybe some time ... when i overhaul the numbering (later this year as part of a major overhaul) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Still font issues with I-Installer Mac OSX
Taco Hoekwater wrote: > Frank wrote: > >> Here is the log: >> >> > > From your log: > > [1.1{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-empty. > map}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-base.m > ap}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec-public-lm.map > }{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec-base.map}{/usr/ > local/teTeX/share/texmf.tetex/fonts/map/dvips/context/8r-base.map}{/usr/local/t > eTeX/share/texmf.tetex/fonts/map/dvips/context/qx-base.map}{/usr/local/teTeX/sh > are/texmf.tetex/fonts/map/dvips/context/t5-base.map}{/usr/local/teTeX/share/tex > mf.tetex/fonts/map/dvips/context/texnansi-base.map}{/usr/local/teTeX/share/texm > f.tetex/fonts/map/dvips/context/original-ams-cmr.map}{/usr/local/teTeX/share/te > xmf.tetex/fonts/map/dvips/context/original-ams-euler.map}{/usr/local/teTeX/shar > e/texmf.tetex/fonts/map/dvips/context/original-public-lm.map}{/usr/local/teTeX/ > share/texmf.tetex/fonts/map/dvips/context/original-public-plr.map}{/usr/local/t > eTeX/share/texmf.tetex/fonts/map/dvips/context/original-public-csr.map}{/usr/lo > cal/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-public-vnr.map}{/u > sr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/texnansi-public-lm.map > > > You are using pdftex, so I assume it should load the font map files > in "map/pdftex", not in "map/dvips". But I do not know what package > supplied those map/dvips font files in the first place, so I cannot > help you any further. (that whole folder does not exist on my system) > > Good luck, > > Taco > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > My guess is that some files are missing from map/pdftex and it then uses map/dvips as a fallback. It would be interesting to know what you have on your system in map/pdftex Frank ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mac OS X and texmfstart... [was: texmfstart newbie]
On 28 juin 2006, at 19:25, Mojca Miklavec wrote: > >Thanks for all the Mac-specifics. Can you plese put this on >http://wiki.contextgarden.net/Mac_Installation? Hi Mojca, I did plant in the Garden the procedure for texmfstart: http://wiki.contextgarden.net/Mac_Installation#Configuration_of_texmfstart However I didn't know how to add nice (and useful) links to some words, when necessary. >For simplicity also create an executable file called "texexec" with >the content similar to >#!/bin/sh >texmfstart texexec I didn't get how to do this... Indeed I think (but probably I am wrong...) even if one creates such a file and make it executable, then, for scurity reasons, when Mac users copy it to their directory the resulting file loses its executable bit. Since I am very limited in the intrecacies of these security aspects if I understand what you intend I'll add the file you suggest. On the other hand are you sure one can replace "texexec" with a new command created with the file you suggest? Is it not "dangerous"? Thanks again for your help. Best regards: OK ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] active unicode characters
On Tue, 27 Jun 2006, Mojca Miklavec wrote: > > With iso-latin I could do "\defineactivecharacter X {special meaning}" but > > with utf-encoding, this does not work. And I would like to switch to utf... > > You can do that with XeTeX (see some comments on > http://wiki.contextgarden.net/Encodings_and_Regimes_in_XeTeX; it might > be that some macros should be extended to support the same command in > ConTeXt to work properly - I didn't test it yet). Yes, perhaps XeTeX is an alternative for pdfTeX. Does it support all the pdf-interaction features, hz and hanging of pdfTeX? The page http://wiki.contextgarden.net/XeTeX#Issues is from 2004, so perhaps the issues are gone away in the meantime? > But I would use \quotation{} in your case unless you really have some > very good reason why you want to keep the literal characters. I use > the \quotation because: I agree, that \quotation{} has some advantages. I use the «» characters, because I'm for 99,99% sure, that I won't change it later on, and because I want my input (the TeX-file) as readable as possible. «» is just easier to type and to read than \quotation{}, and in French it's the standard to go for quotations. I also use m² instead of $^2$, ± instead of $\pm$ etc... 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] extentable arrows
Hi, Does ConTeXt have anything equivalent to xleftarrow, xrightarrow of amsmath. Basically, I need a command that can do A \xleftarrow[subscript]{superscript} B should give superscript A <--- B subscript and similar for xrightarrow, xleftrightarrow, xLeftarrow, xRightarrow and xLeftRightarrow. The closest that I could come to it was (only for superscripts) \def\xrightarrow#1{\buildrel{#1}\over\longrightarrow} But this is not extendable. \xrightarrow{big superscipt} Any suggestions? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mac OS X and texmfstart... [was: texmfstart newbie]
Am 2006-06-28 um 18:07 schrieb Otared Kavian: > On 28 juin 2006, at 15:11, Taco Hoekwater wrote: >> Mojca Miklavec wrote: >> with the content >> ruby path-to-context-ruby-scripts/texmfstart.rb >> >> What I have is this simple script (and it should work on MacOSX >> just as well). Name it 'texfmstart', make it executable, fill in >> the correct path and put it in a binaries directory. >> >> >>#!/bin/sh >>ruby path-to-context-ruby-scripts/texmfstart.rb $@ You could also only set an alias in your .profile (or .bashrc) like this: alias texmfstart='ruby /usr/local/teTeX/share/texmf.local/scripts/ context/ruby/texmfstart.rb' This way you don't need to touch any files or directories. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \bTABLE[distance=...]
Hello, when using \bTABLE[distance=...], the table gets wider than the textwidth. Example: \starttext \input tufte \bTABLE \bTR\bTD bla bla bla bla\eTD\bTD \input tufte \eTD\eTR \eTABLE \bTABLE[distance=3em] \bTR\bTD bla bla bla bla\eTD\bTD \input tufte \eTD\eTR \eTABLE \input tufte \stoptext A workaround seems to be textwidth=\dimexpr\textwidth-3em\relax Could this be done automatically? 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] texmfstart with figure library
All, I have a file figlibSection3.xml which starts like this: College of the Redwoods Mathematics Department Intermediate Algebra Text Chapter 1 Figures for Section 3 section3figs-mpgraph.1 xeqy2a College of the Redwoods Mathematics Department ... When I used to run texexec figlibSection3.xml, I would get my figures, then the gui screens with figure embedded. Now, with texmfstart texexec figlibSection3.xml, I get my figures, the gui screens, then duplicates of all the figures after that. Thus, two copies of every figure is embedded in the figure library. Is this new behavior correct? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] sectionnumber conversion redux
Hi Taco, Thnx for the help :-) On Wed, 28 Jun 2006 03:18:56 -0600, Taco Hoekwater <[EMAIL PROTECTED]> wrote: > > > Taco Hoekwater wrote: >> Idris Samawi Hamid wrote: >> >>> I sent this a week ago, still awaiting help :-) >> >> >> I do not (yet) know how to fix the TOC. > > It looks to me like you cannot get it right inside the TOC > at the moment. :-( Hans, can this be fixed? Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] beta bib module issues
Johannes Graumann wrote: > Hello, > > The current t-bib beta (t-bib-2006.06.23) available at > http://dl.contextgarden.net/modules/t-bib-2006.06.23.zip has a problem: I'll fix this an Mojca's problem tomorrow (need a different machine). Mojca, can you send me a minimal example with extra spaces please? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small caps italic and font switching inside math
Aditya Mahajan wrote: > On Wed, 28 Jun 2006, Mojca Miklavec wrote: > > >>Hello, >> >>I have to tiny questions: >> >>1. How do I get small caps [bold] italic (except with the >>\definedfont[ec-lmxxx])? > > No idea. Same for me. I know that theoreticallu something would be possible using \Var and special typescripts, but I do not know how that is supposed to be done in actual code. > > Some catcode trickery might work. This is all I could manage. This does not work well, because HSO\low{4}\high{-} is not correct. > % \def\molecule#1{\mathematics{ {\rm #1}}} > > \bgroup > \catcode`\_=\active > \catcode`\^=\active > \gdef\activatelohi% >{\catcode`\_=\active > \def_{\low} > \catcode`\^=\active > \def^{\high}} > > % This does not work. Why? > % \gdef\molecule#1{\activatelohi #1} (For educational purposes only, it cannot be used by Mojca this way because of the staggered scripts) Your macro has already parsed the argument. This way \def\molecule#1{{\activatelohi \scantokens{#1}}} it would work (because \scantokens re-evaluates the argument). And this way it does not need etex, nor the \gdef: \def\molecule% {\bgroup \catcode`\_=\active \uccode`\~=`\_ \uppercase{\let~\low}% \catcode`\^=\active \uccode`\~=`\^ \uppercase{\let~\high}% \domolecule }% \def\domolecule#1{#1\egroup} > > I have not looked into it, but doesn't one of context's chem module > fit this need? \usemodule[chemic] \let\molecule\chemical It only gets the size right, not the boldnes. But it can be argued that that is the correct behaviour anyways. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small caps italic and font switching inside math
On Jun 28, 2006, at 7:44 PM, Mojca Miklavec wrote: > Hello, > > I have to tiny questions: > > 1. How do I get small caps [bold] italic (except with the > \definedfont[ec-lmxxx])? > Mojca, this is a bit more complicated than it sounds. Have a look at Adam's MyWay, section 4 explains how to do it. Best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie questions
Dear Gerben: Thanks, the t-amsl module does seemed to be pre- installed. I just downloaded TeX/LaTeX/ ConTexT recently (mid June) using an all-in-one-step installer, and I have not upgraded, so I guess that my t-amsl file might be outdated. Thanks for the suggestion about where to put the new module -- this will help in the future. Best wishes, Tom On Jun 27, 2006, at 12:53 PM, Gerben Wierda wrote: > On Jun 24, 2006, at 16:56, Thomas Moore wrote: > >> 2. I would like the math environment to be as close to the LaTeX AMS >> environment as possible. I have figured out how to download the t- >> amsl module and can successfully invoke it as long as the t-amsl.tex >> file is in the same folder as my document files. But how do I install >> it permanently so that I can invoke it in all my documents? I was >> unable to find instructions in the ConTexT garden for this, and what >> I could find on the archives was not helpful (something about >> "running mktexlsr" and/or "texhash" that I have don't know how to do >> in OS X, and would be afraid to do without instructions anyway for >> fear of screwing up my TeX distribution). >> >> Thanks for any help, and sorry if the questions are stupid. Tom >> Moore > > Depending on how you installed TeX, t-amsl.tex is there. If you > installed with the TeX i-Package: > > $ kpsewhich t-amsl.tex > /usr/local/teTeX/share/texmf.tetex/tex/context/maths/t-amsl.tex > > But it is the one from 1.5 years ago in the old ConTeXt that comes > with > the (discontinued) teTeX texmf tree. If you also installed the ConTeXt > updater (which is pretty up-to-date), the math stuff is not in there > (Hans, why not?) so you get a newer ConTeXt with an older t-amsl.tex > and I have no idea if that works. > > If you have a (more recent) t-amsl.tex file and you are using the TeX > i-Package, you can install th efile as > ~/Library/texmf/tex/context/t-amsl.tex and it will be found. No > mktexlsr or texhash is needed for that particular tree. > > If someone tells me what to include in the ConTeXt updater for this > math stuff and where to get it, I can make life easy for you. > > If you installed with fink or in some other way, I have no idea how to > help you. > > G > > ___ > 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] emp.sty and metapost
On Wed, 28 Jun 2006, David Arnold wrote: > Aditya, > > On Jun 28, 2006, at 7:08 AM, Aditya Mahajan wrote: > >> On Tue, 27 Jun 2006, David Arnold wrote: >> >>> Aditya, >>> >>> I have faced this problem in the past, but was never sure why it occured or how to rectify it. Try the command mpost --tex=latex useemp.mp on your shell. Do you get the same error message as before (you should). >>> >>> Yes, same error message. >>> >>> qdf $ mpost --tex=latex useemp.mp >>> This is MetaPost, Version 0.901 (Web2C 7.5.5) >>> (useemp.mp (qdftools.mpnewer: target file `qdftools.mpx' doesn't >>> exist. >>> /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command >>> failed: latex mpxerr.tex; see mpxerr.log >>> > qdftools.mp > qdftools.mpx >>> ! Unable to make mpx file. >>> l.41 label.rt(btex >>> $x$ etex, (5u,0)); >>> Transcript written on useemp.log. >>> >>> Now try, makempx --tex=latex useemp.mp useemp.mpx Does this create an mpx file? >>> >>> qdf $ ls >>> OTqdbpreview.stydev.qdf sample2.qdf >>> dev.1 dev.tex useemp.mp >>> dev.mp functions.qdf useemp.pdf >>> dev.pdf qdftools.mp useemp.tex >>> qdf $ >>> >>> qdf $ makempx --tex=latex useemp.mp useemp.mpx >>> newer: target file `useemp.mpx' doesn't exist. >>> dvitomp: mpx14741.dvi: No such file or directory >>> mv: rename mpx14741.dvi to mpxerr.dvi: No such file or directory >>> /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command >>> failed: dvitomp mpxerr.dvi useemp.mpx >>> >>> qdf $ ls >>> OTqdbpreview.styfunctions.qdf sample2.qdf >>> dev.1 mpx14741.auxuseemp.mp >>> dev.mp mpx14741.loguseemp.pdf >>> dev.pdf mpx14741.texuseemp.tex >>> dev.qdf mpxerr.log >>> dev.tex qdftools.mp >>> >>> Doesn't look like it. >>> If it does, then atleast a workaround for the problem is to have \immediate\write18{makempx --tex=latex \jobname.mp \jobname.mpx} before \immediate\write18{mpost --tex=latex \jobname}. If makempx fails, look at the output of makempx --verbose --tex=latex useemp.mp useemp.mpx What do you get? >>> >>> >>> qdf $ makempx --verbose --tex=latex useemp.mp useemp.mpx >>> /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Invalid >>> option: --verbose. >>> Try `makempx --help' for more information. >>> >>> >>> qdf $ makempx --help >>> Usage: /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx [- >>> tex|-tex=|-troff] MPFILE MPXFILE. >>> If MPXFILE is older than MPFILE, translate the labels from the >>> MetaPost >>> input file MPFIle to low-level commands in MPXFILE, by running >>> mpto -tex, , and dvitomp >>> by default; or, if -troff is specified, >>> mpto -troff, eqn -Tps -d\$\$ | troff -Tps, and dmp. >>> >>> The current directory is used for writing temporary files. Errors >>> are >>> left in mpxerr.{tex,log,dvi}. >>> >>> If the file named in $MPTEXPRE (mptexpre.tex by default) exists, >>> it is >>> prepended to the output in tex mode. >> >> Hmm... the makempx that comes with miktex has --verbose, the one that >> comes with context standalone does not. So, you seem to have one from >> context. >> >> How about following makempx commands "by hand" that is, >> >> mpto useemp.mp >> >> This should strip out everything between btex ... etex into some tex >> commands. If this works, >> >> mpto useemp.mp > temp.tex >> >> Any non-existing filename instead of "temp" will do. Then do, >> >> latex temp.tex >> >> dvitomp temp.mp useemp.mpx >> >> and if all of these work without any error, do >> >> mpost useemp >> >> >> If possible, use Context to create the graphics, i.e. >> >> texexec --mptex useemp.mp >> >> to get mps files (.1, .2, etc) or >> >>texexec --mpgraphic useemp.mp >>pdf2ps useemp.pdf >> >> If however, you need to stick to latex for some reason, you need to >> figure out what is going wrong with your system. >> > > Sorry, none of this works. I think you need to see what useemp.mp > looks like. > > qdf $ cat useemp.mp > %%% useemp.mp -- do not edit, generated automatically by useemp.tex > verbatimtex > \documentclass [10pt]{article} > \begin {document} > etex; > input qdftools; > beginfig(1); > LaTeX_unitlength := 28.45274pt; > w := 4*LaTeX_unitlength; > h := 4*LaTeX_unitlength; > numeric u; 10u=3in; > gridfivefive; > xyaxesfivefive; > endfig; > verbatimtex > \end{document} > etex; > %%% the end. > end. > endinput; > > See, there aren't any btex ... etex commands in there. But see the > input qdftools? That file looks like this: > > qdf $ cat qdftools.mp > numeric s; s=0.2; > color gridlines; gridlines:=(s,s,s); > > def openbluedot(expr pos)= > fill fullcircle scaled 4pt withcolor white; > dr
Re: [NTG-context] Newbie questions
On Jun 25, 2006, at 9:54 AM, Hans Hagen wrote: > Mojca Miklavec wrote: >> >> Hoping that someone can fix at least one of the solutions >> above to >> work as intended, >> > > ok, here is a trick: > now, the left right page problem is up to you ... keep in mind that > we have > > \setupbackgrounds > [leftpage] > [...] > > \setupbackgrounds > [rightpage] > [...] Thanks, Mojca, for your ideas! Special thanks to Hans, whose solution seemed efficient and worked like a charm (after I made one minor fix). I have attached to the end of this message code that works well on *either* right pages *or* left pages. Now I'd like to extend the code so that it would work on *both* kinds of pages. But my experimentation has raised the following questions: 1. When I change the \setupbackgrounds [page][background=thepage] in the code shown below to \setupbackgrounds [rightpage] [background=thepage], I expected that the left page would have no header and the right page would have the appropriate header. However, when I do this, I get two superimposed headers with different lengths on right pages (and nothing, as expected, on left pages). Why do I get *two* headers on the right page? 2. I also do not understand \startsetups command, which I could not find in the ConTexT manual or in the online summary of ConTexT commands. It looks like the purpose of this command is to put a wrapper around the \setlayerframed command so that it can be used in the \setupheadertexts command. Is this right? Also: a. I guess that I don't understand why the \setlayerframed command could not be used directly in the \setupheadertexts command: why do we need the wrapper? b. And why this particular wrapping command? (\startfoo ... \stopfoo doesn't work.) c. Also, I am assuming that the colon is simply part of the name assigned to this setup and has no other significance: is this right? 3. So, my guess (once problem 1 is fixed), is that I will define *two* layers (one for right pages and one for left pages), and do a \setupbackground [rightpage][background=therightpage] and a \setupbackground[leftpage][background=theleftpage]. But I don't know what to do inside the \startsetup ... \stopsetup. Do I have a pair of \setlayerframed statements? Do I surround this pair with something like an if onRightPage ... if onLeftPage statement? Or do I put the if-then statements *inside* the \setlayerframed statement? Thanks for any help... Tom Code follows: \usemodule[amsl] \usemodule[newmat] \setuppapersize[letter] \setuppagenumbering [alternative=doublesided] \setuplayout [backspace=1.0in, topspace=0.5in, width=4.5in, height=9.5in, rightmargin=2.35in, rightmargindistance=0.15in, leftmargin=0in, leftmargindistance=0in, header=0.5 in, footer=0in] \definelayer [thepage] %[hoffset=\the\dimexpr\cutspace-\leftmarginwidth- \leftmargindistance\relax, % for left pages [hoffset=\the\dimexpr\backspace\relax, % for right pages voffset=\topspace, width=\paperwidth, height=\paperheight] \setupbackgrounds [page] [background=thepage] \startsetups page:setup \setlayerframed [thepage] [preset=lefttop] % [width=\dimexpr\textwidth+\leftmarginwidth+\leftmargindistance \relax, % for left pages [width=\dimexpr\textwidth+\rightmarginwidth+\rightmargindistance \relax, % for right pages rulethickness=1pt, frame=off, bottomframe=on] % {\pagenumber\hfill\getmarking[chapter][first]} % for left pages {\getmarking[chapter][first]\hfill\pagenumber} % for right pages \stopsetups \setupheadertexts [\setups{page:setup}] \starttext \chapter{Test} This is a test of some math stuff. $0 = g_{\mu\nu}dx^\nu dx^\nu$. \dorecurse{10}{\input knuth} \showlayout \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] small caps italic and font switching inside math
On Wed, 28 Jun 2006, Mojca Miklavec wrote: > Hello, > > I have to tiny questions: > > 1. How do I get small caps [bold] italic (except with the > \definedfont[ec-lmxxx])? No idea. > 2. I defined \molecule to be >\def\molecule#1{$\rm#1$}, better use {\mathematics{\rm #1}} so that you can also write in equations. > an usage example would be: >\molecule{HSO_4^{-}} > But how should I modify this it so that it would also work properly > with examples such as: > > {\bfa A story about \molecule{SF_6}} > {\scx A story about \molecule{SF_6}} > {\bsb A story about \molecule{SF_6}} > > As a workaround I now keep hardcoding \molecule{\bsb SF_6}. Some catcode trickery might work. This is all I could manage. % \def\molecule#1{\mathematics{ {\rm #1}}} \bgroup \catcode`\_=\active \catcode`\^=\active \gdef\activatelohi% {\catcode`\_=\active \def_{\low} \catcode`\^=\active \def^{\high}} % This does not work. Why? % \gdef\molecule#1{\activatelohi #1} \glet\molecule=\activatelohi \egroup \starttext {\bfa A story about {\molecule SF_6}} {\scx A story about {\molecule SF_6}} {\bsb A story about {\molecule SF_6}} \stoptext Though this uses a different syntax than what you had. I have not looked into it, but doesn't one of context's chem module fit this need? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Difficulties using the r module
It appears R is not found. Is it on the path? Does it have the same name on the Mac? Regards, Johan 2006/6/28, Matthew Routley <[EMAIL PROTECTED]>: > I spotted the announcement of the use of R in ConTeXt and was quite interested > in trying it out. However, so far I haven't been able to get it to work. It > appears that R is not being called by texexec and the .tmp.out are not being > found, despite the fact that they are being produced. > > Are there more details on installing and using this module? I think it would > be quite useful. > > Thanks for any advice, > Matt > > Some details are that I am using Mac OS X 10.4.7, R-2.3.1, and ConTeXt ver: > 2006.06.28 from gwTeX and running the sample file contained in m-r.tex. > > I have also tried using context live @ contextgarden.net with the same results > as on my personal machine. > > Here is some output from the log file: system : > > module r loaded > (/usr/local/teTeX/share/texmf.local/tex/context/base/m-r.tex) > > ... > > systems : begin file r at line 11 > (/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex) verbatim : > file r-r-1.tmp.out does not exist verbatim : file r-r-2.tmp.out > does not exist verbatim : file r-r-4.tmp.out does not > exist verbatim : file r-r-5.tmp.out does not exist > (./r-r.tmp figures : figure ushape can not be found floatblocks : 1 placed ) > verbatim : file r-r-6.tmp.out does not exist (./r-r.tmp > figures : figure lattice can not be found floatblocks : 2 placed ) > verbatim : file r-r-7.tmp.out does not exist > > ... > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
On 6/28/06, David Arnold wrote: > Taco, Mojca, > > Thanks, on my Mac OSX 10.4.6 with Gerben's TeX, I: > > cd /usr/local/teTeX/share/texmf.local/scripts/context/ruby/ > sudo chmod -R a+x *.rb > > Then I wrote in .bash_profile: > > alias texmfstart='/usr/local/teTeX/share/texmf.local/scripts/context/ > ruby/texmfstart.rb' > > Now I have: > > chapter1 $ texmfstart --help > version : 2.0.0 - 2003/2006 - www.pragma-ade.com ... > Is there anything else I should do now? 1. either alias texexec='/usr/local/teTeX/share/texmf.local/scripts/ context/stubs/unix/texexec or copy the content of that folder somewhere to PATH. Just make sure that texexec resolves to "texmfstart texexec" unless you really like writing it the long way. 2. write a page on the wiki about how you did it (or at least one of the mac users should do that) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] t-bib-2006.06.23 problem
Hello, The current t-bib beta (t-bib-2006.06.23) available at http://dl.contextgarden.net/modules/t-bib-2006.06.23.zip has a problem: % Use Taco's bib module for the citations \usemodule[t-bib] % Cite the bibliography lists according to the entry order in the *.bib file \setuppublications[sorttype=bbl] % Bibliography information is here: \setupbibtex[database={../Bibliography/bibliography.bib}] Results in bibliography lists where the entries are (uncalled-for) numbered and the numbers collide with the author names (see http://shortlink.co.uk/9n6). Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
David Arnold wrote: > And mpxerr.log: > > qdf $ cat mpxerr.log > This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) > (format=latex 2006.6.27) 28 JUN 2006 09:10 > entering extended mode > **mpx509.tex > (./mpx509.tex > LaTeX2e <2003/12/01> > Babel and hyphenation patterns for american, french, german, > ngerman, d > utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded. > LaTeX Font Info:External font `cmex10' loaded for size > (Font) <7> on input line 12. > LaTeX Font Info:External font `cmex10' loaded for size > (Font) <5> on input line 12. > [1] [1] [1] [1] > ! I can't find file `mpx509.aux'. > \enddocument ...makeatletter \input \jobname .aux >\fi [EMAIL PROTECTED] > \ifdim \f... Educated guess: the 'embedded' latex never gets to see \documentclass nor \begin{document}, and therefore it does not write an .aux file. (In case you are wondering: the \end{document} is only there because it is automatically added by makempx). Taco PS Turns out there was something useful in the mpxerr.log after all ;) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
Taco, Mojca, Thanks, on my Mac OSX 10.4.6 with Gerben's TeX, I: cd /usr/local/teTeX/share/texmf.local/scripts/context/ruby/ sudo chmod -R a+x *.rb Then I wrote in .bash_profile: alias texmfstart='/usr/local/teTeX/share/texmf.local/scripts/context/ ruby/texmfstart.rb' Now I have: chapter1 $ texmfstart --help version : 2.0.0 - 2003/2006 - www.pragma-ade.com usage: texmfstart [switches] filename [optional arguments] switches : --verbose --report --browser --direct --execute --locate -- iftouched --ifchanged --program --file --page --arguments --batch --edit -- report --clear --make --lmake --wmake --path --stubpath --indirect -- before --after --tree --autotree --environment --showenv example : texmfstart pstopdf.rb cow.eps texmfstart --locate examplex.rb texmfstart --execute examplex.rb texmfstart --browser examplap.pdf texmfstart showcase.pdf texmfstart --page=2 --file=showcase.pdf texmfstart --program=yourtex yourscript.rb arg-1 arg-2 texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml texmfstart --direct ruby rel:wn-cleanup-1.rb oldfile.xml newfile.xml texmfstart bin:xsltproc env:somepreset path:somefile.xsl somefile.xml texmfstart --iftouched=normal,lowres downsample.rb normal lowres texmfstart --ifchanged=somefile.dat --direct processit somefile.dat texmfstart bin:scite kpse:texmf.cnf texmfstart --exec bin:scite *.tex texmfstart --edit texmf.cnf texmfstart --edit kpse:texmf.cnf texmfstart --serve texmfstart --stubpath=/usr/local/bin [--make --remove] -- verbose all texmfstart --stubpath=auto [--make --remove] all I can now run: chapter1 $ texmfstart texexec section1.tex Is there anything else I should do now? On Jun 28, 2006, at 6:11 AM, Taco Hoekwater wrote: > > > Mojca Miklavec wrote: >> with the content >> ruby path-to-context-ruby-scripts/texmfstart.rb > > What I have is this simple script (and it should work on MacOSX > just as well). Name it 'texfmstart', make it executable, fill in > the correct path and put it in a binaries directory. > > >#!/bin/sh >ruby path-to-context-ruby-scripts/texmfstart.rb $@ > > > Cheers, taco > ___ > 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
[NTG-context] Difficulties using the r module
I spotted the announcement of the use of R in ConTeXt and was quite interested in trying it out. However, so far I haven't been able to get it to work. It appears that R is not being called by texexec and the .tmp.out are not being found, despite the fact that they are being produced. Are there more details on installing and using this module? I think it would be quite useful. Thanks for any advice, Matt Some details are that I am using Mac OS X 10.4.7, R-2.3.1, and ConTeXt ver: 2006.06.28 from gwTeX and running the sample file contained in m-r.tex. I have also tried using context live @ contextgarden.net with the same results as on my personal machine. Here is some output from the log file: system : module r loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/m-r.tex) ... systems : begin file r at line 11 (/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex) verbatim : file r-r-1.tmp.out does not exist verbatim : file r-r-2.tmp.out does not exist verbatim : file r-r-4.tmp.out does not exist verbatim : file r-r-5.tmp.out does not exist (./r-r.tmp figures : figure ushape can not be found floatblocks : 1 placed ) verbatim : file r-r-6.tmp.out does not exist (./r-r.tmp figures : figure lattice can not be found floatblocks : 2 placed ) verbatim : file r-r-7.tmp.out does not exist ... ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] small caps italic and font switching inside math
Hello, I have to tiny questions: 1. How do I get small caps [bold] italic (except with the \definedfont[ec-lmxxx])? 2. I defined \molecule to be \def\molecule#1{$\rm#1$}, an usage example would be: \molecule{HSO_4^{-}} But how should I modify this it so that it would also work properly with examples such as: {\bfa A story about \molecule{SF_6}} {\scx A story about \molecule{SF_6}} {\bsb A story about \molecule{SF_6}} As a workaround I now keep hardcoding \molecule{\bsb SF_6}. Thanks, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bug with 'inmargin' head-setup in Beta
Hans Hagen wrote: > \c!strut=\@@koindentnext, > > should be > > \c!strut=\@@kostrut, That indeed fixes it. Joh ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Still font issues with I-Installer Mac OSX
Frank wrote: > >> > > Here is the log: > From your log: [1.1{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-empty. map}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-base.m ap}{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec-public-lm.map }{/usr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/ec-base.map}{/usr/ local/teTeX/share/texmf.tetex/fonts/map/dvips/context/8r-base.map}{/usr/local/t eTeX/share/texmf.tetex/fonts/map/dvips/context/qx-base.map}{/usr/local/teTeX/sh are/texmf.tetex/fonts/map/dvips/context/t5-base.map}{/usr/local/teTeX/share/tex mf.tetex/fonts/map/dvips/context/texnansi-base.map}{/usr/local/teTeX/share/texm f.tetex/fonts/map/dvips/context/original-ams-cmr.map}{/usr/local/teTeX/share/te xmf.tetex/fonts/map/dvips/context/original-ams-euler.map}{/usr/local/teTeX/shar e/texmf.tetex/fonts/map/dvips/context/original-public-lm.map}{/usr/local/teTeX/ share/texmf.tetex/fonts/map/dvips/context/original-public-plr.map}{/usr/local/t eTeX/share/texmf.tetex/fonts/map/dvips/context/original-public-csr.map}{/usr/lo cal/teTeX/share/texmf.tetex/fonts/map/dvips/context/original-public-vnr.map}{/u sr/local/teTeX/share/texmf.tetex/fonts/map/dvips/context/texnansi-public-lm.map You are using pdftex, so I assume it should load the font map files in "map/pdftex", not in "map/dvips". But I do not know what package supplied those map/dvips font files in the first place, so I cannot help you any further. (that whole folder does not exist on my system) Good luck, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
OK. Clean directory. qdf $ ls OTqdbpreview.stydev.qdf sample2.qdf dev.1 dev.tex useemp.mp dev.mp functions.qdf useemp.pdf dev.pdf qdftools.mp useemp.tex qdf $ useemp.tex: \documentclass{article} \usepackage{amsmath} \usepackage{emp,ifpdf} \ifpdf \DeclareGraphicsRule{*}{mps}{*}{} \fi \setlength{\unitlength}{1cm} \begin{document} Now is the time for all good men to come to the aid of their country. \empprelude{input qdftools} \begin{empfile} \begin{empdef}[david](4,4) numeric u; 10u=3in; gridfivefive; xyaxesfivefive; \end{empdef} \end{empfile} \immediate\write18{mpost -tex=latex \jobname} \empuse{david} Now is the time for all good men to come to the aid of their country. \end{document} qdftools.mp: numeric s; s=0.2; color gridlines; gridlines:=(s,s,s); def openbluedot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor blue; enddef; def openreddot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor red; enddef; def filledreddot(expr pos)= fill fullcircle scaled 4pt withcolor red; draw fullcircle scaed 4pt withcolor red; enddef; def filledbluedot(expr pos)= fill fullcircle scaled 4pt withcolor blue; draw fullcircle scaed 4pt withcolor blue; enddef; def vtick(expr pos)= draw ((0,-3)--(0,3)) shifted pos; enddef; def htick(expr pos)= draw ((-3,0)--(3,0)) shifted pos; enddef; def gridfivefive = for k=-5u step 1u until 5u: draw (-5u,k)--(5u,k) withcolor gridlines; draw (k,-5u)--(k,5u) withcolor gridlines; endfor; enddef; def xyaxesfivefive= drawdblarrow (-5u,0)--(5u,0); label.rt(btex $x$ etex, (5u,0)); label.bot(btex $25$ etex, (5u,0)); drawdblarrow (0,-5u)--(0,5u); label.top(btex $y$ etex, (0,5u)); label.lft(btex $5$ etex, (0,5u)); enddef; endinput; Now a run: $ pdflatex --shell-escape useemp.tex ... )This is MetaPost, Version 0.901 (Web2C 7.5.5) (useemp.mp (qdftools.mpnewer: target file `qdftools.mpx' doesn't exist. /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command failed: latex mpxerr.tex; see mpxerr.log >> qdftools.mp >> qdftools.mpx ! Unable to make mpx file. l.41 label.rt(btex $x$ etex, (5u,0)); Transcript written on useemp.log. emp: File useemp.1 not found: emp: Process useemp.mp with MetaPost and then reprocess this file. [1{/Users/darnold/Library/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./useemp.aux) ) Output written on useemp.pdf (1 page, 7947 bytes). Transcript written on useemp.log. Now my directory: qdf $ ls OTqdbpreview.styfunctions.qdf useemp.aux dev.1 mpx509.dvi useemp.log dev.mp mpxerr.log useemp.mp dev.pdf mpxerr.tex useemp.pdf dev.qdf qdftools.mp useemp.tex dev.tex sample2.qdf And mpxerr.log: qdf $ cat mpxerr.log This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (format=latex 2006.6.27) 28 JUN 2006 09:10 entering extended mode **mpx509.tex (./mpx509.tex LaTeX2e <2003/12/01> Babel and hyphenation patterns for american, french, german, ngerman, d utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded. LaTeX Font Info:External font `cmex10' loaded for size (Font) <7> on input line 12. LaTeX Font Info:External font `cmex10' loaded for size (Font) <5> on input line 12. [1] [1] [1] [1] ! I can't find file `mpx509.aux'. \enddocument ...makeatletter \input \jobname .aux \fi [EMAIL PROTECTED] \ifdim \f... l.19 \end{document} Please type another input file name ! Emergency stop. \enddocument ...makeatletter \input \jobname .aux \fi [EMAIL PROTECTED] \ifdim \f... l.19 \end{document} *** (job aborted, file error in nonstop mode) Here is how much of TeX's memory you used: 10 strings out of 95138 181 string characters out of 1183036 2045165 words of memory out of 450 3256 multiletter control sequences out of 1+5 3640 words of font info for 14 fonts, out of 200 for 2000 58 hyphenation exceptions out of 5000 18i,2n,12p,76b,66s stack positions out of 5000i,500n,6000p,20b, 4s Output written on mpx509.dvi (4 pages, 432 bytes). On Jun 28, 2006, at 9:04 AM, Taco Hoekwater wrote: > David Arnold wrote: >> Taco, >> >> Not sure what you mean here, so I ran: >> >> latex useemp.tex >> >> And got: >> > > And now I am lost as well. Nothing useful in the mpxerr.log, I assume? > > Taco > ___ > 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] Still font issues with I-Installer Mac OSX
On 28-jun-06, at 14:44, Taco Hoekwater wrote: Frank wrote: I get the pixel result attached. The output from texexec shows the inclusion of the font: Output written on test.pdf (1 page, 10344 bytes). Transcript written on test.log. Something is still wrong, because it is downloading the bitmap. Can you post the test.log? Here is the log: test.log Description: Binary data The font maps are now set correctly per instructions of Hans Hagen automatically by the installer. See attached texmf.cnf file On a second test I tried to use the postscript fonts: \usetypescript[pos] Make that \usetypescript[pos][ec] and it should work ok. Unfortunately no. It has trouble with the font metrics. The log shows: (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type- akb.tex)kpathsea: Running mktextfm ec-uhvr8a /usr/local/teTeX/share/texmf/web2c/mktexnam: Could not map typeface abbreviation c- for ec-uhvr8a. /usr/local/teTeX/share/texmf/web2c/mktexnam: Need to update /usr/local/teTeX/share/texmf.tetex/fonts/map/fontname/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ec-uhvr8a This is METAFONT, Version 2.71828 (Web2C 7.5.5) kpathsea: Running mktexmf ec-uhvr8a ! I can't find file `ec-uhvr8a'. <*> ...jfour; mag:=1; nonstopmode; input ec-uhvr8a Please type another input file name ! Emergency stop. <*> ...jfour; mag:=1; nonstopmode; input ec-uhvr8a Transcript written on mfput.log. grep: ec-uhvr8a.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ec-uhvr8a' failed to make ec-uhvr8a.tfm. kpathsea: Appending font creation commands to missfont.log. ! Font \*12ptsstf*=ec-uhvr8a at 12.0pt not loadable: Metric (TFM) file not foun d. \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...ame #1\csname #2#3#4#5\endcsname \tryingfontfalse \fi ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \ifskipfontchar... \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.5 \setupbodyfont[pos,ss,12pt] ? Cheers, taco ___ 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
[NTG-context] Mac OS X and texmfstart... [was: texmfstart newbie]
On 28 juin 2006, at 15:11, Taco Hoekwater wrote: >Mojca Miklavec wrote: >with the content > ruby path-to-context-ruby-scripts/texmfstart.rb > >What I have is this simple script (and it should work on MacOSX >just as well). Name it 'texfmstart', make it executable, fill in >the correct path and put it in a binaries directory. > > >#!/bin/sh >ruby path-to-context-ruby-scripts/texmfstart.rb $@ > > >Cheers, taco Hi Mojca and Taco, Thanks to your insights I could finally manage to get rid of the "warning: use 'texmfstart texexec' instead"... Needless to say I feel very proud now :-) For all those who are shy like me (!) and don't dare ask too trivial questions, here is what one can do on Mac OS X (and, mutatis mutandis, probably on any Unix like system): 0) I have teTeX and ConTeXt installed (and updated quite often...) with Gerben Wierda's i-Installer. In principle there is a directory (folder...) named /usr/local/teTeX/bin/ if you have installed TeX in /usr/local. Otherwise with the command locate in a Terminal window find the directory teTeX/bin/. Here there should be a subdirectory named powerpc-apple-darwin7.9.0 or something like that (depending on the type of the processor you have?). Go there, for instance in my case: cd powerpc-apple-darwin7.9.0 2) Find the path to "texmfstart.rb": in the Terminal window type locate texmfstart.rb for instance on my system I have two "texmfstart.rb", /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb /usr/local/teTeX/share/texmf.tetex/scripts/context/ruby/texmfstart.rb the second one is old, while the first one is recent and installed with Gerben's i-Installer. I assumed (remember we are willing to use ConTeXt...) that the newer one is the right one... 3) In the Terminal window (while you are in the directory powerpc-apple-darwin7.9.0) type: sudo emacs texmfstart and after giving an su password, in the editor's window type the code given by Taco, that is the two following lines: #!/bin/sh ruby /usr/local/teTeX/share/texmf.local/scripts/context/ruby/texmfstart.rb $@ 4) Save and exit emacs by typing [CTRL]-X [CTRL]-S and then [CTRL]-X [CTRL]-C 5) You have created a script named texmfstart... Now you have to make it executable, so in the Terminal window (while you are in the directory powerpc-apple-darwin7.9.0) type sudo chmod +x texmfstart 6) Now if in any other Terminal window you type, for instance texmfstart or texmfstart --version you should get the version of texmfstart and a series of example usage. 7) If you go to a directory where you have a file named example.tex, then you can typeset it with ConTeXt by saying: texmfstart texexec example.tex and now you shouldn't have the "warning: use 'texmfstart texexe' instead". And you are done! Cheers: OK ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
David Arnold wrote: > Taco, > > Not sure what you mean here, so I ran: > > latex useemp.tex > > And got: > And now I am lost as well. Nothing useful in the mpxerr.log, I assume? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] symbolset
On Wed, 28 Jun 2006, Taco Hoekwater wrote: > > > Aditya Mahajan wrote: >> How do I see all symbols in a symbolset. With > > Symbol sets do not have a strict relation to file names. > "symb-nav.tex", for instance, defines three symbol sets: > "navigation 1", "navigation 2" , "navigation 3". > > \starttext > \showsymbolset[navigation 1] > \showsymbolset[navigation 2] > \showsymbolset[navigation 3] > \stoptext > > IIRC, some of the Unicode symbol sets require commercial fonts > (from MacOS X). Thanks. I will look in the sym-* files for names of other symbolsets. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] framed and align=no
I seem to have a problem with alignment in \framed; these are small examples with there outcome:\leftaligned{\framed[width=4cm,align=no]{xyz} "no" comes out to the left}\leftaligned{\framed[width=4cm,align=no]{\hfil xyz} "no" comes out in the middle}\leftaligned{\framed[width=4cm,align=middle]{\hfil xyz} "middle" comes out to the right}\leftaligned{\framed[width=4cm,align=right]{\hfil xyz} "right" comes out in the middle}\leftaligned{\framed[width=4cm,align=right]{xyz} "right" comes out to the left}I get the impression that although "align=no", there still is a \hfil put in at the right.Searched through the sources, especially core-rule.tex but could not find the right place; it is fairly complicated code, isn't it?Using \hfill to force the alignment is not an option, because I need that for overriding the alignment when using these alignments in macros.I would like very much to have "align=no" putting no glue, neither to the right nor to the left, thus making it different from "align=right".If I am right:1. can someone point me to the point in the source where I can change things for the moment?2. will this be changed then in the next release?Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] framed and align=no
Hans van der Meer wrote: > > I get the impression that although "align=no", there still is a \hfil > put in at the right. Yes, but it is an implied fil, from \parfillskip. Because you limited the width of the \framed, it is processed in vertical mode, so \parfillskip is added to the end of the paragraph. This should help: \unprotect % for core-spa.tex \setvalue{\@@ragged@@command\v!disable}% {\appendtoks \raggedright \parfillskip\zeropoint \to\everyraggedcommand} \protect \starttext \framed[width=4cm,align=disable] {\hfil xyz} \stoptext Greetings, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
David Arnold wrote: > > Now, the strange thing is that everything works if I change mpost - > tex=latex \jobname to mpost \jobname in useemp.tex. That is why I asked whether the 'latex' command works in the first place. -- Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
Aditya, On Jun 28, 2006, at 7:08 AM, Aditya Mahajan wrote: > On Tue, 27 Jun 2006, David Arnold wrote: > >> Aditya, >> >> >>> I have faced this problem in the past, but was never sure why it >>> occured or how to rectify it. Try the command >>> >>> mpost --tex=latex useemp.mp >>> >>> on your shell. Do you get the same error message as before (you >>> should). >> >> Yes, same error message. >> >> qdf $ mpost --tex=latex useemp.mp >> This is MetaPost, Version 0.901 (Web2C 7.5.5) >> (useemp.mp (qdftools.mpnewer: target file `qdftools.mpx' doesn't >> exist. >> /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command >> failed: latex mpxerr.tex; see mpxerr.log >> qdftools.mp qdftools.mpx >> ! Unable to make mpx file. >> l.41 label.rt(btex >> $x$ etex, (5u,0)); >> Transcript written on useemp.log. >> >> >>> Now try, >>> >>> makempx --tex=latex useemp.mp useemp.mpx >>> >>> Does this create an mpx file? >> >> qdf $ ls >> OTqdbpreview.stydev.qdf sample2.qdf >> dev.1 dev.tex useemp.mp >> dev.mp functions.qdf useemp.pdf >> dev.pdf qdftools.mp useemp.tex >> qdf $ >> >> qdf $ makempx --tex=latex useemp.mp useemp.mpx >> newer: target file `useemp.mpx' doesn't exist. >> dvitomp: mpx14741.dvi: No such file or directory >> mv: rename mpx14741.dvi to mpxerr.dvi: No such file or directory >> /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command >> failed: dvitomp mpxerr.dvi useemp.mpx >> >> qdf $ ls >> OTqdbpreview.styfunctions.qdf sample2.qdf >> dev.1 mpx14741.auxuseemp.mp >> dev.mp mpx14741.loguseemp.pdf >> dev.pdf mpx14741.texuseemp.tex >> dev.qdf mpxerr.log >> dev.tex qdftools.mp >> >> Doesn't look like it. >> >>> If it does, then atleast a workaround >>> for the problem is to have >>> >>> \immediate\write18{makempx --tex=latex \jobname.mp \jobname.mpx} >>> before >>> \immediate\write18{mpost --tex=latex \jobname}. >>> >>> If makempx fails, look at the output of >>> >>> makempx --verbose --tex=latex useemp.mp useemp.mpx >>> >>> What do you get? >> >> >> qdf $ makempx --verbose --tex=latex useemp.mp useemp.mpx >> /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Invalid >> option: --verbose. >> Try `makempx --help' for more information. >> >> >> qdf $ makempx --help >> Usage: /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx [- >> tex|-tex=|-troff] MPFILE MPXFILE. >> If MPXFILE is older than MPFILE, translate the labels from the >> MetaPost >> input file MPFIle to low-level commands in MPXFILE, by running >> mpto -tex, , and dvitomp >> by default; or, if -troff is specified, >> mpto -troff, eqn -Tps -d\$\$ | troff -Tps, and dmp. >> >> The current directory is used for writing temporary files. Errors >> are >> left in mpxerr.{tex,log,dvi}. >> >> If the file named in $MPTEXPRE (mptexpre.tex by default) exists, >> it is >> prepended to the output in tex mode. > > Hmm... the makempx that comes with miktex has --verbose, the one that > comes with context standalone does not. So, you seem to have one from > context. > > How about following makempx commands "by hand" that is, > > mpto useemp.mp > > This should strip out everything between btex ... etex into some tex > commands. If this works, > > mpto useemp.mp > temp.tex > > Any non-existing filename instead of "temp" will do. Then do, > > latex temp.tex > > dvitomp temp.mp useemp.mpx > > and if all of these work without any error, do > > mpost useemp > > > If possible, use Context to create the graphics, i.e. > > texexec --mptex useemp.mp > > to get mps files (.1, .2, etc) or > >texexec --mpgraphic useemp.mp >pdf2ps useemp.pdf > > If however, you need to stick to latex for some reason, you need to > figure out what is going wrong with your system. > Sorry, none of this works. I think you need to see what useemp.mp looks like. qdf $ cat useemp.mp %%% useemp.mp -- do not edit, generated automatically by useemp.tex verbatimtex \documentclass [10pt]{article} \begin {document} etex; input qdftools; beginfig(1); LaTeX_unitlength := 28.45274pt; w := 4*LaTeX_unitlength; h := 4*LaTeX_unitlength; numeric u; 10u=3in; gridfivefive; xyaxesfivefive; endfig; verbatimtex \end{document} etex; %%% the end. end. endinput; See, there aren't any btex ... etex commands in there. But see the input qdftools? That file looks like this: qdf $ cat qdftools.mp numeric s; s=0.2; color gridlines; gridlines:=(s,s,s); def openbluedot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor blue; enddef; def openreddot(expr pos)= fill fullcircle scaled 4pt withcolor white; draw fullcircle scaed 4pt withcolor red; enddef; def filledreddot(expr pos)= fill fullcircle scaled 4pt withcolor red; draw
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
So, Wait a couple days and upload Context beta again from Gerben's site? Stopper problem will then be fixed? On Jun 28, 2006, at 12:18 AM, Hans Hagen wrote: > David Arnold wrote: >> Should I just comment out all the "stopper' commands until this >> update circulates through G's context updater? >> > no, after all, it just sets an extra period (stopper) > > keep in mind that putting complex code in there (esp unbalanced > grouping) will never work with stoppers > > Hans > ___ > 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] symbolset
On Jun 28, 2006, at 16:40, Aditya Mahajan wrote: > How do I see all symbols in a symbolset. With > > \starttext > \showsymbolset[uni] > \showsymbolset[nav] > \stoptext > > I get a blank page. I did this and the wasy symbols come out nicely: \usemodule[symb-was] \showsymbolset [wasy general] What I can think of: a module that has to be loaded as in the above example. Hope this helps. Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
Hans, On Jun 28, 2006, at 12:17 AM, Hans Hagen wrote: > Taco Hoekwater wrote: >> David Arnold wrote: >> makempx --tex=latex useemp.mp useemp.mpx Does this create an mpx file? >> >> What happens if you run the bare command 'latex' >> on a simple test file? >> > there's also > > mptopdf useemp.mp qdf $ mptopdf useemp.mp MPtoPDF 1.3.2 : running 'texexec --mptex ' TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 metapost : useemp format : metafun This is MetaPost, Version 0.901 (Web2C 7.5.5) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) (useemp.mp (qdftools.mp >> qdftools.mp >> qdftools.mpx ! Unable to make mpx file. l.41 label.rt(btex $x$ etex, (5u,0)); Transcript written on useemp.log. error in metapost run : useemp.mp:41 total run time : 0 seconds warning : use 'texmfstart texexec' instead MPtoPDF 1.3.2 : error while processing mp file > > or (more clever): > > texexec --mpgraphic useemp.mp > > (latest version) qdf $ texexec --mpgraphics useemp.mp TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 fixing engine variable : pdfetex executable : pdfetex format : cont-en inputfile : useemp output : standard interface : en current mode : none TeX run : 1 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx) entering extended mode (./useemp.mp ConTeXt ver: 2006.06.23 20:39 fmt: 2006.6.27 int: english mes: english language: language en is active system : cont-new loaded (/usr/local/teTeX/share/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 (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de- >texnansi:tex nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr- >ec:ec->6->2:3 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it- >texnansi :texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec- >13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16- >2:3 sk->ec:ec ->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials: tex,postscript,rokicki loaded system : useemp.top loaded (./useemp.top) systems : system commands are disabled ! Undefined control sequence. l.3 \documentclass [10pt]{article} ? > > Hans > ___ > 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] emp.sty and metapost
Taco, Not sure what you mean here, so I ran: latex useemp.tex And got: No file useemp.aux. emp: File useemp.1 not found: emp: Process useemp.mp with MetaPost and then reprocess this file. [1] (./useemp.aux) ) Output written on useemp.dvi (1 page, 400 bytes). Transcript written on useemp.log. On Jun 28, 2006, at 12:07 AM, Taco Hoekwater wrote: > David Arnold wrote: >>> >>> makempx --tex=latex useemp.mp useemp.mpx >>> >>> Does this create an mpx file? > > What happens if you run the bare command 'latex' > on a simple test file? > > Taco > ___ > 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] symbolset
Aditya Mahajan wrote: > How do I see all symbols in a symbolset. With Symbol sets do not have a strict relation to file names. "symb-nav.tex", for instance, defines three symbol sets: "navigation 1", "navigation 2" , "navigation 3". \starttext \showsymbolset[navigation 1] \showsymbolset[navigation 2] \showsymbolset[navigation 3] \stoptext IIRC, some of the Unicode symbol sets require commercial fonts (from MacOS X). Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] symbolset
How do I see all symbols in a symbolset. With \starttext \showsymbolset[uni] \showsymbolset[nav] \stoptext I get a blank page. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
On Tue, 27 Jun 2006, David Arnold wrote: > Aditya, > > >> I have faced this problem in the past, but was never sure why it >> occured or how to rectify it. Try the command >> >> mpost --tex=latex useemp.mp >> >> on your shell. Do you get the same error message as before (you >> should). > > Yes, same error message. > > qdf $ mpost --tex=latex useemp.mp > This is MetaPost, Version 0.901 (Web2C 7.5.5) > (useemp.mp (qdftools.mpnewer: target file `qdftools.mpx' doesn't exist. > /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command > failed: latex mpxerr.tex; see mpxerr.log > > >> qdftools.mp > >> qdftools.mpx > ! Unable to make mpx file. > l.41 label.rt(btex > $x$ etex, (5u,0)); > Transcript written on useemp.log. > > >> Now try, >> >> makempx --tex=latex useemp.mp useemp.mpx >> >> Does this create an mpx file? > > qdf $ ls > OTqdbpreview.stydev.qdf sample2.qdf > dev.1 dev.tex useemp.mp > dev.mp functions.qdf useemp.pdf > dev.pdf qdftools.mp useemp.tex > qdf $ > > qdf $ makempx --tex=latex useemp.mp useemp.mpx > newer: target file `useemp.mpx' doesn't exist. > dvitomp: mpx14741.dvi: No such file or directory > mv: rename mpx14741.dvi to mpxerr.dvi: No such file or directory > /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command > failed: dvitomp mpxerr.dvi useemp.mpx > > qdf $ ls > OTqdbpreview.styfunctions.qdf sample2.qdf > dev.1 mpx14741.auxuseemp.mp > dev.mp mpx14741.loguseemp.pdf > dev.pdf mpx14741.texuseemp.tex > dev.qdf mpxerr.log > dev.tex qdftools.mp > > Doesn't look like it. > >> If it does, then atleast a workaround >> for the problem is to have >> >> \immediate\write18{makempx --tex=latex \jobname.mp \jobname.mpx} >> before >> \immediate\write18{mpost --tex=latex \jobname}. >> >> If makempx fails, look at the output of >> >> makempx --verbose --tex=latex useemp.mp useemp.mpx >> >> What do you get? > > > qdf $ makempx --verbose --tex=latex useemp.mp useemp.mpx > /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Invalid > option: --verbose. > Try `makempx --help' for more information. > > > qdf $ makempx --help > Usage: /usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx [- > tex|-tex=|-troff] MPFILE MPXFILE. > If MPXFILE is older than MPFILE, translate the labels from the > MetaPost > input file MPFIle to low-level commands in MPXFILE, by running > mpto -tex, , and dvitomp > by default; or, if -troff is specified, > mpto -troff, eqn -Tps -d\$\$ | troff -Tps, and dmp. > > The current directory is used for writing temporary files. Errors > are > left in mpxerr.{tex,log,dvi}. > > If the file named in $MPTEXPRE (mptexpre.tex by default) exists, > it is > prepended to the output in tex mode. Hmm... the makempx that comes with miktex has --verbose, the one that comes with context standalone does not. So, you seem to have one from context. How about following makempx commands "by hand" that is, mpto useemp.mp This should strip out everything between btex ... etex into some tex commands. If this works, mpto useemp.mp > temp.tex Any non-existing filename instead of "temp" will do. Then do, latex temp.tex dvitomp temp.mp useemp.mpx and if all of these work without any error, do mpost useemp If possible, use Context to create the graphics, i.e. texexec --mptex useemp.mp to get mps files (.1, .2, etc) or texexec --mpgraphic useemp.mp pdf2ps useemp.pdf If however, you need to stick to latex for some reason, you need to figure out what is going wrong with your system. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texmfstart newbie
Mojca Miklavec wrote: > with the content > ruby path-to-context-ruby-scripts/texmfstart.rb What I have is this simple script (and it should work on MacOSX just as well). Name it 'texfmstart', make it executable, fill in the correct path and put it in a binaries directory. #!/bin/sh ruby path-to-context-ruby-scripts/texmfstart.rb $@ Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Still font issues with I-Installer Mac OSX
Frank wrote: > I get the pixel result attached. The output from texexec shows the > inclusion of the font: > > > Output written on test.pdf (1 page, 10344 bytes). > Transcript written on test.log. Something is still wrong, because it is downloading the bitmap. Can you post the test.log? > The font maps are now set correctly per instructions of Hans Hagen > automatically by the installer. See attached texmf.cnf file > > > On a second test I tried to use the postscript fonts: > > \usetypescript[pos] Make that \usetypescript[pos][ec] and it should work ok. Cheers, taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Still font issues with I-Installer Mac OSX
Hello, I know that the font problems are a FAQ, but after reading the mail archives and manuals I am still having problems. I did a clean install of the I-Installer base installation (2005 default) yesterday and still get pixel fonts instead of outline fonts. Also I have problems using the adobe type1 fonts which worked before. I would like some pointers to resolve the problems as a lot of my older documents are typeset with ConTeXt using the old way of including adobekb file. Below are two examples of the problems encountererd When I create a very simple test test.pdf Description: Adobe PDF document file: \starttext \input knuth \stoptext # texexec --pdf test I get the pixel result attached. The output from texexec shows the inclusion of the font: Output written on test.pdf (1 page, 10344 bytes). Transcript written on test.log. The font maps are now set correctly per instructions of Hans Hagen automatically by the installer. See attached texmf.cnf file texmf.cnf Description: Binary data On a second test I tried to use the postscript fonts: \usetypescript[pos] %\usetypescript[modern] \setupbodyfont[pos,ss,12pt] \starttext \input knuth \blank Some ligatures: ffi, ffl. \stoptext Resulting in the output below. zoe:~/context frank$ texexec --pdf type1 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 executable : pdfetex format : cont-en inputfile : type1 output : pdftex interface : en current mode : none TeX run : 1 This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) (/usr/local/teTeX/share/texmf.tetex/web2c/natural.tcx) entering extended mode (./type1.tex ConTeXt ver: 2006.06.09 13:05 fmt: 2006.6.26 int: english mes: english language: language en is active system : cont-new loaded (/usr/local/teTeX/share/texmf.tetex/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex! color : palette rollover is available ) system : cont-old loaded (/usr/local/teTeX/share/texmf.tetex/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/teTeX/share/texmf.tetex/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/teTeX/share/texmf.tetex/tex/context/user/cont-sys.rme (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns en->ec:ec->1->2:3 uk->ec:ec->2->2:3 de->texnansi:tex nansi->3->2:3 de->ec:ec->4->2:3 fr->texnansi:texnansi->5->2:3 fr->ec:ec->6->2:3 es->ec:ec->7->2:3 pt->texnansi:texnansi->8->2:3 pt->ec:ec->9->2:3 it->texnansi :texnansi->10->2:3 it->ec:ec->11->2:3 nl->texnansi:texnansi->12->2:3 nl->ec:ec- >13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec ->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials: tex,postscript,rokicki loaded system : type1.top loaded (./type1.top specials: loading definition file tpd (/usr/local/teTeX/share/texmf.tetex/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/usr/local/teTeX/share/texmf.tetex/tex/context/base/spec-fdf.tex) specials: fdf loaded ) specials: fdf,tpd loaded ) systems : system commands are disabled (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-pre.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.tetex/tex/context/base/type-sy
Re: [NTG-context] texmfstart newbie
On 6/27/06, David Arnold wrote: > OK, > > I've updated to the latest context via Gerben's i-installer on my mac > osx 10.4.6. > > I have no idea what texmfstart is nor do I understand its purpose. > > I imagine the first thing I have to do is configure, because it is > certainly not found on my system. ... > For example: > > tmp $ texexec --version > > TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 > > texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 > texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 > tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5) > context : ver: 2006.06.23 20:39 > cont-en : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: > english > cont-nl : ver: 2006.06.23 20:39 fmt: 2006.6.27 mes: > dutch > > total run time : 3 seconds > > warning : use 'texmfstart texexec' instead > > > Now for questions: > > 1. How do I configure my system to use texmstart? Under windows it comes as an executable, under linux I sometimes created an executable file named texexec (in the bin folder of course) with the content ruby path-to-context-ruby-scripts/texmfstart.rb Here's a citation from a mac user: On 5/25/06, Hans van der Meer wrote: > I did some digging in the .../context/ruby script directory and found > a small problem with the script, at least for some users. > > On my MacOSX system the script file(s) needed the execute bits set, > so I did: > cd /context/ruby > (sudo) chmod -R a+x *.rb > > And of course an alias "texmfstart=texmfstart.rb" comes in handy. > > I hope this helps others who might be struggling to get texmfstart > running. > > Hans van der Meer Something should be automated here I suppose. The MikTeX guy wasn't extremely responsive to it, tetex isn't maintained any more, perhaps at least you Mac guys could/should do something about it. Can someone write a note to the contextgarden about how to do configure the texmfstart properly? > 2. What are some of the usual uses I should be employing of > texmfstart? As a regular user you shouldn't note it's presence once you set it up properly. But generally you can use it to run stuff such as "texmfstart mptopdf" without having to worry whether mptopdf is a perl or ruby program, you can use it to edit config files, open documentation and so on, but the list is way to long (and I don't know it all/don't know how to use all its features) ... Most notable the modern modules which call external programs are written in such a way that they execute "texmfstart name-of-the-script", for example "texmfstart pstopdf some-ps-file" instead of "pstopdf some-ps-file". This means that the user doesn't need "pstopdf" to be present on the system as an executable command and means better portability. > How will it improve performance? Just as George N. White said: performance in terms of how-many-seconds-per-run is not really the question, but I guess that it might improve performance since it might use more clever methods to execute things. I know that Hans has somehow rewritten the kapathsea and mpto, but I don't really know which scripts are responsible for calling them and for faster execution. However: you don't need to worry about performance. Hans does. If you care about performance in mp labels, you can improve it considerable by using texexec.rb (and texmfstart to start it) an by switching from btex ... etex to textext("...") and \sometxt (aproximately ten times faster on my examples and able to do some crazy things that have never been possible with btex ... etex or textext). But well ... the presence of texmfstart is essential in this case. > How will it simplify my work? Etc? > I.e what are the advantages? Portability. Support: sooner or later you'll figure out that the old texexec.pl doesn't do what it's supposed to do (mp labels being one of the problems for example). Hans is willing to work on improving the texexec.rb, but not on fixing the old stuff that will become obsolete one day anyway. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] many "unknown reference" with the beta
Gerben Wierda wrote: > With ConTeXt beta I get a lot of messages like > > >> references : unknown reference [][fnt:f:1] >> references : unknown reference [][fnt:t:2] >> references : unknown reference [][fnt:f:2] >> > > and sometimes referring to a reallabel > > >> references : unknown reference [][discrete:wave] >> > > What do these imply? I do not get them when using ConTeXt stable. > they are auto-footnote cross refs; do you have two or more runs? 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] many "unknown reference" with the beta
With ConTeXt beta I get a lot of messages like > references : unknown reference [][fnt:f:1] > references : unknown reference [][fnt:t:2] > references : unknown reference [][fnt:f:2] and sometimes referring to a reallabel > references : unknown reference [][discrete:wave] What do these imply? I do not get them when using ConTeXt stable. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] sectionnumber conversion redux
Taco Hoekwater wrote: > Idris Samawi Hamid wrote: > >> I sent this a week ago, still awaiting help :-) > > > I do not (yet) know how to fix the TOC. It looks to me like you cannot get it right inside the TOC at the moment. :-( Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Bug with 'inmargin' head-setup in Beta
Johannes Graumann wrote: > Hello, > > Consider this code example - the section titles are preceded by inapropriate > vertical whitespace. > > \setupheads[alternative=inmargin] > \starttext > \section{Hello} > \subsection{Wie geht's?} > \subsubsection{Gut'n Tach!} > \stoptext > ah ... wrong inheritance \c!strut=\@@koindentnext, should be \c!strut=\@@kostrut, i'll fix it 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] sectionnumber conversion redux
Idris Samawi Hamid wrote: > I sent this a week ago, still awaiting help :-) Sorry, missed it. This fixes the page numbers in the headers \setupsection [section-1][conversion=Romannumerals] I do not (yet) know how to fix the TOC. > Idris > > On Tue, 20 Jun 2006 19:20:58 -0600, Idris Samawi Hamid > <[EMAIL PROTECTED]> wrote: > > Dear fellow gangsters, > > Consider the following test file; partnumber=on. I would like partnumber > to be converted to capital roman numerals while the page numeral remains > as an Arabic numeral. Viz., instead of > > 1--1, 1--2 etc. > > in the TOC and pagenumbers I would like > > I--1, I--2 etc. > > in the TOC and pagenumbers. Is there a command like > > \setupsectionnumbering[conversion=Romannumerals]? Then I would say, > > \setuppartnumbering[conversion=Romannumerals] > > The test file is below. > > Best > Idris > > ===part-test.tex== > % output=pdf interface=en > > \def\PartTitle#1{\noheaderandfooterlines >\vbox{\blank[force,7\bodyfontsize] >\switchtobodyfont[14.4pt] >\midaligned{\cgd #1} >}} > > \setuphead[part][number=no, >ownnumber=yes, >style=\itd, >textcommand=\PartTitle, >placehead=yes] > > \setupsection [section2] > [appendixconversion=Character, % Watch the capital > previousnumber=no] > > %\setuppagenumbering[way=bytext,partnumber=no] > %\setupcombinedlist[content][partnumber=no] > > \starttext > > \startbodymatter > > \placecontent > > \part{I}{Body} > > \chapter{The Body Stuff} > > \stopbodymatter > > \startappendices > > \setupheadnumber[part][+] > > \part{II}{Appendices} > > \chapter{Appendix} > > \stopappendices > > \stoptext > > == > ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.
David Arnold wrote: > Should I just comment out all the "stopper' commands until this > update circulates through G's context updater? > no, after all, it just sets an extra period (stopper) keep in mind that putting complex code in there (esp unbalanced grouping) will never work with stoppers Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
Taco Hoekwater wrote: > David Arnold wrote: > >>> makempx --tex=latex useemp.mp useemp.mpx >>> >>> Does this create an mpx file? >>> > > What happens if you run the bare command 'latex' > on a simple test file? > there's also mptopdf useemp.mp or (more clever): texexec --mpgraphic useemp.mp (latest version) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] emp.sty and metapost
David Arnold wrote: >> >>makempx --tex=latex useemp.mp useemp.mpx >> >>Does this create an mpx file? What happens if you run the bare command 'latex' on a simple test file? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context