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

Strange issues with external dot files (\input) #1

Open
kjellmf opened this issue Apr 25, 2014 · 1 comment
Open

Strange issues with external dot files (\input) #1

kjellmf opened this issue Apr 25, 2014 · 1 comment
Labels

Comments

@kjellmf
Copy link
Collaborator

kjellmf commented Apr 25, 2014

(Original issue report by seanfisk xyz2tex/dot2tex#21)

seanfisk commented 2 days ago
I think that this is technically a dot2texi issue, but I wasn't sure where to report it, so hopefully this is OK.

I'm having weird behavior with the external files feature. Here is my MWE:

% main.tex
\documentclass{article}
\usepackage[debug]{dot2texi}
\usepackage{tikz} % for dot2texi
\usetikzlibrary{shapes,arrows} % for dot2texi
\begin{document}
\begin{dot2tex}
\input{mygraph.dot}
\end{dot2tex}
\end{document}
// mygraph.dot
digraph mygraph {
    A -> B -> C;
}
pdflatex -shell-escape main.tex

I'm not sure exactly how LaTeX, dot2texi, and dot2tex interact. This works:

\begin{dot2tex}
\\\input{mygraph.dot}
\end{dot2tex}

When you add options, it is even stranger, because now this works:

For consistent behavior, you can always pass empty options like:

\begin{dot2tex}[]
\input{mygraph.dot}
\end{dot2tex}

I can work around it, but something seems not right. I wanted to let you know because the example in the texdoc suggests:

\begin{dot2tex}
\input{externalgraph.dot}
\end{dot2tex}

... which does not work.

@kjellmf
Copy link
Collaborator Author

kjellmf commented Apr 27, 2014

Low level TeX-programming is outside of my comfort zone. If I don't find a quick solution I will just update the documentation with a warning about the issue and recommend to always pass empty options.

kjellmf added a commit that referenced this issue Apr 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant