Re: [NTG-context] placefigure
Le Thu, 26 Jul 2007 08:36:53 +0200, Liesbeth van der Plas a écrit : Hallo Patrick, Yesterday I sent a few files, but I got a return that the message body was too big. Here are the three most important files from yesterday's map. Liesbeth 2007/7/25, Liesbeth van der Plas [EMAIL PROTECTED]: Hallo Patrick, Here the map with alle files; .tex, .eps, .pdf, ... Liesbeth 2007/7/25, Patrick Gundlach [EMAIL PROTECTED]: Hello Liesbeth, do you have a small sample eps file which gives you a problem? That way we might be able to help you better. Patrick ___ 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 ___ -- [EMAIL PROTECTED] www.wiskunde-interactief.nl Hi Liesbeth, If you cannot convert correctly your image, I can try to 'pstopdf' it. Send it directly to my mail address if it's under 9.5 M, an if bigger, winrar can cut it into smaller chunks. Maybe it'll solve your pb. -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 [EMAIL PROTECTED] ___ 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] presentation module
Le Mon, 16 Jul 2007 11:35:04 +0200, Thomas A. Schmitz a écrit : Hi all, I have played around a bit and prepared a module to produce presentations with ConTeXt. It is inspired (of course) by Hans's work, but provides less frills and an easier interface; I hope it is especially suited for academic presentations. Before I actually unleash it on the unsuspecting masses, I would be grateful if somebody could test it. It comes with a demo file and some documentation, so all you have to do is run it through ConTeXt; I want to make sure that it'll work on other installations than mine. If you're interested, drop me a line, and I'll send it to you (it's just a zip file of 233 k). All best Hi Thomas, I've played with your presentation module and fond it nice to see. In order to have it working on my system, I've adapted t-taspresent.tex to my system needs (ubuntu + sanjoy's texlive repository = context version:2007.04.17) : line 169 : commented \usetypescriptfile[type-gyr] line 554 : changed from a = 2*NOfPages-1 ; to numeric a ; a = 2*NOfPages-1 ; line 555 : changed from c = PaperHeight/a ; to numeric c; c = PaperHeight/a ; HTH. Thanks for providing us both nice model and well commented source. -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 ___ 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] acrobat reader does not open a pdf
Le Tue, 03 Jul 2007 16:48:08 +0200, luigi scarso a écrit: On 7/3/07, Olivier TURLIER [EMAIL PROTECTED] wrote: Hi everybody, Acrobat reader 7 (linux) cannot open doc-test-gobck.pdf try \pdfcompresslevel=0 \pdfobjcompresslevel=0 before anything else Thanks a lot Luigi, it's working fine now. For inserting external doc, I was doing \getfiguredimensions[external-doc] \dorecurse{\noffigurepages}{ \externalfigure [external-doc] [width=1\textwidth,height=1\textheight,offset=-1cm] [page=\recurselevel]} And page numbering, via \setuppagenumbering[location=,state=stop] \setupheadertexts [\setups{chapter-toc}] \startsetups[chapter-toc] \rlap{\hspace{}} \hfill \llap{\pagenumber\space/\space\lastpage} \stopsetups was working Now, this old inserting code is no more working : I get a blank page. It does'nt matter, as long as this one works (partially): \copypages[external-doc][width=1.1\textwidth,height=1\textheight] But i loose page numbers. (only get \lastpage) How can I achieve this ? TIA for any answer -- olivier Turlier ___ 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] acrobat reader does not open a pdf
Hi everybody, Acrobat reader 7 (linux) cannot open doc-test-gobck.pdf I usually include external documentation (catalogs, etc.) as a clickable link which open another doc. (parent-doc-test.{tex,pdf} -- doc-test-gobck.{tex,pdf}) On those external doc, I put buttons for returning to the parent doc. I was making this thru variables for easy creation, and moreover for multiple page inserting. But now (context version: 2007.04.17) acrobat (linux/ubuntu feisty acrobat reader 8 win xp) refuse to work (kpdf does !) Have you a better approach (for making those sons docs)? TIA for any answer olivier Turlier PS: attached archive is too big, so I've put it here : http://profteb.free.fr/tools/context/pb-external-doc/ ___ 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] New My Way for Math
Le Mon, 18 Jun 2007 09:48:51 -0400, Aditya Mahajan a écrit : I have converted my article comparing latex and context math capabilities into a my way. Thanks a lot Aditya, your well done myway (I've never seen code snippets inside a pdf before) will oblige me to keep going on in writing math courses. -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 ___ 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] externalfigure not finding figures in other directories?
Le Wed, 30 May 2007 14:02:19 +0100, Sanjoy Mahajan a écrit: have you tried \externalfigure[./1/fig.1] ? Good thought, although it also did not work. The behavior very strange because the subdirectory specification sort of works if the figure name is 1/fig.2 but not if it is 1/fig.1 or 1/fig.3. I say 'sort of' because it finds the figure and gets the dimensions from the .rli file it makes, but it doesn't include the figure in the PDF. I'm trying \tracingall to see whether I can find what goes wrong. Another option is to add the directory to the search path and not to use directories in the name. \setupexternalfigures[directory={% ./1,% ./2,% ../whatever/include}] Thanks, that works reliably. -Sanjoy `If we are fortunate, Republicans will complete their self-destruction before they extinguish the Constitution and destroy America.' --Paul Roberts, former assistant Treasury Secretary under Reagan ___ 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 ___ Hi Sanjoy I put this in my env file and all images, external docs are found, assuming that they are in children folders of the *.tex doc \setupexternalfigures[directory={img,img/base,doc,doc/ascenseur,doc/elec}] etc I've not tested more than 3 levels of folders. Cheers ___ 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] updated Ubuntu edgy texlive+context backports
Le Wed, 30 May 2007 08:26:09 -0400, Sanjoy Mahajan a écrit: I just updated the Ubuntu edgy backports of the texlive packages (for i386) and have been running them on my feisty laptop for half a day. The 'context' package provides version 2007.04.17 12:51. They are recompilations of the latest Ubuntu gutsy (7.10) packages, which are Norbert's latest Debian packages with a couple additions. Let me know if you have problems. To use the packages, add these lines to your /etc/apt/sources.list : deb http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/ deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/ Then apt-get update apt-get install cm-super texlive-fonts-recommended \ context context-nonfree context-doc-nonfree ('cm-super comes from the universe repositories) Sorry, no dapper (6.06) backports yet! A few tricky package-version obstacles remain. -Sanjoy Hi Sanjoy, Morning tests of your new packages are OK for me. Thanks. Can you give the location of you key so one can authenticate packages and be able to upgrade via the automatic/regular/graphic ubuntu way and not thru the shell. Thanks again ___ 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] Ubuntu edgy/feisty: texlive and context packages
Le Tue, 22 May 2007 00:25:43 -0400, Sanjoy Mahajan a écrit: I made texlive and context packages for Ubuntu edgy (6.10) and feisty (7.04). They are compiled on edgy (in a clean chroot) and should work on both. I haven't tested them on an edgy system, but I use them on my feisty laptop with no problems so far. Let me know of any problems. Here are the two lines for /etc/apt/sources.list (which supercede the ones in my last email): deb http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/ deb-src http://web.mit.edu/download/sanjoy/texlive-backports/ edgy/ Then apt-get install context or apt-get install context context-doc-nonfree context-nonfree Would many users would like packages for Ubuntu dapper (6.06)? I'm not optimistic whether the backport from gutsy will work that far back, since library versions get farther apart. But if there's interest, I'll try it. -Sanjoy ___ 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 ___ Thanks a lot Sanjoy, I was a bit desperate to be able to update context via the apt mecanism, to a point that I was willing to test indesign ... I can now use optima font whith a (borrowed again from Hans perfect docs) whithout any hassle : % definetypeface[mainface][ss][sans] [iwona] [default][encoding=texnansi] \definetypeface[mainface][ss][sans] [iwona] [default][encoding=ec] \definetypeface[mainface][rm][serif][latin-modern] [default][encoding=texnansi,rscale=1.05] \definetypeface[mainface][tt][mono] [latin-modern] [default][encoding=texnansi,rscale=1.1] \definetypeface[mainface][mm][math] [times] [default][encoding=default, rscale=1.05] % definetypeface[heavyss] [ss][sans] [iwona-heavy] [default][encoding=texnansi] \definetypeface[narrowtt][tt][mono] [latin-modern-cond][default][encoding=texnansi,rscale=1.1] \setupbodyfont[mainface,ss,11pt] But whith this new version of context (2007.04.17) I loose features for a good number of files : It will be another post. Thanks again for permitting us to work on ubuntu. Olivier Turlier ___ 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] wiki: linux installation updates
Le Sat, 06 Jan 2007 02:27:43 -0500, Sanjoy Mahajan a écrit : I updated the Linux installation pages on the wiki, mostly the Debian one, but also the tetex 3.0 page and I added a short entry for Ubuntu 6.10 (edgy). The Debian page now describes how to install using Norbert's context packages. It describes a system-wide install based on those and the texlive packages. Let me know if you find errors or problems (or just correct the errors on the page). Sorry about the nightmare per-user install instructions I put there before. -Sanjoy `A nation of slaves is always prepared to applaud the clemency of their master who, in the abuse of absolute power, does not proceed to the last extremes of injustice and oppression.' (Gibbon) Thanks Sanjoy for this help, i was wondering how to install new .deb context packages made by N.Preining but was blocked by 0.25 version of tex-common on ubuntu/edgy. I've noticed that on the first lines of debian install, one should add tug repository to /etc/apt/sources.list. Maybe it will be good (for low-end/copy-paste minded users like me) to tell to **update** (and not upgrade) after adding those entries and how to add gpg key to apt (that it's was retuned after such a command) I'm not modifying the corresponding wiki page because I don't feel of mature help in that field. Thanks again -- Olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] wiki: linux installation updates
Le Sat, 06 Jan 2007 12:06:12 +, Sanjoy Mahajan a écrit : Not sure about this one. I've been ignoring the error until I can figure out where the gpg key lives. After googling a bit, I've succeed with $ gpg --keyserver subkeys.pgp.net --recv-keys 0x09C5B094 $ gpg --export --armor 0x09C5B094 | sudo apt-key add - 0x09C5B094 was found on an Nobert Preining mail signature. nota : $ sudo apt-get install debian-archive-keyring was not working as advised -- Olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] pb inserting multipage documents
Le Mon, 25 Dec 2006 13:03:36 -0500, Aditya Mahajan a écrit : Aditya Thanks for random questions url, will try it. I've played a bit with D.P Story Acrotex bundle, but I was'nt able to run IIS effectively for sending/receiving *.fdf data, and moreover, style or functions are (for me) complicated pdf commands, so I gave over. -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] pb inserting multipage documents
Le Thu, 21 Dec 2006 11:23:03 -0500, Aditya Mahajan a écrit : On Thu, 21 Dec 2006, olivier Turlier wrote: PS : I try to frenchise your well documented nice homework assignment seen at http://dw.tug.org/pracjourn/2006-4/mahajan/ If you just want the Problem and Solution to come out in french, you can just change \setuplabeltext[problem=Problem,solution=Solution ] \setuplabeltext[point=point,points=points] If you want to change the interface \assignment, \startproblem and \startsolution to french, let me know the french words for them, and I will try to re-implement the environment in a multi-lingual way, and maybe release it as a module. Aditya Thanks for the hint. I'll put on the same website (http://profteb.free.fr/) results of changements of your source, plus prior attempts in homework assignment/ examination test, when it'll be done. By the way, have you tried to make online tests (sendable by a click) with random order of questions (avoid copying pbs thru neighboors). It's involving javascript (answering in editable fields + feedback + collecting answers when sending, etc. ) and I never succeed in ! Merry Christmas -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] pb inserting multipage documents
Aditya Mahajan a écrit : On Wed, 20 Dec 2006, olivier Turlier wrote: Hi everybody, I'm experiencing pb with the latest stable version : insertion of multipage external document leads to the rendering of only the first page, with this command : \getfiguredimensions[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf] \dorecurse{\noffigurepages}{\externalfigure[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf] [width=\textwidth,height=\textheight][page=\recurselevel]} Try \copypages[filename][width=\textwidth,height=\textheight] Aditya Thanks for your answer Aditya, This partialy solve the pb : it produce a 17 different pages pdf, but page numbering is no more working. For inserting multipage pdf, I came to the former command after having tried : % \slicepages % [mise-station.pdf] % [n=0, %voffset=1in, %height=23.55cm, % width=22cm, % offset=\dimexpr(-1in- 2pt)] % [offset=\dimexpr(-1in+19pt)] % \startpagefigure [flora.pdf] [width=\textwidth,height=\textheight][page=1]\stoppagefigure % \externalfigure[docs.pdf] [width=\textwidth,height=\textheight][page=1] % \externalfigure[docs.pdf] [width=\textwidth,height=\textheight][page=2] I use this for easily inserting an external child document to a parent course with big buttons for jumping back to the parent one. PS : I try to frenchise your well documented nice homework assignment seen at http://dw.tug.org/pracjourn/2006-4/mahajan/ -- olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] pb inserting multipage documents
Hi everybody, I'm experiencing pb with the latest stable version : insertion of multipage external document leads to the rendering of only the first page, with this command : \getfiguredimensions[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf] \dorecurse{\noffigurepages}{\externalfigure[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf] [width=\textwidth,height=\textheight][page=\recurselevel]} If you are interested, you can test source and see differences at this url : http://tebcado.free.fr/context-quest/01/ TIA for the answers. -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] french, ponctuation and directdiscretionary or discretionarytoken pb
Taco Hoekwater a écrit : Hi Olivier, Please update again (this should be fixed in 2006.12.07). Also, please subscribe to the mailing list from the address you use for posting. Best, Taco Ok, thanks for the answer, will do it. I'll manage also modifications on ntg ml, and will try to remenber to check size of attachment files under 40 kO ! Thanks again -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] xmldir : hyperlinks not working
Hi every Context lover/user, I came to using xmltools for building an long (boring) list of foldersfiles, with the idea of sharing a cdrom with automount niceties (shellexec.exe autorun.inf telling to open the generated pdf). The problem is that xmltool apparently (skip certain portions ?) don't recognise or retranscribe a full path, i.e if a real path is root(K:\MESDOC\COURS\05-TEB~1\000_ZI~1)\01-at1-repres_graphic_gene\01-s8910-metre_infra\cours-ppes-metre-go-0506.pdf firefox answer that (//media/cdrom0)/cours-ppes-metre-go-0506.pdf. is unreachable .tex file for creating xmldir.xml : \useregime[il1] \enableregime[il1] \useencoding[ffr] \mainlanguage[fr] \executesystemcommand % {texmfstart xmltools --dir --recurse --root=K:/Mesdoc/cours/05-teb-0506/000_zip-tout --pattern={*.pdf,*.xls} --output=xmldir.xml} {texmfstart xmltools --dir --recurse --pattern=*.* --output=xmldir.xml} -- command for making pdf from xmldir.xml : texmfstart newtexexec.rb --autopdf --pdf --mode=colorscheme-red --xml --use=dir-01 --pdf xmldir.xml (I've tried also : texmfstart newtexexec.rb --autopdf --pdf --mode=colorscheme-red --root=K:/Mesdoc/cours/05-teb-0506/000_zip-tout --xml --use=dir-01 --pdf xmldir.xml : without success) -- TIA for any answer -- Olivier TURLIER CRP La Rouguière 101 Bd des Libérateurs 13367 MARSEILLE CEDEX 11 tel : (33) 04 91 18 56 00 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] itemize and interlinespace
Hi, I am fighting to change the interlinespace in item text. For instance: \startitemize \item This is the text % here the interline space is very small of the first item \stopitemize By the way, is there a way to change the font depending on the item level? Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mswincontext problems
Le Thu, 27 Apr 2006 12:15:40 +0200, Taco Hoekwater a écrit : Hi all (esp. windows users), Last night I tried setting up a Win98SE for use with context using mswincontext.zip (I borrowed a laptop for bachotek, so I could not install linux on it ... ). It went terribly wrong. At first I thought it was just the shoddy Win98 install on that machine, but Olivier tells me he also had problems installing the latest mswincontext, so I hope another someone who uses Windows98 can testrun the installation. I got all sort of errors from command.com (syntax error, out of environment space, command not found, permission denied), and the wiki page is definately incomplete so I could not really debug. In the end, I basically gave up. Cheers, taco After update with 2006-04-24 mswincontext cont-tmf versions, i was unable to compile anything. Everything went fine with previous updates, so I decided to follow exactly wiki method for a Stand-alone ConTeXt distribution : same end. From what i see in scite compilation panel : (new)texexec is unable to find cont-en.fmt As a good end user, I'm unable to investigate more, but obviously wait for an answer/update. (hopefully, i can borrow another xp box for continuing job) Thanks -- olivier Turlier CRP La Rouguière 101 Bd des Libérateurs 13367 Marseille cedex 11 tel : (33) 04 91 66 58 10 fax : (33) 04 91 45 14 48 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Quick Metapost question
Wouahhh! Great! I wasn't aware of these ones. Many thanks, Olivier Quoting Renaud AUBIN : -- was [EMAIL PROTECTED] on Apr 26, 2006 at 11:45:34 -- Did you try \scale ? (Dunno if it works)... http://texshow.contextgarden.net/ts.rb?lang=enwhat=descif=encmd=scale Olivier a écrit : Hi all, I'm looking for an equivalent of \externalfigure[width=1mm] but for \reuseMPgraphic. Something like \reuseMPgraphic[width=1mm]{my-mp-drawing} There is always the way of tracking the generated file and including it with exernalfigure, but this is not very convenient since the numbering is subject to change. Is there an easy way to achieve rescaling of such Metapost figures? Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Quick Metapost question
Quoting Hans Hagen : -- was [EMAIL PROTECTED] on Apr 26, 2006 at 12:34:38 -- Olivier wrote: Hi all, I'm looking for an equivalent of \externalfigure[width=1mm] but for \reuseMPgraphic. Something like \reuseMPgraphic[width=1mm]{my-mp-drawing} \scale[width=1mm]{\reuseMPgraphic{my-mp-drawing}} There is always the way of tracking the generated file and including it with exernalfigure, but this is not very convenient since the numbering is subject to change. Is there an easy way to achieve rescaling of such Metapost figures? Yes, works very well. Exactly what I was needing. Many thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] itemize and vertical spacing
Hi Taco, Quoting Taco Hoekwater : -- was [EMAIL PROTECTED] on Apr 26, 2006 at 01:12:20 -- Olivier wrote: Is there a way to achieve this? There is probably a nicer solution, but this works: \startitemize[inbetween={\blank[30pt]\hrule height 0pt}] I forgot to emphasize that the issue is with two columns mode. Hence, \startitemize[columns,inbetween={\blank[30pt]\hrule height 0pt}] indeed put vertical space between items, so that then, there are no columns anymore :) Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] itemize and vertical spacing
Olivier wrote: Hi Taco, Quoting Taco Hoekwater : -- was [EMAIL PROTECTED] on Apr 26, 2006 at 01:12:20 -- Olivier wrote: Is there a way to achieve this? There is probably a nicer solution, but this works: \startitemize[inbetween={\blank[30pt]\hrule height 0pt}] indeed put vertical space between items, so that then, there are no columns anymore :) Ah. I had: \startcolumns \startitemize[inbetween={\blank[30pt]\hrule height 0pt}] .. \stopitemize \stopcolumns Well, I must confess it works perfectly this way :) Thanks a lot, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2c considerations about win installer
On Fri, 21 Apr 2006 01:33:04 +0200, andrea valle wrote: Dear all, I'm using conTeXt to create automatic documentation about sound classification. The idea is that starting from an html file collecting infos about sounds my program can generate some schematic images using R and POV-Ray and to create a conTeXt file including both images and textual information. Now, I'd like to share this work with my students. I'm on macosx, they're typically on win. My program is in python so it's cross-platform, so no problem. Obviously they can annotate sounds, generate images and include them manually in a MS word file. But I'd prefer that they compile the conTeXt file. On two win machines I tried to install conTeXt using the complete package (shipped with Scite: nice). I had always (different) troubles (on each machine) with environment variable (e.g. for Perl): actually I'm not able to run conTeXt. Hacking a bit, eventually asking the list, I think I will solve the problem. But I don't think that my students can do, as I suspect that they probably not even know what is PATH. And I cannot help them on each installation. So, more generally, I was asking myself if it would not be possible (and better) to have an .exe installer as usual happens in win, including Perl, maybe Ruby (+ or- 20 Mb doesn't change too much). Double click, and it set ups all the installation parameters. A completely autonomous installer would allow many people to try, use and get fond conTeXt (and maybe to leave Word) without having to struggle with problems which typically lead people to leave out. It seems to me that a similar installer would be a refinement in the spirit of the actual mswincontext distro. At the end, it's not that far form Gerben's distro on macosx. It does everything for me... Or maybe am I missing something? Just my 2 c Best -a- Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea [EMAIL PROTECTED] If I'm not wrong, If you go on http://www.pragma-ade.com/dir/context/install/ (click documents directory view context install), you will find that the bigger *.zip (cdwincontext.zip) contains Perl Ruby, while mswincontext.zip no. So you can run Context out of the box with cdwincontext. (untested, because I got Perl Ruby already) Your students can also install Ruby (single click .exe : Rubyinstaller from : http://rubyforge.org/frs/download.php/9417/ruby184-16_rc1.exe) and Perl (single click .exe : activePerl :http://www.activestate.com/Products/ActivePerl/) whithout any pb's of adding new executables to the path, since it's done while installation. Cheers -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] long style of a row to put in a macro
On Mon, 10 Apr 2006 14:47:17 +0200, Vit Zyka wrote: Hans Hagen wrote: olivier Turlier wrote: Hi everybody, In writing a glossary of building terms (approx. 400 entries) in a natural TABLE. For each letter, A, B, C, I want a screen background, spanning on 2 colomns, with \bf style, etc. : this leads to a rather long definition that I don't wish to copy on each new letter row, so I made a little macro to recall this setup. This system is not working yet, so i beg your help, TIA for any answer %%% \setupcolors[state=start] \starttext \def\Rowa#1{nc=2,background=color,backgroundcolor=screen,style=\bf, frame=off,align={middle,lohi}{#1}} \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] you can say odd/even etc instead of 1,3,5 Thinking about a feature request: I very frequentely set every third (3,6,9,...) row with gray background to make wide tables well-arranged. I did it by a loop or with a script that generates data. Some 'everythird' equivalent to 'even' or 'odd' would be more strightforward. Vit Maybe I was unclear, I just want to be able to recall a certain style for certain rows : the position of the rows is not regular, as in my case, it's for emphasis for each new letter (A,B,C, etc.) of glossary terms. As this def is rather long, i just wanted to make a more readable code. So I tried to put [nc=2,background=color,backgroundcolor=screen,style=\bf,frame=off,align={right,lohi}] in \def\Rowa#1{[nc=2,..]{#1}} and call this def on new letter row by %\bTR \bTD [command=\Rowa] B \eTD \eTR % NOT WORKING \bTR \bTD[nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]B \eTD \eTR \bTR \bTD barre \eTD \bTD \'Element de structure .. \eTD \eTR \bTR \bTD barre comprimée \eTD \bTD \'Eleme .. \eTD \eTR \bTR \bTD [nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]C \eTD \eTR \bTR \bTD [command=\Rowa] C \eTD \eTR % NOT WORKING \bTR \bTD c.. \eTD \bTD ... \eTD \eTR This is obviousluy a minor request, since i've already copied this def on each row manually. Thanks again -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] long style of a row to put in a macro
On Tue, 11 Apr 2006 15:56:48 +0200, Hans Hagen wrote: olivier Turlier wrote: On Mon, 10 Apr 2006 14:47:17 +0200, Vit Zyka wrote: Hans Hagen wrote: olivier Turlier wrote: Hi everybody, In writing a glossary of building terms (approx. 400 entries) in a natural TABLE. For each letter, A, B, C, I want a screen background, spanning on 2 colomns, with \bf style, etc. : this leads to a rather long definition that I don't wish to copy on each new letter row, so I made a little macro to recall this setup. This system is not working yet, so i beg your help, TIA for any answer %%% \setupcolors[state=start] \starttext \def\Rowa#1{nc=2,background=color,backgroundcolor=screen,style=\bf, frame=off,align={middle,lohi}{#1}} \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] you can say odd/even etc instead of 1,3,5 Thinking about a feature request: I very frequentely set every third (3,6,9,...) row with gray background to make wide tables well-arranged. I did it by a loop or with a script that generates data. Some 'everythird' equivalent to 'even' or 'odd' would be more strightforward. Vit Maybe I was unclear, I just want to be able to recall a certain style for certain rows : the position of the rows is not regular, as in my case, it's for emphasis for each new letter (A,B,C, etc.) of glossary terms. As this def is rather long, i just wanted to make a more readable code. So I tried to put [nc=2,background=color,backgroundcolor=screen,style=\bf,frame=off,align={right,lohi}] in \def\Rowa#1{[nc=2,..]{#1}} and call this def on new letter row by %\bTR \bTD [command=\Rowa] B \eTD \eTR % NOT WORKING \bTR \bTD[nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]B \eTD \eTR \bTR \bTD barre \eTD \bTD \'Element de structure .. \eTD \eTR \bTR \bTD barre comprim \eTD \bTD \'Eleme .. \eTD \eTR \bTR \bTD [nc=2,background=color,backgroundcolor=screen, style=\bf,frame=off,align={right,lohi}command=\Rowa]C \eTD \eTR \bTR \bTD [command=\Rowa] C \eTD \eTR % NOT WORKING \bTR \bTD c.. \eTD \bTD ... \eTD \eTR This is obviousluy a minor request, since i've already copied this def on each row manually. \starttext \unprotect \def\defineTABLEsetup {\dodoubleargument\dodefineTABLEsetup} \def\dodefineTABLEsetup[#1][#2]% {\setvalue{\@@tbl:set:#1}{#2}} \long\def\bTDs[#1]#2\eTDs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTD} {\bTD[]#2\eTD}} \long\def\bTRs[#1]#2\eTRs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTR} {\bTR[]#2\eTR}} \protect \defineTABLEsetup [xx] [foregroundcolor=red] \setupcolors[state=start] \bTABLE \bTR \bTD oeps \eTD \bTD oeps \eTD \eTR \bTR \bTDs[xx] oeps \eTDs \bTD oeps \eTD \eTR \bTRs[xx] \bTD oeps \eTD \bTD oeps \eTD \eTRs \eTABLE \stoptext Thanks a lot, it's working like a charm. What complex code before for getting much more simple code after, in the tables ! It's that kind of stuff that makes Context attractive, even for an end user like me. \starttext \unprotect \def\defineTABLEsetup {\dodoubleargument\dodefineTABLEsetup} \def\dodefineTABLEsetup[#1][#2]% {\setvalue{\@@tbl:set:#1}{#2}} \long\def\bTDs[#1]#2\eTDs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTD} {\bTD[]#2\eTD}} \long\def\bTRs[#1]#2\eTRs {\doifdefinedelse{\@@tbl:set:#1} [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@EA[\csname\@@tbl:set:#1\endcsname]#2\eTR} {\bTR[]#2\eTR}} \protect \defineTABLEsetup [xx] [foregroundcolor=red] \setupcolors[state=start] \bTABLE \bTR \bTD oeps \eTD \bTD oeps \eTD \eTR \bTR \bTDs[xx] oeps \eTDs \bTD oeps \eTD \eTR \bTRs[xx] \bTD oeps \eTD \bTD oeps \eTD \eTRs \eTABLE \blank[2*big] \defineTABLEsetup [bb] [nc=2,background=color,backgroundcolor=blue,foregroundcolor=white,style=\bf,frame=off,align={right,lohi}] \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] % \bTRs[bb] \bTD A \eTD \eTRs % \bTR \bTD abscisse \eTD \bTD Axe horizontal d'un diagramme \eTD \eTR \bTR \bTD abside \eTD \bTD Construction en forme de demi-cercle ou de polygone, située derrière le choeur et constituant l'extrémité d'une église. \eTD \eTR \bTR \bTD action \eTD \bTD Force ou déformation imposée agissant sur une structure. \eTD \eTR % \bTRs[bb] \bTD B \eTD \eTRs % \bTR \bTD barre \eTD \bTD \'Element de structure, généralement
[NTG-context] long style of a row to put in a macro
Hi everybody, In writing a glossary of building terms (approx. 400 entries) in a natural TABLE. For each letter, A, B, C, I want a screen background, spanning on 2 colomns, with \bf style, etc. : this leads to a rather long definition that I don't wish to copy on each new letter row, so I made a little macro to recall this setup. This system is not working yet, so i beg your help, TIA for any answer %%% \setupcolors[state=start] \starttext \def\Rowa#1{nc=2,background=color,backgroundcolor=screen,style=\bf, frame=off,align={middle,lohi}{#1}} \bTABLE[frame=off,width=broad,split=yes] \setupTABLE[column][1][style=\bf,align={right,lohi},width=3cm] \setupTABLE[column][2][style=\tf,align={lohi}] \bTR \bTD [nc=2,background=color,backgroundcolor=Grisbleu,style=\bf,frame=off, align={right,lohi}] A \eTD \eTR %command=\Rowa \bTR \bTD abscisse \eTD \bTD Axe horizontal d'un diagramme \eTD \eTR \bTR \bTD abside \eTD \bTD Construction en forme de demi-cercle ou de polygone, située derrière le chœur et constituant l'extrémité d'une église. \eTD \eTR \bTR \bTD action \eTD \bTD Force ou déformation imposée agissant sur une structure. \eTD \eTR %... \bTR \bTD [command=\Rowa] B \eTD \eTR % NOT WORKING \bTR \bTD barre \eTD \bTD Element de structure, généralement longiligne, utilisé par exemple dans les treillis \eTD \eTR \bTR \bTD barre comprimée et fléchie \eTD \bTD Element de structure soumis à une compression excentrée. \eTD \eTR %... \eTABLE \stoptext -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Two figures side-by-side ?
On Sat, 01 Apr 2006 01:33:23 +0200, Renaud AUBIN wrote: Hi all, What's the best (i.e. the CLEANEST ?) solution to put two figures side-by-side ? (use of placefigure startcombination ?) Cheers, Renaud Does \placesidebyside{}{} command fit your needs ? Cheers -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mixed colors in TABLE
On Tue, 14 Mar 2006 10:14:50 +0100, Taco Hoekwater wrote: Hi, olivier wrote: Hi Everybody, I'm in front of a unresolvable pb (for the moment !) : compilation aborts with following file, apparently for a color problem. Luckily, this is easy to fix. \setupTABLE[c][1][style=\bfb,color=\SubTitleColor] \setupTABLE[c][2][style=\bfa,color=\TextColor] Just delete the backslashes in front of the color names. The second column of the table is off the page on the right, because the table is too large, but I assume you knew that. Cheers, taco Thanks a lot Taco, it's working allright now. For placing image \ text, i've switched to layer placement, because of my ignoreance of Tex commands (placing boxes hori \ verticaly). In the way of finding correct width for columns, i've noticed that i was obliged to clean aux. files for seeing a graphical change. -- Olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mixed colors in TABLE
Hi Everybody, I'm in front of a unresolvable pb (for the moment !) : compilation aborts with following file, apparently for a color problem. the (not so minimal and not working) exemple : \setuppapersize [A4,landscape] [A4,landscape] \setupcolors [state=start] \definecolor[bgnd][black] \definecolor[TitleColor][yellow] \definecolor[SubTitleColor][green] \definecolor[TextColor][white] \setupbackgrounds [paper][paper] [background=color,backgroundcolor=bgnd] \starttext \startbuffer[caracteristiques] \bTABLE[frame=off,width=.45\paperwidth] % \setupTABLE[r][1][topframe=on,rulethickness=1em,rulecolor=\TitleColor] \setupTABLE[c][1][style=\bfb,color=\SubTitleColor] %foreground=color,foregroundcolor=\SubTitleColor \setupTABLE[c][2][style=\bfa,color=\TextColor] %foreground=color,foregroundcolor=\TextColor \bTR \bTD Famille : \eTD \bTD Bombacaceae \eTD \eTR \bTR \bTD Origine : \eTD \bTD Costa Rica \eTD \eTR \bTR \bTD Température mini : \eTD \bTD 7°C voire moins, mais à cette température l'arbre perd ses feuilles.\eTD \eTR \bTR \bTD Généralités : \eTD \bTD arbre tropical pachycaule, feuilles palmées, fleurs blanches avec aigrettes en forme de plumeau, floraison d'avril à juillet, gros fruits ronds, excellente plante d'intérieur. N'entre pas en dormance. \eTD \eTR \bTR \bTD Exposition : \eTD \bTD mi-ombre \eTD \eTR \bTR \bTD Atmosphère : \eTD \bTD humide (soucoupe remplie de pouzzolane mouillée et vaporisation à l'eau tiède) \eTD \eTR \bTR \bTD Arrosage : \eTD \bTD abondants et généreux en été (mais laisser sécher entre 2 arrosages), ne pas trop arroser en hiver Engrais : normal \eTD \eTR \bTR \bTD Substrat : \eTD \bTD moitié terreau plante verte, moitié sable \eTD \eTR \eTABLE \stopbuffer \startalignment[center] \hbox \bgroup \ignorespaces \externalfigure[Pachiraaquatica.jpg][width=.5\paperwidth] \unskip \quad \ignorespaces \getbuffer[caracteristiques] \unskip \egroup \stopalignment \stoptext and the answer from texmfstart newtexexec.rb --autopdf --pdf pachira-quest.tex (texexec 5.4.3, texutil 9.0.0, context ver: 2006.02.08) : [snip] systems : begin file pachira-quest at line 20 pachira-quest-caracteristiques.tmp figures : figure Pachiraaquatica can not be found (c:\mytex\isoimage\usr\local\context\tex\texmf-local/tex/context/base/pdfr-ec.t ex) (./pachira-quest-caracteristiques.tmp ! Missing \endcsname inserted. to be read again \bgroup \switchtocolor [#1]-\bgroup \startcolor [#1]\aftergroup \stopcolor \aftergr... \doifcolorelse ...\ifcsname \??cr \currentpalet #1 \endcsname \currentpalet \... \dodoglobalstartcolor ...fcolorelse \@@askedcolor {\ifpermitcolormode \docol... \doglobalstartcolor ...else \dodoglobalstartcolor \fi \else \dodoglobalstart... \BeforeGroup -\bgroup \startcolor [\tbltblcolor ] \bgroup \aftergroup \After... ... l.13 \eTABLE ? TeXExec | runtime: 2.704 Thanks for any answer -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context 2006.02.15 released
On Thu, 16 Feb 2006 15:29:00 +0100, Taco Hoekwater wrote: Hello all, I am pleased to announce that the new ConTeXt release from Hans Hagen can be downloaded as of now from the Pragma ADE website or one of its mirrors. The current release has version 2006.02.15. Taco On my win xp box, it's the first time i get pb's with standalone versions (mswincontext or cdwincontext) : there a mismatch in date of format file and version, thus no compilations. I've tryed to re-generate formats by a texexec --make --all command on the root of the folder (c:\mytex\*) but texexec was not able to find pdfetex.pool. Coming back to 2006,01,?? standalone version is my only answer. Hope this install case (simply deflating .zip... thanks Hans) is not yours. Cheers from sunny 13°C Marseille ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tetex3 ubuntu install (was : installing tetex on ubuntu : basics log)
Hi everybody, I still have pbs for this (begin to be) hard to achieve task (compared of unziping mswincontext.zip on a :\C drive...) 1) I can't succed in adding executables to the path, with my various tryies, here is my .bash_profile : if [ -f ~/.bashrc ]; then source ~/.bashrc fi export PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:/usr/local/teTeX/bin/i686-pc-linux-gnu:/usr/local/teTeX/bin/i686-pc-linux-gnu:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games 2) emacs+ auctex nor scite (installed before : maybe a reinstall ?) are not context aware, so I can only texexec via the terminal 2) is texmfstart working on linux ? PS : when everything will be fine, (tetex3 install, same .pdf results between mswincontext and tetex3, scite linux integration (hard to change editor now), i'll add this to ubuntu wiki section TIA, olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Re: installing tetex on ubuntu : basics log
Le Sat, 03 Dec 2005 11:12:39 +0100, VnPenguin a écrit : On 12/2/05, olivier Turlier [EMAIL PROTECTED] wrote: The command # gzip -dc tetex-texmf.tar.gz \| (umask 0; cd /usr/local/teTeX/share/texmf-dist;tar xvf -) was impossible : bash: syntax error near unexpected token `(' I've tried , as a blind experiment : remove parenthesis, umask 022, remove \, but still same kind of syntax error. With GNU tar : # cd /usr/local/teTeX/share/texmf-dist # tar xvzf /path/to/tetex-texmf.tar.gz It's what I've done (see begin of thread, after shit happens ...) Thanks -- olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] installing tetex on ubuntu : basics log
Hi everybody, Starting to try installing correctly tetex3 on ubuntu, I wanted to ask tons of questions. While formatting this mail, I've succeed in installing tetex3. Maybe what follows can be worth fore somebody more nbie than me (is that possible?), or for a pre-beginner doc. Following http://wiki.contextgarden.net/TeTeX_3.0_installation and beginning of http://tug.org/teTeX/tetex-src/QuickInstall, i've : dwld * tetex-src.tar.gz tetex-texmf.tar.gz sudo mkdir -p /usr/local/teTeX/share/texmf sudo mkdir -p /usr/local/teTeX/share/texmf-dist SHIT HAPPENS HERE : it's like i'm missing some basic commands, because if I type what next, term conplains : gzip -dc tetex-texmf.tar.gz \| (umask 0; cd /usr/local/teTeX/share/texmf-dist; tar xvf -) My guess is cd /usr/local/teTeX/share/texmf-dist sudo tar xvf /home/olivier/dl/tetex-texmf.tar.gz sudo tar xvf /home/olivier/dl/tetex-src.tar.gz cd tetex-src-3.0/ sudo bash (if not, term complains about configure.log) ./configure --prefix=/usr/local/teTeX configure.log make world world.log (quite long) exit (from root) cd ~ sudo vim .bash_profile add to it : PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH; export PATH texexec --version : not working, so PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH; export PATH texexec --version TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2005.12.2 mes: english total run time : 1 seconds texconfig conf === version information == teTeX-src release: 3.0 teTeX-texmf release: 3.0 binaries found by searching $PATH === PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games kpsewhich: /usr/local/teTeX/bin/i686-pc-linux-gnu/kpsewhich updmap: /usr/local/teTeX/bin/i686-pc-linux-gnu/updmap fmtutil: /usr/local/teTeX/bin/i686-pc-linux-gnu/fmtutil texconfig: /usr/local/teTeX/bin/i686-pc-linux-gnu/texconfig tex: /usr/local/teTeX/bin/i686-pc-linux-gnu/tex pdfetex: /usr/local/teTeX/bin/i686-pc-linux-gnu/pdfetex mktexpk: /usr/local/teTeX/bin/i686-pc-linux-gnu/mktexpk dvips: /usr/local/teTeX/bin/i686-pc-linux-gnu/dvips dvipdfm: /usr/local/teTeX/bin/i686-pc-linux-gnu/dvipdfm === active config files == /usr/local/teTeX/share/texmf-dist/dvipdfm/config/config /usr/local/teTeX/share/texmf-dist/dvips/config/config.ps /usr/local/teTeX/share/texmf-dist/tex/generic/config/pdftexconfig.tex /usr/local/teTeX/share/texmf-dist/web2c/mktex.cnf /usr/local/teTeX/share/texmf-dist/web2c/updmap.cfg /usr/local/teTeX/share/texmf/web2c/fmtutil.cnf /usr/local/teTeX/share/texmf/web2c/texmf.cnf XDvi: not found = font map files = psfonts.map: /usr/local/teTeX/share/texmf-var/fonts/map/dvips/updmap/psfonts.mappdftex.map: /usr/local/teTeX/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map ps2pk.map: /usr/local/teTeX/share/texmf-var/fonts/map/dvips/updmap/ps2pk.map dvipdfm.map: /usr/local/teTeX/share/texmf-var/fonts/map/dvipdfm/updmap/dvipdfm.map === kpathsea variables === TEXMFMAIN=/usr/local/teTeX/share/texmf TEXMFDIST=/usr/local/teTeX/share/texmf-dist TEXMFLOCAL=/usr/local/teTeX/share/texmf-local TEXMFSYSVAR=/usr/local/teTeX/share/texmf-var TEXMFSYSCONFIG=/usr/local/teTeX/share/texmf-config TEXMFVAR=/home/olivier/.texmf-var TEXMFCONFIG=/home/olivier/.texmf-config TEXMFHOME=/home/olivier/texmf VARTEXFONTS=/var/tmp/texfonts TEXMF={!!/home/olivier/.texmf-config,!!/home/olivier/.texmf-var,/home/olivier/texmf,!!/usr/local/teTeX/share/texmf-config,!!/usr/local/teTeX/share/texmf-var,!!/usr/local/teTeX/share/texmf,!!/usr/local/teTeX/share/texmf-local,!!/usr/local/teTeX/share/texmf-dist} SYSTEXMF=/usr/local/teTeX/share/texmf-local:/usr/local/teTeX/share/texmf:/usr/local/teTeX/share/texmf-dist TEXMFDBS={!!/home/olivier/.texmf-config,!!/home/olivier/.texmf-var,/home/olivier/texmf,!!/usr/local/teTeX/share/texmf-config,!!/usr/local/teTeX/share/texmf-var,!!/usr/local/teTeX/share/texmf,!!/usr/local/teTeX/share/texmf-local,!!/usr/local/teTeX/share/texmf-dist}:/var/tmp/texfonts WEB2C={!!/home/olivier/.texmf-config,!!/home/olivier/.texmf-var,/home/olivier/texmf,!!/usr/local/teTeX/share/texmf-config,!!/usr/local/teTeX/share/texmf-var,!!/usr/local/teTeX/share/texmf,!!/usr/local/teTeX/share/texmf-local,!!/usr/local/teTeX/share/texmf-dist}/web2c TEXPSHEADERS
[NTG-context] Re: installing tetex on ubuntu : basics log
Le Fri, 02 Dec 2005 19:36:55 +0100, Taco Hoekwater a écrit : olivier Turlier wrote: Hi everybody, Starting to try installing correctly tetex3 on ubuntu, I wanted to ask tons of questions. While formatting this mail, I've succeed in installing tetex3. Maybe what follows can be worth fore somebody more nbie than me (is that possible?), or for a pre-beginner doc. Following http://wiki.contextgarden.net/TeTeX_3.0_installation and beginning of http://tug.org/teTeX/tetex-src/QuickInstall, i've : dwld * tetex-src.tar.gz tetex-texmf.tar.gz sudo mkdir -p /usr/local/teTeX/share/texmf sudo mkdir -p /usr/local/teTeX/share/texmf-dist SHIT HAPPENS HERE : it's like i'm missing some basic commands, because if I type what next, term conplains : gzip -dc tetex-texmf.tar.gz \| (umask 0; cd /usr/local/teTeX/share/texmf-dist; tar xvf -) Can you try to discover what command is missing? (That is interesting information for Thomas Esser as well) Cheers, Taco The command # gzip -dc tetex-texmf.tar.gz \| (umask 0; cd /usr/local/teTeX/share/texmf-dist;tar xvf -) was impossible : bash: syntax error near unexpected token `(' I've tried , as a blind experiment : remove parenthesis, umask 022, remove \, but still same kind of syntax error. Will try to add this experience to ubuntu section, I've done the same install @t home, everything was fine till to the end of the tetex3 installation page. I was only obliged to install twice cont-tmf.zip, because I was not seing the line : used engineformatpath : /usr/local/teTeX/share/texmf-config/web2c/pdfetex/ (notice difference of paths from wiki and mine) echo $PATH My only remaining pb is adding *tex* executables to the path. I've tried several ways with no success, and emacs nor scite are tex aware : $echo $SHELL : /bin/bash so :$vim .bash_profile and add : PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH; export PATH on top of the file + reboot texlive 2005 doc method : $touch .profile $ echo export PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH .profile $source .profile redone the same for .bash_profile will try to do it as root. I can only compile in a terminal, if I've typed PATH=/usr/local/teTeX/bin/i686-pc-linux-gnu:$PATH; export PATH before in the same session. What a pity ! Thanks a lot, Taco, for all your good info -- olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tetex or texlive on linux
Hi everybody, I'm going to install context on a linux box (ubuntu 5.10). 1) I wish to hear texnicians (rather than aficionados) words on wich tex distro fit best for mainly context use, on fonts optimisation, for exemple, etc. 2) is informations on contextgarden wiki are still uptodate for tetex install ? TIA -- Olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beginners manual
Quoting Hans Hagen : -- was [EMAIL PROTECTED] on Nov 21, 2005 at 11:03:49 -- as well as: - who will participate (in translation) - how to deal with localization (maybe dedicated language related chapters) I'll be glad to help for the french translation. By the way, what about the translation of the context core? Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: ntg-context Digest, Vol 16, Issue 60
1. Re: learning path (Mojca Miklavec) -- Message: 1 Date: Sat, 29 Oct 2005 00:31:33 +0200 From: Mojca Miklavec [EMAIL PROTECTED] Subject: Re: [NTG-context] learning path To: ntg ntg-context@ntg.nl Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 olivier Turlier wrote: Hi everybody, I wish to set up kind of a learning path (= pedagogic progression bar, like in http://www.dokeos.com/scorm_compliant_course_content.php) /.../ Sorry for not being clear enough. learning path is an acronym I've found while using Dokeos elearning platform, as an equivalent to a course i guess. For creating a course/learning path you assemble differents documents in a l.p.. When the alumni/trainee reads this course, he will be able what he have to read next after the fisrt doc, and so on. I've made a graphic capture of the webpage for showing what elements are making a learning path in the Dokeos vision : list of doc allready readen, docs to read, progression bar, plus the breadcrumb trail; for lists of already learnt documents: you can make a list of chapters/sections/subsections somewhere on the page if you have enough place. If you would like to get the chapter/section/subsection name, you can get them with something like \getmarking[chapter] $$ \getmarking[section] $$ \getmarking[subsection] Perhaps some ifs are missing to check if a section/subsection is defined, but someone else has to help you with it. i don't want to put so much stuff in the pdfs made wit Context(apart putting an A4 text on an A3 page!) because i keep a printable A4 format for my courses, even i there interaction in it, for screen usage. I'm not sure if I understood it properly, but if you need two different versions of your documents with the same content, but different layout, you can use modes (http://wiki.contextgarden.net/Modes). So i wish to have only vertical progression bars + percentage in the inner margin. s-pre-01 original style show a bottom interaction bar filled with pagenumbers drawn as little rectangles. Maybe it's possible to draw a continuous bar with metapost, but for percentage ? Ideally, i wish to have 2 progression bars : one for project progression and second for product prog. How would you calculate the project progression? The example below calculates the percentage out of the number of pages in the current document. Here's an example how to make an extremely simple and ugly progression bar at the bottom of the page. Take a look into the .mp file produced. You'll find many other variables thay you may use to position your progression bar properly. \defineoverlay [ProgressBar A] [\useMPgraphic{ProgressBarA}] \setupbackgrounds [text] [background={ProgressBar A}] \startuseMPgraphic{ProgressBarA} barW = 5cm; barH = .7cm; StartPage; fill unitsquare xyscaled(barW*(PageNumber/NOfPages),barH) withcolor .625red; draw unitsquare xyscaled(barW,barH); label.rt(textext($ decimal(round(100*PageNumber/NOfPages)) \,\%$), (barW,.5barH)); currentpicture := currentpicture shifted (LeftMarginWidth+LeftMarginDistance,2cm); StopPage; \stopuseMPgraphic \starttext first page\page second page\page third page \stoptext I would suggest you to get familiar with metapost/metafun (learning metapost by doing, the metapost manual, metafun manual, ...) if you aren't yet. It's a simple and great programming/drawing language and you can do amazing things with it. Mojca PS: just a note. Trying to execute the code written above under MikTeX (on the old ;) ConTeXt version, 2005.08.31) leads to distrous results and nothing worked as expected. It claims \loadfontfileoncetrue to be undefined command, it complains about file endings (it doesn't create .mpx files, so the label(textext ...) doesn't work) ... and so on. It may be that something is wrongly configured here, but I'm glad that I'm able to use the minimal ConTeXt distr. as an alternative when something fails under MikTeX. Hi Mojca, Thanks a lot for your mp code, I got what i want but rightnow, I don't know how to use it exactly, maybe as follows attached (try to display a general progression thru advancement of each courses, and show on the same pane (inner margin)), list of each chapters. I'll try to cook a minimal but working example, as I got -- in a messy way -- almost everything for bring this new layout to life. -- Olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mini-survey: What do you do with ConTeXt?
What do you do with ConTeXT? I started informatic at 33 when coming back to studies : 2 years later i've done my thesis with latex (took me 2.5 years!). Now i try to teach buiding technics and design, with the help of paper and electronic courses made with Context. Hopefully, my boss doesn't know that it took me sometimes 2 days for writing a one morning course! I must recognise that sometimes I think of having a good dtp software, but after some test, I come back to Context. In the next decades, I'll try to succeed in quizz making and/or nice looking book. I wish to meet people using Context one day. Thanks Hans and all others on the list . -- Olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: strange (?) exporting from pdf
Henning Hraban Ramm wrote: I'm not a XML guru (never tried XML with ConTeXt), but I guess if you use a XML format like DocBook (or even OpenOffice's) there'd be a ready-to-use way for RTF. Thanks a lot, I was in fact investigating OO. If you make up something useful from OpenDocumentFormat (or OOo's old format), please share it – I guess an OOo to ConTeXt converter would help some people. Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) There is an exporter from OO to latex XHTML, maintained by henrik Jensen : writer2latex (http://www.hj-gym.dk/~hj/writer2latex/). I've asked him if he could add context export, but he have no time to do it right now. So if someone is willing to ... Regards -- olivier Turlier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Getting icelandic letters (eth and thorn) to work.
Quoting Hans Hagen : -- was [EMAIL PROTECTED] on Oct 18, 2005 at 04:51:44 -- ??? wrote: Hello, I installed teTeX manually following the instructions at http://wiki.contextgarden.net/TeTeX_3.0_installation and this works now! It's strange though that such an old version of this software comes with teTeX in the Ubuntu (debian) packages. has to do with the definition of 'beta' and 'stable' and such; form the trafic on the tex live list i conclude that debian is in the process of getting tex packages more up to date There are not in the official distrib yet, but the TeXlive based packages available at http://www.tug.org/texlive/Debian/ are very great and up to date. In particular they provide This is pdfeTeX, Version 3.141592-1.30.2-2.2 (Web2C 7.5.5) TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 Instructions for install at http://www.tug.org/texlive/debian.html Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Debian Install
Quoting K. David Prince : -- was [EMAIL PROTECTED] on Oct 14, 2005 at 01:35:57 -- jaz:~# texexec --version TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2005.10.14 mes: english total run time : 2 seconds It's slightly outdated, I think, but you might not care... jaz:~# kpsewhich texmf.cnf /usr/share/texmf/web2c/texmf.cnf jaz:~# kpsewhich context.tex /usr/share/texmf/tex/context/base/context.tex My concern is with the results from the kpsewhich command. I'm not getting: /usr/local/teTeX/share/texmf/web2c/texmf.cnf and /usr/local/teTeX/share/texmf-dist/tex/context/base/context.tex respectively. That's fine! When you install official packages in Debian, it goes into /usr whereas the /usr/local is for your quick and dirty installs. By the way, that's why it was a good idea to purge previous tetex packages you had like you did. Actually, the file texmf.cnf should be located at /etc/texmf/ like all the config files for the tetex distrib (and I assume the /usr/share/texmf/web2c is just a link from there). Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Debian Install
Quoting Hans Hagen : -- was [EMAIL PROTECTED] on Oct 15, 2005 at 01:54:28 -- Olivier wrote: Actually, the file texmf.cnf should be located at /etc/texmf/ like all the config files for the tetex distrib (and I assume the /usr/share/texmf/web2c is just a link from there). actually, moving all such files to etc is a bad idea; if etc really wants that file there (maybe under /etc/web2c), best make a symlink from there to the formal place tex tree; makes updating easier; a lot of effort goes into making the tex tree clean and self contained, so moving files outside the tree is a bad idea. I understand some people may have different views. I was just trying to tell the way it is done in the Debian GNU/Linux system. There is a policy about TeX stuff location inside the system which is described in the Debian TeX policy here: http://people.debian.org/~frank/Debian-TeX-Policy This includes as you can read in the first paragraph on config: The central configuration file for TeX applications is /etc/texmf/texmf.cnf, the central font configuration file is /var/lib/texmf/web2c/updmap.cfg, the central language/hyphenation configuration /var/lib/texmf/tex/generic/config/language.dat, and format generation is determinded by /var/lib/texmf/web2c/fmtutil.cnf. All four files are generated by configuration update programs from configuration files in subdirectories of /etc/texmf. That's how it is, and was'nt involved in the making of this policy :) The original poster was asking for the normal setting in his Debian system and I believe it is correct. Moreover, it is always a bad idea to move files provided by packages: I know you are providing a sync mechanism for conTeXt but you'll certainly understand that doing this for every set of program in a system is something a sysadmin does'nt want to go into, and I guess that's where packaging system originated ;) Cheers, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Index
Hi, is there a mechanism so that on is able to say \index[start from here]{great+topic} % we are on p3 blabla much material \index[stop there]{great+topic} % we are on p7 and the index will advertise the topic as great topic 3-7 Of course I don't want to put an \index at every page (I don't even know the page break when looking at the source file ;) This feature is especially nice when defining a concept in a manual. Many thanks in advance, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Index
Quoting Thomas A. Schmitz : -- was [EMAIL PROTECTED] on Oct 16, 2005 at 12:11:31 -- In theory, you can say \startregister[index]{great+topic} and \stopregister[index]{great+topic} Many thanks Thomas, that's what I was looking for :)) and this will do what you want. However, this is one of several bugs in the index module of ConTeXt: this will print just this range and gobble all other entries in the index for great/topic. You're right, a quick test demonstrated the bug. However, the .tui contained r f {index} {108} {} {great+topic} {2--0-9-1-1-0-0-0--101} {111} r t {index} {109} {} {great+topic} {2--0-9-1-1-0-0-0--102} {112} c \listentry{subsubsection}{110}{}{A section}{2--0-9-1-2-0-0-0--102}{112} c \mainreference{}{eq:aneq}{2--0-9-1-2-0-0-0--102}{112}{37} r e {index} {111} {} {great+topic} {2--0-9-1-2-0-0-0--103} {113} and the .tuo % % TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 / Registers % \registerentry{index}{a} \registerentrya{index}{astonishing} \registerentryb{index}{bug} \registerpage{index}{,}{113}{2--0-9-1-3-0-0-0--103}{113} \registerentry{index}{g} \registerentrya{index}{great} \registerentryb{index}{topic} \registerfrom{index}{,}{108}{2--0-9-1-1-0-0-0--101}{111} \registerpage{index}{,}{111}{2--0-9-1-2-0-0-0--103}{113} \registerto{index}{,}{109}{2--0-9-1-1-0-0-0--102}{112} When swapping the two last lines in the .tuo and running texexec --once make it print the index great topic 101-102, 103 which is not that nice (should have been merged into 101-103), but recovered the missing file. In the texutil script there seems to be only sorting on entries' labels and no further sorting with the page number because it sorts this string join($JOIN,$Class,$LCKey,$Key,$Entry,$TextHow,$RegStatus, $RealPageNumber,$Location,$Page,$PageHow,$SeeToo) What about using a hash instead of a string to handle the register entries' information so that it will be easier to handle the page ranges after having sorted the labels? I wrote a note to the list about these bugs about a week ago, but there were no replies. I guess if there are two of us and we yell loud enough, Hans will hear us eventually :-) I'm with you :)) By the way, this may benefit Taco's bibmodule when implementing the backtracking referencing mechanism... Greetings, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Q: http://wiki.contextgarden.net/Thumb_index
Quoting Alexander Lazic : -- was [EMAIL PROTECTED] on Oct 01, 2005 at 11:02:39PM -- I don't have found a debian package for this therefore i have used the zipfile from: http://www.pragma-ade.com/context/current/cont-lmt.zip This will work but mess the Debian packaging :( One solution for this specific issue discussed earlier on this mailing list is to save a copy of /usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc under the name ec-lm.enc in a local tree like /usr/local/share/texmf or so. Sorry for this late answer. Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Q: http://wiki.contextgarden.net/Thumb_index
Quoting Alexander Lazic : -- was [EMAIL PROTECTED] on Sep 27, 2005 at 08:10:43AM -- On Die 27.09.2005 07:03, VnPenguin wrote: On 9/27/05, Alexander Lazic [EMAIL PROTECTED] wrote: I have used the code fro: http://wiki.contextgarden.net/Thumb_index TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002 Your ConTeXt and pdfetex are TOO old. Maybe you need update them. I use debian unstable/testing an have assume that this 'version' of debian use the current stable version of the programs. So you may be interested in a packaging of the TeXlive for Debian GNU/Linux: http://www.tug.org/texlive/debian.html Greetings, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Quoting Adam Lindsay : -- was [EMAIL PROTECTED] on Aug 31, 2005 at 11:29:56PM -- log is typeset in euler, still, with the default settings. You're perfectly right. However, I use to typeset maths functions in the text font, this is why I'm trying to replace euler a way or another. Maths functions are typeset in the concrete maths book for instance (see p 107 or p 111 if you have one) with rm being concrete. You must be using a different setting still. So you're right; This one shows why log isn't typeset in euler but with the serif one \def\mfunction#1% {\mathchoice {\hbox{\rm \tf #1}} {\hbox{\rm \tf #1}} {\hbox{\rm \tfx #1}} {\hbox{\rm \tfxx #1}}} This was my way of getting around the above mentioned issue. It also shows why maths functions and pure maths doesn't match anymore in scriptsize. And this is why I tried to tweak the bodyfontenvironment sizes... Now, if you get the picture and know the simple trick I missed at the very first begining... Anyway, many thanks for your answers, Olivier % output=pdftex \loadmapfile[original-ams-euler.map] \usetypescriptfile[type-tst] \usetypescript[MyFnt] \switchtobodyfont[MyFnt,11.6pt] \def\mfunction#1% {\mathchoice {\hbox{\rm \tf #1}} {\hbox{\rm \tf #1}} {\hbox{\rm \tfx #1}} {\hbox{\rm \tfxx #1}}} \starttext The complexity $O(n^{n\log{n}})$ is nothing compared with the time spend on resolving font issues. \stoptext \loadmapfile[original-ams-euler.map] \starttypescript [MyFnt] \definetypeface [MyFnt] [rm] [serif] [computer-modern] [default] [encoding=ec] \definetypeface [MyFnt] [mm] [math] [euler] [default] [encoding=default] \stoptypescript ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Relative font scaling
Hi, I'm experiencing issues with rscale. When using: \starttypescript [MyFnt] \definetypeface [MyFnt] [rm] [serif] [rfont] [default] [encoding=ec] \definetypeface [MyFnt] [mm] [math] [mfont] [default] [rscale=0.99,encoding=default] \definetypeface [MyFnt] [tt] [mono] [tfont] [default] [rscale=0.1,encoding=texnansi] \stoptypescript everything works as expected (text font is indeed rfont, math font is indeed mfont, tt font is indeed tfont, and moreover the math font is correctly rscaled) but the tt font isn't rscaled at all. Any idea where the issue might come from? Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Quoting Hans Hagen : -- was [EMAIL PROTECTED] on Aug 31, 2005 at 05:53:45PM -- Olivier wrote: Hi, I'm experiencing issues with rscale. When using: \starttypescript [MyFnt] \definetypeface [MyFnt] [rm] [serif] [rfont] [default] [encoding=ec] \definetypeface [MyFnt] [mm] [math] [mfont] [default] [rscale=0.99,encoding=default] \definetypeface [MyFnt] [tt] [mono] [tfont] [default] [rscale=0.1,encoding=texnansi] \stoptypescript everything works as expected (text font is indeed rfont, math font is indeed mfont, tt font is indeed tfont, and moreover the math font is correctly rscaled) but the tt font isn't rscaled at all. Any idea where the issue might come from? how about trying .55 or so? .1 is pretty small all right, I used .98 first, then .5 and now .1 just in case :) Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Quoting Adam Lindsay : -- was [EMAIL PROTECTED] on Aug 31, 2005 at 04:44:35PM -- Olivier said this at Wed, 31 Aug 2005 16:53:56 +0200: moreover the math font is correctly rscaled) but the tt font isn't rscaled at all. Any idea where the issue might come from? I suspect it's in your local specifics. As we don't have access to your rfont/mfont/tfont typescripts, \starttypescript [mono] [my-officina] [texnansi] \definefontsynonym [MY-Officina][texnansi-LIGA-KERN-OfficinaSerifStd-Book] [encoding=texnansi] \stoptypescript \starttypescript [mono] [my-officina] [name] \definefontsynonym [Mono][MY-Officina] \definefontsynonym [MonoBold][Mono] \definefontsynonym [MonoItalic] [Mono] \definefontsynonym [MonoSlanted] [Mono] \definefontsynonym [MonoBoldItalic] [Mono] \definefontsynonym [MonoBoldSlanted] [Mono] \definefontsynonym [MonoCaps][Mono] \stoptypescript \starttypescript [MyFnt] \definetypeface [MyFnt] [rm] [serif] [rfont] [default][encoding=ec] \definetypeface [MyFnt] [mm] [math] [euler] [default][rscale=0.99,encoding=default] \definetypeface [MyFnt] [tt] [mono] [my-officina] [default][rscale=3,encoding=texnansi] \stoptypescript I used texfont to generate the fonts tfm, map file and vf via texfont --fo=. --ma --in --ve=linotype --co=officina --lcdf --pre --va=liga,kern It's ok since I get the correct font, just it isn't rscaled. THe mechanism seems to work well here however since the euler font is correctly rscaled. The information is all I put in the typescript for the tt font. Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
I got the guilty lines: \definebodyfont[13pt] \definebodyfont[11.6pt] \definebodyfont[8.3pt] \definebodyfont[8.2pt] \definebodyfont[6pt] \definebodyfont[5.8pt] \setupbodyfontenvironment[11.6pt] [text=11.6pt, script=8.3pt, scriptscript=5.8pt, x=8.2pt, xx=5.8pt, big=13pt, small=6pt] at the very end of the typescript file. Sorry for not having strip down to the minimal buggy file before posting... So how to setup such relative font sizes for a specific family say \rm and then rscale the other one (mm, tt, ss) so that the x-heights match? Do I have to put such sizes inside the typescripts of all families? Thanks Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Relative font scaling
Actually, those lines \definebodyfont[13pt] \definebodyfont[11.6pt] \definebodyfont[8.3pt] \definebodyfont[8.2pt] \definebodyfont[6pt] \definebodyfont[5.8pt] \setupbodyfontenvironment[11.6pt] [text=11.6pt, script=8.3pt, scriptscript=5.8pt, x=8.2pt, xx=5.8pt, big=13pt, small=6pt] originated from the following issue: When using euler fonts with a text serif font let's call it myrm, myrm has a bigger x-height than euler's. So I used \definetypeface [MyFnt] [mm] [math] [euler] [default] [rscale=0.99,encoding=default] which did the trick perfectly well. But then, say we would like to typeset something like $n^{n\log{n}}$ Of course, you would expect the x-height of the two fonts in the exponent to be in the same ratio as well... but this is not the case! Hence the need to tweak the bodyfont sizes as shown above. Is this a bug, or something I didn't get? Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bug with active :!;?
Quoting Hans Hagen Outside : -- was [EMAIL PROTECTED] on Aug 29, 2005 at 06:50:51PM -- With the next pdftex we will not need this active mess any more since pre-char spacing will be supported natively; by that time we need to adapt the ffr files This is a good news indeed. By the way, does this include the possibility to treat the character in different ways depending on the current mode (math/text)? Because, in the current setting, if you request for 3cm before `:' and then define a mathematical function $f : R \to Z$ you'll end up with a huuuge space between f and : which you certainly isn't what you want. Thanks for your answer, Olivier PS: Also the default definition in useencoding is .25em for :;?! I'm no typographical expert at all but I thought the standard is indeed .25em for ;?! but a normal space before `:' ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bug with active :!;?
Hi, Seems like the following crashes conTeXt: \useencoding [ffr] \mainlanguage[fr] \setupheadertexts[text][][][\setups{run:left}][] \startsetups run:left nothing \stopsetups \starttext Nothing special here \stoptext Of course one can live with this by renaming the tag. However, the bug will also occur in the \cite[Bob:A,Bob:B] commands from the bib module, and I assume in anything that deals with csnameS containing active colons... Strangely enough, the bug doesn't seem to occur in \placeformula[eq:A] Many thanks for hinting a fix, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] footnote twiks
Quoting Ciro Soto : -- was [EMAIL PROTECTED] on Aug 25, 2005 at 10:56:05PM -- Twik 1: My font is too slanted and the asterisk (*) is printed too close to the last word in the sentence. I would use {\/asdfasdf} instead of {asdfasdf}. At least this is the correction suggested in the TeXbook iirc. Example: Charles IV \footnote[]{asdfasdf} will print an asterisk touching the V letter. Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] footnote twiks
Quoting Ciro Soto : -- was [EMAIL PROTECTED] on Aug 26, 2005 at 05:55:06PM -- no,no. My problem is with the V that appears in the text, not in the footnote! Ooops I'm sorry for this. What about tweaking the space in the symbol definition like with \defineconversion[slstarred][\hskip3pt*] instead of \defineconversion[starred][*] I admit it's kind of a bad solution since you would have to switch between slstarred and starred depending on the type of the text font. But if you are using the footnote just for slanted text... Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setuplist
Answering to myself. Seems like the alternative f is more sensitive than the command one~: \def\MyCommand#1#2#3{\framed[width=\hsize]{use#1#2#3aswanted}} \setuplist[chapter][alternative=command,command=\MyCommand] is enough to get rid of the indentation issue. Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setuplist
Hi, Does anyone know about a way to reset the state in a combined list. Let me illustrate with an example: \setuplist[chapter][alternative=f,margin=0cm,distance=0cm,before=,after=] \setuplist[section][alternative=b,style=bold,width=5mm,margin=0mm,distance=0mm] \setuplist[subsection][alternative=c,style=normal,margin=5mm,width=7mm,distance=2mm] \chapter{A} % not indented in toc \section{1} \subsection{a} \section{2} \chapter{B} % indented as a section in toc \section{1} \subsection{a} \chapter{C} % indented as a subsection Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Uppercase in headers
Hi, I would like to set the headers all caps, but not the title of the section in the body text. This setting %\setupheader[text][style={\WORD}] % - does not work \setupheadertexts[text][\setups{run:left}][][][\setups{run:right}] \startsetups run:left \CapHeadFont\pagenumber\qquad\WORD{\getmarking[section]} \stopsetups eats the section title in the headers. What should I do to get it right? Thanks, Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Uppercase in headers
Quoting Patrick Gundlach : -- was [EMAIL PROTECTED] on Aug 18, 2005 at 12:26:06AM -- Once Olivier tries this out, perhaps he could add a wiki page? Done there: http://contextgarden.net/Headers_and_Footers Olivier ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: try compiling Tex showcase source : program_sample.tex
Christopher Creutzig wrote: olivier Turlier wrote: I've tryed to compile whithout success. The files are deliberately incomplete. ...generate the output, is more than a simple texexec. :-) Regards, Christopher Hi Christopher, I was trying to compile Program-sample.tex because I find the transparent white frame over the grey background very nice to see for a pure electronic pdf. In the same range, the vit Zyka font demo catalog (http://typokvitek.com/stormcontext/) push hard the limit of those transparent overlays that I'm still in quest to reproduce. Salutations -- Olivier TURLIER ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Pb compiling s-pre-61.tex
Hi, I've felt into same pb's trying to compile s-pre-61.tex directly from it's original source. As far I can see (just to the surface of the screen in fact) it's related to a specific font installed at Pragma, not available for everyone as is. if I replace or uncomment : \usetypescriptfile[type-ghz] \definetypeface[mainface][ss][sans][optima-nova][default][encoding=\defaultencoding] \setupbodyfont[mainface,ss,18pt] and put such general font switch like : \usetypescript [modern][\defaultencoding] \setupbodyfont[modern,ss,11pt] it compile without pbs. Your installation seems rather old Cordialement -- Olivier TURLIER Formation Métiers CRP La Rouguière 101 Bd des libérateurs 13367 MARSEILLE cedex 11 tel : 04 91 18 56 00 fax : 04 91 45 14 48 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] try compiling Tex showcase source : program_sample.tex
Hi contexperts, I've tryed to compile program-sample.tex, found after G.Wierda announcement, located at : http://tug.org/texshowcase/program_sample.tex, whithout success. I'm running winxp + mswincontext.zip (2005-03-16). Can you play with it? TIA for your answers -- Olivier TURLIER Formation Métiers CRP La Rouguière 101 Bd des libérateurs 13367 MARSEILLE cedex 11 tel : 04 91 18 56 00 fax : 04 91 45 14 48 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: How to insert a full page pdf
John R. Culleton wrote : I need to insert some example pages from one document into another. Both are 8.5 x 11. As a low end user, I've tryed numerous solutions, those ones below are working in evey cases for me, hope same for you : inserting all the 25 pages of a 25 pages pdf : \getfiguredimensions[25pages.pdf] \dorecurse{\noffigurepages}{\externalfigure[25pages.pdf][width=\textwidth,height=\textheight,offset=-1cm][page=\recurselevel]} inserting one (the 16th) page of a 25 pages pdf : \getfiguredimensions[25pages.pdf] {\externalfigure[25pages.pdf] [width=\textwidth,height=\textheight,offset=-1cm][page=16]} -- Olivier TURLIER Formation Métiers CRP La Rouguière 101 Bd des libérateurs 13367 MARSEILLE cedex 11 tel : 04 91 18 56 00 fax : 04 91 45 14 48 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mismatch context version when updating via rsync on XP
Hello contexers, I don't understand why, but if I update by rsync'ing, i still got an old version of Context. Below is what i do : doing (today) : cd C:\cwrsync rsync -r -v www.pragma-pod.com::mswin C:\mytex\usr\local\context\tex cd .. cd mytex\usr\local\context\tex setuptex texexec --make --alone --all adding shortcut path + scite thumbnail to : C:\mytex\cstart.bat when I launch Scite, when I check version, I got texexec --verbose TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 current path : C:/Documents and Settings/olivier/Local Settings/Temp locating ini file : kpsewhiching texexec.ini on scripts locating ini file : kpsewhiching texexec.ini elsewhere locating ini file : kpsewhiching texexec.rme on scripts locating ini file : not found by kpsewhich, using '.rme' file reading : c:\mytex\usr\local\context\tex\texmf-local/scripts/context/perl/texexec.rme setting : 'TeXShell' to 'tetex' for 'all' setting : 'UseEnginePath' to 'false' for 'all' setting : 'UsedInterfaces' to 'en nl metafun mptopdf' for 'all' setting : 'UserInterface' to 'en' for 'all' setting : 'TeXExecutable' to 'tex' for 'all' setting : 'MpExecutable' to 'mpost' for 'all' setting : 'MpToTeXExecutable' to 'mpto' for 'all' setting : 'DviToMpExecutable' to 'dvitomp' for 'all' setting : 'DviSpecialScript' to 'dvispec' for 'all' setting : 'MpFormat' to 'metafun' for 'all' setting : 'TeXFormatFlag' to '' for 'all' setting : 'MpFormatFlag' to '' for 'all' setting : 'TeXHashExecutable' to 'mktexlsr' for 'tetex' setting : 'TeXExecutable' to 'pdfetex' for 'tetex' setting : 'TeXVirginFlag' to '-ini' for 'tetex' setting : 'TeXPassString' to '-progname=context' for 'tetex' setting : 'TeXBatchFlag' to '-int=batchmode' for 'tetex' setting : 'TeXNonStopFlag' to '-int=nonstopmode' for 'tetex' setting : 'MpToTeXExecutable' to 'mpto' for 'tetex' setting : 'MpVirginFlag' to '-ini' for 'tetex' setting : 'MpPassString' to '-progname=mpost' for 'tetex' setting : 'MpBatchFlag' to '-int=batchmode' for 'tetex' setting : 'MpNonStopFlag' to '-int=nonstopmode' for 'tetex' setting : 'TeXVirginFlag' to '-ini -translate-file=natural.tcx' for 'tetex' setting : 'MpVirginFlag' to '-ini -translate-file=natural.tcx' for 'tetex' setting : 'TeXPassString' to '-progname=context -translate-file=natural.tcx' for 'tetex' setting : 'MpPassString' to '-progname=mpost -translate-file=natural.tcx' for 'tetex' used setting : TeXShell = tetex used setting : SetupPath = used setting : UserInterface = en used setting : UsedInterfaces = en nl metafun mptopdf used setting : TeXFontsPath = . used setting : MpExecutable = mpost used setting : MpToTeXExecutable = mpto used setting : DviToMpExecutable = dvitomp used setting : TeXProgramPath = used setting : TeXFormatPath = used setting : ConTeXtPath = used setting : TeXScriptsPath = used setting : TeXHashExecutable = mktexlsr used setting : TeXExecutable = pdfetex used setting : TeXVirginFlag = -ini -translate-file=natural.tcx used setting : TeXBatchFlag = -int=batchmode used setting : TeXNonStopFlag = -int=nonstopmode used setting : MpBatchFlag = -int=batchmode used setting : MpNonStopFlag = -int=nonstopmode used setting : TeXPassString = -progname=context -translate-file=natural.tcx used setting : TeXFormatFlag = used setting : MpFormatFlag = used setting : MpVirginFlag = -ini -translate-file=natural.tcx used setting : MpPassString = -progname=mpost -translate-file=natural.tcx used setting : MpFormat = metafun used setting : MpFormatPath = used setting : UseEnginePath = 0 used setting : FmtLanguage = used setting : FmtBodyFont = used setting : FmtResponse = used setting : TcXPath = used setting : SetFile = applications will use : c:\mytex\usr\local\context\tex\texmf-local/web2c/texmf.cnf generating format : not using fmtutil --help overview of all options and their values --help all all about all options --help short just the main options --help mode ... pdf all about a few options --help '*.pdf' all about options containing 'pdf' more info http://www.pragma-ade.com/general/manuals/mtexexec.pdf http://www.ntg.nl/mailman/listinfo/ntg-context total run time : 0 seconds Kpathsea released! As the deepness of my
[NTG-context] ReRe: mismatch context version when updating via rsync
those precooked installations (the minimals) are not updated in sync with the zips; [it takes quite a while on my not too fast laptop] Hans Ok, I understand better now. Having an uptodate version will push me to a manual install. Thanks for the answer -- Olivier TURLIER Formation Métiers CRP La Rouguière 101 Bd des libérateurs 13367 MARSEILLE cedex 11 tel : 04 91 18 56 00 fax : 04 91 45 14 48 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re:floats pb in a list
If you don't need automatic placing but in-place figures, don't use \place... Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net Thanks for your (logical)answer, it's working now when following your advice. -- Olivier TURLIER ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] floats pb in a list
Hi contexers, I try writing step by step howtos for Autocad courses. I've borrowed (one more time) Hans example code written around p83 in cont-eni.pdf for combined items, and rename definitions. I'm unable to get correct float placement in a such list, even with small figures. On each new page, the float move towards topleft, above it's anchor. Thanks for any answers. -- Olivier TURLIER %pb-howto.tex \setupoutput [pdftex] \useregime[il1] \enableregime[il1] \useencoding[ffr] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,10pt] \definepapersize [cours] [width=\dimexpr(\paperwidth-.05\paperwidth), height=\dimexpr(\paperheight-.05\paperheight)] \setuppapersize [cours] [A4] \setuplayout [top=6mm,topdistance=6mm, bottom=6mm,bottomdistance=18mm, topspace=18mm, height=263mm,%middle header=6mm,headerdistance=6mm, footer=6mm,footerdistance=18mm, bakspace=46mm,%cutspace=50mm, width=164mm,%middle leftmargin=22mm,leftmargindistance=4mm, leftedge=5mm,leftedgedistance=5mm, rightmargin=28mm,rightmargindistance=4mm, rightedge=6mm,rightedgedistance=5mm %,grid=yes ] % \setuptolerance [verytolerant,stretch] \setuppagenumbering[alternative=doublesided] % \setupfloats[location=middle] \definefloat [etape] [figures] \defineparagraphs [Etape] [n=2,rule=off,align=lohi] \setupparagraphs [Etape] [2] [width=.5\textwidth] \defineenumeration [Explication] [location=left,text=,width=3em,before=,after=] \starttext \chapter[]{One} Some introduction text \section[]{two} Some longer introduction text \section[]{three} \startEtape \startExplication \dorecurse{2}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{3}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{4}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{5}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{6}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{7}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] nice winxp sp2 blue screen if rsync
I've tryed using (is that natural?) rsync on win xp (for testing Hans method for updating Contex). It works smooth if you stay away from xp sp2. Otherwise, you get a blue screen complaining about memory pbs (error/non error tested twice, on 2 differents win$$box). -- Olivier TURLIER ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: accents in text included in Metapost chain
Hans Hagen wrote: olivier Turlier wrote: The goal is to only write once \quote{Question} in \type{\chapter[chap:ques]{Question}} for getting the same result than in the first page, or in below (\quote{shadowed} effect must only apply to text, not to header number). \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt] \setupcolors[state=start] \definefont[BigFontOne][RegularSlanted sa 3] \definefont[BigFontTwo][RegularSlanted sa 2] \definecolor[BigColorOne][r=.86,g=.850,b=.54] \definecolor[BigColorTwo][r=.43,g=.425,b=.27] \setuphead [chapter] [textcommand=\MyChapterText, color=BigColorTwo, style=\BigFontTwo] \def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}#1} \chapter[chap:ques]{Question} \chapter[chap:answ]{Answer} \stoptext it's up to you to submit it in the wiki Thanks a lot, it's working nicely. Who said that man cannot learn from each other ? Following your suggestion, i've send your clean code to contextgardenwiki in Sample documents/Sample macros/macro for chapters headers. Thanks again Hans. --- olivier Turlier ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: accents in text included in Metapost chain
Hans Hagen wrote: olivier Turlier wrote: The goal is to only write once \quote{Question} in \type{\chapter[chap:ques]{Question}} for getting the same result than in the first page, or in below (\quote{shadowed} effect must only apply to text, not to header number). \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt] \setupcolors[state=start] \definefont[BigFontOne][RegularSlanted sa 3] \definefont[BigFontTwo][RegularSlanted sa 2] \definecolor[BigColorOne][r=.86,g=.850,b=.54] \definecolor[BigColorTwo][r=.43,g=.425,b=.27] \setuphead [chapter] [textcommand=\MyChapterText, color=BigColorTwo, style=\BigFontTwo] \def\MyChapterText#1{\rlap{\BigFontOne\BigColorOne#1}#1} \chapter[chap:ques]{Question} \chapter[chap:answ]{Answer} \stoptext it's up to you to submit it in the wiki Thanks a lot, it's working nicely. Who said that man cannot learn from each other ? Following your suggestion, i've send your clean code to contextgardenwiki in Sample documents/Sample macros/macro for chapters headers. Thanks again Hans. --- olivier Turlier ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: pb reset table setup
you need to use grouping: \start \stop an alternative is to move the \setupTABLE to directly after \bTABLE[...] Thank you Hans for your answer. I've found grouping this morning by enclosing a whole table between { }. -- olivier Turlier ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] pb reset table setup
Hi contexers, I got a recurrent problem with tables : the setup of the first one affect following other and different setup tables. See an exemple below : \usemodule[units] \useregime[il1] \enableregime[il1] \useencoding[ffr] \mainlanguage[fr] \setupcolors[state=start] \definecolor[Grisbleu] [r=0.91,g=0.91,b=0.93] \setupitemize[each][headstyle=\bfa] \starttext \chapter[chapreponses]{Answers} \section[]{baobab baobab baobab \quote{baobabbaobabbaobab}} \startitemize[A] \head roots \setupTABLE[row][1][style=\bfxx,frame=on,align={middle,lohi}] \setupTABLE[1][5][style=\bfx,align=middle] \setupTABLE[2][5][style=\bf,background=color,backgroundcolor=Grisbleu,align={middle,lohi}] \bTABLE[align=lohi,width=broad,style=tfxx] \bTR \bTD Condition \eTD \bTD Vérification \eTD\eTR \bTR \bTD maison non climatisée \eTD \bTD OK \eTD\eTR \bTR \bTD dont la surface habitable est inférieure à 220 m\high{2} \eTD \bTD OK \eTD\eTR \bTR \bTD dont la surface des portes et fenêtres est inférieure à 25 \% de la surface habitable \eTD \bTD OK \eTD\eTR \bTR \bTD Conclusion : \eTD \bTD OK \eTD\eTR \eTABLE \head Isolation of soils, walls and ceilings % \resetTABLE %-- NOT WORKING !!! \setupTABLE[row][1][style=\bfxx,frame=on,align={middle,lohi}] \setupTABLE[c][1][align={middle,lohi}] \setupTABLE[c][3][width=.5\textwidth] \setupTABLE[1][8][style=\bfx,align=middle] \setupTABLE[5][8][style=\bf,background=color,backgroundcolor=Grisbleu,align={middle,lohi}] \bTABLE[align=lohi,width=broad,style=tfxx] \bTR \bTD Nivel \eTD \bTD Paroi \eTD \bTD Insulation system \eTD \bTD Value {\bf R} \eTD\bTD goto page \dots \eTD\eTR \bTR \bTD [nr=3] R-1 \eTD \bTD sol \eTD \bTD floormate 200 ({\sc Isover}) ep. 60 sous dallage BA\eTD \bTD 2 \eTD \bTD 40 (cours)\eTD\eTR \bTR \bTD mur \eTD\bTD néant \eTD\bTD \eTD \bTD \eTD\eTR \bTR\bTD plafond \eTD \bTD entrevous polystyrène rectofibre ({\sc Rector}) \eTD \bTD K = 0,31 $\dashrightarrow$ R = 3,22, feu : M1\eTD \bTD 41 (ctrl)\eTD\eTR \bTR \bTD [nr=3] R+0 \eTD \bTD sol \eTD \bTD dito plafond R-1 \eTD \bTD 2 \eTD \bTD 40 (cours)\eTD\eTR \bTR \bTD mur \eTD\bTD doublage Xtherm 32 (100+13) ({\sc Knauf})\eTD\bTD 3,15\eTD \bTD 8 (ctrl)\eTD\eTR \bTR\bTD plafond \eTD \bTD Laine verre IBR monocouche ({\sc Isover}) ep. 240 \eTD \bTD 6 \eTD \bTD 40 (cours)\eTD\eTR \bTR \bTD [nc=4] Nombre de points : \eTD \bTD 5 \eTD\eTR \eTABLE \head Ponts thermiques \startitemize[n] \item Ponts thermiques entre les murs extérieurs et les planchers \item dont la surface habitable est inférieure à 220 \Square\Meter \item dont la surface des portes et fenêtres est inférieure à 25 \% de la surface habitable \stopitemize \head \head \stopitemize \stoptext ù The unwanted setup is on the second table, on the c2-r5 cell (sol). What can I do ? Thanks for your answers. Hope you understand french for better reading ! -- olivier TURLIER ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] accents in funny frame
Hello Contexers, I play with the funny frame code given by Hans et al. How put accentuation (french) in the frame title ? I use latest context .iso image (ConTeXt ver. 2004.6.21 fmt: 2004.6.21 int: english mes: english) Below is the source (compiled with : texmfstart texexec.pl --autopdf --pdf funny-french-frame.tex): %funny-french-frame.tex \enableregime[il1] \useencoding[ffr] \mainlanguage[fr] \enableregime[windows] \setupindenting[medium] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,12pt] \setupcolors[state=start] % funny frame \startMPenvironment \enableregime[il1]% \useencoding[ffr] % \mainlanguage[fr] % not working \enableregime[windows]% \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,14pt] \stopMPenvironment % \startuseMPgraphic{FunnyFrame} %- white background, blue square frame % picture p; numeric w, h, o; % p:=textext.rt(\MPstring{FunnyFrame}); % w:=OverlayWidth; h:=OverlayHeight; o:=BodyFontSize; % p:=p shifted (2o,h-ypart center p); draw p; % drawoptions (withpen pencircle scaled 1pt withcolor .625blue); % draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p, h) ; % draw boundingbox p; % setbounds currentpicture to unitsquare xyscaled (w,h); % \stopuseMPgraphic \startuseMPgraphic{FunnyFrame} %-- grey background, red randomized frame picture p ; numeric o ; path a, b ; pair c ; p := textext.rt(\MPstring{FunnyFrame}) ; a := unitsquare xyscaled(OverlayWidth,OverlayHeight) ; o := BodyFontSize ; p := p shifted (2o,OverlayHeight+ypart center p) ; drawoptions (withpen pencircle scaled 1.5pt withcolor .625red) ; b := a randomized (o/2) ; fill b withcolor .95white ; draw b ; % color of main text c := center p ; c := b intersectionpoint (c shifted (0,-o)--c shifted(0,o)) ; p := p shifted (c-center p) ; b := (boundingbox p) randomized (o/4) ; fill b withcolor .90white ; draw b ; %- color of title draw p withcolor blue ; setbounds currentpicture to a ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame{\stopFunnyText} \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 3em {\ss\bf\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} %--- \setupheadertexts[\currentpage~/~\lastpage] \starttext \FrameTitle{Introduction } \StartFrame On présente tout ce qui a un rapport avec {\it l'origine} du stage \StopFrame \page \FrameTitle{Développement} %-- accent not working \StartFrame On présente tout le {\it déroulement} du stage, par groupe de tâches \StopFrame \page \FrameTitle{Conclusion} \StartFrame \startlines On {\it analyse} le stage point par point -- négatif et positif -- on {\it synthétise} l'ensemble des apports, et on entrevoit le {\it futur} professionnel {\it concrètement} \stoplines \StopFrame \page \stoptext - Thanks for your answer(s) -- olivier TURLIER ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] pdf 1.5 pb
Hi Contexers, I've used Acrobat 6 to import and create .pdfs for inclusion as images, not thinking about compatibility mode (set by default on acrobat 6 I suppose). When I try to texexec a .tex doc with such pdf inclusions, i get this output : Error: pdfetex (file ./pieces-graphiques-l.pdf): pdf inclusion: found pdf version 1.5, but at most version 1.4 allowed == Fatal error occurred, the output PDF file is not finished! My actual system (tetex+last context beta --thanks to Patrick Gundlach for his installcontext.sh script): pdfetex --version pdfeTeX (Web2C 7.4.5) 3.14159-1.10b-2.1 texexec --version TeXExec 4.3 - ConTeXt / PRAGMA ADE 1997-2004 texutil --version TeXUtil 8.2 - ConTeXt / PRAGMA ADE 1992-2004 Thanks for your answer -- Olivier TURLIER FM-CRP La Rouguière 101 Bd des libérateurs 13367 MARSEILLE cedex11 0(33)04 91 18 56 00 +0(33)04 91 45 14 48 [EMAIL PROTECTED] ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: ntg-context digest, Vol 1 #752 - 5 msgs
On Wed, 19 May 2004 12:00:16 +0200 [EMAIL PROTECTED] wrote: perl -npi.bak -e 's/%PDF-1.5/%PDF-1.4/;' *.pdf Yes it works. Thanks a lot! -- Olivier TURLIER FM-CRP La Rouguière 101 Bd des libérateurs 13367 MARSEILLE cedex11 0(33)04 91 18 56 00 +0(33)04 91 45 14 48 [EMAIL PROTECTED] ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Images
Le Wed, 12 May 2004 15:31:28 +0530, techw a écrit : Thanks for all your suggestions. I am capturing screenshots and saving them as .eps images using Jasc Paint Shop Pro 8. Hello, It seems that you're working on a Win$$ platform. If you can grab Snag-it somewhere, you'll be able to save your capturized images in a .png format, directly usable in Context. Salutations. olivier Turlier ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] diplayed centered equations
hi contexers I'm having pb trying to arrange aligned centered equations. When compiling for right %\eqalignno or left %\leqalign, no pb's. But contex is'n t happy with centered ones %\eqalign. Don't know how to solve this tiny but irritating pb. Here a minimal exemple : %working \placeformula[form:a-prime] \startformula a^{'} = \frac{1,05 \times N_{s}}{q_{s}} = \frac{1,05 \times 0,246}{0,15} = 1,722 \approx \inframed{1,75 m} \stopformula %working \placeformula[form:a-prime] \startformula \eqalignno{ %%or \leqalignno%% a^{'} = \frac{1,05 \times N_{s}}{q_{s}} \formulanumber[form:a-prime:a]{a} \cr = \frac{1,05 \times 0,246}{0,15} \formulanumber[form:a-prime:b]{b} \cr = 1,722 \approx \inframed{1,75 m} \formulanumber[form:a-prime:c]{c} \cr } \stopformula %not working \placeformula[form:a-prime] \startformula \eqalign{ %%or \leqalignno%% a^{'} = \frac{1,05 \times N_{s}}{q_{s}} \formulanumber[form:a-prime:a]{a} \cr = \frac{1,05 \times 0,246}{0,15} \formulanumber[form:a-prime:b]{b} \cr = 1,722 \approx \inframed{1,75 m} \formulanumber[form:a-prime:c]{c} \cr } \stopformula %not working \usemodule[nath] \placeformula \startgather f(x) = x \\ g(x) = x2 \\ h(x) = x3 \stopgather \stopformula Thanks for the answer Olivier ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Pb running ex-gui
Hans Hagen wrote: At 09:50 23/01/2004, you wrote: Hi ConTeXers, I've tryed to play with with ex-gui.pdf but not get any results. does c:\pro . work? No, any of cmd tested send an error message : ruby exampler --continue --setuppath=C:\Program Files\TeXlive\texmf\context\ruby\examplap\scripts %gives : ruby: No such file or directory -- exampler (LoadError) ruby -CC:\Program Files\TeXlive\texmf\context\ruby\examplap\scripts --continue exampler %gives : ruby: Can't chdir to C:\Program (fatal) ruby -CC:\Program_Files\TeXlive\texmf\context\ruby\examplap\scripts --continue exampler%gives : ruby: Can't chdir to C:\Program_Files\TeXlive\texmf\context\ruby\examplap\scripts (fatal) Answers of Ruby are leading me towards a namespace problem, but it's just a quick supposition hm, can you try to run the file from a web browser? Hans After launching contex server on 8061 port by executing exampler.rb from its location, nor the acrobat or web (IE6 or Mozilla 1.6) opened examplap+combine.pdf give other answer than : invalid dialog. Thanks for the answer Olivier ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] educational quiz check-in boxes
Hi ConTeXers, Does anybody can show me a minimal but complete example of a quiz, using java, since I feel too old (big/wrong excuse!) for trying to understand javascript. My aim is to introduce a short auto-evaluation test after a theorical course + examples, in an interactive form (no server side storage of the results), in the way of acrotex package. I will share it (in french!), once working, on the the ConTeX ploned site. Thanks a lot. olivier Turlier ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context