Thursday, July 3, 2014

EPS compliation problem in TeX Studio on Mac - Mavericks

1.  Quit texstudio and open terminal

2. Run this command to create texstudio.sh file in the MacOS folder
touch /Applications/texstudio.app/Contents/MacOS/texstudio.sh

3. Run this command to open the newly created file
open /Applications/texstudio.app/Contents/MacOS/texstudio.sh

4. Paste the following script.  Save and close the file.

#!/bin/sh
export PATH=$PATH:/usrtexbin
logger "`dirname \"$0\"`/texstudio"
exec "`dirname \"$0\"`/texstudio" $@

5.  Run this command to make it executable
chmod +x /Applications/texstudio.app/Contents/MacOS/texstudio.sh

6.  Run this command to open Info.plist
open /Applications/texstudio.app/Contents/Info.plist 

7.  Change the field "Executable file" from "texstudio" to "texstudio.sh"

8.  Execute the following command to force update the LaunchService database 
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -v -f /Applications/texstudio.app

9.  Restart the application.


This solution is adapted from: http://kobi.nat.uni-magdeburg.de/patrick/pmwiki.php?n=Wiki.HOWTO-TexStudioOnMac-PathProblems


Sunday, December 4, 2011

De'jeuner Du Matin


On of the french poems. Very simple but beautiful

De'jeuner Du Matin
Il a mis le cafe'
Dans la tasse
Il a mis le lait
Dans la tasse de cafe'
Il a mis le sucre
Dans le cafe' au lait
Avec le petite cuill`ere
Il a tourne'
Il a bu le cafe' au lait
Et il a repose' la tasse
Sans me parler
Il a allume'
Une cigarette
Il a fait des ronds
Avec la fume'e
Il a mis les cendres
Dans le cendrier
Sans me parler
Sans me regarder
Il s'est leve'
Il a mis
Son chapeau sur sa tete
Il a mis
Son manteau de pluie
Parce qu'il pleuvait
Et il est parti
Sous la pluie
Sans une parole
Sans me regarder
Et moi, j'ai pris
Ma tete dans ma main
Et j'ai pleure'

The translation is

He put the cafe
In the cup
He put the milk
In the coffee cup
He put the sugar
In the café au lait (coffee with milk)
With a little spoon
He stirred it
He drank the café au lait
And he put down the cup
Without talking to me

He lit a cigarette
He made circles
With the smoke
He put the ash
In the ashtray
Without talking to me
Without looking at me
And he got up

He put on his hat
On his head
He put on
His raincoat
Because it was raining
And he left

Under the rain
Without a word
Without looking at me
And I put
My head in my hand
And I cried.