Re:Bookdown – Authoring Books and Technical Documents with R...
by nonbel on Saturday December 03, 2016 @02:26PM
(#13097089)
I still lose all formatting when copy-pasting code from the pdfs being generated. Why does that need to be a problem? Eg from page 47:
https://bookdown.org/yihui/bookdown/bookdown.pdf
[ Parent
| on HN ]
Re:Bookdown – Authoring Books and Technical Documents with R...
by yihui on Saturday December 03, 2016 @03:13PM
(#13097296)
Because PDF is for printing purposes. There could be many many problem if you copy and paste from PDF (white spaces being eaten, ligatures, curly quotes, en/em-dashes, ...; almost as bad as Word, except that PDF is beautiful). So don't copy from PDF, but from HTML instead. HTML is much more faithful in terms of preserving characters.