Wednesday, May 16, 2012

To highlight or edit a pdf file with pdf/a standard

Hi guys,

  • Sometimes you come across pdf files that are protected by the author. PDF/A is such a standard, which makes the document even not possible to higlight.
  • If you want to convert such a document to a normal pdf follow these steps.
    1. Get hold of a pdf creator: I use PrimoPDF; it is free (http://www.primopdf.com/)
    2. Open you protected pdf: you can use the free adobe reader X
    3. File->Print and choose the PrimoPDF as your printer
  • That's it! The resulting PDF can be edited.
Cheers!

Sunday, May 13, 2012

How to get rid of extra line spaces in LATEX: itemize, list, enumerate

Hi all,

Sometimes, the default line spacing in enumerate or itemize is too large.
This is how you can reduce it:
  1. Create your own command and use it instead of {itemize} or {enumerate}
\documentclass[letterpaper,11pt]{report}

\newenvironment{packed_enum}{
\begin{enumerate}
  \setlength{\itemsep}{1pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{enumerate}}

\newenvironment{packed_item}{
\begin{itemize}
  \setlength{\itemsep}{1pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{itemize}}


\newenvironment{compactlist}{
 \begin{list}{{$\bullet$}}{
  \setlength{\partopsep}{5pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
  \setlength{\topsep}{0pt}
  \setlength{\itemsep}{0pt}
  \setlength{\itemindent}{0pt}
  \setlength{\leftmargin}{10pt}
 }
}{
 \end{list}
}

\begin{document}

\chapter{My List}

Here is my list.

\begin{packed_enum}
   \item Item 1
   \item Item 2
   \item Item 3
\end{packed_enum}

\begin{packed_item}
   \item Item 1
   \item Item 2
   \item Item 3
\end{packed_item}

\begin{compactlist}
\item Item 1
\item Item 2
\item Item 3
\end{compactlist}

\end{document}

--------------------------
By changing the size of {pt} in
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{10pt}
you can change the indent of the bullets.

Credit should go to the original post: http://www.devdaily.com/blog/post/latex/control-line-spacing-in-itemize-enumerate-tags

Tuesday, May 1, 2012

PDF go back from links of the same document

Hi guys,

  • In certain pdf documents you find hyperlinks to pages in the same pdf document. However, I always wondered how to go back once you click them.
  • This is how it can be done for Adobe Reader X:
    • right click on the toolbar on top (just below the menu bar) and choose "Page Navigation". Select "Previous View" so that it will be displayed on the toolbar.
    • The shortcut key is "ALT+left arrow" key
Hope it helps!

Cheers!

Thursday, April 26, 2012

Windows 7: 3D cycle through windows

Hey!

Did you know that in Windows 7 you can shift between your opened windows just like in Mac.
Press Windows key + tab to find out!

cheers!!

Friday, April 13, 2012

Writing help files in Matlab

Hi,

I did not know writing help files in Matlab was this easy.

Just write everything as comments using '%' and save the file as a .m file, That's it.
So, just type the name of your file, i.e : help filename

Cheers!

Monday, April 9, 2012

Open several default tabs in Firefox at startup

Hey guys,

I use Firefox for rikaichan and google calendar. For some reason, I cannot enter new events in the google calendar when it is opened in the Internet explorer.

So I want Firefox to launch the two tabs for translation and google calendar when I open Firefox.
And, this is how it is done.

That's all!

Cheers!!!