Skip to content →

Tag: LaTeX

hold on to those PPC macs

On my
return from O a brand new 15inch MacBook Pro lie waiting in
my office. By that evening I had wrecked the system to the extend that I
could no longer login and had to reinstall from scratch… I was
about to trow it away but tried it out for a few more days and
eventually began to understand it a bit. In short : the new Intel Macs
promise to be really good hardware, unfortunately some essential
software lags behind, so if you want a stress-free Mac-life… hold
on to your PPC mac a few months longer. If you are impatient and want to
learn some of the pitfalls, read on… I’m ashamed to admit this
but the first thing I did on my new machine was to create a WindowsXP
partition… BootCamp does what it
promises to do and is extremely easy to use once you can start it. The
installation guide does tell that you jave to update your systems
software and firmware, but that’s what you do anyway after a new
install, right? Wrong! You update the software but _not_ the
firmware and it took me some time to come to this simple conclusion. How
to check whether your firmware is up to date? Go under the apple to
‘About this Mac’, click on ‘More Info’ and look at your
‘ Boot ROM Version:’ if it says MBP11.0055.B03 you’re ok, if not
you have to install the newest firmware which is a slightly terrifying experience
with soundsignals included, but works fine. Once this is done, you can
start BootCamp and have a Windows partition in no time. At a certain
moment you have to decide on possible partition-formats for the Windows
part, I choose the ‘Fat’ option to be able to swap files across
the partitions. Next, what does a mathematician wants from a
computer? To run LaTeX! I’ve installed LaTeX on more Macs than I
remember so I continued on automatic pilot, getting Gerben Wierda’s i-Installer, startd it up and
… my machine froze! Nothing, not even a ‘Force Quit’, was
possible any more. Today, there is a clear warning message as the
i-Installer page (i don’t recall seeing it there last week, but then it
is a recent problem. Things broke down on May 11th when I was still in
O)

WARNING: i-Installer on Mac OS X 10.4.6 may trigger
the Mac OS X 10.4.6 bug that partially freezes your system. May 2006:
i-Installer did work perfectly on Mac OS X 10.4.3, the version of Tiger
that was shipped with the Developer Transition Kit. When the first intel
machines were sold by Apple, these contained 10.4.4 and on that system,
i-Installer experiences troubles because of problems deep inside Apple’s
Frameworks. The only way I could solve this was to make i-Installer a
PowerPC-only application again and ask for Apple’s help to determine
where the problem was. So far, this has been s slow process without any
noticeable results. The PowerPC-only version worked fine until Apple
released 10.4.6 and especially the latest upgrades (Security Upgrade
2006-003 and maybe QuickTime). As I am writing this (May 21) a
completely updated Mac OS X 10.4.6 on intel will partially freeze in
various circumstances, triggered by various applications (MatLab,
i-Installer, etc.). Sadly, the just released MacBook (successor of the
iBook) is shipping with this broken version of the OS. Hence, there is
now no i-Installer that reliably works on intel machines with recent OS
versions and even worse, i-Installer may trigger a nasty bug in recent
Mac OS X intel versions.

Scary isn’t it? You have a
brand new expensive machine but cannot typeset a single paper…
Fortunately, the TeXShop
page
not only mentions the problem, but also a workaround

On May 11, 2006, Apple provided security updates for Mac OS
X. These updates broke i-Installer on Intel (it continues to work on
PowerPC). If you have an Intel Mac and you have installed this update,
you must use the MacTeX install package until this problem is fixed.
Once TeX is installed, it works fine.

The first
assertion is true : installing the MacTeX package gives you a working
TeX-installation, with TeXShop, Excalibur, BibTeX and i-Installer coming
for free. But don’t think the i-Installer problem has been solved, I
tried it out and voila another ice-age… So far so good but
sometimes we like to compute things, don’t we? Like some commutative
algebra or algebraic geometry things via Singular? I remembered to
install this via the Fink
project
but already their news-items are not very promissing

