| Author |
Message |
Rushil
Posts: 1608
|
Posted: Sep 24, 2005, 7:14 am •
# 1
Making Pictures and Inserting them in Latex
Since a no. of queries have been asked on the topic of adding pictures in Latex, I am posting a topic which lists different programs and methods for inserting different files into Latex. My methods and programs are based on the use of Miktex and Texniccenter in Windows. So I do not know if these will work on your system and software. Please post your queries for your particular system.
Some general documents on inserting images in Latex are available at
1) http://www.artofproblemsolving.com/LaTeX/AoPS_L_PictHow.php
2) http://amath.colorado.edu/documentation/LaTeX/reference/figures.html#pdf
3) http://www.haptonstahl.org/latex/use_insertinggraphics.html
4) http://people.uncw.edu/hermanr/LaTeX/latex.htm
MetaFont
The original creation of the legendary Donald Knuth. It is a command based system rather than a point-and-click program. That is, Metafont is WYWIWYG and NOT WYSIWYG. Through people's recommendations etc, it appears Metafont is very useful for making excellent diagrams though it is a bit tedious. The only problem is that Metafont generates .mf files which are quite difficult to include in Latex. AT least I'm not aware of a simple method.
If you download Miktex, Metafont comes bundled with it. You will find (in the default case) the mf.exe program in C:\texmf\miktex\bin\ A userguide is available at metafont.tutorial.free.fr/. Donald Knuth's book "  " is available in non-compilable Tex format at www.ctan.org/tex-archive/systems/knuth/mf/mfbook.tex
MetaPost
The problem of inclusion of the excellent metafont files into Latex is solved by Metapost which has the same functionality and method of input as Metafont ; but it produces Postscript files instead of .mf files. These .eps files can then easily be integrated into Latex.
Download available at www.ctan.org/tex-archive/graphics/metapost/
A windows based writer(as compared to a DOS based converter available above) is MPedit available at www.ctan.org/tex-archive/graphics/metapost/contrib/tools/MPEdit/
Documentation is at [url=ftp://ibiblio.org/pub/packages/TeX/graphics/metapost/mpman.pdf]ftp://ibiblio.org/pub/packages/TeX/graphics/metapost/mpman.pdf
[/url]
WinGCLC
This is an excellent program. It is not point-and-click but based on commands. However, it doesn't have the functionality of Metapost or Metafont. Nevertheless, it is useful for beginners and gives excellent results. It has options for analytical geometry as well! It can be easily integrated into latex, This is done by putting the gclc.sty (included in download) in .../texmf/tex/latex/gclc . then just use the \input{filename.pic} command in Latex.
It is available(along with documentation) at www.matf.bg.ac.yu/~janicic/gclc/
KSEG
Another good program for creating simple graphics. Not that many options. Could be useful for maybe Physics related uses. Nevertheless, the ability to manipulate geometry pictures by varying points and lengths of lines by clicking is very useful for understanding. it is WYSIWYG . Has an inbuilt .seg to .png converter that makes files easily added to Latex.
Available at www.mit.edu/~ibaran/kseg.html
Advanced Batch converter(trial -- do you know where I can find the full version of a similar program? ) available at www.batchconverter.comcan make .eps files from .png that are even easier to put into LAtex. Otherwise , you can always use Adobe Photoshop
Asymptote
This is another command based program that works on the same principle as Metapost. Good. Available at
asymptote.sourceforge.net/
Documentation at same link as above.
While some of the above programs will serve your purpose, other such programs are PStricks, TPX,Jpicedit, TKPaint....
Most of these are simpler but have less feautures than the above. Of course there are many more and just google to find out. If you have any other recommendations, please post along with the appropriate link. If you think I forgot Geometer's Sketchpad, i did'nt include it for it is expensive, not easily available and it's files are difficult to include into LaTeX.
Last edited by Rushil on Oct 01, 2005, 9:13 pm, edited 1 time in total.
|
|
|
Valentin Vornicu
Posts: 7321 Location: California, US
Blog: View Blog
|
Posted: Sep 24, 2005, 7:17 am •
# 2
This looks nice, but can use some improvement. I await suggestions from you folks dealing with these problems ...
_________________ We all use math everyday: to forecast weather, to tell time, to handle money; we also use math to analyze crime, reveal patterns, predict behavior. Using numbers we can solve the biggest mysteries we know.
|
|
|
sumyki
Posts: 8
|
Posted: Sep 30, 2005, 11:04 am •
# 3
There are some other programs like InkSpace(open source scalable vector graphic editor) which can convert your drawings to directly .eps format and many other formats like latex file with PSTricks and also to .ps format. This program can be downloaded freely from www.inkspace.org. Other programs of this kind but not freeware are Mayura Draw (I think this is Trailware/Shareware), Xara X1(Trailware).
|
|
|
Rushil
Posts: 1608
|
Posted: Sep 30, 2005, 6:32 pm •
# 4
Your link needs to ne corrected . It is www.inkscape.org/. I think the . at the end caused the trouble.
Also, Inkspace has good conversion capabilities and nice options. However, it is NOT a program fro geometry purposes for it does not have options like  etc... Anyways, thanks sumyki!!!
|
|
|
jmerry
Posts: 7842 Location: Seattle
|
Posted: Sep 30, 2005, 10:00 pm •
# 5
I think you need to fix your link too, Rushil: inkscape  inkspace.
|
|
|
Rushil
Posts: 1608
|
Posted: Sep 30, 2005, 10:01 pm •
# 6
I don't understand. My link is working perfectly!
|
|
|
jmerry
Posts: 7842 Location: Seattle
|
Posted: Sep 30, 2005, 10:30 pm •
# 7
OK- it's actually that the name is wrong in all mentions except that link.
|
|
|
sumyki
Posts: 8
|
Posted: Oct 01, 2005, 11:53 pm •
# 8
That's Correct Rushil! Sorry for the spelling mistake and for the wrong address i have given. Your URL www.inkscape.org/ is correct.
|
|
|
sonar
Posts: 162 Location: Michigan
|
Posted: Oct 02, 2005, 3:16 pm •
# 9
This is my latest method:
KSEG to draw the picture and to export its image as a pdf file
Adobe Acrobat to crop the pdf.
Done 
|
|
|
Rushil
Posts: 1608
|
Posted: Oct 02, 2005, 5:12 pm •
# 10
Are you sure KSEG has an export to pdf option?? Where is it???
|
|
|
zabelman
Posts: 1086
|
Posted: Oct 02, 2005, 8:31 pm •
# 11
Rushil wrote: Are you sure KSEG has an export to pdf option?? Where is it???
I don't think it does, but you can easily print a KSEG picture to a virtual PDF printer (those are free). That's the easiest way to go KSEG-->PDF.
_________________ ~Zach Abel
|
|
|
Valentin Vornicu
Posts: 7321 Location: California, US
Blog: View Blog
|
Posted: Oct 03, 2005, 6:05 am •
# 12
Actually guys the easiest way to go, without installing any additional virtual printers or programs is the following.
PdfTex knows to include .png directly using the graphicx package. So you just put the .png file in the same directory as your .tex file and it will compile nice and easily.
To make a .png file, if you are working in KSEG just draw the picture, print screen, ctrl-v in paint and then save as PNG, and you're done. If you are working with Geometers' Sketchpad then you can actually select the drawing, ctrl-c (to copy it), ctrl-v to dump it into paint, then save as PNG.
_________________ We all use math everyday: to forecast weather, to tell time, to handle money; we also use math to analyze crime, reveal patterns, predict behavior. Using numbers we can solve the biggest mysteries we know.
|
|
|
Esteban8231
Posts: 13
|
Posted: Nov 03, 2006, 1:27 pm •
# 13
are pictures implemented in the forum?
|
|
|
stevem
Posts: 2462 Location: Dorset, UK
|
Posted: Nov 03, 2006, 3:08 pm •
# 14
I presume you mean, can you use LaTeX commands to create pictures on the forum? Yes, but provided you don't use any special packages and stick to the picture environment. For example:
 or 
|
|
|
besttate
Posts: 193 Location: Winnetka, IL
|
Posted: Nov 09, 2006, 1:47 pm •
# 15
I recommend the geometry program Cinderella ( http://cinderella.de/tiki-index.php), which has a free educational version and can export directly to PNG or PDF.
_________________ What is a hot liquid that commutes?
An Abelian Soup!
|
|
|
mysmartmouth
Posts: 2147 Location: Columbia, SC
|
Posted: Nov 09, 2006, 3:33 pm •
# 16
stevem wrote: I presume you mean, can you use LaTeX commands to create pictures on the forum? Yes, but provided you don't use any special packages and stick to the picture environment. For example:  or 
Nice! Is there a tutorial where I can learn how to do that kind of stuff?
_________________ Qed
|
|
|
mysmartmouth
Posts: 2147 Location: Columbia, SC
|
Posted: Nov 09, 2006, 6:44 pm •
# 18
I downloaded jPicEdt, and it is the most useful tool I've ever downloaded. I strongly recommend it. It's 100x easier to draw stuff with than Geometer's Sketchpad, and then it converts it into LaTeX that you can stick straight into TexnicCenter. WOW!
_________________ Qed
|
|
|
lphuff
Posts: 1
|
Posted: Jan 31, 2008, 12:39 pm •
# 19
can anyone give me a detailed description of how to use jPicEdt to get the Latex code for a circle. I am a total beginner. I can draw a picture and then get a code, but I can't copy it.... I don't know what to do with it. Furthermore, what packages do I need in my Latex code??? I thank you in advance.
|
|
|
Potla
Posts: 837 Location: 22°34' N; 88°30'E
Blog: View Blog
|
Posted: Apr 13, 2009, 9:22 pm •
# 20
I have installed the asymptote and the MikTex 2.7 and also the TeXnic Centre. All was fine when suddenly I had to insert a picture, I used the command:
Code: \usepackage[pdftex]{graphicx} and inserted the picture inside the document by the command Code: \includegraphics{INCIRCLE.png} and it worked! But I want to use asymptote in the latex file, ie I don't want to include graphics from outside. So I did the document as follows: Code: \documentclass{article} \usepackage{asymptote} \begin{document} \begin{asy} draw((0,0)--(100,100)) \end{asy} HI \end{document}
But the Texnic centre said , "3 errors, 0 bad boxes....." and when I opened the log file it said: Quote: ! LaTeX Error: File `asymptote.sty' not found.
Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty)
Enter file name: ! Emergency stop. <read *> l.3 \begin {document}
*** (cannot \read from terminal in nonstop modes)
Then I copied the file "asymptote.sty" from the Asymptote setup file but pasted it in "miktex\bin" and some other directories , but IT DID NOT WORK.
Can anyone please help me?
|
|
|
Share:
Moderators: fedja, stevem
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|