Hacker News new | past | comments | ask | show | jobs | submit login

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.)



Hi! 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


Since 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/19bf1bc9128a8abaedfe3081717b... which doesn't need a file.


Hello, 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!


Perhaps 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." :) . ]




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: