Timeline for How to change Windows path ('\') to LaTeX path ('/')?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 10, 2022 at 13:49 | vote | accept | theozh | ||
Aug 10, 2022 at 13:16 | comment | added | user202729 | TeX is not really meant to be a language to do programming in. Unless you learn TeX programming for learning TeX programming's sake (or have no other option), it's usually not worth it. There's always the option of, you know, use a Python script or something else to generate TeX file if you insist. | |
Aug 10, 2022 at 12:24 | answer | added | Ulrike Fischer | timeline score: 4 | |
Aug 10, 2022 at 12:17 | comment | added | theozh | @user202729 thanks, I can check pdftk. For some people a text editor will be more convenient than command-line, especially if you have many files and long paths. I was hoping for a simple solution with MiKTeX and TeXStudio because that's already available. | |
Aug 10, 2022 at 12:10 | comment | added | user202729 | ah if that's the fundamental problem maybe use some command-line application such as pdftk or something similar (which I think some of them uses LaTeX as back end) | |
Aug 10, 2022 at 12:10 | comment | added | theozh | @UlrikeFischer well,, this is just a document to merge, extract, and order pages from different PDFs. Of course, I could first copy the PDFs all into the same directory as the .tex file and hence no directories and backslashs but just a filename. But this is even more painful than find & replace \ with /. | |
Aug 10, 2022 at 12:09 | comment | added | user202729 |
the most important problem here is that if you understand how TeX tokenization process works, you'll see that there's absolutely no way to distinguish \user1 and \user 1 . that having said, it's not impossible if you're willing to wrap every \includepdf statement with something like \beginreplace ... \endreplace and ensure that it does not appear in the argument of anything else.
|
|
Aug 10, 2022 at 11:57 | comment | added | Ulrike Fischer | well one could probably. But it looks wrong that you have so many absolute pathes in your document. That makes you document quite unportable. | |
Aug 10, 2022 at 11:41 | history | asked | theozh | CC BY-SA 4.0 |