I would like to draw some shapes (triangle, circle and both triangle and circle) with numbers in it, if this is possible


1 Answer 1


I am pretty sure that this post at texample.net might help you a lot. Here I report a little snippet that may help you getting started:

% Regular polygons


% Radius of regular polygons

    % Triangle
    \draw (0:\R) \foreach \x in {120,240} {
        -- (\x:\R)
    } -- cycle (90:\R);
    \node[align=center] {Triangle};

    % Circle
    \draw (5,0) circle (\R) node[align=center] {Circle};


That produces the following output:

Triangle and circle

Of course, you can draw a circle around a triangle by simply indicating the same starting coordinate for both shapes. Just tinker with the parameters and try to find what best suits your needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.