L A T EX, Overleaf, and Ti k Z Miloslav Capek Department of - - PowerPoint PPT Presentation

l a t ex overleaf and ti k z
SMART_READER_LITE
LIVE PREVIEW

L A T EX, Overleaf, and Ti k Z Miloslav Capek Department of - - PowerPoint PPT Presentation

L A T EX, Overleaf, and Ti k Z Miloslav Capek Department of Electromagnetic Field Czech Technical University in Prague, Czech Republic miloslav.capek@fel.cvut.cz Seminar Prague, Czech Republic November 13, 2018 Capek, M. L A T X,


slide-1
SLIDE 1

L

AT

EX, Overleaf, and TikZ

Miloslav ˇ Capek

Department of Electromagnetic Field Czech Technical University in Prague, Czech Republic miloslav.capek@fel.cvut.cz

Seminar Prague, Czech Republic November 13, 2018

ˇ Capek, M. L A T E X, Overleaf, and TikZ 1 / 31

slide-2
SLIDE 2

Outline

1

L

AT

EX

2

Style

3

Overleaf

4

Graphics – Motivation

5

Colors

6

TikZ

This talk concerns: ◮ electric currents in vacuum, ◮ time-harmonic quantities, i.e., A (r, t) = Re {A (r) exp (jωt)}.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 2 / 31

slide-3
SLIDE 3

L

A

T E X

About L

AT

EX

Document preparation system, opened, for free ◮ To allow anybody to produce high-quality books using minimal effort, ◮ to provide a system that would give exactly the same results on all computers. L

AT

EX= Lamport T EX T EX Donald Knuth, 1st release: 1978 ◮ T EX= τǫχ → “tεx” or “tεk” L

AT

EX Leslie Lamport, 1st release: 1984 ◮ “la:tεx” or “leitεx”

ˇ Capek, M. L A T E X, Overleaf, and TikZ 3 / 31

slide-4
SLIDE 4

L

A

T E X

MS Office Contra L

AT

EX

Matter of taste (and professional honor). Features favoring MS Office ◮ Requires almost no skills and knowledge. ◮ Linear learning curve. ◮ May be “good enough” approach if

  • ne is not concerned about quality.

Features favoring L

AT

EX ◮ Open-source (for free). ◮ Typesetting (fonts, kerning, math). ◮ Well documented. ◮ All (text, math, figures) in the same environment. ◮ 100 % controllability. ◮ Can be heavily automated. ◮ Movable and inter-media content. ◮ Superb outputs.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 4 / 31

slide-5
SLIDE 5

L

A

T E X

Conception

Distribution (e.g., MikTeX) + Packages (e.g., Amsmath) + Style/template files (sty, cls) To learn: L

AT

EX, Overleaf, data processing, Beamer, PGFplot and TikZ. To start with:

L

A

T EXbasics L

A

T EXin 30 minutes On-line equations

ˇ Capek, M. L A T E X, Overleaf, and TikZ 5 / 31

slide-6
SLIDE 6

L

A

T E X

A Few Highlights

Live Show

Some features which can convince those hesitating. . . ◮ math, ◮ internal referencing (equations, figures, tables), ◮ acronyms, ◮ citations, ◮ index.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 6 / 31

slide-7
SLIDE 7

L

A

T E X

Packages to Get

Demonstration of TeXStudio and JabRef

Must have

  • 1. L

AT

EX distribution

MikTeX

  • 2. L

AT

EX editor

TeXstudio

  • 3. L

AT

EX packaged (can be installed on the fly)

  • 4. Spell-checker

How to install

  • 5. Reference database editor

JabRef

Optional

  • 1. GhostScript

GhostScript

  • 2. GhostViewer

GhostViewer

  • 3. GNUplot

GNUplot

  • 4. Matlab2TikZ

Matlab2TikZ

  • 5. GeoZebra

GeoZebra

  • 6. MeshLab

MeshLab

  • 7. ParaView

ParaView

  • 8. Asymptote

Asymptote

Codes from MATLAB fileexchange (mcode, cbrewer, fig2u3d, vrml, export fig).

ˇ Capek, M. L A T E X, Overleaf, and TikZ 7 / 31

slide-8
SLIDE 8

L

A

T E X

Lists

A list can be either ◮ a long sentence ◮ or a set of independent bullets. itemization ◮ no numbering ◮ most common user-defined bullet symbols enumeration

  • 1. numbered
  • 2. different numbering

possible (A,B,. . . )

  • 3. when order or amount is
  • f interest

description difference bullet symbol is a word or a sentence usage for descriptive lists Ellipsis: . . . (not ...); a space before and/or after is a matter of used style. Notice that for math we have · · · , . . ., ....

ˇ Capek, M. L A T E X, Overleaf, and TikZ 8 / 31

slide-9
SLIDE 9

L

A

T E X

Capitalization

