Tufte-LaTeX / tufte-latex

A Tufte-inspired LaTeX class for producing handouts, papers, and books
https://tufte-latex.github.io/tufte-latex/
1.69k stars 301 forks source link

Tufte Sidenotes sub-package? #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First, incredible work guys!  I love this package.  In a few cases, however, 
I've had to comply with other document formatting guidelines too.  For these 
cases, I found it useful to have the sidenotes code as an independent package.  
My version of tufte-sidenotes (based on a slightly older version of 
tufte-latex) can be seen here:

https://gist.github.com/1046680

Would this be something you'd be interested in incorporating into the main 
package?  I think it'd require a bit of reworking with the new code, and 
probably some new work in terms of integrating with all the styles and cite 
commands, etc.

Original issue reported on code.google.com by dgle...@gmail.com on 27 Jun 2011 at 8:59

GoogleCodeExporter commented 9 years ago
In the upcoming major revision of the Tufte-LaTeX package, I plan on making it 
more modular (including splitting off the sidenotes into its own style file).

Thanks for sharing your code, David!

Original comment by godbyk@gmail.com on 29 Jun 2011 at 4:37

GoogleCodeExporter commented 9 years ago
That's great to hear.  Is there a spec for the more modular version?  I'd be 
happy to provide feedback on that.  

Original comment by dgle...@gmail.com on 29 Jun 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Nothing formal yet.  You can see some of my notes and a good list of requested 
features in this thread on the mailing list:

  https://groups.google.com/forum/#!msg/tufte-latex/uSRjg7BftSU/KQf9KoYpL4cJ

Some of the modules I'm thinking of splitting it into are:

 * sidenotes
 * floats (margin figure/table, captions in the margins)
 * full-width environment
 * compatibility packages (to ensure TL-compatibility with other packages)
 * typography packages (letterspacing, fonts, etc.)
 * bibliography packages (compatibility with natbib and bibtex)
 * probably some other components that don't immediately come to midn

If you have any thoughts or suggestions, I'd love to hear them!

Original comment by godbyk@gmail.com on 29 Jun 2011 at 5:59

GoogleCodeExporter commented 9 years ago
Hi all.

We had to comply with some formatting guidelines, but wanted to keep the 
functionality. Therefore, we started to make a sidenotes package. I attached 
the first version and I am happy to hear comments 
(andy.thomas(@uni-bielefeld.de).  Unfortunately, we were not able to make the 
syntax identical, but we are working on some kind of wrapper.

-Andy

Original comment by andytho...@web.de on 21 Aug 2011 at 8:33

Attachments:

GoogleCodeExporter commented 9 years ago
This package looks really good.  It definitely meets my needs for a pure 
sidenotes package.  I think it'd be nice to have an option to redefine the 
footnote command, so that

\usepackage[footnotes]{sidenotes} 

would replace instances of footnotes with sidenotes.

I think this will get a little tricky as I found it useful to have commands for 
the following cases:

1) Use standard footnotes, and only have a section with sidenotes that use the 
footnote command, e.g.
\begin{sidenotes}% replaces footnote commands with sidenote commands
\end{sidenotes}

2) Restore the original meaning of the footnote command when footnote has been 
replaced by sidenotes.

So make it makes sense to have the commands:

\replacefootnotes% replaces the footnote commands with sidenote commands
\replacesidenotes% replaces the sidenote commands with footnote commands

And the environments

\newenvironment{footnotes}{\replacesidenotes}{\replacefootnotes}
\newenvironemtn{sidenotes}{\replacefootnotes}{\replacesidenotes}

Would this need to capture the relevant commands AtDocumentStart in case there 
are unknown patches?

I have needed something like this, so I feel it's an important part.  Are there 
other things to think through with the implementation of hat particular aspect?

Original comment by dgle...@gmail.com on 22 Aug 2011 at 4:55

GoogleCodeExporter commented 9 years ago
Thank you for the positive feedback. We are trying to keep the package as small 
as possible, but I would be happy trying to help with a code snippet. What do 
you think should be done with the optional sidenote offset when in footnote 
mode? Just swallow the number?

Original comment by andytho...@web.de on 25 Aug 2011 at 2:35