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

Tuesday, 20 November 2012

Proper way to install Latex on Ubuntu

After having problem with missing fonts I tried to install EVERYTHING...
apt-get install texlive-full


Wednesday, 4 January 2012

Latex: wrong reference on Figure

Wrong

\begin{figure}[h]
 \label{fig:foo}
 \centering
 \includegraphics[scale=0.4]{images/foo.eps}
 \caption{blah blah}
\end{figure}   
\ref{fig:foo} shows wrong reference!

Solution: label should be the last line!

\begin{figure}[h]
 \centering
 \includegraphics[scale=0.4]{images/foo.eps}
 \caption{blah blah}
 \label{fig:foo}
\end{figure}   

Monday, 31 October 2011

Gnuplot: save figure into eps

set term postscript eps color blacktext "Helvetica" 24
set output 'output.eps'

plot commands.....

set output
Rereference: http://snippets.dzone.com/posts/show/1302

Thursday, 20 October 2011

Latex: argmin, argmax

\underset{x}{\operatorname{argmin}}

\underset{x}{\operatorname{argmax}}

Friday, 1 July 2011

Latex problem: ! LaTeX Error: File `algorithmic.sty' not found.

problem:
! LaTeX Error: File `algorithmic.sty' not found.

solution:
$ sudo apt-get install texlive-science

Latex problem: ! LaTeX Error: File `iso-8859-7.def' not found.

problem:
! LaTeX Error: File `iso-8859-7.def' not found.

solution:
$ sudo apt-get install texlive-latex-extra

also try
$ sudo apt-get install texlive-lang-greek

Latex problem: "! Font \secfnt=ptmb8t at 12.0pt not loadable: Metric (TFM) file not found."

problem:
! Font \secfnt=ptmb8t at 12.0pt not loadable: Metric (TFM) file not found.


solution:
$ sudo apt-get install texlive-fonts-recommended

Friday, 22 April 2011

include eps in Latex

Doesn't work for png


\begin{figure}[htb]
\centering
\includegraphics[scale=0.5]{img/foo.eps}
%\includegraphics[width=15cm]{img/foo.eps}
\caption{This is the caption.}
\label{foo}
\end{figure}