LyX with bashful package

2016-08-30 Thread Ron Stone
Hi,

Has anyone successfully used bashful with LyX. I load the package:

\usepackage{bashful}

and then add a simple test as ERT:

\bash[stdout] <> <> <>ls -F ~/Documents <> <> <>\END <>

 <>
But I get the following error:

 \END
^^M
*** (cannot \read from terminal in nonstop modes)

Any suggestions are appreciated.

R.
 <>

Issue with Spreadtab module

2016-05-29 Thread Ron Stone
Hi,

One of the documented features of the spreadtab module is the ability to save 
calculated values (see section 1.6 of the SpreadtabWithLyx.pdf)

The method described is not working either in LyX 2.1 or 2.2. The instructions 
say to insert > Short Title before the table, but it does not exist in these 
versions, and the source file of the instructions (SpreadtabWithLyx.lyx) throws 
an error on section 1.6 when building:

\sLRetrieve{\Balance}
.\label{If-we-wish} It is tempting to put this
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Does anyone know if there is currently a way to save cell results for reuse 
outside the table? This is important for the situation I’m working with.

Thanks,

Ron

Re: Problem with Inkscape integration: path to SVG file converted to long filename

2016-05-13 Thread Ron Stone
Thanks for the feedback.

I got this working by making two changes:

1. The path declaration described in

In the Preferences under Paths you should append 
:/Applications/Inkscape.app/Contents/Resources/bin at the end if you have 
Inkscape installed at the default location. (Make sure a colon separates it 
from the other entries.) 

seemed to be ignored. I had to add it to my bash $PATH
 
2. Perhaps because of 1, path variables were missing from the converters. For 
example, SVG -> PDF had --file=$$i instead of —file=$$p/$$i, and similarly for 
—export-pdf, it was missing the $$p/


> On May 13, 2016, at 12:26 AM, Richard Heck <rgh...@lyx.org> wrote:
> 
> On 05/12/2016 08:28 PM, Ron Stone wrote:
>> Hi,
>> 
>> I’ve followed the instructions at  
>> <https://wiki.lyx.org/Tips/UseInkscapeSVGImages>https://wiki.lyx.org/Tips/UseInkscapeSVGImages
>>  <https://wiki.lyx.org/Tips/UseInkscapeSVGImages>  but I’m encountering the 
>> following error on Mac OS El Capitan:
>> 
>> The command
>> Inkscape --file="1_Users_ronstone_Desktop_drawing.svg" --export-area-drawing 
>> --without-gui --export-pdf="1_Users_ronstone_Desktop_drawing.pdf"
>> has not yet completed.
>> 
>> The SVG file I am trying to incorporate is drawing.svg, on the desktop (same 
>> location as the .lyx file that is using it). I don’t understand the 
>> conversion of the full file path to: 1_Users_ronstone_Desktop_drawing.svg in 
>> the above error message. Where is that filename coming from?
> 
> Conversions are performed in LyX's temporary directory, in order to avoid 
> polluting your own directories. I do not know exactly where that directory is 
> on OSX. On Linux, it is at /tmp/lyx_temdir.XX, where the X's are random 
> characters. Inside that directory are various subdirectories for different 
> documents. LyX's copies the file to be converted into the relevant directory 
> but renames it so as to avoid possible naming conflicts.
> 
> Hard to know why the command isn't completing. I'd suggest you try running 
> this sort of command from a terminal. If you can actually run it in LyX's 
> temporary directory, on the copied svg file.
> 
> Richard
> 



Problem with Inkscape integration: path to SVG file converted to long filename

2016-05-12 Thread Ron Stone
Hi,

I’ve followed the instructions at 
https://wiki.lyx.org/Tips/UseInkscapeSVGImages 
  but I’m encountering the 
following error on Mac OS El Capitan:

The command
Inkscape --file="1_Users_ronstone_Desktop_drawing.svg" --export-area-drawing 
--without-gui --export-pdf="1_Users_ronstone_Desktop_drawing.pdf"
has not yet completed.

The SVG file I am trying to incorporate is drawing.svg, on the desktop (same 
location as the .lyx file that is using it). I don’t understand the conversion 
of the full file path to: 1_Users_ronstone_Desktop_drawing.svg in the above 
error message. Where is that filename coming from?

Thanks.