If I run
Code: Select all
which pdflatex
If I run put
Code: Select all
shell("which pdflatex")
Any thoughts? :-/
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
which pdflatex
Code: Select all
shell("which pdflatex")
Code: Select all
message box shell("env") -
PATH=/home/bogs/bin:/home/bogs/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:.
terminal [env]
PATH=/home/bogs/bin:/home/bogs/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:.
Because you didn't install some extra apps or utilities. (read carefully the OP)bogs wrote: Not sure I'm seeing the difference, unless this is a mac only thing and I'm on a linux boxen ?
Code: Select all
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/t/bin
and
PATH=/usr/bin:/bin:/usr/sbin:/sbin
Well, the original problem is that, in terminal you're running your shell script in an interactive mode,thatkeith wrote:Thanks Thierry! There is indeed a critical difference
Is there a way to get LC to use these PATH variables?
Thanks again – I'd love to get this working on my box at the least, as I could then get LC to sort out some of the complications involved in what I'm trying to do.Thierry wrote:There are few ways to deal with this depending of your context (environment)
and goal ( only on your box, distributing your LC app, ...)
Ok, first stupid thinking.. sometimes they become miraclesthatkeith wrote:Thanks again – I'd love to get this working on my box at the least, as I could then get LC to sort out some of the complications involved in what I'm trying to do.Thierry wrote:There are few ways to deal with this depending of your context (environment)
and goal ( only on your box, distributing your LC app, ...)
If there's a way to go further so it can run on other systems that would be spectacular! The print room where I teach would dearly love to have this simplified (they'd be open to installing pdflatex if necessary) and it would be great to be able to make something that anyone could use (hence wondering about 'internalising' the command-line tools). BUT just having it function smoothly on my Mac within LC would be very helpful.
k
Code: Select all
/path/to/pdfjam --vanilla /path/to/input.pdf --nup 2x1 --frame true --landscape --outfile /path/to/output.pdf
Code: Select all
________
| |
| 1 |
| |
--------
________
| |
| 2 |
| |
--------
Code: Select all
_______________
| | |
| 1 | 2 |
| | |
---------------
Ok, so shooting a bit in the dark,...thatkeith wrote:I installed pdflatex some months ago in a first attempt at doing this, and I'm afraid I don't remember the installation details! :-/ I did wonder about doing that, but in the pdfjam step there's no inherent way (in my current use) to say anything about where pdflatex might be found.
Code: Select all
get "bash -cl " & quote & "which pdflatex" & quote
put last line of shell( IT)
Code: Select all
/Library/TeX/texbin/pdflatex
Great!thatkeith wrote:Heh. Simon Says Clean Environment? Very interesting result!Code: Select all
/Library/TeX/texbin/pdflatex
Code: Select all
get "bash -cl " && quote & "/Users/thatkeith/Desktop/pdfjam/bin/pdfjam --vanilla" && theImposedPath && "--nup 2x1 --frame true --landscape --outfile" && theJoinedPath & quote
put shell(it) into field 1
It is !thatkeith wrote:I don't suppose it's possible to set the PATH to something by hand – or rather, by script?