Machine Learning

How to create professional articles with latex on the pointer

A used system for writing technical articles. I, for example, wrote my master's overleaf with a latex file. However, Latex is complicated to learn, and when you work with it with Overleaf, you will encounter many compilation errors and struggle to edit the file exactly how you want.

Fortunately, there's a faster and more efficient way to write Latex code Now: Write it with a pointer, or some other AI-powered script.

You can still write a script like you always used to, but instead of spending time synchronizing calculations, fixing coike issues, solving faucet errors, now you can ask LLM to fix these problems. In addition, it is faster than using an online editor like Overleaf, because you can compile the PDF locally on your computer, which is often faster, depending on the power of your computer.

This highlights the main content of this article. I'll show you how you can save hours by writing latex code in CUSSOR instead of overleaf. This saves you a lot of time and frustration from solving bugs that Agents ai can solve instantly. Photo by Gemini.

The goal of this article is to show that the possibilities of ede are long by highlighting that you can create latex files with it. Finding this as an option was an eye opener for me.

Note that I'm not suggesting you add your writing to CURSOR. You should write your words naturally. I'm just saying that you can take all the unwritten tasks out of CUSSOR, so you can spend all your time writing instead. Also, I was not sponsored in writing this article.

You can access the eBook made from this article here.

Why write latex code in a pointer

Latex is the go-to system for writing technical articles, so whenever you're writing a paper, thesis, or similar, people tend to have latex. People use latex because:

  • You get a good look for your article
  • It's very lovely. You basically edit text, figures, and formatting with a .tex file
  • You have a solid, solid system of references and references

However, it is quite common to write latex in an online editor such as overleaf. I overworked my master's thesis in 2024, and it worked well, although I spent a lot of time on mundane tasks such as fixing race issues, formatting my thesis, editing documents such as:

  • How wide should the image be
  • Compiler Constraints
  • Appropriate Measurements
Cursor Ide
This picture shows how I work to create an eBook in latex with a pointer. I have code in the left column, where I write my content. Sometimes I turn off tab suggestions because they can get in the way when typing. To the right of my code, I have my compiled PDF from the latex code. This updates automatically whenever I save the code file. All the way to the right, I have the Cursor agent, which I can enable with CMD + L on a Mac, to help me format, add a new image, and so on. Photo by the author.

This was especially frustrating because the overleaf takes some time to compile, especially when you have 100-page documents with lots of pictures. Now I have found that there is a better way to write these articles, which is through ede.

Below you can see an example of the latex code, including an alphabetical list of points and a figure with captions and a label used to refer to the figure

A powerful middle-ground approach:

begin{enumerate}
    item Apply OCR to extract document text
    item Prompt an LLM to extract specific metadata
end{enumerate}

This works incredibly well because LLMs can:

begin{itemize}
    item Understand context (which dates are relevant vs irrelevant)
    item Parse different date formats automatically
    item Handle both European (dd.mm.yyyy) and American (mm.dd.yyyy) standards
end{itemize}

Figure~ref{fig:ocr-llm-flow} illustrates this approach:

