Re: [NTG-context] Passing variables on invocation- and reading them in ConTEXt

2012-09-10 Thread Ian Lawrence
Thanks to all. After about 30 mins exploring, it all came together. I'll try to add something to the wikithe link below is fine if you know it's there, and that this is what you want. But the search function (arguments and variants thereof did not find it for me). The best match for what

Re: [NTG-context] Simple rings with svg

2012-05-11 Thread Ian Lawrence
, Aditya Mahajan wrote: On Thu, 10 May 2012, Hans Hagen wrote: On 10-5-2012 16:59, Aditya Mahajan wrote: On Thu, 10 May 2012, Ian Lawrence wrote: I read on the wiki that now svg is natively supported. Hmm. No. You need to have inkscape installed (and in your PATH) for svg to pdf conversion

[NTG-context] Simple rings with svg

2012-05-10 Thread Ian Lawrence
I read on the wiki that now svg is natively supported. Hmm. I am missing a trick here: I try ___ \starttext Hello world \externalfigure[ChangingField_ILUC.pdf \stoptext __ And all goes as expected: I get output with the expected graphic in place But if I try ___ \starttext Hello world

[NTG-context] Passing variable values on invoking context

2012-02-15 Thread Ian Lawrence
A bit of help, please. I currently have a chunk at the start of a text file, like this \setvariables [Path] [Thread={Ee_01_PN}, . Mode=full] \stopbuffer I invoke the file with context filename.tex Is there a way to pass the value of the variable to context on invocation? So

[NTG-context] A bit more help with referencing local filenames

2012-02-15 Thread Ian Lawrence
At the moment I have two bits of code that conspire to build a link to a file that is on a website. So, variables set on a per-document basis, giving the folder: swfURLPath={http://some location or other/PN01_media/}, supportURLPath={http://some location or other/PN01_support/}, These combine

Re: [NTG-context] A bit more help with referencing local filenames

2012-02-15 Thread Ian Lawrence
OK, a bit early! This one swfURLPath={\\PN01_media/}, supportURLPath={\\PN01_support/}, works with Acrobat, but not with the Preview PDF viewer on the Mac Anyone know why, or can suggest a more robust mechanism? On 15 February 2012 10:18, Ian Lawrence physics.roo...@gmail.com wrote

Re: [NTG-context] Possible bug in \unit

2011-12-08 Thread Ian Lawrence
I solved this = getting what I wanted by writing my own macro: \define[3]\physicalquantitye{\hbox{#1 \times \unit{10^#2 #3}}} % \physicalquantitye{number}{exponent}{unit} -- gives short form of unit That makes sense to me and is working fine. There are a few more like this on the wiki (units

[NTG-context] captions for figures - none - no longer working

2011-12-06 Thread Ian Lawrence
Morning all, It seems the parameter {none} is no longer effective in \placefigure: From the wiki: You get no caption with none. On at least: ConTeXt ver: 2011.11.29 23:11 MKIV fmt: 2011.12.1, this appears **not** to be the case... Anyone else - or is there some change not yet documented on

Re: [NTG-context] beta

2011-12-01 Thread Ian Lawrence
New units are a great improvement. Thanks. Ian On 29 Nov 2011, at 17:57, Hans Hagen wrote: Hi, I uploaded a new beta. The usual fixes (as reported to/suggested on this list) and an updated unit mechanism. I'll also upload the new (but yet incomplete) units manual.

Re: [NTG-context] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-25 Thread Ian Lawrence
Maybe it’s possible with MkIV to check if the text before the \unit command was a number but of the number is part of the unit them put in the command, such things are always tricky with TeX and it’s better to force users to use proper input. Within \type{phys-dim.lua} all the

Re: [NTG-context] [m-chart] Focus feature

2011-10-20 Thread Ian Lawrence
Another one on flow cells: The latest beta adds an unwanted frame around the text ' radiations that ionise', for cells like: \startFLOWcell \name{episode_04_title} \location {1,5} \shape{7} \text[align=left]{{\bf Radiations that ionise}}

Re: [NTG-context] relative references in OSX Lion

2011-09-14 Thread Ian Lawrence
. I hope this is correct and save someone else some time. Ian On 23 Aug 2011, at 15:55, Wolfgang Schuster wrote: Am 23.08.2011 um 15:37 schrieb Ian Lawrence: Is anyone else successfully running context on OS X Lion? Apparently the relative references work in the terminal - that's

Re: [NTG-context] Units misbehaving, I think

2011-09-14 Thread Ian Lawrence
Thanks Hans.. This now seems fixed. Ian On 12 Aug 2011, at 17:50, Hans Hagen wrote: On 10-8-2011 6:50, Ian Lawrence wrote: I don't think the /unit and /lunit command like a quantity that starts with a zero.. Any one else? First two work fine, last one causes all kinds of grief

[NTG-context] defected by simple stuff - agane

2011-09-06 Thread Ian Lawrence
Hi All.. In the charts module you can set a whole cell to be a hyperlink \destination {url(http://www.talkphysics.org)} So what can I write to link to a local file? Along the lines of… \destination {url(file://XXX.pdf)} …where the pdf is in same directory as the file

[NTG-context] Charts module…custom shapes

2011-09-06 Thread Ian Lawrence
Anyone know how to add extra shapes, beyond those predefined? Thanks ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Reflections the interplay between units and digits

2011-08-26 Thread Ian Lawrence
Morning all… I think that there are several issues in the interplay of the \units and \digits command that could be a bit better (Sorry Hans…all meant in the best possible way). digits_trial.pdf Description: Adobe PDF document So here is a complete example and the pdf I get, after some

Re: [NTG-context] relative references in OSX Lion

2011-08-26 Thread Ian Lawrence
pages, 1.195 pages/second system | total runtime: 1.127 Ian-MBP:ConTEXt_production_ws Ian$ On 23 Aug 2011, at 15:49, Hans Hagen wrote: On 23-8-2011 15:37, Ian Lawrence wrote: \doifmodeelse{*product} {\setupexternalfigures[directory={graphics}]} {\setupexternalfigures[directory

Re: [NTG-context] relative references in OSX Lion

2011-08-26 Thread Ian Lawrence
to rebuild some confidence and understanding… Kind regards Ian On 26 Aug 2011, at 14:02, Taco Hoekwater wrote: You have a problem with your current directory. On 08/26/2011 02:02 PM, Ian Lawrence wrote: Here is the file: context /Users/Ian/SPT_PDF_context/ConTEXt_production_ws/trial

Re: [NTG-context] relative references in OSX Lion

2011-08-23 Thread Ian Lawrence
Lion? Thanks Ian On 12 Aug 2011, at 11:45, Ian Lawrence wrote: That was very kind of you, and I'd like to buy you a beer, even though your example seemed to be much more complex than mine. I assume your example ought to run 'out of the box' by just issuing the commend 'context relabs

Re: [NTG-context] beta

2011-07-08 Thread Ian Lawrence
Back on topic... In starting out we often want to write out the units in full - that is the words, not the abbreviations. any chance of implementing these? At the moment I have (crudely, I suspect) a large number of definitions of the kind \define\metre{\;{\tf m}} \define\metrew{\;{\tf metre}}

Re: [NTG-context] Ideas for restructuring the ConTeXt garden?

2011-04-26 Thread Ian Lawrence
Well, I am a beginner. I have just lost 2 hours trying to do something which ought to be simple. Perhaps now I have spent 10's of hours working at my understanding, yet still I have to look up the simplest essentials, often. And I think knowing what kind of things it is, and where one might look

[NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
I have a layer that I'd like to appear on some pages but not others, and for which I'd like to switch the content by page. (I need the layer to precisely and reliably locate some graphics. However, as I see it, you can only set the visibility of a layer in \definelayer, \setupbackgrounds - and

Re: [NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
the backgrounds on a page by page basis, but this seems inelegant, as the \setups ought to be before the \starttext..? On 26 April 2011 13:35, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 26.04.2011 um 12:33 schrieb Ian Lawrence: I have a layer that I'd like to appear on some

Re: [NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
and then the population of a layer...? On 26 April 2011 17:44, Hans Hagen pra...@wxs.nl wrote: On 26-4-2011 6:26, Ian Lawrence wrote: But when I get to a new page I'd like to be able to change that plug, or even have the layer blank that happens automatically unless the state of the layer

[NTG-context] writing physical quantities in maths mode

2011-03-11 Thread Ian Lawrence
Morning all, I have a need to write a lot of physical quantities - these should be in text mode. Mostly I can manage, but subscripts are causing me grief Eg \startformula \startmathalignment[n=3] \NC \text{F}\NC =\NC {\text{GMm} \over \text r^2}\NR \NC \text {force}_G \NC =\NC {\text{G} \times

[NTG-context] A question about data types?

2011-03-02 Thread Ian Lawrence
Sorry. me again...and I have been all over the wiki, mailing lists and manuals... I have this: \setlayer [progresssteps] % name of the layer [hoffset=904 px, voffset= 28\nuggetnumber px] % placement (from upper left corner of the layer) {\stepstack} % the actual contents of the layer And I am

Re: [NTG-context] A question about data types?

2011-03-02 Thread Ian Lawrence
building stacked progress bars for documents with subsections, in case anyone searches this- colours and prettification to follow! Ian On 2 March 2011 11:41, Wolfgang Schuster schuster.wolfg...@googlemail.comwrote: Am 02.03.2011 um 12:25 schrieb Ian Lawrence: Sorry. me again...and I have been

[NTG-context] Numbering again..

2011-03-02 Thread Ian Lawrence
Sorry...Again I am stumped. I have a counter that I'd like to reset \newcounter \nuggetnumber \def \numberofnuggets{0} \definehead [nugget] [section] \setuphead [nugget] [number=yes,page=yes, before=\increment \nuggetnumber, after=\savecurrentvalue

[NTG-context] Work available

2011-03-02 Thread Ian Lawrence
Hi all, I think for the sake of my sanity I am going to stop building prototypes now. I am very grateful to those who have been very helpful along the way, answering what must have seemed like foolish questions. I'd have to say that getting to grips with Context has taken longer than I bargained

Re: [NTG-context] Screen document design

2011-03-01 Thread Ian Lawrence
...@fiee.net wrote: Am 2011-02-24 um 11:34 schrieb Marco: On 2011-02-24 Ian Lawrence physics.roo...@gmail.com wrote: Thanks for taking the trouble for what was really simple, but seems undocumented (?) Some other units: mm Millimetres cm Centimetres in Inches em em width

[NTG-context] Interaction menu in layer

2011-03-01 Thread Ian Lawrence
morning... Is it possible to put the interactionmenu in a layer to position it? Thanks Ian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Screen document design

2011-02-24 Thread Ian Lawrence
Morning all, Quick question. I want to design a screen document at 1024 by 768 pixels, so ideally work in pixels as units, and not mm / cm. I know pdfs are scalable and about \setuppapersize[S6][S6], but I'd prefer to work in pixels (I have swfs / images to embed, and these come in x by y

Re: [NTG-context] Screen document design

2011-02-24 Thread Ian Lawrence
] % let the layer cover the full paper Ian On 24 February 2011 09:47, luigi scarso luigi.sca...@gmail.com wrote: On Thu, Feb 24, 2011 at 10:40 AM, Ian Lawrence physics.roo...@gmail.com wrote: Morning all, Quick question. I want to design a screen document at 1024 by 768 pixels, so ideally

Re: [NTG-context] Speech bubbles

2011-02-03 Thread Ian Lawrence
, at 08:39, Wolfgang Schuster wrote: Am 02.02.2011 um 18:12 schrieb Ian Lawrence: Evening all: Has anyone got a nicer \speechbubble definition up their sleeve? Here is not-nice one, so you know the floor: \define [1] \speechBubble {\blank \framed [width=.6\textwidth ,autowidth

[NTG-context] Speech bubbles

2011-02-02 Thread Ian Lawrence
Evening all: Has anyone got a nicer \speechbubble definition up their sleeve? Here is not-nice one, so you know the floor: \define [1] \speechBubble {\blank \framed [width=.6\textwidth ,autowidth=force,align={flushleft}, background=color, backgroundcolor=darkblue, foreground=color,

[NTG-context] embedding swfs in pdfs

2011-02-02 Thread Ian Lawrence
Any experts out there - with access to code (or the ability to assemble such code) that can do what acropro ( advanced options) offers on embedding swfs? -load in swf at x,y location relative to a fixed 1026 by 768 px background -set size correctly (native size of swf) -set poster frame

Re: [NTG-context] embedding swfs in pdfs

2011-02-02 Thread Ian Lawrence
in it. So I have plenty of real-life examples. I think the swfs with assets will be a tough one to crack... On 2 Feb 2011, at 20:53, luigi scarso wrote: On Wed, Feb 2, 2011 at 9:44 PM, Ian Lawrence physics.wande...@gmail.com wrote: Any experts out there - with access to code (or the ability

[NTG-context] Layer(s)

2011-01-24 Thread Ian Lawrence
Morning, I am completely defeated by layers...from a more or less complete beginner.. So please be gentle. I think you ought to be able to have multiple layers and so to switch them on and off, using modes. However I can only find examples and documentation for single layers in use at any