Re: Un oggetto PGF nodo per il disegno di barcode

#82514
Up
0
Down
::

robitex” post=81858Magari si potrebbe nascondere il comando \node creando una macro tipo:
`\barcodenode[format={code39, height=10mm}] {123456789};`
o simile.

Se vuoi nascondere [tt]\node[/tt] con un comando uguale in tutto e per tutto [tt]\node[/tt], ma con un nome diverso, ti basta dire `\makeatletter
\def\barcode{\tikz@path@overlay{node}}
\makeatother` Ora [tt]\barcode[/tt] è un alias di [tt]\node[/tt] e quindi: `\barcode[draw,rectangle]at(0,0){ciao};` funzionerà.

Ciao
Claudio

Go to top