Cut and paste in to other Latex editors

  • LaTeX
  • Thread starter karush
  • Start date
  • Tags
    Cut Latex
In summary, the conversation discussed various issues encountered while using the forum, such as difficulties in saving posts outside of the forum, compatibility issues with online editors, problems with copying and pasting text with math, challenges with using tablets, and issues with saving rendered LaTeX as an image. Additionally, the conversation addressed concerns about being logged out on campus computers and the effectiveness of the autosave feature.
  • #1
karush
Gold Member
MHB
3,269
5
Occasionally I want to save a problem which was explained well here into a document outside the forum

However, I can't find one of the online editors that seems compatible with the one here on MHB.

Also, I have tried to compose a problem from an outside editor and c/p it here but there are always issues
usually its the $ signs or problems mixing text with math.

Also, since many of us use tablets there's no way to do an undo. If you put a () set in the wrong place its a pain to backspace it out.

Also if we want to save the rendered lateX to an image there seems to be no option but to use the sniping tool

Also, using campus computers we are constantly being logged out without knowing it when we hit the submit button we lose everything and have to start over.. and the auto save has done nothing. On my tablet the preview button will lock up the site. so I put everything in the LateX editor and just use the live preview. I copy it all out before I submit then hopefully I can get it to the posts. Losing stuff after composing a lot lateX and redoing it happens to often!

Also, could you please make these editing and live preview windows expandable, Composing is daunting enough without undue need to do a lot of scrolling

other than that life is great.
 
Physics news on Phys.org
  • #2
karush said:
Occasionally I want to save a problem which was explained well here into a document outside the forum

However, I can't find one of the online editors that seems compatible with the one here on MHB.
First, to copy a post text elsewhere, you probably first need to use the "Reply With Quote" button to get access to the actual post code. It may use formatting tags such as [b]...[/b] for bold letters and [LIST]...[/LIST] for lists. In this respect the code is more like HTML than LaTeX, though it uses square brackets instead of angular brackets in HTML. I don't know ways to convert forum formatting to LaTeX off top of my head, but I know that there are HTML to LaTeX converters.

As for math on this forum, it is delimited by single or double dollar signs, \[...\], [math]...[/math] tags or LaTeX environments such as \begin{align}...\end{align}. The first two types of delimiters work in LaTeX as well. In a LaTeX document, some math environments have to be included in either dollar signs or \[...\], but others don't. As for [math]...[/math] tags, they have to be replaced by dollar signs or \[...\].

If you have a single math equation, you can view it on a site such as codecogs. If you have a text with formulas, then you need to provide a so-called preamble. See here for document structure. In the preamble use you should probably write

[m]\usepackage{amsmath,amssymb}[/m]

to include basic packages for math.

After you create a minimal document, you can compile it if you have a local LaTeX installation, or you need an online environment, such as ShareLaTeX.

karush said:
Also, I have tried to compose a problem from an outside editor and c/p it here but there are always issues
usually its the \$ signs or problems mixing text with math.
Simple text with formulas should work fine on the forum since the forum accepts LaTeX math delimiters (dollar signs and \[...\]). Please describe your problem more precisely.

karush said:
Also, since many of us use tablets there's no way to do an undo. If you put a () set in the wrong place its a pain to backspace it out.
I would think it depends on the type of tablet (Android or iPad), on the software, on whether there is a keyboard attached and so on. I can move the cursor on my Android phone by tapping my finger in the required place inside a text box, so there is no need to backspace long segments of text.

karush said:
Also if we want to save the rendered lateX to an image there seems to be no option but to use the sniping tool
Yes, this is the simplest solution. To save a single formula as an image, you can also right-click on the rendered formula on the forum, select "Show Math As", "TeX Commands", copy the LaTeX code and paste it to the codecogs site linked above. It gives you an opportunity to download your formula as an image.

karush said:
Also, using campus computers we are constantly being logged out without knowing it when we hit the submit button we lose everything and have to start over.. and the auto save has done nothing.
The autosave feature seems to work for me within one user session. For example if I navigate from MHB to another page and then click the back arrow in the browser, the text in the edit box is mostly preserved. If you are logged out, it may be different. You could use a text editor to compose your messages and rely on the editor's autosave feature, or regularly save you text manually. Then copy and paste the text from the editor to the forum edit box.

It may not be possible on a campus computer, but I also have a Firefox extension called "Lazarus: Form Recovery", which remembers text entered in an edit box on any site. It works pretty well.

karush said:
On my tablet the preview button will lock up the site.
This probably requires investigation. Please provide more details.

karush said:
Also, could you please make these editing and live preview windows expandable
On the desktop the edit box is expandable. In Firefox there is a handle (several parallel lines in the bottom-right corner) that allows changing the box size.
 
  • #3
Thanks wasn't expecting such a complete answer.

I want to advance a lot more with the lateX.
I notice the best help here has been when the coding looked professional.
 
  • #4
Im currently trying Overleaf but kinda iffy ...
 
  • #5
I prefer Winshell and installing packages from mirror sites. I hate paying for software that was meant to be free.

May give it a try if you want to branch off. Just make sure you get the ghost/postscript files uploaded in the folder just in case you are using graphics.
 

FAQ: Cut and paste in to other Latex editors

1) What is "cut and paste" in Latex and why is it useful?

"Cut and paste" in Latex refers to the process of copying text or codes from one Latex editor to another. It is useful because it allows you to transfer your work between different editors, collaborate with others, and make use of specific features in different editors.

2) How do I cut and paste in Latex?

To cut and paste in Latex, simply select the text or codes you want to copy, then press "Ctrl + X" on your keyboard. To paste, place your cursor where you want to paste the text and press "Ctrl + V". Alternatively, you can right-click and select "Cut" or "Paste".

3) Can I cut and paste images in Latex?

Yes, you can cut and paste images in Latex. However, it is recommended to use the \includegraphics command to insert images in your document. This command allows you to specify the image size, position, and other settings.

4) Does cut and paste affect the formatting of my document?

Cut and paste does not affect the formatting of your document as long as you are copying and pasting within the same editor. However, if you are transferring your work to a different editor, there may be slight changes in formatting due to differences in editor settings.

5) Can I cut and paste from other programs into a Latex editor?

Yes, you can cut and paste from other programs into a Latex editor. However, it is important to note that some formatting may be lost in the process. It is recommended to use the "Paste as Plain Text" option to avoid any formatting issues.

Similar threads

Replies
2
Views
1K
Replies
12
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
4
Views
4K
Replies
1
Views
2K
Replies
3
Views
931
Replies
2
Views
3K
Back
Top