Re: Image Format Conversion on OS X with Transmute

2014-06-13 Thread James Dean Palmer
Hi Jerry, I wasn't able to edit the LyX wiki - the Mac page is 
protected with a password other than LyX.


To answer your question, the -n pageno selects the page from the source 
PDF such that it can be rendered to a target (probably not a PDF).  In 
this way you can grab page 22 from your favorite PDF and create a PNG 
thumbnail of it.


I just released 1.2 which adds support for PDF as a target.  As a 
target it currently allows only one page.  The target support is also 
nice for LyX because now I can add these preference lines,


   \converter ps png transmute -i $$i $$o 
   \converter eps png transmute -i $$i $$o 
   \converter pdf png transmute -i $$i $$o 
   \converter eps pdf6 transmute -i $$i $$o 

and now it uses transmute for the eps to pdf conversion (for pdflatex, 
etc.) and not epstopdf which depends on ghostscript.  This has only 
been tested on the book I'm working on so I would appreciate 
testing/feedback by any other Mac users interested in going ghostscript 
free.


The LyX example is also provided in the transmute README,

   https://bitbucket.org/jdpalmer/transmute

James

On 2014-05-30 03:37:32 +, Jerry said:

James, I haven't tried this but it looks awesomely awesome. Would you 
mind making a note on the LyX wiki about it? And maybe an indication, 
if not already present, how to install without brew, e.g., put in 
/some/path for those who don't know this.


And maybe you can help my confusion. PDF is listed as source-file only 
but the note about -n pageno sort of indicates that pageno can be 
applied to rendered PDFs. I'm probably misreading something.


Jerry






Re: Image Format Conversion on OS X with Transmute

2014-06-13 Thread James Dean Palmer
Hi Jerry, I wasn't able to edit the LyX wiki - the Mac page is 
protected with a password other than LyX.


To answer your question, the -n pageno selects the page from the source 
PDF such that it can be rendered to a target (probably not a PDF).  In 
this way you can grab page 22 from your favorite PDF and create a PNG 
thumbnail of it.


I just released 1.2 which adds support for PDF as a target.  As a 
target it currently allows only one page.  The target support is also 
nice for LyX because now I can add these preference lines,


   \converter ps png transmute -i $$i $$o 
   \converter eps png transmute -i $$i $$o 
   \converter pdf png transmute -i $$i $$o 
   \converter eps pdf6 transmute -i $$i $$o 

and now it uses transmute for the eps to pdf conversion (for pdflatex, 
etc.) and not epstopdf which depends on ghostscript.  This has only 
been tested on the book I'm working on so I would appreciate 
testing/feedback by any other Mac users interested in going ghostscript 
free.


The LyX example is also provided in the transmute README,

   https://bitbucket.org/jdpalmer/transmute

James

On 2014-05-30 03:37:32 +, Jerry said:

James, I haven't tried this but it looks awesomely awesome. Would you 
mind making a note on the LyX wiki about it? And maybe an indication, 
if not already present, how to install without brew, e.g., put in 
/some/path for those who don't know this.


And maybe you can help my confusion. PDF is listed as source-file only 
but the note about -n pageno sort of indicates that pageno can be 
applied to rendered PDFs. I'm probably misreading something.


Jerry






Re: Image Format Conversion on OS X with Transmute

2014-06-13 Thread James Dean Palmer
Hi Jerry, I wasn't able to edit the LyX wiki - the Mac page is 
protected with a password other than LyX.


To answer your question, the -n pageno selects the page from the source 
PDF such that it can be rendered to a target (probably not a PDF).  In 
this way you can grab page 22 from your favorite PDF and create a PNG 
thumbnail of it.


I just released 1.2 which adds support for PDF as a target.  As a 
target it currently allows only one page.  The target support is also 
nice for LyX because now I can add these preference lines,


   \converter "ps" "png" "transmute -i $$i $$o" ""
   \converter "eps" "png" "transmute -i $$i $$o" ""
   \converter "pdf" "png" "transmute -i $$i $$o" ""
   \converter "eps" "pdf6" "transmute -i $$i $$o" ""

