# LaTeX

## High Resolution Image for Pdflatex

While preparing the camera-ready version for our CIKM demo, my colleagues and I found that the screenshot included in our paper appeared to be fairly blurry in the pdf version, even though the original .jpg file looks fine.

I searched online to try to find the solutions. After a few trials and errors, adding the following two lines into the beginning of the latex files (before \begin{document}) did the trick.

\pdfpxdimen=1in

\divide\pdfpxdimen by 300

## Display LaTeX Math on Drupal with MathJax

MathJax seems to be the emerging standard for displaying math on the Web at this moment. It is supported by American Mathematical Society and American Physical Society, and has already been adopted by major math related discussion venues such as Physics Forums and Stack Exchange. MathJax displays math using CSS and Web fonts instead of images, so the quality is very high and is resize-friendly. Below are some examples:

Inline math: the geometric product $\boldsymbol{uv}$ of vectors $\boldsymbol{u}$ and $\boldsymbol{v}$ is $\boldsymbol{u}\cdot\boldsymbol{v} + \boldsymbol{u}\wedge\boldsymbol{v}$, where $\boldsymbol{u}\cdot\boldsymbol{v}$ is the inner product and $\boldsymbol{u}\wedge\boldsymbol{v}$ is the outer product.

## Reverse/Forward Search with Latex-Suite in Vim

When editing a long Latex document, it is beneficial to be able to point from current location in DVI back to Tex, and vice visa. This is what called reverse/forward search between DVI and Latex. With Latex-Suite in Vim, this functionality is already implemented, and there's no need to specify "\usepackage scrltx" in the Tex file. However, it's not fully configured by default. Forward search with "\ls" works, but inverse search by "Ctrl-Left click" in xdiv is not enabled. **Continue reading »**

## Recent comments

47 weeks 6 days ago

1 year 13 weeks ago

2 years 9 weeks ago

2 years 15 weeks ago

2 years 15 weeks ago

2 years 16 weeks ago

2 years 16 weeks ago

2 years 23 weeks ago

2 years 34 weeks ago

2 years 37 weeks ago