[Tugindia] Text alignment in Alltt environment
Shashi Kumar
shashi.kumar at glyphinternational.com
Thu Apr 15 08:54:52 CEST 2010
Hi,
I am using alltt environment but text do not align properly as desired. Is
there any option to make them fix.
Below is the code.
\begin{alltt}
glBegin(GL\_TRIANGLE\_STRIP);
for(i = 0; i \(<=\) p; i++)
\{
glVertex3f( R * cos( (float)(j+1)/q * PI/2.0 ) * cos( 2.0 *
(float)i/p * PI ),
R * sin( (float)(j+1)/q * PI/2.0 ),
R * cos( (float)(j+1)/q * PI/2.0 ) * sin( 2.0 *
(float)i/p * PI ) );
glVertex3f( R * cos( (float)j/q * PI/2.0 ) * cos( 2.0 *
(float)i/p * PI ),
R * sin( (float)j/q * PI/2.0 ),
R * cos( (float)j/q * PI/2.0 ) * sin( 2.0 *
(float)i/p * PI ) );
\}
\end{alltt}
Please advise.
Regards,
Shashi Kumar
-
Disclaimer And Confidentiality Notice- This e-mail transmission and any attached
documents, files, or previous e- mail messages attached to it, may contain
information that is confidential. It is for the use of the intended
recipient(s) only. If you have received this e-mail in error, please notify
the sender immediately and then delete it. If you are not the intended
recipient, you must not use, disclose, or distribute this e-mail without the
senders prior permission. We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to carry out your own virus
checks on any attachment to this message. We do not accept liability for any
loss or damage caused by software viruses.
More information about the tugindia
mailing list