LaTeX Which is the best way to post heavy LaTeX messages?

  • Thread starter Thread starter mcastillo356
  • Start date Start date
AI Thread Summary
The discussion centers around drafting messages without using the Preview or Edit tools on a forum. Users suggest writing in MS Notepad and typesetting with LaTeX or pdflatex for formatting, particularly for math-related content. One participant emphasizes the importance of using single-dollar signs for in-line math mode in LaTeX, and notes the need to replace these with double-pound signs before posting. A code snippet is provided to help manage this process. Another user mentions using Overleaf for its automatic compilation and collaborative features, highlighting its utility for academic work. Overall, the conversation focuses on effective methods for drafting and formatting posts, particularly those involving mathematical expressions.
mcastillo356
Gold Member
Messages
639
Reaction score
348
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 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 mcastillo356
  • Haha
  • Like
Likes 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!
 

Similar threads

Replies
9
Views
2K
Replies
23
Views
4K
Replies
3
Views
1K
Replies
8
Views
3K
Replies
3
Views
2K
Replies
12
Views
3K
Replies
4
Views
1K
Replies
4
Views
3K
Replies
8
Views
2K
Back
Top