Created
March 22, 2022 00:18
-
-
Save fangzhou-xie/441d22d48d0a7ba7fbc6f7f79d370b42 to your computer and use it in GitHub Desktop.
format latex to vscode snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fp <- "proposal.tex" | |
lines <- readLines(fp) | |
for (i in 1:length(lines)) { | |
lines[i] = paste0("\"", gsub("\\", "\\\\", lines[i], fixed = TRUE), "\",") | |
} | |
writeLines(lines) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment