michael-brade / LaTeX.js

JavaScript LaTeX to HTML5 translator
https://latex.js.org
MIT License
736 stars 58 forks source link

Remove margins #131

Open superGold opened 3 years ago

superGold commented 3 years ago

Great project - How goes one remove the margins please? Related alt: how does one load up the geometry package?

michael-brade commented 3 years ago

By creating the geometry.ls package :laughing: Yeah, that's a TODO I guess. For now, raw LaTeX code works:

\setlength{\oddsidemargin}{-1in}
\setlength{\textwidth}{614pt}

But that would mean you won't see the margin notes. Or a hack (I don't know if this is what is supposed to happen :-p):

\setlength{\oddsidemargin}{-2in} % basically, anything smaller than -1in

Or you can modify the CSS directly.