How to draw circles of any radius in latex
\cbezier(x-r,y)(x-r,y+k)(x-k,y+r)(x,y+r)
\cbezier(x,y+r)(x+k,y+r)(x+r,y+k)(x+r,y)
\cbezier(x+r,y)(x+r,y-k)(x+k,y-r)(x,y-r)
\cbezier(x,y-r)(x-k,y-r)(x-r,y-k)(x-r,y)


Example 1

Here is an example that I used in a paper: (LaTeX source) (PDF file)

Example 2

\setlength{\unitlength}{.9cm}

\cbezier(0,5)(0,7.761423749)(2.238576251,10)(5,10)
\cbezier(5,10)(7.761423749,10)(10,7.761423749)(10,5)
\cbezier(10,5)(10,2.238576251)(7.761423749,0)(5,0)
\cbezier(5,0)(2.238576251,0)(0,2.238576251)(0,5)
The command \cbezier requires the package bez123.

You can find this pacakge (with its documentation) at any CTAN cite. Or just put the following files in a directory accessible to latex (a directory where other .sty files are stored): bez123.sty multiply.sty

Once you've done that, enable the bezier commands by putting the following in your preamble: \usepackage{bez123}


| Home | Back to Computing |

This page created and maintained by Delia Graff
URL: http://instruct1.cit.cornell.edu/research/graff/files/bezhowto.html
Last modified: "Sunday, 01 Jan 06, 13:53"

Valid HTML 4.0!
Validate this page