A preliminary version of Fink for the Intel architecture is
now ready. No binary packages are available, and things are still rough
around the edges, but it should be usable if you are patient! To
install it, you need to install the XCode compiler and SDK packages (at
minimum). Then you need to get the file fink-0.24.14.tar.gz from the
Sourceforge file release page for Fink, expand the file, and run the
command ./bootstrap.sh . At the end of the bootstrap process, run fink
selfupdate and you’ll get the currently available packages. At last
check, there were about 1750 packages in the “stable” tree,
but about 150 of those did not build. When things are truly stable,
another annoucement will be made here.

The normal
FinkCommander didn’t work either but then I found a version which does
at Charles K. C. Lo’s
Homepage
. I verified it by having the fink-TeTeX package installed
(which works!) and then I wanted to do a Singular-install… Things
seemed to start off well (once you change the freferences to install
also unstable packages) but then the installation procedure halted with
the message

Failed: phase compiling: singular-3.0.1-1013
failed Before reporting any errors, please run “fink
selfupdate” and try again. If you continue to have issues, please
check to see if the FAQ on fink’s website solves the problem. If not,
ask on the fink-users or fink-beginners mailing lists. As a last
resort, you can try e-mailing the maintainer directly: Michael
Brickenstein bricken at mathematik.uni-kl.de Note that many
fink package maintainers do not (yet) have access to OS X on Intel
hardware, so you may have better luck on the mailing lists.

So, maybe I should just donate my MacBook Pro to the
Fink-project? A similar problem with installing Maxima… I didn’t
even try out GAP via Fink but went for a niversal Unix-installation for
GAP and this WORKED! even with all packages and tables and the whole I
dont know what. Thank you, GAPpers, perhaps all algebraists on Intel
Macs should shift to GroupTheory? But hey! My Intel-Mac does have a
WindowsXP partition… So, I did a binary Windows install of
Singular and Maxima and both work without problems. Still, it is a
strange situation. Fortunately, I did resolve these issues but that will
have to wait until tomorrow…

One Comment

make your own mopp

If you
want to make your own ‘My Online Publications Page’ (MOPP) similar
to mine here’s what you have to do :

  1. in case you are running
    Linux, all you need is the mopp package and
    follow the instruction on this page.
  2. if you are onto Mac OSX you have to get and compile a few more
    packages. To start, go to the BibTeX bibliography tools page and
    download the bibclean file. Go to
    the directory, do a ./configure and a
    make and copy the resulting executable bibclean to the
    bibtools/bin folder of your mopp-folder (see first
    step).
  3. get the latest gawk package. Do a
    ./configure, then a make and a
    sudo make install and gawk gets installed at
    /usr/local/bin/gawk. Make a symbolic link (or use a
    bruteforce copy) to /usr/bin/gawk.
  4. Make a
    symbolic link or a bruteforce sudo cp /bin/ksh
    /usr/bin/ksh
    .
  5. If you are using only scanned
    pdf-files it is sufficient to get DjVu-versions of them using the Any2DjVu service. If you want
    to do the conversion from Pdflatex-files yourself, get the DjVuLibre package, configure,
    make and install it as before. All programs get installed under
    /usr/local/bin, write down the files in the
    djvu/bin folder of the mopp-folder, remove them and
    copy your compiled version of them from /usr/local/bin to the djvu/bin
    directory.
  6. Open the work/mopp.sh script of
    the mopp-folder in an editor, comment out the recode
    line and change the awk line into
    awk -v
    THENAME=”$MOPP_NAME” -v
    THELOGO=”$MOPP_LOGO” -f bib2html.awk \
    (that is
    add a space after the two -v options).
  7. You should now be
    able to follow the remaining instruction from the How to make “My
    Online Publications Page” page
    to get a mopp-page which looks
    roughly like this one.
  8. If you want to change the layout of that page, you should
    modify the work/bibtex2html.awk file to fit your taste.
    If you want to have a layout similar to mine email me and I’ll send you my bibtex2html.awk file.

    One Comment

MyLife@300dpi

