LaTeX to png

Eine mathematische Formel mal schnell in seine Website einfügen geht am einfachsten mit einem png-Bild. Um die LaTeX Formel in das richtige Format zu bringen braucht man folgende Schritte:

latex datei.tex
dvipng -T tight -bg transparent datei.dvi

Erst muss die TeX Datei kompiliert werden. Interessant ist nur die dvi-Datei, diese konvertieren wir in ein png mit dem Programm dvipng. -T tight schneidet das Dokument auf die Formelgrösse, -bg transparent ergibt einen transparenten Hintergrund , lässt man diese Option weg, so ist des Hintergrund weiß. Ausgegeben wird die Datei datei1.png , man kann dies aber mit -o datei.png selbst steuern Optional kann man mit -D noch die Auflösung angeben z.B. 300dpi .

 

Veröffentlicht unter Linux, Windows | Verschlagwortet mit , , | Kommentare deaktiviert für LaTeX to png

split .flac files by .cue file

Got a large .flac file, but your mp3 player do not understand .cue files? So just split the file quickly and easily with cuetools and shnsplit.

first yo need to install the tools, on ubuntu-terminal type:

sudo apt-get install cuetools shntool

you also need „flac“:

sudo apt-get install flac

now all yo have to do is navigating (with cd command) to the location of your .flac and .cue file and typing in:

cuebreakpoints *.cue | shnsplit -o flac *.flac ;

cuebreakpoints reports the track breakpoints written in the .cue file. The pipe (|) redirects the output of cuebreakpoints to the input of shnsplit, which finally splits the .flac file.  -o specifies the output format (here flac, by default wav). By default the splitted tracks are named „split-track01.flac“ , “ split-track02.flac“ , … . You can change this by adding the -a option.

for copying the cue-tags (artist’s name etc …)  type in:

cuetag *.cue split-track*.flac ;

ref: http://www.webupd8.org/2009/04/split-ape-and-flac-files-in-ubuntu-and.html

Veröffentlicht unter Linux | Verschlagwortet mit , | Kommentare deaktiviert für split .flac files by .cue file