and now it uses transmute for the eps to pdf conversion (for pdflatex, 
etc.) and not epstopdf which depends on ghostscript.  This has only 
been tested on the book I'm working on so I would appreciate 
testing/feedback by any other Mac users interested in going ghostscript 
free.


The LyX example is also provided in the transmute README,

   https://bitbucket.org/jdpalmer/transmute

James

On 2014-05-30 03:37:32 +, Jerry said:

James, I haven't tried this but it looks awesomely awesome. Would you 
mind making a note on the LyX wiki about it? And maybe an indication, 
if not already present, how to install without brew, e.g., put in 
/some/path for those who don't know this.


And maybe you can help my confusion. PDF is listed as source-file only 
but the note about -n pageno sort of indicates that pageno can be 
applied to rendered PDFs. I'm probably misreading something.


Jerry






Re: Image Format Conversion on OS X with Transmute

2014-05-29 Thread Jerry

On May 28, 2014, at 11:12 AM, James Dean Palmer ja...@tiger3k.com wrote:

 I recently wrote a little command line utility called transmute that converts 
 between various image formats using only the Quartz, CoreGraphics, and Cocoa 
 APIs.  Apple's sips utility can do the same sort of thing but, oddly, sips 
 doesn't support EPS or PS.
 
 transmute also has some other neat tricks like clipboard support, input and 
 output from stdin/stdout and setting the page number for conversion (PDF 
 only). It's available here:
 
 https://bitbucket.org/jdpalmer/transmute
 
 Once installed, you just need to add this to your preferences file:
 
 \converter ps png transmute $$i $$o 
 \converter eps png transmute $$i $$o 
 \converter pdf png transmute $$i $$o 
 
 And then there's no more dependency on ghostscript or XQuartz for EPS, PS, 
 and PDF image previews.
 
 Best,
 James
 
James, I haven't tried this but it looks awesomely awesome. Would you mind 
making a note on the LyX wiki about it? And maybe an indication, if not already 
present, how to install without brew, e.g., put in /some/path for those who 
don't know this.

And maybe you can help my confusion. PDF is listed as source-file only but the 
note about -n pageno sort of indicates that pageno can be applied to rendered 
PDFs. I'm probably misreading something.

Jerry



Re: Image Format Conversion on OS X with Transmute

2014-05-29 Thread Jerry

On May 28, 2014, at 11:12 AM, James Dean Palmer ja...@tiger3k.com wrote:

 I recently wrote a little command line utility called transmute that converts 
 between various image formats using only the Quartz, CoreGraphics, and Cocoa 
 APIs.  Apple's sips utility can do the same sort of thing but, oddly, sips 
 doesn't support EPS or PS.
 
 transmute also has some other neat tricks like clipboard support, input and 
 output from stdin/stdout and setting the page number for conversion (PDF 
 only). It's available here:
 
 https://bitbucket.org/jdpalmer/transmute
 
 Once installed, you just need to add this to your preferences file:
 
 \converter ps png transmute $$i $$o 
 \converter eps png transmute $$i $$o 
 \converter pdf png transmute $$i $$o 
 
 And then there's no more dependency on ghostscript or XQuartz for EPS, PS, 
 and PDF image previews.
 
 Best,
 James
 
James, I haven't tried this but it looks awesomely awesome. Would you mind 
making a note on the LyX wiki about it? And maybe an indication, if not already 
present, how to install without brew, e.g., put in /some/path for those who 
don't know this.

And maybe you can help my confusion. PDF is listed as source-file only but the 
note about -n pageno sort of indicates that pageno can be applied to rendered 
PDFs. I'm probably misreading something.

Jerry



Re: Image Format Conversion on OS X with Transmute

2014-05-29 Thread Jerry

On May 28, 2014, at 11:12 AM, James Dean Palmer  wrote:

