Reputation
9,129
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
3 40 71
Impact
~1.4m people reached

Jun
12
comment Temporarily changing catcode of %
Thanks, that's exactly the sort of comment that I am looking for, and thinking about it I can see the advantage to what you wrote. +1
Jun
12
comment Temporarily changing catcode of %
@Andrew: that's exactly my intended approach.
Jun
12
comment Temporarily changing catcode of %
+1: that's a solution I didn't think of. I'll have to check whether showing white space instead of %d is acceptable, but it does solve the problem of latex not running.
Jun
12
comment Temporarily changing catcode of %
I tagged it "code review" and "best practices" because I only tested it on a limited number of test cases and wanted to check (a) is there an obvious use-case that will break my code and (b) whether the same effect can be achieved with different, more "idiomatically correct" code.
Jun
12
revised Temporarily changing catcode of %
deleted 18 characters in body
Jun
12
comment Temporarily changing catcode of %
\@percentchar is known to TeX. It is not known to my external filter, which, as I tried to emphasize, I cannot change. Someone else already suggested the similar "solution" in a previous comment (which unfortunately now is deleted). // Please see the edit below the hline in the OP.
Jun
12
comment Temporarily changing catcode of %
Guys: I really appreciate you brainstorming alternative solutions (and do keep them coming, since I know I have not thought of everything). But the point of this question is really simply: is there something wrong with the code I posted above, and is there someway to write it in a better way?
Jun
12
comment Temporarily changing catcode of %
@Andrew: the filter depends on external information; there's no way I can code that in TeX short of calling write18, which at the moment is not possible.
Jun
12
comment Temporarily changing catcode of %
@ChrisH for external reasons neither of those are viable. (The full reasons are too long to explain, but let's just say that write18 is a security risk, and if I cannot count on the filter being run [which will moot the entire problem], I cannot count on the sed script being run either.)
Jun
12
revised Temporarily changing catcode of %
added 429 characters in body
Jun
12
asked Temporarily changing catcode of %
May
20
awarded  Nice Answer
May
5
awarded  Famous Question
Apr
10
awarded  Nice Answer
Mar
23
awarded  Notable Question
Mar
4
awarded  Nice Answer
Feb
23
awarded  Good Answer
Feb
17
comment How to cite an article from Arxiv using bibtex
@ErelSegalHalevi: there is no "should", since I don't think it is standardized. But I generally just put the arXiv id such as arXiv:gr-qc/XXXXXXX or arXiv:XXXX.XXXX Remember, absent an actual style guide from a journal, the main goal of the bibliography is to make the references findable by readers. The arXiv id (properly formatted) is sufficient to uniquely identify a pre-print, so it is generally good enough.
Jan
13
awarded  Good Question
Jan
13
awarded  Popular Question