begin{figure}[h]
centering
includegraphics[width=0.9textwidth]{images/document-to-ocr-to-IE.png}
caption{The OCR + LLM metadata extraction pipeline. A document is first processed through OCR to extract text, which is then combined with a prompt and fed to an LLM to extract structured metadata. This approach balances cost and capability, leveraging the LLM's contextual understanding while avoiding the higher token costs of processing images directly.}
label{fig:ocr-llm-flow}
end{figure}

I would also argue that you should write non-technical content in latex. It is a very structured way to create PDFs with proper formatting, calculations and references.

In addition, you can create presentations using Overleaf, which is actually an article, but in fact, you use clearly separated slides.

Set Latex to CURSOR

Setting up Latex in CURSOR is easy: You ask the agent to create the environment for them. I quickly used the following:

set up a file called ebook which is a latex file and help me parse it 
as a pdf. The layout should be that of a data science ebook

The pointer then creates i eBook.tex The file, and the commands I need to repeat. After that, you can just start writing your content. If you need a specific structure or want to follow a template, you can also quickly refer to this and design the outline of your article, where you can start working.

Writing your article and compiling it

After setting up latex with a pointer, I started writing my eBook. I asked the cursor to draft a data science template for you, where it was filled in on the bases, leaving [TEXT PLACEHOLDER] around the file.

The pointer, for example, sets the title and subheader, the current date, the prever owner, and the chapter provider. At that point I could start filling in the content of my essay.

Image formatting

Image of latex eBook
In this image, you can see an example of the figure I use in my eBook, along with the text that refers to the figure, and the explanation of the figure. To add this image, I simply provided a pointer to the local image, and copied that image into the appropriate workspace and added a reference to the image in the My Ebook.tex File. Photo by author,

At some points, I want to add images and values ​​to my article. I then give the cursor the path to the image on my computer, and a place to insert the image, and provide a field to fill in the image description text. If I want any special formatting of the image (width, opacity, two images next to each other, …) I also quickly do that.

Custom Formatting

Code code
This image shows an example of a Code Block in my eBook. You can see the formatting in the Code Block with the color palette, and the colored lines on the left, which is exactly how I want to display the code in my eBook. Adding this formatting with a cursor was much easier and a faster method than adding such formatting with an overleaf. Photo by author,

The addition code is also very simple with a pointer. I have a certain code style set for me Ages.md File, and I just give the pointer the code to highlight, and add it to the file in the appropriate format. At one point, I also noticed that a line of code goes outside the PDF, and I told the line wrap pointer, and added that Ages.md (If a line of code is long, it always wraps). I will cover more about it Ages.md in the next section.

The box is highlighted

Sometimes, I also want to get points in my ebook. In these cases, I use highlight box. I simply break the appropriate text into my code, press CMD + L to add it as context to the CUSSOR, and quickly move the cursor to add this as a Key Point box. The pointer then provides the box you see below, which helps make my point clear.

This image highlights a key point in my article. I had some text and it asked the cursor to make this key point in my title, with a box around it. Then I got the result you see in the picture. If I did this with overleaf, it would take a long time, to process I would have to ask chatgpt how to do it, go ahead and paste the code into my latex code. Photo by the author.

Lasting Ages.md

When you start writing and extracting the cursor to adjust the formatting, you will notice that the AI ​​agent sometimes does not perform as you wish. In these cases, it is very important to save the Ages.md Where you can relax what you like in one file. For example:

  • If you want quotes in a specific format
  • If you want a specific color scheme
  • How much should your rates be?

Whenever the pointer deviates from the desired behavior, for example, by using the wrong color scheme, you must do two things:

  1. State an indicator of correct behavior (Use a black and white color scheme instead)
  2. Tell the cursor to add that behavior to agents.MD (or .CurserRorres). This will ensure that the error does not occur again

Doing these two steps should be a very important muscle memory whenever the AI ​​agent is not doing exactly what you want it to do. It's especially important when you're writing long latex files, where you depend on consistent settings and formatting, and you don't always want to specify the type of color scheme you want every time you make an update.

Lasting

In this article, I take you through how you can use the pointer to write your technical articles in Latex. For me, this conversion is a work-changer, which saves me many hours every time I write an article in Latex. I believe you shouldn't waste time troubleshooting compiler errors in Overleaf or copying and pasting code from Chatgpt to resolve format errors. Writing Latex to CURSOR basically solves all your problems, except for writing it yourself, which it has to do.

👉 Find me in the community:

📚 Get my FREE language ebook models

💻 My webinar on visual language models

📩 Subscribe to my newsletter

🧑💻 Get in touch

🔗 lickEdin

🐦 X / Twitter

✍️ Medium

You can also read my article below:

Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button