Three years ago I did spend three weeks next to my Canonscan, painstakingly scanning all individual pages of every preprint I ever wrote. Next, I converted every page to PDF, resized it (in order to control the size) and bundled them into PDF-files. A typical preprint would take me roughly three quarters of an hour and the final result was mediocre. For example, here a blown-up sample from the original 1992 ‘Moduli
spaces of right ideals of the Weyl algebra’ -preprint, resulting in a 1.7Mb PDF-file

Recentlty, the department bought a Ricoh-copier which makes scanning a lot more fun. To scan a preprint at 300dpi and convert it into a single PDF-file takes under a minute (actually, downloading the file using a web-interface takes longer…). For this particular preprint, the resulting PDF-file took up 1.2Mb and looks a lot nicer

Still, 1.2Mb is a huge file but converting it to a DjVu-file (DjVu=deja vu) using the handy Any2DjVu Service gives us a mere 236Kb file which comes a lot closer to the filesize of a PDFLaTeX-file and the output is still very legible

So, I decided to rescan my entire life at 300dpi and convert it into DjVu. Next, I got the MOPP-package (MOPP = My Online Publications Page) working using the instructions from this page and some obvious MacOSX-modifications (if I can do it, so can you but perhaps I’ll write up the details in another post, just to remind myself). You can see the result at my homepage. I’ll update the latter one regularly (there are still some preprints missing, as are all my courses etc. and cross-references) and only afterwards I’ll update my homepage again. So far there is 250Mb to download (including all versions of the noncommutative geometry@n book, including the published ones…) so this should keep you busy for a while…

Leave a Comment

Latexrender and dvonn boards

In order
to blog a bit about Dvonn-strategy, I made myself a simple Dvonn
LaTeX-template which works very well on paper but which gets mutilated
by Latexrender, for example the first situation of the looks
like

$~\xymatrix@=.3cm @!C @R=.7cm{ & & \Black{2} \connS & &
\bull{d}{5} \conn & & \bull{e}{5} \conn & & \bull{f}{5} \conn & &
\bull{g}{5} \conn & & \bull{h}{5} \conn & & \SWhite \connS & & \SWhite
\connS & & \SWhite \conneS & & \\ & \bull{b}{4} \conn & & \SBlack
\connS & & \Black{6} \connS & & \bull{e}{4} \conn& & \bull{f}{4} \conn &
& \bull{g}{4} \conn & & \bull{h}{4} \conn & & \SWhite \connS & &
\SWhite \connS & & \SWhite \conneS & \\ \SBlack \connbeginS & &
\SBlack \connS & & \BDvonn{7} \connS & & \bull{d}{3} \conn & & \SBlack
\connS & & \BDvonn{6} \connS & & \bull{g}{3} \conn & & \bull{h}{3}
\conn & & \Dvonn \connS & & \SWhite \connS & & \SWhite \connendS \\ &
\Black{5} \connbeginS & & \bull{b}{2} \conn & & \SBlack \connS & &
\bull{d}{2} \conn & & \bull{e}{2} \conn & & \bull{f}{2} \conn & &
\bull{g}{2} \conn & & \bull{h}{2} \conn & & \SWhite \connS & & \SWhite
\connendS & \\ & & \bull{a}{1} \con & & \bull{b}{1} \con & & \Black{5}
\conS & & \bull{d}{1} \con & & \bull{e}{1} \con & & \bull{f}{1} \con & &
\bull{g}{1} \con & & \bull{h}{1} \con & & \White{2} & &} $

The
reason behind this unwanted clipping is that Latexrender uses
**convert** to take the relevant part of a ps-page containing only the
TeXed formula on an empty page by performing clipping and then converts
it into a GIF-file (or any other format you desire). The obvious way
round this is to enlarge my template by adding two additional rows and
columns and putting visible nonsense there (such as dots) to enlarge the
relevant part so that no clipping is done of essential info. But then
(1) the picture generated becomes even larger than that above and (2) I
don’t want you to see the extra nonsensical dots… The essential line
in the **class.latexrender.php** file is

