latex etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
latex etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

8 Nisan 2012 Pazar

numbered list in Latex

Here is a way of creating numbered lists in Latex:



\begin{enumerate}
\item bla
\begin{enumerate}
\item bla bla
\item bla bla bla
\end{enumerate}
\item bla bla bla bla
\item bla bla bla bla bla 
\end{enumerate}

22 Ocak 2012 Pazar

Latex error: Unknown graphics extention: .eps

While trying to output a pdf from a .tex file including an .eps image, i got the error "Unknown graphics extention: .eps", even though including the graphics package..
Following this discussion http://www.latex-community.org/forum/viewtopic.php?f=31&t=84&sid=770badff71c4ad41aae498dbfad6c058&start=10, someone states that:

Remember, EPS only works with the following compiling routes:
LaTeX => DVI
LaTeX => PS
LaTeX => PS => PDF


but not with LaTeX => PDF !!!




So, i tried Texify instead of PDFTexify in WinEdt with success.. Afterwards, i converted the output to PDF with dvi2pdf as in the figure:

13 Kasım 2011 Pazar

a winedt/miktex tip


For the last hour, i was wondering why latex could not see my figure file during compilation.. Finally, i figured out that latex working envirenment (where the _temp.pdf is produced during compilation) is not the directory of my current .tex file.. WinEdt/Miktex treated as if all my .tex documents i edited so far, belong to the same project, and assigned the first .tex file (which is under a different directory) as the main file of the project..

In order to correct this, i modified the Main File attribute via Project Manager window in WinEdt/Miktex accordingly.


7 Ekim 2011 Cuma

modifying latex margins

modify latex margins as follows:

\usepackage[left=0.5cm,top=0.5cm,right=1.0cm,nohead,nofoot]{geometry}


I use those margin values (for informal personal reports) to reduce my printing costs :)

13 Eylül 2011 Salı

frames in Latex

in order to print text inside a frame:



 \centering
    \fbox{
    \begin{minipage}{1.0\linewidth}
    The text that will be printed in frame goes here..
    \end{minipage}
    }



a few tips here: http://www.personal.ceu.hu/tex/spacebox.htm
http://en.wikibooks.org/wiki/LaTeX/Advanced_Topics
http://chenfuture.wordpress.com/2007/06/22/frames/

12 Eylül 2011 Pazartesi

commenting multiple lines in Latex

In order to comment multiple lines in Latex:

\usepackage{verbatim} 


\begin{comment}
this line is commented out.
this one too..
\end{comment}


to comment out just one single line:

% only this line is commented out.


11 Eylül 2011 Pazar

printing special characters in Latex

In order to print the following special characters in Latex output, simply put a \ in front of the char..


 # $ % & ~ _ ^ \ { }


more on http://www.tug.org/tutorials/latex2e/Special_Characters.html

9 Eylül 2011 Cuma

URL in Latex

I can be considered as a Latex newbie, so i try to write a post on every new piece of information about how to use Latex.
Here is sample code for using URLs in Latex:
.tex file


\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{url}
\usepackage{hyperref}


\begin{document}


\title{Some Notes}
\author{Author's Name}


\maketitle


\begin{abstract}
\end{abstract}


\section{Some Notes}


\subsection{Blog}
\href{http://hilaltarakci.blogspot.com}{Hilal Tarakci Blog Page}


\cite{Tarakci2011}


\bibliographystyle{unsrt}
\bibliography{blogreferences}
\end{document} 



blogreferences.bib file


@misc{
    Tarakci2011,
    author = "Hilal Tarakci",
    title = "Hilal Tarakci Technical Page",
    howpublished = "Website",
    year = {2011},
    note = {\url{http://hilaltarakci.blogspot.com/}}
}



and the output is as follows:

14 Ağustos 2011 Pazar

Latex - referencing a web site

While writing .tex document, the following is a valid web site reference.


@ONLINE{w1_MPEG7,
author = {W3C Incubator Group},
title = {MPEG-7 and the Semantic Web},
month = aug,
year = {2011},
url = {http://www.w3.org/2005/Incubator/mmsem/XGR-mpeg7/}
}


and latex output is:

MPEG-7 [1] is one of ..
...
[1] W3C Incubator Group. Mpeg-7 and the semantic web, August 2011.

26 Temmuz 2011 Salı

how to use subfigure feature in Latex

In order to use subfigure feature in Latex:
\documentclass{article}
\usepackage[pdftex]{graphicx}
\usepackage{subfigure}

To reference subfigure do Figure ~\ref{fig:second}

\begin{figure} [htp]
   \begin{center}
    \subfigure[My First Figure]{\label{fig:first}\includegraphics[scale=0.30]{first.PNG}}
    \subfigure[My Second Figure]{\label{fig:second}\includegraphics[scale=0.30]{second.PNG}} \\
  \end{center}
  \caption{MAVIS Interfaces}
  \label{fig:edge}
\end{figure}

24 Temmuz 2011 Pazar

writing XML code in Latex

two ways to produce XML code in Latex:

1st way:
input:


\begin{tabbing}
    \\ $<$Sem\=anticBase id="Biglia\_Anderlecht\_58\_4" xsi:type="AgentObjectType"$>$ \\
    \>  $<$Lab\=el$>$ \\
    \> \>      $<$Name /$>$ \\
    \>    $<$/Label$>$ \\
    \>    $<$Def\=inition$>$ \\
    \> \>      $<$FreeTextAnnotation /$>$ \\
    \>    $<$/Definition$>$ \\
    \>    $<$Med\=iaOccurrence$>$ \\
    \> \>      $<$Med\=iaLocator xsi:type="TemporalSegmentLocatorType"$>$ \\
    \> \> \>      $<$Med\=iaTime$>$ \\
    \> \> \> \>          $<$MediaTimePoint$>$58$<$/MediaTimePoint$>$ \\
    \> \> \>      $<$/MediaTime$>$ \\
    \> \>      $<$/MediaLocator$>$ \\
    \>    $<$/MediaOccurrence$>$ \\
    \>    $<$Relation type="urn:...:agentOf" target="Corner" /$>$ \\
    \>    $<$Relation type="urn:...:memberOf" target="ANDERLECHT" /$>$ \\
    \>     $<$Age\=nt xsi:type="PersonType"$>$ \\
    \> \>      $<$Nam\=e$>$ \\
    \> \> \>        $<$GivenName$>$ Biglia $<$/GivenName$>$ \\
    \> \> \>        $<$FamilyName /$>$ \\
    \> \>      $<$/Name$>$ \\
    \>    $<$/Agent$>$ \\
      $<$/SemanticBase$>$ \\
    \end{tabbing}


output:

















2nd way is by using listings style..

17 Mayıs 2011 Salı

a few latex tips

unordered list sample in latex:

\begin{itemize}
\item \emph{item1: }bla...
\item \emph{item2:} bla bla...
\item \emph{item3:} bla bla bla...
\end{itemize}

defining a figure in latex:
\begin{figure}
\centering
\scalebox{0.5} {\includegraphics{myPhoto.PNG}}
\caption{My Photo Description}
\label{fig:myPhoto}
\end{figure}

note: don't forget to put this in document beginning:
\usepackage[pdftex]{graphicx}

.. and reference it:
.. as in Figure ~\ref{fig:myPhoto}

the point here is putting label after caption.. otherwise, you may not reference the figure correctly.. for more, see http://www.latex-community.org/forum/viewtopic.php?f=45&t=3823