> I recently wrote a little command line utility called transmute that converts 
> between various image formats using only the Quartz, CoreGraphics, and Cocoa 
> APIs.  Apple's sips utility can do the same sort of thing but, oddly, sips 
> doesn't support EPS or PS.
> 
> transmute also has some other neat tricks like clipboard support, input and 
> output from stdin/stdout and setting the page number for conversion (PDF 
> only). It's available here:
> 
> https://bitbucket.org/jdpalmer/transmute
> 
> Once installed, you just need to add this to your preferences file:
> 
> \converter "ps" "png" "transmute $$i $$o" ""
> \converter "eps" "png" "transmute $$i $$o" ""
> \converter "pdf" "png" "transmute $$i $$o" ""
> 
> And then there's no more dependency on ghostscript or XQuartz for EPS, PS, 
> and PDF image previews.
> 
> Best,
> James
> 
James, I haven't tried this but it looks awesomely awesome. Would you mind 
making a note on the LyX wiki about it? And maybe an indication, if not already 
present, how to install without brew, e.g., put in /some/path for those who 
don't know this.

And maybe you can help my confusion. PDF is listed as source-file only but the 
note about -n pageno sort of indicates that pageno can be applied to rendered 
PDFs. I'm probably misreading something.

Jerry



Image Format Conversion on OS X with Transmute

2014-05-28 Thread James Dean Palmer
I recently wrote a little command line utility called transmute that 
converts between various image formats using only the Quartz, 
CoreGraphics, and Cocoa APIs.  Apple's sips utility can do the same 
sort of thing but, oddly, sips doesn't support EPS or PS.


transmute also has some other neat tricks like clipboard support, input 
and output from stdin/stdout and setting the page number for conversion 
(PDF only). It's available here:


https://bitbucket.org/jdpalmer/transmute

Once installed, you just need to add this to your preferences file:

\converter ps png transmute $$i $$o 
\converter eps png transmute $$i $$o 
\converter pdf png transmute $$i $$o 

And then there's no more dependency on ghostscript or XQuartz for EPS, 
PS, and PDF image previews.


Best,
James




Image Format Conversion on OS X with Transmute

2014-05-28 Thread James Dean Palmer
I recently wrote a little command line utility called transmute that 
converts between various image formats using only the Quartz, 
CoreGraphics, and Cocoa APIs.  Apple's sips utility can do the same 
sort of thing but, oddly, sips doesn't support EPS or PS.


transmute also has some other neat tricks like clipboard support, input 
and output from stdin/stdout and setting the page number for conversion 
(PDF only). It's available here:


https://bitbucket.org/jdpalmer/transmute

Once installed, you just need to add this to your preferences file:

\converter ps png transmute $$i $$o 
\converter eps png transmute $$i $$o 
\converter pdf png transmute $$i $$o 

And then there's no more dependency on ghostscript or XQuartz for EPS, 
PS, and PDF image previews.


Best,
James




Image Format Conversion on OS X with Transmute

2014-05-28 Thread James Dean Palmer
I recently wrote a little command line utility called transmute that 
converts between various image formats using only the Quartz, 
CoreGraphics, and Cocoa APIs.  Apple's sips utility can do the same 
sort of thing but, oddly, sips doesn't support EPS or PS.


transmute also has some other neat tricks like clipboard support, input 
and output from stdin/stdout and setting the page number for conversion 
(PDF only). It's available here:


https://bitbucket.org/jdpalmer/transmute

Once installed, you just need to add this to your preferences file:

\converter "ps" "png" "transmute $$i $$o" ""
\converter "eps" "png" "transmute $$i $$o" ""
\converter "pdf" "png" "transmute $$i $$o" ""

And then there's no more dependency on ghostscript or XQuartz for EPS, 
PS, and PDF image previews.


Best,
James




Re: format conversion

2009-08-23 Thread Pol
Vincent van Ravesteijn wrote:
 lyx -e lyx14x file.lyx
 

Thank you. That allowed me to write down a zsh script to convert files into
*.lyx14 then to move them into a special directory, after having been
renamed *.lyx again. 

---P
- enc
#!/bin/zsh
 (lyx-e lyx14x *lyx   \
  for i in *.lyx14; do mv -- $i lyx-1.4/${i:r}.lyx; done
) 
---



