Re: Automize command

2023-04-05 Thread Herbert Voss



Am 05.04.23 um 13:05 schrieb Patrick Dupre:

Am 05.04.23 um 12:22 schrieb Patrick Dupre:

Which my configuration I need really need to run
export Latex (plain); latex ; bibtex ; latex ; dvipdf -dALLOWPSTRANSPARENCY

You never told us _why_ do you need the dvi route and cannot use
pdflatex or one of the newer engines??

Because, it just do not work with pstricks


Except of pst-text I run _all_ examples with lualatex and get directly
my PDF. Only for some functions which needs heavy calculations, the
old dvi route is faster.

run with lualatex

\DocumentMetadata{}%   delete the line for old TeXlive before 2020
\documentclass[pstricks,border=10mm]{standalone}
\usepackage{pst-plot}
\usepackage{pst-math}
\begin{document}

\psset{yunit=1.5}
\begin{pspicture} (0,0)(10,5)
\psaxes[tickstyle=bottom]{->}(0,0)(10,5)[$x$,0][$f(x)$,90]
\psset{linewidth=1.5pt,plotpoints=500}
\psplot[linecolor=blue]{1}{10}{%
    1 x div GAMMA 4 x mul sub x 1 add GAMMA div abs }
\psplot[linecolor=red,algebraic]{1}{10}{50/(x+2)^3}
\end{pspicture}

\end{document}


Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Automize command

2023-04-05 Thread Patrick Dupre


>
> Am 05.04.23 um 12:22 schrieb Patrick Dupre:
> >
> > Which my configuration I need really need to run
> > export Latex (plain); latex ; bibtex ; latex ; dvipdf -dALLOWPSTRANSPARENCY
> 
> You never told us _why_ do you need the dvi route and cannot use
> pdflatex or one of the newer engines??
Because, it just do not work with pstricks

> 
> Herbert
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
> 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Automize command

2023-04-05 Thread Herbert Voss

Am 05.04.23 um 12:22 schrieb Patrick Dupre:


Which my configuration I need really need to run
export Latex (plain); latex ; bibtex ; latex ; dvipdf -dALLOWPSTRANSPARENCY


You never told us _why_ do you need the dvi route and cannot use
pdflatex or one of the newer engines??

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Automize command

2023-04-05 Thread Patrick Dupre

>
> Le 04/04/2023 à 18:27, Richard Kimberly Heck a écrit :
> > On 2023-04-03 10:50 , Patrick Dupre wrote:
> >>> Hello,
> >>>
> >>> I tried to automatize the commands
> >>> export Latex (plain); latex ; dvipdf -dALLOWPSTRANSPARENCY
> >>> but I have not been successful.
> > 
> > You need to set up a new format, say dvitrans, and then define a latex 
> > -> dvitrans converter that will run that command. LyX will do the rest.
> 
> Or just modify the dvi->pdf converter? (we have one, right ?)


Which my configuration I need really need to run 
export Latex (plain); latex ; bibtex ; latex ; dvipdf -dALLOWPSTRANSPARENCY

I have dvi->pdf (dvipdfm)

I create a new format
Tkpdf
with short name: tkpdf
extension pdf
no editor, no view
Default output format
With tex fonts: pdf (pdflatex)
With non-tex fonts: pdf (Xetex)

I created a converter
LaTeX(plain) -> Tkpdf
with
from format DVI
to Format pdf (dvipdfm)
Converter dvipdfmx  -o $$o $$i
Extraflag: hyperref-driver=dvipdfmx
Converter File Cache enabled

When I export to Tkpdf
I keep "Send exported file to command:"  empty

I get: dvips: ! Bad DVI file: first byte not preamble
and
a .pdf file with:

%PDF-1.7
%�쏢
%%Invocation: gs -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=? 
-sOutputFile=? -
5 0 obj
<>
stream
x�+T0�3T0A(5Ieendstream
endobj
6 0 obj
23
endobj
4 0 obj
<>
/Contents 5 0 R
>>
endobj
3 0 obj
<< /Type /Pages /Kids [
4 0 R
] /Count 1
>>
endobj
1 0 obj
<>
endobj
7 0 obj
<>stream





2023-04-05T12:19:42+02:00
2023-04-05T12:19:42+02:00
UnknownApplication

Untitled





endstream
endobj
2 0 obj
<>endobj
xref
0 8
00 65535 f 
000395 0 n 
001717 0 n 
000336 0 n 
000222 0 n 
000111 0 n 
000204 0 n 
000459 0 n 
trailer
<< /Size 8 /Root 1 0 R /Info 2 0 R
/ID []
>>
startxref
1842
%%EOF

In fact, it is empty




-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Automize command

2023-04-04 Thread Jean-Marc Lasgouttes

Le 04/04/2023 à 18:27, Richard Kimberly Heck a écrit :

On 2023-04-03 10:50 , Patrick Dupre wrote:

Hello,

I tried to automatize the commands
export Latex (plain); latex ; dvipdf -dALLOWPSTRANSPARENCY
but I have not been successful.


You need to set up a new format, say dvitrans, and then define a latex 
-> dvitrans converter that will run that command. LyX will do the rest.


Or just modify the dvi->pdf converter? (we have one, right ?)

JMarc

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Automize command

2023-04-04 Thread Richard Kimberly Heck

On 2023-04-03 10:50 , Patrick Dupre wrote:

Hello,

I tried to automatize the commands
export Latex (plain); latex ; dvipdf -dALLOWPSTRANSPARENCY
but I have not been successful.


You need to set up a new format, say dvitrans, and then define a latex 
-> dvitrans converter that will run that command. LyX will do the rest.


Riki


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Automize command

2023-04-03 Thread Dr Eberhard Lisse

What are you trying to do/achieve?

el

On 2023-04-03 10:50 , Patrick Dupre wrote:

Hello,

I tried to automatize the commands
export Latex (plain); latex ; dvipdf -dALLOWPSTRANSPARENCY
but I have not been successful.

Can I get some help?

Thank.



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Automize command

2023-04-03 Thread Patrick Dupre
Hello,

I tried to automatize the commands
export Latex (plain); latex ; dvipdf -dALLOWPSTRANSPARENCY
but I have not been successful.

Can I get some help?

Thank.

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988| | Room# D114A
===

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users