Welcoming 2019 Pi day: How to draw the letter π?LaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationhow to set the canvas and font size in TikZ?How to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?Welcoming 2019 Lunar New Year: How to draw a (lovely) pig?

How could a female member of a species produce eggs unto death?

Is this animal really missing?

Sword in the Stone story where the sword was held in place by electromagnets

Question about partial fractions with irreducible quadratic factors

Is a lawful good "antagonist" effective?

If the Captain's screens are out, does he switch seats with the co-pilot?

Why would a jet engine that runs at temps excess of 2000°C burn when it crashes?

Need some help with my first LaTeX drawing…

US to Europe trip with Canada layover- is 52 minutes enough?

When is a batch class instantiated when you schedule it?

Welcoming 2019 Pi day: How to draw the letter π?

Humans have energy, but not water. What happens?

Can infringement of a trademark be pursued for using a company's name in a sentence?

Time dilation for a moving electronic clock

Excess Zinc in garden soil

Why must traveling waves have the same amplitude to form a standing wave?

Is going from continuous data to categorical always wrong?

Replacing Windows 7 security updates with anti-virus?

Best mythical creature to use as livestock?

Do I need to leave some extra space available on the disk which my database log files reside, for log backup operations to successfully occur?

What has been your most complicated TikZ drawing?

Why do Australian milk farmers need to protest supermarkets' milk price?

Unreachable code, but reachable with exception

Best approach to update all entries in a list that is paginated?



Welcoming 2019 Pi day: How to draw the letter π?


LaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationhow to set the canvas and font size in TikZ?How to define the default vertical distance between nodes?Numerical conditional within tikz keys?TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?Welcoming 2019 Lunar New Year: How to draw a (lovely) pig?













3
















How to draw the letter π not in the standard way (i.e. pi)?




I mean "draw", not "type"! Today there will be no pi, but there will be something like this



documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,2)--(3,2);
draw (1,0)--(1,2);
draw (2,0)--(2,2);
endtikzpicture
enddocument


enter image description here



(inspired by David Carlisle – I draw this in TikZ just because I don't know how to use picture ;))



Or this



documentclass[tikz]standalone
usepackagetikzducks
begindocument
begintikzpicture
duck
duck[xshift=1cm,yshift=2cm]
duck[xshift=1cm,yshift=4cm]
duck[xshift=1cm,yshift=6cm]
duck[xshift=0cm,yshift=8cm]
duck[xshift=-2cm,yshift=7.5cm]
duck[xshift=2cm,yshift=8cm]
duck[xshift=4cm,yshift=8cm]
duck[xshift=6cm,yshift=8cm]
duck[xshift=8cm,yshift=8cm]
duck[xshift=5cm,yshift=6cm]
duck[xshift=5cm,yshift=4cm]
duck[xshift=5.5cm,yshift=2cm]
duck[xshift=6.5cm,yshift=0cm]
duck[xshift=8cm,yshift=1cm]
node[font=huge] at (4,11) tikzducks;
endtikzpicture
enddocument


enter image description here



They are my proudest π drawings, and as today is Pi day, I'd like to see yours!










share|improve this question






















  • Beat this one: ioccc.org/1989/roemer.c

    – user49915
    1 hour ago












  • @user49915 I don't think we can have the output and the code being exactly the same :))

    – JouleV
    1 hour ago











  • Though, I guess, a really useful one would be a sans-serif normalfont upright math capital Pi with xelatex and OTF fonts. You may ask "why", and the answer would be "since it's not a part of Unicode". As for for useless ones, I still see documentclass, begin, draw, tikz, linespread, ...; the output is all nice anyway, and I like all the solutions here.

    – user49915
    1 hour ago












  • You can probably have the code and the output close enough; you only have to pepper the Makefile compiling the code by suitable awk or sed scripts. In theory, you can have them exactly the same, since tex is Turing-complete (en.wikipedia.org/wiki/Quine_(computing)), but it's unlikely to print Pi in any sense of the word.

    – user49915
    57 mins ago
















3
















How to draw the letter π not in the standard way (i.e. pi)?




I mean "draw", not "type"! Today there will be no pi, but there will be something like this



documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,2)--(3,2);
draw (1,0)--(1,2);
draw (2,0)--(2,2);
endtikzpicture
enddocument


enter image description here



(inspired by David Carlisle – I draw this in TikZ just because I don't know how to use picture ;))



Or this



documentclass[tikz]standalone
usepackagetikzducks
begindocument
begintikzpicture
duck
duck[xshift=1cm,yshift=2cm]
duck[xshift=1cm,yshift=4cm]
duck[xshift=1cm,yshift=6cm]
duck[xshift=0cm,yshift=8cm]
duck[xshift=-2cm,yshift=7.5cm]
duck[xshift=2cm,yshift=8cm]
duck[xshift=4cm,yshift=8cm]
duck[xshift=6cm,yshift=8cm]
duck[xshift=8cm,yshift=8cm]
duck[xshift=5cm,yshift=6cm]
duck[xshift=5cm,yshift=4cm]
duck[xshift=5.5cm,yshift=2cm]
duck[xshift=6.5cm,yshift=0cm]
duck[xshift=8cm,yshift=1cm]
node[font=huge] at (4,11) tikzducks;
endtikzpicture
enddocument


enter image description here



They are my proudest π drawings, and as today is Pi day, I'd like to see yours!










share|improve this question






















  • Beat this one: ioccc.org/1989/roemer.c

    – user49915
    1 hour ago












  • @user49915 I don't think we can have the output and the code being exactly the same :))

    – JouleV
    1 hour ago











  • Though, I guess, a really useful one would be a sans-serif normalfont upright math capital Pi with xelatex and OTF fonts. You may ask "why", and the answer would be "since it's not a part of Unicode". As for for useless ones, I still see documentclass, begin, draw, tikz, linespread, ...; the output is all nice anyway, and I like all the solutions here.

    – user49915
    1 hour ago












  • You can probably have the code and the output close enough; you only have to pepper the Makefile compiling the code by suitable awk or sed scripts. In theory, you can have them exactly the same, since tex is Turing-complete (en.wikipedia.org/wiki/Quine_(computing)), but it's unlikely to print Pi in any sense of the word.

    – user49915
    57 mins ago














3












3








3









How to draw the letter π not in the standard way (i.e. pi)?




I mean "draw", not "type"! Today there will be no pi, but there will be something like this



documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,2)--(3,2);
draw (1,0)--(1,2);
draw (2,0)--(2,2);
endtikzpicture
enddocument


enter image description here



