Presentation is loading. Please wait.

Presentation is loading. Please wait.

Latex – KREIRANJE DOKUMENATA

Similar presentations


Presentation on theme: "Latex – KREIRANJE DOKUMENATA"— Presentation transcript:

1 Latex – KREIRANJE DOKUMENATA
Ines Vlahović

2 Tipovi dokumenata pisanje kratkog teksta pisanje teze
dizajniranje knjiga stvaranje prezentacije curriculum vitae pisanje pisma stvaranje letaka stvaranje velikih plakata

3 Kratki tekst \begin{} \end{} preambula enviroment
Start with a document class. We will use the KOMA-Script class scrartcl, with A4 paper size, a base font size of 12 pt, and interparagraph spacing instead of the default paragraph indentation: Begin the document: 3. Let LaTeX print a table of contents using this command: Start a section without numbering: \addsec{Introduction} 6. Start an automatically numbered section with text: \section{The first section} 7. Add a bulleted list using an itemize environment. Each list item starts with \item. Using \ref{label}, we will refer to labels, which we will create later If you would like to have a numbered list, use the enumerate environment 8. Continue with text and start another numbered section: We can use this document as a template for filling in our own content. 9. Set a label so that we can refer to this point whenever we want to refer to this section:\label{sec:maths} 10. We will start using some mathematical expressions in the text. We mark this by enclosing them in parentheses with a prefixing backslash, that is, \( … \). When we write a scientific or technical document, we usually include math formulas. To get a brief glimpse of the look of maths, we will look at an integral approximation of a function \( f(x) \) as a sum with weights \( w_i \): 11. Write a mathematical equation using the equation environment. Again, place a label by using the following commands: \begin{equation} \label{eq:integral} \int_a^b f(x)\,\mathrm{d}x \approx (b-a) \sum_{i=0}^n w_i f(x_i) \end{equation} 12. End the document: \end{document}

4 Teza Download predloška 
contrib/classicthesis/

5 Knjiga

6 Prezentacija Teme: AnnArbor, Antibes, Berlin, Dresden, default, Frankfurt, Madrid, Singapore….

7 Prezentacija

8 Izrada postera

9 Članak

10 Podešavanja dokumenta
\documentclass[]{} {}  article, report, book, slides… []: 10pt, 12pt - veličina fonta a4, letterpaper…-veličina papira titlepage, notitlepage – naslov na novoj stranici ili zajedno twocolumn- dva stupca twoside, oneside Izgled stranica – zaglavlja i podnožja koja imaju predefinirane dijelove  \pagestyle{izgled} izgled:plain, headings, empty \thispagestyle{izgled} – za pojedinačnu stranicu

11 Podešavanja dokumenta
Makro paketi \usepackage[opcije]{makropaket} {}: fontenc – specificira kodiranje dokumenta babel – specifičnosti pojedinog jezika (dani u tjednu, mjeseci, nazivi u sekcijama) graphics – dodavanje grafike color – dodavanje boja tekstu i ostalim elementima makeidx – stvaranje indexa inputenc – input kodiranje koje koristi korisnik

12 Podešavanja dokumenta
Margine \setmargins{top}{bottom}{left}{right} pozadine \AddToBackground{pagenumber}{\includegraphics{filename}} promjena fonta sekcije: \renewcommand{\sectfont}{\large\sffamily\bfseries\color{blue}}

13 Podešavanje teksta Unos specijalnih znakova:
\usepackage[latin2,utf8]{inputenc} -omogućuje direktan unos specijalnih slova pojedinog jezika iz drugih kodirajućih tablica koja nisu u ASCII i Unicode \usepackage[Croatian]{babel} – sadrži uzorke rastavljanja riječi za odabrani jezik \usepackage[T1]{fontenc} - T1 omogućuje 256 piktografa, slova sa naglascima \usepackage{lmodern}- dodatna naredba za znakove za windowse \usepackage{microtype} - micro-typographic ekstenzije - skaliranje pojedinog znaka za bolje poravnanje

