arcfide / ChezWEB

Hygienic Literate Programming for Chez Scheme
44 stars 7 forks source link

LaTeX support #18

Open eraserhd opened 6 years ago

eraserhd commented 6 years ago

I've sort of got it working for LaTex with this:

\def\N#1#2#3.{
  \section{#3}
}

It gets an "extra \fi" if I have two sections. I think I can figure this out (I was once pretty good at TeX, but I have to relearn it.). Any pointers on what else I need to do or the best way to structure this for contributing it?

arcfide commented 6 years ago

Thanks for taking a look at this. Unfortunately, I have basically no idea how to properly get this into LaTeX at the moment. I'm not aware of the current best practices at all. I've always been more of a fan of Plain TeX, and the output of ChezWEB is very closely matched to the CWEB system. Thus, I'm leveraging the same techniques that that system uses. You may want to see the CWEB documentation for more information about how to deal with the TeX side of things, including the kind of macros that are in use.

eraserhd commented 6 years ago

OK. I'll figure it out (slowly but surely).

arcfide commented 6 years ago

I'm sorry that I couldn't be of more help!