SlideShare a Scribd company logo
1 of 37
Download to read offline
Jayant Apte, Drexel University

Pictures in

PICTURES IN
IN PRESENTATIONS
Sponsored by IGSA, DIG, and GSA

JAYANT APTE
PhD Candidate
Drexel University
Jayant Apte, Drexel University

Pictures in

Outline
External graphics formats
●
Importing bitmap graphics
–
–
–

package
Figure environment
The sub-figure environment

Creating and importing vector graphics
Creating vector graphics inside
●
The
package
●
Latex-draw interface to pstricks
●
LibreOffice with TexMaths
●
Jayant Apte, Drexel University

Graphics formats
●

Bitmaps
–
–

●

Without lossy compression
With Lossy Compression

Vector graphics

Pictures in
Jayant Apte, Drexel University

Pictures in

Bitmaps
●

●

●

Store image information as pixels with each
pixel of given color
Greater the resolution, better the quality
Greater the color-depth, better the quality(16
bits to represent intensity in a range is better
than 8-bits)

●

Better the quality, greater the storage size

●

Scaling and rotating affects picture quality

●

eg. PNG, JPEG, TIFF
Jayant Apte, Drexel University

Pictures in

One image to describe us all
Jayant Apte, Drexel University

The graphicx package

Pictures in
Jayant Apte, Drexel University

Pictures in

A SIMPLE ATTEMPT
Jayant Apte, Drexel University

Pictures in

How to use graphicx right

includegraphics[attr1=val1, attr2=val2, ..., attrn=valn]{imagename}
Jayant Apte, Drexel University

Pictures in

Attributes for graphicx
Attribute

Type

Description

scale

number

width

length

The width to which the figure
should be scaled

height

length

The height to which the figure
should be scaled

totalheight

length

Height plus depth of figure (to be
used if figure is rotated)

angle

number

Angle (in degrees) by which the
figure is to be rotated counterclockwise

origin

3d coordinates

A magnification factor

The point about which rotation is
to occur
Jayant Apte, Drexel University

Scale attribute

Pictures in
Jayant Apte, Drexel University

Pictures in

Width and Height(and some placement)
Jayant Apte, Drexel University

Pictures in

Graphicx contd...
●

●

●

The image included using graphicx will be
treated by TeX as a gigantic letter.
Hence all text alignment commands work with
images added using graphicx
Pictures appear exactly where you used
includegraphics{}

●

No caption
Jayant Apte, Drexel University

Side-by-side pictures

Pictures in
Jayant Apte, Drexel University

More pictures

Pictures in
Jayant Apte, Drexel University

Pictures in

Floats in
and
The figure environment
Jayant Apte, Drexel University

Pictures in

Floats
●

●
●

●

●
●

Floats are containers for things in a document that
cannot be broken over a page.
LaTeX by default recognizes "table" and "figure" floats
Not part of the normal stream of text, but separate
entities
If not specified explicitly, LaTeX automatically places
them where they fit the best
Always have a caption describing them
Always numbered so they can be referred to from
elsewhere in the text
Jayant Apte, Drexel University

Adding a float

Pictures in
Jayant Apte, Drexel University

Pictures in

Adding a picture inside a float
Jayant Apte, Drexel University

The auto placement

Pictures in
Jayant Apte, Drexel University

Pictures in

Overriding auto-placement - [h]

[h]=place float here
Jayant Apte, Drexel University

Pictures in

Figure placement specifiers
Specifier

Permission

h

Place the float here, i.e., approximately at the same
point it occurs in the source text (however, not exactly
at the spot)

t

Position at the top of the page

b

Position at the bottom of the page.

p

Put on a special page for floats only.

!

Override internal parameters LaTeX uses for
determining "good" float positions.
Jayant Apte, Drexel University

Pictures in

Citing figures inside document

Give your figure a label

Cite using that label
Jayant Apte, Drexel University

Pictures in

The sub-figure package
●

This package provides support for the manipulation and
reference of small or ‘sub’ figures and tables within a single
figure or table environment

●

Sub-figures can be separately captioned, referenced

●

Captions can be included in the List-of-Figures

●

Usage(inside figure):
subfigure[<caption>]{<Everything one would have for normal figure>}
Jayant Apte, Drexel University

Pictures in

Using sub-figure package
Jayant Apte, Drexel University

Pictures in

Using sub-figure package

Simply use nextline to
create rows of figures
Jayant Apte, Drexel University

Pictures in

Vector Graphics
●

●

Made with lines, Bézier curves, polygons and
circles
The mathematical properties of these objects
parameters are stored

●

