Thursday, September 11, 2014

Embedding BASE-14 Fonts in PDF from Latex output

By looking into the fonts pane of the  properties of a PDF File with Adobe Acrobat Reader you see, whether all fonts are embedded or not.

Initially I followed this little Tutorial to set the options right:

However, one configuration entry was still missing to get everything embedded in a Miktex Windows environment:

Finally, I print to pdf with the following flags using GPL Ghostscript 9.14:

-dPDFSETTINGS=/prepress  -dCompatibilityLevel=1.3 -dHaveTrueTypes=true -dEmbedAllFonts=true -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f ""

(%bm.pdf are just wildards for document names of texnic center)

Thanks to Georg for sending me his options and giving me the important hint!

Wednesday, September 10, 2014

Myth about [T1]{fontenc}

! LaTeX Error: Command \iint already defined. Problem between pxfonts and other package e.g. amsmath

Problem cause:
The included packages have the same commands defined instead of redefined.
The solution here was simply to load amsmath first and afterwards pxfonts:


However, this might generate the problem, that your entire document text changes.
In my case I just wanted to have fixed/monofont inside the lstlistings.
For that I got rid of the general usepackage and did the following in my lstlisting setup:


Monday, September 1, 2014

Cannot run batch file with double click (Windows 8) (*.bat)

All you have to do is open the registry and delete this key:



Taken from here

Friday, January 31, 2014

Powerpoint 2010 / Office 2010 crash in Windows (8.1) due to Optimus

Recently I discovered that some of my presentations crash on my new laptop running Windows 8.1 and Powerpoint 2010. The error was: "Powerpoint stopped working" or "Powerpoint funktioniert nicht mehr".
Excel and Word worked like a charm, and some older presentations did as well.
So first of all I suspected an error in the presentation file itself and tried it successfully on other machines running Windows 7 and the same office.
I tried some other tests with converting the files back to *.ppt scheme and removing animations and slides.
However, nothing worked.

In the end the problem was GPU related. By default, Office gets launched on the integrated Intel GPU. However, Powerpoint, or at least my highly sophisticated presentation, requires the "real deal" GPU.

I started Powerpoint using the NVIDIA GPU and the Presentation worked on this machine as well

Tuesday, November 19, 2013

Windows 8.1 First impressions and first problems with freezing touchpad on Dell Inspiron 17 7000

Unpacking my brand new Dell Inspiron 17 7000 I was keen on test-driving this new touchy, feely stuff for the first time.
Acutally I was prepared for the worst and went out really impressed!
I, for myself, am using this machine as it would be with Win7, just nicer.
Hit the Start (Keyboard) button like before and the instant search returns your applications, files and more stuff just like before. With the metro area you have now even more space to arrange the most-often-used applications and give them a little bit of grouping and prioritizing by having larger or smaller icons.

Still, I need some time to get a grasp on full-screen apps and how to switch between full and desktop mode.
Alltogether,  I cannot comprehend why everybody is having problems with this new kind of design and paradigm.

Now comes the bad news. Win 8 and Win 8.1 is still having a lot of pitfalls. I for myself had to disable hibernation or the new windows stand-by mode because my laptop kept freezing after the second or third resume. Furthermore, eventually after switching users or returning from stand-by, the mouse is unresponsive to left-click but everything else works just find.
For my type of laptop this can be solved by double-finger scrolling once, which rips the touchpad driver out of its misery and everything is back to normal again.

Wednesday, October 30, 2013

Managing private Data in the Cloud

We all Dropbox.
However with the latest NSA scandal, Dropbox is not a good place to store sensitive or privat or perhaps just any Data.
I stumbled across the alternative called WUALA some years ago which is encrypted on the client.

Just recently I got aware of a nice home mounted,  decentralized cloud like storage tool:
Torrent Sync

Winterzeit / Heizungszeit wolf-cgb-k-20

Vor kurzem haben wir unser neues Domizil bezogen und neben den Vorteilen die Kontrolle über die eigene Heizung zu haben, hat man gleichzeitig auch die Pflicht sich darum zu kümmern.
Mein Wissen über eine 30 Jahre alte Ölheizungssteuerung war leider nicht allzu hilfreich um eine moderne Gasbrennwerttherme richtig einzustellen.

Die Hersteller geben hier leider wenig Hilfestellung, da die Einstellungen entweder nicht erklärt sind, oder aber so beschränkt, dass man damit nichts anfangen kann. Kurzum, man benötigt einen Fachmann.

Ich hatte Glück und eine Anleitung für genau meine Gasbrennwerttherme gefunden:

Monday, November 5, 2012

Latex: Reference to subfigure or subfloat but only with letter

You got a subfloat in latex and want a reference to it without printing e.g. "1.1a" but only "a".
Simply use \subref instead of \ref.

If you want to use this in a caption itself, try the \protect\subref{} command!