How do I make two words bold with number signs in LaTeX?

  • Topic: LaTeX 
  • Thread starter Thread starter mech-eng
  • Start date Start date
  • Tags Tags
    Latex Writing
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
6 replies · 2K views
mech-eng
Messages
826
Reaction score
13
Would you please explain
#: number sign shortly ns
1. How can I put a two-word phrase into bold type using number sign? I try to demonstrate it with using name of sign instead of sign itself.
nsns I come nsns

Above will appear as ## I come ## but I want it seem properly, abstract and all bold.
I know this nsns I nsns nsns come nssn but this is not practical.

Thank you.
 
Physics news on Phys.org
nsns\textrm{ I come }nsns ##\longrightarrow \textrm{ I come }##
 
  • Like
Likes   Reactions: mech-eng
fresh_42 said:
nsns\textrm{ I come }nsns ##\longrightarrow \textrm{ I come }##

upload_2017-4-16_21-30-5.png


But in the above you put longrightarrow code into ##, but longrightarrow appears out of it. Would you explain this?

Thank you.
 
mech-eng said:
View attachment 195062

But in the above you put longrightarrow code into ##, but longrightarrow appears out of it. Would you explain this?

Thank you.
It isn't out of it, it starts right before the arrow and ends after \textrm{ }. Since there are no other mathematical symbols, only text, it might appear as outside.
 
  • Like
Likes   Reactions: mech-eng
fresh_42 said:
nsns\textrm{ I come }nsns longrightarrow ##\ \textrm{ I come }##
fresh_42 said:
It isn't out of it, it starts right before the arrow and ends after \textrm{ }. Since there are no other mathematical symbols, only text, it might appear as outside.
Long arrow does not work now. Would you explain how this happens and function of the double #?

\longarrow ##\textrm{ I come }##[/QUOTE]

Thank you.
 
  • Like
Likes   Reactions: mech-eng
You can also write nsnsI\ comensns which gives ##I\ come##. The space remains when preceeded by a backslash but you still keep the italic (variable notation).
 
  • Like
Likes   Reactions: mech-eng