LaTeX: Include and Scale SVG (Scalable Vector Graphics) Image

Here is a step-by-step guide on including and scaling SVG image on LaTeX. 1) Download and install Inkscape: https://inkscape.org/en/download/ 2) Suppose, I have an SVG image named image.svg. Run the following command that exports your SVG image to PDF and LaTeX format. inkscape -D -z –file=image.svg –export-pdf=image.pdf –export-latex This will create two new files named … Read more

Magento: Select Box / Dropdown List on Layered Navigation

You have plain text and link to those text in Magento Layered Navigation section. You can easily change the display of Layered Navigation links into a selection box / dropdown list. To do so, you need to edit the following file: app/design/frontend/YOUR_PACKAGE/YOUR_THEME/template/catalog/layer/filter.phtml filter.phtml file contains code something like below: <ol> <?php foreach ($this->getItems() as $_item): … Read more

Magento: Hide Column from Admin Grid

Here is a quick tip to hide any column from admin grid in Magento. Hiding columns in admin grid becomes necessary when you want those particular columns in exported csv or xml file but you don’t want to display them in the admin grid. You can hide columns from admin grid by setting column_css_class and … Read more

Magento: Add / Delete / View Custom Options of Product Programmatically

Custom options on Magento products are designed to make simple products function like a configurable product with different choosing options like color, size, etc. before purchasing the product. In this tutorial, I present the code to create/add, view, and delete custom options of a product in Magento. ADD CUSTOM OPTIONS In the following example code, … Read more

Print Product & Cart Page: Magento Extension [FREE]

Print Product & Shopping Cart Page is a FREE Magento Extension that generates neat and clean print page of products and shopping cart, removing unnecessary header, footer & sidebar. This module is compatible with Magento version 1.5 and higher (Magento 1.5, 1.6, 1.7, 1.8, 1.9). A “Print Product” link is added to product page and … Read more

LaTeX: Using APA Reference Style

You can use APA reference style in LaTeX using biblatex and babel packages. You have to add the following code in the preamble of your tex file: \usepackage[british]{babel} \usepackage{csquotes} \usepackage[style=apa]{biblatex} \DeclareLanguageMapping{british}{british-apa} \addbibresource{references.bib} references.bib contains all your references. Then, you have to print the bibliography before the document end. … … % adding Bibliography title in … Read more

LaTeX: How to add bibliography and references?

There are two ways to add bibliography (references) to your document. One is for small document with few bibliography items using thebibliography environment. The other is for large documents where there are many bibliography items using packages like biblatex. 1) BIBLIOGRAPHY ON SMALL DOCUMENTS If you have few bibliography items, which is a general case … Read more