There's all sorts of complexity around things like LaTeX, which produce (print-focused) PDFs. They should theoretically translate very easily into EPUB or HTML for reading on screen, but in practice in-text citations and structured bibliographic references are some of the main exceptions where the transition never quite works.