[pgf-tikz] Style with two "parameters" : problem with arguments
Claude Quitte
claude.quitte at orange.fr
Fri Aug 9 07:55:45 CEST 2024
Hello
I attach a small LaTeX source using tikz and the pdf produced.
1. Context :
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\tikzset{->-/.style 2 args = {decoration={markings, mark=at position{#1}
with {\arrow#2}},
postaction=decorate}}
2. No problem with :
\draw [->- = {0.6} {latex}] (0,0) -- (1,0) ;
\draw [->- = {0.6}{{latex}}] (2,0) -- (3,0) ;
3. But, if no space between arguments, a problem with \draw [->- =
{0.6}{latex}] (4,0) -- (5,0) ;
%% \draw [->- = {0.6}{latex}] (4,0) -- (5,0) ;
%% ! Package pgf Error: Unknown arrow tip kind 'l'.
%% See the pgf package documentation for explanation.
%% Type H <return> for immediate help.
%% ...
%% l.17 \draw [->- = {0.6}{latex}] (4,0) -- (5,0) ;
4. No problem with
\draw [->-= {0.6}{[ultra thick]{>}}] (6,0) -- (7,0) ;
5. But, if a space between arguments, a problem with \draw [->-= {0.6}
{[ultra thick]{>}}] (8,0) -- (9,0) ;
%% \draw [->-= {0.6} {[ultra thick]{>}}] (8,0) -- (9,0) ;
%% ! Package pgfkeys Error: I do not know the key 'ultra thick' and I am
going to
%% ignore it. Perhaps you misspelled it.
%%
%% See the pgfkeys package documentation for explanation.
%% Type H <return> for immediate help.
%% ...
%% l.28 ...{0.6} {[ultra thick]{>}}] (8,0) -- (9,0) ;
THANKS for an answer.
Claude Quitte (France)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ArgumentsProbem.tex
Type: application/x-tex
Size: 1337 bytes
Desc: not available
URL: <https://tug.org/pipermail/pgf-tikz/attachments/20240809/58e57d1f/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ArgumentsProbem.pdf
Type: application/pdf
Size: 38364 bytes
Desc: not available
URL: <https://tug.org/pipermail/pgf-tikz/attachments/20240809/58e57d1f/attachment-0001.pdf>
More information about the pgf-tikz
mailing list.