reitzig / ltx2any

Yet another LaTeX build wrapper, with one or two nifty features
GNU General Public License v3.0
59 stars 4 forks source link

Improve documentation of ep #60

Closed koppor closed 8 years ago

koppor commented 8 years ago

I'm trying to pass -shell-escape --sync-tex=-1 to pdflatex. I'm trying

ltx2any.rb -ep "-shell-escape --synctex=-1" document

But the log says:

Package ifplatform Warning: shell escape is disabled

When I try

ltx2any.rb -ep -shell-escape --synctex=-1 document

ltx2any states

[ltx2any] Don't know what to do with parameter --synctex=-1.

The help says:

-ep   Parameters passed to the engine, separated by spaces.

Is spaces wrong?

akerbos commented 8 years ago

Oh dear, it seems I have not implemented this fully yet (see also #25). Sorry for the confusion! Will try to do this soon, it's probably simple.

FWIW, I think your first try is how it should work. :)

akerbos commented 8 years ago

The following two commands now work as intended:

ltx2any.rb -ep "-shell-escape" document
ltx2any.rb -ep -shell-escape document

I don't have a good test case for two passing options.

ltx2any.rb -ep "-shell-escape --synctex=-1" document

should be the way to go, but I'm not sure if I've implemented parsing parameters in this way. I seem to rely on the shell bundling quoted strings (with spaces) into one entry of ARGV, which is how I expect it to work.

Can you confirm that this works, please?

koppor commented 8 years ago

Yes, works here at Windows 10.

koppor commented 6 years ago

ruby c:\git-repositories\ltx2any\ltx2any.rb -ep "--synctex=1" paper.tex does not trigger synctex, but -synctex works. So this is no real issue. I just wanted to comment here.