ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: relative references in OSX Lion
Date: Tue, 23 Aug 2011 14:37:04 +0100	[thread overview]
Message-ID: <0FFBF5FE-B9C8-45E9-A13F-3D36DF22DB14@gmail.com> (raw)
In-Reply-To: <4C7BAA2B-06B6-416D-B692-D39B6CC519CD@gmail.com>

Is anyone else successfully running context on OS X Lion?

Apparently the relative references work in the terminal - that's the command line interface to unix. I can move around different folders using relative reference there. However there is a complete failure to repeat relative references within Context (absolute references work fine). Even with well structured tex files from Wolfgang or Willi…

I have razed the whole context installation and reinstalled the latest beta (ConTeXt  ver: 2011.08.23 13:04 MKIV  fmt: 2011.8.23  int: english/english).

No joy at all…so anyone else using 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'.
> 
> So I did, and what I got for my trouble was the following pdf (OK, so there was more white space, but this was all the content).
> 
> <Wolfgang.pdf>
> 
> There's not much to guide me in the log file ( the only not found was : files           > readfile > asked name: 'loc', not found), but context (ConTeXt  ver: 2011.08.04 00:42 MKIV  fmt: 2011.8.12  int: english/english) seems not to have found the component text, or the graphic….
> 
> So far I have lost days to this…and I'm afraid I'm none the wiser now.
> 
> But I do appreciate the effort. Thanks.
> 
> 
> 
> 
> On 12 Aug 2011, at 08:25, Wolfgang Schuster wrote:
> 
>> 
>> Am 12.08.2011 um 07:52 schrieb Ian Lawrence:
>> 
>>> So here is the simplest example I could manage…
>>> 
>>> […]
>> 
>> I show you how it’s done without problems on a simple example.
>> 
>> All your files are in directory with the two subfolders “tex” for for subparts
>> of your document and “graphic” for figures.
>> 
>> relabs.tex
>> relabs-environment.tex
>> tex/pickedup.tex
>> graphics/pic.pdf
>> 
>> 
>> The content (i attached all files) of the tex-files is:
>> 
>> <file name="relabs.tex">
>> \startproduct relabs
>> 
>> \environment relabs-environment
>> 
>> \section{Graphic}
>> 
>> \placefigure[force]
>> {A Graphic}
>> {\externalfigure[pic]}
>> 
>> \section{File}
>> 
>> \component pickedup
>> 
>> \stopproduct
>> </file>
>> 
>> <file name="relabs-environment.tex">
>> \startenvironment relabs-environment
>> 
>> \doifmodeelse{*product}
>> {\setupexternalfigures[directory={graphics}]}
>> {\setupexternalfigures[directory={../graphics}]}
>> 
>> \usepath[tex]
>> 
>> \stopenvironment
>> </file>
>> 
>> <file name="pickedup.tex">
>> \startcomponent pickedup
>> 
>> \environment relabs-environment
>> 
>> \subsection{Text}
>> 
>> \input knuth
>> 
>> \subsection{Graphic}
>> 
>> \placefigure[force]
>> {Another graphic}
>> {\externalfigure[pic]}
>> 
>> \stopcomponent
>> </file>
>> 
>> 
>> I used product and component because you can now set different figure
>> paths for both files. When you process the product context should search
>> in the “graphic” folder which is in the same folder but when you process
>> the component context should first go into the parent folder and then
>> look in “graphics”.
>> 
>> 
>> For the inclusion of files you can specify with “\usepath” where context
>> should look and all you need as argument for \component is the name of
>> the file.
>> 
>> Wolfgang
>> <test.zip>___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2011-08-23 13:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-11 15:55 relative references Ian Lawrence
2011-08-11 16:05 ` Wolfgang Schuster
2011-08-11 17:46   ` Alan Braslau
2011-08-12  5:52     ` Ian Lawrence
2011-08-12  7:25       ` Wolfgang Schuster
2011-08-12 10:45         ` Ian Lawrence
2011-08-12 16:50           ` Hans Hagen
2011-08-12 18:02           ` Wolfgang Schuster
2011-08-13 21:16             ` Email Lists
2011-08-23 13:37           ` Ian Lawrence [this message]
2011-08-23 14:49             ` relative references in OSX Lion Hans Hagen
2011-08-26 12:02               ` Ian Lawrence
2011-08-26 12:14                 ` Hans Hagen
2011-08-26 13:02                 ` Taco Hoekwater
2011-08-26 14:32                   ` Ian Lawrence
2011-08-23 14:55             ` Wolfgang Schuster
2011-09-15  5:54               ` Ian Lawrence
2011-08-12 14:44   ` relative references Hans Hagen
2011-08-11 16:11 ` Mari Voipio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0FFBF5FE-B9C8-45E9-A13F-3D36DF22DB14@gmail.com \
    --to=physics.rooted@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).