LaTeX Mastering Bold Writing in Latex to Using Number Signs for Emphasis

  • Thread starter Thread starter mech-eng
  • Start date Start date
  • Tags Tags
    Latex Writing
Click For Summary
The discussion focuses on using number signs (##) to format text in bold within a specific coding context. A user seeks clarification on how to properly display a two-word phrase in bold using the number sign, while also addressing issues with the long arrow command. It is explained that the long arrow command "\longrightarrow" does not function as expected when used with the number signs. The number signs serve as shorthand for inline code formatting, while different symbols are used for separate line code. The conversation also touches on maintaining spaces in text formatting by using a backslash. Resources for further understanding of LaTeX formatting and symbols are provided.
mech-eng
Messages
825
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 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 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 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 mech-eng

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 23 ·
Replies
23
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
3
Views
331K
  • · Replies 2 ·
Replies
2
Views
46K