7

A first, quite sketchy attempt using MetaPost. It's not as sophisticated for we use fewer parameters and our frame is actually squared, but proposals are fine IMHO. Just notice that because results are in fact random, they could look a bit chaotic. \documentclass{standalone} \usepackage{xcolor} \usepackage[shellescape,latex]{gmp} \newcommand{\lowbudgetart}[4]...


5

Probably the best solution is to use the shapes.geometric library, and do something like what is indicated here: More on "Cylinder shading with pgf TiKZ". However, recycling a previous drawing of mine involving cylinders, I can offer you an alternative, something like this: \documentclass[border=2mm]{standalone} \usepackage {ifthen} \...


4

The error occurs because acrsine does not exist for angles greater than 90. After limiting refraction, total internal reflection occurs. Therefore, it is no longer possible to calculate the angle of the refracted ray as you try. \documentclass[border=10pt,tikz]{standalone} \usepackage{xcolor} \definecolor{lava}{rgb}{0.81, 0.06, 0.13} \definecolor{myblue}{rgb}...


2

Perhaps someone is interested in a solution with a configurable number of sides. \documentclass[border=2mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} %% Pentagon ------------------- \coordinate (o1) at (0,0); \def\radius{1} % Radius of corner circles \def\side{3} % length of sides \def\nSides{5} % number of sides of the ...


2

\documentclass[10pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{decorations.markings} \tikzset{->-/.style={decoration={ markings, mark=at position #1 with {\arrow{>}}},postaction={decorate}}} \begin{document} \begin{figure}[htp] \centering \begin{tikzpicture}[ ...


1

If you want to center something that exceeds the \textwidth (and therefore will not be centered but left-aligned), it usually helps to pretend that the something has width zero. \begin{center} \makebox[0pt]{% something% } \end{center} Make sure that there are no spurious spaces, since these would bring the something out of center. \documentclass{beamer} ...


1

\usepackage{tikz} \usetikzlibrary{positioning,arrows,calc} \begin{document} \begin{tikzpicture}[ neuron/.style={circle,draw,minimum size=7mm}, on grid, > = stealth', rounded corners ] % nodes \node[neuron] (a) {}; \node[neuron,below=of a] (b) {}; \node[neuron,below=of b] (c) {}; \node[neuron,below=of c] (d) {}; \node[neuron,below=of ...


Only top voted, non community-wiki answers of a minimum length are eligible