Giter Site home page Giter Site logo

devangel77b / tuftex Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 27 KB

tuftex is a Latex package (not class) implementing tufte-latex stuff for compatibility with tufte.css

License: MIT License

TeX 100.00%
latex tex4ebook tex4ht tufte tufte-book tufte-css tufte-latex tufte-style

tuftex's Introduction

tuftex

Dennis Evangelista, 2023

tuftex is a Latex package (not class) implementing tufte-latex stuff for compatibility with tufte.css, https://edwardtufte.github.io/tufte-css/ and https://github.com/edwardtufte/tufte-css.

It is based on tufte-latex, https://github.com/Tufte-LaTeX/tufte-latex and https://ctan.org/pkg/tufte-latex?lang=en. Those are great, especially classes tufte-handout and tufte-book but they do not work right with tex4ebook, which I would like to use in order to create reflowable EPUB and iBooks that can be used on iPads for teaching etc. The things in tufte-latex that don't seem to play nice are soul and letterspace. Also, it's really hard to read the older Latex code so I'm trying to refactor it based on 2023 latex2e conventions. I'm doing it as a package vice a class because it's more of a style rather than a difference class of thing than an article or whatever.

Desired workflows

The refactored tuftex shoudl be compatible with the following:

  • Call pdflatex or latexmk for regular PDF production. I'm not super interested in odd flavors of Latex and I'm too lazy to implement many of the options I don't plan to use (sfcaptions, a4paper, etc etc etc). I would like the PDFs to print nicely double sided for hardcopy bound output.
  • Call tex4ebook with an appropriate .cfg file and insert the tufte.css file to get nice reflowable iPad iBook output for when I don't want to print and carry around paper.

Dependencies

Top level dependencies in Latex so far:

  • titlesec, titletoc
  • sidenotes
  • geometry
  • ragged2e
  • changepage
  • mathpazo, helvet, beramono, fontenc, textcomp
  • caption
  • natbib
  • bibentry
  • pgffor

Contributors

D Evangelista.

Thanks to

E Tufte, D Liepmann and team.

tuftex's People

Contributors

devangel77b avatar

Stargazers

 avatar

Watchers

 avatar

tuftex's Issues

Add page numbers, fancy headers

For tufte-handout firstpage is empty, later pages have title pageno in upper right?

book does other stuff... cross that bridge later.

floats - caption placement

Caption placement in figure and table should be aligned at the top but it's not doing that.

The fix is a rather complicated bit where the float body is set in a box, the caption is set in another box, and these are baseline aligned or corrected so they match.

\thanks does not show up in tex4ebook output

In testing /test/sidenotes/basic/test.tex, I find that the \thanks part which gets turned into the first sidenote does not show up in the tex4ebook epub3 output. The other notes are numbered starting from 1. This is probably a wontfix? Doesnt seem to affect other things and use of \thanks in title or author is probably a rare thing (not going to use it as affiliation).

Add floats

Need to add floats like figure, figure*, table, table*, and marginfigure with correct caption behavior. Was close before, but need to tweak captions to be in right place.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.