Skip to Content

Figure in pdfLaTeX finally

ในที่สุดก็หาเจอตัวเนียน ๆ …
นี่เลย IPE interface หน้าตา่แปลก ๆ หน่อย แต่จะคล้าย ๆ กับ xfig, jfig, winfig. ตัว concept จะเหมือน ๆ กัน ที่เด่นสุด ๆ คือ มัน export ออกมาเป็น pdf ได้อย่าง perfect, font นี่เป็น type 1 แถมขนาดก็ crop ให้เท่ากับขนาดของ drawing และเป็น vector ด้วย ไม่ใช่ rasterize

format input ที่รับมันบอกว่าเปิด eps,ps,pdf ได้ แต่ว่าลองเอามาเปิดกลับไม่ได้สักอัน ต้องใช้อันที่ ipe เป็นคน save มาถึงจะใช้ได้… แต่.. แต่.. นี่เลย มันให้ figtoipe มาให้ โห.. เนียนสุด ๆ แปลง fig เป็น format ของมันไ้ด้ (เสียดายไม่มี ipetofig)

ความเนียนสุด ๆ คือยัด latex ลงไปได้เลย เขียนอะไรลงไปก็ได้ แล้วสุดท้ายมันจะใช้ latex compile ให้อีกที เพราะงั้นจะเนียนกว่า jfig

ipe มีระบบ plugin ด้วย เรียกว่า ipelet ตัว default ที่ให้มาก็มีสร้าง n-gon , rotate in arbitrary degree, delaunay triangulation, voronoi diagram, อ้อ ๆ มี convex clipping ด้วย โอวแย้ดดดด…

ข้อเสียที่หาเจอมีอย่างเีดียว มันไม่ support pattern คือจะระบายเส้นทะแยง เส้นแนวตั้งงี้ไม่ได้ ต้องใส่สีเอาอย่างเดียว

ส่วนเรื่อง epstopdf… พึ่งจะรู้ตัวว่า miktex มันมี epstopdf.exe มาให้ใช้ไ้ด้เลย โง่จริง ๆ เรา เวลาใช้ gnuplot ก็ set term เป็น postscript eps แล้วเอามาผ่าน epstopdf ก็จะเอาไปใช้ใน pdflatex ได้เลย.. หึม ๆ เนียน ๆ

ปั่น icra ต่อ….

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Allowed HTML tags: <pre> <span> <div> <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <hr> <div> <img> <blockquote> <pre> <br> <table> <tr> <td> <th> <thead> <tbody>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • LaTex commands embedded in text will be interpreted and rendered. Additional information can be found at DruTex Documentation Pages
    • Provides different environments to create rendered images (especially maths).
    • Line and paragraphs break automatically.
    • Assists automatic numbering of tex, equation, and equations environments.
    • Images can be added to this post.
    • Adds typographic refinements.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.