Hacks in Document and Presentation preparation


At times we need to insert Mathematical formulae in presentations (Powerpoint or Keynote),  and both Powerpoint and Keynote allow this by default. But, for guys, who are much comfortable with latex, then a simple and time-saving way is to copy the latex equation in LaTeXiT utility. Another advantage with this is that you can open the past file for editing at any time with this utility. Two simple steps required are:

  1. Copy latex equation or write at first-hand in the lower window of the utility
  2. Save output as pdf or image file. Note you can change the default font size of text in the same utility. Also, additional packages can be added in preamble through menu as LateX- > Show preamble

Here, is the screenshot of LaTeXiT utility

Screen Shot 2016-07-14 at 12.23.48


Please find the detailed steps at this page of the blog.


Insert Equations in wordpress

We can use latex to insert equations in WordPress. We can use following steps:

  1. Write latex equation in Daum Equation Editor(DEE).  DEE is a chrome plugin
  2. Copy DEE output inside dollar-sign<latex <paste DEE output>dollar-sign

Equation size and other formatting features can be found at this link

Control Remote Server via VNC GUI Interface

Following steps are required to control remote server via GUI

  1. Install tightvnc on server machine with following steps [1,2]
  2. Install vncviewer on client machine
  3. Start vncserver on server machine by typing vncserver on command prompt. Detailed instructions are mentioned in [1,2]
  4. Identify the port on which vncserver is listening by running                                                      sudo lsof -i -P | grep -i “listen”
  5. After identifying the listening port, start vncviewer on client machine by attaching port address with the Ip address of vncserver, say if server address is 192.168.x.y, and listening port is 5901; then you can concatenate server and port address as 192.168.x.y:5901



  1. https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04
  2. http://www.liquidweb.com/kb/how-to-install-vnc-server-on-ubuntu-14-04-lts/

Insert edited pdf image in Latex document

Sometimes we need to edit the PDF images. Although we have different options to do this, but here I am considering using the preview app installed in the Mac. Mostly, after editing in preview, we face two issues:

  1.  The edited portion in preview app is not shown in the final pdf document generated via Latex
  2. On saving the edited image in preview, preview adds extra spaces to final image

Solve First Issue:

After editing the image in preview,  save image  using Export as PDF… option from the File menu.

Full details can be found at this link.

Solve Second Issue:

This issue is solved within the Latex itself by using the trim option. For example,

\includegraphics[trim=left bottom right top, clip]{abc.pdf} 

Full details about this can be found at  this link