Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9892
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Creating 'smart' textbooks with mathematica? |
| Date | 2012-04-30 08:41 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jnlj77$n2o$1@smc.vnet.net> (permalink) |
| References | <jnilt6$ahg$1@smc.vnet.net> |
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 3.4.3.2, 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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Creating 'smart' textbooks with mathematica? luke wallace <lukewallace1990@gmail.com> - 2012-04-29 06:08 +0000 Re: Creating 'smart' textbooks with mathematica? David Reiss <dbreiss@gmail.com> - 2012-04-30 08:41 +0000 Re: Creating 'smart' textbooks with mathematica? David Bailey <dave@removedbailey.co.uk> - 2012-04-30 08:41 +0000
csiph-web