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:
http://www.hamilton.ie/gavinmc/docs/timesinpdfs.html
However, one configuration entry was still missing to get everything embedded in a Miktex Windows environment:
-dPDFSETTINGS=/prepress
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.ps"
(%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!
Thursday, September 11, 2014
Wednesday, September 10, 2014
Myth about [T1]{fontenc}
http://tex.stackexchange.com/questions/664/why-should-i-use-usepackaget1fontenc
! 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:
\usepackage[intlimits]{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{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:
basicstyle=\fontfamily{pxtt}\selectfont
The included packages have the same commands defined instead of redefined.
The solution here was simply to load amsmath first and afterwards pxfonts:
\usepackage[intlimits]{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{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:
basicstyle=\fontfamily{pxtt}\selectfont
Monday, September 8, 2014
Enable/Disable Hibernate/Ruhezustand in Win 8.1
.... and probably Win7 as well:
powercfg /hibernate on
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:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT\UserChoice"
Done.
Taken from here
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT\UserChoice"
Done.
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
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
Subscribe to:
Posts (Atom)