LaTeX Copying latex codes between PF and external Latex software

  • Thread starter Thread starter andrewkirk
  • Start date Start date
  • Tags Tags
    Latex Software
AI Thread Summary
The discussion highlights the challenges of using TexMaker for composing LaTeX documents intended for posting on Physics Forums (PF). The main issue arises from the differing inline TeX syntax between the two platforms. TexMaker employs symmetric dollar signs for both starting and ending inline TeX, while PF uses asymmetric codes with square brackets. This discrepancy complicates the process of transferring text, as each inline code must be manually adjusted. A solution is presented where using double hash marks (##) for inline TeX in PF simplifies the writing process, making it quicker and more efficient compared to the original PF syntax.
andrewkirk
Science Advisor
Homework Helper
Insights Author
Gold Member
Messages
4,140
Reaction score
1,741
I find it easier to compose derivations in offline latex software, which is TexMaker, and then post it to PF if I need to seek help or discuss something.

This works well except for in-line TeX:

TexMaker uses a 'commence inline TeX' code that is the same as the 'end inline TeX' code, which is just the dollar sign. Double dollars, which on PF denote a non-inline passage of TeX, don't work on TeXmaker.

PF uses the codes (open sq bracket)itex] and (open sq bracket)/itex] for inline code. These are 'asymmetric' between the begin and end code symbols whereas TexMaker has 'symmetric' symbols. TexMaker doesn't recognise the (open sq bracket)itex] approach and PF doesn't recognise the single-dollar approach.

This makes it messy to copy between TexMaker to PF becauise all codes for inline TeX have to be altered one by one. There is no global-replace that can be done.

Is there any code that PF's latex engine will recognise as both a 'start inline code' and 'end inline code' command?

Alternatively, does anybody know of any other 'asymmetric' commands for inline code that I could try in TexMaker. I have tried itex & /itex, latex & /latex & tex & /tex.

Thank you.
 
Physics news on Phys.org
You can use double # for inline TeX.
And double $ for other TeX.
 
  • Like
Likes 2 people
Test inline ##{\Gamma^a}_{bc,d}## end of sentence.

Thank you mfb. That solves my problem and also makes it easier to write latex on PF, as double # is much quicker to type than (open sq bracket)itex] or (open sq bracket)/itex].
 

Similar threads

Replies
16
Views
3K
Replies
5
Views
2K
Replies
3
Views
2K
Replies
10
Views
16K
Replies
9
Views
3K
Replies
16
Views
4K
Replies
4
Views
4K
Replies
1
Views
4K
Replies
4
Views
3K
Replies
3
Views
4K
Back
Top