Category: Documentation

Solution to Missing “amsmath” Package in Lyx

Problem:
“amsmath” package is missing, with Lyx version 2.0.5 on Windows 7

Solution:
1. Launch mpm (MiKTeX Package Manager)
2. Install package “amscls“. Here if you install the “amsmath” package, it won’t solve the problem. You have to install the “amscls” package.
3. Quit mpm.
4. Launch Lyx, choose “Reconfigure” from its menu. Quit Lyx and restart it.

Compress PDF Files

Here is a script for compressing PDF files on Linux. It helped me compress a file of 17M to 3M.

#!/bin/bash
# pdf-compress: compress a PDF file

Input="$1"
Output="$2"

gs -sDEVICE=pdfwrite \
   -dCompatibilityLevel=1.4 \
   -dNOPAUSE -dQUIET -dBATCH \
   -sOutputFile="$Output" "$Input"

exit $?