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

Drop directory name from bname #6

Merged
merged 1 commit into from
Dec 9, 2016
Merged

Drop directory name from bname #6

merged 1 commit into from
Dec 9, 2016

Conversation

aminophen
Copy link
Member

現在の ptex2pdf で test.tex を subdirectory などに置いた場合

$ ptex2pdf -l subdir/test.tex
This is ptex2pdf[.lua] version 0.8.
Processing subdir/test.tex
This is e-pTeX, Version 3.14159265-p3.7.1-161114-2.6 (utf8.euc) (TeX Live 2017/dev) (preloaded format=platex)
 restricted \write18 enabled.
entering extended mode
(./subdir/test.tex
 … 略 …
Output written on test.dvi (1 page, 760 bytes).
Transcript written on test.log.
subdir/test.dvi -> test.pdf

dvipdfmx:fatal: Could not open specified DVI (or XDV) file: subdir/test.dvi

Output file removed.
ptex2pdf processing of subdir/test.tex failed.

でエラーになります。current directory に test.dvi があるので、bname は subdir/ を消したものであったほうがよいと思います。(書いたコードは Unix 環境でしかまだ試していません)

@aminophen aminophen changed the title Drop directory name fron bname Drop directory name from bname Dec 9, 2016
@norbusan
Copy link
Member

norbusan commented Dec 9, 2016

他のアイデアは全てのtempファイルがbnameに作成すること。-output-directory=DIR どう思いますか。

@aminophen
Copy link
Member Author

aminophen commented Dec 9, 2016

-output-directory=DIR

これを使うと、dvi だけでなく log / aux も -output-directory にできてしまうので、よくないと思います。ptex2pdf -l subdir/test.tex と pdflatex subdir/test.tex が同じような動作になってくれると嬉しい、というのが私の考えです。

pdflatex などは

$ pdflatex subdir/test.tex

とすると log / aux / pdf がすべて current directory にできますから、これと同じにしたいです。

@norbusan
Copy link
Member

norbusan commented Dec 9, 2016

そうですね。では、マージュします。僕はあとで--output-directoryのオプジョンを加えます。

@norbusan norbusan merged commit c00a3c1 into master Dec 9, 2016
@aminophen
Copy link
Member Author

ありがとうございます。あとで windows でも試して動作確認しておきます。Windows では path に / ではなく \ が使われるかもしれないので、もし動かなかったら書きかえてみます。

--output-directory のオプションはよろしくお願いします。

@aminophen aminophen deleted the bname-path branch December 9, 2016 06:56
@norbusan
Copy link
Member

norbusan commented Dec 9, 2016

Windowsの確認をお願いします。僕の--output-directoryを同時に試してみてくれたら嬉しいです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants