Skip to content →

Category: web

neverending.sty

You don’t
know how lucky you are to be able to begin a LaTeX-document with
something like \documentclass[a4]{amsart}. This simple line
tells the machine what the size of paper is it has to print to, which
part of that paper has to be filled with text, what the design of
titles, sections etc. is (and probably more). Just convince yourself
(for the sake of argument) that you want to produce a readable
mathematical book on paper of dimensions say 6 by 9 inch. How would you
do this? Simple : all you have to do is to adjust certain TeX-parameters
the way you want! Well, that’s exactly what the _neverendingbooks
design department_ has been doing for the last couple of weeks!

The package we would use was easy enough to find. A long time ago, Geert suggested that we
should use the
memoir package
. The fun starts the moment you are foolish enough to
print the manual : 300 pages! After an inspiring account of
book-printing basics over the ages, you are told that you have total
freedom to set your _stock paper size_, how it needs to be
_trimmed_ to get the final result, how you should designs
everything from the title, over abstract, acknowledgement, thanks, table
of contents contents, dedications etc. down to chapter, section and page
styles. In short : ULTIMATE FREEDOM!!!

But, as some of you may
know from experience, there is nothing more frightening to the moderate
autist (and frankly, are there any other mathematicians?) than ultimate
freedom! So, we set up a task-force, had daily brain-storm sessions,
produced numerous trial-prints and eventually came out with something
that came very close to the _better designed book_. Let’s face it
: can you name me _one_ (yeah right, just 1) well-designed
mathematical book? If you don’t believe me, browse through the recent
mathematics-books on amazon (as our design-department
did for a whole week-end, deprived of beverages and other pleasures).
Found anything? Yes?? Please, please let us know! On the other hand, if
you browse through the Art, architecture and
photography section
you will spot several extremely good-looking
books very soon. Well, after a week we succeeded in designing the
_arty-farty-fanshi-wanshi_ (as PD1 would name it, jealous that
she was not in on the fun) mathematical book! And, what did we do with
the labours of all this hard work? NOTHING! We simply dropped the whole
idea (if you are a graphics-designer trying to survive within a
mathematics publishing firm (not easy we know, you have all our
sympathy) and want to do something more fun, contact us and if we can
reach an adequate financial agreement we will be happy to send you our
ideas).

So, what went wrong? Nothing really, it just dawned on
us that _NeverEndingBooks.org_ should not go for the
better-designed mathematics book. All our (potential) authors can
publish as easily at Oxford University
Press
, the European Mathematical
Society
or, if they have no moral objection, at the AMS. So, why
would they choose us instead of these more established publishing
houses? Just because our books look slightly (well let’s face it : a
lot) better? Probably not. We, at neverendingbooks.org should not go for
the better-designed book, we should not go for the book concept at all,
we should invent something entirely NEW & SEXY & USABLE & DESIRING & (I
hope you get the drift!). Next time, I’ll let you in on the first ideas
of our design-department!

Leave a Comment

tiger tracks

I got
Tracks working under Tiger by trial and error starting with a suggestion
from Jan who found a fix here. From this I stumbled on for an hour or so on my iMac
untill near the very end I found that the tracks-page itself now
has a Tiger-section. So, let’s try to do it all over again from fresh on
my regular machine (a little iBook).

Start with
this page
and read it all the way to the comments. There is a
comment by Jamie on installing Rails and MySQL on a fresh Tiger which
looks like the thing I want followed immediately by another post by Jose
Marinez on
Installing Ruby on Rails on Tiger
which I decided to follow by the
letter (with one noticeable exception!). So first I downloaded the Rails
installer on Tiger
. Next, an install of the Standard version of
MySQL. I used version 4.0 for OS
X 10.3 !!!! NOT 4.1 !!!!
. I installed MySQL and the StartUpItem.
Next, I opened Terminal and typed the following commands

– cd
/usr/local/mysql
– sudo chown -R mysql data/
– sudo echo
– sudo ./bin/mysqld_safe &

and verified it by performing a
simple test

/usr/local/mysql/bin/mysql test

Next, I
secured everything by having a root-password

/usr/local/mysql/bin/mysqladmin -u root password
__*

Then I remembered that I’d better
not have to type the whole path so I did a

echo ‘export
PATH=/usr/local/mysql/bin:$PATH’ >> ~/.bash_profile

Also, I want
to admin MySQL via phpmyadmin so I
installed it. Then I enabled my webserver to use PHP using this post though I
did use vi rather than pico! Next, i did a check whether everything
worked fine by typing in safari

http://localhost/~lieven/phpmyadmin/index.php

Followed by
a

sudo gem install mysql –
–with-mysql-dir=/usr/local/mysql

Now, it is time to get the Tracks-package
and to follow these instructions And, it works! Here is the proof :

Leave a Comment

markLaTeXdown

Clearly,
an extended version of Markdown
including LaTeX-commands would be useful for mathematicians and surely
I’m not the first to think about this. In fact, I found a somewhat
pompous text New adventures
if hifi text
by someone claiming to have done precisely that (though
he doesn’t give much details nor post a version of his altered program).

Still, it is pretty clear how to convert a _Markdown+LaTeX_
textfile to plain LaTeX (at least for regex-lovers
). Modify the _Markdown.pl_ script so that the Markdown markup is
translated not to HTML-tags but to LaTeX-commands.

More
interesting material can be found in a thread on _Markdown and
Mathematics_ starting with this post. In it, they search for a good way to include
LaTeX-mathematical commands in a MarkDown text. In fact, this is part of
a more general quest for a good _escape character_ in Markdown to
create _Markdown plus something_ versions. They opt for
{{ and }} rather than the usual
$ signs.

I think the alternatives [
tex ]
and [ /tex ] are slightly better because
then you could feed the text to a functional WordPress installation with the
LaTeXRender
plugin installed and copy the relevant part from the HTML-source of
the resulting post to get a HTML-version of the mathematical text with
all LaTeX-code converted to pictures. Clearly, typing the suggested tags
is somewhat cumbersome so I would type them using the
{{ and }} proposal (one
{ is not enough because a lot a LaTeX code uses single
curly brackets) and then do a global replace to get the
LaTeXRender-tags.

Even more interesting would be to have a
version of the html2txt.py script for LaTeX, that is,
converting a LaTeX-file to Markdown + LaTeXcode which would give an easy
way to convert your existing papers to HTML if you feed the LaTeXRender
plugin with all the required newcommands and packages.

Leave a Comment