Tag Info

New answers tagged

0

At risk of starting a "code golf" war, but in the spirit of "TIMTOWTDI", \documentclass{standalone}\usepackage{tikz} \begin{document} \begin{tikzpicture}[yscale=sqrt(.75),xslant=.5] \def\n{12} \clip[preaction=draw](0,0)--(\n,0)--(0,\n)--cycle; \draw(0,0)grid(\n,\n)[xslant=-1](0,0)grid(\n,\n); \end{tikzpicture} \end{document} If you want to avoid ...


2

You could abuse the pgfplots tenary plot feature for this. On the plus side it allows you to easily plot data in that grid. \documentclass[tikz]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{ternary} \begin{document} \begin{tikzpicture} \begin{ternaryaxis}[ xticklabels={}, yticklabels={}, zticklabels={}, major tick length=0, ...


1

A MetaPost version, as a complement. It is based on a recursion inspired by Paul Gaborit's use of the lindenmayersystems library. I borrowed much code from my answer to a related question. Note that at each recursion only the midpoints triangle is drawn, in order not to draw the same segments more than once (which would result in a much thicker rendering ...


1

Next code defines command \grid which draws a triangular grid made with triangular nodes. \grid's parameter is the number of rows. minimum size in tri/.style is the diameter of triangle's circumscribed circle. With nodes instead of just lines, it's easier to use the grid as base for nice TiKZ drawings. \documentclass[tikz,border=2mm]{standalone} ...


5

I did add spaces manually to the input by way of ~. While the macro could be written to intercept a single space in the input between characters, all of LaTeX's parsing mechanisms short of verbatim will read multiple spaces as a single space. Therefore, using \ or ~ makes sense as the right approach for hard spacing. The result of \gridtext is achieved by ...



Top 50 recent answers are included