开发者

Latex Dollar Sign \\ How do I signify Linux Environment Variables in latex?

开发者 https://www.devze.com 2023-01-16 18:00 出处:网络
I am aware to output dollar signs you escape it with \\ such that: \\$ 开发者_开发百科% prints \'$\'

I am aware to output dollar signs you escape it with \ such that:

\$ 开发者_开发百科         % prints '$' 

However, I can't print something like

\$ JAVA_HOME       % prints '$ JAVA_HOME'

The space in between the $ and JAVA_HOME is what's annoying. How can I make it so it's one word?


remove the space? \$JAVAHOME gives what I expect:

$ grep JAVA test.tex 
\$JAVAHOME

$ ps2ascii test.ps
$JAVAHOME
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号