1-3 laboratoriya.
Dasturni o’rnatish va ishga tushirish. Oddiy matn yaratish.
Ishdan maqsad: Dasturni o’rnatish va oddiy matn yaratishni o’rganish.
Nazariy qism: Latex sistemasida tayyorlangan matnli fayl kengaytmasi *.tex ko’rinishda bo’ladi. Keyingi jarayon ikkita etapdan o’tkaziladi. Birinchi dastur translyatori yordamida fayl qayta ishlanadi. Natijada *.dvi kengaytmali fayl olamiz. Endi olingan *.dvi kengaytmali faylni dastur yordamida ekranda ko’rish mumkin, pechatga yuborish mumkin yoki boshqa amallarni bajarish mumkin. Natija foydalanuvchini qanoatlantirmasa faylga o’zgartirish kiritib jarayonni yana takrorlashi mumkin. Latexda yaratilgan fayl matni maxsus belgilar va
buyruqlardan iborat bo’ladi. Latex dasturida 10 ta maxsus belgilardan
foydalaniladi.
Bular quyidagilar: { } $ & # % _ ^ ~ \
Bu maxsus belgilarni o’zidan foydalanmoqchi bo’lsak maxsus belgini oldiga \
belgini qo’yamiz. Masalan: Oylik 10 % ga oshdi Oylik 10 \% ga oshdi. Agar \
maxsus belgini qo’ymasdan yozsak, % belgidan keyingi matnni izoh sifatida
qaraydi.
Latex buyruqlari teskari slesh “\” belgisidan boshlanadi va faqat lotin
harflaridan iborat bo’ladi. Buyruq oxirida bo’sh joy ,raqam va ixtiyoriy harf
bo’lmagan belgidan foydalanish mumkin.
Latexda bo’sh joy belgisi buyruqdan keyin qo’yiladi. Lekin bu belgi o’rniga
boshqa maxsus {} belgisini ham qo’yish mumkin. Masalan: Men ertaga barcha
ishchi \TeX{}niklarimiz va \TeX nika mutaxasislarimiz bilan uchrashmoqchiman. Bugun \today
Misollar:
-Bugun 8-mart \textsl{Xalqaro-xotin qizlar bayrami}
Natija: Bugun 8-mart Xalqaro-xotin qizlar bayrami
-yangi satrga o'tish \newline yangi satr
Natija: yangi satrga o'tish yangi satr
Shuningdek {} belgisini bu belgi oxiriga yozilgan buyruqga turli xil
parametrlar berish uchun ham ishlatish mumkin.Bunda bir yoki bir necha parametr
berish mumkin.Parametrlarni faqat {} belgisi bilan emas balki [] belgisi orqali ham joylashtirish mumkin.
\documentclass{article}
\begin{document}
First document. This is a simple example, with no
extra parameters or packages included.
\end{document}
\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc}
\title{First document}
\author{Hubert Farnsworth \thanks{funded by the Overleaf team}}
\date{February 2014}
\documentclass[12pt, letterpaper, twoside]{article}
\usepackage[utf8]{inputenc}
\title{First document}
\author{Hubert Farnsworth \thanks{funded by the Overleaf team}}
\date{February 2014}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
In this document some extra packages and parameters
were added. There is an encoding package
and pagesize and fontsize parameters.
\end{document}
\documentclass{article}
\usepackage[utf8]{inputenc} %codification of the document
\usepackage{comment}
%Here begins the body of the document
\begin{document}
This document contains a lot of comments, none of them
will appear here, only this text.
This document contains a lot of comments, none of them
will appear here, only this text.
\begin{comment}
This text won't show up in the compiled pdf
this is just a multi-line comment. Useful
to, for instance, comment out slow-rendering parts
while working on a draft.
\end{comment}
\end{document}
Topshiriqlar:
Latex dasturini o’rnatish ketma-ketligini ko’rsating
Dastur ishga tushgani va interfeysi haqida ma’lumot bering
Dastur ishlash imkoniyatlari bilan tanishtirib o’ting
Do'stlaringiz bilan baham: |