Which is the best way to post heavy LaTeX messages?

  • Context: LaTeX 
  • Thread starter Thread starter mcastillo356
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on the best methods for posting heavy LaTeX messages in forums. Users recommend drafting messages in MS Notepad and typesetting them using pdflatex, emphasizing the importance of using single-dollar signs for in-line math-mode in LaTeX. One participant highlights the utility of Overleaf for collaborative work, automatic compilation, and error log clarity. The conversation also touches on the need for a find-replace function to convert single-dollar signs to double-pound signs for forum compatibility.

PREREQUISITES
  • Familiarity with LaTeX syntax and commands
  • Basic knowledge of using MS Notepad for text editing
  • Understanding of pdflatex for typesetting LaTeX documents
  • Experience with Overleaf for collaborative document editing
NEXT STEPS
  • Learn how to use pdflatex for LaTeX document compilation
  • Explore Overleaf features for real-time collaboration and error handling
  • Research LaTeX in-line math-mode syntax and its applications
  • Investigate find-replace techniques in text editors for LaTeX formatting
USEFUL FOR

This discussion is beneficial for mathematicians, educators, and anyone involved in technical writing who needs to effectively post LaTeX content in online forums.

mcastillo356
Gold Member
Messages
658
Reaction score
361
Hi PF

I'm about to post, and I want to draft it not making use of Preview or Edit tools. I'm thinking about the notepad, or is there another way? I think I was told about help from PF, but can't seem to find the thread where I read it.

Thanks
 
Physics news on Phys.org
You could always write your message into MS Notepad and typeset the results using pdflatex or something to that effect.
 
  • Informative
Likes   Reactions: mcastillo356
I use LaTeX a lot here at PF in replies to math questions, but these replies usually aren't very long. I always check any but the shortest LaTeX scripts using the Preview button, and fix any mistakes before I post my reply.
Speaking only for myself, I don't use any special LaTeX editors -- just Windows Notepad -- but that's just me.
 
  • Informative
Likes   Reactions: mcastillo356
  • Haha
  • Like
Likes   Reactions: pbuk, dextercioby and mcastillo356
One thing to note is that (La)TeX uses single-dollar signs instead of double-pound signs in order to switch to in-line math-mode. In case you are using either of these engines to typeset your messages, you will want to keep this in mind.

You will probably need to find-replace every non-escaped single-dollar sign with a double-pound sign every time you want to post the final draft of your message. The following code may help circumvent this hasslesome task.

Code:
(Macro definitions, but I'm not sure if this site accepts user-defined macros.)

\newif\ifMathMode
\def\mathShift{\ifMathMode\MathModefalse\else \MathModetrue $\fi}
\catcode`\#=13
\def#{\mathShift}

(Body of message here)

\catcode`\#=6

(End of post)
 
Last edited:
berkeman said:
I use Overleaf to typeset all of my supervision work and reports. You can configure it to automatically compile and display a preview of the document whenever you make an edit, the error logs are easy to understand and you can also have more than one author work on the same document. It's also what my uni's ##\TeX## society uses!
 
  • Informative
Likes   Reactions: berkeman

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 36 ·
2
Replies
36
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K