Re: [NTG-context] new to ConTeXt
Sorry for not having answered before, Thomas. - Finally, for ancient Greek, there is the ancientgreek module http:// modules.contextgarden.net/t-greek which I find superior to all Greek typesetting in LaTeX (because I wrote the module). Is this module contained in the standard ConTeXt distribution or has it to be downloaded separately? After reading the the three files contained in the module. I wonder whether they provide hyphenation for Greek. Do they? I must admit that I've been too lazy to really test XeTeX, so I may be wrong here. You can use Unicode input with the module; the only difference would be that you have to wrap all Greek passages in \localgreek{} commands or \start ... \stop pairs. I guess XeTeX provides proper hyphenation for Greek, but - the module has support for more fonts than XeTeX; - does XeTeX allow relative scaling of fonts? Anyway, only Hans and Taco know to what extent I will have to rewrite everything when luatex and support for OpenType fonts are there. XeTeX allows relative scaling of fonts. Yes, I started with already existing modules, and it took me a while (and lots of help here on the list) to write my own code. I never actually read any manual cover to cover, but the big manual is almost always open on my computer for reference. I just finished typesetting a book with ConTeXt, complete with dozens of cross-references, indexes, bibliography. Nothing very complicated, but it's wonderful to see that things work. There are still two or three problems, but they are fairly harmless. I love donig my own presentation styles with ConTeXt and metafun. The more I use ConTeXt, the more amazed I am... Hope this can inspire you a bit Yes. Tinkering (and asking in the mailing list ;-)) is the way of learning. I have discovered the “Typographic Programming” document style.pdf) which seems very interesting, but unfortunately it is far for being complete. And I guess Hans is too busy to finish this book anytime soon. Thanks, Pablo ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XeTeX, ConTeXt and PDF
Hi there, I'm using xdvipdfmx 0.3 and ConTeXt ver: 2006.11.06 09:10 MK II fmt: 2006.11.11 int: english/english. Papersize doesn't seem to work in \setuppapersize[A4,landscape]. Even if I use \pdfpageheight=21cm and \pdfpagewidth=29.7cm, I get a 29.7×29.7cm square as papersize. I think that the issues with XeTeX and papersize have been already solved. When producing bookmarks with XeConTeXt, for some strange reason destinations change the page view to /Fit. Is there any way to avoid this? Bookmarks are generated fine in UTF-8, but surprisingly (at least for me) the file info is wrong generated. Here you have an example: \enableregime[utf] \definetypeface[myfont][rm][Xserif][Junicode] \setupbodyfont[myfont,12pt] \setupinteraction[state=start,title={χαλεπὰ τὰ καλά}] \setupinteractionscreen[option=bookmark] \placebookmarks[chapter,section,subsection] \starttext \chapter{χαλεπὰ τὰ καλά} \stoptext By the way, could not texmfstart texexec --xtx invoke xdvipdfmx with the -E option enabled by default? Many fonts include the embedding restriction not forbid embedding, but to avoid font modification. Thanks for your help, Pablo ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] relative scaling for fonts
Hi there, I'm using XeTeX one of the features that I miss at most from XeLaTeX (from fontspec), is the possibility to set automatically the scaling of fonts so that they match the lowercase or uppercase letters of the roman font. I wonder whether there is something similar for ConTeXt. By the way, the ConTeXt uses in my view, the wrong XeTeX way to set the interlinear space, since it seems that \XeTeXuseglyphmetrics is set to 0. Probably I should be missing something, but if \XeTeXuseglyphmetrics is not set to 1, ConTeXt will set the interlinear space not by itself, but following the glyph metrics and in some fonts the font height. I guess it would be better to use \XeTeXuseglyphmetrics=1. Best, Pablo ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
On 10/26/06, Renaud AUBIN [EMAIL PROTECTED] wrote: Hi all, Maybe some of yours (from the ConTeXt POV) can be interested by my PhD dissertation and my presentation (both in french)... http://www.nibua-r.org/ConTeXt/PhD/ Nice work! I can't read French, but the figures are very nice and content is probably interesting as well ;) I didn't know that people were indeed using the module already (I started using it more regularly only recently). Now one question: how exactly did you create/include the plots? With which version of the module? I don't mind if some of my plots break if I slightly change the interface before officially releasing it, but I don't want other people to have problems with that. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] underbar in MP text
Hi all, if \underbar is used inside a MP text, it always uses a fixed rule thickness, regardless of the settings in ConTeXt. How can I change this? TIA, Peter \setupoutput[pdftex] \setMPtext{testtext} {} \startusableMPgraphic{mptext} draw textext.rt(\MPstring{testtext}) ; \stopusableMPgraphic \starttext \setupunderbar[rulethickness=2pt] \underbar{Thick line} \setMPtext{testtext}{\underbar{Thick line}} \useMPgraphic{mptext} \setupunderbar[rulethickness=.15pt] \underbar{Thin line} \setMPtext{testtext}{\underbar{Thin line}} \useMPgraphic{mptext} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
Thanks very much ... I tried it out and it worked. But I guess I'll have to spend some more time fiddling around with the options to make it look similar to what I'm used from the AMSLaTeX package. Cheers, Oliver May I ask a newbie question? How did you create the lemmas? Hello, today, lemmas can be based on description/enumeration mechanism (I believe it's been in ConTeXt since circa January 2006). Descriptions now accept parameter title=yes. Using that, you can provide a title to the description. Have a look into core-des.tex. I found a mysterious startlemma in core-des.tex via the ConTeXt garden source browser but Naturally, the example of lemma definition is commented out ;) Copy \defineenumeration[lemma][title=yes, titlestyle=\bs, list=lemma] into your document and try to use \startlemma{title of the lemma} blah blah \stoplemma Check parameters of descriptions in the manual, you can find some options related to the title mechanism. Yours, D.A. P.S.: I've achieved the same functionality by means of ugly hacks that depend on ConTeXt version strongly. That's why I don't send you my configuration. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Parsing texexec output
On Mon, 06/11/06, Philipp Reichmuth wrote: texexec --nonstopmode Does the job, thanks. AucTeX assumes --passon=-interaction=nonstopmode, which doesn't work. Is this a bug of AUCTeX? If so, could you report it to its developers? Thanks. -- Leo ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texfont create map file
I am now using the Debian context package with Debian texlive. It works very well but some fonts need tweaking. For instance, Zapf Chancery is in ~$ find /usr/share/texmf-texlive -name '*uzcmi8a*' /usr/share/texmf-texlive/fonts/afm/urw/zapfchan/uzcmi8a.afm /usr/share/texmf-texlive/fonts/type1/urw/zapfchan/uzcmi8a.pfb /usr/share/texmf-texlive/fonts/type1/urw/zapfchan/uzcmi8a.pfm but there are no .tfm or .vf and no map file, so my typescripts do not work. I assume I might use texfont to fix this but with what invocation? Regards, Johan -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] beta: bug with transparent colors in fields
Hi Hans, the support of transparent colors in fields seems to be broken (beta 03.11.06). The attached example works with a non transparent backgroundcolor, but breaks with a transparent one. Same behaviour on ConTeXt Live. \definecolor [notebackgroundcolor] % [s=.85] [s=1,a=1,t=.9] There is another problem with field activation (not in this example). When the doc opens, the fields (region in/out) are kind of inactive. Normally a tooltip note is shown/hidden, if the area is entered/left. Only after activating the fields by pressing R and H in Acrobat, they become alive. After that they work as expected. I am still working on a minimal example for this case. Greetings, Peter \setupoutput[pdf] \setuppapersize[S6][S6] \startJSpreamble {Notes} used now var lastNote = ; function Show_Note ( Name ) { if (Name != lastNote) { Hide_Note () ; var v = this.getField(Name) ; if (v) { console.println(Show Note: + Name) ; v.display = display.visible ; v.readonly = false ; % v.richText = true ; % v.multiline = true ; % v.lineWidth = 3 ; % v.rect = [0, 0, 200, 150] ; this.dirty = false ; lastNote = Name } } else {Hide_Note () ;} } function Hide_Note ( ) { if (lastNote != ) { var v = this.getField(lastNote) ; if (v) { console.println(Hide Note: + lastNote) ; v.display = display.hidden ; v.readonly = true ; this.dirty = false } } lastNote = } function Set_Tooltip ( Name ) { if (Name != ) { var v= this.getField(Name) ; if (v) { v.userName=This may help... ; } } } \stopJSpreamble \newcounter\AnotherNote \def\SomeNote#1#2% {\hbox {\doglobal\increment\AnotherNote \definesymbol[note:\AnotherNote:on][\WhatANote{#2}]% % \setupfield[notes][offset=overlay,frame=off,option={readonly,hidden}] % this confuses acrobat, probably some interference bug, I spent too much time on that \setupfield[notes][offset=overlay,frame=off,option={readonly,hidden},% %regionin=JS(Hide_Note), regionout=JS(Hide_Note), username={Test!}, %clickin=JS(Hide_Note), %clickout=JS(Hide_Note), ] \definefield[note:\AnotherNote][check][notes][note:\AnotherNote:on,note:\AnotherNote:on][note:\AnotherNote:on]% \doifreferencefoundelse{note:\AnotherNote} {\setlayer[notes][page=\currentrealreference]{\fitfield[note:\AnotherNote]}} {\setlayer[notes]{\fitfield[note:\AnotherNote]}}% \pagereference[note:\AnotherNote]\goto{#1}[JS(Show_Note{note:\AnotherNote})]}} \setupinteraction [state=start, openpageaction=JS(Hide_Note), closepageaction=JS(Hide_Note)] \definereference[CloseNote][JS(Hide_Note)] \setupfootertexts[{\goto{Close Note}[CloseNote]}][] \setupcolors [state=start] \definecolor [notebackgroundcolor] % [s=.85] [s=1,a=1,t=.9] \defineframedtext [WhatANote] [bodyfont=9pt, background=color, backgroundcolor=notebackgroundcolor, width=.4\textwidth, height=fit, align=normal] \definelayer [notes] [width=\paperwidth, height=\paperheight, preset=rightbottom, offset=1cm] \setupbackgrounds [page] [background={notes,foreground}] \starttext \startbuffer \input ward \SomeNote{[[ward]]} {\input ward \relax} \input ward \blank \input knuth \SomeNote{[[knuth]]} {\input knuth \relax} \input knuth \blank \input tufte \SomeNote{[[tufte]]} {\input tufte \relax} \input tufte \blank \input bryson \SomeNote{[[bryson]]}{\input bryson\relax} \input bryson \blank \stopbuffer \dorecurse{10}{\getbuffer} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] underbar in MP text
Hi Peter, On Sun, 12 Nov 2006, Peter Rolf wrote: Hi all, if \underbar is used inside a MP text, it always uses a fixed rule thickness, regardless of the settings in ConTeXt. How can I change this? Does adding the settings inside \setupMPenvironment[global] \setupunderbar... \stopMPenvironment help? Sorry, I can not test it at the moment. But basically, all the settings for textext (font setups, own commands) should be included inside a \setupMPenvironment. The [global] simply uses the same settings in the main text. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] underbar in MP text
Hi Aditya, Aditya Mahajan wrote: Hi Peter, On Sun, 12 Nov 2006, Peter Rolf wrote: Hi all, if \underbar is used inside a MP text, it always uses a fixed rule thickness, regardless of the settings in ConTeXt. How can I change this? Does adding the settings inside \setupMPenvironment[global] \setupunderbar... \stopMPenvironment help? Sorry, I can not test it at the moment. But basically, all the settings for textext (font setups, own commands) should be included inside a \setupMPenvironment. The [global] simply uses the same settings in the main text. this works for the example code, but sadly not in my complex graphic. I have to look deeper into this, as soon as I have the time (but there is only one MP environment and no setup of underbar is used elsewhere). \startMPenvironment[global] \setupunderbar[rulethickness=2pt]% \stopMPenvironment Anyhow, many thanks for your answer. :) Greetings, Peter Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Meeting NTG saturday 18 november 2006
Dear list user, The Dutch TeX users group organizes a meeting on saturday 18 november. Location: Highschool Helicon, Zeist, The Netherlands. Theme: The next generation TeX - a glance on the future At the this moment active development takes place for the successor of pdfTeX. During next year this engine will be dirstributed. Next to this, steps are undertaken to improve the integration of the graphical possibilities of Metapost.in TeX. A bunch of new fonts are in the pipeline which can replace existing (free) font-collections: extended, improved, OTF versions. There are different initiatives for enhancing TeX and related programs e.g. giving them a more modern, up-to-date interface. Further one can see, that TeX is moving form the front-end into the background, so that users do not even know that the final work is performed with TeX. The mentioned aspects will be discussed and presented during the upcoming NTG-meeting. The NTG would like to invite you to join us. Global programme: 09 :30 arrival 10:00 opening, presentations/discussion 11:15 coffee break 11:45 presentations/discussion 12:45-13.30 lunch 13:30 presentations/discussion 15:00 Thea break 15:30 presentations/discussion 16:30 closing 17:30 Diner in one of the restaurants in Zeist Issues to be presented: luatex: development of the next generation pdfTeX opentype: the first three delivered replacement fonts from the polish foundry metapost: on its way to full integration into TeX epspdfgui: Good-bye to obscure commandline programs processing in the background ...: how Tex moves behind the scene pgf: replacement of macros containing graphics TeXlive: the in's en out's of preparing a distribution Description of the location and how to get there: http://www.hhelicon.nl/index2.html If you would like to join in, please send an e-mail to the NTG secretary: [EMAIL PROTECTED] Kind regards Willi Egger Secretary NTG ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to get a PhD with ConTeXt (+ hard work ;) )
Mojca Miklavec a crit: Nice work! I can't read French, but the figures are very nice and content is probably interesting as well ;) Thanks! I didn't know that people were indeed using the module already (I started using it more regularly only recently). dunno (but hope so because of the result...) Now one question: how exactly did you create/include the plots? With "which version of the module"? I don't mind if some of my plots break if I slightly change the interface before officially releasing it, but I don't want other people to have problems with that. You're right. I've used the latest darcs' release (up to the "points added, some options, etc..." patch). For the inclusion, it's better to have an example in mind: file curves.gp set terminal context input textext linewidth .3 size 1.2 set output "curves.tex" set xlabel "$x$ (m)" set ylabel "$z$ (m)" set notitle plot sin(x) with lines lw 2 notitle set xlabel "$t$ (s)" set ylabel "a label" set notitle plot cos(x) file gpsample.tex: \usemodule[t-gnuplot] \setupcolors[state=start] \starttext \processGNUPLOTfile[mybeautifulcurves][curves] \placefigure[here]{none}{ \startcombination[1*2] {\useMPgraphic{gpg:mybeautifulcurves:1}}{$\sin$} {\useMPgraphic{gpg:mybeautifulcurves:2}}{$\cos$} \stopcombination } \stoptext The output is processed using: gnuplot curves.gp texexec gpsample With this method, the gnuplot call delivers a curves.tex file one could keep as long as the plot doesn't change... Can be usefull when you have a big document! ;) I'll write a paper entitled "How to get a PhD with... ConTeXt" asap (I have the summary and the ideas but time is missing these days, as always and, moreover because of my new job...). It'll mainly be a paper about integration (m-bib, gnuplot, mp, etc...) Best regards Renaud PS: what will you do to manage your gnuplot module for ConTeXt ? Include it into official gnuplot ? It's maybe the time to keep it "well managed", with supelec foundry for example... What your opinion ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] relative scaling for fonts
Am 2006-11-12 um 22:17 schrieb Pablo Rodríguez: I'm using XeTeX one of the features that I miss at most from XeLaTeX (from fontspec), is the possibility to set automatically the scaling of fonts so that they match the lowercase or uppercase letters of the roman font. I wonder whether there is something similar for ConTeXt. I never tried XeTeX, but the relative scaling of fonts is setup in typescripts, e.g. \starttypescript [postscript] [texnansi,ec,8r] \definetypeface [postscript] [rm] [serif] [times] [default] [encoding=\typescripttwo] \definetypeface [postscript] [mm] [math] [times] [default] \definetypeface [postscript] [ss] [sans] [helvetica] [default] [rscale=.9,encoding=\typescripttwo] \definetypeface [postscript] [tt] [mono] [courier] [default] [rscale=1.1,encoding=\typescripttwo] \stoptypescript Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Parsing texexec output
Leo schrieb: Is this a bug of AUCTeX? If so, could you report it to its developers? I did post it on the mailing list some time ago with no reaction. I'll probably post a patch with some smallish ConTeXt-related modifications to AucTeX sometime over the near future. Philipp ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] the same old \column problem
no comments on that? Am 2006-11-08 um 21:38 schrieb Henning Hraban Ramm: Hans et al, did \column ever work or is it supposed to? I.e. I guess I should be able jump to the next column in \startcolumns ... \column % next column ... \stopcolumns Without the \column, it works only for longer paragraphs, but e.g. not with \startlines - I'm trying to typeset lyrics, and the column *always* breaks within a verse instead of between, even if all the verses have the same number of lines, so that it would be easily possible to balance cleanly. Greetlings from Lake Constance! Hraban ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] relative scaling for fonts
Henning Hraban Ramm wrote: Am 2006-11-12 um 22:17 schrieb Pablo Rodríguez: I'm using XeTeX one of the features that I miss at most from XeLaTeX (from fontspec), is the possibility to set automatically the scaling of fonts so that they match the lowercase or uppercase letters of the roman font. I wonder whether there is something similar for ConTeXt. I never tried XeTeX, but the relative scaling of fonts is setup in typescripts, e.g. Sorry, I'm a ConTeXt newbie and I'm not sure whether I have expressed myself in an accurate manner or I don't understand what you mean. In XeTeX you can set your fonts in these way: \definetypeface[myfont][rm][Xserif][Junicode] \definetypeface[myfont][tt][Xmono][Epigrafica][][rscale=1] \setupbodyfont[myfont,13pt] But the problem there is that one should know which is the value of rscale is. If \lowercase and \uppercase variables were defined, it would be possible that ConTeXt calculates by itself which is the required scaling factor to match the roman font (lowercase or uppercase, respectively). This is explained (for LaTeX I'm afraid) at page 45 (section 8.7.3) of the fontspec documentation (http://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/fontspec.pdf). In this way, it would be possible to autoscale to the rm font all fonts used in a document. I hope it is clear now, Pablo ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] negative indenting
Hi there, I have set \setupindenting[yes,big,first] and I would like to have all paragraphs in a given document with negative indentation. AFAIK, first should enable indentation for all paragraphs, but the ones after \section, \subsection or \subsubtsection are not indented. How can I make that the indenting would be negative, that is, that is not the first line the one indented, but the other ones. Thanks, Pablo ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context