LaTeX Why the ##\#\#\#\### but not just?

  • Thread starter Thread starter yucheng
  • Start date Start date
  • Tags Tags
    latex
Click For Summary
The discussion centers on the use of different syntax for equations in LaTeX editors, specifically the difference between LyX, which uses "####" for single line code, and other editors that use "$$" for the same purpose. The user expresses frustration over the need to manually replace "$$" with "####" throughout their document. Other participants suggest that most editors have a search and replace feature, which can simplify this task significantly. The conversation highlights the compatibility issues between different LaTeX environments and the importance of understanding the syntax requirements of the specific editor being used.
yucheng
Messages
232
Reaction score
57
I am planning to type my equations in an offline LaTeX editor, simply because it is easier to do. I'll be using LyX. The problem is, it uses ##\#\#\#\###, for single line code, while my editor uses \$\$. Is there any way to overcome this? Am I, seriously, to replace every single \$\$ into ##\#\#\#\###? It is a bit of a nuisance. I'd hope someone else has experience handling this.

Thanks in advance!
 
  • Like
Likes member 587159
Physics news on Phys.org
Every reasonable editor can do search and replace for such a simple task.

The forum uses ## for in-line formulas and $$ for separate formulas because that's what MathJax uses.
 
  • Like
Likes member 587159 and Ibix

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K