Automize command

Patrick Dupre pdupre at gmx.com
Wed Apr 5 10:22:44 UTC 2023


>
> 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
<</Length 6 0 R/Filter /FlateDecode>>
stream
x�+T0�3T0A(����5Ieendstream
endobj
6 0 obj
23
endobj
4 0 obj
<</Type/Page/MediaBox [0 0 595 842]
/Parent 3 0 R
/Resources<</ProcSet[/PDF]
>>
/Contents 5 0 R
>>
endobj
3 0 obj
<< /Type /Pages /Kids [
4 0 R
] /Count 1
>>
endobj
1 0 obj
<</Type /Catalog /Pages 3 0 R
/Metadata 7 0 R
>>
endobj
7 0 obj
<</Type/Metadata
/Subtype/XML/Length 1182>>stream
<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<?adobe-xap-filters esc="CRLF"?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='XMP toolkit 2.9.1-13, framework 1.6'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:iX='http://ns.adobe.com/iX/1.0/'>
<rdf:Description rdf:about="" xmlns:pdf='http://ns.adobe.com/pdf/1.3/' pdf:Producer='GPL Ghostscript 9.56.1'/>
<rdf:Description rdf:about="" xmlns:xmp='http://ns.adobe.com/xap/1.0/'><xmp:ModifyDate>2023-04-05T12:19:42+02:00</xmp:ModifyDate>
<xmp:CreateDate>2023-04-05T12:19:42+02:00</xmp:CreateDate>
<xmp:CreatorTool>UnknownApplication</xmp:CreatorTool></rdf:Description>
<rdf:Description rdf:about="" xmlns:xapMM='http://ns.adobe.com/xap/1.0/mm/' xapMM:DocumentID='uuid:ede1e6f3-0bb7-11f9-0000-f05c97e5c263'/>
<rdf:Description rdf:about="" xmlns:dc='http://purl.org/dc/elements/1.1/' dc:format='application/pdf'><dc:title><rdf:Alt><rdf:li xml:lang='x-default'>Untitled</rdf:li></rdf:Alt></dc:title></rdf:Description>
</rdf:RDF>
</x:xmpmeta>
                                                                        
                                                                        
<?xpacket end='w'?>
endstream
endobj
2 0 obj
<</Producer(GPL Ghostscript 9.56.1)
/CreationDate(D:20230405121942+02'00')
/ModDate(D:20230405121942+02'00')>>endobj
xref
0 8
0000000000 65535 f 
0000000395 00000 n 
0000001717 00000 n 
0000000336 00000 n 
0000000222 00000 n 
0000000111 00000 n 
0000000204 00000 n 
0000000459 00000 n 
trailer
<< /Size 8 /Root 1 0 R /Info 2 0 R
/ID [<E55ABC6FC230015FAD08A1F3137C349F><E55ABC6FC230015FAD08A1F3137C349F>]
>>
startxref
1842
%%EOF

In fact, it is empty






More information about the lyx-users mailing list