Some useful code snippets
Cursor - 101
Cursor Rules
References:
- Awesome Cursorrules: https://github.com/PatrickJS/awesome-cursorrules
Using Cursor to convert latex template from one format to another
---
description: This rule is helpful for converting a latex project from the current/source template (e.g., NeurIPS's template) to the target template (e.g., ICLR's template)
globs: *.tex
---
Links to the source main file and the target main file are specified in the Chat
- Used the target document class, e.g., `\documentclass[sigconf,authordraft]{acmart}` instead of the source document class.
- Kept all the required packages from the source template, e.g., `\usepackage{amsmath,amsfonts,bm,amsthm}`
- Added the target-specific metadata (copyright, DOI, conference info)
- Converted the author format from the source style to target style with proper email and affiliation formatting
- Moved the acknowledgements to the target-specific environment if needed `\begin{acks}...\end{acks}`
- Changed the bibliography style to target format, e.g., `\bibliographystyle{ACM-Reference-Format}`
- Maintained all the source input files and commands, e.g., `\input{inputs/A_intro_v2.tex}`
- Added keywords in the target format if required in the target format
Enjoy Reading This Article?
Here are some more articles you might like to read next: