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

Error with "rounded" style and tikz format #107

Open
OldKrab opened this issue May 20, 2024 · 1 comment
Open

Error with "rounded" style and tikz format #107

OldKrab opened this issue May 20, 2024 · 1 comment

Comments

@OldKrab
Copy link

OldKrab commented May 20, 2024

Dot code:

digraph {
"x" [shape=box, style=rounded]
}

run with cmd:

dot2tex -ftikz example.dot

Got next tex:

Details

\documentclass{article}
\usepackage[x11names, svgnames, rgb]{xcolor}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{snakes,arrows,shapes}
\usepackage{amsmath}
%
%

%

%

\begin{document}
\pagestyle{empty}
%
%
%

\enlargethispage{100cm}
% Start of code
\begin{tikzpicture}[>=latex',line join=bevel,]
%%
\node (x) at (27.0bp,18.0bp) [draw,rectangle,rounded] {x};
%
\end{tikzpicture}
% End of code

%
\end{document}
%

Tex fails to compile with error "Package pgfkeys: I do not know the key '/tikz/rounded' and I am going to ignore it. Perhaps you misspelled it."

I think instead of [draw,rectangle,rounded] there should be something like [draw,rectangle,rounded corners].

@OldKrab
Copy link
Author

OldKrab commented May 20, 2024

According to customization_guide style attribute used by rendering backend.

So we can not render same dot file that can be rendered with graphviz, because style attribute has different meaning in graphviz.

is this the right behavior?

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

1 participant