Easy to scale or rotate without loss of quality

●

Use less memory

●

eg. .eps
Jayant Apte, Drexel University

Pictures in

How to create vector graphics
●

OmniGraffle(Mac Only)

●

Inkscape

●

PSTricks

●

Any wrapper to PStricks
Jayant Apte, Drexel University

Pictures in

Inkscape
Jayant Apte, Drexel University

Pictures in

The power of vector graphics
Jayant Apte, Drexel University

Pictures in

The power of vector graphics
Jayant Apte, Drexel University

Pictures in

PSTricks
●

●

PSTricks is a set of macros that allow the
inclusion of PostScript drawings directly inside
TeX or LaTeX code
Written by Timothy Van Zandt and has been
maintained in recent years by Denis Girou,
Sebastian Rahtz and Herbert Voss

●

It is a way of creating pictures by typing code

●

While very useful, it has a learning curve
Jayant Apte, Drexel University

PSTricks example

begin{pspicture}(5,5)
%% Triangle in red:
psline[linecolor=red](1,1)(5,1)(1,4)(1,1)
%% Bezier curve in green:
pscurve[linecolor=green,linewidth=2pt,%
showpoints=true](5,5)(3,2)(4,4)(2,3)
%% Circle in blue with radius 1:
pscircle[linecolor=blue,linestyle=dashed](3,2.5){1}
end{pspicture}

Pictures in
Jayant Apte, Drexel University

Pictures in

LaTeXDraw: A way around
complications of PSTricks
●

●

LaTeXDraw is a graphical drawing editor for
LaTeX
LaTeXDraw can be used to:
1) generate PSTricks code
2) directly create PDF or PS pictures

●

●

LaTeXDraw is developed in Java and thus
runs on top of Linux, Windows, and Mac OS X
Download Link
Jayant Apte, Drexel University

Pictures in

LaTeXDraw: Demonstration
Jayant Apte, Drexel University

Pictures in

Using LaTeXDraw generated
script in TexWorks
Go to Edit->Preferences
Create a new typesetting tool called
pdflatex+shellescape
with shown arguments
Jayant Apte, Drexel University

Pictures in

In persentations
●

One can use beamer like Gregory

●

Or one can use TexMaths extension to LibreOffice

●

●

●

TexMaths is an addon designed to provide LaTeX
support into LibreOffice
LaTeX equations can be inserted as images (SVG
or PNG formats)
the LaTeX code is saved into the image attribute for
further editing
Jayant Apte, Drexel University

Pictures in

TeXMaths Installation for Linux
Installation on Linux
●

●

●

●

●

●

Install TexLive (on Debian based systems : sudo apt-get install texlive).
Optionally install dvipng (on Debian based systems : sudo apt-get install
dvipng).
Optionally install dvisvgm (version 1.0.8 or later, deb package is here and
rpm package is here).
Open LibreOffice Writer and install the TexMaths extension using the
Tools / Extension manager menu.
Close and reopen LibreOffice Writer. You will see the new TexMaths
toolbar. Click on the TexMaths System Configuration icon and fill the paths
of your programs (usually /usr/bin for all).
Run TexMaths by clicking on one of the TexMaths Equations icons

Link for Installation on other Oss:

TexMaths Installation

More Related Content

Similar to Latex Workshop Tutorial

CuRious about R in Power BI? End to end R in Power BI for beginners
CuRious about R in Power BI? End to end R in Power BI for beginners CuRious about R in Power BI? End to end R in Power BI for beginners
CuRious about R in Power BI? End to end R in Power BI for beginners Jen Stirrup
 
Vector graphics
Vector graphicsVector graphics
Vector graphicslenance
 
Automatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELAutomatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELJoel Falcou
 
Unit 51 task 1 powerpoint
Unit 51 task 1 powerpointUnit 51 task 1 powerpoint
Unit 51 task 1 powerpointjessicagrundy98
 
Pprofessional skills VII.pptx
Pprofessional skills VII.pptxPprofessional skills VII.pptx
Pprofessional skills VII.pptxRahulSingh440760
 
Raster Vs. Vector Presentation1
Raster Vs. Vector Presentation1Raster Vs. Vector Presentation1
Raster Vs. Vector Presentation1cdoeberl
 
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...Edureka!
 
Project presentation image compression by manish myst, ssgbcoet
Project presentation image compression by manish myst, ssgbcoetProject presentation image compression by manish myst, ssgbcoet
Project presentation image compression by manish myst, ssgbcoetManish Myst
 
Basics Of Photoshop
Basics Of PhotoshopBasics Of Photoshop
Basics Of Photoshopkarimnadir
 
