New answers tagged

3

This is a starter only, not perfect yet: A 'weird' combination of \multicolumn and \cline and \multirow will provide a grid structure as needed. \documentclass{article} \usepackage{multirow} \usepackage{tikz} \usetikzlibrary{shadings} \usepackage{colortbl} \usepackage{array} \usepackage[most]{tcolorbox} \usepackage{graphicx} \newcommand{\tikzball}[1][]{% ...


2

The problem is that normal clipping will not work, because clipping does not know anything about the grid. The following example combines the clipping with the ellipse as clipping area with excluding cells, which intersects with the ellipse. \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{intersections} \usepackage{xcolor} \pagestyle{empty} ...


11

Here is a solution using LuaLaTeX for two reasons: there are many complex formula in this graph, so it's easier with a real programming language there are a lot of trigonometric calculations, and for this Lua is faster than TeX The LaTeX file: \documentclass{minimal} \usepackage[a4paper,top=20mm,bottom=20mm,left=15mm,right=15mm]{geometry} ...


1

You can start with the following code... Ensure, that each picture is in a own environment... \PassOptionsToPackage{pst,dvipsnames,table,svgnames,xcdraw,showerrors}{xcolor} \documentclass[multi,crop,pstricks,border=0.15cm]{standalone} \standaloneenv{my} \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs \usepackage[ansinew]{inputenc} % ...


0

Here's a different approach to percolation in Metapost using a square lattice, and a recursive routine to find the edges connected to a random node. There are almost certainly more efficient ways to code this, but I was trying to make it as simple as possible. You could use similar techniques to explore a hexagonal grid. Searching through the list of ...


4

Okay here is a starting point for you. Actually drawing the hexagons is not complicated, you just can use the shapes.geometric library of tikz. Instead of \ifthenelse I found it easier to use an \ifnum statement to implement the conditional treatment. You have to be a little careful with the number of nodes you`re using to not exceed the capacity of Tex. ...



Top 50 recent answers are included