1

Topic: Chèn hình bằng LaTexPix

Em dùng Latexpix vẽ hình xong convert sang lệnh Latex rồi chèn vào Winedt chạy thử,vẫn ra được pdf nhưng không ra hình mà ra toàn lệnh lăng nhăng.Em dốt lệnh LaTex nên không biết gói lệnh ban đầu khai báo đã đủ chưa.Các bác xem hộ em tí :


\documentclass{article}
\usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm,amstext}
\usepackage{indentfirst}
\usepackage[mathscr]{eucal}
\usepackage[utf8]{vietnam}
\usepackage[dvipdfm,bookmarks=true,backref,pdfstartview=FitH]{hyperref}
\usepackage[dvipdfm]{graphicx}
\newcommand{\latexpix}[3]{
                          \begin{figure}[ht]
                             \begin{center}
                                \input{#1}
                                 \caption{#2}
                                 #3
                              \end{center}
                           \end{figure}
                          }

\begin{document}





\setlength{\unitlength}{0.254mm}
\begin{picture}(387,292)(270,-381)
        \put(412,-272){\special{color rgb 1 1 0}{\ellipse*{185}{185}}} % Color Solid Ellipse
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(415,-365)(625,-365) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(415,-365)(275,-365) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(275,-365)(375,-110) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(375,-110)(645,-365) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(625,-365)(645,-365) % Plain Solid Line
        \put(410,-365){\special{color rgb 0 0 0}{\ellipse*{4}{4}}} % Color Dot
        \put(475,-205){\special{color rgb 0 0 0}{\ellipse*{4}{4}}} % Color Dot
        \put(325,-240){\special{color rgb 0 0 0}{\ellipse*{4}{4}}} % Color Dot
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\special{sh 0.3}\put(375,-110){\ellipse{4}{4}} % Shade Solid Dot
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\special{sh 0.3}\put(275,-365){\ellipse{4}{4}} % Shade Solid Dot
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\special{sh 0.3}\put(645,-365){\ellipse{4}{4}} % Shade Solid Dot
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(375,-110)(410,-365) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(275,-365)(475,-205) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(645,-365)(325,-240) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(325,-240)(475,-205) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(475,-205)(410,-365) % Plain Solid Line
        \special{color rgb 0 0 0}\allinethickness{0.254mm}\path(325,-240)(410,-365) % Plain Solid Line
        \special{color rgb 0 0 0}\put(405,-381){\shortstack{D}} % Plain Text
        \special{color rgb 0 0 0}\put(480,-201){\shortstack{E}} % Plain Text
        \special{color rgb 0 0 0}\put(310,-236){\shortstack{F}} % Plain Text
        \special{color rgb 0 0 0}\put(370,-101){\shortstack{A}} % Plain Text
        \special{color rgb 0 0 0}\put(270,-381){\shortstack{B}} % Plain Text
        \special{color rgb 0 0 0}\put(650,-371){\shortstack{C}} % Plain Text
        \special{color rgb 0 0 0}\put(405,-291){\shortstack{G*}} % Plain Text
        \special{color rgb 0 0 0} % Set color to black again (default font color)
\end{picture}
\end{document}


Các bác chỉ cho em muốn vẽ hình như thế thì làm cụ thể thế nào với,vì em dùng lệnh graphicx và include đường dẫn file ảnh vào mà không ăn thua.
Em cám ơn nhiều !

2

Re: Chèn hình bằng LaTexPix

http://vntex.sourceforge.net/doc/LaTeXPiX-vn.pdf

http://members.home.nl/nickvanbeurden/L … namese.pdf

http://www.ebook.edu.vn/?page=1.14&view=10298


Hai link đầu là tài liệu do hoangoclan dịch.

... important note: this isnot my signature ...

3

Re: Chèn hình bằng LaTexPix

Thú thật,em vẫn chẳng hiểu chèn hình thế nào mặc dù đã đọc quyển sách hướng dẫn ấy.Nó bảo cài đặt các gói lệnh .sty.... của nó vào mà chả biết cài vào đâu.
Còn bảo dẫn hình vào bằng cách này chứ :

\LaTeXPiX{latexpix.eepic}
{ây là mët hình ÷ñc t¤o bði LaTeXPiX}
{\label{fig:LaTeXPiX-vidu}}

Thật đúng là bó tay.Bác Kỳ Anh có lòng thì chỉ giúp  em với.

Last edited by evarist (15/06/2009 13:12)

4

Re: Chèn hình bằng LaTexPix

http://download.viettug.org/?files=lshort

... important note: this isnot my signature ...