Перейти к содержимому

របៀបដំឡើងកម្មវិធីឡាតិច | How to install latex and use it

Soeurm-chhaiya-Math

0:00 / 0:00

របៀបដំឡើងកម្មវិធីឡាតិច | How to install latex and use it

1 006 просмотров · 9 месяцев назад
Soeurm-chhaiya-Math
231 подписчик
1 006 просмотров · 9 месяцев назад
គន្លឹះក្នុងការតម្លើងកម្មវិធី Latex TexLive Texstudio Texmaker គំរូកូដសរសេរឡាតិច៖ \documentclass[12pt,a5paper]{article} \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry} %កំណត់ដំណើរការភាសាខ្មែរ \usepackage[T1]{fontenc} \usepackage{fontspec} \defaultfontfeatures{Mapping=tex-text} \XeTeXlinebreaklocale "khm" \XeTeXlinebreakskip = 0pt plus 1pt minus 1pt %%%%%%%%%%% \setmainfont[Scale = 0.875, Script=Khmer, AutoFakeBold=2.5, AutoFakeSlant=0.3]{Khmer OS System} \newcommand{\kos}{\fontspec[Scale = 0.875, Script=Khmer]{Khmer OS System}\selectfont} \newcommand{\kml}{\fontspec[Scale = 0.875, Script=Khmer]{Khmer OS Muol Light}\selectfont} \newcommand{\en}{\fontspec{Times New Roman}\selectfont} \setmathrm{Times New Roman} \usepackage{textcomp} \usepackage{mathtools}%ផ្តល់សញ្ញាផ្សេងៗឬcommandក្នុងគណិតវិទ្យា \usepackage{amssymb} \usepackage{amsthm} %\usepackage{unicode-math} % math fonts %font គណិត \usepackage{multicol,tkz-euclide} %\usepackage{mathptmx} \usepackage[no-math]{fontspec} \usepackage[upint, smallerops]{newpxmath} %\usepackage{txfonts} %\usepackage{pxfonts} %\usepackage{newtxmath} %\usepackage{bm} %\usepackage{mathptmx} %..................... \DeclareSymbolFont{operators}{OT1}{ntxtlf}{m}{n} \SetSymbolFont{operators}{bold}{OT1}{ntxtlf}{b}{n} \usepackage{amsfonts} \usepackage{enumitem}% សម្រាប់បង្កើត item \usepackage{tasks} \usepackage{multicol} \usepackage{setspace} \setstretch{1.4} \usepackage{xcolor} %\usepackage{graphicx} %\usepackage{tikz} %\usetikzlibrary{shadows} %\usetikzlibrary{arrows} %\usepackage{dirtytalk} %\usepackage{titlesec} %\usepackage{tocloft} %\usepackage{sectsty} \allowdisplaybreaks \raggedbottom \everymath{\displaystyle} \makeatletter %line1-8 make Khmer known \def\@khmernum#1{\expandafter\@@khmernum\number#1\@nil} \def\@@khmernum#1{% \ifx#1\@nil \else \char\numexpr#1+"17E0\relax \expandafter\@@khmernum\fi } \def\knum#1{\expandafter\@khmernum\csname c@#1\endcsname}%សម្រាប់លេខរៀងខ្មែរ \def\khmernumeral#1{\@@khmernum#1\@nil} \AddEnumerateCounter{\knum}{\@knum}{} \makeatother \makeatletter \newcommand*{\kalph}[1]{% \expandafter\@kalph\csname c@#1\endcsname% } \newcommand*{\@kalph}[1]{% \ifcase#1\or ក\or ខ\or គ\or ឃ\or ង\or ច\or ឆ\or ជ\or ឈ\or ញ\or ដ\or ឋ\or ឌ\or ឍ\or ណ\or ត\or ថ\or ទ\or ធ\or ន\or ប\or ផ\or ព\or ភ\or ម\or យ\or រ\or ល\or វ\or ស\or ហ\or ឡ\or អ% \else\@ctrerr\fi% } \AddEnumerateCounter{\kalph}{\@kalph}{}% សម្រាប់​លេខរៀងអក្សរខ្មែរ \makeatother %សម្រាប់ក្នៀបខាងឆ្វេង \makeatletter %StartBcases \newenvironment{bcases}{% \matrix@check\bcases\env@bcases }{% \endarray\right.% } \def\env@bcases{% \let\@ifnextchar\new@ifnextchar \left\lbrack \def\arraystretch{1.2}% \array{@{}l@{\quad}l@{}}% } \makeatother%EndBcases %%%%%%%%%%%%% \parindent=0pt% សម្រាប់បិទកុំឱ្យចុះដើមបន្ទាត់ \DeclareMathSizes{12pt}{13pt}{11pt}{10pt} \usepackage{multicol} \begin{document} \textbf{អក្សរដិត} \\ \textit{អក្សរទ្រេត}\\ \underline{បន្ទាត់ខាងក្រោម}\\ \underline{\textit{អក្សរទ្រេត} }\\ \centerline{អក្សរកណ្តាល}\\ \begin{flushleft} តម្រឹមឆ្វេង \end{flushleft} \begin{flushright} តម្រឹមស្តាំ \end{flushright} { \color{blue}{ខ្ញុំស្រឡាញ់គណិតវិទ្យា} } { \kml \color{blue}{ខ្ញុំស្រឡាញ់គណិតវិទ្យា} }\\ សមីការដឺក្រេទី២ $ax^{2}+bx+c=0$\\ $a+b$\\ $a-b$\\ $a\times b=a\cdot b$\\ $U_{n}\;\;\;U_{n+1}$\\ $\sqrt{a+b}\;,\;\sqrt[n]{b-a}$\\ $\frac{a}{b}\;,\;\frac{\frac{a}{b}}{ab}\;,\;\dfrac{\dfrac{a}{b}}{ab}$\\ $\alpha\;\;,\;\forall\;,\;\sin{\theta}\;,\;\log_{a}b\;,\;\lim_{x\to 0}\frac{\sin{x}}{x}=1\;\;\;\iint_{a}^{b}f(x)dx$\\ $\sum_{x=1}^{n}k^2$\\ លេខរៀង\\ \begin{enumerate} \item $a$ \item $b$ \item $c$ \end{enumerate} \begin{enumerate}[label=\roman* .] \item $a$ \item $b$ \item $c$ \end{enumerate} \begin{tasks}[label=\kalph* .](3) \task $a$ \task $b$ \task $c$ \end{tasks} \begin{tasks}[label=\knum* .](3) \task $a$ \task $b$ \task $c$ \end{tasks} \end{document}