Matter of writing style. We do capitalize ◮ nouns (man, bus, book), ◮ adjectives (angry, lovely, small), ◮ verbs (run, eat, sleep), ◮ adverbs (slowly, quickly, quietly), ◮ pronouns (he, she, it), ◮ subordinating conjunctions (as, because, that). We do not capitalize ◮ articles: a, an, the, ◮ coordinating conjunctions: and, but, or, for, nor, etc., ◮ prepositions (fewer than five letters):

  • n, at, to, from, by, etc.

If you capitalize, then no full stop.

Title capitalization

ˇ Capek, M. L A T E X, Overleaf, and TikZ 9 / 31

slide-10
SLIDE 10

L

A

T E X

Dash × Hyphen

We differentiate between em dash “—” punctuation (yes—or no?), en dash “–” range (6–10 days, pp. 40–42), hyphen “-” connects two words (front-end), minus “−” math (a − b). Quotation is “this”, not ”this” or ’this’. “Nested ‘quotation’” or “nested ‘quotation’ ”, but not “nested ‘quotation”’.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 10 / 31

slide-11
SLIDE 11

Style

Stylistics and Style

gutter panchart hyphenation kerning fonts i.e., e.g., cf., etc. viz = see

  • vs. × vs (vs. preferred)

consistence in usage of “data”, “information”, etc. ◮ Self-study of books, forums, personal interest needed.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 11 / 31

slide-12
SLIDE 12

Overleaf

Overleaf

Overleaf (2018) = ShareLaTeX (before 2018) + Overleaf (before 2018) ◮ On-line tool for collaborative L

AT

EXwriting. ◮ Standard account for free (some limitations). ◮ A plethora of standardized templates. ◮ Overleaf v1 and v2. ◮ GIT fully supported in v1, only GitHub so far in v2.

Overleaf

ˇ Capek, M. L A T E X, Overleaf, and TikZ 12 / 31

slide-13
SLIDE 13

Overleaf

Overleaf

Live Show

◮ Web page, login, application. ◮ Sharing, GIT. ◮ History, back up. ◮ Types of documents (report, paper, CV, project proposal), templates. ◮ External style files, animate.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 13 / 31

slide-14
SLIDE 14

Overleaf

Get Overleaf Pro Account (For Free)

Live Show

  • 1. Create Overleaf account

Overleaf .

  • 2. Create IEEE account at

IEEE .

  • 3. Log in IEEE Collabratec

IEEE Collabratec .

  • Be sure you have CTU IP address.
  • 4. In IEEE Collabratech: Click on “Widgets”, then “View attached services”, find

Overleaf and click on “Connect”. Log in Overleaf. To be a Pro, you have to log out and log in again.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 14 / 31

slide-15
SLIDE 15

Graphics – Motivation

Types of Scientific Data

Data types: ◮ divergent, low to high (e.g., current density) ◮ sequential, mid-range and both extremes (e.g., charge density) ◮ qualitative, different classes (e.g., type of publication) Not all data are best to be presented in a form of a graph. ◮ Only when it saves space or time. ◮ For precise/exact data use table.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 15 / 31

slide-16
SLIDE 16

Graphics – Motivation

Figures

Appearance: clarity, simplicity, temperance. ◮ Not enough time to discuss in all the details! ◮ B2B99TPS, Technical Writing. Cleveland, W. S.: The Elements of Graphing Data Cleveland, W. S.: Visualizing Data Tufte, E. R.: The Visual Display of Quantitative Information Tufte, E. R.: Envisioning Information

ˇ Capek, M. L A T E X, Overleaf, and TikZ 16 / 31

slide-17
SLIDE 17

Graphics – Motivation

Figures

Examples

  • 1. Generate, externalize, and store your data properly.
  • 2. Always separate raw data and a graph.

Elements to take care of: Markers, lines (style, width), ticks, axes labels, grid, legend, caption, box, font size, colors, data (type, structure,. . . ).

10−3 10−2 10−1 100 101 102 103 100 101 102 103 104 105 106

a

ka D

10−8 Ω/ 10−6 Ω/ 10−4 Ω/ 10−2 Ω/ 1 Ω/ Harrington GO

ˇ Capek, M. L A T E X, Overleaf, and TikZ 17 / 31

slide-18
SLIDE 18

Colors

Colors and Color Maps

◮ Color perception is a science of its own. ◮ Purpose of a document: printed/on-line article × presentation (Beamer). ◮ Do not reduce contrast and readability (keep number of colors low, select them well). ◮ Black and white printing, colorblindness.

ColorBrewer2 Selecting Semantically-Resonant Colors A Colour Alphabet

Stone, M. C.: A Field Guide to Digital Color

ˇ Capek, M. L A T E X, Overleaf, and TikZ 18 / 31

slide-19
SLIDE 19

Colors

Colorblindness

