Re: [NTG-context] Zig-Zag lines in FLOWcharts
Hi to all, Did anyone know a way to trace some zig-zag lines/arrows in FLOWcharts? My intention is to make some genograms. Thanks a lot Jam ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Hitting 'e' for error in Scite?
Hans et all, How do I set up scite that comes with context so that when I hit 'e' in the console window, I am taken to the line of the error in Scite? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] updating context on Ubuntu 6.06
Here's what I had to do to update to the latest Context (2006.07.14) on Ubuntu 6.06 (i.e. 2006.06) distribution of Linux. It comes with tetex 3.0. The commands below assume a working Context already installed in your ~/texmf, and the commands use bash syntax, which is almost like 'sh' but has the ~ idiom for $HOME. Beforehand I had been using the 2006.04.17 beta and had put off upgrading because I was scared of the change from perl texexec to ruby texexec. 1. (optional cleanup) Delete the old Context-installed files in ~/texmf/. This step is optional, but I do it so that I can track the versions using an SCM. I use mercurial (hg is the program name), but it could have been svn, cvs, etc. The command (done in ~/texmf): hg locate -0 | xargs rm -0 2. (download, unpack) Download cont-tmf.zip, cont-fnt.zip, and cont-img.zip. Probably you need only the first zip file, but I'm reporting exactly what I did just in case any substep is the crucial one. The command: cd /tmp/ # no need to save them long-term wget http://www.pragma-ade.nl/context/current/cont-{tmf,fnt,img}.zip Unzip the zip archives into ~/texmf, appending the giant list of files to /tmp/a.log: cd ~/texmf for f in /tmp/cont-{tmf,fnt,img}.zip ; do unzip $f /tmp/a.log ;done 3. (stubs, part 1) Create ~/bin/texmfstart containing two lines: #!/bin/bash ~/texmf/scripts/context/ruby/texmfstart.rb $@ Then make it executable with chmod +x ~/bin/texmfstart From what I can tell from reading the ruby code, using the full path to texmfstart.rb helps texmfstart.rb find the other .rb programs, like texexec.rb. (texmfstart.rb uses the path it was called with and looks in that directory, but Hans can correct me if I'm wrong here.) 4. (stubs, part 2) texmfstart will run texexec, so create texexec as a symlink to ~/texmf/scripts/context/stubs/unix/texexec: cd ~/bin ln -s ~/texmf/scripts/context/stubs/unix/texexec chmod +x texexec Hans: Could texexec be made executable in the distribution's zip file, to avoid the chmod? 5. (test 1) A first check is that texexec works. So change to a random directory, e.g. where you keep some Context files: cd ~/tmp/xy ; texexec --version That produces: TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD which looks good 6. (formats) Remake the formats with texexec --make --all 7. (test 2) Try a simple file. I use ~/tmp/xy/t.tex containing one line, \starttext abc \stoptext. Here goes: texexec t fails with ! Font \*12ptrmtf*=ec-lmr12 not loadable: Metric (TFM) file not found. 8. (dreaded lmodern) Ack, it's the dreaded lmodern problem. I thought I had avoided this issue on my previous laptop, which ran Debian testing/unstable and got reincarnated as an Ubuntu laptop. And I had fixed it, by installing the 'lmodern' package. But Ubuntu lmodern is v0.92, at least as of Ubuntu 6.06, and Debian unstable uses v1.00, which includes the necessary .tfm files for ec-lmr*. The beta Ubuntu ('edgy eft') uses the new version, so I downloaded its .deb via http://packages.ubuntu.com, which eventually pointed me to a monster url and I did: cd /tmp wget http://ubuntu.mirrors.tds.net/ubuntu/pool/universe/l/lmodern/lmodern_1.00-2_all.deb Note that the package version may change, so the easiest way is to download the latest .deb from http://ubuntu.mirrors.tds.net/ubuntu/pool/universe/l/lmodern/ Installing it is a bit painful. The first try (done as root) of dpkg -i /tmp/lmodern_1.00-2_all.deb complains with Usage error: unrecognized option Usage: update-fonts-dir DIRECTORY ... 'update-fonts-dir' is some X program that updates X's ideas of where its fonts are, and the package isn't calling it correctly. But I don't care whether X knows about the lmodern fonts, since I'm using them for documents viewed with gv or xpdf, not directly as an X font. So I shut up update-fonts-dir for the moment, installed, and undid the shutting up (all as root): chmod -x /usr/bin/update-fonts-dir dpkg -i /tmp/lmodern_1.00-2_all.deb chmod +x /usr/bin/update-fonts-dir 9. (test 2 again, not as root) Now 'texexec t' works fine, as does 'texexec --check' So I think all is well, and I didn't need to set RUBYLIB. Let me know of any corrections or improvements; if there's interest I'll wikifi. From now on, I hope I can update using texmfstart ctxtools --updatecontext -Sanjoy `A society of sheep must in time beget a government of wolves.' - Bertrand de Jouvenal ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] definesynonyms
Thanks a Taco! with PID[268]% ^ [Fam=Rudolph, Nam=Rudluffen, Vor=Adam] all is ok. Bernd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] XY and papersize
To summarize, Taco kindly solved this problem after exchanging some messages with me off list - thank you Taco. The key is, when using a papersize other than the A4 default with XY, it is necessary to first explicitly set the appropriate papersize. This enables the XY calculations to expand properly. For example: \setuppapersize[letter][letter] \setuppapersize [XY][letter] \setuppaper[nx=3,ny=10,dx=2mm,dy=0mm,topspace=5mm,backspace=5mm] \setuplayout [location=middle] \setuparranging [XY] \showframe \starttext \dorecurse{30}{test} \stoptext This is a very handy way to generate a centered layout for labels of any size. The spacing between the labels is easily controlled with dx and dy. Thanks for the help solving this, Matt ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] definesynonyms
Am 24.07.2006 um 11:11 schrieb Taco Hoekwater: But it is probably easier to write a small database interface layer. Somewhat like this (note that I had to change \doGeTPID as well). \def\PID[#1][#2]{\getparameters[PID#1][#2]} \def\doGetPID#1#2{\getvalue{PID#2#1}} \def\getPID#1{\doGetPID{Fam}{#1}, \doGetPID{Vor}{#1}~(#1)} \PID[268] [Fam=Rudolph, Nam=Rudluffen, Vor=Adam] Thanks Taco for that example, but sorry it dos not work. Runaway argument? 268] [Fam=Rudolph, Nam=Rudluffen, Vor=Adam] ! Paragraph ended before \PID was complete. to be read again \par l.57 I have no idea. Bernd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Charts, Graphs, Tufte, and ConTeXt
David Wooten wrote: Thus I'm curious as to what others use... is R an efficient method to produce elegant charts? Yes! R (especially using the new grid and lattice framework) produces excellent charts and graphs, with very sensible default options (much of it based on Cleveland’s research). There are packages for most common and not-so-common stasticial graphs, but it is not difficult to create your own from scratch, either, or to modify existing ones. For an example of the various graphics possible to create with R, try these commands (at an R prompt): library(lattice) # Load the ‘lattice’ package¹. grid::grid.prompt(TRUE); par(ask=TRUE) # Pause between each graphic. example(xyplot)# Many nice lattice graphs. demo(lattice) # More lattice graphs. demo(graphics) # Example of non-lattice graphs. You may also want to take a look at the R Graph Gallery: http://addictedtor.free.fr/graphiques/ ¹ Which is basically ‘trellis for R’; see http://stat.bell-labs.com/project/trellis/. -- Karl Ove Hufthammer E-mail and Jabber: [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] spell checking in scite
Hans et al, How do I set up spell checking in the Scite that comes with my context distribution? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modes with Scite
Hans, I thought Shift+F8, paramters, would have something to do with adding options at the command line, but it did not work with --mode=short. Hans Hagen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: All, I am using the Scite editor provided by one of the Context dristributions. Is there a way to include modes with one of the various compiling commands? no, but you can (1) temporary put \enablemode[...] at the to of the file (2) use a separate file where you set the mode, and load the file Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modes with Scite
[EMAIL PROTECTED] wrote: Hans, I thought Shift+F8, paramters, would have something to do with adding options at the command line, but it did not work with --mode=short. in your user scite props you need to say: name.context.texexec=texmfstart texexec $(name.texexec.flag.pdfopen) $(1) Hans Hagen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: All, I am using the Scite editor provided by one of the Context dristributions. Is there a way to include modes with one of the various compiling commands? no, but you can (1) temporary put \enablemode[...] at the to of the file (2) use a separate file where you set the mode, and load the file Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Index design
Hi, in a index is it possible not to have bold letters as separators (a, w) in a dedicated line, but instead only the first letter of the first entry with a or w bold? See this minimal example: \starttext \chapter{First Chapter} Some text...\index{word} \section {First Section} Some text...\index{word} Some text...\index{another word} Some text...\index{another word} \page[yes] \completeindex \stoptext Here I would like to have only the first letter of the index entries another and later word in the index to be set bold. (Hope you understand what I mean...) Thanks, Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Indentation bug ?
Hi all, Considering the following example: %%% \setupindenting[medium,yes] \setupformulas[indentnext=yes] \setupheads[indentnext=yes] \setupfloats[indentnext=yes] \starttext \startuseMPgraphic{mympgraph} numeric u; u:=2cm; draw (-u,-u)--(u,u); draw ((-u,-u)--(u,u)) rotated 90; \stopuseMPgraphic \section{A section} La liaison inter-modulaire conue par TDA pour le prototype est une liaison pivot d'axe vertical. En effet, mme si elle dispose de possibilits de dbattements angulaires, ces dbattements admissibles sont relativement faibles. De plus, seul la rotation suivant l'axe de la liaison pivot peut tre actionn et, en l'tat, les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le problme pos par cette articulation ne se pose pas si l'on se restreint des dplacements sur des surfaces planes ou rgulires relativement aux grandeurs du robot. Nous ne prsenterons pas ici la conception mcanique de cette liaison. \placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}} La liaison inter-modulaire conue par TDA pour le prototype est une liaison pivot d'axe vertical. En effet, mme si elle dispose de possibilits de dbattements angulaires, ces dbattements admissibles sont relativement faibles. De plus, seul la rotation suivant l'axe de la liaison pivot peut tre actionn et, en l'tat, les dbattements ne peuvent en aucun cas tre pilots. Nanmoins, le problme pos par cette articulation ne se pose pas si l'on se restreint des dplacements sur des surfaces planes ou rgulires relativement aux grandeurs du robot. Nous ne prsenterons pas ici la conception mcanique de cette liaison. \page \section{A second section} \input knuth \placefigure[bottom]{none}{\useMPgraphic{mymmpgraph}} \input knuth \stoptext %% Paragraphs next to \placefigure calls are not indented when [bottom] is used. They are indented correctly when one use [top] or [here]. Strange... ;) Cheers, Renaud PS to Hans: U3D ? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Charts, Graphs, Tufte, and ConTeXt
http://www.nieuwarchief.nl/serie5/index.php Thanks, lots of elegant layouts there, and enjoyable mathematics! -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] underbar and hyphenation
Hello, is there any way to make hyphenation work when using \underbar? Thanks, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming
On 7/24/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, the answers to these three questions are most probably one-liners, but I don't know which ones ;) 1. How can I scale (an already defined) reusableMPgraphic? Simplified example of what I currently (want to) have: % how should I change this definition? \def\usemygraphic[#1][#2]{\reuseMPgraphic{#1}} \usemygraphic[name][width=.7\textwidth] \def\usemygraphic[#1][#2]{\scale[#2]{\reuseMPgraphic{#1}} \usempgraphic[name][width=4cm,height=5cm] \scale accepts the same scaling options as externalfigure Thanks to both you and Taco! why do you need a counter 3. I would like to change \usemygraphic, so that \usemygraphic[othername] or \usemygraphic[othername][height=5cm] would resolve to \dorecurse{2}{\useMPgraphic{gpg:othername:\recurselevel}} and \usemygraphic[name][n={1,3},width=8cm] (syntax might be different if necessary) to \reuseMPgraphic{gpg:name:1} \reuseMPgraphic{gpg:name:3} (with proper scaling if possible). you want all graphics? \def\usemygraphic#1% {\doloop {\doifMPgraphicelse{gpg:#1:\recurselevel} {\reuseMPgraphic{gpg:name:\recurselevel}} {\exitloop}}} or so ... Wow! No, I don't need a counter in that case ;) Just a little detail: Yes, I want all the graphics except if the user provides n={1,3} or n=4, then I would like to output only the ones specified. I know that this is a trivial question, but how do I extract the argument of n=... to \processcommalist on it? And yet another shortstupid question: when does \c!something=\v!value work? I tried to change \setupGNUPLOT[terminal=context] into [\c!terminal=\v!context] (in \unprotect-ed area), but I get a command-undefined error. Thanks, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Index design
[apologies for re-posting but the ntg-server seemed to be down?] Hi, in a index is it possible not to have bold letters as separators (a, w) in a dedicated line, but instead only the first letter of the first entry with a or w bold? See this minimal example: \starttext \chapter{First Chapter} Some text...\index{word} \section {First Section} Some text...\index{word} Some text...\index{another word} Some text...\index{another word} \page[yes] \completeindex \stoptext Here I would like to have only the first letter of the index entries another and later word in the index to be set bold. (Hope you understand what I mean...) Thanks, Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] U3D (embedded 3D objects)
Renaud AUBIN wrote: Hans Hagen a écrit : my guess is that trying to reverse engineer latex code will cost me more time that doing it directly the context way; the only thing that i need is the relevant annotation specs (someplace in the pdf manual) (in context such code ends up in the drivers and it needs to work well with the more complex annot stuff) Hans See page 747 of PDFReference.pdf (1.6) Should I use \pdfannot ? I've never done that before so can you link me to an example (of the ConTeXt way) ? indeed pdfannot is what we need; however, the first thing is to figure out what kind of control we want (probably best from within javascript); in your sampe i see pretty raw pdf code in the key/val pairs, which is something alien to context - what features make sense - what features do we expect to be stable Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to place figures captions to some non-standard places?
Hello, Is it possible to do the following with ConTeXt? 1. Figure is \textwidth wide, the caption is placed in the margin right or left to the figure (depending on left/right page) 2. Figure is less than \textwidth wide, it's placed on the inner side of text, caption is on the outer side (top/middle or bottom-aligned, depending on user specification) 3. Figure is wider than textwidth, it's centered on text+margin, caption below the figure (taking the same width as the figure itself) 4. figure and caption are both in the margin (outer or inner side of margin, depending on user request), caption takes all the available width of the margin 5. almost the same feature as \startfiguretext, except that the figure extends to the outer part of the margin, while texts floats around the figure (still only max. \texwidth wide). (It does not need to be automatic, just that it could be specified for a single figure where to place it and where to place the caption.) Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] underbar and hyphenation
On Tue, 25 Jul 2006, Mojca Miklavec wrote: Hello, is there any way to make hyphenation work when using \underbar? Mojca, sorry I do not know the answer to that. But I was testing a few things with \underbar and now have questions of my own. Something seem to be broken with \underbar and ||. See the output of \underbar{stand||alone} Also, what is difference between alternatives in underbar? All the three alternatives look the same to me (from the sources) {\setupunderbar [alternativevariant=a]\underbar{alternative a}}, {\setupunderbar [alternativevariant=b]\underbar{alternative b}}, {\setupunderbar [alternativevariant=c]\underbar{alternative c}} Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] underbar and hyphenation
Aditya Mahajan wrote: On Tue, 25 Jul 2006, Mojca Miklavec wrote: Hello, is there any way to make hyphenation work when using \underbar? Mojca, sorry I do not know the answer to that. But I was testing a few things with \underbar and now have questions of my own. Something seem to be broken with \underbar and ||. See the output of \underbar{stand||alone} Isn't | a special char like (plain tex)? What happens, if you use \textbar instead? Also, what is difference between alternatives in underbar? All the three alternatives look the same to me (from the sources) {\setupunderbar [alternativevariant=a]\underbar{alternative a}}, {\setupunderbar [alternativevariant=b]\underbar{alternative b}}, {\setupunderbar [alternativevariant=c]\underbar{alternative c}} Try alternative instead of alternativevariant. Peter Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] U3D (embedded 3D objects)
Hans Hagen a écrit : indeed pdfannot is what we need; however, the first thing is to figure out what kind of control we want (probably best from within _javascript_); in your sampe i see pretty raw pdf code in the key/val pairs, which is something alien to context - what features make sense - what features do we expect to be stable Hans Hi Hans, At first time, we can try to embed the u3d data as a "stream" by setting up the recquired (not the optional) keys (Subtype, 3DD) + 3DI at true to obtain an interactive 3D model without any js programming... With 3DI at true, I assume we can verify if the "3D artwork" is correctly parsed and rendered... Then, when can go to _javascript_ to include setups of (mainly): - camera-to-world transformation matrix - artwork-to-world transformation matrix - background color settings I have to learn about pdfmark and pdfannot... Sorry if these remarks calls obvious answer... Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] mails
Hi, Sorry if i'm a bit slow with answering mails ... it's pretty warm here (and noisy since we need to open the server room door to get rid of the heat) Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Indentation bug ?
On Tue, 25 Jul 2006, Renaud AUBIN wrote: Paragraphs next to \placefigure calls are not indented when [bottom] is used. They are indented correctly when one use [top] or [here]. Perhaps related to http://context.literatesolutions.com/collector/65 ? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Indentation bug ?
Peter Münster a écrit : On Tue, 25 Jul 2006, Renaud AUBIN wrote: Perhaps related to http://context.literatesolutions.com/collector/65 ? Cheers, Peter Maybe, but dunno... These problems are probably due to the same bug... Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context 2006.07.24 released
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. http://www.pragma-ade.com/context/current/cont-tmf.zip http://context.aanhet.net/context/current/cont-tmf.zip http://mirror.contextgarden.net/context/current/cont-tmf.zip The current release has version 2006.07.24 This is a bugfix release that fixes a number of small problems. As usual, there is an html page with detailed release notes available on the Wiki, see: http://wiki.contextgarden.net/Context_2006.07.24 Happy TeXing, Taco Hoekwater ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming
Mojca Miklavec wrote: And yet another shortstupid question: when does \c!something=\v!value work? I tried to change \setupGNUPLOT[terminal=context] into [\c!terminal=\v!context] (in \unprotect-ed area), but I get a command-undefined error. only predefined key/values (in mult-con) are stored in their efficient ! form (and get translated when needed) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mails
Hans Hagen wrote: Hi, Sorry if i'm a bit slow with answering mails ... it's pretty warm here (and noisy since we need to open the server room door to get rid of the heat) Over here, my mail server has been offline for most of the day, so I also have a backlog. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Zig-Zag lines in FLOWcharts
batela wrote: Hi to all, Did anyone know a way to trace some zig-zag lines/arrows in FLOWcharts? My intention is to make some genograms. mot implemented; i assume that it is doable to make something like dashed doing that (otherwise one needs to precalculate the line, split it in pieces and zigzag along the pieces Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setupnarrower with em or quad
Hi, I need a \setupnarrower with quad or em distance. But both... \setupnarrower[left=\quad and \setupnarrower[left=\em ... don't work. Someone knows the right syntax? Thank you, Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] scaling reusableMPgraphic some ConTeXt programming
Mojca Miklavec wrote: On 7/24/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, the answers to these three questions are most probably one-liners, but I don't know which ones ;) 1. How can I scale (an already defined) reusableMPgraphic? Simplified example of what I currently (want to) have: % how should I change this definition? \def\usemygraphic[#1][#2]{\reuseMPgraphic{#1}} \usemygraphic[name][width=.7\textwidth] \def\usemygraphic[#1][#2]{\scale[#2]{\reuseMPgraphic{#1}} \usempgraphic[name][width=4cm,height=5cm] \scale accepts the same scaling options as externalfigure Thanks to both you and Taco! why do you need a counter 3. I would like to change \usemygraphic, so that \usemygraphic[othername] or \usemygraphic[othername][height=5cm] would resolve to \dorecurse{2}{\useMPgraphic{gpg:othername:\recurselevel}} and \usemygraphic[name][n={1,3},width=8cm] (syntax might be different if necessary) to \reuseMPgraphic{gpg:name:1} \reuseMPgraphic{gpg:name:3} (with proper scaling if possible). you want all graphics? \def\usemygraphic#1% {\doloop {\doifMPgraphicelse{gpg:#1:\recurselevel} {\reuseMPgraphic{gpg:name:\recurselevel}} {\exitloop}}} or so ... Wow! No, I don't need a counter in that case ;) Just a little detail: Yes, I want all the graphics except if the user provides n={1,3} or n=4, then I would like to output only the ones specified. I know that this is a trivial question, but how do I extract the argument of n=... to \processcommalist on it? depends on how you store it (say in requestedlist), anyhow testing is simple \def\usemygraphic#1% {\doloop {\doifMPgraphicelse{gpg:#1:\recurselevel} {\expanded{\doifinset{\recurselevel}{requestedlist}}{\reuseMPgraphic{gpg:name:\recurselevel}}} {\exitloop}}} or so And yet another shortstupid question: when does \c!something=\v!value work? I tried to change \setupGNUPLOT[terminal=context] into [\c!terminal=\v!context] (in \unprotect-ed area), but I get a command-undefined error. Thanks, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupnarrower with em or quad
On Tue, 25 Jul 2006, Steffen Wolfrum wrote: Hi, I need a \setupnarrower with quad or em distance. But both... \setupnarrower[left=\quad and \setupnarrower[left=\em ... don't work. Someone knows the right syntax? em is a unit of measurement, so try \setupnarrower[left=1em] Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] underbar and hyphenation
On Tue, 25 Jul 2006, Peter Rolf wrote: Aditya Mahajan wrote: On Tue, 25 Jul 2006, Mojca Miklavec wrote: Hello, is there any way to make hyphenation work when using \underbar? Mojca, sorry I do not know the answer to that. But I was testing a few things with \underbar and now have questions of my own. Something seem to be broken with \underbar and ||. See the output of \underbar{stand||alone} Isn't | a special char like (plain tex)? What happens, if you use \textbar instead? I want to get the special meaning of |. Actually I was just testing something with \underbar{\input knuth \endgraf} and noticed the problem. Also, what is difference between alternatives in underbar? All the three alternatives look the same to me (from the sources) {\setupunderbar [alternativevariant=a]\underbar{alternative a}}, {\setupunderbar [alternativevariant=b]\underbar{alternative b}}, {\setupunderbar [alternativevariant=c]\underbar{alternative c}} Try alternative instead of alternativevariant. Thanks, alternative works perfectly. Hans, can you fix the typo in the example in core-fnt.tex (around line 440). Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] U3D (embedded 3D objects)
Hans Hagen a écrit : indeed pdfannot is what we need; however, the first thing is to figure out what kind of control we want (probably best from within _javascript_); in your sampe i see pretty raw pdf code in the key/val pairs, which is something alien to context - what features make sense - what features do we expect to be stable Hans How to do that in the ConTeXt way ? ;) I have read spec-tpd.tex but didn't know much... Take care of the heart attack (I've done it the rookie way, reversed from movie15) \starttext \xdef\uthreedfilename{pa10} \pdfobj {/Subtype/P/FOV 30/PS/Min}% \pdfrefobj\pdflastobj% % \pdfobj {% /MS/M% define the view as C2W matrix /CO 1200% orbital radius /P \the\pdflastobj\space 0 R% /C2W [-1.0 0.0 0.0 0.0 -1.0 0.0 0.0 0.0 1.0 0.00 -600.00 -3200.00]% /XN(Default)% name of the view appearing in the drop down list /BG/CS/DeviceRGB/C[1 1 1]% }\pdfrefobj\pdflastobj% \xdef\defaultview{/3DV /N \the\pdflastobj\space 0 R } \pdfobj stream % attr {% /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F% }% file {\uthreedfilename.u3d}% \pdfrefobj\pdflastobj% \xdef\iiidstream{\the\pdflastobj} \pdfobj stream {}\pdfrefobj\pdflastobj% \xdef\apdict{/AP /N \the\pdflastobj\space 0 R } \pdfannot width 200pt height 200pt depth 200pt {% don't know how to deal with w,h and d !!! /Subtype/3D% /F 4% we cannot put F 5 here; bug in Reader; 3D annot would be /T (\uthreedfilename.u3d)% disabled even if plugin were available /Contents (3D Object (model/u3d))% mime type /NM (pa10)% label /P 0 0 R% \apdict% \defaultview% /3DI true% /3DD \iiidstream\space 0 R% 3D stream object /3DA /A/PV/AIS/I/D/PI/DIS/I % }% \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] underbar and hyphenation
On Tue, 25 Jul 2006, Mojca Miklavec wrote: Hello, is there any way to make hyphenation work when using \underbar? Perhaps you can try some of the techniques in Chapter 10 of Metafun manual. There is no mention of hypenation, but looking at Fig 10.3 it seems that hypenation is taken care of. Working with a rectangular region should be easier, but then one needs to take care of pagebreaks. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] U3D (embedded 3D objects)
Renaud AUBIN a écrit : How to do that in the ConTeXt way ? ;) I have read spec-tpd.tex but didn't know much... Take care of the heart attack (I've done it the rookie way, reversed from movie15) \starttext \xdef\uthreedfilename{pa10} \pdfobj {/Subtype/P/FOV 30/PS/Min}% \pdfrefobj\pdflastobj% % \pdfobj {% /MS/M% define the view as C2W matrix /CO 1200% orbital radius /P \the\pdflastobj\space 0 R% /C2W [-1.0 0.0 0.0 0.0 -1.0 0.0 0.0 0.0 1.0 0.00 -600.00 -3200.00]% /XN(Default)% name of the view appearing in the drop down list /BG/CS/DeviceRGB/C[1 1 1]% }\pdfrefobj\pdflastobj% \xdef\defaultview{/3DV /N \the\pdflastobj\space 0 R } We need to be able to define some views... Variables are in facts CO, C2W, XN and BG needs to be annotation-wide... I need more time to manage coordinates possibilities... \pdfobj stream % attr {% /Subtype/U3D/VA [\the\pdflastobj\space0 R] /DV/F% }% file {\uthreedfilename.u3d}% \pdfrefobj\pdflastobj% \xdef\iiidstream{\the\pdflastobj} "pretty raw pdf code in the key/val pairs, which is something alien to context" ;) \pdfobj stream {}\pdfrefobj\pdflastobj% \xdef\apdict{/AP /N \the\pdflastobj\space 0 R } \pdfannot width 200pt height 200pt depth 200pt {% don't know how to deal with w,h and d !!! /Subtype/3D% /F 4% we cannot put F 5 here; bug in Reader; 3D annot would be /T (\uthreedfilename.u3d)% disabled even if plugin were available /Contents (3D Object (model/u3d))% mime type /NM (pa10)% label /P 0 0 R% \apdict% \defaultview% /3DI true% /3DD \iiidstream\space 0 R% 3D stream object /3DA /A/PV/AIS/I/D/PI/DIS/I % }% Variables here are mainly 3DI, NM, mime type ? \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] mails
How hot? California is roasting. Power grid threatened. Just got back from L.A. and Sacramento at 115 degrees Fahrenheit. On Jul 25, 2006, at 12:49 PM, Hans Hagen wrote: Hi, Sorry if i'm a bit slow with answering mails ... it's pretty warm here (and noisy since we need to open the server room door to get rid of the heat) Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context