R-Tree Implementation of Image Databases
R-Tree Implementation of Image DatabasesR-Tree Implementation of Image Databases
R-Tree Implementation of Image Databasessipij
 
Empowerment Technology Lesson 3
Empowerment Technology Lesson 3Empowerment Technology Lesson 3
Empowerment Technology Lesson 3alicelagajino
 

Similar to Latex Workshop Tutorial (20)

Ms Visio
Ms VisioMs Visio
Ms Visio
 
CuRious about R in Power BI? End to end R in Power BI for beginners
CuRious about R in Power BI? End to end R in Power BI for beginners CuRious about R in Power BI? End to end R in Power BI for beginners
CuRious about R in Power BI? End to end R in Power BI for beginners
 
Latex ppt copy
Latex ppt   copyLatex ppt   copy
Latex ppt copy
 
Vector graphics
Vector graphicsVector graphics
Vector graphics
 
Automatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELAutomatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSEL
 
Raster vs vector
Raster vs vectorRaster vs vector
Raster vs vector
 
Unit 51 task 1 powerpoint
Unit 51 task 1 powerpointUnit 51 task 1 powerpoint
Unit 51 task 1 powerpoint
 
R programmingmilano
R programmingmilanoR programmingmilano
R programmingmilano
 
Basics of LaTeX
Basics of LaTeXBasics of LaTeX
Basics of LaTeX
 
Pprofessional skills VII.pptx
Pprofessional skills VII.pptxPprofessional skills VII.pptx
Pprofessional skills VII.pptx
 
Technical file
Technical fileTechnical file
Technical file
 
Pixel and resolution
Pixel and resolutionPixel and resolution
Pixel and resolution
 
Raster Vs. Vector Presentation1
Raster Vs. Vector Presentation1Raster Vs. Vector Presentation1
Raster Vs. Vector Presentation1
 
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
 
Mypreson 27
Mypreson 27Mypreson 27
Mypreson 27
 
Presentation
PresentationPresentation
Presentation
 
Project presentation image compression by manish myst, ssgbcoet
Project presentation image compression by manish myst, ssgbcoetProject presentation image compression by manish myst, ssgbcoet
Project presentation image compression by manish myst, ssgbcoet
 
Basics Of Photoshop
Basics Of PhotoshopBasics Of Photoshop
Basics Of Photoshop
 
R-Tree Implementation of Image Databases
R-Tree Implementation of Image DatabasesR-Tree Implementation of Image Databases
R-Tree Implementation of Image Databases
 
Empowerment Technology Lesson 3
Empowerment Technology Lesson 3Empowerment Technology Lesson 3
Empowerment Technology Lesson 3
 

More from Jayant Apte, PhD

McKay's Algorithm for Isomorph-free Exhaustive Generation
McKay's Algorithm for Isomorph-free Exhaustive GenerationMcKay's Algorithm for Isomorph-free Exhaustive Generation
McKay's Algorithm for Isomorph-free Exhaustive GenerationJayant Apte, PhD
 
ISIT 2014, Hawaii presentation
ISIT 2014, Hawaii presentationISIT 2014, Hawaii presentation
ISIT 2014, Hawaii presentationJayant Apte, PhD
 
Adjacency Decomposition Method: Breaking up problems
Adjacency Decomposition Method: Breaking up problemsAdjacency Decomposition Method: Breaking up problems
Adjacency Decomposition Method: Breaking up problemsJayant Apte, PhD
 
Entropic Inequalities and marginal problems (Fritz and Chavez)
Entropic Inequalities and marginal problems (Fritz and Chavez) Entropic Inequalities and marginal problems (Fritz and Chavez)
Entropic Inequalities and marginal problems (Fritz and Chavez) Jayant Apte, PhD
 
Exact Repair problems with multiple sources: CISS 2014
Exact Repair problems with multiple sources: CISS 2014Exact Repair problems with multiple sources: CISS 2014
Exact Repair problems with multiple sources: CISS 2014Jayant Apte, PhD
 
Network Coding for Distributed Storage Systems(Group Meeting Talk)
Network Coding for Distributed Storage Systems(Group Meeting Talk)Network Coding for Distributed Storage Systems(Group Meeting Talk)
Network Coding for Distributed Storage Systems(Group Meeting Talk)Jayant Apte, PhD
 

More from Jayant Apte, PhD (9)

McKay's Algorithm for Isomorph-free Exhaustive Generation
McKay's Algorithm for Isomorph-free Exhaustive GenerationMcKay's Algorithm for Isomorph-free Exhaustive Generation
McKay's Algorithm for Isomorph-free Exhaustive Generation
 
