Generate PDF or HTML of source

Anonymouse zorael at gmail.com
Sun Mar 16 17:50:44 UTC 2025


On Sunday, 16 March 2025 at 17:33:43 UTC, Adam D. Ruppe wrote:
> On Sunday, 16 March 2025 at 17:27:22 UTC, Anonymouse wrote:
>> Is getting rid of the sidebar non-trivial? I get 
>> https://i.imgur.com/ropgZWj.png when printing to PDF.
>
> I never even considered someone would try to print it lol.

The use-case is that I want to put it all on an e-ink reader to 
pore over and annotate it as if it were written out on paper. 
[This particular 
one](https://supernote.com/pages/supernote-manta) doesn't do 
HTML, but PDF works very well.

> Should be easy enough to add some css like
>
> ```
> @media print {
>     #page-nav { display: none !important; }
> }
> ```
>
>
> to the end of style.css in your generated docs folder then 
> refresh it in your browser. Can add other things to hide there 
> too if you want.

That solved that, thanks.

Lastly then, is there any CSS wizardry to be used to make it 
word-wrap? The final hurdle is that it's cutting off text, like 
in https://i.imgur.com/fWCVdYn.png.

Looking at it in a browser and shrinking the window, I guess 
maybe it doesn't wrap to begin with.


More information about the Digitalmars-d-learn mailing list