Re: format conversion

2009-08-23 Thread Pol
Vincent van Ravesteijn wrote:
 lyx -e lyx14x file.lyx
 

Thank you. That allowed me to write down a zsh script to convert files into
*.lyx14 then to move them into a special directory, after having been
renamed *.lyx again. 

---P
- enc
#!/bin/zsh
 (lyx-e lyx14x *lyx   \
  for i in *.lyx14; do mv -- $i lyx-1.4/${i:r}.lyx; done
) 
---



Re: format conversion

2009-08-23 Thread Pol
Vincent van Ravesteijn wrote:
> lyx -e lyx14x file.lyx
> 

Thank you. That allowed me to write down a zsh script to convert files into
*.lyx14 then to move them into a special directory, after having been
renamed *.lyx again. 

---P
- enc
#!/bin/zsh
 (lyx-e lyx14x *lyx &&  \
  for i in *.lyx14; do mv -- "$i" lyx-1.4/"${i:r}.lyx"; done
) 
---



format conversion

2009-08-20 Thread Pol
Is it possible to convert a lyx doc from 1.6 to 1.4 by a commnd line
instruction?

My attempts starting from 'lyx -e LyX 4.3.x' followed by a number of
variations, all failed.


Thank you

---P



Re: format conversion

2009-08-20 Thread Vincent van Ravesteijn

Pol schreef:

Is it possible to convert a lyx doc from 1.6 to 1.4 by a commnd line
instruction?

My attempts starting from 'lyx -e LyX 4.3.x' followed by a number of
variations, all failed.


  


Yes,  it is:

lyx -e lyx14x file.lyx

Vincent


format conversion

2009-08-20 Thread Pol
Is it possible to convert a lyx doc from 1.6 to 1.4 by a commnd line
instruction?

My attempts starting from 'lyx -e LyX 4.3.x' followed by a number of
variations, all failed.


Thank you

---P



Re: format conversion

2009-08-20 Thread Vincent van Ravesteijn

Pol schreef:

Is it possible to convert a lyx doc from 1.6 to 1.4 by a commnd line
instruction?

My attempts starting from 'lyx -e LyX 4.3.x' followed by a number of
variations, all failed.


  


Yes,  it is:

lyx -e lyx14x file.lyx

Vincent


format conversion

2009-08-20 Thread Pol
Is it possible to convert a lyx doc from 1.6 to 1.4 by a commnd line
instruction?

My attempts starting from 'lyx -e "LyX 4.3.x"' followed by a number of
variations, all failed.


Thank you

---P



Re: format conversion

2009-08-20 Thread Vincent van Ravesteijn

Pol schreef:

Is it possible to convert a lyx doc from 1.6 to 1.4 by a commnd line
instruction?

My attempts starting from 'lyx -e "LyX 4.3.x"' followed by a number of
variations, all failed.


  


Yes,  it is:

lyx -e lyx14x file.lyx

Vincent


Table format conversion

2004-02-18 Thread Joachim Zach
Hello,

I have noticed that tables in older Lyx-files (in my case lyxformat 215 
created by KLyX) are not imported correctly into Lyx 1.3.1

I found that this is due to an additional blank after a \newline command 
within the tables.

Executing

sed s/newline $/newline/ myoldfile.lyx  mymodfile.lyx

repairs this and mymodfile.lyx is now converted correctly.

Joachim Zach

--
Dr. Joachim ZachEnglerstr. 28   Tel: +49 6221 89467-12
CEOS GmbH   D-69126 Heidelberg  Fax: +49 6221 89467-29
Germany 



Re: Table format conversion

2004-02-18 Thread Jose' Matos
On Wednesday 18 February 2004 12:23, Joachim Zach wrote:
 Hello,

 I have noticed that tables in older Lyx-files (in my case lyxformat 215
 created by KLyX) are not imported correctly into Lyx 1.3.1

 I found that this is due to an additional blank after a \newline command
 within the tables.

  That is true and has been fixed in 1.3.3.
  Thanks for the report. :-)

 Executing

 sed s/newline $/newline/ myoldfile.lyx  mymodfile.lyx

 repairs this and mymodfile.lyx is now converted correctly.

 Joachim Zach

