[Date Index] [Thread Index] [Author Index]
Re: Creating 'smart' textbooks with mathematica?
On 29/04/2012 07:08, luke wallace wrote: > > Can anyone find a way to do this? By the way, I can easily convert the > PDF to Mathematica since the PDF has editable text. So that isn't an > obstacle. > That depends on whether the formatting information is preserved somehow. I imagine you would need to reformat all the headings, and if they had names such as 18.104.22.168, you could probably rely on just converting all such references to hyperlinks. A good start would be to use NotebookGet[SelectedNotebook] to obtain the entire BoxForm of the notebook (be careful not to print that out) and pick out the headings. Then, for each heading you would use NotebookFind to seek out the corresponding references in the notebook, and replace them with a hyperlink. Don't save the modified notebook on top of the original, because you will almost certainly need to tweak your conversion code a bit! David Bailey http://www.dbaileyconsultancy.co.uk