ISIT 2014, Hawaii presentation
ISIT 2014, Hawaii presentationISIT 2014, Hawaii presentation
ISIT 2014, Hawaii presentation
 
Adjacency Decomposition Method: Breaking up problems
Adjacency Decomposition Method: Breaking up problemsAdjacency Decomposition Method: Breaking up problems
Adjacency Decomposition Method: Breaking up problems
 
Entropic Inequalities and marginal problems (Fritz and Chavez)
Entropic Inequalities and marginal problems (Fritz and Chavez) Entropic Inequalities and marginal problems (Fritz and Chavez)
Entropic Inequalities and marginal problems (Fritz and Chavez)
 
Exact Repair problems with multiple sources: CISS 2014
Exact Repair problems with multiple sources: CISS 2014Exact Repair problems with multiple sources: CISS 2014
Exact Repair problems with multiple sources: CISS 2014
 
Network Coding for Distributed Storage Systems(Group Meeting Talk)
Network Coding for Distributed Storage Systems(Group Meeting Talk)Network Coding for Distributed Storage Systems(Group Meeting Talk)
Network Coding for Distributed Storage Systems(Group Meeting Talk)
 
Candidacy Exam Talk
Candidacy Exam TalkCandidacy Exam Talk
Candidacy Exam Talk
 
Jayant lrs
Jayant lrsJayant lrs
Jayant lrs
 
Jayant chm
Jayant chmJayant chm
Jayant chm
 

Recently uploaded

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Recently uploaded (20)

MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

