Hi denis,
I think this topic is useful to you.
https://groups.google.com/d/msg/sphinx-users/pKj-mog4Dqo/BFzBRlJGhI4J
Point is: in "conf.py"::
def setup(app):
app.add_stylesheet('custom-print.css')
and add 'custom-print.css' that contains some css for printing and
place it in your document's _static directory.
Regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa
2014-04-22 19:31 GMT+09:00 denis <[email protected]>:
> How can one sphinx rst-to-html docs with NO or tiny margins for printing ?
> With `html_theme_options = { "nosidebar": "true" }` in doc/source/conf.py,
> the pages have small margins in the browser (Firefox 27.0.1)
> but the printed pages have about 15 % white space on the left, 10 % on the
> right;
> the top header line is full width.
> Is there a way to set "no margins" in conf.py,
> or do I have to mess with `margin` and/or `padding` lines in default.css and
> basic.css ?
>
> The specific pages are those under http://cvxopt.org/userguide
> Sphinx (sphinx-build) 1.2.2
> Python 2.7.6
> Macosx 10.8.3
>
> Thanks,
> cheers
> -- denis
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.