Showing posts with label Latex. Show all posts
Showing posts with label Latex. Show all posts

Sunday, September 13, 2015

Embedding font to a pdf for latex submission

Some conferences evaluate the pdf before you are able to submit your paper. Often the common problem is the error in embedding the font. The way to get around this problem is to convert it to ps and then back to pdf. Following commands shows how to do it: 
pdflatex yourfile.tex 
pdftops yourfile.pdf
ps2pdf14 -dPDFSETTINGS=/prepress yourfile.pdf you-newfile.pdf




Monday, August 18, 2014

multiple figures in one line in Latex

Following sample code is a way to have two figure in one single row. subcaption is the package that can do the job.

 \documentclass{article}  
 \usepackage[demo]{graphicx}  
 \usepackage{subcaption}  
 \begin{document}  
 \begin{figure}  
 \begin{subfigure}{.5\textwidth}  
  \centering  
  \includegraphics[width=.8\linewidth]{image1}  
  \caption{1a}  
  \label{fig:sfig1}  
 \end{subfigure}%  
 \begin{subfigure}{.5\textwidth}  
  \centering  
  \includegraphics[width=.8\linewidth]{image2}  
  \caption{1b}  
  \label{fig:sfig2}  
 \end{subfigure}  
 \caption{plots of....}  
 \label{fig:fig}  
 \end{figure}  
 \end{document}  


Here is the result:
enter image description here

Sunday, April 20, 2014

A Cool Table Code Generator for Latex, HTML and Text Table

This is a very cool code generator for creating table in different language: It supports Latex, HTML and Text Table:

http://www.tablesgenerator.com/