Post editor double-pastes LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter PeterDonis
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary

Discussion Overview

The discussion revolves around the functionality of the post editor in relation to quoting text that contains LaTeX. Participants explore the issues encountered when quoting posts, particularly the duplication of LaTeX content in different formats, and seek potential solutions or workarounds.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes that when quotes are pasted into the post editor, LaTeX content appears twice: once as an image or special characters and once as the LaTeX source.
  • Another participant suggests that using the "reply" or "+Quote" options should avoid this issue, but expresses that it still occurs for them.
  • There is a mention that quoting by marking the text leads to obtaining the exact source code of the quoted post, excluding the quotes themselves.
  • A participant expresses frustration with the need to cut and paste to remove unwanted parts when using the quoting buttons, finding it more cumbersome than deleting the extra LaTeX content.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the effectiveness of quoting methods, as some report issues while others suggest solutions that may not work universally.

Contextual Notes

There are unresolved aspects regarding the specific behavior of the quoting functions and how they interact with LaTeX content, leading to varying experiences among participants.

Messages
49,904
Reaction score
25,947
This is not a major gripe, but when quotes are automatically pasted into the post editor, anything that was LaTeX in the post being quoted gets pasted twice, once as either an image or roughly equivalent special characters, and once as the LaTeX source from the original post. Is there a way to eliminate the image/special characters and just have the LaTeX source pasted? It's annoying to have to go through and delete the other stuff every time.
 
Physics news on Phys.org
This just happens if you quote it by marking the text I think. Using "reply" or "+Quote" should not have this issue.
Getting the LaTeX source code with marking the text would be perfect.

Edit: Here are some parts to test:
##a^2+b^2=5##
Regular text again.
[tex]\LaTeX[/tex]
More regular text.
 
Last edited:
mfb said:
Using "reply" or "+Quote" should not have this issue

It does for me.
 
I mean those buttons at the lower right side of each post. I just saw the text-mark-things have the same labels but work differently. With them, I get the exact source code of the quoted post (minus quotes in it).
mfb said:
Edit: Here are some parts to test:

##a^2+b^2=5##

[tex]\LaTeX[/tex]
 
mfb said:
I mean those buttons at the lower right side of each post.

Yes, but then I have to cut and paste the entire post to take out the parts I don't want to quote, and to separate the quotes into multiple blocks if I'm responding to different statements. That's more of a pain than just deleting the extra copy of the LaTeX stuff.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K