Copying latex codes between PF and external Latex software

  • Context: LaTeX 
  • Thread starter Thread starter andrewkirk
  • Start date Start date
  • Tags Tags
    Latex Software
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
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   Reactions: 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].