Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression: path to --pdf-engine works again #4682

Merged
merged 1 commit into from
Jun 3, 2018
Merged

Conversation

mb21
Copy link
Collaborator

@mb21 mb21 commented Jun 1, 2018

fixes #4681

@@ -155,7 +155,7 @@ pdfWriterAndProg mWriter mEngine = do
where
go Nothing Nothing = Right ("latex", "pdflatex")
go (Just writer) Nothing = (writer,) <$> engineForWriter writer
go Nothing (Just engine) = (,engine) <$> writerForEngine engine
go Nothing (Just engine) = (,engine) <$> writerForEngine (takeBaseName engine)
go (Just writer) (Just engine) =
case find (== (baseWriterName writer, engine)) engines of
Copy link
Owner

@jgm jgm Jun 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also need

find (== (baseWriterName writer, takeBaseName engine)) engines

here, right? For the case where they specify the writer format explicitly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, I updated the pull...

@jgm
Copy link
Owner

jgm commented Jun 2, 2018 via email

@mb21
Copy link
Collaborator Author

mb21 commented Jun 3, 2018

Indeed, I tested only with pdflatex... rebased and hopefully we've caught them all now?

@jgm jgm merged commit 764bf86 into jgm:master Jun 3, 2018
@jgm
Copy link
Owner

jgm commented Jun 3, 2018

Thanks. Some nice types would probably make this more solid, but this is good for now!

@mb21 mb21 deleted the custom-pdf-engine branch June 4, 2018 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--pdf-engine full path of the engine not working
2 participants