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

"outputdir" option for pkg dot2texi breaks on absolute paths & /some/ relative ones. The pdflatex -output-directory option is also mistreated #10

Open
bruceleerabbit opened this issue Nov 22, 2019 · 1 comment

Comments

@bruceleerabbit
Copy link

I think I've encountered 3 bugs.

bug 1: absolute paths

This code fails: \usepackage[outputdir=/tmp/]{dot2texi} when compiled with pdflatex -shell-escape mygraph.tex, resulting in:

pdflatex: Not writing to /tmp/mygraph-dot2tex-fig1.dot (openout_any = p).

! I can't write on file `/tmp/mygraph-dot2tex-fig1.dot'.
\dottotexverbatimwrite ...penout \verbatim@out kjellmf/dot2tex#1 
                                                  \BeforeStream \let \do \@m...
l.50 ...z, codeonly, styleonly, options=-s -tmath]
                                                  
(Press Enter to retry, or Control-D to exit; default file extension is `.tex')
Please type another output file name: 

bug 2: some relative paths

This code fails: \usepackage[outputdir=../work/]{dot2texi} when compiled with pdflatex -shell-escape mygraph.tex, resulting in essentially the same error as with the absolute path. Note the leading ../. When the relative path begins with a child directory there is no issue. The bug emerges if it traverses the parent directory.

bug 3: output paths specified on the commandline

This code fails: \usepackage{dot2texi} when compiled with pdflatex -shell-escape -output-directory=work mygraph.tex, resulting in:

Opening dot2tex stream mygraph-dot2tex-fig1.dotERROR    Failed to load file mygraph-dot2tex-fig1.dot
system returned with code 256


! LaTeX Error: File `mygraph-dot2tex-fig1.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

Enter file name: 

These problems frustrate complex projects where a Makefile is used with a work directory, in which case bug 3 manifests, and while the outputdir option has issues it seems impossible to work around.

@kjellmf kjellmf transferred this issue from xyz2tex/dot2tex Dec 8, 2019
@kjellmf
Copy link
Collaborator

kjellmf commented Dec 8, 2019

Thanks for the bug reports. I'm afraid I don't have any quick fixes. My TeX-skills are rusty and I have not worked on dot2texi.sty for a very long time. Do you have any ideas for how to fix these issues?

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

No branches or pull requests

2 participants