Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

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:

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!

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.

Saturday, September 1, 2012

Latex: Okular not showing figures in DVI file on Windows

If Okular does not show you the embedded EPS files of your compiled latex document it might be, that ghostscript is missing or is not found.
Install ghostscript (simple google search) and add <ghostscriptinstallpath>/bin to your system or user path.

Next time you open Okular it should display your images within DVI

Tuesday, May 15, 2012

LATEX: Texniccenter and Okular forward and reverse search

Prerequsites:
Proper configured Texniccenter for dvi , dvi > ps and dvi > ps > pdf output.
Kde for Windows with Okular.

Latex->DVI profile,
  • Latex ribbon, Arguments for compiler:
    --src -interaction=nonstopmode "%Wm" -synctex=-1
  • Viewer ribbon:
    Application path > C:\ProgramData\KDE\bin\okular.exe
    Command Line Arguments: '%bm.dvi#src:%l %Dc/%nc' --unique
    Search in output: '%bm.dvi#src:%l %Dc/%nc' --unique
    Do not close
Extension to PS and PDF should be straightforward.

Okular reverse search:
Setting > Configure Okular > Editor:
  • Dropdown box: Custom Text Editor
  • Command:"C:\Program Files (x86)\TeXnicCenter\TEXCNTR.exe" /ddecmd "[goto('%f', '%l')]"
Note that you have to adjust the paths, e.g. "c:\..." to your custom installation.




Saturday, February 18, 2012

Tools: Latex: Texnic Center and Okular forward search

Put the following command in your Tex->DVI Viewer config under command for opening and forward search:

'%bm.dvi#src:%l %Dc/%nc' --unique

%bm.dvi is your output filename of the Project.
#src:%l gives the linenumber of the current curson
%Dc gives the complete path to the current source file with slashes
%nc gives the full name of the current source file.
--unique ensures only one Okular instance is opened.

Please be sure to use single quotes as double quotes produced no search in my case.

So far I noticed that it does not work if you have lines with latex commands only, e.g. \begin{itemize} or latex TOC elements, e.g. \section{Introduction}.
Just go to the nearest written text section.

Tuesday, February 14, 2012

Monday, February 13, 2012

Tools: Office 2010 Print to File

It took me some time to actually find this well known Option. If you are in Excel or any other Office program you see this option well down  below the combo-box where you chose the Printer.

However, in Outlook 2010 it is on the initial Print Page.

Thursday, December 22, 2011

GETOPT for Windows

The portability of programs between *nix und Windows is often limited not by the program itself but by certain helper tools. One of those is getopt which provides a fast and easy way to read in command line arguments.

Please find a windows version here: http://suacommunity.com/dictionary/getopt-entry.php

 

You will find more other useful ports here as well.

Friday, December 16, 2011

GIT: git show and git describe

You can easily have a look at a tag with

git show  mytag

Much more powerfull and showing you all sorts of realations between tags and commits is git describe:

http://gitfu.wordpress.com/2008/05/25/git-describe-great-another-way-to-refer-to-commits/

Thursday, November 10, 2011

VirtualBox: ResizeHD

In general the following should work:

VBoxManage modifyhd MYHD.vdi --resize 20000

 

Were 20000 is more or less 20 GB.

If the command fails several reasons could be the cause.

  • The virtual disk is already larger. Till now you cannot shrink drives that way. Take a close look in the VM whether you already use that space actually. In Windows this information is under Computer Management --> Storage --> Disk Management

  • The virtual disk has the wrong type. Issue the command:


 VBoxManage showhdinfo MYHD.vdi


If the result is not:


Format variant: dynamic default


you have to migrate your disk to that dynamic system. Since this is the default container for newer versions you can simply clone your HD file and then enlarge the new one:


VBoxManage clonehd MYHD.vdi MYNEWHD.vdi




  • I did not encounter other errors, please comment if you have any problem and/or solution




 

 

 

Tuesday, November 8, 2011

WINDOWS: Build Boost for Visual Studio 2010

Source:

http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010

