Friday, May 30, 2008

Latex in Windows

  • download Tex distribution (usually MikTex (http://www.miktex.org/) )
  • download and install the LeD latex editor

Using command line
  • create using any text editor and save the file with extension (.tex)
  • to create the div file that can be viewed use the command (latex file.tex)
  • to convert div file into pdf (dvipdfm file.div)
  • for Windows use the software MikTex

How to generate PDF file

if you want to convert the latex into pdf (in Miketex) it will not recognize the .eps pictures. You can press DVI-> PDF which will convert the file into pdf without the need to change all the picture files into png extension.

Using Led Editor

You will see the pdf result immediately on the right opf the screen, also you can click on the pdf to reach to specific pieces on the tex file.

Just press the green button (Latex Compilation)

How to use references file (bib) in LED editor?

Getting current Latex document to use your .bib file is not actually very difficult. At the end of your Latex file (that is, after the content, but before \end{document}, you need to place the following commands:

\bibliographystyle{plain}
\bibliography{sample}

where sample is sample.bib

Now in Led editor you never complie the .bib file, just the .tex file.

Open up the .tex file and compile it using Latex then compile it using Bibtex

You might then have to compile it again using Latex to finish the process.

Printing the URL Field

In order to printout URL’s, you can make use of the howpublished field. Try this: howpublished = {\url{http://texblog.wordpress.com}},
You will have to add the url-package to your tex-document: \usepackage{url}.

How to keep Capitalization in the title field?
surrounded by extra brackets to preserve the capitalization.without changing the way it appears in the bibliography. by adding extra curly brackets around some characters

How to Fix the problem of figures not shown in LED DVI viewer?

Check the gsdll32.dll path in LED->menu->Configuration->options->Application->DVI viewer->GSDL32.dll directory. Make sure that the path points to the right GSView bin directory.

Wrapping Figures

Although not normally the case in academic writing, an author may prefer that some floats do not break the flow of text, but instead allow text to wrap around it. (Obviously, this effect only looks decent when the figure in question is significantly narrower than the text width.) The package wrapfig was developed for this very task.

To use wrapfig, you must first add \usepackage{wrapfig} to the preamble. This then gives you access to the \begin{wrapfigure}{alignment}{width} command. Alignment can be either l for left, or r for right. The width is obviously the width of the figure. An example:

\begin{wrapfigure}{r}{40mm}
\begin{center}
\includegraphics{toucan.eps}
\end{center}
\caption{The Toucan}
\end{wrapfigure}




Make a folder tree myowntexmf\tex\latex\mystyles

Put the file in mystyles and then add myowntexmf as a new local root
in miktex settings.



Errors

  1. "Misplaced alignment tab character &".

  2. In LaTeX, the "&" character is used for tabbing (alignment) in certain environments, but it is not a legal character on its own; that is what the first line of the error message above is saying - that the character "&" is being used somewhere it shouldn't. Click "Go To Error" to go to the place where the compiler thinks there is an error in the editing window.

No comments: