New answers tagged

1

If you create a textual picture like this: picture pp; pp = "proof" infont "pplri8r"; it will be created with the origin of the text sitting at coordinates (0, 0); then you can get the dimensions like this wd = xpart urcorner pp; ht = ypart urcorner pp; dp = ypart lrcorner pp; You could use this idea to measure individual characters, but ...


1

Here is a graph produced from the OP data files using Python to read the files and produce the input for Metapost. Here is the Python source. I've used Python3 syntax. To use it: save the Python source with a suitable name, perhaps growth_chart.py save the OP data files in the same place as weight.txt and wfa_boys_p_exp.txt run python3 growth_chart.py ...


7

The answer by Jake inspired me to write TikZ-Feynman, a dedicated package that uses TikZ' graph drawing library in order to draw Feynman diagrams. It has just recently been uploaded to CTAN and you can view more information over on the project page. Below is the code to draw three diagrams of increasing complexity which showcase some of the feature of ...


7

To follow this solution, you might like to look up "arclength" and "arctime" in the Metapost manual, or read my explanation below. \documentclass{standalone} \usepackage{luamplib} \everymplib{beginfig(1);} \everyendmplib{endfig;} \begin{document} \begin{mplibcode} path P; P = (0,0){right} .. (2cm,4cm){up} .. (4cm,5cm){right} .. ...



Top 50 recent answers are included