Sie sind auf Seite 1von 44

Motivation

Figures with LATEXlabels


Bibliography using BIBTEX le example.bib

Customization in Latex
Do ument Layout, graphi s, mathemati s and bibliography in
IEEE style
V. Sahula

S. Ansari

Department of ECE
Malaviya National Instittue of Te hnology
Jaipur India

IEEE Transa tons style

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Outline
1

Motivation
Automation in layout and stru ture of do ument
Mathemati s

Figures with LATEXlabels


Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Bibliography using BIBTEX le example.bib

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Outline
1

Motivation
Automation in layout and stru ture of do ument
Mathemati s

Figures with LATEXlabels


Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Bibliography using BIBTEX le example.bib

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Presumptions.

Presumtions from previous dis ussions

A omplete LATEXis installed, mikteX on windows.


Install Lyx, a front end to LATEX, better omplete pa kage,
whi h in ludes mikteX [lyx-2.1.2
Learn to in lude pa kages into mikteX using pa kage-manager,
run FNDB afterwards et .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Presumptions.

Presumtions from previous dis ussions

A omplete LATEXis installed, mikteX on windows.


Install Lyx, a front end to LATEX, better omplete pa kage,
whi h in ludes mikteX [lyx-2.1.2
Learn to in lude pa kages into mikteX using pa kage-manager,
run FNDB afterwards et .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Presumptions.

Presumtions from previous dis ussions

A omplete LATEXis installed, mikteX on windows.


Install Lyx, a front end to LATEX, better omplete pa kage,
whi h in ludes mikteX [lyx-2.1.2
Learn to in lude pa kages into mikteX using pa kage-manager,
run FNDB afterwards et .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

IEEETran Journal, Conferen e modes

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Conferen e, Journal Compso


For Journals
\do ument lass[12pt,journal, ompso {IEEEtran}

For onferen es
\do ument lass[12pt, onferen e{IEEEtran}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Pa kage geometry

layout

Basi Problem
Mathemati s

for do ument margins \& page

Pla e following into PREAMBLE


\usepa kage[top=2in, bottom=1.5in, left=1in, right=1in
{geometry}

72.27pt in an in h
one in h + \hoset
one in h + \voset
\oddsidemargin
\topmargin
\headheight
\headsep
\textheight =10in
\textwidth = 7in
V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Pa kage geometry

layout

Basi Problem
Mathemati s

for do ument margins \& page

Pla e following into PREAMBLE


\usepa kage[top=2in, bottom=1.5in, left=1in, right=1in
{geometry}

72.27pt in an in h
one in h + \hoset
one in h + \voset
\oddsidemargin
\topmargin
\headheight
\headsep
\textheight =10in
\textwidth = 7in
V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Pa kage geometry

layout

Basi Problem
Mathemati s

for do ument margins \& page

Pla e following into PREAMBLE


\usepa kage[top=2in, bottom=1.5in, left=1in, right=1in
{geometry}

72.27pt in an in h
one in h + \hoset
one in h + \voset
\oddsidemargin
\topmargin
\headheight
\headsep
\textheight =10in
\textwidth = 7in
V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Page Layout

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Quality font sele tion

LATEXUses type-3 Computer Modern (CM) fonts, poor looking


in pdf-viewers
Use Times or pslatex fonts
\usepa kage{times}
\usepa kage{pslatex}

Alternately, use better type-1 fonts


\usepa kage[T1{fonten }
\usepa kage{lmodern}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Quality font sele tion

LATEXUses type-3 Computer Modern (CM) fonts, poor looking


in pdf-viewers
Use Times or pslatex fonts
\usepa kage{times}
\usepa kage{pslatex}

Alternately, use better type-1 fonts


\usepa kage[T1{fonten }
\usepa kage{lmodern}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Quality font sele tion

LATEXUses type-3 Computer Modern (CM) fonts, poor looking


in pdf-viewers
Use Times or pslatex fonts
\usepa kage{times}
\usepa kage{pslatex}

Alternately, use better type-1 fonts


\usepa kage[T1{fonten }
\usepa kage{lmodern}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Quality font sele tion

LATEXUses type-3 Computer Modern (CM) fonts, poor looking


in pdf-viewers
Use Times or pslatex fonts
\usepa kage{times}
\usepa kage{pslatex}

Alternately, use better type-1 fonts


\usepa kage[T1{fonten }
\usepa kage{lmodern}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Pro essed Output

Normal font output


A Sample Text to show ase FONTS.

A Sample Text to showcase FONTS.


A Sample Text to showcase FONTS.

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Outline
1

Motivation
Automation in layout and stru ture of do ument
Mathemati s

Figures with LATEXlabels


Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Bibliography using BIBTEX le example.bib

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Balan ing the two olumn do on Last page.


Example
Aliter-1, In order to redu e the left side olumn by amount X.Y
in hes, PUT in that olumn somewhere at TOP:
\enlargethispage{-X.Yin}.
Example
Aliter-2: Put \usepa kage{balan e} in PREAMBLE
Have it in your TEXMF tree~vineet/texmf/tex/latex/mis /balan e.sty;
Put \balan e tsomwhere in LAST olumn of do .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Basi Problem
Mathemati s

Balan ing the two olumn do on Last page.


Example
Aliter-1, In order to redu e the left side olumn by amount X.Y
in hes, PUT in that olumn somewhere at TOP:
\enlargethispage{-X.Yin}.
Example
Aliter-2: Put \usepa kage{balan e} in PREAMBLE
Have it in your TEXMF tree~vineet/texmf/tex/latex/mis /balan e.sty;
Put \balan e tsomwhere in LAST olumn of do .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Outline
1

Motivation
Automation in layout and stru ture of do ument
Mathemati s

Figures with LATEXlabels


Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Bibliography using BIBTEX le example.bib

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Having XFig on your system.

Theorem

Xg available on LInux/Windows ( ygwin).


Corollary

Make gure using graphi utilities


Put Math statements, Labels using math et .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Having XFig on your system.

Theorem

Xg available on LInux/Windows ( ygwin).


Corollary

Make gure using graphi utilities


Put Math statements, Labels using math et .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

XFig gure drawing snapshot


Putting Math into gure
r11
sch_02_r11

pe11

G1

CP
L

(e,1,1)
CM

b5_r11
E

(e,$\tau_e$,1)
A

(f,$\tau_f$,1)
CP computing state
CM communicating state
(PE11)
A

(g5,$\tau_{g5}$,1)
I

G5

G3

(f,1,1)
X

(g5,1,1)
G4

E empty, A arbitrate, X transmission


(b5_r11)
A

I idle, G5 grant to B5
(sch_o2_r11)
A

Figure: XFig snapshot

Write math as labels, between a pair $ $


Very powerful, for in luding Math into gures
V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Outline
1

Motivation
Automation in layout and stru ture of do ument
Mathemati s

Figures with LATEXlabels


Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Bibliography using BIBTEX le example.bib

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Xg Exporting Figure into eps.

Theorem

Corollary

XFig gure an be exported


usually into example-g.eps
le.
It should not ontain Maths.

For Xg gures with Math,


export them into pstex (both
parts)
example.pslatex
and
example.pslatex_t

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Xg Exporting Figure into eps.

Theorem

Corollary

XFig gure an be exported


usually into example-g.eps
le.
It should not ontain Maths.

For Xg gures with Math,


export them into pstex (both
parts)
example.pslatex
and
example.pslatex_t

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Outline
1

Motivation
Automation in layout and stru ture of do ument
Mathemati s

Figures with LATEXlabels


Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Bibliography using BIBTEX le example.bib

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

XFig gure exporting

Generating example.eps
EXPORT le.g into EPS format or PDF format or PNG format
Use in lyx/latex invoking \in ludegraphi s{file.eps}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

XFig gure ombining


Generating example.eps ombining both parts
EXPORT le.g INTO two parts PSTEX or PDFTEX
Write math as labels, between a pair $ $
Very powerful, for in luding Math into gures
By ombining both part, we get best of both Worlds
In lude *.pstex_t le in Lyx
\input{san_model_no _new.pstex_t}

keep *.pstex in the present working dire tory, where *.pstex_t


also is,

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Using XFig
Exporting to pstex, pstex_t pair in XFig
Combining both parts of Figure le into eps-le

Pro essed two part *.pstex le

(f,f ,1)

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Bibliography

De lare what Bibliography style we wish to USE


First have the le IEEEtran.bst under your texmf tree
~vineet/texmf/bibtex/bst/IEEEtran.bst;
Put at the end of do ument,
\bibliographystyle{IEEEtran}

In lude myrefs.bib ontaining referen es in tokenized form,


ONE entry for ea h ref
\bibliography{myrefs}

Cite the referen e putting into do ument text, \ ite{label}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Bibliography

IEEE nomen lature

In order to use IEEE dened Journal/Transa tions


nomen lature, in lude template IEEEfull.bib or IEEEabrv.bib
\bibliography{IEEEfull,myrefs}

Very useful to READ example des riptions- IEEEtran.tar.gz


pa kage
IEEEexample.bib

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

___

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Writing Entries into myrefs.bib le

Various typesarti le, inpro eedings, pro eedings, book,


phdthesis, mis
Invoked as arti le{ } , inpro eedings{ }

Various tokens allows in ea h ofthe types


address, author, booktitle, hapter, rossref,
edition, editor, howpublished, institution,
journal, key, language,
month, note, number, organization, pages,
publisher, s hool, series, title, volume, year,

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Bibtex entry for Journal arti le


Arti le

ARTICLE{Voda ek,
author="Anthony Voda ek and F.E. Hoge and R.N. Swift and J.K.
Yungel and E.T. Peltzer and N.V. Blough",
title="The use of in situ and airborne uores en e measurements
to determine UV absorption oe ients and DOC on entrations in
surfa e waters",
journal="Limnology and O eanography",
volume=40,
number=2,
year=1995,
pages="411415",
}
V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Conferen e pro eedings

Inpro eedings

INPROCEEDINGS{Stoermer,
author=="E.F. Stoermer",
title=="Nearshore phytoplankton populations in the Grand Haven,
Mi higan vi inity during thermal bar onditions",
booktitle="Pro eedings of the 11th Conferen e on Great Lakes
Resear h",
pages="137150", year=1968,
}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Books

Book

BOOK{press92,
author="W.H. Press",
title="Numeri al Re ipes in C: The Art of S ienti Computing",
publisher="Cambridge University Press",
year=1992,
}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Ele troni A ess (web url)

eletroni
ele troni {IEEEexample:shellCTANpage,
author = "Mi hael Shell",
title = "{IEEE}tran Webpage on {CTAN}",
url = "http://www. tan.org/texar hive/ma ros/latex/ ontrib/IEEEtran/",
year = "2008"
}

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

___

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Handle Large number of manus ripts


JabRef
JabRef available for Linux/Windows, installs lo ally
Input: bibtex entries
output: WORD, RTF, Endnote et .

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Handle Large number of manus ripts...


Mendeley
MENDELEY available for Linux/Windows, installs on
DESKTOP
MEMDELEY available on CLOUD, DESKTOP an be syn 'ed
to loud
available anywhere, http://www.memdelay. om

Input: do ument in any form- .do , .pdf,.ps et .


Can store full do uement as well as an extra t BIBTEX
entries automati ally from these do s

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

Thanks!

Thanks! and remember to share your experien e!!

V. Sahula, S. Ansari

Latex and Lyx features

Motivation
Figures with LATEXlabels
Bibliography using BIBTEX le example.bib

V. Sahula, S. Ansari

Latex and Lyx features