X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FFormatter.pm;fp=lib%2FLaTeX%2FTikZ%2FFormatter.pm;h=e06676affd631ee025852b30595eba295b8fee1c;hp=58c2985d4e20fdce2fdaf69108f1e0d04685c095;hb=61a93a58351bf2d238dcf81a1a557112b0c0ee85;hpb=062ab95259610ce39ace60365b659d6113420ce7 diff --git a/lib/LaTeX/TikZ/Formatter.pm b/lib/LaTeX/TikZ/Formatter.pm index 58c2985..e06676a 100644 --- a/lib/LaTeX/TikZ/Formatter.pm +++ b/lib/LaTeX/TikZ/Formatter.pm @@ -142,7 +142,9 @@ sub id { } map($tikz->$_, qw), $origin; } -=head2 C +=head2 C + + my ($header_lines, $mod_lines, $content_lines) = $formatter->render(@sets); Processes all the L objects given in C<@sets> to produce the actual TikZ code to insert in the LaTeX file. First, all the mods applied to the sets and their subsets are collected, and a declaration is emitted if needed for each of them by calling L. @@ -296,7 +298,9 @@ sub render { return \@header, \@decls, @bodies; } -=head2 C +=head2 C + + my $physical_len = $formatter->len($logical_len); Format the given length according to the formatter options. @@ -310,7 +314,9 @@ sub len { sprintf $tikz->format . $tikz->unit, $len * $tikz->scale; } -=head2 C +=head2 C + + my $physical_angle = $formatter->angle($logical_angle); Format the given angle (in radians) according to the formatter options. @@ -326,7 +332,9 @@ sub angle { sprintf $tikz->format, POSIX::ceil($a); } -=head2 C