(inspired by David Carlisle – I draw this in TikZ just because I don't know how to use picture ;))



Or this



documentclass[tikz]standalone
usepackagetikzducks
begindocument
begintikzpicture
duck
duck[xshift=1cm,yshift=2cm]
duck[xshift=1cm,yshift=4cm]
duck[xshift=1cm,yshift=6cm]
duck[xshift=0cm,yshift=8cm]
duck[xshift=-2cm,yshift=7.5cm]
duck[xshift=2cm,yshift=8cm]
duck[xshift=4cm,yshift=8cm]
duck[xshift=6cm,yshift=8cm]
duck[xshift=8cm,yshift=8cm]
duck[xshift=5cm,yshift=6cm]
duck[xshift=5cm,yshift=4cm]
duck[xshift=5.5cm,yshift=2cm]
duck[xshift=6.5cm,yshift=0cm]
duck[xshift=8cm,yshift=1cm]
node[font=huge] at (4,11) tikzducks;
endtikzpicture
enddocument


enter image description here



They are my proudest π drawings, and as today is Pi day, I'd like to see yours!










share|improve this question















How to draw the letter π not in the standard way (i.e. pi)?




I mean "draw", not "type"! Today there will be no pi, but there will be something like this



documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,2)--(3,2);
draw (1,0)--(1,2);
draw (2,0)--(2,2);
endtikzpicture
enddocument


enter image description here



(inspired by David Carlisle – I draw this in TikZ just because I don't know how to use picture ;))



Or this



documentclass[tikz]standalone
usepackagetikzducks
begindocument
begintikzpicture
duck
duck[xshift=1cm,yshift=2cm]
duck[xshift=1cm,yshift=4cm]
duck[xshift=1cm,yshift=6cm]
duck[xshift=0cm,yshift=8cm]
duck[xshift=-2cm,yshift=7.5cm]
duck[xshift=2cm,yshift=8cm]
duck[xshift=4cm,yshift=8cm]
duck[xshift=6cm,yshift=8cm]
duck[xshift=8cm,yshift=8cm]
duck[xshift=5cm,yshift=6cm]
duck[xshift=5cm,yshift=4cm]
duck[xshift=5.5cm,yshift=2cm]
duck[xshift=6.5cm,yshift=0cm]
duck[xshift=8cm,yshift=1cm]
node[font=huge] at (4,11) tikzducks;
endtikzpicture
enddocument


enter image description here



They are my proudest π drawings, and as today is Pi day, I'd like to see yours!







tikz-pgf fun tikzducks tikzlings picture-environment






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 hours ago









JouleVJouleV

5,33621242




5,33621242












  • Beat this one: ioccc.org/1989/roemer.c

    – user49915
    1 hour ago












  • @user49915 I don't think we can have the output and the code being exactly the same :))

    – JouleV
    1 hour ago











  • Though, I guess, a really useful one would be a sans-serif normalfont upright math capital Pi with xelatex and OTF fonts. You may ask "why", and the answer would be "since it's not a part of Unicode". As for for useless ones, I still see documentclass, begin, draw, tikz, linespread, ...; the output is all nice anyway, and I like all the solutions here.

    – user49915
    1 hour ago












  • You can probably have the code and the output close enough; you only have to pepper the Makefile compiling the code by suitable awk or sed scripts. In theory, you can have them exactly the same, since tex is Turing-complete (en.wikipedia.org/wiki/Quine_(computing)), but it's unlikely to print Pi in any sense of the word.

    – user49915
    57 mins ago


















  • Beat this one: ioccc.org/1989/roemer.c

    – user49915
    1 hour ago












  • @user49915 I don't think we can have the output and the code being exactly the same :))

    – JouleV
    1 hour ago











  • Though, I guess, a really useful one would be a sans-serif normalfont upright math capital Pi with xelatex and OTF fonts. You may ask "why", and the answer would be "since it's not a part of Unicode". As for for useless ones, I still see documentclass, begin, draw, tikz, linespread, ...; the output is all nice anyway, and I like all the solutions here.

    – user49915
    1 hour ago












  • You can probably have the code and the output close enough; you only have to pepper the Makefile compiling the code by suitable awk or sed scripts. In theory, you can have them exactly the same, since tex is Turing-complete (en.wikipedia.org/wiki/Quine_(computing)), but it's unlikely to print Pi in any sense of the word.

    – user49915
    57 mins ago

















Beat this one: ioccc.org/1989/roemer.c

– user49915
1 hour ago






Beat this one: ioccc.org/1989/roemer.c

– user49915
1 hour ago














@user49915 I don't think we can have the output and the code being exactly the same :))

– JouleV
1 hour ago





@user49915 I don't think we can have the output and the code being exactly the same :))

– JouleV
1 hour ago













Though, I guess, a really useful one would be a sans-serif normalfont upright math capital Pi with xelatex and OTF fonts. You may ask "why", and the answer would be "since it's not a part of Unicode". As for for useless ones, I still see documentclass, begin, draw, tikz, linespread, ...; the output is all nice anyway, and I like all the solutions here.

– user49915
1 hour ago






Though, I guess, a really useful one would be a sans-serif normalfont upright math capital Pi with xelatex and OTF fonts. You may ask "why", and the answer would be "since it's not a part of Unicode". As for for useless ones, I still see documentclass, begin, draw, tikz, linespread, ...; the output is all nice anyway, and I like all the solutions here.

– user49915
1 hour ago














You can probably have the code and the output close enough; you only have to pepper the Makefile compiling the code by suitable awk or sed scripts. In theory, you can have them exactly the same, since tex is Turing-complete (en.wikipedia.org/wiki/Quine_(computing)), but it's unlikely to print Pi in any sense of the word.

– user49915
57 mins ago






You can probably have the code and the output close enough; you only have to pepper the Makefile compiling the code by suitable awk or sed scripts. In theory, you can have them exactly the same, since tex is Turing-complete (en.wikipedia.org/wiki/Quine_(computing)), but it's unlikely to print Pi in any sense of the word.

– user49915
57 mins ago











4 Answers
4






active

oldest

votes


















3














Writing π with the digits of π - using the verbatim environment.



enter image description here



documentclassarticle
linespread0.7
begindocument
beginverbatim
3.141592653589793238462643383279
5028841971693993751058209749445923
07816406286208998628034825342117067
9821 48086 5132
823 06647 09384
46 09550 58223
17 25359 4081
2848 1117
4502 8410
2701 9385
21105 55964
46229 48954
9303 81964
4288 10975
66593 34461
284756 48233
78678 31652 71
2019091 456485 66
9234603 48610454326648
2133936 0726024914127
3724587 00660631558
817488 152092096
endverbatim
enddocument


Based on ascii art drawing by Jorel - https://www.flickr.com/photos/jorel314/3352784321/






share|improve this answer

























  • How did you format the code? By trial/error?

    – Sigur
    1 hour ago











  • @Sigur I did it by hand, but based off an ascii art drawing I found online. Added a reference to the original drawing.

    – Milo
    1 hour ago












  • Nice. Though, not quite: you simply draw it rather than computing it :-).

    – user49915
    1 hour ago


















2














Happy pi(less) day!!



enter image description here



documentclassreport
begindocument
noindent%
rule30pt1pt\[-1pt]
rule8pt0pt%
rule1pt30pt%
rule12pt0pt%
rule1pt30pt
enddocument





