GeneralHow to show the word of D3DFMT_R32F

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
akira32
Posts: 45
Joined: Tue Nov 13, 2007 10:32 am

How to show the word of D3DFMT_R32F

Post by akira32 »

If I type the code as below:

Code: Select all

for example, $D3DFMT_R32F$
The character of "R" in the word of D3DFMT_R32F will become suffix(small and lower down) as the picture I attach. The result I want is "D3DFMT_R32F" and keep the words, do not change the format.
Attachments
D3DFMT_R32F the R will become suffix(small and lower down)
D3DFMT_R32F the R will become suffix(small and lower down)
D3DFMTR32F.JPG (2.02 KiB) Viewed 2108 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to show the word of D3DFMT_R32F

Post by localghost »

You should be aware of the fact that $...$ switches to in-line mathematical mode and the underscore is reserved for subscript indices in this mode. So you have to use special code for special characters.

Code: Select all

\$D3DFMT\_R32F\$
If this expression is part of a code listing in a specific programming language, you should take a look at the listings package.


Best regards
Thorsten¹
akira32
Posts: 45
Joined: Tue Nov 13, 2007 10:32 am

How to show the word of D3DFMT_R32F

Post by akira32 »

Code: Select all

for example, D3DFMT\_R32F
That is I want. Thank you!

Best regards
Akira
Post Reply