Laboratoriya ishi №18 Mavzu: Rasmlarni kiritish va joylashishini boshqarish. Ishni maqsadi


Download 1.45 Mb.
bet3/5
Sana16.06.2023
Hajmi1.45 Mb.
#1516621
1   2   3   4   5
Bog'liq
Laboratoriya ishi-18

\includegraphics[scale=0.5]{rasxodomer}
\end{document}

Hujjat kompanovkalab, ko‘rish tizimiga o‘tilsa ekranda quyidagi xosil bo‘ladi:



Rasm 8.2. Rasmni ikki marta kichiklashgan ko’rinishi.

E’tibor qarating: rasm ikki marta kichiklashdi.


Misol: rasmni kengligini o‘zgartiramiz

\includegraphics[width=1.5cm]{rasxodomer}


\documentclass[12pt]{article}
\usepackage{graphicx}
\graphicspath{{pictures/}}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\begin{document}
\includegraphics[width=1.5cm]{rasxodomer}
\end{document}
Hujjat kompanovkalab, ko‘rish tizimiga o‘tilsa ekranda quyidagi xosil bo‘ladi:

Rasm 8.3. Rasmni kengligi bo’yich o’zgarish ko’rinishi.

E’tibor qarating: rasm o‘lchami kengligi bo‘yicha 1.5 sm ga proporsional o’zgardi.


O‘lchamlarni ko‘rsatish uchun siz hujjat o‘zgaruvchilaridan foydalanishingiz mumkin: satr kengligi \linewidth, sahifadagi matn kengligi \textwidth, sahifadagi matn balandligi \textheight va hk.:

\includegraphics[width=\linewidth]{rasxodomer}


\includegraphics[width=\textwidth]{rasxodomer}
\includegraphics[height=\textheight]{rasxodomer}
Rasmni 180 gradusga burish buyrug’i:
\includegraphics[scale=1.5, angle=180]{rasxodomer}
Rasmni 1.5 marta kattalashtiradi va 180 gradusga aylantiradi.
\documentclass[12pt]{article}
\usepackage{graphicx}
\graphicspath{{pictures/}}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\begin{document}
\includegraphics[scale=1.5, angle=180]{rasxodomer}
\end{document}
Hujjat kompanovkalab, ko‘rish tizimiga o‘tilsa ekranda quyidagi xosil bo‘ladi:

Rasm 8.4. Rasmni burilgan ko’rinishi.
8.2. Figure muhiti
Agar sizga rasmni faqat hujjatga joylashtirish kerak emas, balki - Hujjatning kerakli joyida, rasmga belgi qo‘shib, shuningdek unga murojaat qilish imkoniga ega bo‘lishingiz kerak bo‘lsa, unda bu figure muhiti yordamida amalga oshirilishi mumkin:
\begin{figure}[h]
\center{\includegraphics[scale=0.5]{lsolstans.jpg}}
\caption{Тестовый рисунок "солнечная станция"}
\label{fig:image}
\end{figure}
• h opsiyasi TeX' ga qayerga "here" rasmni qo‘yishni ko‘rsatadi, qayerga \inludegraphics buyrug‘i qo‘yilgan bo‘lsa.
• Buyruq \center rasmni gorizontal bo‘yicha markazlashtiradi.
• scale opsiyasi rasm o‘lchamini realdan 50% ga keltiradi.
• Rasm nomlanishini \caption buyrug‘i beradi.
• \label keyin unga murojat qilish imkoniyatini yaratadi.
Hujjat quyidagicha bo‘ladi:

\documentclass[12pt]{article}


\usepackage[T2A]{fontenc}
\usepackage[russian]{babel}

\usepackage{graphicx}


\graphicspath{{pictures/}}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\begin{document}
\begin{figure}[h]
\center{\includegraphics[scale=0.5]{solstans.jpg}}
\caption{Tekstoy risunok "solstsnsiya"}

Download 1.45 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling