Easy way to view and print chatgpt MD markup export files preserving LaTex format

I keep looking, but as of yet, still can’t find an easy way (without compiling or following a series of complicated steps) to view, print and hopefully edit the MD markup files exported by the current version of AIPRM/chatgpt while preserving the LaTex formatting (i.e. as displayed within chatgpt and not as raw markup text). An app or an online browser page (I use Chrome) would do for me. I’m a dinosaur and still using Windows 8.1 and so can’t upgrade Chrome beyond Version 109.0.5414.168 (Official Build) (64-bit).

Hello, it should be possible to use a Markdown editor like Typora or a similar one.

1 Like

Guess I’m screwed. Any other ideas? :face_exhaling:

After watching this video:

Had to download the Microsoft Visual C++ 2018 Redistributable (x64) - 12.0.30501

from:
<can’t tell you. New users can only include two links. I know it was only the second of two links, but that’s what it told me.>

Then ran the exe as administrator. Then opened a cmd window and typed sft /scannow

It did it’s scan, apparently fixed some files.

Then restarted Windows.

And… no luck. Still the same error message. Didn’t work for me. Might work for someone else. Any of those others you could suggest?

use Notion or VS code if you know about it

1 Like

It appears that your operating system is no longer supported by Typora. Alternatively, you can try using Visual Studio Code:

1 Like

Thanks both of you for sharing. But based on the three possibilities I’ve seen so far, I must conclude that the answer to my question is no, there is currently no simple and easy way to simply take an exported chatgpt .MD markup file and view and print it with formatting intact.

Finally found a way to import/open chatgpt MD files and view and print to printer or pdf the markup using the ‘Markdown Viewer’ browser extension for Chrome from the Chrome Web Store. As you can see, the PDF is slightly buggy. But it’s by far the best option I’ve seen so far. Not sure why it’s including a text repeat of formulas at this point, since I’m no expert in markdown. If any markdown expert would like to offer any insight into that anomaly, you’re welcome to contribute. Cheers.

Actually, and I don’t know how recent an innovation this is on the part of OpenAI, if I just share the chat as a public link and access it in Chrome, then all of the content of that chat is viewable. Saving that to PDF so far only appears to save the current visible page, unless I’m doing something wrong. Not sure about printing yet. Don’t want to waste the paper while experimenting. One can remedy that somewhat by zooming out a lot in the process of generating the PDF, which includes more content into the one page and which can be zoomed back in within Chrome, though a printed page of course cannot.

BTW, the prompt included therein is my best attempt so far to get chatgpt Math Solver to produce a decent multiple choice quiz from a variety of criteria (only a small part of which I’ve included for demonstration). I’m learning partially from chatgpt’s own advice as to how to craft prompts that make it do what I want it to do: Focusing on one clear task at a time and then combining those to produce a final output. Any advice on breaking into ‘prompt engineering’ as paid employment? It seems more of an art than a science. Lol

You can simply ask chatgpt to do this for you, I didn’t understand your problem in first place itself, Here is a simple approach where chatgpt helped me solve this, And it works for me everytime, is just ask Chatgpt to convert the image to Latex editor code,

Here it is:

Here is the output


And here is the implementation of it in the online latex editor overleaf

It works fine for me
If it is not helping you, I can help you craft a better prompt for your daily need
Just DM me.

1 Like

Thanks so much, Chinmay. I’m such a newbie. In exploring how to turn the MD files produced by CHATGPT into images that can be printed as they originally appear and even editing them, and assuming those are markdown files (hence the file extension), I was told by the project leader of the github Markdown-Viewer Chrome extension:

“that’s MathML (<math> - MathML | MDN) syntax, meaning part of HTML and not Markdown in any way. You can change the file extension of your document above and load it directly in your web browser. You will see that the exact same error is present there, meaning the MathML syntax provided is incorrect and the browser does not know how to render it correctly. Looking at the attached HTML, the outer most tag contains a class called katex, meaning most likely the web app was using katex (https://katex.org/) to render the math equations, but then the export to MathML was incorrect, I assume.”

I tried that and sure enough, the original ‘html’ shows the anomaly too. So, it’s a CHATGPT issue. When renamed as html, their MD files don’t match their chatgpt appearance. I might file a bug report or otherwise ask in another post here.

But your suggestion is also interesting and may be helpful. I wonder if it’s possible to tell chatgpt to output its entire chat as latex too. I wasn’t even aware that chatgpt could take an image containing math formulas and AI discombobulate it (Lol) so as to produce latex code at all. My my. Also, thank you for introducing me to Overleaf. It’s a tool I haven’t even tried yet. Cheers.

I tried these two prompts within Math Solver:

Please, oh please, (Lol) can you generate html code for this chat that will appear exactly as it appears herein within a Chrome browser?

and

Please generate latex code for the math quiz portion of this chat (not including the prompt itself) so as to easily copy and paste it into a latex editor?

Both succeeded. The second produced slightly better results. In fact, exactly the same as the original. Useful for editing in Overleaf, so your prompt is useful. But the first goes right into Chrome browser with no intervening step, so more useful for convenience. Cheers.

happy to see your problem solved :blush:

1 Like

Just one last thing. Can I mark your post as the solution to my problem? I don’t see that option. BTW, my own prompt failed this time, perhaps because it was a new chat. I had to amend it as follows. Remember, as the guru said, it’s ktex code rather than latex code. Also, I demonstrated that chatgpt can find the relevant portion that I want too:

Generate html code for this chat that will appear exactly as it appears herein within a Chrome browser. Begin at Question 6. Does the series… and stop at the end of Question 10. Be sure to include relevant katex code so that formulas appear as herein.

I think there isn’t a option for that, But glad you liked it
i tried a solution for katex in new chat forum