Re: lyx + pstricks -> pdf

2009-07-19 Thread Manveru
2009/7/17 Jeremy :
> On Friday 10 July 2009, Jeremy wrote:
[...]
> I finally got this to work.
> I added the option --shell-escape to the LaTeX (pdflatex) -> PDF(pdflatex) and
> clicked "modfiy"
> but when I clicked on the pdf button to regenerate and view the pdf, the
> pstricks logo was missing, but it was visible in the dvi and ps views.
[...]

Please be careful with --shell-escape option, as my experience shows
that it may cause troubles. I do not know to exact reason, but latex
with this option fails for one document while works for other. It must
be a case when not all packages are working with --shell-escape
option.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: lyx + pstricks -> pdf

2009-07-17 Thread Jeremy
On Friday 10 July 2009, Jeremy wrote:
> I would like to add to my letters a signature created with inkscape from a
> scanned png and converted to a path and saved as a pstricks .tex file.
>
> So in my .lyx file I have
> \begin{document}
> \newsavebox{\mysignature}
> \sbox{\mysignature}{\input{./mysignature.tex}}
> . . .
> \begin{minipage}[pos]{width}
> \closingphrase
>\vspace{.6in} \\
>\begin{textblock*}{2.5in}[0,1](0pt,0pt)
>   \usebox{\mysignature}
>\end{textblock*}
> My Typed Name
> \end{minipage}
>
> The above works just fine with lyx for dvi and ps output.
> But I can't generate pdf.
>
> In order to directly generate pdfs I need to include in my preamble
> \usepackage{auto-pst-pdf}
>
> and convert to pdf using
> pdflatex --shell-escape file.tex
>
> However, lyx does not allow me to change or add options to the pdflatex
> converter.

I finally got this to work.
I added the option --shell-escape to the LaTeX (pdflatex) -> PDF(pdflatex) and 
clicked "modfiy"
but when I clicked on the pdf button to regenerate and view the pdf, the 
pstricks logo was missing, but it was visible in the dvi and ps views.

I then clicked on "View -> PDF(ps2pdf)" and the resulting pdf did show the 
pstricks logo. However, my envelopes were rotated to landscape view.

So I then added the auto-pst-pdf option -dAutoRotatePages=/None
\usepackage[ps2pdf={-dAutoRotatePages=/None}]{auto-pst-pdf}

but the envelopes were still rotated to landscape.

So I then changed the converter for "Postscript -> PDF (ps2pdf)"
Converter: "ps2pdf13 -dAutoRotatePages=/None $$i $$o"

Now I can generate letters+envelopes in pdf format with included pstricks 
logos/signatures.



Re: lyx + pstricks -> pdf

2009-07-10 Thread Michael Joyner ᏩᏯ

Add a new pdf converter, look in the wiki at the pdf (xetex) example.

Jeremy wrote:
> I would like to add to my letters a signature created with inkscape from a 
> scanned png and converted to a path and saved as a pstricks .tex file.
>
> So in my .lyx file I have
> \begin{document}
> \newsavebox{\mysignature}
> \sbox{\mysignature}{\input{./mysignature.tex}}
> . . .
> \begin{minipage}[pos]{width}
> \closingphrase
>\vspace{.6in} \\
>\begin{textblock*}{2.5in}[0,1](0pt,0pt)
>   \usebox{\mysignature}
>\end{textblock*}
> My Typed Name
> \end{minipage}
>
> The above works just fine with lyx for dvi and ps output.
> But I can't generate pdf.
>
> In order to directly generate pdfs I need to include in my preamble
> \usepackage{auto-pst-pdf}
>
> and convert to pdf using
> pdflatex --shell-escape file.tex
>
> However, lyx does not allow me to change or add options to the pdflatex 
> converter.
>
>   


-- 
LyX: http://www.lyx.org/ OpenOffice: http://www.openoffice.org/
Inkscape: http://www.inkscape.org/ Scribus: http://www.scribus.net/
GIMP: http://www.gimp.org/ PDF: http://www.pdfforge.org/




signature.asc
Description: OpenPGP digital signature


lyx + pstricks -> pdf

2009-07-10 Thread Jeremy
I would like to add to my letters a signature created with inkscape from a 
scanned png and converted to a path and saved as a pstricks .tex file.

So in my .lyx file I have
\begin{document}
\newsavebox{\mysignature}
\sbox{\mysignature}{\input{./mysignature.tex}}
. . .
\begin{minipage}[pos]{width}
\closingphrase
   \vspace{.6in} \\
   \begin{textblock*}{2.5in}[0,1](0pt,0pt)
  \usebox{\mysignature}
   \end{textblock*}
My Typed Name
\end{minipage}

The above works just fine with lyx for dvi and ps output.
But I can't generate pdf.

In order to directly generate pdfs I need to include in my preamble
\usepackage{auto-pst-pdf}

and convert to pdf using
pdflatex --shell-escape file.tex

However, lyx does not allow me to change or add options to the pdflatex 
converter.