[NTG-context] Quote mark missing from first paragraph in quotation when location=text
Hi, I have some long dialogue that I'm trying to typeset and I want to use the convention of repeating the open quotation mark on each paragraph of continued dialogue. I know I can set this up by doing something like \setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote] This works well, except in cases where the dialog starts in the middle of a paragraph. By default \startquotation starts a new paragraph. I think the way to suppress that is to set location=text, but when I try that I get the odd effect that the first paragraph doesn't get quotes but the following ones do. Minimal example below. \setupdelimitedtext[quotation][repeat=yes, middle=\upperleftdoublesixquote, location=text] \starttext Some text that's not part of the quotation. \startquotation \input knuth \stopquotation \stoptext I’m on LMTX 2.08.04, Context version 2020.12.04 20:22 Any ideas? Michael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math accents set too close to capital
I did try that, but it doesn't seem to exist in my font. Besides, I'm inclined to agree with Khaled on math accents. I think that what I'm trying to do shouldn't be that hard, I just want the \mathhat accent to be placed a little higher. Something like \skew in plain TeX, but in the vertical direction. Michael On Thursday, 1 August 2013 at 09:04, Khaled Hosny wrote: On Wed, Jul 31, 2013 at 09:05:18AM +0200, Keith J. Schultz wrote: Hi, Have you tries U+1024 or LETTER CAPITAL H WITH CIRCUMFLEX? True not all Fonts might not have it and it is TEXT not Math. And you shouldn’t use it in math, even Unicode discourages such use. Accents in text and math are not the same. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math accents set too close to capital
Hi Hans, Thanks for the response. This is sort of what I wanted, except the \widehat is, well, quite wide. So I hacked it around a bit to put the \widehat from a capital 'I' on top of a capital 'H'. In case it happens to be helpful, the final macro was \def\hhat{H\kern-0.61em\widehat{\phantom{I}}\kern0.178em} If I really cared, I wouldn't hard-code those numbers, but since they are in em I'm not really too worried. -- Michael Murphy murphy...@gmail.com On Wednesday, 31 July 2013 at 08:48, Hans Hagen wrote: On 7/31/2013 12:04 AM, Michael Murphy wrote: Hello all, I'm trying to typeset 'H' with a circumflex (or hat) in math mode, but the result is rather ugly when not using latin-modern. I've tried to redefine the \hat macro to move the accent up a bit using \topaccent: is this the best approach? Having to nest '$' does not seem right at all. (Also, for some reason although I find \mathhat in enco-ini.mkiv, when I try to use it I get undefined control sequence.) Thanks, Michael \starttypescript [mathfont] \definetypeface [mathfont] [mm] [math] [palatino] [default] [rscale=1.0] \stoptypescript \usetypescript[mathfont] \setupbodyfont[mathfont] \starttext $\hat{H}$ \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}} $\hat{H}$ \stoptext $\widehat{H}$ - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com (http://www.pragma-ade.com) | www.pragma-pod.nl (http://www.pragma-pod.nl) - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Math accents set too close to capital
Hello all, I'm trying to typeset 'H' with a circumflex (or hat) in math mode, but the result is rather ugly when not using latin-modern. I've tried to redefine the \hat macro to move the accent up a bit using \topaccent: is this the best approach? Having to nest '$' does not seem right at all. (Also, for some reason although I find \mathhat in enco-ini.mkiv, when I try to use it I get undefined control sequence.) Thanks, Michael \starttypescript [mathfont] \definetypeface [mathfont] [mm] [math] [palatino] [default] [rscale=1.0] \stoptypescript \usetypescript[mathfont] \setupbodyfont[mathfont] \starttext $\hat{H}$ \def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}} $\hat{H}$ \stoptext -- Michael Murphy murphy...@gmail.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta
Well actually the last remark makes sense: I should have done \let\hbar\hslash On 8 January 2013 19:37, Michael Murphy murphy...@gmail.com wrote: Hi all, thanks for your responses. @Hans: yes, hbar is extremely common in quantum physics, in fact I'd go as far to say as ubiquitous. It might be considered strange that the glyph doesn't exist, but it's actually defined in TeX as a ligature: \def\hbar{{\mathchar'26\mkern-9muh} I tried defining this but it doesn't work: I still get nothing. As it happens, \hslash seems to work fine, and in my opinion is a suitable substitute so I will just \def\hbar\hslash (although actually that didn't work, I had to do \def\hbar{\hslash} for some reason or I got an error in some tikz code I wrote). Michael -- Michael Murphy murphy...@gmail.com On Saturday, 5 January 2013 at 04:49, Khaled Hosny wrote: On Sat, Jan 05, 2013 at 02:10:50AM +0100, Hans Hagen wrote: It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts. \hbar should be a glyph variant of \hslash (U+0210F), according to STIX people, if the font provides such a variant. Regards, Khaled ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta
Hi all, thanks for your responses. @Hans: yes, hbar is extremely common in quantum physics, in fact I'd go as far to say as ubiquitous. It might be considered strange that the glyph doesn't exist, but it's actually defined in TeX as a ligature: \def\hbar{{\mathchar'26\mkern-9muh} I tried defining this but it doesn't work: I still get nothing. As it happens, \hslash seems to work fine, and in my opinion is a suitable substitute so I will just \def\hbar\hslash (although actually that didn't work, I had to do \def\hbar{\hslash} for some reason or I got an error in some tikz code I wrote). Michael -- Michael Murphy murphy...@gmail.com On Saturday, 5 January 2013 at 04:49, Khaled Hosny wrote: On Sat, Jan 05, 2013 at 02:10:50AM +0100, Hans Hagen wrote: It looks like hbar (LATIN SMALL LETTER H WITH STROKE 0x127) is not in the math fonts. \hbar should be a glyph variant of \hslash (U+0210F), according to STIX people, if the font provides such a variant. Regards, Khaled ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] hbar (and probably some other symbols) don't work in latest beta
Minimal example: \starttext $\hbar$ \stoptext Michael -- Michael Murphy Innovia Technology Ltd St Andrew's House, St Andrew's Rd, Cambridge CB4 1DL, UK www.innoviatech.com +44 (0)1223 24 Registered in England 3763943 This email may contain confidential information. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] hbar (and probably some other symbols) doesn't work in latest beta
Minimal example: \starttext $\hbar$ \stoptext Michael -- Michael Murphy murphy...@gmail.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hbar (and probably some other symbols) doesn't work in latest beta
Hi Otared, Thanks, but no such luck here. I'm also using ConTeXt ver: 2013.01.02 18:19 MKIV fmt: 2013.1.2 (the same version as you, fresh from first-setup.sh) and LuaTeX version beta-0.74.0-2012122517 (tex live 2013/dev)(rev 4541). Platform is OSX Mountain Lion 64 bit (Darwin). Could this be the issue (from output)? fontslatin modern fonts are not preloaded languageslanguage en is active (hbar-test.tex{/Users/mmurphy/context/beta/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fontstypescripts unknown: library 'loc' {/Users/mmurphy/context/beta/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/mmurphy/context/beta/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fontsfallback modern rm 12pt is loaded Michael -- Michael Murphy murphy...@gmail.com On 2 Jan 2013, at 21:13, Otared Kavian ota...@gmail.com wrote: Hi Michael, Your code typesets without any problem on my machine with the latest beta ConTeXt ver: 2013.01.02 18:19 MKIV fmt: 2013.1.2. Which version on which platform are you using? Happy New Year to you and all the List! Best regards: OK On 2 janv. 2013, at 11:44, Michael Murphy murphy...@gmail.com wrote: Minimal example: \starttext $\hbar$ \stoptext Michael -- Michael Murphy murphy...@gmail.com ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug: colors in TikZ/ConTeXt MKIV
On Sat, 2010-11-27 at 14:25 +0100, Hans Hagen wrote: On 27-11-2010 2:16, Mojca Miklavec wrote: On Sat, Nov 27, 2010 at 13:29, Hans Hagen wrote: \starttikzpicture \node[circle,ball color=darkred] (a) at (0,0,0) {$p_x$}; \stoptikzpicture I made a workaround in that way, but it's still a bug ... I have no clue what the ! does apart from defining a color red at 10% but I do know that context ignores it. Hans The '!' is actually pretty neat, since it allows you to blend colors. By default, tikz blends colors with white, so red!10 means mix 10% red with 90% white. This has the advantage that I can take any color, say \definecolor[mycolor][r=0.42,g=1.,b=0.2] and lighten it 50% by just using mycolor!50 I can also blend two colors together, using colorA!50!colorB I'm also pretty sure that context didn't always ignore the exclamation mark. Is there a way to reverse this behaviour? PS I've tried using spot colors in context, but that doesn't seem to work: \definespotcolor[mycolor][red][p=.1] -- Michael Murphy MPhys michael.mur...@uni-ulm.de Institute für Quanteninformationsverarbeitung Room N25/4409 Universität Ulm Albert-Einstein-Allee 11 89081 Ulm Deutschland tel +49 731 50 22824 fax +49 731 50 22839 www.uni-ulm.de/nawi/nawi-qiv.html ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug: colors in TikZ/ConTeXt MKIV
I'm pretty sure that I never implemented something using a questionmark. However, we do have: \definecolor[red-t] [r=1,t=0.5,a=1] \definecolor[green-t][g=1,t=0.5,a=1] \defineintermediatecolor[mycolora][0.5,red,green] \defineintermediatecolor[mycolorb][0.5,red-t,green-t] \starttext test {\mycolora OEPS} test test {\mycolorb OEPS} test \stoptext I could probably support \definecolor[xxx][0.5(red,green)] \definecolor[xxx][0.5(red)] which looks better than this ! and is less likely to conflict with names as abc! is a rather value color name. OK, thanks. Last question then: is there a way to redefine standard colors? Something like: \redefinecolor[red][r=0,g=1,b=0] -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Tikz figures not centred
Hi, I've been having some problems with tikz figures. When I define a new tikz figure, I normally put it in a buffer: \startbuffer[mypic] \starttikzfigure ... \stoptikzfigure \stopbuffer which I use later when I place the figure \placefigure{My picture}{\getbuffer[mypic]} The problem is that the figure is not centred: it is always aligned with the left side of the document. I guess this has something to do with Context not being able to get the image bounds, since it works fine for tikz images that are already precompiled into PDFs: \placefigure{My picture}{\externalimage[mypic.pdf]} Minimal example is attached. Michael. -- Michael Murphy michael.mur...@uni-ulm.de University of Ulm \usemodule[tikz] \starttext \startbuffer[tikz-picture] \starttikzpicture \fill[red] (0,0) circle (2); \stoptikzpicture \stopbuffer \placefigure{A tikz figure}{\getbuffer[tikz-picture]} \placefigure{Another tikz figure}{ \starttikzpicture \fill[red] (0,0) circle (2); \stoptikzpicture } \placefigure{An external tikz figure}{ \externalfigure[tikzfig.pdf] } \stoptext tikzfig.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tikz figures not centred
On Thu, 2010-11-11 at 12:14 +0100, Vedran Miletić wrote: 2010/11/11 Michael Murphy michael.mur...@uni-ulm.de Hi, I've been having some problems with tikz figures. When I define a new tikz figure, I normally put it in a buffer: \startbuffer[mypic] \starttikzfigure ... \stoptikzfigure \stopbuffer which I use later when I place the figure \placefigure{My picture}{\getbuffer[mypic]} The problem is that the figure is not centred: it is always aligned with the left side of the document. I guess this has something to do with Context not being able to get the image bounds, since it works fine for tikz images that are already precompiled into PDFs: \placefigure{My picture}{\externalimage[mypic.pdf]} Minimal example is attached. Michael. You have to wrap up the picture inside of a \hbox, e.g. \hbox{\starttikzfigure ... \stoptikzfigure} Regards, -- Vedran Miletić Hmm, why didn't I think of that... Thanks! -- Michael Murphy michael.mur...@uni-ulm.de University of Ulm ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linebreak in part title
On Tue, 2010-11-09 at 01:20 +0100, Michael Goerz wrote: Hmm... that doesn't seem to do linebreaks. It shifts the part title a bit horizontally. It also does weird things to some my *chapter* titles (add a large space after the first word), which is configured as \setuphead[chapter][ That shows me for not testing it properly. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] linebreak in part title
On 09/11/2010 00:30, Michael Goerz wrote: Hi everyone, I want part titles to appear on the own (empty) page, centered horizontally and vertically, and in small caps. To this end, I've set up the \part command as \def\Partcommand#1#2{\centerline{\smcp #2}} \setuphead[part][ placehead=yes, number=no, page=mychapterpagebreak, header=high, footer=high, before={\hbox{}\vfill}, command=\Partcommand, after={\vfill}, prefix=no, ] The problem is that \centerline puts things in a hbox, which won't break across lines. The solution below might not be the most ConTeXt-y way, but is perhaps the TeX way: \def\raggedcenter{% \hyphenpenalty=1 % no hyphenation \parindent=0pt \rightskip0pt plus1em % add stretchy glue to left \leftskip0pt plus1em % and right \spaceskip.em \xspaceskip.5em \parfillskip=0pt % reg. word spacing \hbadness=1 % Last line will usually be underfull, so turn off % badness reporting. } \def\Partcommand#1#2{{\raggedcenter\smcp #2}} \setuphead[part][ placehead=yes, number=no, page=mychapterpagebreak, header=high, footer=high, before={\hbox{}\vfill}, command=\Partcommand, after={\vfill}, prefix=no, ] -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problems with bib and \completepublications, \placepublications
I can't seem to get a list of publications. The only exception is when I use \placepublications directly after a chapter, which seems to work. In particular, putting the list of references in a separate 'backmatter' doesn't work at all, either with \place- or \completepublications. Minimal example is below. ConTeXt version is 2010.11.03 19:42 -- \setuppublicationlist[samplesize={BGT83},totalnumber=2] \startpublication[k=Bailey,t=article, a={{Bailey},{Swarztrauber}},y=1991, n=1,s=BS91] \artauthor[]{D.~H.}[D.~H.]{}{Bailey} \artauthor[]{P.~N.}[P.~N.]{}{Swarztrauber} \pubyear{1991} \arttitle{The fractional {F}ourier transform and applications} \journal{SIAM Rev.} \volume{33} \issue{3} \pages{389--404} \stoppublication \startpublication[k=Bay1,t=article, a={{Bayliss},{}},y=1983, n=2,s=BGT83] \artauthor[]{A.}[A.]{}{Bayliss} \artauthor[]{C.~I.}[C.~I.]{}{Goldstein} \artauthor[]{E.}[E.]{}{Turkel} \pubyear{1983} \arttitle{An iterative method for the {H}elmholtz equation} \journal{J. Comp. Phys.} \volume{49} \pages{443--457} \stoppublication \starttext \startbodymatter I can cite single authors, like this \cite[Bailey], and I can also do more than one citation \cite[Bailey,Bay1]. \blank[medium] \placepublications \completepublications \stopbodymatter \startbackmatter \chapter{Backmatter publications} \placepublications \completepublications \stopbackmatter \stoptext -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with bib and \completepublications, \placepublications
On 04/11/2010 20:04, Thomas A. Schmitz wrote: \placepublications[criterium=all] ^^^ That was disappointingly easy. Thanks. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConText, TikZ and definecolor: undefined control sequence
On 27/10/2010 19:18, Marius wrote: Hello, I had the same problem, so I desided to define colors by hand. \definecolor [lightgray] [h=D3D3D3] \usemodule[tikz] \unprotect \pgfu...@definecolor{black}{gray}{0} \pgfu...@definecolor{gray}{gray}{0.5} \pgfu...@definecolor{lightgray}{gray}{0.9} \pgfu...@definecolor{white}{gray}{1} \protect Yes, this is what I've resorted to. But it would be nice to define things properly. If you want to fix script, you need to change line: local cv = colors.value(attributes) into local cv = attributes.colors.values Just guess, untested. Nope, doesn't work. Using local colors = colors or { } gets me a little further, but then complains that 'value' is a nil value. I don't know enough Lua to fix this either. Strangely, it seems to work on some older MkIV versions of ConTeXt... Michael. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ConText, TikZ and definecolor: undefined control sequence
Hi, I've been trying to get colors to work in TikZ, and found a nice fix by Aditya here: http://archive.contextgarden.net/message/20100120.220124.f2d3f8bc.en.html The problem is that the lua script doesn't work: I get a problem with 'colors'. LuaTeX error main ctx instance:13: attempt to index global 'colors' (a nil value) stack traceback: main ctx instance:13: in function 'registercolor' main ctx instance:1: in main chunk. The input file from Aditya (called colorfix.tex) is \startluacode pgfutil = pgfutil or { } local texsprint, format = tex.sprint, string.format local prtcatcodes = tex.prtcatcodes function pgfutil.unsupported_color(name) texsprint(prtcatcodes,format(\\PackageError{pgf}{color %s has unsupported model}{}, name)) texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{0}, name)) end function pgfutil.registercolor(name, attributes) print(name, attributes) local cv = colors.value(attributes) if cv then local model = cv[1] if model == 1 then print(model=1) texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{% 1.3f}, name, cv[2])) elseif model == 3 then print(model=2) texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{rgb}{% 1.3f,%1.3f,%1.3f}, name, cv[3], cv[4], cv[5])) else print(no model) pgfutil.unsupported_color(name) end else print(no color) pgfutil.unsupported_color(name) end end \stopluacode \unprotect \def\pgfu...@registercolor#1% {\ctxlua{pgfutil.registercolor(#1,\thecolorattribute {#1})}} \protect and my test file is \usemodule[tikz] \input colorfix \definecolor[mycolor][r=1,g=0,b=1] \starttext \starttikzpicture \fill[mycolor] (0,0) circle (1); \stoptikzpicture \stoptext I'm running the latest beta. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setfontfeature-problem
On 13/10/10 12:48, Andreas Harder wrote: Hi all, please have a look at my example: \definefontfeature[default][default][mode=node,onum=yes] \definefontfeature[sc][default][smcp=yes] \def\sc{\groupedcommand{\setfontfeature{sc}}{}} \setupbodyfont[palatino] \starttext \startTEXpage[offset=1ex] {\sc Abc} 0369 \crlf \sc{Abc} 0369 \stopTEXpage \startTEXpage[offset=1ex] 0369 {\sc Abc} 0369 \crlf 0369 \sc{Abc} 0369 \stopTEXpage \stoptext It seems that if a line starts with \sc{…} the onum-option is ignored. Is there a solution? \setfontfeature deletes all other features; try \addfontfeaturetoset or \addfontfeaturetofont instead (not sure what the difference is). -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xits font in ~/.fonts
I also had problems at first with the XITS fonts, especially with the built-in typescripts. First, make sure that you have put the fonts somewhere ConTeXt can find them, and run mtxrun --script font --reload You can check that they have installed properly by running mtxrun --script font --list --all --pattern=xits* and you should see a list of the fonts. Then, copy the typescript from the XITS font zip file which you can get from Khaled's website. Put this in the root directory of your .tex file (or in a suitable place in the ConTeXt tree) and load it in your preamble with \usetypescriptfile[type-xits] I then loaded the font with \usetypescript[xits] \setupbodyfont[xits] You might get conflict with the internal typescipt (although I didn't, if I remember correctly); if so, rename [xits] in the typescript to [my-xits], then do \usetypescript[my-xits] \setupbodyfont[my-xits] On 17/08/2010 18:04, Hans Hagen wrote: On 17-8-2010 6:01, Khaled Hosny wrote: On Tue, Aug 17, 2010 at 05:26:19PM +0200, Hans Hagen wrote: On 17-8-2010 4:53, Khaled Hosny wrote: On Tue, Aug 17, 2010 at 03:08:23PM +0200, Hans Hagen wrote: On 17-8-2010 3:00, Khaled Hosny wrote: The typescript uses file names, however ConTeXt can not load system fonts by filename. Hans, I think it would be nice to be able to load fonts by either font name or file name regardless of where they reside (I'm not sure how easy is that, though, with luaotfload and kpse setting OSFONTDIR is all what I need, since kpathsea appends it to its font searching paths). \starttext \definedfont[vera at 50pt] test \definedfont[file:vera.ttf at 100pt] test \stoptext works quite ok on my machine and the log reports: c:/windows/fonts/vera.ttf so it must be something in the typescripts .. maybe the old names? This works for me, but not with .otf fonts. \starttext \definedfont[file:STIXGeneral at 100pt] test \stoptext c:/windows/fonts/STIXGeneral.otf I'm getting unpredictable results here, some fonts are found and some are not, but I can't identify a pattern, I thought it is related to symbolic links but could not prove it (replacing symlinks by a copy, and updating the databases but still the font is not found by file name). files in OSFONTDIR normally are located runtime (no database) .. depends a bit on the configuration Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Michael Murphy MPhys Institute für Quanteninformationsverarbeitung Universität Ulm Albert-Einstein-Allee 11 89081 Ulm Deutschland tel +49 731 50 22931 fax +49 731 50 22839 www.quantenbit.de ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \version[temporary] doesn't show registers
As far as I understand it, \version[temporary] should show the registers (for example, the indexed values) in each page in the margin. But it doesn't. Has this command changed? -- Michael Murphy MPhys ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] horizontal alignment
On 09/07/10 01:32, Michael Goerz wrote: Hi everyone, I'm trying to do some horizontal alignment, for typesetting poetry. How would you solve this kind of problem? I've considered defining a macro \BrokenLine[line1][line2] that does the above. But, there are also instances where there are two or more lines as a continuation of one previous line. Maybe there is a possibility to mark a horizontal position temporarily, and then jump to that position later? Didn't know you were into ConTeXt... Anyway, this is a crappy solution and you could probably make it better. As far as I'm aware, there is no way to get the current horizontal position across the page at any particular moment. The method below essentially just measures the length of the line that you want to enter, and sets this as the indent. \dimendef\indentl=10 \def\savewidth#1{% \setbox0=\hbox{#1}% \copy0% \indentl=\wd0% } \def\addtosavewidth#1{% \setbox0=\hbox{#1}% \mindent\copy0% \advance\indentl by \wd0% } \def\mindent{\hskip\indentl} \starttext \startlines here we now see you ~~ already in grief as you see ~~ yourselves ~~ as the last of the lasts \savewidth{we are mirrors of your consciousness } \mindent as you see the end \savewidth{and you see us ~~ deep } \addtosavewidth{in } \addtosavewidth{the spring } \mindent of the universe seeing you deep ~~ in the gravity well of the heat death we are dying ~~ in the spring as we watch you die we are grieving in the spring as you begin to grieve for all we are talking about bone-dry at the bottom of the well of time \savewidth{we are already parched } \mindent for time is transparent \savewidth{and we are all rats in the glassy } \mindent labyrinth of time. \stoplines \stoptext -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] writetolist causes mystery blank
Hi all, I'm having a but of a problem using writetolist. In principle, I want to insert something into the table of contents, but I don't want to disturb the flow of the text. Unfortunately, the following code seems to generate a blank at the top of the page: \showframe \showmakeup \starttext \writetolist[section]{}{}% \framed{This box has been pushed down} \stoptext I've also tried using a section command where the output has been set to empty: \showframe \showmakeup \setuphead[section][ before=, after=, command=\mydonothing] \def\mydonothing#1#2{} \starttext \section{}% \framed{This box has been pushed down} \stoptext but that also gets me a blank. Incidentally, the same thing happens with writebetweenlist, (except that this seems to sometimes push content onto a new page for some reason). Any ideas? -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] writetolist causes mystery blank
I'm having a but of a problem using writetolist. In principle, I want to insert something into the table of contents, but I don't want to disturb the flow of the text. Unfortunately, the following code seems to generate a blank at the top of the page: mkii or mkiv or both? It looks like it only happens on mkiv. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] An elisp script for converting LaTeX to ConTeXt in emacs
Hi all, one of the biggest drawbacks to writing my thesis in ConTeXt was that much of the material had already been written in LaTeX, and I didn't really want to have to go through by hand and change all the syntax. Borne out this laziness was atoctx.el (which originally meant 'AMSTeX to ConTeXt', but perhaps now should be called 'latoctx.el'). It's essentially a set of macros that look through a document and tries to convert lots of different LaTeX syntax to ConTeXt. At the moment, it handles the following environments: equation gather align footnote enumerate figure and the following macros cite emph There are still bugs, and several more environments would be useful, but if anyone thinks that it would be useful to them, then please go ahead and use it. (Even better, if you'd like to help me write more of it, drop me a line.) I know that it's written in elisp which perhaps already excludes a majority of people who don't use emacs, but I didn't have the patience to write it in any other language. Anyway, you can grab it at http://github.com/murphy-md/atoctx -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] minimals
On 15/06/2010 19:48, Thomas A. Schmitz wrote: On Jun 15, 2010, at 7:25 PM, Hans Hagen wrote: you can give it a try What about the cannot open tree:Users/tas/texmf/: No such file or directory error? I'm still getting it... Does the directory exist? If there is nothing important there, just delete it. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bibtex failure on latest minimals
On Mon, 2010-06-14 at 15:15 +0200, Andreas Schneider wrote: Michael Murphy wrote: I also got that error when my texlsr was corrupted/outdated. Running mktexlsr fixed bibtex for me. (Additionally I had to run setuptex{.bat} first, before bibtex worked correctly.) Yup, things seem fine again after running mktexlsr. -- Michael Murphy. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mutiple citations doesn't work with compress=no + interaction
On 08/06/10 20:47, taco wrote: It also only happens in mkiv, something is broken there. As is usual in the mkiv version of the bib module, I can't figure it out :( However, here is a workaround: ... ... and indeed, this works for the minimal example, but in my actual document, I get an error: ! Undefined control sequence. \dododescriptioncomponent ...entdescriptioncoding \s!tex \fi \ifx and I have no idea why. I guess I'll play around some more. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mutiple citations doesn't work with compress=no + interaction
On 09/06/10 11:24, Taco Hoekwater wrote: Michael Murphy wrote: On 08/06/10 20:47, taco wrote: It also only happens in mkiv, something is broken there. As is usual in the mkiv version of the bib module, I can't figure it out :( However, here is a workaround: ... ... and indeed, this works for the minimal example, but in my actual document, I get an error: ! Undefined control sequence. \dododescriptioncomponent ...entdescriptioncoding \s!tex \fi \ifx and I have no idea why. I guess I'll play around some more. Wild guess: can you try with this definition in the setup part of your document? \unexpanded\def\dodescriptioncomponent {\doifelsedescriptioncomponent \nododescriptioncomponent\dododescriptioncomponent} Best wishes, Taco Thanks for the code, but that turns out not to help. The problem seems to be when I want to have references in footnotes (see attached minimal example). -- Michael Murphy \setuppublicationlist[samplesize={CKRGO08},totalnumber=3] \startpublication[k=Balachandran2008,t=article, a={{Balachandran},{Gong}},y=2008,o={10.1103/PhysRevA.77.012303}, n=1,s=BG08] \artauthor[]{Vinitha}[V.]{}{Balachandran} \artauthor[]{Jiangbin}[J.]{}{Gong} \pubyear{2008} \arttitle{Adiabatic quantum transport in a spin chain with a moving potential} \journal{Phys. Rev. A} \volume{77} \issue{1} \pages{012303} \doi{10.1103/PhysRevA.77.012303} \stoppublication \startpublication[k=Borzi2002,t=article, a={{Borz\`i},{}},y=2002, n=2,s=BSH02] \artauthor[]{Alfio}[A.]{}{Borz\`i} \artauthor[]{Georg}[G.]{}{Stadler} \artauthor[]{Ulrich}[U.]{}{Hohenester} \pubyear{2002} \arttitle{Optimal quantum control in nanostructures: Theory and application to a generic three-level system} \journal{Phys. Rev. A} \volume{66} \stoppublication \startpublication[k=Bose2007,t=article, a={{Bose}},y=2007,o={http://dx.doi.org/10.1080/00107510701342313}, n=3,s=Bos07] \artauthor[]{Sougato}[S.]{}{Bose} \pubyear{2007} \arttitle{Quantum communication through spin chain dynamics: an introductory overview} \journal{Contemporary Physics} \volume{48} \issue{1} \pages{13} \doi{http://dx.doi.org/10.1080/00107510701342313} \stoppublication \setupinteraction[state=start] \usemodule[bib] \setuppublications[refcommand=authoryears] \let\NORMALcite\cite \newif\ifSEEN \def\cite#1[#2]{\SEENfalse \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}% (\processcommalist[#2]\processitem )} \unexpanded\def\dodescriptioncomponent {\doifelsedescriptioncomponent \nododescriptioncomponent\dododescriptioncomponent} \setupcite[authoryears][compress=no,left=,right=] \starttext I can cite single authors, like this \cite[Balachandran2008], and now I can also do more than one\footnote{but unfortunately I get errors when I have citations \cite[Balachandran2008] in footnotes}% citation \cite[Balachandran2008,Borzi2002,Bose2007]. \blank \placepublications \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] error in first-setup.sh
On 09/06/10 14:02, Mojca Miklavec wrote: On Wed, Jun 9, 2010 at 11:01, Yury G. Kudryashov wrote: Could you please either fix it in beta, or post the patch to ML? Does it now work again? Mojca Works for me. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Mutiple citations doesn't work with compress=no + interaction
On 09/06/10 13:02, Taco Hoekwater wrote: Michael Murphy wrote: Thanks for the code, but that turns out not to help. The problem seems to be when I want to have references in footnotes (see attached minimal example). Ok, now I see. Attached is a new version of min_bib_fn.tex that fixes citations in footnotes. However ... something totally weird happens in the current context and beta's: the footnote appears to be repeated inside the body text. For some reason I do not understand, \placepublications also seems to process the footnote list (and because there is no proper definition for handling them, rubbish appears on the top of the publication list). This problem is not caused by the \cite inside the \footnote, nor by the redefinition of \cite, it happens without those as well. Thanks, that works a treat. I also noticed the thing with the footnote, but it doesn't happen in my main document, so I wondered if it had something to do with the minimal setup. But you're right, it seems to always happen with \placepublications. Anyway, I've now modified things slightly so that I can still use the optional forms of \cite (like \cite[authoryear]), so my file now looks like \setupinteraction[state=start] \usemodule[bib] \setuppublications[refcommand=authoryears, criterium=all] \let\NORMALcite\cite \newif\ifSEEN \unexpanded\def\cite[#1]{\strictdoifnextoptionalelse{\NORMALcite[#1]}% {\domycite[#1]}} \def\domycite#1[#2]{\SEENfalse \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}% (\processcommalist[#2]\processitem )} \setupcite[authoryears][compress=no,left=,right=] \setupcite[authoryear][compress=no] ... Of course, the other disadvantage of this at present is that I don't get 'and' separating the last two references when I use \domycite. But I can live with that (on screen at least, for printing I can revert to the old behaviour). -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] error in first-setup.sh
On 09/06/10 15:15, Andreas Schneider wrote: luigi scarso wrote: On Wed, Jun 9, 2010 at 2:24 PM, Taco Hoekwatert...@elvenkind.com wrote: At least it seems ok now in a fresh install. I just did one of those, and there is only one thing that I noticed: I had to run 'texexec --make en' by hand. I don't know if that is normal? Everything else seems to work fine. Not here on my linux 32 bit box : MTXrun | run: mktexlsr sh: mktexlsr: not found /opt/luatex/minimals-beta-2010/bin/mtxrun:9270: cannot open tree:opt/luatex/minimals-beta-2010/tex/texmf-project/: No such file or directory but texmf-project exists Same here, but it can be easily circumvented by sourcing setuptex first. (in my case: source tex/setuptex sh first-setup.sh) But the stubs, or mtxrun, or whatever handles that usually indeed doesn't seem to set paths correctly anymore. On Windows I could have texworks just call context.exe and everything worked, now I have to make sure, setuptex.bat was executed first. Seems I spoke too soon: I can indeed get hold of the latest version, but if I want an older version (like --context=2010.06.24), I run into the same problem as luigi. And I do want an older version, since for some reason the kerning is a bit screwed up on current. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Kerning messed up for Minion Pro in ConTeXt 2010.06.09
Hi all, it looks like the kerning has gone weird for Minion Pro in the latest ConTeXt (this is the only font I could find with the problem, all others looked fine). I've attached a PDF to show the effect. -- Michael Murphy min_kern.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Mutiple citations doesn't work with compress=no + interaction
I know that if I want to have clickable hyperlinks for citations, I need to turn off 'compress' for the citation type: \setupcite[authoryears][compress=no] The problem is that this doesn't seem to work: I get an 'unknown reference' error. references : unknown reference [][Balachandran2008 references : unknown reference [][Balachandran2008 references : unknown reference [][Balachandran2008 Strangely, this only happens when I want to refer to multiple authors, e.g. \cite[ref1, ref2, ref3], and everything works fine if I just do \cite[ref1]. I've attached a minimal example. Where am I going wrong? -- Michael Murphy \setupinteraction[state=start] \usemodule[bib] \setuppublications[refcommand=authoryears] \setupcite[authoryears][compress=no] \starttext I can cite single authors, like this \cite[Balachandran2008], but when I try to cite more together, it doesn't work \cite[Balachandran2008,Borzi2002,Bose2007]. \blank \placepublications \stoptext \setuppublicationlist[samplesize={CKRGO08},totalnumber=3] \startpublication[k=Balachandran2008,t=article, a={{Balachandran},{Gong}},y=2008,o={10.1103/PhysRevA.77.012303}, n=1,s=BG08] \artauthor[]{Vinitha}[V.]{}{Balachandran} \artauthor[]{Jiangbin}[J.]{}{Gong} \pubyear{2008} \arttitle{Adiabatic quantum transport in a spin chain with a moving potential} \journal{Phys. Rev. A} \volume{77} \issue{1} \pages{012303} \doi{10.1103/PhysRevA.77.012303} \stoppublication \startpublication[k=Borzi2002,t=article, a={{Borz\`i},{}},y=2002, n=2,s=BSH02] \artauthor[]{Alfio}[A.]{}{Borz\`i} \artauthor[]{Georg}[G.]{}{Stadler} \artauthor[]{Ulrich}[U.]{}{Hohenester} \pubyear{2002} \arttitle{Optimal quantum control in nanostructures: Theory and application to a generic three-level system} \journal{Phys. Rev. A} \volume{66} \stoppublication \startpublication[k=Bose2007,t=article, a={{Bose}},y=2007,o={http://dx.doi.org/10.1080/00107510701342313}, n=3,s=Bos07] \artauthor[]{Sougato}[S.]{}{Bose} \pubyear{2007} \arttitle{Quantum communication through spin chain dynamics: an introductory overview} \journal{Contemporary Physics} \volume{48} \issue{1} \pages{13} \doi{http://dx.doi.org/10.1080/00107510701342313} \stoppublication ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Script to automatically generate typescripts
On 04/06/2010 13:16, Khaled Hosny wrote: On Fri, Jun 04, 2010 at 12:29:32PM +0200, luigi scarso wrote: On Fri, Jun 4, 2010 at 12:21 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Fri, Jun 4, 2010 at 11:52, Michael Murphy wrote: As I said, it started out as a private project, but just wanted to see if others found it useful. What about presenting your work at the ConTeXt conference and in MAPS magazine? You'll be able to meet the biggest ConTeXt gurus there, learn a lot from them, Luigi will give you a short lesson on Why I switched from Python to Lua Because it's better That's all folks -- free time now The best presentation ever, even better than Taco's one at last eurotex meeting. I switched from python to Lua x context, this is true; I'm still using it for other tasks, particularly Plone, and sometimes sagemath. It's not a bad language at all. When it comes to writing non-luatex code, I'll pick python anytime of the day, a light language with almost no standard library is not what one always need. Oh God, I really didn't want to generate all this fuss, it's really a _very_ primitive script. If I have more time, I'll certainly look into Lua, but I chose Python because: a. it handles complicated string operations, io, regex, etc right out of the box, all of which were needed. b. I'm slightly above noob level with python, as opposed to almost every other language (except Fortran, which was not exactly a front-runner) c. I'm rather more than ignorant about almost every other font tool out there I just reckoned that there has got to be a good way of automatically writing those long, complicated typescripts. I did start such a thing in emacs, but then realised that its not a very portable solution (although I do have a whole bunch of macros for converting LaTeX and AMSmath code into ConTeXt if anyone is interested). -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Script to automatically generate typescripts
Hi all, after spending many hours on a typescript only to accidentally delete it, I thought that there should be a better way to write them. Hence I wrote a python script to do just that. It started out as a private project, but I thought that since it might be useful to others, I'd make it available publicly. You can get hold of it here: http://github.com/murphy-md/otftsmrk Note that it currently only works on Adobe .otf fonts (and this likely won't change), and that you need to be using LuaTeX with MkIV, since I don't do any of the encoding stuff. Please send me bug reports / feature requests if you use it! -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Script to automatically generate typescripts
On 03/06/2010 23:33, Vyatcheslav Yatskovsky wrote: Hi, Looks very impressive. A lot of code ) Is it usable under Windows? Never run Python scripts before. Hi all, after spending many hours on a typescript only to accidentally delete it, I thought that there should be a better way to write them. Hence I wrote a python script to do just that. I haven't tested it extensively, but it seems to run on windows. I will probably package it as an .exe when I get the option handling done. You will need to install python before you can run the script. -- Michael Murphy ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___