◮ Approx. 8-9% people are color blind (do not use red and green)! ◮ You can/should check your colormap, e.g., in Adobe Illustrator.

  • Second line: protanopie, third line: deuteranopie.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 19 / 31

slide-20
SLIDE 20

Colors

Colors and Color Maps

Principles: perceptually uniform, monotonic lightness.

Rainbow Color Map Critiques MATLAB FE: Perceptually Uniform Colormaps

Do not use jet! Ever. Consider instead: viridis, plasma, magma, inferno. Lund University/Teorel group: FF on nomenclature, FF on color maps (“Jet” Haiku)

ˇ Capek, M. L A T E X, Overleaf, and TikZ 20 / 31

slide-21
SLIDE 21

TikZ

TikZ and PGF: Create Graphics Programmatically

Live Show – TikZ Presentation with Source Code

TikZ – the same author as for Beamer (T. Tantau), PGF Plot graphs, diagrams, tikzcircuit, schemes, charts, Mindmaps, posters, ganttchart Advanced graphics: media9, animate.

TikZ/PFG Elements TikZ/PFG Examples TikZ/PFG Documentation

ˇ Capek, M. L A T E X, Overleaf, and TikZ 21 / 31

slide-22
SLIDE 22

TikZ

TikZ and PGF: Bar Graph

2016 2017 2018 2019 2020 2021 10 20 30 40 50

7 11 17 24 35 49

year mobile data traffic per month [EB] yotta Y 1024 zetta Z 1021 exa E 1018 peta P 1015 tera T 1012 giga G 109

ˇ Capek, M. L A T E X, Overleaf, and TikZ 22 / 31

slide-23
SLIDE 23

TikZ

TikZ and PGF: Data Comparison

0.5 1 1.5 2 2.5 3 3.5 4 4.5 90 120 150 180 210 240 270 α1: AToM CST α2: AToM CST α3: AToM CST α4: AToM CST f [GHz] α [➦]

ˇ Capek, M. L A T E X, Overleaf, and TikZ 23 / 31

slide-24
SLIDE 24

TikZ

TikZ and PGF: Complicated Graphs

10−4 10−3 10−2 10−1 100 101 102 102 103

Rs1 Rs2 ΩA 1 10 ℓ1 × ℓ/2 1 10 ℓ × ℓ/2 10 ℓ1 × ℓ/2 10 ℓ × ℓ/2

δ Q/η ℓ ℓ/2 ℓ1 Rs1 Rs2

ˇ Capek, M. L A T E X, Overleaf, and TikZ 24 / 31

slide-25
SLIDE 25

TikZ

TikZ and PGF: Parametrized Curves

E

ˇ Capek, M. L A T E X, Overleaf, and TikZ 25 / 31

slide-26
SLIDE 26

TikZ

TikZ and PGF: Surf Graphs

1 3 5 7 9 1 3 5 7 9

m (↔), n () lost power IH

mRΩIn

−16 5 1 3 5 7 9 1 3 5 7 9

m (↔), n ()

−16 5 1 3 5 7 9 1 3 5 7 9

  • rad. power IH

mRrIn

−10 1 3 5 7 9 1 3 5 7 9 −10 1 3 5 7 9 1 3 5 7 9

reactance IH

mXIn

CM

−12 6 1 3 5 7 9 1 3 5 7 9

CCM

−12 6

ˇ Capek, M. L A T E X, Overleaf, and TikZ 26 / 31

slide-27
SLIDE 27

TikZ

TikZ and PGF: Insets

50 100 150 200 250 300 350 400 10−24 10−18 10−12 10−6 100 n Rs̺n

0.1 0.32 1 3.2 10

5 10 15 20 100 10−2 10−4 10−6 10−8 ˇ Capek, M. L A T E X, Overleaf, and TikZ 27 / 31

slide-28
SLIDE 28

TikZ

TikZ and PGF: Simple Charts

Directivity

D

Efficiency

η

Bandwidth

FBW

Electrical size

ka < 1/2

ˇ Capek, M. L A T E X, Overleaf, and TikZ 28 / 31

slide-29
SLIDE 29

TikZ

TikZ and PGF: tikzcircuit

ε0a µ0a Z0

ˇ Capek, M. L A T E X, Overleaf, and TikZ 29 / 31

slide-30
SLIDE 30

TikZ

Movable Content

Live Show

◮ To be shown during the presentation.

  • Or visit

Personal web page and download PDF presentations denoted by a plus sign.

◮ Excercise: How to get data and figure from MATLAB via MATLAB2TikZ to TikZ and improve it.

ˇ Capek, M. L A T E X, Overleaf, and TikZ 30 / 31

slide-31
SLIDE 31

Questions?

For a complete PDF presentation see

capek.elmag.org

Miloslav ˇ Capek miloslav.capek@fel.cvut.cz November 13, 2018, v0.9

ˇ Capek, M. L A T E X, Overleaf, and TikZ 31 / 31