Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9862 > unrolled thread

Creating 'smart' textbooks with mathematica?

Started byluke wallace <lukewallace1990@gmail.com>
First post2012-04-29 06:08 +0000
Last post2012-04-30 08:41 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

#9862 — Creating 'smart' textbooks with mathematica?

Fromluke wallace <lukewallace1990@gmail.com>
Date2012-04-29 06:08 +0000
SubjectCreating 'smart' textbooks with mathematica?
Message-ID<jnilt6$ahg$1@smc.vnet.net>
I have a technical PDF that is hard to read because you could be on
pave 500 and it will tell you to "refer sections 1.1.4.5, 2.2.1.5,
3.4.3.2, and 6.1.2.4 for the rest of the information you need."

So you have to jump around the book, finding these sections, going
back and forth all day.

If Mathematica could automatically create 'links' to jump to section
headers throughout the whole book in one command for every section
header, then this would revolutionize the functionality of technical e-
books and make them ten times easier to understand.

In all technical books, the actual "Section 1.1" for example is always
different than the mere reference to "Section 1.1" because the real
one will be in bold, italics, a bigger font size, etc no matter where
it is actually randomly located.

Going through one by one and creating interlinks would take forever,
this one book alone I have has about 12,000 needed to be made.

So, if Mathematica could simply link all font size 10 text to the font
size 14 text of an identical string for all duplicate text strings
found, it would do this for all 12,000 references automatically!

Another way would be to link all non-bold font strings to their bold
counterparts.

Currently, Acrobat X, InDesign, FrameMaker, MS Word, and others can't
do this based on merely font size or font style.

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.

[toc] | [next] | [standalone]


#9880

FromDavid Reiss <dbreiss@gmail.com>
Date2012-04-30 08:41 +0000
Message-ID<jnlj85$n39$1@smc.vnet.net>
In reply to#9862
The short answer to this is that there are many ways to program this
in Mathematica and, indeed, many ways to programmatically interact
with a notebook or notebooks in pretty much arbitrary ways. Start to
read up on Notebook Programming, style sheets, and tagging.  This will
give you a start on getting a sense of the wide scope of
possibilities.

Best,
David


On Apr 29, 2:08 am, luke wallace <lukewallace1...@gmail.com> wrote:
> I have a technical PDF that is hard to read because you could be on
> pave 500 and it will tell you to "refer sections 1.1.4.5, 2.2.1.5,
> 3.4.3.2, and 6.1.2.4 for the rest of the information you need."
>
> So you have to jump around the book, finding these sections, going
> back and forth all day.
>
> If Mathematica could automatically create 'links' to jump to section
> headers throughout the whole book in one command for every section
> header, then this would revolutionize the functionality of technical e-
> books and make them ten times easier to understand.
>
> In all technical books, the actual "Section 1.1" for example is always
> different than the mere reference to "Section 1.1" because the real
> one will be in bold, italics, a bigger font size, etc no matter where
> it is actually randomly located.
>
> Going through one by one and creating interlinks would take forever,
> this one book alone I have has about 12,000 needed to be made.
>
> So, if Mathematica could simply link all font size 10 text to the font
> size 14 text of an identical string for all duplicate text strings
> found, it would do this for all 12,000 references automatically!
>
> Another way would be to link all non-bold font strings to their bold
> counterparts.
>
> Currently, Acrobat X, InDesign, FrameMaker, MS Word, and others can't
> do this based on merely font size or font style.
>
> 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.

[toc] | [prev] | [next] | [standalone]


#9892

FromDavid Bailey <dave@removedbailey.co.uk>
Date2012-04-30 08:41 +0000
Message-ID<jnlj77$n2o$1@smc.vnet.net>
In reply to#9862
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


[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web