New answers tagged

3

Metapost would give better results, but if you wish to use TikZ, decorations.text offers a variety of options. For example: \documentclass[tikz,border=10pt,multi]{standalone} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} \draw [thick] (0,0) circle (3cm); \foreach \i/\j/\k in ...


3

Here's a version which uses append after command in the definition of blackcorner to draw the 4 corners. The size can be configured using size=<dimension> in an optional argument to blackcorner which may also include other options for the corner nodes, if desired. Despite the name, one of the examples below shows how to create blue blackcorners. To ...


7

Since the locations are well-defined, you can get away with path picture of a node. \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[corner stone/.style={draw, path picture={ \foreach \x/\xi in {north/-1,south/1}{ \foreach \y/\yi in {west/45,east/135}{ \fill (path picture bounding box.\x\space\y) rectangle ...


5

Edited answer: Upon closer inspection I found this only affected object2, which is nearly identical in definition to object1. The only difference is that when object1 is used in the actual tikzpicture, no options are passed to the \pic command. The \pic command for object2, on the other hand, has options [above= of t1-C]. It seems this above is being passed ...



Top 50 recent answers are included