math mode in program listing

2011-01-12 Thread Jack Tanner
I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... }

Re: math mode in program listing

2011-01-12 Thread Paul Rubin
Jack Tanner ihok at hotmail.com writes: I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... } Right click on the listing, click

math mode in program listing

2011-01-12 Thread Jack Tanner
I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... }

Re: math mode in program listing

2011-01-12 Thread Paul Rubin
Jack Tanner ihok at hotmail.com writes: I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... } Right click on the listing, click

math mode in program listing

2011-01-12 Thread Jack Tanner
I'd like to have a program listing, and to be able to insert math in comments in the listing. Is that possible? For example, void main(argv[]) { // calculate the mean $\mu$ for (int i = 0; ... }

Re: math mode in program listing

2011-01-12 Thread Paul Rubin
Jack Tanner hotmail.com> writes: > > I'd like to have a program listing, and to be able to insert math in > comments in the listing. Is that possible? > > For example, > > void main(argv[]) { >// calculate the mean $\mu$ >for (int i = 0; ... > } > > Right click on the listing,