Reputation
Top tag
Next privilege 75 Rep.
Set bounties
Badges
9
Newest
 Commentator
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 7 votes cast
Jan
14
comment How to use sagesilent (or verbatim) environment in pgffor loops?
Thanks for your opinion. I'd really like this to work with this exam package I mentioned, so ideally without any external tools like python. I remain hopeful that someone comes up with an idea.
Jan
13
comment How to use sagesilent (or verbatim) environment in pgffor loops?
I am actually planning to use a non-public package supporting dedicated question banks, and this works by storing exam questions in macros that can be pulled in later as needed. pgffor is a placeholder for that. I guess my main problem is that I need sagetex environments that can be stored in a macro and be evaluated (by sage) only once the macro is expanded. For this, verbatim-type environments seem to be the wrong path.
Jan
12
awarded  Commentator
Jan
12
comment How to use sagesilent (or verbatim) environment in pgffor loops?
I should add that I did look into different loop options, e.g., using latex3 like suggested in this answer. This didn't work either.
Jan
12
asked How to use sagesilent (or verbatim) environment in pgffor loops?
May
6
awarded  Autobiographer
Nov
24
awarded  Editor
Nov
24
revised Custom \thebibliography with alphabetic numbering for scrltt2 not working in presence of babel
I've updated the original gist with what I think is a solution at this stage. That required to link to an explicit commit in the gist from here to leave the question as it is.
Nov
24
comment Custom \thebibliography with alphabetic numbering for scrltt2 not working in presence of babel
One more thing: The intention with the (re)definition of \section* and \bibsection was to prevent compile errors when the above code is used with other packages like natbib or babel. I wanted to put the above code into an LCO file for as generic a use as possible and have updated the gist with a working version of such an LCO file. The redefinitions are left in place for use with natbib.
Nov
24
comment Custom \thebibliography with alphabetic numbering for scrltt2 not working in presence of babel
After more contemplation I came to realise that there is a wrapper in the original definition around the output. This wrapper is the same regardless of the presence of babel. So, instead of redefining \@citex, I redefine the wrapper: \def\@cite@ofmt#1{\def\@safe@activesfalse{}\hbox{\@Alph{#1}}} and suddenly everything works. I am not sure, however, that this won't break something else that I just haven't noticed yet. Where are these macros documented, anyways?
Nov
24
accepted How to parse a macro that contains a \let?
Nov
24
comment How to parse a macro that contains a \let?
Thanks, that work's for me! I appreciate the explanation, it makes all very clear to me now.
Nov
24
comment How to parse a macro that contains a \let?
@cfr I want to use the content of the macro and the idea with \edef was that it expands away the stuff I don't need. In contrast, \def does not expand anything, so the obstructing \let/\inthewayfalse stays where it is and I just have a new macro with a different name but the same problem as before.
Nov
22
comment Custom \thebibliography with alphabetic numbering for scrltt2 not working in presence of babel
Thanks for those pointers. I realize that I might have tackled the problem from the other end, redefining @bibitem. Maybe that would work smoother.
Nov
22
asked How to parse a macro that contains a \let?
Nov
22
asked Custom \thebibliography with alphabetic numbering for scrltt2 not working in presence of babel
Nov
22
awarded  Informed
Aug
19
awarded  Popular Question
Jul
15
awarded  Supporter
Nov
7
awarded  Scholar