share|improve this answer
































    2














    One should also honor Euler a bit.



    documentclass[tikz,border=3.14mm]standalone
    usepackagetikzlings,amsmath
    makeatletter
    tikzset/thing/.cd,
    pie/.code=thing@cheesetruedefthing@cheese#1, %<-pretend you didn't see that
    pie/.default=pink!70!red
    makeatother
    begindocument
    begintikzpicture[font=sffamily]
    marmot[pie,whiskers,teeth,shadow]
    node[anchor=east,scale=5,transform shape] at (-0.6,1) $picdotmathsfe=textsffamily pie$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer






























      1














      We could extract the MetaPost paths for the glyph pi from the font and draw it using LuaTeX. This does not yet work with TeX Live 2019. Something in luamplib and ConTeXt has changed.



      documentclassarticle

      usepackagefontspec
      setmainfontlatinmodern-math.otf

      usepackageluacode
      beginluacode*


      -- We need some utilities from ConTeXt
      callbacks = callbacks or
      callbacks.supported = callbacks.supported or
      dofile(kpse.find_file("util-fmt.lua"))
      dofile(kpse.find_file("node-ini.lua"))
      dofile(kpse.find_file("font-mps.lua"))
      dofile(kpse.find_file("font-shp.lua"))

      -- That's a simple reimplemetation of ConTeXt's showshape macro
      function outlinepaths(character)
      local fontid = font.current()
      local shapedata = fonts.hashes.shapes[fontid] -- by index
      local chardata = fonts.hashes.characters[fontid] -- by unicode
      local shapeglyphs = shapedata.glyphs or

      character = utf.byte(character)
      local c = chardata[character]
      if c then
      if not c.index then
      return
      end
      local glyph = shapeglyphs[c.index]
      if glyph and (glyph.segments or glyph.sequence) then
      local units = shapedata.units or 1000
      local factor = 100/units
      local paths = fonts.metapost.paths(glyph,factor)
      return paths
      end
      end
      end




      endluacode*

      usepackageluamplib
      mplibsetformatmetafun
      everymplibbeginfig(0);
      everyendmplibendfig;

      defmpdefineoutlines#1directlua


       local char = "luaescapestring#1"
      local outlines = outlinepaths("#1")
      for i, path in ipairs(outlines) do
      tex.print("fill " .. path .. ";")
      end




       

      begindocument

      beginmplibcode

      mpdefineoutlines𝜋

      endmplibcode

      enddocument


      Instead of using luamplib, we could also simply print the path to the log file and copy it to a MetaPost file. With some additonal formatting we get:



      prologues := 3;
      outputformat := "pdf";

      beginfig(1)
      fill (56.70,40.70)
      .. controls (56.70,43.10) and (54.60,43.10)
      .. (52.70,43.10)
      -- (19.20,43.10)
      .. controls (17,43.10) and (13.20,43.10)
      .. (8.80,38.40)
      .. controls (5.30,34.50) and (2.70,29.90)
      .. (2.70,29.40)
      .. controls (2.70,29.40) and (2.70,28.40)
      .. (3.90,28.40)
      .. controls (4.70,28.40) and (4.90,28.80)
      .. (5.50,29.60)
      .. controls (10.40,37.30) and (16.20,37.30)
      .. (18.20,37.30)
      -- (23.90,37.30)
      .. controls (20.70,25.20) and (15.30,13.10)
      .. (11.10,4)
      .. controls (10.30,2.50) and (10.30,2.30)
      .. (10.30,1.60)
      .. controls (10.30,-0.30) and (11.90,-1.10)
      .. (13.20,-1.10)
      .. controls (16.20,-1.10) and (17,1.70)
      .. (18.20,5.40)
      .. controls (19.60,10) and (19.60,10.20)
      .. (20.90,15.20)
      -- (26.50,37.30)
      -- (37.80,37.30)
      .. controls (34.50,22.50) and (33.60,18.20)
      .. (33.60,11.50)
      .. controls (33.60,10) and (33.60,7.30)
      .. (34.40,3.90)
      .. controls (35.40,-0.50) and (36.50,-1.10)
      .. (38,-1.10)
      .. controls (40,-1.10) and (42.10,0.70)
      .. (42.10,2.70)
      .. controls (42.10,3.30) and (42.10,3.50)
      .. (41.50,4.90)
      .. controls (38.60,12.10) and (38.60,18.60)
      .. (38.60,21.40)
      .. controls (38.60,26.70) and (39.30,32.10)
      .. (40.40,37.30)
      -- (51.80,37.30)
      .. controls (53.10,37.30) and (56.70,37.30)
      .. (56.70,40.70)
      -- cycle;
      endfig;
      end


      Or you can even use the path with TikZ.



      documentclassarticle

      usepackagetikz

      begindocument

      begintikzpicture[x=1pt,y=1pt]

      fill (56.70,40.70)
      .. controls (56.70,43.10) and (54.60,43.10)
      .. (52.70,43.10)
      -- (19.20,43.10)
      .. controls (17,43.10) and (13.20,43.10)
      .. (8.80,38.40)
      .. controls (5.30,34.50) and (2.70,29.90)
      .. (2.70,29.40)
      .. controls (2.70,29.40) and (2.70,28.40)
      .. (3.90,28.40)
      .. controls (4.70,28.40) and (4.90,28.80)
      .. (5.50,29.60)
      .. controls (10.40,37.30) and (16.20,37.30)
      .. (18.20,37.30)
      -- (23.90,37.30)
      .. controls (20.70,25.20) and (15.30,13.10)
      .. (11.10,4)
      .. controls (10.30,2.50) and (10.30,2.30)
      .. (10.30,1.60)
      .. controls (10.30,-0.30) and (11.90,-1.10)
      .. (13.20,-1.10)
      .. controls (16.20,-1.10) and (17,1.70)
      .. (18.20,5.40)
      .. controls (19.60,10) and (19.60,10.20)
      .. (20.90,15.20)
      -- (26.50,37.30)
      -- (37.80,37.30)
      .. controls (34.50,22.50) and (33.60,18.20)
      .. (33.60,11.50)
      .. controls (33.60,10) and (33.60,7.30)
      .. (34.40,3.90)
      .. controls (35.40,-0.50) and (36.50,-1.10)
      .. (38,-1.10)
      .. controls (40,-1.10) and (42.10,0.70)
      .. (42.10,2.70)
      .. controls (42.10,3.30) and (42.10,3.50)
      .. (41.50,4.90)
      .. controls (38.60,12.10) and (38.60,18.60)
      .. (38.60,21.40)
      .. controls (38.60,26.70) and (39.30,32.10)
      .. (40.40,37.30)
      -- (51.80,37.30)
      .. controls (53.10,37.30) and (56.70,37.30)
      .. (56.70,40.70)
      -- cycle;

      endtikzpicture

      enddocument


      The output is rather unspectacular.



      enter image description here






      share|improve this answer
























        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "85"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479395%2fwelcoming-2019-pi-day-how-to-draw-the-letter-%25cf%2580%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        3














        Writing π with the digits of π - using the verbatim environment.



        enter image description here



        documentclassarticle
        linespread0.7
        begindocument
        beginverbatim
        3.141592653589793238462643383279
        5028841971693993751058209749445923
        07816406286208998628034825342117067
        9821 48086 5132
        823 06647 09384
        46 09550 58223
        17 25359 4081
        2848 1117
        4502 8410
        2701 9385
        21105 55964
        46229 48954
        9303 81964
        4288 10975
        66593 34461
        284756 48233
        78678 31652 71
        2019091 456485 66
        9234603 48610454326648
        2133936 0726024914127
        3724587 00660631558
        817488 152092096
        endverbatim
        enddocument


        Based on ascii art drawing by Jorel - https://www.flickr.com/photos/jorel314/3352784321/






        share|improve this answer

























        • How did you format the code? By trial/error?

          – Sigur
          1 hour ago











        • @Sigur I did it by hand, but based off an ascii art drawing I found online. Added a reference to the original drawing.

          – Milo
          1 hour ago












        • Nice. Though, not quite: you simply draw it rather than computing it :-).

          – user49915
          1 hour ago















        3














        Writing π with the digits of π - using the verbatim environment.



        enter image description here



        documentclassarticle
        linespread0.7
        begindocument
        beginverbatim
        3.141592653589793238462643383279
        5028841971693993751058209749445923
        07816406286208998628034825342117067
        9821 48086 5132
        823 06647 09384
        46 09550 58223
        17 25359 4081
        2848 1117
        4502 8410
        2701 9385
        21105 55964
        46229 48954
        9303 81964
        4288 10975
        66593 34461
        284756 48233
        78678 31652 71
        2019091 456485 66
        9234603 48610454326648
        2133936 0726024914127
        3724587 00660631558
        817488 152092096
        endverbatim
        enddocument


        Based on ascii art drawing by Jorel - https://www.flickr.com/photos/jorel314/3352784321/






        share|improve this answer

























        • How did you format the code? By trial/error?

          – Sigur
          1 hour ago











        • @Sigur I did it by hand, but based off an ascii art drawing I found online. Added a reference to the original drawing.

          – Milo
          1 hour ago












        • Nice. Though, not quite: you simply draw it rather than computing it :-).

          – user49915
          1 hour ago













        3












        3








        3







        Writing π with the digits of π - using the verbatim environment.



        enter image description here



        documentclassarticle
        linespread0.7
        begindocument
        beginverbatim
        3.141592653589793238462643383279
        5028841971693993751058209749445923
        07816406286208998628034825342117067
        9821 48086 5132
        823 06647 09384
        46 09550 58223
        17 25359 4081
        2848 1117
        4502 8410
        2701 9385
        21105 55964
        46229 48954
        9303 81964
        4288 10975
        66593 34461
        284756 48233
        78678 31652 71
        2019091 456485 66
        9234603 48610454326648
        2133936 0726024914127
        3724587 00660631558
        817488 152092096
        endverbatim
        enddocument


        Based on ascii art drawing by Jorel - https://www.flickr.com/photos/jorel314/3352784321/






        share|improve this answer















        Writing π with the digits of π - using the verbatim environment.



        enter image description here



        documentclassarticle
        linespread0.7
        begindocument
        beginverbatim
        3.141592653589793238462643383279
        5028841971693993751058209749445923
        07816406286208998628034825342117067
        9821 48086 5132
        823 06647 09384
        46 09550 58223
        17 25359 4081
        2848 1117
        4502 8410
        2701 9385
        21105 55964
        46229 48954
        9303 81964
        4288 10975
        66593 34461
        284756 48233
        78678 31652 71
        2019091 456485 66
        9234603 48610454326648
        2133936 0726024914127
        3724587 00660631558
        817488 152092096
        endverbatim
        enddocument


        Based on ascii art drawing by Jorel - https://www.flickr.com/photos/jorel314/3352784321/







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 1 hour ago

























        answered 1 hour ago









        MiloMilo

        6,42221650




        6,42221650












        • How did you format the code? By trial/error?

          – Sigur
          1 hour ago











        • @Sigur I did it by hand, but based off an ascii art drawing I found online. Added a reference to the original drawing.

          – Milo
          1 hour ago












        • Nice. Though, not quite: you simply draw it rather than computing it :-).

          – user49915
          1 hour ago

















        • How did you format the code? By trial/error?

          – Sigur
          1 hour ago











        • @Sigur I did it by hand, but based off an ascii art drawing I found online. Added a reference to the original drawing.

          – Milo
          1 hour ago












        • Nice. Though, not quite: you simply draw it rather than computing it :-).

          – user49915
          1 hour ago
















        How did you format the code? By trial/error?

        – Sigur
        1 hour ago





        How did you format the code? By trial/error?

        – Sigur
        1 hour ago













        @Sigur I did it by hand, but based off an ascii art drawing I found online. Added a reference to the original drawing.

        – Milo
        1 hour ago






        @Sigur I did it by hand, but based off an ascii art drawing I found online. Added a reference to the original drawing.

        – Milo
        1 hour ago














        Nice. Though, not quite: you simply draw it rather than computing it :-).

        – user49915
        1 hour ago





        Nice. Though, not quite: you simply draw it rather than computing it :-).

        – user49915
        1 hour ago











        2














        Happy pi(less) day!!



        enter image description here



        documentclassreport
        begindocument
        noindent%
        rule30pt1pt\[-1pt]
        rule8pt0pt%
        rule1pt30pt%
        rule12pt0pt%
        rule1pt30pt
        enddocument





        share|improve this answer





























          2














          Happy pi(less) day!!



          enter image description here



          documentclassreport
          begindocument
          noindent%
          rule30pt1pt\[-1pt]
          rule8pt0pt%
          rule1pt30pt%
          rule12pt0pt%
          rule1pt30pt
          enddocument





          share|improve this answer



























            2












            2








            2







            Happy pi(less) day!!



            enter image description here



            documentclassreport
            begindocument
            noindent%
            rule30pt1pt\[-1pt]
            rule8pt0pt%
            rule1pt30pt%
            rule12pt0pt%
            rule1pt30pt
            enddocument





            share|improve this answer















            Happy pi(less) day!!



            enter image description here



            documentclassreport
            begindocument
            noindent%
            rule30pt1pt\[-1pt]
            rule8pt0pt%
            rule1pt30pt%
            rule12pt0pt%
            rule1pt30pt
            enddocument






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 1 hour ago

























            answered 2 hours ago









            SigurSigur

            25.9k457140




            25.9k457140





















                2














                One should also honor Euler a bit.



                documentclass[tikz,border=3.14mm]standalone
                usepackagetikzlings,amsmath
                makeatletter
                tikzset/thing/.cd,
                pie/.code=thing@cheesetruedefthing@cheese#1, %<-pretend you didn't see that
                pie/.default=pink!70!red
                makeatother
                begindocument
                begintikzpicture[font=sffamily]
                marmot[pie,whiskers,teeth,shadow]
                node[anchor=east,scale=5,transform shape] at (-0.6,1) $picdotmathsfe=textsffamily pie$;
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer



























                  2














                  One should also honor Euler a bit.



                  documentclass[tikz,border=3.14mm]standalone
                  usepackagetikzlings,amsmath
                  makeatletter
                  tikzset/thing/.cd,
                  pie/.code=thing@cheesetruedefthing@cheese#1, %<-pretend you didn't see that
                  pie/.default=pink!70!red
                  makeatother
                  begindocument
                  begintikzpicture[font=sffamily]
                  marmot[pie,whiskers,teeth,shadow]
                  node[anchor=east,scale=5,transform shape] at (-0.6,1) $picdotmathsfe=textsffamily pie$;
                  endtikzpicture
                  enddocument


                  enter image description here






                  share|improve this answer

























                    2












                    2








                    2







                    One should also honor Euler a bit.



                    documentclass[tikz,border=3.14mm]standalone
                    usepackagetikzlings,amsmath
                    makeatletter
                    tikzset/thing/.cd,
                    pie/.code=thing@cheesetruedefthing@cheese#1, %<-pretend you didn't see that
                    pie/.default=pink!70!red
                    makeatother
                    begindocument
                    begintikzpicture[font=sffamily]
                    marmot[pie,whiskers,teeth,shadow]
                    node[anchor=east,scale=5,transform shape] at (-0.6,1) $picdotmathsfe=textsffamily pie$;
                    endtikzpicture
                    enddocument


                    enter image description here






                    share|improve this answer













                    One should also honor Euler a bit.



                    documentclass[tikz,border=3.14mm]standalone
                    usepackagetikzlings,amsmath
                    makeatletter
                    tikzset/thing/.cd,
                    pie/.code=thing@cheesetruedefthing@cheese#1, %<-pretend you didn't see that
                    pie/.default=pink!70!red
                    makeatother
                    begindocument
                    begintikzpicture[font=sffamily]
                    marmot[pie,whiskers,teeth,shadow]
                    node[anchor=east,scale=5,transform shape] at (-0.6,1) $picdotmathsfe=textsffamily pie$;
                    endtikzpicture
                    enddocument


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 58 mins ago









                    marmotmarmot

                    108k5132249




                    108k5132249





















                        1














                        We could extract the MetaPost paths for the glyph pi from the font and draw it using LuaTeX. This does not yet work with TeX Live 2019. Something in luamplib and ConTeXt has changed.



                        documentclassarticle

                        usepackagefontspec
                        setmainfontlatinmodern-math.otf

                        usepackageluacode
                        beginluacode*


                        -- We need some utilities from ConTeXt
                        callbacks = callbacks or
                        callbacks.supported = callbacks.supported or
                        dofile(kpse.find_file("util-fmt.lua"))
                        dofile(kpse.find_file("node-ini.lua"))
                        dofile(kpse.find_file("font-mps.lua"))
                        dofile(kpse.find_file("font-shp.lua"))

                        -- That's a simple reimplemetation of ConTeXt's showshape macro
                        function outlinepaths(character)
                        local fontid = font.current()
                        local shapedata = fonts.hashes.shapes[fontid] -- by index
                        local chardata = fonts.hashes.characters[fontid] -- by unicode
                        local shapeglyphs = shapedata.glyphs or

                        character = utf.byte(character)
                        local c = chardata[character]
                        if c then
                        if not c.index then
                        return
                        end
                        local glyph = shapeglyphs[c.index]
                        if glyph and (glyph.segments or glyph.sequence) then
                        local units = shapedata.units or 1000
                        local factor = 100/units
                        local paths = fonts.metapost.paths(glyph,factor)
                        return paths
                        end
                        end
                        end




                        endluacode*

                        usepackageluamplib
                        mplibsetformatmetafun
                        everymplibbeginfig(0);
                        everyendmplibendfig;

                        defmpdefineoutlines#1directlua


                         local char = "luaescapestring#1"
                        local outlines = outlinepaths("#1")
                        for i, path in ipairs(outlines) do
                        tex.print("fill " .. path .. ";")
                        end




                         

                        begindocument

                        beginmplibcode

                        mpdefineoutlines𝜋

                        endmplibcode

                        enddocument


                        Instead of using luamplib, we could also simply print the path to the log file and copy it to a MetaPost file. With some additonal formatting we get:



                        prologues := 3;
                        outputformat := "pdf";

                        beginfig(1)
                        fill (56.70,40.70)
                        .. controls (56.70,43.10) and (54.60,43.10)
                        .. (52.70,43.10)
                        -- (19.20,43.10)
                        .. controls (17,43.10) and (13.20,43.10)
                        .. (8.80,38.40)
                        .. controls (5.30,34.50) and (2.70,29.90)
                        .. (2.70,29.40)
                        .. controls (2.70,29.40) and (2.70,28.40)
                        .. (3.90,28.40)
                        .. controls (4.70,28.40) and (4.90,28.80)
                        .. (5.50,29.60)
                        .. controls (10.40,37.30) and (16.20,37.30)
                        .. (18.20,37.30)
                        -- (23.90,37.30)
                        .. controls (20.70,25.20) and (15.30,13.10)
                        .. (11.10,4)
                        .. controls (10.30,2.50) and (10.30,2.30)
                        .. (10.30,1.60)
                        .. controls (10.30,-0.30) and (11.90,-1.10)
                        .. (13.20,-1.10)
                        .. controls (16.20,-1.10) and (17,1.70)
                        .. (18.20,5.40)
                        .. controls (19.60,10) and (19.60,10.20)
                        .. (20.90,15.20)
                        -- (26.50,37.30)
                        -- (37.80,37.30)
                        .. controls (34.50,22.50) and (33.60,18.20)
                        .. (33.60,11.50)
                        .. controls (33.60,10) and (33.60,7.30)
                        .. (34.40,3.90)
                        .. controls (35.40,-0.50) and (36.50,-1.10)
                        .. (38,-1.10)
                        .. controls (40,-1.10) and (42.10,0.70)
                        .. (42.10,2.70)
                        .. controls (42.10,3.30) and (42.10,3.50)
                        .. (41.50,4.90)
                        .. controls (38.60,12.10) and (38.60,18.60)
                        .. (38.60,21.40)
                        .. controls (38.60,26.70) and (39.30,32.10)
                        .. (40.40,37.30)
                        -- (51.80,37.30)
                        .. controls (53.10,37.30) and (56.70,37.30)
                        .. (56.70,40.70)
                        -- cycle;
                        endfig;
                        end


                        Or you can even use the path with TikZ.



                        documentclassarticle

                        usepackagetikz

                        begindocument

                        begintikzpicture[x=1pt,y=1pt]

                        fill (56.70,40.70)
                        .. controls (56.70,43.10) and (54.60,43.10)
                        .. (52.70,43.10)
                        -- (19.20,43.10)
                        .. controls (17,43.10) and (13.20,43.10)
                        .. (8.80,38.40)
                        .. controls (5.30,34.50) and (2.70,29.90)
                        .. (2.70,29.40)
                        .. controls (2.70,29.40) and (2.70,28.40)
                        .. (3.90,28.40)
                        .. controls (4.70,28.40) and (4.90,28.80)
                        .. (5.50,29.60)
                        .. controls (10.40,37.30) and (16.20,37.30)
                        .. (18.20,37.30)
                        -- (23.90,37.30)
                        .. controls (20.70,25.20) and (15.30,13.10)
                        .. (11.10,4)
                        .. controls (10.30,2.50) and (10.30,2.30)
                        .. (10.30,1.60)
                        .. controls (10.30,-0.30) and (11.90,-1.10)
                        .. (13.20,-1.10)
                        .. controls (16.20,-1.10) and (17,1.70)
                        .. (18.20,5.40)
                        .. controls (19.60,10) and (19.60,10.20)
                        .. (20.90,15.20)
                        -- (26.50,37.30)
                        -- (37.80,37.30)
                        .. controls (34.50,22.50) and (33.60,18.20)
                        .. (33.60,11.50)
                        .. controls (33.60,10) and (33.60,7.30)
                        .. (34.40,3.90)
                        .. controls (35.40,-0.50) and (36.50,-1.10)
                        .. (38,-1.10)
                        .. controls (40,-1.10) and (42.10,0.70)
                        .. (42.10,2.70)
                        .. controls (42.10,3.30) and (42.10,3.50)
                        .. (41.50,4.90)
                        .. controls (38.60,12.10) and (38.60,18.60)
                        .. (38.60,21.40)
                        .. controls (38.60,26.70) and (39.30,32.10)
                        .. (40.40,37.30)
                        -- (51.80,37.30)
                        .. controls (53.10,37.30) and (56.70,37.30)
                        .. (56.70,40.70)
                        -- cycle;

                        endtikzpicture

                        enddocument


                        The output is rather unspectacular.



                        enter image description here






                        share|improve this answer





























                          1














                          We could extract the MetaPost paths for the glyph pi from the font and draw it using LuaTeX. This does not yet work with TeX Live 2019. Something in luamplib and ConTeXt has changed.



                          documentclassarticle

                          usepackagefontspec
                          setmainfontlatinmodern-math.otf

                          usepackageluacode
                          beginluacode*


                          -- We need some utilities from ConTeXt
                          callbacks = callbacks or
                          callbacks.supported = callbacks.supported or
                          dofile(kpse.find_file("util-fmt.lua"))
                          dofile(kpse.find_file("node-ini.lua"))
                          dofile(kpse.find_file("font-mps.lua"))
                          dofile(kpse.find_file("font-shp.lua"))

                          -- That's a simple reimplemetation of ConTeXt's showshape macro
                          function outlinepaths(character)
                          local fontid = font.current()
                          local shapedata = fonts.hashes.shapes[fontid] -- by index
                          local chardata = fonts.hashes.characters[fontid] -- by unicode
                          local shapeglyphs = shapedata.glyphs or

                          character = utf.byte(character)
                          local c = chardata[character]
                          if c then
                          if not c.index then
                          return
                          end
                          local glyph = shapeglyphs[c.index]
                          if glyph and (glyph.segments or glyph.sequence) then
                          local units = shapedata.units or 1000
                          local factor = 100/units
                          local paths = fonts.metapost.paths(glyph,factor)
                          return paths
                          end
                          end
                          end




                          endluacode*

                          usepackageluamplib
                          mplibsetformatmetafun
                          everymplibbeginfig(0);
                          everyendmplibendfig;

                          defmpdefineoutlines#1directlua


                           local char = "luaescapestring#1"
                          local outlines = outlinepaths("#1")
                          for i, path in ipairs(outlines) do
                          tex.print("fill " .. path .. ";")
                          end




                           

                          begindocument

                          beginmplibcode

                          mpdefineoutlines𝜋

                          endmplibcode

                          enddocument


                          Instead of using luamplib, we could also simply print the path to the log file and copy it to a MetaPost file. With some additonal formatting we get:



                          prologues := 3;
                          outputformat := "pdf";

                          beginfig(1)
                          fill (56.70,40.70)
                          .. controls (56.70,43.10) and (54.60,43.10)
                          .. (52.70,43.10)
                          -- (19.20,43.10)
                          .. controls (17,43.10) and (13.20,43.10)
                          .. (8.80,38.40)
                          .. controls (5.30,34.50) and (2.70,29.90)
                          .. (2.70,29.40)
                          .. controls (2.70,29.40) and (2.70,28.40)
                          .. (3.90,28.40)
                          .. controls (4.70,28.40) and (4.90,28.80)
                          .. (5.50,29.60)
                          .. controls (10.40,37.30) and (16.20,37.30)
                          .. (18.20,37.30)
                          -- (23.90,37.30)
                          .. controls (20.70,25.20) and (15.30,13.10)
                          .. (11.10,4)
                          .. controls (10.30,2.50) and (10.30,2.30)
                          .. (10.30,1.60)
                          .. controls (10.30,-0.30) and (11.90,-1.10)
                          .. (13.20,-1.10)
                          .. controls (16.20,-1.10) and (17,1.70)
                          .. (18.20,5.40)
                          .. controls (19.60,10) and (19.60,10.20)
                          .. (20.90,15.20)
                          -- (26.50,37.30)
                          -- (37.80,37.30)
                          .. controls (34.50,22.50) and (33.60,18.20)
                          .. (33.60,11.50)
                          .. controls (33.60,10) and (33.60,7.30)
                          .. (34.40,3.90)
                          .. controls (35.40,-0.50) and (36.50,-1.10)
                          .. (38,-1.10)
                          .. controls (40,-1.10) and (42.10,0.70)
                          .. (42.10,2.70)
                          .. controls (42.10,3.30) and (42.10,3.50)
                          .. (41.50,4.90)
                          .. controls (38.60,12.10) and (38.60,18.60)
                          .. (38.60,21.40)
                          .. controls (38.60,26.70) and (39.30,32.10)
                          .. (40.40,37.30)
                          -- (51.80,37.30)
                          .. controls (53.10,37.30) and (56.70,37.30)
                          .. (56.70,40.70)
                          -- cycle;
                          endfig;
                          end


                          Or you can even use the path with TikZ.



                          documentclassarticle

                          usepackagetikz

                          begindocument

                          begintikzpicture[x=1pt,y=1pt]

                          fill (56.70,40.70)
                          .. controls (56.70,43.10) and (54.60,43.10)
                          .. (52.70,43.10)
                          -- (19.20,43.10)
                          .. controls (17,43.10) and (13.20,43.10)
                          .. (8.80,38.40)
                          .. controls (5.30,34.50) and (2.70,29.90)
                          .. (2.70,29.40)
                          .. controls (2.70,29.40) and (2.70,28.40)
                          .. (3.90,28.40)
                          .. controls (4.70,28.40) and (4.90,28.80)
                          .. (5.50,29.60)
                          .. controls (10.40,37.30) and (16.20,37.30)
                          .. (18.20,37.30)
                          -- (23.90,37.30)
                          .. controls (20.70,25.20) and (15.30,13.10)
                          .. (11.10,4)
                          .. controls (10.30,2.50) and (10.30,2.30)
                          .. (10.30,1.60)
                          .. controls (10.30,-0.30) and (11.90,-1.10)
                          .. (13.20,-1.10)
                          .. controls (16.20,-1.10) and (17,1.70)
                          .. (18.20,5.40)
                          .. controls (19.60,10) and (19.60,10.20)
                          .. (20.90,15.20)
                          -- (26.50,37.30)
                          -- (37.80,37.30)
                          .. controls (34.50,22.50) and (33.60,18.20)
                          .. (33.60,11.50)
                          .. controls (33.60,10) and (33.60,7.30)
                          .. (34.40,3.90)
                          .. controls (35.40,-0.50) and (36.50,-1.10)
                          .. (38,-1.10)
                          .. controls (40,-1.10) and (42.10,0.70)
                          .. (42.10,2.70)
                          .. controls (42.10,3.30) and (42.10,3.50)
                          .. (41.50,4.90)
                          .. controls (38.60,12.10) and (38.60,18.60)
                          .. (38.60,21.40)
                          .. controls (38.60,26.70) and (39.30,32.10)
                          .. (40.40,37.30)
                          -- (51.80,37.30)
                          .. controls (53.10,37.30) and (56.70,37.30)
                          .. (56.70,40.70)
                          -- cycle;

                          endtikzpicture

                          enddocument


                          The output is rather unspectacular.



                          enter image description here






                          share|improve this answer



























                            1












                            1








                            1







                            We could extract the MetaPost paths for the glyph pi from the font and draw it using LuaTeX. This does not yet work with TeX Live 2019. Something in luamplib and ConTeXt has changed.



                            documentclassarticle

                            usepackagefontspec
                            setmainfontlatinmodern-math.otf

                            usepackageluacode
                            beginluacode*


                            -- We need some utilities from ConTeXt
                            callbacks = callbacks or
                            callbacks.supported = callbacks.supported or
                            dofile(kpse.find_file("util-fmt.lua"))
                            dofile(kpse.find_file("node-ini.lua"))
                            dofile(kpse.find_file("font-mps.lua"))
                            dofile(kpse.find_file("font-shp.lua"))

                            -- That's a simple reimplemetation of ConTeXt's showshape macro
                            function outlinepaths(character)
                            local fontid = font.current()
                            local shapedata = fonts.hashes.shapes[fontid] -- by index
                            local chardata = fonts.hashes.characters[fontid] -- by unicode
                            local shapeglyphs = shapedata.glyphs or

                            character = utf.byte(character)
                            local c = chardata[character]
                            if c then
                            if not c.index then
                            return
                            end
                            local glyph = shapeglyphs[c.index]
                            if glyph and (glyph.segments or glyph.sequence) then
                            local units = shapedata.units or 1000
                            local factor = 100/units
                            local paths = fonts.metapost.paths(glyph,factor)
                            return paths
                            end
                            end
                            end




                            endluacode*

                            usepackageluamplib
                            mplibsetformatmetafun
                            everymplibbeginfig(0);
                            everyendmplibendfig;

                            defmpdefineoutlines#1directlua


                             local char = "luaescapestring#1"
                            local outlines = outlinepaths("#1")
                            for i, path in ipairs(outlines) do
                            tex.print("fill " .. path .. ";")
                            end




                             

                            begindocument

                            beginmplibcode

                            mpdefineoutlines𝜋

                            endmplibcode

                            enddocument


                            Instead of using luamplib, we could also simply print the path to the log file and copy it to a MetaPost file. With some additonal formatting we get:



                            prologues := 3;
                            outputformat := "pdf";

                            beginfig(1)
                            fill (56.70,40.70)
                            .. controls (56.70,43.10) and (54.60,43.10)
                            .. (52.70,43.10)
                            -- (19.20,43.10)
                            .. controls (17,43.10) and (13.20,43.10)
                            .. (8.80,38.40)
                            .. controls (5.30,34.50) and (2.70,29.90)
                            .. (2.70,29.40)
                            .. controls (2.70,29.40) and (2.70,28.40)
                            .. (3.90,28.40)
                            .. controls (4.70,28.40) and (4.90,28.80)
                            .. (5.50,29.60)
                            .. controls (10.40,37.30) and (16.20,37.30)
                            .. (18.20,37.30)
                            -- (23.90,37.30)
                            .. controls (20.70,25.20) and (15.30,13.10)
                            .. (11.10,4)
                            .. controls (10.30,2.50) and (10.30,2.30)
                            .. (10.30,1.60)
                            .. controls (10.30,-0.30) and (11.90,-1.10)
                            .. (13.20,-1.10)
                            .. controls (16.20,-1.10) and (17,1.70)
                            .. (18.20,5.40)
                            .. controls (19.60,10) and (19.60,10.20)
                            .. (20.90,15.20)
                            -- (26.50,37.30)
                            -- (37.80,37.30)
                            .. controls (34.50,22.50) and (33.60,18.20)
                            .. (33.60,11.50)
                            .. controls (33.60,10) and (33.60,7.30)
                            .. (34.40,3.90)
                            .. controls (35.40,-0.50) and (36.50,-1.10)
                            .. (38,-1.10)
                            .. controls (40,-1.10) and (42.10,0.70)
                            .. (42.10,2.70)
                            .. controls (42.10,3.30) and (42.10,3.50)
                            .. (41.50,4.90)
                            .. controls (38.60,12.10) and (38.60,18.60)
                            .. (38.60,21.40)
                            .. controls (38.60,26.70) and (39.30,32.10)
                            .. (40.40,37.30)
                            -- (51.80,37.30)
                            .. controls (53.10,37.30) and (56.70,37.30)
                            .. (56.70,40.70)
                            -- cycle;
                            endfig;
                            end


                            Or you can even use the path with TikZ.



                            documentclassarticle

                            usepackagetikz

                            begindocument

                            begintikzpicture[x=1pt,y=1pt]

                            fill (56.70,40.70)
                            .. controls (56.70,43.10) and (54.60,43.10)
                            .. (52.70,43.10)
                            -- (19.20,43.10)
                            .. controls (17,43.10) and (13.20,43.10)
                            .. (8.80,38.40)
                            .. controls (5.30,34.50) and (2.70,29.90)
                            .. (2.70,29.40)
                            .. controls (2.70,29.40) and (2.70,28.40)
                            .. (3.90,28.40)
                            .. controls (4.70,28.40) and (4.90,28.80)
                            .. (5.50,29.60)
                            .. controls (10.40,37.30) and (16.20,37.30)
                            .. (18.20,37.30)
                            -- (23.90,37.30)
                            .. controls (20.70,25.20) and (15.30,13.10)
                            .. (11.10,4)
                            .. controls (10.30,2.50) and (10.30,2.30)
                            .. (10.30,1.60)
                            .. controls (10.30,-0.30) and (11.90,-1.10)
                            .. (13.20,-1.10)
                            .. controls (16.20,-1.10) and (17,1.70)
                            .. (18.20,5.40)
                            .. controls (19.60,10) and (19.60,10.20)
                            .. (20.90,15.20)
                            -- (26.50,37.30)
                            -- (37.80,37.30)
                            .. controls (34.50,22.50) and (33.60,18.20)
                            .. (33.60,11.50)
                            .. controls (33.60,10) and (33.60,7.30)
                            .. (34.40,3.90)
                            .. controls (35.40,-0.50) and (36.50,-1.10)
                            .. (38,-1.10)
                            .. controls (40,-1.10) and (42.10,0.70)
                            .. (42.10,2.70)
                            .. controls (42.10,3.30) and (42.10,3.50)
                            .. (41.50,4.90)
                            .. controls (38.60,12.10) and (38.60,18.60)
                            .. (38.60,21.40)
                            .. controls (38.60,26.70) and (39.30,32.10)
                            .. (40.40,37.30)
                            -- (51.80,37.30)
                            .. controls (53.10,37.30) and (56.70,37.30)
                            .. (56.70,40.70)
                            -- cycle;

                            endtikzpicture

                            enddocument


                            The output is rather unspectacular.



                            enter image description here






                            share|improve this answer















                            We could extract the MetaPost paths for the glyph pi from the font and draw it using LuaTeX. This does not yet work with TeX Live 2019. Something in luamplib and ConTeXt has changed.



                            documentclassarticle

                            usepackagefontspec
                            setmainfontlatinmodern-math.otf

                            usepackageluacode
                            beginluacode*


                            -- We need some utilities from ConTeXt
                            callbacks = callbacks or
                            callbacks.supported = callbacks.supported or
                            dofile(kpse.find_file("util-fmt.lua"))
                            dofile(kpse.find_file("node-ini.lua"))
                            dofile(kpse.find_file("font-mps.lua"))
                            dofile(kpse.find_file("font-shp.lua"))

                            -- That's a simple reimplemetation of ConTeXt's showshape macro
                            function outlinepaths(character)
                            local fontid = font.current()
                            local shapedata = fonts.hashes.shapes[fontid] -- by index
                            local chardata = fonts.hashes.characters[fontid] -- by unicode
                            local shapeglyphs = shapedata.glyphs or

                            character = utf.byte(character)
                            local c = chardata[character]
                            if c then
                            if not c.index then
                            return
                            end
                            local glyph = shapeglyphs[c.index]
                            if glyph and (glyph.segments or glyph.sequence) then
                            local units = shapedata.units or 1000
                            local factor = 100/units
                            local paths = fonts.metapost.paths(glyph,factor)
                            return paths
                            end
                            end
                            end




                            endluacode*

                            usepackageluamplib
                            mplibsetformatmetafun
                            everymplibbeginfig(0);
                            everyendmplibendfig;

                            defmpdefineoutlines#1directlua


                             local char = "luaescapestring#1"
                            local outlines = outlinepaths("#1")
                            for i, path in ipairs(outlines) do
                            tex.print("fill " .. path .. ";")
                            end




                             

                            begindocument

                            beginmplibcode

                            mpdefineoutlines𝜋

                            endmplibcode

                            enddocument


                            Instead of using luamplib, we could also simply print the path to the log file and copy it to a MetaPost file. With some additonal formatting we get:



                            prologues := 3;
                            outputformat := "pdf";

                            beginfig(1)
                            fill (56.70,40.70)
                            .. controls (56.70,43.10) and (54.60,43.10)
                            .. (52.70,43.10)
                            -- (19.20,43.10)
                            .. controls (17,43.10) and (13.20,43.10)
                            .. (8.80,38.40)
                            .. controls (5.30,34.50) and (2.70,29.90)
                            .. (2.70,29.40)
                            .. controls (2.70,29.40) and (2.70,28.40)
                            .. (3.90,28.40)
                            .. controls (4.70,28.40) and (4.90,28.80)
                            .. (5.50,29.60)
                            .. controls (10.40,37.30) and (16.20,37.30)
                            .. (18.20,37.30)
                            -- (23.90,37.30)
                            .. controls (20.70,25.20) and (15.30,13.10)
                            .. (11.10,4)
                            .. controls (10.30,2.50) and (10.30,2.30)
                            .. (10.30,1.60)
                            .. controls (10.30,-0.30) and (11.90,-1.10)
                            .. (13.20,-1.10)
                            .. controls (16.20,-1.10) and (17,1.70)
                            .. (18.20,5.40)
                            .. controls (19.60,10) and (19.60,10.20)
                            .. (20.90,15.20)
                            -- (26.50,37.30)
                            -- (37.80,37.30)
                            .. controls (34.50,22.50) and (33.60,18.20)
                            .. (33.60,11.50)
                            .. controls (33.60,10) and (33.60,7.30)
                            .. (34.40,3.90)
                            .. controls (35.40,-0.50) and (36.50,-1.10)
                            .. (38,-1.10)
                            .. controls (40,-1.10) and (42.10,0.70)
                            .. (42.10,2.70)
                            .. controls (42.10,3.30) and (42.10,3.50)
                            .. (41.50,4.90)
                            .. controls (38.60,12.10) and (38.60,18.60)
                            .. (38.60,21.40)
                            .. controls (38.60,26.70) and (39.30,32.10)
                            .. (40.40,37.30)
                            -- (51.80,37.30)
                            .. controls (53.10,37.30) and (56.70,37.30)
                            .. (56.70,40.70)
                            -- cycle;
                            endfig;
                            end


                            Or you can even use the path with TikZ.



                            documentclassarticle

                            usepackagetikz

                            begindocument

                            begintikzpicture[x=1pt,y=1pt]

                            fill (56.70,40.70)
                            .. controls (56.70,43.10) and (54.60,43.10)
                            .. (52.70,43.10)
                            -- (19.20,43.10)
                            .. controls (17,43.10) and (13.20,43.10)
                            .. (8.80,38.40)
                            .. controls (5.30,34.50) and (2.70,29.90)
                            .. (2.70,29.40)
                            .. controls (2.70,29.40) and (2.70,28.40)
                            .. (3.90,28.40)
                            .. controls (4.70,28.40) and (4.90,28.80)
                            .. (5.50,29.60)
                            .. controls (10.40,37.30) and (16.20,37.30)
                            .. (18.20,37.30)
                            -- (23.90,37.30)
                            .. controls (20.70,25.20) and (15.30,13.10)
                            .. (11.10,4)
                            .. controls (10.30,2.50) and (10.30,2.30)
                            .. (10.30,1.60)
                            .. controls (10.30,-0.30) and (11.90,-1.10)
                            .. (13.20,-1.10)
                            .. controls (16.20,-1.10) and (17,1.70)
                            .. (18.20,5.40)
                            .. controls (19.60,10) and (19.60,10.20)
                            .. (20.90,15.20)
                            -- (26.50,37.30)
                            -- (37.80,37.30)
                            .. controls (34.50,22.50) and (33.60,18.20)
                            .. (33.60,11.50)
                            .. controls (33.60,10) and (33.60,7.30)
                            .. (34.40,3.90)
                            .. controls (35.40,-0.50) and (36.50,-1.10)
                            .. (38,-1.10)
                            .. controls (40,-1.10) and (42.10,0.70)
                            .. (42.10,2.70)
                            .. controls (42.10,3.30) and (42.10,3.50)
                            .. (41.50,4.90)
                            .. controls (38.60,12.10) and (38.60,18.60)
                            .. (38.60,21.40)
                            .. controls (38.60,26.70) and (39.30,32.10)
                            .. (40.40,37.30)
                            -- (51.80,37.30)
                            .. controls (53.10,37.30) and (56.70,37.30)
                            .. (56.70,40.70)
                            -- cycle;

                            endtikzpicture

                            enddocument


                            The output is rather unspectacular.



                            enter image description here







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited 1 min ago

























                            answered 12 mins ago









                            Henri MenkeHenri Menke

                            76.4k8167282




                            76.4k8167282



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479395%2fwelcoming-2019-pi-day-how-to-draw-the-letter-%25cf%2580%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                                Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                                Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»