On Mon, Apr 27, 2015 at 01:08:46AM +0200, Enrico Forestieri wrote:
> 
> > > Still, I would see this as a palliative and think that reverting the
> > > offending commit is better. Let's see what others think.
> 
> Though, I have not changed idea...

Attached you can find a document with a preview. It works fine in 2.1,
whatever the default output format, but miserably fails on 2.2 after
http://www.lyx.org/trac/changeset/0bb378ba/lyxgit
if the default output format is set to pdflatex in the preferences.

-- 
Enrico
#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\begin_preamble
\usepackage{pstricks}
\end_preamble
\use_default_options true
\begin_modules
theorems-std
theorems-chap
\end_modules
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
This is a scalene triangle with labelled vertices.
 The PSTricks code has been placed in an ERT inset which has, in turn, been
 put in an instant preview inset (
\family sans
Insert>Preview
\family default
).
\end_layout

\begin_layout Standard
\begin_inset Preview

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
pspicture*(-.5,-.5)(4.5,4)
\end_layout

\begin_layout Plain Layout

%
\backslash
psgrid[gridwidth=.3pt,gridlabels=8pt,gridlabelcolor=gray](0,0)(-1,-1)(5,5)
\end_layout

\begin_layout Plain Layout

%enter commands after this line
\end_layout

\begin_layout Plain Layout

\end_layout

\begin_layout Plain Layout


\backslash
pspolygon(0,0)(4,0)(1,3)
\end_layout

\begin_layout Plain Layout


\backslash
uput{2pt}[180](0,0){A}
\end_layout

\begin_layout Plain Layout


\backslash
uput{2pt}[0](4,0){B}
\end_layout

\begin_layout Plain Layout


\backslash
uput{2pt}[90](1,3){C}
\end_layout

\begin_layout Plain Layout

\end_layout

\begin_layout Plain Layout

%enter commands above this line
\end_layout

\begin_layout Plain Layout


\backslash
endpspicture
\end_layout

\end_inset


\end_layout

\end_inset


\end_layout

\begin_layout Standard
To view the document click the 
\family sans
View other formats
\family default
 button and either choose 
\family sans
View Postscript
\family default
 which will create a Postscript file, or choose 
\family sans
View PDF (ps2pdf) 
\family default
which will create a pdf of the document.
 Alternatively the document can be exported either to 
\family sans
Postscript
\family default
 or to 
\family sans
PDF (ps2pdf)
\family default
.
\end_layout

\end_body
\end_document

Reply via email to