3 ms·
I'm not sure if it's necessary to use auxiliary files. I made something implementing fake vectors using \csname . I think that a similar approach can be used f
by gus_massa 4y ago
I'm not sure if it's necessary to use auxiliary files.
I made something implementing fake vectors using \csname . I think that a similar approach can be used for this problem, but I prefer to never see my old code again. IWIMM
\newcommand{\defwithindex}[3]{%
\expandafter\def\csname #1@#2\endcsname{#3}%
}
\newcommand{\getwithindex}[2]{%
\csname #1@#2\endcsname%
}
(You probably need the two dimensional version.)
- miguelmurca 4y agoHi! Author here. This is a cool idea for a vector implementation, but you still need to work around the fact that the command definition can come after the \get
- gus_massa 4y agoPerhaps you can use the main aux file, as other packages do. I think I never did that, so I'm not sure about how difficult it is. Or perhaps I used the aux file and I forgot about that. [ I should write an article titled "I hate LaTeX. I hate MSWord." :) . ]
- zauguin 4y agoSince your code doesn't write the authors to the file it already requires that the authors are given before `\maketitle`, so then it's also reasonable to require affiliations there. Then you get something like https://gist.github.com/zauguin/19bf1bc9128a8abaedfe3081717ba5f6 https://gist.github.com/zauguin/19bf1bc9128a8abaedfe3081717b... which doesn't need a file.
- miguelmurca 4y agoHello, I thought about it a little and indeed you are both right! For the sake of completeness I've updated beamleeto to use this mechanism instead :) thank you for your help!