Wednesday, May 16, 2012

Latex with Adobe Illustrator

I have been a linux user for a long time but last year I bought a laptop with a digitizer screen and the lack of good results in linux made me switch to Win 7. In the last year, I have learned that a lot of GPL software is ported to Windows and the switch is not painful at all. Problem is that the last update in one of my favorite page editing software: Inkscape has made my figure editing work flow (I never thought I would use this word) stall a little. So, I decided to give Adobe Illustrator a try as CS education is not so expensive. 

Basically, I need to add latex formulas to Illustrator, there's a nice script to do so here. I encountered a minor problem with this script; it seems like page frame is no longer the last element in the pdf compiled by pdflatex. Thus, the formulas generated by the script and imported into Illustrator were lacking the first element and had a full A4page frame. 

The script file is efficiently commented and a quick look into it brought me to Line 66:
for( var i=grp.pageItems[0].pageItems.length-1; --i>=0; )
After a few iterations, I found that the page frame is now the first page item and so the final modified line is:
for( var i=grp.pageItems[0].pageItems.length; --i>=1; )
This fixed my problem and now I have complete latex formulas in Illustrator with just the minimal frame around the object.

I hope this solves your issues too.

Monday, May 14, 2012

Last week papers (20th week of 2012)


From May 6th to 12th, 2012, a complete mess of a week with no time for small talk about the papers. Sorry...

Published
Preprints
  • "Quantum phase transition in the Dicke model with critical and non-critical entanglement" by L. Bakemeier, A. Alvermann and H. Fehske, arXiv: 1204.4974v1 [quant-ph].

Monday, May 7, 2012

Last week papers (19th week of 2012)

It has been an awful busy short week, I can barely keep my eyes open. This week from April 29th to May  5th 2012, I will point out the articles that caught my attention, I'm sorry for the lack of comments...

Published
Preprints

Sunday, May 6, 2012

Last weekend movies (19th week of 2012)


Life has become too busy, I like busy but too busy is really not my kind of thing and it is weird: I enjoy too busy a lot because there's no time to think about stupidities—which are usual when life is not busy at alla—the problem comes when it's too busy that you cannot actually finish one of the 6 things you are working on. Anyway, I have forced myself into the video store, movies and the networks web pages, this came out...
  1. Sherlock Holmes: A game of Shadows, ****
    I enjoyed all of the stories by Sir Arthur Conan Doyle and really lost myself thinking that Holmes died in Switzerland even though there was a third of the book left. Now, I just hope movies Holmes comes back as magazine Holmes came in the past.

  2. Carnage, ***
    Polanski's take on Le Dieu du Carnage, I wish I had seen this on theater. Two couples of parents devolve from civilized sophisticated person into prejudiced childish asses. It has beautiful takes involving a mirror in the set, I loved them.

  3. Underworld Awakening, ***
    I remember I got very excited for the first one nine years ago and, now, I'm far from excited as it seems there's gonna be a fifth one in the series as the ending of this leaves the door open to follow the search for Michael. Oh, most probably I will go to the movies and watch the new one if they make it.

  4. Young Adult, ***
    This is a sad sad comedy. I'm really hoping this is a satire and the third star is just because I still believe in people and this has to be a satire if we are gonna survive as a something close to a rational race.

  5. Mission Impossible: Ghost Protocol, **
    Probably the best of the Mission Impossible series.

  6. Contraband, **
    I love movies about cons, that's why this has the second star.

  7. The Darkest Hour,  
    This film could have been awesome. The story is just terrific, good old war of the worlds invasion and funky aliens but, why o' why, had it to degenerate into a teen movie? 
End of season is almost here and I finally managed to catch up with the series I'm following. Any suggestions for the in-between season?
  1. Last Man Standing S01-E19-23, ****
    Still fun to watch the angry man!

  2. Castle S04-E17-22, ****
    It seems like we are gonna get a change in the episode formula sometime soon!

  3. Hawaii Five O S02-E15, ***
    I can keep on with this, there's no big changes or twist but the crossover with NCIS: Los Angeles was a refreshing thing.

  4. Big Bang Theory S05-E19-23, ***
    It has gotten a second air but not enough to recover the lost star.

  5. Once upon a time S01-E14-20, **
    It has become too slow, please do something!.  
I think I'm gonna go sci-fi and animation for the summer break.