14 Podešavanje teksta Veličina fonta (podešavanje unutar okoline-enviroment): \large, \Large, \LARGE \small, \footnotesize, \scriptsize, \tiny \normalfont Promjena fonta: \textrm{…} – prebacivanje u Roman font \textsf{…} – sans serif… Oblikovanje teksta: \textbf{…} – bold \textit{…} – italic \textsc{…} – mala slova \textup{…} – velika slova Vlastite definicije – u preambuli: \newcommand{\authorname}[1]{\textbf{#1}}

15 podebljanje formula: \mathbf{argument}
Podešavanje fonta Osnovni – Computer Modern obitelj fontova drugi - \usepackage[T1]{fontenc} – radi većina fontova \usepackage{fontname} npr. \usepackage{lmodern} \usepackage{kpfonts} \renewcommand{\familydefault}{\sfdefault} – prebacivanje na sans serif font Kombiniranje fontova: \usepackage{libertine} \usepackage[libertine,cmintegrals,cmbraces,vvarbb] {newtxmath} \usepackage[scaled=0.95]{inconsolata} podebljanje formula: \mathbf{argument}

16 Numerirane liste Numerirane liste: \begin{enumerate} \item live
\usepackage{moreenum} \begin{enumerate} \item live \item long \item and \item prosper \end{enumerate}

17 Okviri teksta \usepackage{tcolorbox}
\begin{tcolorbox}[title=\textbf{Examples},colback=blue!5!white,colframe=blue!75!white]The text below consists of pangrams. \tcblower \blindtext[3] \end{tcolorbox} \tcbset{colframe=green!50!black,colback=white, colupper=green!30!black,fonttitle=\bfseries, center title, nobeforeafter, tcbox raise base} Normal text \tcbox{Boxed text} \tcbox[left=0pt,right=0pt,top=0.5ex,bottom=0pt,boxsep=0pt, toptitle=0.5ex,bottomtitle=0.5ex,title=Sample table]{ \begin{tabular}[t]{rl} Number & 100 \\ Sum & 350 \end{tabular}}

18 Slike \usepackage{graphicx} u dokumentu gdje ubacujemo sliku:
Nekoliko formata : jpg/jpeg, eps, ps, pdf \usepackage{graphicx} u dokumentu gdje ubacujemo sliku: \includegraphics{filename} ili za određene dimenzije: \includegraphics[width=0.5\textwidth]{filename} Ili \includegraphics[width=5cm, height=3cm,keepaspectratio]{filename} Za bitmape: \includegraphics[interpolate]{filename}

19 Slike \begin{figure}[htbp!] \centering \includegraphics{filename}
Automatsko pozicioniranje slike: \begin{figure}[htbp!] \centering \includegraphics{filename} \caption{Some text} \label{fig:name} \end{figure} Pozivanje na sliku sa: \label{fig:name}

20 Manipulacija sa slikama
Za pozicioniranje slike u istoj sekciji: \usepackage[section]{placeins} \clearpage završava stranicu i prisiljava output „floating” slika na tu stranicu Fiksacija pozicije slike: \usepackage{float} \begin{figure}[H] u dokumentu

21 Manipulacija sa slikama
Skaliranje slike: \includegraphics[scale=0.5]{filename} Rotacija slike: \includegraphics[angle=90]{filename} Ili \includegraphics[angle=90,origin=tl]{filename} Trim slike: \includegraphics[trim=1cm 2cm 3cm 4cm,clip]{filename} Dodavanje okvira: \usepackage{xcolor} \usepackage[export]{adjustbox} \includegraphics[width=10cm, cframe=red!50!black 5mm]{filename} u dokumentu (cframe=color thickness separation margin)

22 Poravnanje slika \usepackage[demo]{graphicx}
U dokumentu za vertikalno centriranje: \raisebox{-0.5\height}{\includegraphics[height=4cm, width=8cm]{filename1}} \hfill \raisebox{-0.5\height}{\includegraphics[height=2cm, width=4cm]{filename2}} U dokumentu za centriranje po gornjem rubu: \raisebox{-\height}{\includegraphics{...}}

23 Page Layout \usepackage{layout} \begin{document}\layout


Download ppt "Latex – KREIRANJE DOKUMENATA"

Similar presentations


Ads by Google