If you are using headers only libraries, then all you need to do is to unarchive the boost download and set up the environment variables. The instruction below set the environment variables for Visual Studio only, and not across the system as a whole. Note you only have to do it once.

  1. Unarchive the latest version of boost (1.47.0 as of writing) into a directory of your choice (e.g.C:\boost_1_47_0).

  2. Create a new empty project in Visual Studio.

  3. Open the Property Manager and expand one of the configuration for the platform of your choice.

  4. Select & right click Microsoft.Cpp.<Platform>.user, and select Properties to open the Property Page for edit.

  5. Select VC++ Directories on the left.

  6. Edit the Include Directories section to include the path to your boost source files.

  7. Repeat steps 3 - 6 for different platform of your choice if needed.


If you want to use the part of boost that require building, but none of the features that requires external dependencies, then building it is fairly simple.

  1. Unarchive the latest version of boost (1.47.0 as of writing) into a directory of your choice (e.g.C:\boost_1_47_0).

  2. Start the Visual Studio Command Prompt for the platform of your choice and navigate to where boost is.

  3. Run: bootstrap.bat to build b2.exe (previously named bjam).

  4. Run b2: (Win32) b2 --toolset=msvc-10.0 --build-type=complete stage ; (x64) b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage. Go for a walk / watch a movie or 2 / ....

  5. Go through steps 2 - 6 from the set of instruction above to set the environment variables.

  6. Edit the Library Directories section to include the path to your boost libraries output. (The default for the example and instructions above would be C:\boost_1_47_0\stage\lib. Rename and move the directory first if you want to have x86 & x64 side by side (such as to<BOOST_PATH>\lib\x86 & <BOOST_PATH>\lib\x64).

  7. Repeat steps 2 - 6 for different platform of your choice if needed.


If you want both x64 & win32 side by side, add "--stagedir=lib/win32" and "--stagedir=lib/x64" to the respective builds

Monday, October 31, 2011

Exchange 2010: Enable RPC over HTTPS: Outlook Anywhere

 

 

 

In Exchange Management Console select Server Node and  Client Access.

 

In action pane hit Enable Outlook Anywhere.

 

Additionally you need to install the Feature RPC over HTTP Proxy of Win200 Server.

 

http://exchangeserverpro.com/how-to-configure-exchange-server-2010-outlook-anywhere

Sunday, October 30, 2011

EXCHANGE 2010: An error caused a change in the current set of domain controllers

 

 

After some digging in the profile, I found out the following file, which seemed to be the cause of the problem:

c:\users\<specific user>\appdata\roaming\microsoft\mmc\Exchange Management Console

 

Rename or delete this file, restart the EX2010 EMC and all errors will be gone.

 

From:

http://trycatch.be/blogs/pdtit/archive/2010/02/04/an-error-caused-a-change-in-the-current-set-of-domain-controllers-exchange-2010.aspx

 

 

Monday, August 15, 2011

Outlook 2010 HTML break blue citation line

Coming from Outlook 2003 everyone knows that one can break the blue line marking the cited text  by entering a new text or at least with the common reverse indent button. This does no longer work for Outlook 2007 and 2010 as the blue line is now represented in some different way.

You can get around this by Ctrl+Q but  if you check the email at the recipients mailbox, you will see the unbroken blue line again.

If you switch to Rich Text you can actually use Ctrl+Q and it will be that way at the recipients side too.

If you have a real solution to the html problem, please comment!!!!

 

Please refrain from any unfeasible comments about the sense and non-sense of HTML mails. For that a lot of forums are available online to take that garbage!

Tuesday, July 12, 2011

GIT: Compare/Diff working directory against server/repository state

git fetch --> updates your local rep but not your working Dir
git diff ... origin gives you the comparison

Monday, July 11, 2011

GIT: Ignore File mode/right changes

If you have files or directories under git control and change the rights of them, git does recognize them as changed.
To force git to ignore these changes just execute the following.

git config core.filemode false

You can reenable that after all files have a new revision because of an actual change and are comitted in the new mode anyway.

Tuesday, June 28, 2011

LIKWID: Installation Hint

If you set the likwid install path in config.mk and the last character is a slash, likwid-pin will not run with the following error message:


ERROR: ld.so: object '~/helper/likwid-2.2-inst' from LD_PRELOAD cannot be preloaded: ignored.

Delete the last slash and do
make clean && make && make install

and likwid-pin should work fine.

Monday, June 27, 2011

Tuesday, June 14, 2011

GIT: Getting information about tags

To show the tags you made and the comments or tag messages:

git tag -l -n1