Menu
LaTeX ContohBerikut ialah contoh dokumen Hello world! ("Helo dunia!") yang ditulis dengan penanda LaTeX:
\documentclass[12pt]{article}\begin{document}Helo dunia!\end{document}
Paparan:
Helo dunia! {\displaystyle {\text{Helo dunia!}}}
Contoh di bawah ini menunjukkan input dan output LaTex:
\documentclass[12pt]{memoir}\usepackage{amsmath}\usepackage{framed}\usepackage{abc}\title{}\date{}\begin{document} \pagenumbering{gobble} \clearpage \thispagestyle{empty} \LaTeX{} ditulis oleh Leslie Lamport pada tahun 1984. Versi mutakhir perisian ini ialah \LaTeXe. % Ini ialah ulasan atau komen yang tidak dipaparkan dalam output. % Kod berikut menampilkan kuasa LaTex mengatur huruf: \PoemTitle*{\textbf{Oda buat \LaTeX{}}} \PlainPoemTitle \settowidth{\versewidth}{Nampak gaya hanya \LaTeX{} yang mampu} \begin{qframe} \begin{verse}[\versewidth] \ldots \\ Pergi ke hutan berbekal buluh,\\ Terserempak dengan seekor singa,\footnotemark \\ Larilah landak, larilah kekek,\\ Meredah paya, buaya keliru;\\ \hspace{2.0em}Kalau mahu mengatur huruf,\\ \hspace{2.0em}Huruf pula berbunga-bunga,\\ \hspace{2.0em}\textsc{Emacs}\footnotemark tersedak, Word\footnotemark lagi tercekik,\\ \hspace{2.0em}Nampak gaya hanya \LaTeX{} yang mampu. \end{verse} \begin{flushright} {\itshape Awanama} \end{flushright} \end{qframe} \begin{abc}[name=c-dur] X: 1 L: 1/4 M: 3/4 K: C "Pengaturan huruf tatatanda muzik dan matematik" z2 A B|[c2A,4] c/2 c| \end{abc} \footnotetext[1]{Sejenis binatang buas} \footnotetext[2]{Sejenis editor teks sumber terbuka} \footnotetext[3]{Sejenis pemproses kata proprietari} \nopagebreak[4] \begin{align} E &= mc^2 \\ m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} \end{align}\end{document} |
Menu
LaTeX ContohBerkaitan
LaTeX Lateks Lateng, Banyuwangi, Banyuwangi Late Night Restaurant Lateri Lateen Latehar Late Blossom Latera LaterzaRujukan
WikiPedia: LaTeX http://research.microsoft.com/users/lamport/pubs/p... http://www.ctan.org http://www.ctan.org/what_is_tex.html http://www.latex-project.org/ http://www.tug.org/ //ms.wikibooks.org/wiki/Special:Search/LaTeX //commons.wikimedia.org/wiki/Special:Search/LaTeX //ms.wikinews.org/wiki/Special:Search/LaTeX //ms.wikiquote.org/wiki/Special:Search/LaTeX //wikisource.org/wiki/Special:Search/LaTeX