Latex Workshop Tutorial

  • 1. Jayant Apte, Drexel University Pictures in PICTURES IN IN PRESENTATIONS Sponsored by IGSA, DIG, and GSA JAYANT APTE PhD Candidate Drexel University
  • 2. Jayant Apte, Drexel University Pictures in Outline External graphics formats ● Importing bitmap graphics – – – package Figure environment The sub-figure environment Creating and importing vector graphics Creating vector graphics inside ● The package ● Latex-draw interface to pstricks ● LibreOffice with TexMaths ●
  • 3. Jayant Apte, Drexel University Graphics formats ● Bitmaps – – ● Without lossy compression With Lossy Compression Vector graphics Pictures in
  • 4. Jayant Apte, Drexel University Pictures in Bitmaps ● ● ● Store image information as pixels with each pixel of given color Greater the resolution, better the quality Greater the color-depth, better the quality(16 bits to represent intensity in a range is better than 8-bits) ● Better the quality, greater the storage size ● Scaling and rotating affects picture quality ● eg. PNG, JPEG, TIFF
  • 5. Jayant Apte, Drexel University Pictures in One image to describe us all
  • 6. Jayant Apte, Drexel University The graphicx package Pictures in
  • 7. Jayant Apte, Drexel University Pictures in A SIMPLE ATTEMPT
  • 8. Jayant Apte, Drexel University Pictures in How to use graphicx right includegraphics[attr1=val1, attr2=val2, ..., attrn=valn]{imagename}
  • 9. Jayant Apte, Drexel University Pictures in Attributes for graphicx Attribute Type Description scale number width length The width to which the figure should be scaled height length The height to which the figure should be scaled totalheight length Height plus depth of figure (to be used if figure is rotated) angle number Angle (in degrees) by which the figure is to be rotated counterclockwise origin 3d coordinates A magnification factor The point about which rotation is to occur
  • 10. Jayant Apte, Drexel University Scale attribute Pictures in
  • 11. Jayant Apte, Drexel University Pictures in Width and Height(and some placement)
  • 12. Jayant Apte, Drexel University Pictures in Graphicx contd... ● ● ● The image included using graphicx will be treated by TeX as a gigantic letter. Hence all text alignment commands work with images added using graphicx Pictures appear exactly where you used includegraphics{} ● No caption
  • 13. Jayant Apte, Drexel University Side-by-side pictures Pictures in
  • 14. Jayant Apte, Drexel University More pictures Pictures in
  • 15. Jayant Apte, Drexel University Pictures in Floats in and The figure environment
  • 16. Jayant Apte, Drexel University Pictures in Floats ● ● ● ● ● ● Floats are containers for things in a document that cannot be broken over a page. LaTeX by default recognizes "table" and "figure" floats Not part of the normal stream of text, but separate entities If not specified explicitly, LaTeX automatically places them where they fit the best Always have a caption describing them Always numbered so they can be referred to from elsewhere in the text
  • 17. Jayant Apte, Drexel University Adding a float Pictures in
  • 18. Jayant Apte, Drexel University Pictures in Adding a picture inside a float
  • 19. Jayant Apte, Drexel University The auto placement Pictures in
  • 20. Jayant Apte, Drexel University Pictures in Overriding auto-placement - [h] [h]=place float here
  • 21. Jayant Apte, Drexel University Pictures in Figure placement specifiers Specifier Permission h Place the float here, i.e., approximately at the same point it occurs in the source text (however, not exactly at the spot) t Position at the top of the page b Position at the bottom of the page. p Put on a special page for floats only. ! Override internal parameters LaTeX uses for determining "good" float positions.
  • 22. Jayant Apte, Drexel University Pictures in Citing figures inside document Give your figure a label Cite using that label
  • 23. Jayant Apte, Drexel University Pictures in The sub-figure package ● This package provides support for the manipulation and reference of small or ‘sub’ figures and tables within a single figure or table environment ● Sub-figures can be separately captioned, referenced ● Captions can be included in the List-of-Figures ● Usage(inside figure): subfigure[<caption>]{<Everything one would have for normal figure>}
  • 24. Jayant Apte, Drexel University Pictures in Using sub-figure package
  • 25. Jayant Apte, Drexel University Pictures in Using sub-figure package Simply use nextline to create rows of figures
  • 26. Jayant Apte, Drexel University Pictures in Vector Graphics ● ● Made with lines, Bézier curves, polygons and circles The mathematical properties of these objects parameters are stored ● Easy to scale or rotate without loss of quality ● Use less memory ● eg. .eps
  • 27. Jayant Apte, Drexel University Pictures in How to create vector graphics ● OmniGraffle(Mac Only) ● Inkscape ● PSTricks ● Any wrapper to PStricks
  • 28. Jayant Apte, Drexel University Pictures in Inkscape
  • 29. Jayant Apte, Drexel University Pictures in The power of vector graphics
  • 30. Jayant Apte, Drexel University Pictures in The power of vector graphics
  • 31. Jayant Apte, Drexel University Pictures in PSTricks ● ● PSTricks is a set of macros that allow the inclusion of PostScript drawings directly inside TeX or LaTeX code Written by Timothy Van Zandt and has been maintained in recent years by Denis Girou, Sebastian Rahtz and Herbert Voss ● It is a way of creating pictures by typing code ● While very useful, it has a learning curve
  • 32. Jayant Apte, Drexel University PSTricks example begin{pspicture}(5,5) %% Triangle in red: psline[linecolor=red](1,1)(5,1)(1,4)(1,1) %% Bezier curve in green: pscurve[linecolor=green,linewidth=2pt,% showpoints=true](5,5)(3,2)(4,4)(2,3) %% Circle in blue with radius 1: pscircle[linecolor=blue,linestyle=dashed](3,2.5){1} end{pspicture} Pictures in
  • 33. Jayant Apte, Drexel University Pictures in LaTeXDraw: A way around complications of PSTricks ● ● LaTeXDraw is a graphical drawing editor for LaTeX LaTeXDraw can be used to: 1) generate PSTricks code 2) directly create PDF or PS pictures ● ● LaTeXDraw is developed in Java and thus runs on top of Linux, Windows, and Mac OS X Download Link
  • 34. Jayant Apte, Drexel University Pictures in LaTeXDraw: Demonstration
  • 35. Jayant Apte, Drexel University Pictures in Using LaTeXDraw generated script in TexWorks Go to Edit->Preferences Create a new typesetting tool called pdflatex+shellescape with shown arguments
  • 36. Jayant Apte, Drexel University Pictures in In persentations ● One can use beamer like Gregory ● Or one can use TexMaths extension to LibreOffice ● ● ● TexMaths is an addon designed to provide LaTeX support into LibreOffice LaTeX equations can be inserted as images (SVG or PNG formats) the LaTeX code is saved into the image attribute for further editing
  • 37. Jayant Apte, Drexel University Pictures in TeXMaths Installation for Linux Installation on Linux ● ● ● ● ● ● Install TexLive (on Debian based systems : sudo apt-get install texlive). Optionally install dvipng (on Debian based systems : sudo apt-get install dvipng). Optionally install dvisvgm (version 1.0.8 or later, deb package is here and rpm package is here). Open LibreOffice Writer and install the TexMaths extension using the Tools / Extension manager menu. Close and reopen LibreOffice Writer. You will see the new TexMaths toolbar. Click on the TexMaths System Configuration icon and fill the paths of your programs (usually /usr/bin for all). Run TexMaths by clicking on one of the TexMaths Equations icons Link for Installation on other Oss: TexMaths Installation