Copying latex codes between PF and external Latex software

  • Context: LaTeX 
  • Thread starter Thread starter andrewkirk
  • Start date Start date
  • Tags Tags
    Latex Software
Click For Summary
SUMMARY

The discussion centers on the challenges of copying LaTeX code between the PF platform and the TexMaker software. TexMaker utilizes symmetric dollar signs for inline TeX, while PF employs asymmetric brackets (itex] and /itex]) for inline code, leading to complications during code transfer. Users must manually alter inline TeX codes due to the lack of a global-replace feature. A solution was proposed to use double hash marks (##) for inline TeX on PF, which simplifies the process significantly.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands.
  • Understanding of inline and block TeX formatting.
  • Experience using TexMaker version 5.0 or later.
  • Basic knowledge of the PF platform's LaTeX engine.
NEXT STEPS
  • Research the differences between symmetric and asymmetric LaTeX commands.
  • Explore advanced features of TexMaker for LaTeX editing.
  • Learn about PF's LaTeX engine capabilities and limitations.
  • Investigate alternative LaTeX editors that support PF's inline code format.
USEFUL FOR

This discussion is beneficial for LaTeX users, particularly those who frequently switch between TexMaker and PF, as well as educators and students involved in mathematical or scientific documentation.

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   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].
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
17K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K