Re: [NTG-context] more nath patches
Le 27 oct. 04, à 05:50, David Arnold a écrit : Is there a nath manual? http://www.ctan.org/tex-archive/macros/latex/contrib/nath/ But it is for LaTeX only, and I'm am not sure of what is already implemented in the m-nath module from Giuseppe Bilotta ... Hum, I just see that this is already mention on the context portail http://contextgarden.net/Math_with_nath (So I just had the url) -- Maurice ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Insert a figure
Hello David, > What's the best suggestion for inserting a graphic with no Figure label and > no caption? \externalfigure[cow] or \placefigure{none}{\externalfigure[cow]} Patrick -- ConTeXt wiki: http://contextgarden.net ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] cases
All, Try: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{equation} \label{func} P_{r-j}= \begin{cases} 0, & \text{if $r-j$ is odd}\\ r!(-1)^{(r-j)/2}, & \text{if $r-j$ is even.} \end{cases} \end{equation} \end{document} Then try: \usemodule[amsl] \starttext \placeformula[func] \startformula P_{r-j}= \startcases 0, & \text{if $r-j$ is odd}\\ r!(-1)^{(r-j)/2}, & \text{if $r-j$ is even.} \stopcases \stopformula \stoptext You'll note that the spacing in the latter is not as good. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] align
All, In ams math, the default behavior of align is to align each equation on the &. By default, each equation is numbered. Individual equations can be labeled and referenced. Try: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} F(x)&=\int_0^x f(t)\, dt\label{eq:1}\\ F'(x)&=f(x)\label{eq:2} \end{align} In equation~(\eqref{eq:1}) and equation~(\eqref{eq:2}), we see\ldots \end{document} To suppress number of equations, we use the align* environment. Try: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} F(x)&=\int_0^x f(t)\, dt\\ F'(x)&=f(x) \end{align*} \end{document} When one wants to number an aligned environment as a group, we use aligned instead of align. This requires that we be in math mode. Try: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation}\label{fundthm} \begin{aligned} F(x)&=\int_0^x f(t)\, dt\\ F'(x)&=f(x) \end{aligned} \end{equation} \end{document} I can get this with amsl, with: \usemodule[amsl] \starttext \placeformula[fundthm] \startalign F(x)&=\int_0^x f(t)\, dt\\ F'(x)&=f(x) \stopalign We see in the \in{Fundamental Theorem}[fundthm] \ldots \stoptext I'm not sure how to label and reference individual equations in the align environment, however. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] gather
All, The default behavior of gather is to center a group of equations. By default, each one is numbered. Try: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} F(x)=\int_0^x f(t)\, dt\\ F'(x)=f(x) \end{gather} \end{document} Compare with: \usemodule[amsl] \starttext \startgather F(x)=\int_0^x f(t)\, dt\\ F'(x)=f(x) \stopgather \stoptext In amsmath, if we don't want the individual equations numbered, we use the * version. Try: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} F(x)=\int_0^x f(t)\, dt\\ F'(x)=f(x) \end{gather*} \end{document} I hope this helps those who are working on these issues. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] AMS-like matrices
All, Are there nath, newmat, amsl constructs that do the following: %matrix wrapped in parentheses () \begin{pmatrix} 1&2&3&4\\ 5&6&7&8 \end{pmatrix} %matrix wrapped in brackets [] \begin{bmatrix} 1&2&3&4\\ 5&6&7&8 \end{bmatrix} %matrix wrapped in curly braces {} \begin{Bmatrix} 1&2&3&4\\ 5&6&7&8 \end{Bmatrix} %matrix wrapped in absolute values || good for determinants \begin{vmatrix} 1&2&3&4\\ 5&6&7&8 \end{vmatrix} %matrix wrapped in || || good for magnitude of a vector \begin{Vmatrix} 1&2&3&4\\ 5&6&7&8 \end{Vmatrix} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more nath patches
Is there a nath manual? At 06:18 PM 10/26/04 +0200, you wrote: > >Le 26 oct. 04, à 17:55, Hans Hagen a écrit : > >> Christopher Creutzig wrote: >> >> also, i think that we need to sort out nath interference some day soon >> >> is there a test suite? if not, maybe it's worth the effort to cook up >> a nice math example document (like the one with tables and chemistry) > >Or perhaps the nath manual itself? > >-- Maurice, > >___ >ntg-context mailing list >[EMAIL PROTECTED] >http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Insert a figure
All, What's the best suggestion for inserting a graphic with no Figure label and no caption? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Installing a new font.
Hi, I have just finished from installing a new font. It works in the Tex way as follows: \pdfmapfile{+texnansi-rubicon-karatmedium.map} \font\Karat=texnansi-raw-KAMN. \Karat something to type .. but when i try to use typescripts, it does not work(I have used Bill McClain instructions). Any help would be of great help .. This is my typescript file: \usetypescriptfile[type-buy] \loadmapfile[texnansi-rubicon-karatmedium.map] \starttypescript [sans] [karat] [texiinansi] \definefontsynonym [Karat-Roman] [texnansi-raw-KAMN] [encoding=texnansi] \stoptypescript \starttypescript [sans] [karat] [name] \usetypescript[sans][fallback] \definefontsynonym [Sans] [Karat-Roman] \stoptypescript \starttypescript [Karat] \definetypeface [Karat] [rm] [sans] [karat] [default] [encoding=texnansi] \stoptypescript This is my example file: \usetypescriptfile[Karat.tex] \usetypescript[Karat] \setupbodyfont[Karat] \starttext This is Karat roman, {\it italic,} {\bf bold,} and {\bi bold-italic.} {\em \bf This is also bold-italic.} We have {\sc small caps} and old-style figures: {\os 0123456789}. \stoptext And this is the output of texexec: This is pdfeTeXk, Version 3.141592-1.11b-2.1 (Web2c 7.5.2) (format=cont-en 2004.10.24) 27 OCT 2004 02:13 entering extended mode %&-line parsing enabled. (c:/TeXLive/texmf/web2c/cp8bit.tcx) **&cont-en TypescriptTest.tex (./TypescriptTest.tex{c:/TeXLive/texmf-var/pdftex/config/pdftex.cfg} ConTeXt ver: 2004.10.19 fmt: 2004.10.24 int: english mes: english systems: pdfTeX version 111 -> please update systems: eTeX version 201 -> too old (bugs) language : language en is active system : cont-new loaded (c:/TeXLive/texmf/tex/context/base/cont-new.tex systems: beware: some patches loaded from cont-new.tex! color : palette rollover is available system (E-TEX) : [line 1012] system (E-TEX) : [line 1067] ) system : cont-old loaded (c:/TeXLive/texmf/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (c:/TeXLive/texmf/tex/context/base/cont-fil.tex loading: Context File Synonyms ) system : cont-sys loaded (c:/TeXLive/texmf/tex/context/user/cont-sys.tex) bodyfont : 12pt rm is loaded language : patterns en->default:default->1->2:2 uk->default:default->2->2 :2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2: 2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 i t->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded specials : tex,postscript,rokicki loaded \openout2 = `TypescriptTest.tui'. system : TypescriptTest.top loaded (./TypescriptTest.top specials : loading definition file tpd (c:/TeXLive/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (c:/TeXLive/texmf/tex/context/base/spec-fdf.tex system (E-TEX) : [line 2257] \ifcsname ) specials : fdf loaded ) specials : fdf,tpd loaded ) \openout0 = `TypescriptTest-mpgraph.mp'. \openout0 = `mpgraph.mp'. fonts : [Karat] [] [] (c:/TeXLive/texmf/tex/context/base/type-syn.tex) (c:/TeXLive/texmf/tex/context/base/type-enc.tex) (c:/TeXLive/texmf/tex/context/base/type-siz.tex) (c:/TeXLive/texmf/tex/context/base/type-map.tex) (c:/TeXLive/texmf/tex/context/base/type-spe.tex) (c:/TeXLive/texmf/tex/context/base/type-exa.tex) (c:/TeXLive/texmf/tex/context/base/type-akb.tex) (c:/TeXLive/texmf/tex/context/user/Karat.tex fonts : [Karat] [rm] [sans] [karat] / texnansi fonts : [map] [texnansi] [] (c:/TeXLive/texmf/tex/context/base/type-syn.tex) (c:/TeXLive/texmf/tex/context/base/type-enc.tex) (c:/TeXLive/texmf/tex/context/base/type-siz.tex) (c:/TeXLive/texmf/tex/context/base/type-map.tex) (c:/TeXLive/texmf/tex/context/base/type-spe.tex) (c:/TeXLive/texmf/tex/context/base/type-exa.tex) (c:/TeXLive/texmf/tex/context/base/type-akb.tex) (c:/TeXLive/texmf/tex/context/user/Karat.tex) (c:/TeXLive/texmf/tex/context/base/type-buy.tex) fonts : [sans,map] [karat] [name,default,texnansi,special] (c:/TeXLive/texmf/tex/context/base/type-syn.tex) (c:/TeXLive/texmf/tex/context/base/type-enc.tex) (c:/TeXLive/texmf/tex/context/base/type-siz.tex) (c:/TeXLive/texmf/tex/context/base/type-map.tex) (c:/TeXLive/texmf/tex/context/base/type-spe.tex) (c:/TeXLive/texmf/tex/context/base/type-exa.tex) (c:/TeXLive/texmf/tex/context/base/type-akb.tex) (c:/TeXLive/texmf/tex/context/user/Karat.tex fonts : [sans] [fallback] [] (c:/TeXLive/texmf/tex/context/base/type-syn.tex) (c:/TeXLive/texmf/tex/context/base/type-enc.tex) (c:/TeXLive/texmf/tex/context/base/type-siz.tex) (c:/TeXLive/texmf/tex/context/base/type-map.tex) (c:/TeXLive/texmf/tex/context/base/type-spe.tex) (c:/TeXLive/texmf/tex/context/base/type-exa.tex) (c:/TeXLive/texmf/tex/context/base/type-akb.tex) (c:/TeXLive/texmf/tex/context/user/Karat.tex) (c:/TeXLive/texmf/tex/context/base/type-buy.tex)) (c:/TeXLive/texm
Re: [NTG-context] named destinations with highlation
shiva shankar shankar wrote: suppose that i am having a target text and link to a target text in a pdf document(created either by using pdftex or by using a distiller) if i click the link it will take you to the target text. When you go to the target text if i want to highlate the text with some color temporarily( like when you use find ) what must be the postscript code or javascript code that i should embed in a tex file. This is kind of tricky, maybe something: - use the background mechanism to mark text fragments - put the background of the destination text in a pdf layer, this is an acrobat 6 feature, supported by context (not to be confused with context layers) - the link should then indeed be a javascript that sets a global variable with info about the destination - in the destination document, the pags action should be a javascript which checks the global variable and if applicable, enables the layer, thereby turning on the background if javascript supports cross document search within a page range (i didn't check that) a solution is to simply put a javascript behind a link 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec 4.0 to 5.0 update.
Jan-Mark Batke wrote: Dear all, using the example below with texexec --pdf example.tex metapost comes up with its prompt - answering \bye results in a correct pdf file. Whats going wrong? How can I debug that? smells like an error. you can try to process the jobname-mpgraph file and see what is reported BTW, is it possible just to extract the flowchart as a file? I found the --figures=c switch but it doesn't seem to do what I want. you mean as stand alone graphic? \starttext \startTEXpage ... your chart ... \stopTEXpage \stoptext - 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more nath patches
Le 26 oct. 04, à 17:55, Hans Hagen a écrit : Christopher Creutzig wrote: also, i think that we need to sort out nath interference some day soon is there a test suite? if not, maybe it's worth the effort to cook up a nice math example document (like the one with tables and chemistry) Or perhaps the nath manual itself? -- Maurice, ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Metapost + metaObjet connector label on arcs
Le 26 oct. 04, à 13:53, Hans Hagen a écrit : Maurice Diamantini wrote: 4 - about ConTeXt and Metapost: What should I put in the "verbatimtex ... etex" header to be able to use ConTexT in btex..etex instead of LaTex? (I don't want use (for now ) the "inside ConTeXt document" method for the sake of environnement robustness, and for reusability) normally nothing has to go in there you can make stand alond graphics with context doing: \setupcolors[state=start] \starttext \startMPpage your mp code \stopMPpage \stoptext That gives you a stand alone pdf graphic that you can embed later The problem is probably due to my installation (texlive 2003 installed in a non standard directory) Everything works well but the previous code give me a write page. (should I put mp code between beginfig..endfig ?) If I do the magic (from http://contextgarden.net/Linux_Installation) texexec --make --alone --all en nl uk metafun mptopdf After some time it give me: `texexec.pl' not found. In fact, I've never been able to make the basic exemples about Metafun working. ... no, btex etex is parsed and handles in special ways; this is why metafun has the textext macro That is a good raison for using context with Metafun... as soon as installation works! Maurice, ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more nath patches
Christopher Creutzig wrote: Should have one just for code cleanliness, yes. But it's all in math mode, so the spce should not do anything. ah .. i'm not that math aware -) if you make that fontdimen list i'll add the names to the kernel also, i think that we need to sort out nath interference some day soon is there a test suite? if not, maybe it's worth the effort to cook up a nice math example document (like the one with tables and chemistry) 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: new release
Adam Lindsay wrote: Hi Hans. I just noticed this morning in your enco-uc (also appears in the new release) that the following is outside the start/stopencoding, and therefore causes some Bad Things (looking for UnicodeRegular20) if people use language settings: indeed, i noticed it this morning (e.g. \quote is not working any more i uploaded a new version (and am now uploading the rest) 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more nath patches
Hans Hagen wrote: \!!dimenf=\fontdimen8\textfont2 \!!dimenf\fontdimen8\textfont\syfam OK, I should look those names up. is more independent; maybe i should define symbolic names for the font Independent of what? \textfont2 is exactly the font TeX would use, no? (\!!dimeni+0.5\fracrulethickness@)\relax is \fracrulethickness@ a nath specific thing? Yes. As I said, I'm thinking of using the proper fontdimen of the correct font instead. \hfill\, maybe you need a % after this line Should have one just for code cleanliness, yes. But it's all in math mode, so the spce should not do anything. Christopher ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] new release
Hi Hans. I just noticed this morning in your enco-uc (also appears in the new release) that the following is outside the start/stopencoding, and therefore causes some Bad Things (looking for UnicodeRegular20) if people use language settings: \stopencoding \definecharacter endash {\uchar{32}{19}} \definecharacter emdash {\uchar{32}{20}} \definecharacter quoteleft {\uchar{32}{24}} \definecharacter quoteright {\uchar{32}{25}} \definecharacter quotesinglebase {\uchar{32}{26}} \definecharacter quotedblleft{\uchar{32}{28}} \definecharacter quotedblright {\uchar{32}{29}} \definecharacter quotedblbase{\uchar{32}{30}} \definecharacter leftguillemot {\uchar0{171}} \definecharacter rightguillemot {\uchar0{187}} \definecharacter guilsingleleft {\uchar{32}{57}} \definecharacter guilsingleright {\uchar{32}{58}} %D a temporary guess: \startencoding[default] \definecommand Greekleftquot {\leftguillemot} \definecommand Greekrightquot {\rightguillemot} \stopencoding -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] stretched text
Piotr Kopszak wrote: Right, but as far as I understand this solution: \def\CapStretchAmount{.08em} \def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}\stretchednormalcase{#1}} Which is used as so: \CapStretch{\sc The King in Yellow} applies only to small caps? grep stretch core-fnt.tex 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX no longer working
Christopher Creutzig wrote: Adam Lindsay wrote: I ran into more problems with image inclusion, which takes the form of: \XeTeXpicfile "filename" xscaled something yscaled something My hack for that one currently includes a temporary assignment of the catcode for ". Yuck. I imagine that's not going to work for handling wider-ranged things for fonts in MP. I hope this is not a dumb question, but what about \begingoup \catcode`\"=whatever \def\x{\endgroup\def\xetex!quot{"}}% \x and then later in supp-ini i've added: .catcode `." 12 .xdef .letterdoublequote B.string"E .catcode `.' 12 .xdef .lettersinglequote B.string'E or for the moment in moment in cont-new.tex: \catcode `\" 12 \xdef \letterdoublequote {\string"} \catcode `\' 12 \xdef \lettersinglequote {\string'} there is nothing xetex! about that quote and this fits in the naming scheme \expanded{\XeTeXpicfile \xetex!quot filename\xetex!quot\space xscaled ...} 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX no longer working
Adam Lindsay wrote: I ran into more problems with image inclusion, which takes the form of: \XeTeXpicfile "filename" xscaled something yscaled something maybe xetex should adopt the pdftex syntax there or use { } instead of " 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more nath patches
Christopher Creutzig wrote: [EMAIL PROTECTED] 2\mex\!!width 0pt since you are going the fast and efficient way (\using \!!dimena etc), 0pt can become \zeropoint (less space interference as well) \!!dimenf=\fontdimen8\textfont2 \!!dimenf\fontdimen8\textfont\syfam is more independent; maybe i should define symbolic names for the font dimens as well (no time to make a list now) (\!!dimeni+0.5\fracrulethickness@)\relax is \fracrulethickness@ a nath specific thing? \hfill\, maybe you need a % after this line I do assume the whole thing could be done with about half as many lines of code, but I was glad to finally understand how TeX typesets fractions and just ignored beautifying the code. Also note that the snippet uses it's not that bad, tricky code seldom looks nice 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] stretched text
Hello, Piotr Kopszak wrote: Right, but as far as I understand this solution: \def\CapStretchAmount{.08em} \def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}\stretchednormalcase{#1}} Which is used as so: \CapStretch{\sc The King in Yellow} applies only to small caps? If you leave out the \sc, it works also for small letters: \CapStretch{The King in Yellow} Though one can argue that then the macros should be renamed: \def\StretchAmount ... \def\Stretch#1 ... Tobias ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX no longer working
Adam Lindsay wrote: I ran into more problems with image inclusion, which takes the form of: \XeTeXpicfile "filename" xscaled something yscaled something My hack for that one currently includes a temporary assignment of the catcode for ". Yuck. I imagine that's not going to work for handling wider-ranged things for fonts in MP. I hope this is not a dumb question, but what about \begingoup \catcode`\"=whatever \def\x{\endgroup\def\xetex!quot{"}}% \x and then later \expanded{\XeTeXpicfile \xetex!quot filename\xetex!quot\space xscaled ...} Christopher ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] stretched text
On Mon, Oct 25, 2004 at 10:32:53AM -0500, Bill McClain wrote: > On Mon, 25 Oct 2004 16:06:10 +0200 > [EMAIL PROTECTED] (Piotr Kopszak) wrote: > > > Hello, > > > > I know it's a bad habit to use stretched text, but apparently > > formerly people thought differently. I am typesetting old quotations > > and would not want to replace stretched text simply by emphasized. Is > > it absolutely discouraged in ConTeXt or is there any way to have > > it... (in spite of its ugliness). > > It's still recommended in certain cases, for example in all capital or > small cap titles. Sometimes I do it and sometimes not. > > You can do it in Context. See: > > http://home.salamander.com/~wmcclain/context-help.html#typography-letterspacing > > You might have to look into the sources to find other options. > > -Bill Right, but as far as I understand this solution: \def\CapStretchAmount{.08em} \def\CapStretch#1{\def\stretchedspaceamount{\CapStretchAmount}\stretchednormalcase{#1}} Which is used as so: \CapStretch{\sc The King in Yellow} applies only to small caps? Piotr -- Piotr Kopszak, Ph.D. Polish Art Gallery, National Museum in Warsaw ->http://kopszak.mnw.art.pl/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX no longer working
Hans Hagen said this at Tue, 26 Oct 2004 14:50:07 +0200: >how exactly do you define a font: > > "Hoefler Text: Ligatures=Diphthongs" at 10pt This first one, thank goodness. It complicates some of your more sophisticated font-handling macros (such as not being able to say \showfont["Hoefler Text"], but having to give a size as well), but for the typescripts, with a mixture of quoting and grouping, Jonathan's scheme works well enough. I ran into more problems with image inclusion, which takes the form of: \XeTeXpicfile "filename" xscaled something yscaled something My hack for that one currently includes a temporary assignment of the catcode for ". Yuck. I imagine that's not going to work for handling wider-ranged things for fonts in MP. So yeah, I'll point your request to the XeTeX list... adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] named destinations with highlation
Dear sir, suppose that i am having a target text and link to a target text in a pdf document(created either by using pdftex or by using a distiller) if i click the link it will take you to the target text. When you go to the target text if i want to highlate the text with some color temporarily( like when you use find ) what must be the postscript code or javascript code that i should embed in a tex file. shiva shankar. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] more nath patches
Salvete, I finally managed to make t-nath work with \eqalign and \eqalignno. (I assume I was not the only one having trouble there?) As it appears, nath gets really confused when subformulas are enclosed in {} and contain some form of delimiters. Therefore, the original definitions just don't work, but these modifications do, at least in some sense of “work”: \def\eqalignno#1% [EMAIL PROTECTED] \tabskip\centering \vcenter{% [EMAIL PROTECTED] \halign to \displaywidth [EMAIL PROTECTED] [EMAIL PROTECTED] &[EMAIL PROTECTED] {}##\stopnathdmath}\hfil\tabskip\centering &[EMAIL PROTECTED]@skip\crcr #1\crcr}}} \def\eqalign#1% {\null \,% \vcenter {\openup [EMAIL PROTECTED] \ialign {\strut\hfil{\startnathdmath ##\stopnathdmath}&% {\startnathdmath {}##\stopnathdmath}\hfil\crcr #1\crcr}}% \,} And I've got another snippet I'd like to share, which helps displaying continued fractions in a linear format, using the “best” way of doing so I've met so far: \def\contfrac#1#2{% % To get the lines at the top right and bottom left % at the correct lengths, we need to know the final heights % of both top and bottom. Since styles ``C-up'' and ``C-down'' % are used only in generalized fractions, we need a trial % typesetting run for this. \begingroup [EMAIL PROTECTED]@ [EMAIL PROTECTED] .7\mex\!!width 0pt [EMAIL PROTECTED] #1}% \!!dimena=\ht\nathbox \advance\!!dimena-\ht\sizebox@ [EMAIL PROTECTED] % \!!dimena=\dp\nathbox \advance\!!dimena .5ex \dp\nathbox=\!!dimena \global\!!dimend=\dp\nathbox \box\nathbox \above\fracrulethickness@ [EMAIL PROTECTED] 2\mex\!!width 0pt [EMAIL PROTECTED] #2}% \!!dimenb=\dp\nathbox \advance\!!dimenb-\dp\sizebox@ [EMAIL PROTECTED] % \!!dimenb=\ht\nathbox \advance\!!dimenb .5ex \ht\nathbox=\!!dimenb \global\!!dimene=\ht\nathbox \box\nathbox }% [EMAIL PROTECTED] % % %% See the TeXbook, page 444 f., for what is happening here. \ifcase\mathcount@ \!!dimenf=\fontdimen8\textfont2 \!!dimeng=\fontdimen11\textfont2 \!!dimenh=3\fracrulethickness@ \!!dimeni=\fontdimen22\textfont2 \or \!!dimenf=\fontdimen9\scriptfont2 \!!dimeng=\fontdimen12\scriptfont2 \!!dimenh=\fracrulethickness@ \!!dimeni=\fontdimen22\scriptfont2 \else \!!dimenf=\fontdimen9\scriptscriptfont2 \!!dimeng=\fontdimen12\scriptscriptfont2 \!!dimenh=\fracrulethickness@ \!!dimeni=\fontdimen22\scriptscriptfont2 \fi % \!!dimenj=\dimexpr(\!!dimenf-\!!dimend)- (\!!dimeni+0.5\fracrulethickness@)\relax \ifdim\!!dimenj<\!!dimenh \advance\!!dimenf by \dimexpr(\!!dimenh-\!!dimenj)\relax \fi \!!dimenj=\dimexpr(\!!dimeni-0.5\fracrulethickness@)- (\!!dimene-\!!dimeng)\relax \ifdim\!!dimenj<\!!dimenh \advance\!!dimeng by \dimexpr(\!!dimenh-\!!dimenj)\relax \fi % \advance\!!dimenf by\dimexpr(-\!!dimeni)\relax \advance\!!dimeng by\dimexpr(+\!!dimeni)\relax % \setbox\!!boxa\hbox{% [EMAIL PROTECTED]@ [EMAIL PROTECTED] .7\mex\!!width 0pt [EMAIL PROTECTED] #1}% \ifdim\ht\nathbox<1.6ex \ht\nathbox=1.6ex \fi \!!dimena=\ht\nathbox \advance\!!dimena-\ht\sizebox@ [EMAIL PROTECTED] \setbox\!!boxb\hbox{% \vrule \!!depth\!!dimenf \!!height\ht\nathbox \!!width\fracrulethickness@ }% \dp\!!boxb=0pt \hfill\, \box\nathbox \,\hfill [EMAIL PROTECTED] \above\fracrulethickness@ [EMAIL PROTECTED] 2\mex\!!width 0pt [EMAIL PROTECTED] #2}% \ifdim\dp\nathbox<.4ex \dp\nathbox=.4ex \fi \!!dimenb=\dp\nathbox \advance\!!dimenb-\dp\sizebox@ [EMAIL PROTECTED] \setbox\!!boxb\hbox{% \vrule \!!depth\dp\nathbox \!!height\!!dimeng \!!width\fracrulethickness@ }% \ht\!!boxb=0pt \box\!!boxb\hskip\fracrulethickness@ \hfill\, \box\nathbox \,\hfill }% [EMAIL PROTECTED] \setbox\nathbox\copy\!!boxa \iftoprestricted@ \else \!!dimenb=\ht\nathbox \advance\!!dimenb .4\mex \ht\nathbox=\!!dimenb \fi \ifbotrestricted@ \else \!!dimenb=\dp\nathbox \advance\!!dimenb .5\mex \dp\nathbox=\!!dimenb \fi \box\nathbox % print \!!dimena=\ht\!!boxa \advance\!!dimena-\htdecrement@ \ht\!!boxa=\!!dimena \!!dimena=\dp\!!boxa \advance\!!dimena-\dpdecrement@ \dp\!!boxa=\!!dimena [EMAIL PROTECTED] \endgroup [EMAIL PROTECTED]@}} I do assume the whole thing could be done with about half as many lines of code, but I was glad to finally understand how TeX typesets fractions and just ignored beautifying the code. Also note that the snippet uses \fracrulethickness@ from t-nath.tex, while I honestly consider using \fontdimen8\textfont3 or whichever font size is in use for the fraction. Well, work in progress. regards, Christopher Creutzig ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Re: XeTeX no longer working
* Adam Lindsay <[EMAIL PROTECTED]> [Oct 26, 2004 14:30]: > > I'm sorry to barge in on this discussion, but this XeTeX thing? Are > > you running Mac OS X to use it, or is there an easy way to get it > > working on UN*X? I tried finding information on setting it up on > > UN*X, but it didn't seem there was any. > Sorry to exclude you, but this XeTeX thing is totally a MacOSX thing. > It's an evolution of TeX/GX, and uses Apple's advanced typography APIs > for font handling. It means *massive* simplification of font > installation, special feature use, and Unicode, but at the cost of cross- > platform-ness and some backward compatibility (mostly in legacy fonts). As I feared :-(. > The backward compatibility is improving with each release, but the > thing is never going to be cross-platform with respect to Apple's > APIs. If you do get your hands on a MacOSX system, I highly recommend > giving XeTeX a try! [ http://scripts.sil.org/xetex ] OK. Thanks for the incredibly quick response, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX no longer working
Adam Lindsay wrote: ^^@:35: Extra tokens will be flushed. Hoefler l.35 defaultfont:=""Hoefler Text: Ligatures=Diphthongs""; hm, the "'s interfere here how exactly do you define a font: "Hoefler Text: Ligatures=Diphthongs" at 10pt or "Hoefler Text: Ligatures=Diphthongs at 10pt" or which becomes tricky with "Hoefler Text: Ligatures=Diphthongs sa 2" How about introducing something \xfn{Hoefler Text: Ligatures=Diphthongs} instead of " ; I can even imagine that xetex supports { } as alternative for " because: - it's not sensitive for " being active and such - it nicely moves through the tex machinery since tex knows how to deal with {}'s on the other hand, such {} can get lost when passing arguments, so maybe () is a better alternative since it also fits in the ps/pdf way of handling args -) (Hoefler Text: Ligatures=Diphthongs) at 10pt that we then can redefine at will. This will move through most tex macros without problems and adaptions. So, can you ask Jonathan if he is willing to accept (0 as alternative alongside "" ? 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: XeTeX no longer working
Nikolai Weibull said this at Tue, 26 Oct 2004 13:32:23 +0200: >I'm sorry to barge in on this discussion, but this XeTeX thing? Are you >running Mac OS X to use it, or is there an easy way to get it working on >UN*X? I tried finding information on setting it up on UN*X, but it >didn't seem there was any. Hi Nikolai, Sorry to exclude you, but this XeTeX thing is totally a MacOSX thing. It's an evolution of TeX/GX, and uses Apple's advanced typography APIs for font handling. It means *massive* simplification of font installation, special feature use, and Unicode, but at the cost of cross- platform-ness and some backward compatibility (mostly in legacy fonts). The backward compatibility is improving with each release, but the thing is never going to be cross-platform with respect to Apple's APIs. If you do get your hands on a MacOSX system, I highly recommend giving XeTeX a try! [ http://scripts.sil.org/xetex ] adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 'german' indention in radio field
Peter Rolf wrote: Hi there! After a new installation of Texlife my radio field example (4.10.) works (now?). But if you simply add \mainlanguage[de] the first button is indented again. Hmmm, it seems that my first example was too minimal. I've also tried [en] and [dk]; no problems. You need to change this in enco-fde,tex (i.e. remove the comment since it introduces a space) \startencoding[pdfdoc] \startlanguagespecifics[\s!de]% hm, a % is needed \defineactivecharacter " {\"} \stoplanguagespecifics \stopencoding - 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX no longer working
[copied to the list, cos it's informative...] Christopher Creutzig said this at Tue, 26 Oct 2004 12:46:17 +0200: >> The problem is with the changes that went into the ConTeXt distribution. >> Since you're running an up-to-date XeTeX, a temporary workaround is >> replacing the following: > > Thanks a lot. Unfortunately, I've run into the next problem: I can't >use Metapost if I'm using a font with spaces in its name: Whoa-ho-ho! Now you're getting fancy! :) I've already said the current specials are pretty broken with respect to image inclusion. Running MetaPost/MetaFun is one step beyond that, still. I'll treat it as a feature request, but it's getting a bit beyond my ken... >^^@:35: Extra tokens will be flushed. > >Hoefler >l.35 defaultfont:=""Hoefler > Text: Ligatures=Diphthongs""; > > >I don't try to have MP write any text itself, so I don't care for >defaultfont. Hans, is there an easy way to tell ConTeXt what to write >as defaultfont? From what I can see, I'd either need to patch >meta-ini.tex (uh-uh) or wade through \MPinitializations, which is likely >to be fragile as well. Yeah, I'm not familiar with how defaultfont even gets set, there. A minimal-but-complete test file (that would work with pdfetex, say) could be really helpful in terms of getting the feature going on my end... Cheers, adam >> >>>\resetspecials >>>\defineoutput [xetex] [xtx] >>>\setupoutput[xetex] >> >> >> ...with: >> \setupoutput[dvipdfmx] >> >> It's not entirely accurate, but XeTeX now supports 85% of the important >> dvipdfmx specials, so the next spec-xtx will inherit from dvipdfmx. >> >> best, >> adam >> >> Christopher Creutzig said this at Tue, 26 Oct 2004 09:55:41 +0200: >> >> >>>Salvete, >>> >>> since mail directly to Adam Lindsay does not seem to get through (I >>>never got a reply, even when asking if it had got through, so I'm >>>assuming it didn't), sorry to everyone not interested in XeTeX. >>> >>> After upgrading to tetex beta, XeTeX 0.88, and ConTeXt 2004.10.07, I'm >>>suddenly running into problems: >>> >>>\resetspecials >>>\defineoutput [xetex] [xtx] >>>\setupoutput[xetex] >>>\usetypescriptfile [type-xtx] >>>\definetypeface[Hoe][rm][serif][hoefler] [default][encoding=unicode] >>>\setupbodyfont [Hoe,rm]% >>>\setupcolor[state=start] >>> >>>\starttext >>>{\red test} >>>\stoptext >>> >>> >>> >>>! Undefined control sequence. >>>\dostartrgbcolormode ...tring {\colorhexcomponent >>> >>>{#1}\colorhexcomponent {#2... >>> >>>\doexeccolorrgb ...ode \@@cl@@r \@@cl@@g \@@cl@@b >>> \or \or \or \or \or >>>\dosta... >>> >>>\doexeccolorR ...!r \normalizeRGB \doexeccolorrgb >>> \else >>>\ifCMYKsupported \re... >>> >>>\@@crred ->0R:1:0:0: >>>0:0 >>>\dowithcolor ... \??cr \currentpalet #2\endcsname >>> \od \else \ifcsname >>>\??cr ... >>> >>>\dodoglobalstartcolor ...m!colors 3\@@askedcolor } >>> \fi \fi >>>... >>>l.11 {\red >>> test} >>> >>> >>> Is there a newer version of XeTeX support available? (spec-xtx.tex >> >>>from context/base, which is used, unfortunately only lists >> >>>"version=2004.*.*".) >>> >>> I believe the problem is in >>> >>>\ifx\colorhexcomponent\undefined >>> >>>% this will be added to colo-hex.tex >>> >>>\else >>> >>>% because we intercept the zero condition, the .23pt in 1.23pt will >>>disappea >>>r in the >>>% ifcase zero part branch >>> >>>\def\colorhexcomponent#1% >>> {\ifdim#1\points<.005\points >>>... >>> >>> Why is there an empty first branch in the if? >>> >>>Regards, >>> Christopher Creutzig >>> >>>___ >>>ntg-context mailing list >>>[EMAIL PROTECTED] >>>http://www.ntg.nl/mailman/listinfo/ntg-context >> >> -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Metapost + metaObjet connector label on arcs
Maurice Diamantini wrote: 4 - about ConTeXt and Metapost: What should I put in the "verbatimtex ... etex" header to be able to use ConTexT in btex..etex instead of LaTex? (I don't want use (for now ) the "inside ConTeXt document" method for the sake of environnement robustness, and for reusability) normally nothing has to go in there you can make stand alond graphics with context doing: \setupcolors[state=start] \starttext \startMPpage your mp code \stopMPpage \stoptext That gives you a stand alone pdf graphic that you can embed later 5 - about metapost: How can I build the string to give to TeX as in string str; str = "x^2" btex \large F = etex or perhaps somthing like : string str; str = "btex \large F = " & str é " etex" eval(str) no, btex etex is parsed and handles in special ways; this is why metafun has the textext macro 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Metapost + metaObjet connector label on arcs
Le 24 oct. 04, à 20:30, Denis Roegel a écrit : A new problem is that the label sep is to big from thes arcs, and I'm not able to ajust it. The "labshift" option doesn't seem to work with ncarc, althought it works for the nodes. ... this was possibly corrected in an unreleased version of metaobj: http://www.loria.fr/~roegel/metaobj.mp Thank very much!! 1 - firstly, T've know solved my initial problem, and I've been able to build my first non-pstrick figure (thank to this mailing help). So the next points are not criticals for me. See them just as remarks or suggestions (but any help is still welcomme :-) 2 - about the "off topic": As denis is on this list, what is the best mailing for talking about metaObj Denis? 3 - about the metaObj prerelease: I suggest that the last package (metaobj.mp and its pdf doc) are not hidden, but accessible (and refered from Metapost page) from a public directory; The MetaObj package could be as important as Metapost itself for the ex-pstricks users; so it should be easy to get the last version 4 - about ConTeXt and Metapost: What should I put in the "verbatimtex ... etex" header to be able to use ConTexT in btex..etex instead of LaTex? (I don't want use (for now ) the "inside ConTeXt document" method for the sake of environnement robustness, and for reusability) 5 - about metapost: How can I build the string to give to TeX as in string str; str = "x^2" btex \large F = etex or perhaps somthing like : string str; str = "btex \large F = " & str é " etex" eval(str) 6 - about Metaobj user class I'd have build two macros (see the end of this mail): - buildActivity(xxx) % buildActivity: % name: the name of the new node % inFig; figuure to put in the circle % botFig; figuure to put under the circle % topFig; figuure to put above the circle % coord : position of the center of the circle % Example : % buildActivity(n0, btex\large 0 etex, btex b0 etex, btex u0 etex, z0); from which I think I will be able to build a new more or less generic Node class with some options and default behavior, - buildArc(xxx) % buildArc(nodeSrc, nodeDst, labshift, labangle, labelFig) which was more difficult to tune (for me, as a Metapost beginner) Also I hadn't use it for my application because of the lack of genericity. In fact, Id'like to build a new class (newArc) which could be considere as an object by itself, with its own set of options. (in particular default connector should be ncline, but easy to change to support all the metaObj connector) I think these two macros could serve as a good exemple of the power of metaObj, and would be much more readable than psTricks (i.e. TeX langage) ! Thank you very much for these tools and for any other help, Maurice, -- http://www.ensta.fr/~diam/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: XeTeX no longer working
* Adam Lindsay <[EMAIL PROTECTED]> [Oct 26, 2004 12:57]: > ...with: > \setupoutput[dvipdfmx] > It's not entirely accurate, but XeTeX now supports 85% of the important > dvipdfmx specials, so the next spec-xtx will inherit from dvipdfmx. I'm sorry to barge in on this discussion, but this XeTeX thing? Are you running Mac OS X to use it, or is there an easy way to get it working on UN*X? I tried finding information on setting it up on UN*X, but it didn't seem there was any. Thanks, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] placeformula with active colon
David Munger wrote: Hello, Making the colon active results in errors when using colons in formula labels. Example: \useencoding[ffr] \mainlanguage [fr] \starttext \placeformula[eq:foo] \startformula a = 0 \stopformula \stoptext In your cont-new.tex, add: \unprotect \unexpanded\def\directdiscretionary#1% {\convertargument#1\to\discretionarytoken \let\textmodediscretionary\compoundhyphen [EMAIL PROTECTED]@\string#1\endcsname\relax \prewordbreak \discretionary{\hbox{#1}}{}{\hbox{#1}}% \allowbreak\postwordbreak \else [EMAIL PROTECTED]@\string#1\endcsname \fi} \protect (or in supp-lan.tex, add the \unexpanded and recompile a format) 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] placeformula with active colon
Hello, Making the colon active results in errors when using colons in formula labels. Example: \useencoding[ffr] \mainlanguage [fr] \starttext \placeformula[eq:foo] \startformula a = 0 \stopformula \stoptext Log: TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004 [...] ConTeXt ver: 2004.10.19 fmt: 2004.10.23 int: english mes: english [...] ! Undefined control sequence. \discretionarytoken \convertargument #1\to #2->\dodoglobal \edef #2 {\detokenize {#1}} \directdiscretionary ...#1\to \discretionarytoken \let \textmodediscretionar... eq: foo \doifelse #1#2->\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!! stringa \!... \dodoplaceformula [#1]#2->\doifelse {#1}{-} {\setfalse \handleformulanumber ... ... l.5 \startformula Thanks for any help, David Munger ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XeTeX no longer working
Christopher, Sorry. My email answering has been sporadic in the past few weeks because I have been travelling. (I need to check if some of your mail got spam- filtered, as well!) The problem is with the changes that went into the ConTeXt distribution. Since you're running an up-to-date XeTeX, a temporary workaround is replacing the following: >\resetspecials >\defineoutput [xetex] [xtx] >\setupoutput[xetex] ...with: \setupoutput[dvipdfmx] It's not entirely accurate, but XeTeX now supports 85% of the important dvipdfmx specials, so the next spec-xtx will inherit from dvipdfmx. best, adam Christopher Creutzig said this at Tue, 26 Oct 2004 09:55:41 +0200: >Salvete, > > since mail directly to Adam Lindsay does not seem to get through (I >never got a reply, even when asking if it had got through, so I'm >assuming it didn't), sorry to everyone not interested in XeTeX. > > After upgrading to tetex beta, XeTeX 0.88, and ConTeXt 2004.10.07, I'm >suddenly running into problems: > >\resetspecials >\defineoutput [xetex] [xtx] >\setupoutput[xetex] >\usetypescriptfile [type-xtx] >\definetypeface[Hoe][rm][serif][hoefler] [default][encoding=unicode] >\setupbodyfont [Hoe,rm]% >\setupcolor[state=start] > >\starttext >{\red test} >\stoptext > > > >! Undefined control sequence. >\dostartrgbcolormode ...tring {\colorhexcomponent > >{#1}\colorhexcomponent {#2... > >\doexeccolorrgb ...ode \@@cl@@r \@@cl@@g \@@cl@@b > \or \or \or \or \or >\dosta... > >\doexeccolorR ...!r \normalizeRGB \doexeccolorrgb > \else >\ifCMYKsupported \re... > >\@@crred ->0R:1:0:0: > 0:0 >\dowithcolor ... \??cr \currentpalet #2\endcsname > \od \else \ifcsname >\??cr ... > >\dodoglobalstartcolor ...m!colors 3\@@askedcolor } > \fi \fi >... >l.11 {\red >test} > > > Is there a newer version of XeTeX support available? (spec-xtx.tex >from context/base, which is used, unfortunately only lists >"version=2004.*.*".) > > I believe the problem is in > >\ifx\colorhexcomponent\undefined > > % this will be added to colo-hex.tex > >\else > > % because we intercept the zero condition, the .23pt in 1.23pt will >disappea >r in the > % ifcase zero part branch > > \def\colorhexcomponent#1% > {\ifdim#1\points<.005\points >... > > Why is there an empty first branch in the if? > >Regards, > Christopher Creutzig > >___ >ntg-context mailing list >[EMAIL PROTECTED] >http://www.ntg.nl/mailman/listinfo/ntg-context -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XeTeX no longer working
Salvete, since mail directly to Adam Lindsay does not seem to get through (I never got a reply, even when asking if it had got through, so I'm assuming it didn't), sorry to everyone not interested in XeTeX. After upgrading to tetex beta, XeTeX 0.88, and ConTeXt 2004.10.07, I'm suddenly running into problems: \resetspecials \defineoutput [xetex] [xtx] \setupoutput[xetex] \usetypescriptfile [type-xtx] \definetypeface[Hoe][rm][serif][hoefler] [default][encoding=unicode] \setupbodyfont [Hoe,rm]% \setupcolor[state=start] \starttext {\red test} \stoptext ! Undefined control sequence. \dostartrgbcolormode ...tring {\colorhexcomponent {#1}\colorhexcomponent {#2... \doexeccolorrgb ...ode \@@cl@@r \@@cl@@g \@@cl@@b \or \or \or \or \or \dosta... \doexeccolorR ...!r \normalizeRGB \doexeccolorrgb \else \ifCMYKsupported \re... \@@crred ->0R:1:0:0: 0:0 \dowithcolor ... \??cr \currentpalet #2\endcsname \od \else \ifcsname \??cr ... \dodoglobalstartcolor ...m!colors 3\@@askedcolor } \fi \fi ... l.11 {\red test} Is there a newer version of XeTeX support available? (spec-xtx.tex from context/base, which is used, unfortunately only lists "version=2004.*.*".) I believe the problem is in \ifx\colorhexcomponent\undefined % this will be added to colo-hex.tex \else % because we intercept the zero condition, the .23pt in 1.23pt will disappea r in the % ifcase zero part branch \def\colorhexcomponent#1% {\ifdim#1\points<.005\points ... Why is there an empty first branch in the if? Regards, Christopher Creutzig ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: no connection to contextgarden
Patrick Gundlach wrote: 10 ge-01.hetzner.dhk.nbg.metabone.net (213.239.239.54) 46 bytes to 212.125..76.237 25.5/25.9/26.6 (0.419) ms 6/6 pkts (0% loss) 11 * * * * * 0/5 pkts (100% loss) No idea why this is like that. Network errors like these are beyond my control. Some routers simply don't honour ttl fields properly and just drop packets instead of sending an error back. That breaks traceroute and is a real pain when debugging network problems. 12 eth2.core-1.dhk.nbg.v-bone.net (83.151.24.249) 46 bytes to 212.125.76.237 25.8/26.3/26.7 (0.293) ms 6/6 pkts (0% loss) 13 m24s02.vlinux.de (83.151.29.228) 46 bytes to 212.125.76.237 25.7/26.0/26.5 (0.282) ms 6/6 pkts (0% loss) But then I wonder why you reach the host... There seem to be no network problems, as far as I can see. (Cool -- we've got virtual servers on the same machine, mine is at m24s06!) Christopher ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texexec 4.0 to 5.0 update.
Jan-Mark Batke wrote: Dear all, using the example below with texexec --pdf example.tex metapost comes up with its prompt - answering \bye results in a correct pdf file. Whats going wrong? How can I debug that? You forgot \starttext ... \stoptext around the content. regards, Christopher Creutzig ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context