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

Dealing with -output-directory #25

Open
wspr opened this issue May 11, 2014 · 1 comment
Open

Dealing with -output-directory #25

wspr opened this issue May 11, 2014 · 1 comment

Comments

@wspr
Copy link
Owner

wspr commented May 11, 2014

From a user a few years back:

I cope with huge documents with manifold auxilary file. Therefore, I create an output folder "LaTeX" for the aux-, index-, bib-, and glossary -files.
I do so by adding >>%& -aux-directory="LaTeX"<< before the documentclass declaration (not added right now!). However, pstool mixes up the directories and produces no output. I tried to change >>-output-directory="\pstool@path"<< to >>-output-directory=graphics<<, but in vain

Do you know how to circumvent this?

@mforbes
Copy link

mforbes commented Sep 11, 2017

I am having a potentially related issue:

# tst.tex
\documentclass{article}
\usepackage[process=all, mode=errorstop]{pstool}
\begin{document}
\begin{figure}[htpb]
  \begin{center}
    \psfragfig[width=8.6cm]{data/Dispersion}
  \end{center}
\end{figure}
\end{document}
  1. Figure in ./data/Dispersion.eps.

  2. psfrag commands in ./tst-pstool.tex.

  3. Make output directory in ./_build:

    mkdir -p _build/data
    
  4. Compile with

    pdflatex -shell-escape -output-directory="_build" "tst"

Gives error:

=== pstool: begin processing ===

=== pstool: auxiliary process: Dispersion  ===
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=latex)
 \write18 enabled.
entering extended mode
! I can't find file `Dispersion-pstool.tex'.
<*> Dispersion-pstool.tex
                         
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 

The Dispersion-pstool.tex is correctly created in ./_build/data/Dispersion-pstool.tex but for some reason pstool is looking for it in ./Dispersion-pstool.tex. If I manually move it there, things work.

mv ./_build/data/Dispersion-pstool.tex ./

If I run without specifying the output directory, then things work with ./data/Dispersion-pstool.tex being used.

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