Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On 27/10/2011, soumalya ray <drsoumalya@gmail.com> wrote:
what is latex????????
i googled a bit and apparently its an editor mainly for scientific writing.i
am using ubuntu lucid.so downloaded texlive packages from the synaptic.
but i could not understand how to use it?

A quick example. Create a bibliography file 'mybibliography.bib'
containing the following text:

@article{referencename,
        author="firstname lastname",
        journal="journal title",
        month="month of year",
        note="",
        number="1",
        pages="1--10",
        title="journal article title",
        volume="2",
        year="3456"
        }

Create a tex file 'myfirstlatexfile.tex' containing the following:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=1.5cm,lmargin=2.5cm,rmargin=1.5cm,headheight=1cm,headsep=1cm,footskip=1cm}
\usepackage{amsmath}
\begin{document}
        \author{~}
        \title{a latex file}
        \date{~}
        \maketitle
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
        \begin{math}
                \sum_{i=1}^{10} a_i
        \end{math}
        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute
\cite{referencename) irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim
id est laborum.
        \section{title of this section}
                \begin{itemize}
                        \item an item in a bullet list
                        \item another item
                \end{itemize}
        \bibliographystyle{plainnat}
        \bibliography{/path/to/your/bibliography/mybibliography.bib}
\end{document}

could anybody give me some idea about it?how to use it with libreoffice?

In your command terminal run the commands:

latex myfirstlatexfile.tex
bibtex mybibliography.bib
latex myfirstlatexfile.tex
latex myfirstlatexfile.tex

View the file with the command:

xdvi myfirstlatexfile.dvi

As an example (there are other possibilities depending on your LaTeX
installation), convert to pdf:

dvipdf myfirstlatexfile.dvi

View file in pdf reader (evince or xpdf):

evince myfirstlatexfile.pdf

The example should demonstrate the power of LaTeX; beautiful pdf
output, perfect rendering of maths, automatic formatting of text,
excellent organisation of references.

If you want a structured document containing references, maths and
consistent formatting, use LaTeX. If you want to write a quick
document without the need for maths or references, use a word
processor such as LO. There is no _requirement_ to use LaTeX with LO.
Personally, there does not seem to be a good reason to try and
incorporate LaTeX code into LO, unless LO wants to become a user
interface to LaTeX, like LyX.

-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.