[NTG-context] Help with installation
Hallo. I'm sorry to bother you this time but I would really apprecitate your help. I've installed Ubuntu 12.10 64 bit on a new disk. I downloaded the last stable version of ConTeXt suite (today). The installation was all right. However, when I run texexec (e.g. texexec --help), I get the following error: /programy/context/tex/texmf-linux-64/bin/mtxrun:15228: attempt to index field 'loaders' (a nil value) The same happens with context (e.g. context --help). Can you tell me what to do? I guess I simply need to install some libraries. This is the first time I've tried 64 bit Ubuntu. Best wishes Michal ___ 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] TeXexec / mptex / Ruby bug with Unicode letters
Hallo. It seems that something was changed in Ruby that makes texexec --mptex not working with some Unicode letters, e.g. rcaron. This file compiles all right with texexec --mptex: beginfig(1); label(textext(a),origin); endfig; end. However, when I change a to ř (unicode for rcaron or \v{r}), it failes with this complaint: /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:21: Use RbConfig instead of obsolete and deprecated Config. /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1982:in `doruntexmp': invalid byte sequence in US-ASCII (ArgumentError) from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1525:in `runtexmp' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1087:in `block in processmptex' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1084:in `each' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/tex.rb:1084:in `processmptex' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/texexec.rb:76:in `mptex' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:133:in `execute' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/texexec.rb:791:in `main' It crashes both with the latest beta (downloaded some minutes ago) and with the latest stable (downloaded yesterday). It crashes also with the stable instalation that was working previously. Since it worked properly with Ubuntu 12.04 and is not working (with the same ConTeXt installation) with Ubuntu 12.10, an explanation might be a change in Ruby that makes some ConTeXt code invalid. I'm using * Ubuntu 12.10 (Linux) * Ruby ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] * texexec * ConTeXt standalone (minimal) distribution from the ConTeXt Garden, latest beta, latest stable and some older version that was previously working. Since I'm using it to create my teaching slides, I would really appreciate if you could make some patch (or help me go around somehow). Best wishes, Michal P.S. I apologize if the bug is known already; I haven't found it in the mailing list. ___ 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] Russian sentence in Czech text in Mark II in ConTeXt Suite installation on Linux in UTF8
Hallo. I have to typeset one Russian sentence (cyrillic) in a Czech document in ConTeXt Mark II (texexec) in ConTeXt Suite (minimal installation) on Linux. I use UTF8 encoding. Is there any simple way to do it? I'm willing to accept any font to avoid font difficulties. Can you help me please? Many thanks. Best wishes, Michal ___ 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] mtxrun --script metapost and fonts?
Hallo. I've got a problem with metapost - pdf translation. Since mptopdf is still broken in the last ConTeXt beta in the minimal distribution, I use mtxrun --script metapost --split. It works well, only it ignores font setting. My code is like this: verbatimtex \definetypeface [times] [rm] [serif] [times] [default] [encoding=ec] \definetypeface [times] [mm] [math] [times] [default] [encoding=ec] \setupbodyfont [times,10pt] etex; beginfig(1); label(btex A $a_i$ etex,origin); endfig; end. I believe that the code in the verbatimtex ... etex environment should switch the major font to Times (it works with texexec --mptex). However, it is ignored by the mtxrun --script metapost --split script---Computer Modern in 12pt is used instead of Times in 10pt. Is there any way around this problem? Many thanks for your help. Best wishes, Michal Kvasnicka ___ 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] mptopdf (broken again)
Hallo. I tried mtxrun --script mptopdf chart08.1 but I've got the following error. This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file I'm using ConTeXt minimals under Ubuntu 10.10, the last stable version of ConTeXt (ver: 2010.07.30 11:35 MKII). However, it produces the same error with two other betas I've got in my computer. I guess there is something broken inside the mptopdf since I can compile the charts themselves with texexec --mptex chart08.mp. And when I include it into a TeX file with \externalfigure, the pdf file created is all right. Can you tell me how to solve it? I will really need mptopdf in two or three weeks painfully. Many thanks. Best wishes, Michal 2011/1/12 Hans Hagen pra...@wxs.nl On 10-1-2011 12:37, Mojca Miklavec wrote: Hans Taco, A tiny request: is there any chance to make the mptopdf script point to --script mptopdf instead of --script base? i see, the sh script is wrong And note for Taco: I have no idea how it got there (I think that I use TLContrib), but my TL installation (/usr/texbin/mptopdf) contains: it was wrong in the context zip; for windows one can just copy the stub mtxrun.exe to mptopdf.exe but the same is not true for the shell script that needs to be: #!/bin/sh mtxrun --script mptopdf $@ I'm not sure, but a generic (copyable) script could be: #!/bin/sh mtxrun --script $0 $@ (no shell expert) 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 ___ ___ 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] MPtoPDF problem
Hallo. Few days ago I migrated to Ubuntu 10.10 (Linux) and last stable ConTeXt minimals (2010.07.30 11:35 MKII) (from very old ConTeXt version). Now I found I can't run mptopdf: Command mptopdf chart.1 just prints chart.1 and an empty line Command mtxrun --script mptopdf chart.1 fails with these complaints: This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) \write18 enabled. entering extended mode [MP to PDF] (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m ap/pdftex/plain/pdftex.map}) [1] !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found == Fatal error occurred, no output PDF file produced! MPtoPDF 1.4.0 : error while processing tex file And command mtxrun --script mptopdf chart.mp starts to compile something, than reports that it cannot write the log file and asks for another file name, and eventually fails with the same complaints as above. Can you possibly tell me what to do? Many thanks. Best wishes, Michal Kvasnicka ___ 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] Heros (font)
Hallo to you all. I'd like to use TeXGyre fonts termes and heros. I tried something like this: \usetypescriptfile[type-gyr] \definetypeface[termes][rm][serif][termes][default][encoding=ec] \definetypeface[termes][ss][sans][heros][default][encoding=ec] \definetypeface[termes][mm][math][times][default][] \setupbodyfont[termes,18pt] However, I found that fonts as TeXGyreHeros-Regular are not defined. So I added this: \loadmapfile[qhv-ec.map] \definefontsynonym [TeXGyreHeros-Regular][ec-qhvr][encoding=ec] \definefontsynonym [TeXGyreHeros-Italic][ec-qhvri][encoding=ec] \definefontsynonym [TeXGyreHeros-Bold] [ec-qhvb][encoding=ec] \definefontsynonym [TeXGyreHeros-BoldItalic] [ec-qhvbi][encoding=ec] Now it works---I get not run-time error, and I can see some Helvetica-like fonts (though I'm not sure that the Czech accents are all right). However, the AdobeReader says I use some Quasi-Swiss fonts, not TeXGyreHeros as I would expect. What's wrong? I've got ConTeXt ver: 2008.01.28 21:28 MKII. I installed manually TeXGyre fonts from the TeXGyre page some days ago. Many thanks for your kind help. And greeting to all of you. Michal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Adobe Reader, PNG transparency and colors
Many thanks for your answer. If I include some transparent stuff on a light background (i.e. a metapost figure on a light gray screen), there's a visible rectangle around it (on the screen). Yes, it's unfortunately normal at least in Acrobat 7 and 8, also in Apple's PDF viewer (in Preview, Mail etc.). In my experience esp. transparent (or flattened) elements show a fine white border - but if you zoom in, it stays the same fine line or sometimes disappeares. And it never shows in print. However, what I meant was slightly different: not a tiny white line around but a solid (full) rectangle with light gray background. You can see it here: http://www.econ.muni.cz/~qasar/tmp/inst-slide02.pdf, page 3 (the ugly background in the figure on the page 2 is my fault). I guess the light gray background might be another bug in the AdobeReader, since it's not visible in xpdf. However, I thought so with the previous bug (it was visible in the AdobeReader, but not in the xpdf too), and it was actually a bug in the pdfTeX. Have you any idea what's wrong? (Well, this is much less annoying than the previous problem.) Many thanks and greeting from rainy Brno. Michal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Adobe Reader, PNG transparency and colors
Oops. You've seen my Marx pictures. I'm ashamed I was caught. :-( (Well, no, I'm not a Marxist.) :-) I think the alpha channel is not the cause, since I can see the light gray rectangles under the MetaPost figures, not under PNG with transparency. I don't know how precisely the transparency is done in the MetaPost, but I guess there is no background under curves and shapes I draw in the MetaPost. At least there is nothing visible in the figure on the page 10 of http://www.econ.muni.cz/~qasar/tmp/inst-slide02.pdf. However, some background is visible under all MetaPost figures on pages 3 to 6. The background under the figures is different from the background around them. Or don't you see it? Then it might be a problem just under some versions of the AdobeReader, perhaps only under Linux. Many thanks for your answers. Have a nice day. Michal 2008/2/21, Hans Hagen [EMAIL PROTECTED]: Michal Kvasnička wrote: Many thanks for your answer. If I include some transparent stuff on a light background (i.e. a metapost figure on a light gray screen), there's a visible rectangle around it (on the screen). Yes, it's unfortunately normal at least in Acrobat 7 and 8, also in Apple's PDF viewer (in Preview, Mail etc.). In my experience esp. transparent (or flattened) elements show a fine white border - but if you zoom in, it stays the same fine line or sometimes disappeares. And it never shows in print. However, what I meant was slightly different: not a tiny white line around but a solid (full) rectangle with light gray background. You can see it here: http://www.econ.muni.cz/~qasar/tmp/inst-slide02.pdf, page 3 (the ugly background in the figure on the page 2 is my fault). isn't that alpha channel stuff? i never looked into that but your marx picture does not have the gray background .. maybe compare the internals of these graphics adn see what happens inside - 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 - ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Adobe Reader, PNG transparency and colors
Hallo you all. I found a strange problem. I create my slides with ConTeXt. Everything was all right before I included pictures in PNG with transparent background. Adobe Reader 8.1.2 under Linux (at least this one) changes colors on every page where such a PNG is included. Xpdf shows it all right. I wonder what could be the reason, and how to solve it. Can you hint me? You can see the behavior here: http://www.econ.muni.cz/~qasar/vyuka/inst/inst-slide01.pdf Notice difference in colors between the 2nd and 3rd page (the 3rd one includes PNG). PNG are created with Gimp. My ConTeXt is ver: 2008.01.28 21:28 MKII pdfTeX is 3.141592-1.40.3 (Web2C 7.5.6) TeXExec is version 6.2.0 All under openSuSE Linux 10.3. When I start TeXExec, I got this warning: /usr/bin/texmfstart:1838: warning: Insecure world writable dir /home/qasar/bin in PATH, mode 040777 /usr/share/texmf/scripts/context/ruby/base/system.rb:16: warning: Insecure world writable dir /home/qasar/bin in PATH, mode 040777 But I guess it has nothing to do with the color problem. Many greetings to all of you, and thanks to those answering me. ;-) Have a nice day. M.K. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] SciTE under Windows and Metapost
Many thanks for your answer. you can set the commands in context.properties file (or overload t hen in your user.properties file) But can you please be more specific? The only thing I want is to press F7 and make the SciTE call texmfstart texexec --mptex File.mp I tried to find the proper line in the context.properties file but I wasn't able to fix it. I uncommented the line 137, and commented the line 138 (now it is this: command.build.$(file.patterns.metafun)=$(name.context.texexec) --$( name.context.backend) --mptex $(FileNameExt) #command.build.$(file.patterns.metafun)=$(name.metafun.mptopdf) $(FileNameExt) But it didn't help. What should I set, and where? P.S. Hans, would it be possible to add the Metafont into the minimal distribution? I like it so much I'd like to make it my major distribution only the binary i assume? you also have to convince mojca, the minimal gardener Yes, I need only two things: binary Metafont (mf) being there, and pdfTeX (and later luaTeX) able to generate the bitmapped fonts on the demand. If you could add these two, I would instantly switch to the ConTeXt minimal distribution. It seems much better than both teTeX and TeXLive. Please, please. :-) Many thanks for the great ConTeXt, minimal distribution (which saved me here in TeXas), and your help. With best regards Michal Kvasnicka ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] SciTE under Windows and Metapost
Many thanks. I answered before I've got your answer. Honestly, I don't know what must be there to be able to generate fonts. I never tried to erase the stuff just to learn what is really needed. :-) The manual lists some other programs. What are those? Which ones could theoretically be needed? gftopk(1), gftodvi(1), gftype(1), mft(1), pltotf(1), tftopl(1) However, I guess the gftopk is needed since it generates .pk files. However, my next question before you ask it: you're probably going to request that some fonts need to be added, right? No, I would install my fonts myself. (The substitute, and preferred solution is having these fonts in outlines; especially Concrete Math, but some more as well.) No, I don't use LaTeX since the time I switch to ConTeXt. I never regretted. Many thanks, Michal Kvasnicka ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] SciTE under Windows and Metapost
Good morning (or whatever you have in Europe now). Two or three week ago I've installed the minimal ConTeXt distribution under Windows. My first use of TeX under Windows, many thanks for the distribution, it's great! However, when I try to compile a metapost/metafun source from the SciTE editor, it fails. It tries to run mpost directly, and it's not found. I can run texmfstart texexec --mptex ... in the SciTE's command promt, and it works, but it's annoying. Can I somehow reconfigure the SciTE to run the metapost properly (I mean to run texexec --mptex)? Many thanks. Michal Kvasnicka P.S. Hans, would it be possible to add the Metafont into the minimal distribution? I like it so much I'd like to make it my major distribution even in Linux, but I need the Metafont since from time to time I still use some bitmapped font (like Concrete Math). Many thanks. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Interactive slides---hidden field on every page
Good morning or whatever you have now in Europe. I'm preparing my slides. Every slide is divided to three parts (backgrounds): text, header, and bottom. I've got the navigation buttons in the bottom. Now I'd like to add one more button that would open a field on the current page---a field containing the list of content. I'd like it to go to the \Topic I want to discuss and disappear. I tried this: \definefield[Content][check][HelpSetup][content][content] \setupfields[reset] \setupfield[HelpSetup] [width=fit,height=fit,frame=off,option={readonly,hidden}] % \definesymbol[content][\SomeContentText] \def\SomeContentText{% \startframedtext [width=\textwidth, height=fit, frame=on, background=color, backgroundcolor=tmava,framecolor=svetla]% \placecontent} \stopframedtext } % \setupbackgrounds [text] [%backgroundoffset=10pt,%.5cm, background={contentmenu,nextpage}] % \defineoverlay [ContentOnOff] [{\goto{\framed[width=\overlaywidth,height=\overlayheight,frame=off]{\hss}}% [JS(Toggle_Hide{Content})]}]%\overlaybutton{JS(Toggle_Hide{Content})}] % \startinteractionmenu[bottom] \setupinteraction [color=svetla, contrastcolor=black] \hbox to 600pt{% \raise0.4em\hbox{% \framed[width=3em, height=0.7em, frame=off, background={PageCounter,ContentOnOff}]{}} \hss \interactionbuttons[frame=off, width=8em] [firstpage, previouspage,nextpage, lastpage, PreviousJump,NextJump]% \hbox to 1cm{\hss}% \hbox to 44mm{% \interactionbuttons[frame=off][CloseDocument]\hss}% } However, it doesn't work: 1. The list of content is placed only on one page, not at all of them as I would like. 2. The field supposed to show/hide it isn't clickable---it isn't interactive, and does nothing. 3. I use \Topic and \Subject as heads, and I don't know how to put them to the list of content. Can you possibly help me to solve this problem? Sincerely yours Michal Kvasnicka ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Fieldstack Walk
Good morning. I use a fieldstack in my presentation. I'd like to go to the next frame when I click on the figure. I tried this: \definefieldstack[fgolds3] [sgolds1,sgolds3a,sgolds3b,sgolds3c,sgolds3] [frame=off,clickin=JS(Walk_Field{fgolds3})] \definesymbol[sgolds1][{\externalfigure[golds1]}] \definesymbol[sgolds3a][{\externalfigure[golds3a]}] \definesymbol[sgolds3b][{\externalfigure[golds3b]}] \definesymbol[sgolds3c][{\externalfigure[golds3c]}] \definesymbol[sgolds3][{\externalfigure[golds3]}] \placefigure[here]{none}{\fieldstack[fgolds3]} I thought that `clickin=JS(Walk_Field{fgolds3})' makes precisely what I need, but it does not. How can I make it work? With many thanks yours Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fieldstack Walk
Good afternoon. Many thanks, this solves the problem -- at least partially. The frames are `walking' now, but new problems appeared. I found that when I set `clickin=...', it is set it automatically to `clickout' as well, so one mouse click runs the JavaScript code twice. So I've set it this way: \definefieldstack[fgolds2] [sgolds1,sgolds2a,sgolds2b,sgolds2c,sgolds2d,sgolds2] [frame=off,option=,clickout=JS(Walk_Field{fgolds3}),clickin=] It's better, but I found that now frames are walking in a strange order. It is rather puzzling, since when it is invoked by \goto{...}[JS(...)], it works well. Moreover, it does different things at AdobeReader 7.x under Linux, and Acrobat 4.x under Windoze. Can you help me to solve it? Many thanks once more. M.K. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fonts problems
Good morning. Of course I'm glad there are more and more free fonts in the ConTeXt. The project you spead about sounds great. But may I ask you for a favor? Would it be possible to add one more zip file to the downloading page of http://www.pragma-ade.com/---the zip file including all free fonts in the versions that are currently supported by the ConTeXt? I do not update my system very often, and that's why I often get into problems like this when I try to update ConTeXt. If it didn't spend a great deal of your time, it would help me (and perhaps more people) a lot. Thank you very much. Yours thankful M.K. . i always try to incorporate such new things (fonts) into context as soon as possible; the drawback of that is that when a beta font becomes updates, one also may need to update context in the near future more font updates will take place; some of you may know already that there is a new font project started in a few months where the core of the free fonts in the tex distribuitions (times, paladio, etc) will be updated: (1) merging the regular, quasi and vn variants, (2) provide open type alternatives, (3) maybe add math support to all of them, (4) make them lm glyph compatible [i.e. adding shapes] and maybe more; this project is being substantially funded by CSTug, Dante, Gust, NTG and TugIndia, with TUG and maybe other groups stepping in later. since i'm one of the initiators of this project, you may expect context to be an early adopter; you are warned 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 [EMAIL PROTECTED]://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] Fonts problems
Good afternoon. I apologize that I bother you once more, but I'm getting desperate. :-( I have still problem with fonts in ConTeXt---perhaps I'm not able to install it well. I use ConTeXt ver: 2006.02.03 21:00, pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4), tetex-3.0-13 under SuSE Linux 9.2 (the tetex is grabbed from Suse 9.3). I tried to copy all files where I thought they should have been, texhashed, and build formats. Now, some things work, but not all of them, and not in an expected way. Problem 1: I expect that a following file should typeset tufte in Latin Modern font. \setupoutput[pdf] \starttext \input tufte \stoptext ConTeXt loads some map files (/usr/share/texmf/fonts/map /dvips/context/original-empty.map}{/usr/share/texmf/fonts/map/dvips/context/ori ginal-base.map}{/usr/share/texmf/fonts/map/dvips/context/ec-public-lm.map}{/usr /share/texmf/fonts/map/dvips/context/ec-base.map}{/usr/share/texmf/fonts/map/dv ips/context/8r-base.map}{/usr/share/texmf/fonts/map/dvips/context/t5-base.map}{ /usr/share/texmf/fonts/map/pdftex/context/original-ams-base.map}{/usr/share/tex mf/fonts/map/dvips/context/original-ams-euler.map}{/usr/share/texmf/fonts/map/d vips/context/original-public-lm.map}), but it clearly isn't able to find the right one, since it writes this error message: kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 ec-lmr12 mktexpk: don't know how to create bitmap font for ec-lmr12. kpathsea: Appending font creation commands to missfont.log. ) Warning: pdfetex (file ec-lmr12): Font ec-lmr12 at 72 not found I can correct it when I add one more file: \loadmapfile[psclean.map] But I was told that I should omit this line. What's the problem? How can I correct it? Problem 2: Let's suppose I add into the previous file this B\oh-Bawerk then the letter \o is missing (a white space is on its place). Isn't there a bug in the Latin modern fonts/virtual fonts/metrics, or whatever? Moreover, gv views the hyphen over the h and B letters. (Acrobat Reader 7 view it all right.) How is that possible. Problem 3: Some fonts are not used properly. The following file \setupoutput[pdf] \loadmapfile[psclean.map] \usetypescript[ppl] % working pos \switchtobodyfont[ppl,10pt] \starttext \input tufte\par \stoptext works well. It works even if I change pos to ppl, ptm, phv, or tim. It works even when changed to pcr, but the text is ragged. When changed to con, bookman, or iwona, it does nothing---the text is typeset in Latin Modern. When changed to ant, I get this error message: kpathsea: Running mktextfm sy-anttrz /usr/share/texmf/web2c/mktexnam: Could not map typeface abbreviation y- for sy-anttrz. /usr/share/texmf/web2c/mktexnam: Need to update /usr/share/texmf/fonts/map/fontname/special.map? mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input sy-anttrz This is METAFONT, Version 2.71828 (Web2C 7.5.4) kpathsea: Running mktexmf sy-anttrz ! I can't find file `sy-anttrz'. I think I have installed all these fonts (instead of Adobe fonts I have URW ones). What's wrong. Problem 4: From what afm files were the tfm metrics for Times, Helvetica, and Palatino generated? Accents are positioned in a strange way and after a tquoteright is a strange hole (bad kerning). A long time ago I've generated myself tfm metrics from afm files of URW fonts, and they look much better. Were these afm files used, or were used some afm metrics of fonts that do not include accented letter, i.e. are those letters just TeX-based composites? Problem 5: How can I switch back to CS fonts? (Well, I know I bother you all, but I still do not like Latin Modern fonts.) :-( I thought that something like this could work, but it doesn't: \setupoutput[pdf] \loadmapfile[psclean.map] \loadmapfile[/usr/share/texmf/dvips/context/original-public-csr.map] \starttypescript [serif] [computer-modern] [il2] \definefontsynonym [cmb10][csb10][encoding=il2] \definefontsynonym [cmbsy10] [csbsy10] [encoding=il2] ... \stoptypescript \usetypescript[computer-modern][il2] \switchtobodyfont[computer-modern,10pt] \starttext \input tufte \stoptext How can I do it? I apologize for so many questions. Many thanks for your help. Your thankful Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fonts problems
Vit Zyka wrote: Problem 1: I expect that a following file should typeset tufte in Latin Modern font. \setupoutput[pdf] \starttext \input tufte \stoptext ConTeXt loads some map files (/usr/share/texmf/fonts/map Hello, it seems like old lm package (wrong map files). Try to update fromhttp://www.tug.org/cgi-bin/dirarchive/tex-archive/fonts/lm/fonts.zip Vit Zyka Wow, it works. Many thanks. Well, I had to delete also old map files. But now it works very well. It works even with pos-typescript. Have you any hint for the rest of my problmes? Many thanks once more. M.K. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fonts problems
Mojca Miklavec wrote: On 2/15/06, Michal Kvasnička wrote: Wow, it works. Many thanks. Well, I had to delete also old map files. But now it works very well. It works even with pos-typescript. Have you any hint for the rest of my problmes? Problem Nr. 3: Update iwona, kurier antykwa torunska too (names were changed recently). http://www.janusz.nowacki.strefa.pl/ Mojca Oh my goodness! That works too. I wonder if I like changes (because sometimes they are improvements), or I hate them because of these problems. Many thanks to you. M.K. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Including bitmapped fonts
Good evening. I typeset one of my documents in Computer Modern Concrete. I use text ghyphs from CM-Super family, but there are no mathematical fonts there, so I have to use old Metafont version of Concrete Math.Now, if I include it in plain TeX, pdfetex bitmaps it with the resolution 600 dpi. When I try the same from the ConTeXt, I get this error message: Warning: pdfetex (file xccmi10): Font xccmi10 at 50 not found kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 ccr10 mktexpk: Mismatched mode ljfour and resolution 72; ignoring mode. mktexpk: Can't guess mode for 72 dpi devices. mktexpk: Use a config file, or update me. I tried to find in what configuration file it is mismatched, but I completely failed. I even don't know if it's ConTeXt problem, or a problem of my distribution. Now, I use the last ConTeXt (downloaded and installed today) :-) and teTeX tetex-3.0-13 from SuSE Linux 9.3 under SuSE 9.2. Many thanks for any hint. Yours Michal Kvasnicka P.S. If anybody knows where can I get math fonts for Concrete, please tell me. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Including bitmapped fonts
Ooops, so easy was it, and lost so much time trying to fix it! Many thanks. M.K. Taco Hoekwater wrote: Try this statement in your preamble: \pdfpkresolution = 600 that should give you the same results as under plain pdfetex. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] CSRoman again
Good afternoon. Many thanks for your answer. Hans Hagen wrote: 2) Some accents do no work, for instance \o (at least this doesn't work: \loadmapfile[psclean.map] don't use that one, context will load map files for you (like il2-.) Hm. It doesn't. I have to play a little with the distribution. teTeX 3.0 is much different from the old one, so it's possible I do some stupid things. - at the last bachotek there was a talk about czech type design and one of the remarks was that fo rmany fonts this whole accent business was more a matter of taste than of quality (i will not quote the speaker on czech typesetting tradition here-) Yes, it's about tastes. But I strongly do not like Latin Modern, especially iacute in sans bold. :-) Simply, I'm used to CS fonts. :-) And perhaps Latin Modern will be improved in the nearest future. I'll try to get used to it. - just curious: do you always use cm fonts? there are other fonts with math nowadays Well, I teach four different courses and I try to typeset documents for each course with a different font: Microeconomics with Computer Modern (CS fonts in Type1), Neoclassical Macro with Palatino (URW Palatino + math glyphs from pxfonts), Monetary Economics with Concrete (CM Super in Type 1 + math glyps in Metafont), and New Institutional Economics with Times (URW Times + math glyphs from txfonts). Are there more free fonts with math support? Other documents (with no math) I typeset with more fonts. Many thanks once more. I wish you and the rest of the folk at this mailing list Merry Christmass and Happy New Year Eve. Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Offtopic: TeX in MetaPost?
Good afternoon. Many thanks for your answer. I'll try to learn from Metafun macros. (Well, I'll try -- but Mr. Hagen macros are usually too clever for my stupid brain.) As for the PSTricks, I used them some years ago -- before I found MetaPost. I like MetaPost because: 1) the TeX code and figures are in separate files and are compiled separately -- it makes work much faster and reusing code is easier 2) MetaPost allows me calculate figures easily -- most my figures are economic graphs -- most of them is not drawn, but calculated (they are not data charts) 3) MetaPost is well intergrated with ConTeXt, so I have to use it anyway -- I can forget PSTricks and clear my brain :-) Yours Michal Kvasnicka Before you reinvent round objects called wheels please look over the additional facilities provided by Pstricks, which can be run using Context and the approproiate module.m-pstric.tex. Instructions are embedded in the module. It may well be that the kind of diagrams you are seeking to create in Metapost are already available via Pstricks. There is a very readable Pstricks manual and a supplement. How do Pstricks and Metapost differ? Well Pstricks is a higher level language, aimed at creating specific things like x/y charts, tree diagrams and so on. Matrapost is a lower level, more generalized facility. Most tasks can be done in either. Common cases will be more easily handled in Pstricks. More unusual situations will require the more general power of Metapost. John Culleton ___ 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] Offtopic: TeX in MetaPost?
Good evening. I apologize that I dare to post here such offtopic, but I feel this is the right place to get an answer. I try to write some general-purpose MetaPost macros for me with ConTeXt-like interface. For instance, I'd like something like this: label(point, label=$A$, xlabel=$x_A$, ylabel=$y_A$, ylabelshift=left, lines=no, dotstyle=bigdot, ...); I've done a lot of work and it almost works, but ... I failed to notice that TeX sequences are in normal cases included between btex ... etex and are preprocessed. In other words, they cannot be typeset as a string. I could use TEX macro, but it slows the process down in a horrible way. I think the best way is this: In the first run of MetaPost to flush out all TeX codes, then process it with TeX (texexec), and then to include it in the second MetaPost run. But I don't know how to do it? Can you help me or at least hint where I could find an answer? And BTW, is this a good idea at all? Isn't there a better/faster way? Many thanks for you kind help. Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] CSRoman again
Good evening. I've spent some time experimenting with LatinModern font. After all I was able to use it, but I found I hate it. 1) The have accents positioned in a ugly way (or at least, in a way not common in the Czech typesetting) 2) Some accents do no work, for instance \o (at least this doesn't work: \loadmapfile[psclean.map] \enableregime[il2] ... B\ohm-Bawerk Is there some way to get privately back to CS-Modern fonts? It seems these fonts are redefined to Latin Modern, so I can't use them. Please help. Your thankful Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ISO Latin 2 input under the new ConTeXt
Good evening. Many thanks to all of you that helped me to install teTeX 3.0. I found that I can really use SuSE 9.3 rpms under my SuSE 9.2, which quite surprised me. (I can't use Mr. Hagen's minimumdistribution, because there is no MetaFont in it, and I still use some bitmapped fonts, e.g. Concrete Math). Now I have to solve the last (I hope so) problem: The Czech encoding. I have all my input files in ISO Latin 2 encoding. It was no problem up to now because I used fonts with IL2 encoding. What shoud I do now the new LM fonts? (BTW, is it all right that I have to include \loadmapfile[psclean.map] in all my documents? LM fonts are not preloaded, and I can't find in teTeX 3.0 pdftex.conf to include it.) (In the last two years I missed all font-related changes in ConTeXt. What manuals should I read to understand how to use ConTeXt properly?) With many thanks Michal Kvasnicka P.S. And by the way, in the future I may need to switch all my inputs into UTF8. How can I typeset files like that in the ConTeXt? Many thanks. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ISO Latin 2 input under the new ConTeXt
Mojca Miklavec wrote: There are two things: input encoding or regime (\enableregime[utf] inyour case) and font Many thanks, \enableregime did what I needed. But I still have some minor questions: 1) Where should I put \loadmapfile[psclean.map]? (I can't include it in pdftex.cnf, since there is none under my new teTeX 3.0 in SuSE.) 2) Is it a goold idea to place in the same file \enableregime[il2] if almost all my documents are typed in this encoding? 3) What is the native ConTeXt font encoding? If I use many different fonts (most being reencoded via virtual fonts into IL2 encoding), should I reencode them into the native ConTeXt font encoding (whatever it is), or can I make ConTeXt work with a different font encoding, perhaps different for different fonts? How? How? 4) What documentations for fonts in ConTeXt should I read, and in what order? And I have one (I hope) little plea to Mr. Hagen: Please, can you add MetaFont to your minimum TeX installation? I would like to use it instead of teTeX because it is more flexible. But I still use heavily some MetaFont bitmapped fonts. Many thanks anyway. Your thankful Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] New ConTeXt with old teTeX problem?
Many thanks. I tried it, but make-process failed. It is a long time since I last compiled something, so I'm completely lost. Isn't the binary package for SuSE 9.2 somewhere on the net? My attempts to find it out failed. :-( It looks I will have to upgrade my system. :-((( This page might help: http://wiki.contextgarden.net/TeTeX_3.0_installation Nonetheless, many thanks anyway. M.K. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] csr fonts in last ConTeXt
Good evening. A couple of days ago I have reinstalled my computer and installed the newest ConTeXt as well (TeXExec 5.2.4, ConTeXt ver: 2005.01.31). I found that it could work under SuSE Linux 9.2 -- teTeX distribution. But I also found that there is a change with csr fonts -- it is (at least in the Czech interface) substituted with cmr fonts. What's the reason? How could I change it againt to csr? (cmr fonts don't have accented letters.) Many thanks for your help. Your sincerely Michal Kvasnicka ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] csr fonts in last ConTeXt
Good evening. Many thanks for your answer. But I still can't make it out. from now on context defauls to latim modern, What is Latin Modern? What is name of its tfm metrics? Where can I find the fonts? \setupencoding[il2] \usetypescript[modern][il2] Is this line intended to switch the defalt to Computer Modern, or to csr directly? My csr-documents are still typeset in cmr (i.e. without accents). Probably I don't have the Latin Modern. But anyway, the commands above don't switch ConTeXt to csr. How can I do it? (My documents in other accented fonts work well.) Many thanks for your help. I wish you all nice weekend. M.K. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context