# Tag Info

2

You need \usetikzlibrary{decorations.pathmorphing} \documentclass[tikz]{standalone} \usetikzlibrary{patterns} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzpicture}[decoration = coil, spring/.style = { decoration = { pre length = #1, post length = #1} }] \fill[pattern = north east lines] (-2cm, 0) coordinate ...

4

The placement of a decoration relative to the path can be controlled with the raise key. A positive value shifts the decoration to the left of the path direction, and a negative value shifts it to the right. Thus, for your example, a negative value is needed. In the example below I've added the key raise=-8pt to the decoration. More information can be found ...

1

Here is a solution derived form Mark Wibrow's answer with formated numbers. I use \pgfmathprintnumberto to print each number in a macro then I append {} to this macro (text along path seems not happy with math at the end of text). \documentclass[tikz,border=5]{standalone} \usetikzlibrary{decorations.text} \begin{document} \def\sizeA{1248800} ...

1

I got the OP's setup to work, though Mark Wibrow's answer is far better. I don't understand the technicalities of \pgfmathparse so will have to look into that further. Still, for the record: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,fpu} \usetikzlibrary{decorations.text} \begin{document} \def\sizeA{1.248800} \def\sizeB{.801900} ...

8

The following should help simply things somewhat. The text align key centers the decoration text on the path, but I would use arcs to draw the circle, as it is easier to start the circle borders from the same point and also to know in advance where the center of the the path is located. Also a partial and not particularly robust (or accurate) solution to ...

2

A LuaTeX + TikZ solution. \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \usepackage{luacode} \usepackage[active, tightpage]{preview} \definecolor{tilecolor}{HTML}{CDC6A9} \definecolor{textcolor}{HTML}{463D3C} \definecolor{dwscolor}{HTML}{E9BCAC} \definecolor{twscolor}{HTML}{E5654F} \definecolor{dlscolor}{HTML}{AAD2CE} ...

10

Here's an alternative in Metapost, purely for amusement, and to illustrate a way to make the path of a box with spikes on the sides and the use of a long list of suffixes to draw a repetitive pattern prologues := 3; outputtemplate := "%j%c.eps"; spike_size = 2; tile_size = 24; vardef spiked_square(expr n) = save t, side; path side; % length of ...

22

Unfortunately, it doesn't calculate the score. Requires the latest release of PGF. \documentclass[tikz,border=5]{standalone} \usetikzlibrary{shapes.geometric} \def\lettertoscrabblescore#1{% \def\tmp{#1}% \expandafter\count\expandafter0\expandafter`#1\relax\advance\count0 by-65\relax% \ifcase\count0\relax% ...

6

This went a little too deep than I initially intended to. I can't see how to wrap up the required changes in a coherent patch-y way so I propose to add the postaction=decorate to another location instead of the obvious place that you found out that it won't work. So if we add \tikzset{mydeco/.style={pic actions/.append ...

8

There are two paths used by the angle pic: one to fill the background of the angle and one to draw the arc. And if a pic text is given an additional node will be placed inside the angle. But only the arc path should be decorated. The arc is drawn by the command \tikz@lib@angle@foreground (see the tikzlibraryangles.code.tex file): ...

Top 50 recent answers are included