$command =
$this->_convert_path." -density ".$this->_formula_density.
" -trim -transparent \"#FFFFFF\" ".$this->_tmp_filename.".ps ".
$this->_tmp_filename.".".$this->_image_format;

So
I needed to delve into the [manual pages for the convert command](http://amath.colorado.edu/computing/software/man/convert.html)
of the ImageMagick-package. To my surprise, the *-trim* option (which I
thought to adjust somewhat by adding parameters) doesn’t exist! Still, I
got around my second problem using the *crop* option and around the
first by using the very useful *geometry* option. The latter is also
useful if you find that the size of the output of Latexrender is not
compatible with the size of your regular text. Of course you can amend
this somewhat by using the *extarticle* documentclass (as suggested) but
if you want to further adjust it, use for example

-geometry
86%

to size the output to exactly 86% (or whatever you need).
So, whenever I want to do some Dvonn-blogging from now on I’ll change my
class.latexrender.php file as follows

$command =
$this->_convert_path." -crop 0x0-10% -crop 0x0+10% -density
".$this->_formula_density. " -geometry 80%
-transparent \"#FFFFFF\" ".$this->_tmp_filename.".ps ".
$this->_tmp_filename.".".$this->_image_format;

which
produces the output

$\xymatrix@=.3cm @R=.7cm{.& & & & & & & & & &
& & & \\ & & & \Black{2} \connS & & \bull{d}{5} \conn & & \bull{e}{5}
\conn & & \bull{f}{5} \conn & & \bull{g}{5} \conn & & \bull{h}{5} \conn
& & \SWhite \connS & & \SWhite \connS & & \SWhite \conneS & & & \\ & &
\bull{b}{4} \conn & & \SBlack \connS & & \Black{6} \connS & &
\bull{e}{4} \conn& & \bull{f}{4} \conn & & \bull{g}{4} \conn & &
\bull{h}{4} \conn & & \SWhite \connS & & \SWhite \connS & & \SWhite
\conneS & & \\ & \SBlack \connbeginS & & \SBlack \connS & &
\BDvonn{7} \connS & & \bull{d}{3} \conn & & \SBlack \connS & &
\BDvonn{6} \connS & & \bull{g}{3} \conn & & \bull{h}{3} \conn & &
\Dvonn \connS & & \SWhite \connS & & \SWhite \connendS & . \\ & &
\Black{5} \connbeginS & & \bull{b}{2} \conn & & \SBlack \connS & &
\bull{d}{2} \conn & & \bull{e}{2} \conn & & \bull{f}{2} \conn & &
\bull{g}{2} \conn & & \bull{h}{2} \conn & & \SWhite \connS & & \SWhite
\connendS & & \\ & & & \bull{a}{1} \con & & \bull{b}{1} \con & &
\Black{5} \conS & & \bull{d}{1} \con & & \bull{e}{1} \con & &
\bull{f}{1} \con & & \bull{g}{1} \con & & \bull{h}{1} \con & & \White{2}
& & & \\ . & & & & & & & & & & & & & } $

which (I hope) you will
find slightly better…

Leave a Comment

latexrender plugin for wordpress under tiger

Promises and pie-crusts are made to be broken, a wiser man once
said. Still, promises have a much longer life-span and sometimes their
real content becomes redundant over time.

A year ago, I
promised
to document how I got the
LaTeXRender Plugin for WordPress
working under OS X. The procedure
consisted of some trial-and-error operations, installing non-standard
versions of software and hardcoding certain directories throughout
certain files…

Not something I was looking forward
to when I decided to upgrade this WordPress blog but,
surprisingly, things went pretty smoothly this time (Mac-technology
has improved a lot). So, please don’t worry too much about this
post
and follow the (late) instructions below.

First
things first : I will assume you have the ‘generic’ LaTeX
running under Tiger (10.4),that is, use the i-Installer to download BOTH
LaTeX and Imagemagick! Further, in order to get WordPress up and
running, have the standard
MySQL 4.0 package
installed for 10.3 (not version
4.1…) and don’t use the generic Mac-PHP version, but
instead download Marc
Liyanage’s PHP5 package
which has plenty of additional
packages installed (notably, GDlib and MCRYPT which comes in handy if
you want to fight spam-comments using BotCheck).

\r
\n

Download wp-
latexrender.zip
and follow the instructions given to the letter
(there is one undocumented extra directory you have to fill in at the
start of the latexrender-plugin.php file). There is
just one additional thing to do. Find in the
class.latexrender.php file the line starting
with

// convert dvi file to postscript using
  dvips

and include the following lines just before it
:

// begin of workaround // extending the PATH
  environmental variable Soldpath =
  getenv(“PATH”); Swhere_imagemagick_is =
  “/usr/local/bin”; if (Soldpath) { Swhere_imagemagick_is .=
  “:Soldpath”;} putenv(“PATH=Swhere_imagemagick_is”); //
  end of workaround 

activate the plugin and it
should work! Still, there are three things you may want to change. In
the latex.php file uncomment the indicated lines as
you will be using htmlArea to input your posts. In addition, if you
have the MarkDown-plugin enabled, it is best to append additional
lines such as

 Slatex_formula =
  str_replace(“_”,”_”,Slatex_formula);     Slatex_formula
  =
  str_replace(“_”,”_”,Slatex_formula); 

(
between the first ” ” should be the beginning and end
em-tag respectively) or underscores will be interpreted as em-tags.
If you run into additional similar problems, the procedure is to
comment-out the line

 
  unlink(Sthis->_tmp_dir.”/”.Sthis->_tmp_filename.”.tex”); 
  

near the end of class.latexrender.php , look in the
tmp directory for the TeX-file, detect the problem and add similar
lines to the ones above to solve it. Another useful thing to do
is to add TeX-packages in the class.latexrender.php file. My own
version has the following predefined symbols and loaded
packages

 function wrap_formula(Slatex_formula) { 
  Sstring  =
  “\\documentclass[“.Sthis->_font_size.”pt]{“.Sthis->_latexclass
  .”}\\n”;  Sstring .=
  “\\usepackage[latin1]{inputenc}\\n”;  Sstring .=
  “\\usepackage{amsmath}\\n”;  Sstring .=
  “\\usepackage{amsfonts}\\n”;  Sstring .=
  “\\usepackage{amssymb}\\n”;  Sstring .=
  “\\usepackage{xy}\\n”;  Sstring .=
  “\\xyoption{all}\\n”;  Sstring .=
  “\\\\newcommand{\\vtx}[1]{*+[o][F-]{Scriptscriptstyle
  #1}}\\n”;  Sstring .= “\\\\newcommand{\\mathbb{C}c}{\\Bbbk}\\n”; 
  Sstring .= “\\\\newcommand{\\mathbb{C}}{\\mathbb{C}}\\n”;  Sstring .=
  “\\\\newcommand{\\mathbb{Q}}{\\mathbb{Q}}\\n”;  Sstring .=
  “\\\\newcommand{\\mathbb{Z}}{\\mathbb{Z}}\\n”;  Sstring .=
  “\\\\newcommand{\\mathbb{N}}{\\mathbb{N}}\\n”;  Sstring .=
  “\\\\newcommand{\\mathbf}[1]{{\\\\text{\\em \\usefont{OT1}{cmtt}{m}{n}
  #1}}}\\n”;  Sstring .= “\\pagestyle{empty}\\n”;  Sstring
  .= “\\begin{document}\\n”;  Sstring .=
  “S”.Slatex_formula.”S\\n”;  Sstring .=
  “\\end{document}\\n”;          return Sstring;     }  
  

which, among other things, allow all commenters to add
quiver-pictures using xymatrix and vtx to depict vertices. Oh yes, you
can allow comments to include LaTeX-code by uncommenting the
line

  // add_filter(‘comment_text’,
  ‘addlatex’); 

in the latexrender-plugin.php
file (but before you do make sure you have spam under control, such as
with BotCheck mentioned above). That’s all for now. If you want
to use TeX in a comment, make sure to put the code between tags [ tex
] and [ /tex ] (omitting the extra spaces). If you want me to add
other LaTeX-packages, leave a comment.

Leave a Comment

publish

A quick reply to some of the comments
to the lulu/neverendingbooks post.

_Are they also
responsible for the graphical design in your books ?_ No! In fact it
was one of the more pleasant experiences of the last couple of weeks to
develop our own format, LaTeX-style and covers. The usual gang had their
say in all of this but it is only fair to say that Jan did most of the work. We developed
the cover-concept (that is, macro shots of games in duotones and placing
of titles etc) by trial and error. Jan is responsible for the
photo-shoot, I did choose the shots to be used and did the initial
coloring and placing of titles and left the final tweaking to Jan, who
did some lay-out work before. We, at least, are happy with the
result… As mentioned before, the LaTeX-style sheets were made
using the
memoir package
.

_Who is responsible for trying to sell
the book, you or them?_ I dont think we are doing great efforts to
try to sell the books, yet. Up to now, you can only get to the
book-sites via this blog or via my homepage. Lulu claims that they will only make
money if we do… and as this is clearly sales-talk (they make money
on every book they print) it involves no (or a very small) financial
risk on our part. Anyone who wants to have a copy of one of our books,
orders them at Lulu, they print it and ship it to you. But beware! They
have several shipping options and for most of them it costs you more to
get them shipped than to buy the books… In fact, that was the main
reason why we didnt put the URL online before we had two volumes out.
The reason being that if you buy for over 25dollars you can have them
shipped via their “SuperSaver” option, that is, shipping is free (but
probably slow). But, based on my own experience it works well (I ordered
a few copies of book 1 via SuperSaver and another one via their
InternationalShipment and got the free SuperSaver package a day before
the costly other shipment…). Our real investment is that we have
bought ISBN-numbers for the books (at a price of 35dollars/book) and
hope to earn this back from a small royalty we get from each book (the
Lulu-rule is that they get 25% of any royalties you set). Even though we
are not entirely happy with the distribution process we opted for this
series for an unusual book-format making it handy and fun to use (the
square 7.5 x 7.5 inch format is very pleasing to read and the
coil-binding makes it extremely handy to lay flat on the table). So we
view this series as a student-edition of the books and we keep them as
cheap as possible. At a later stage it may happen that we will also have
a library-edition of the books which will have global distribution
(meaning that you can order them via Amazon or your local bookshop). For
this to work, you have not so much freedom in your book-format and can
only have regular binding. Besides, buying such a global-ISBN is more
costly and will make this edition (a lot) more expensive. But, as you
can see from the picture, the books get printed and shipped and look
VERY nice. In fact, of the few copies I ordered, I had to hand out
already two because some people just liked the feel and touch of it. I
think, people will only gradually be willing to buy their own copy when
(1) they have glanced through a copy at some meeting or seminar and (2)
if more volumes come out and they have a greater choice in bying 2
volumes to get free shipping. On this last issue : already three people
have expressed interest in writing a book in our series. My own hunch is
that the next book out will have to do with Poisson noncommutative
geometry and will have a macro shot of a war-game on its cover (authors
can give suggestions for which games they want on their cover), curious
how this will work out…

_How many have you sold so
far?_ Well, not enough so far to get our ISBN-investment back…
But, once again, I think it will take some time for people to trust the
series enough to buy a volume or two. In the first week we made the URL
available we sold 16 books, so if you want to increase our sales-index
please do by going to this
page
for the first volume and to this page for the second
volume. But perhaps it is easier to bookmark the lulu/neverendingbooks if
you want the latest news on the series. I”ll keep you posted on our
sales via this page. If you buy a book and like the result, please tell
others about it (or even better, let them see and feel the copy.
Hopefully you will get it back…)

Leave a Comment

design decisions

We are nearly done, I hope. One can keep on tweaking
parameters endlessly, so at regular intervals we grab our chief graphics designer and tell him :
decision time! which of the two is best? At the moment, we decided on
our own chapter-style \chapterstyle{neb} which is an
adaptation of the _demo-style_ in
memoir.cls
(see on the left). We also have our own page-style which
is an adaptation of the _companion-style_ (the house-style of the
LaTeX Companion series).

You
will notice that the page-format is a bit odd. As mentioned before, we
didn’t want to copy the _regular_ mathematics-book -look.
We went for a fun format (square, 7.5 by 7.5 inch ; think of an inflated
CD-box) as well as a handy one (so we will go for _spiral-bound_
books). The reason for this is that we noticed that the most consulted
copy of version 2 around at the department is
Stijn’s which has a nice coil binding so you can always lay it
nicely flat on a desk, whether you just want to look something up, or
use it to explain something at the blackboard.

Perhaps you can
even see that the font is slightly smaller than the _regular
10pt_. Memoir allows for a _9pt font_ and this looks _so
much_ better. Besides, it helps to keep the number of pages
reasonable, and related to this : keep the production costs low. At the
moment the plan is to be able to sell a book of say 260 pages under 13
Euros (that is, 5 EuroCent/page), but more on this next week.

What else? Well, recently, we decided on the
_copyright_-license (at least for the first book). Clearly, all
neverending-books will have their own ISBN-number
and the copyright is one of the
Creative Common
Licenses. At first we thought of taking the same one that protects
(however, see mewt’s story
) this site and which is, in technical terms, a by-nc-nd:be
license
. But, in the end, we decided to go for a Developing Nations
License
. Here\’s why :

The Developing
Nations license allows, for the first time, any copyright holder in the
world to participate first-hand in reforming global information policy.
The fact is that most of the world’s population is simply priced
out of developed nations’ publishing output. To authors, that
means an untapped readership. To economists, it means “deadweight
loss.” To human rights advocates and educators, it is a tragedy.
The Developing Nations license is designed to address all three
concerns.

So, what else needs to be done by next
week when we hope to launch our first book? Well, I need to write some
_blurb_ and we have to decide on front- and back-covers.
Tomorrow, I hope to report on how that one ended.

Leave a Comment

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

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

tiger days 1

It
should be really day 2 but yesterday evening I was a bit overoptimistic
and tried to get MySQL, Ruby, Rails & Tracks installed and in the
process totally wrecked my Ruby-system (and probably a few things more).
Besides, I found out that the _Carbon Copy Cloner_ work-around
doesn\’t really work (that is, one canNOT boot from the cloned copy)
etc. etc. In short, a lot of frustration. So today, I started all over
again (using the install notes below to guide me and so I could reduce
the total time to about 2 hrs). But, as this was the easy bit (still to
come : MySQL, PHP, WordPress+LatexRender, Ruby&Tracks etc.) and I
don\’t want to redo everything again when I do something horribly wrong
I changed my overall tactics. I\’ll keep identical copies on my iBook
and on my iMac and do the next batch of installs on just one machine and
check whether everything works before syncing it to the other. If
something gets messed up I resync to the state of the previous day. Just
one question left : what program to use for the backup/restore now that
CCC seems to be broken? Fortunately, there is still PsyncX which still
seems to work fine (at least today…). Below, for what it is worth,
yesterday\’s log of events :

Okay, I checked that I can still
TeX papers and connect to the printer on the iMac (after Archive/Install
to Tiger). Most other things have broken down, such as my mind on tracks
and my MySQL-database, but I\’m quite hopeful I can rebuild them all.
So, time for a drastic _Erase/Install_ on my iBook.

12:04 : One final safety check. Connect the external
HD, select the _Carbon Copy Cloned_ partition as StartUp Disk and
do a Restart to verify that it can be cloned back should everything go
terribly wrong. Seems to work nicely, so change again from StartUp disk,
restart and disconnect the external HD.

12:16
: Printed the macdevcenter install
tips
and made a fresh pot of coffee. Took the unread part of the
newspaper with me, connected Jan\’s iPod, made it the new StartUp disk
and did another Restart.

12:24 : Selected
\’English\’ as the main language. Selected _DiskUtility_ from the
_Utilities_ menu (before you have to select a Disk destination).
Selected the HD, clicked _Erase_ and choose _Erase Free
Space_ first, then choose the SecurityOption to \’zero out data\’.
(Both steps require a lot of extra time but what is the point of doing
an Erase if you don\’t erase properly? Btw. the macdev-article does not
agree with me on this point.) Meanwhile, had some coffee and a
read…

13:23 : Did quit DiskUtility
which brought me back to the Installer. Selected the HD and clicked on
_Options_ to select Erase&Install and clicked Continue. Then
clicked on _Custom Install_ to choose which Packages to Install.
Did choose _all_ Printer Drivers but in _Language
Translations_ only selected : French, German and Dutch. Didn\’t
select X11! Clicked : _Install_ and had yet another cup of
coffee…

13:45 : Restarted! Got me into
the SetupAssistant. Didn\’t choose to transfer info from another Mac. It
selected our wireless network immediately, and asked me for my .Mac
account info. Did create my main account and finished at
13:53 Only had to stop iTunes from wanting to put
PodSoftware onto the connected iPod… Checked for SoftwareUpdate
but there was none. Am connected to internet but had to add my other
mail-account. Done and received email at 14:05 Found
our Printer but did gray out two-sided printing (have to remember later
how I did set this up…).

14:12 : Time
to add the _Xcode Tools_ : opened the folder on the iPod and
clicked on _XcodeTools.mpkg_ . Followed he default installation.
Finished and deconnected the iPod at 14:24 Took a break
to decide how to continue. (21.97Gb available) Update today : do a
custom install using also cross-development!

14:37 : Okay, first things first : get myself a
working TeX-system starting from this page
to get the latest version of TeXShop and the i-Installer and place both
in the Applications folder and in the Dock. Placed the _To Your
Library_ folder of TeXShop in my ~/Library (containing the texmf
etc. path for pdfsync). Then followed this
page
and the i-Installer to install the packages in the right order
:

  • FreeType 2
  • libwmf
  • Ghostscript
    8
  • ImageMagick
  • FontForge
  • TeX (did a
    Full install with 2005 Devel.)

Had a brief look
through the other packages and maybe I\’ll install _Latex to RTF_
and _RTF 2 Latex_ later. Created a _DMG_ folder and put
the downloaded disk images into it. Created a_PAPERS_ folder and
transferred the last version of the paper with Stijn to check TeX but
clearly it couldn\’t find the _diagrams.sty_ file (I know I have
to quit using this, but I\’ll better get it over for backward
compatibility; put it into ~/Library/texmf/tex/latex/. Ran TeX again
without problems this time and checked the nice source-PDF syncing
(apple-click to jump). Finished : 15:37

15:56 : As long as administration sends me
_Word_ documents and expects me to read them, I have no choice
but to install _Office X_ . The upshot was that while searching
for the OfficeCD I found also the HP LaserJet 1320 CD and installed the
driver so now I can print 2-sided (using Printer Setup Utility) . Done :
16:15

16:45 : Used the
_.mac System Preference_ to get syncing started with my iDisk to
get adresses, calendars and passwords etc. on my iBook. Also filled in
the Sharing Preferences. Now that I have the passwords at hand, it is
time to get the latest versions of some of the shareware I own (and copy
their disk image to the DMG folder)

  • DevonThink
  • DenonAgent
  • Pod2Go : the site seems to be down at the
    moment but fortunately, I have a disk image of it which will have to do
    for now (note to self : check later whether the site is permanently
    dead…) Update today : it is up and running again…

and while I\’m at it I may as well get my wallet out and
purchase the full version of _Lite_ versions I like and use a lot
:

Fortunately, there is also a lot of excellent freeware that I
want to use

One of the following days : MySQL, PHP and perhaps Tracks but
first I desperately need to do some maths to kick off from all this
nonsense…

Leave a Comment