I'm using LyX (at Windows) and I'm trying to get pdf file output while I have PSTricks code (I put as \ERT.
I Try to write at the preamble things like: \usepackage[off]{auto-pst-pdf}
and \usepackage[pdf]{pstricks}, but it still don't compile to pdf file output. (also ps4pdf doesn't help...).
Can you tell me how can I do it?
Thank you!
Here is the code:
% Preview source code
%% LyX 2.0.5.1 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[twocolumn,english,hebrew]{article}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[T1]{fontenc}
\usepackage[cp1255]{inputenc}
\setlength{\parindent}{0bp}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\def\@outputdblcol{%
\if@firstcolumn
\global \@firstcolumnfalse
\global \setbox\@leftcolumn \box\@outputbox
\else
\global \@firstcolumntrue
\setbox\@outputbox \vbox {%
\hb@xt@\textwidth {%
\kern\textwidth \kern-\columnwidth %**
\hb@xt@\columnwidth {%
\box\@leftcolumn \hss}%
\kern-\textwidth %**
\hfil
{\normalcolor\vrule \@width\columnseprule}%
\hfil
\kern-\textwidth %**
\hb@xt@\columnwidth {%
\box\@outputbox \hss}%
\kern-\columnwidth \kern\textwidth %**
}%
}%
\@combinedblfloats
\@outputpage
\begingroup
\@dblfloatplacement
\@startdblcolumn
\@whilesw\if@fcolmade \fi
{\@outputpage
\@startdblcolumn}%
\endgroup
\fi
}
\@mparswitchtrue
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\usepackage{theorem}
\theorembodyfont{\upshape}
\newtheorem{theorem}{\R{משפט}}[section]
\AtBeginDocument{\make@lr\thetheorem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[crop=off]{auto-pst-pdf}
\usepackage{pstricks}
\makeatother
\usepackage{babel}
\begin{document}
\pscircle(0,0){1}
\end{document}

~/lyx/lyxrc.defaultYou can edit also this file. – Jan 09 '14 at 12:04\usepackage[crop=off]{auto-pst-pdf}. Maybe you have no Perl installed. – Jan 09 '14 at 14:48ctrl+dis fine...). – heblyx Jan 09 '14 at 15:10shellit should be-or--?? – heblyx Jan 09 '14 at 15:13--shell-escapeor-shell-escapemakes no difference – Jan 09 '14 at 15:34pspictureenvironment is missing. – Jan 09 '14 at 19:07