-- 
José Abílio

LyX and docbook, a perfect match. :-)


Table format conversion

2004-02-18 Thread Joachim Zach
Hello,

I have noticed that tables in older Lyx-files (in my case lyxformat 215 
created by KLyX) are not imported correctly into Lyx 1.3.1

I found that this is due to an additional blank after a \newline command 
within the tables.

Executing

sed s/newline $/newline/ myoldfile.lyx  mymodfile.lyx

repairs this and mymodfile.lyx is now converted correctly.

Joachim Zach

--
Dr. Joachim ZachEnglerstr. 28   Tel: +49 6221 89467-12
CEOS GmbH   D-69126 Heidelberg  Fax: +49 6221 89467-29
Germany 



Re: Table format conversion

2004-02-18 Thread Jose' Matos
On Wednesday 18 February 2004 12:23, Joachim Zach wrote:
 Hello,

 I have noticed that tables in older Lyx-files (in my case lyxformat 215
 created by KLyX) are not imported correctly into Lyx 1.3.1

 I found that this is due to an additional blank after a \newline command
 within the tables.

  That is true and has been fixed in 1.3.3.
  Thanks for the report. :-)

 Executing

 sed s/newline $/newline/ myoldfile.lyx  mymodfile.lyx

 repairs this and mymodfile.lyx is now converted correctly.

 Joachim Zach

-- 
José Abílio

LyX and docbook, a perfect match. :-)


Table format conversion

2004-02-18 Thread Joachim Zach
Hello,

I have noticed that tables in older Lyx-files (in my case lyxformat 215 
created by KLyX) are not imported correctly into Lyx 1.3.1

I found that this is due to an additional blank after a \newline command 
within the tables.

Executing

sed "s/newline $/newline/" myoldfile.lyx > mymodfile.lyx

repairs this and mymodfile.lyx is now converted correctly.

Joachim Zach

--
Dr. Joachim ZachEnglerstr. 28   Tel: +49 6221 89467-12
CEOS GmbH   D-69126 Heidelberg  Fax: +49 6221 89467-29
Germany 



Re: Table format conversion

2004-02-18 Thread Jose' Matos
On Wednesday 18 February 2004 12:23, Joachim Zach wrote:
> Hello,
>
> I have noticed that tables in older Lyx-files (in my case lyxformat 215
> created by KLyX) are not imported correctly into Lyx 1.3.1
>
> I found that this is due to an additional blank after a \newline command
> within the tables.

  That is true and has been fixed in 1.3.3.
  Thanks for the report. :-)

> Executing
>
> sed "s/newline $/newline/" myoldfile.lyx > mymodfile.lyx
>
> repairs this and mymodfile.lyx is now converted correctly.
>
> Joachim Zach

-- 
José Abílio

LyX and docbook, a perfect match. :-)


format conversion?

2000-06-13 Thread Joao B. Oliveira


Hi everyone,

I was just wondering if there is some converter/conversion mode to
upgrade LyX files from the 2.15 format from LyX 1.1.4 to version 2.16
used in LyX 1.1.5. Or is the conversion done automatically? It seems not
to be the case, as I am getting error messages by opening old files...

thanks for any hint!

jb




format conversion?

2000-06-13 Thread Joao B. Oliveira


Hi everyone,

I was just wondering if there is some converter/conversion mode to
upgrade LyX files from the 2.15 format from LyX 1.1.4 to version 2.16
used in LyX 1.1.5. Or is the conversion done automatically? It seems not
to be the case, as I am getting error messages by opening old files...

thanks for any hint!

jb




format conversion?

2000-06-13 Thread Joao B. Oliveira


Hi everyone,

I was just wondering if there is some converter/conversion mode to
upgrade LyX files from the 2.15 format from LyX 1.1.4 to version 2.16
used in LyX 1.1.5. Or is the conversion done automatically? It seems not
to be the case, as I am getting error messages by opening old files...

thanks for any hint!

jb