There are many ways to include drawings/graphs/images in your latex document.
The easiest way is just to draw the graph in your drawing program of choice, then export the graph to jpg or png (or eps if you're not using PDFlatex), then use the graphicx package ( \usepackage{graphicx} in your preamble), and include the graph in your document by using the code
\includegraphics[width=4in]{filename.jpg}
As indicated in other answers, there are several drawing languages that can be used with tex: metapost, tikz, and PGF are are powerful. There is also asymptote, another code based drawing language.
You could also use graphviz, which is excellent if your graph is large and you need graph something like network traffic. And dot2tex will turn your graphviz file into something latex can handle.
发布评论
评论(3)
例如,请参阅 TeXample.net 上的 TikZ 和 PGF 包示例:
See, e.g., the following examples at TeXample.net for the TikZ and PGF packages:
使用 METAPOST 解决您的问题。
Use METAPOST for your problem.
有很多方法可以在乳胶文档中包含绘图/图表/图像。
最简单的方法就是在您选择的绘图程序中绘制图形,然后将图形导出为 jpg 或 png(如果您不使用 PDFlatex,则导出为 eps),然后在序言中使用 Graphicx 包( \usepackage{graphicx} ),并使用代码将图形包含在文档中
如其他答案所示,有几种绘图语言可以与 tex 一起使用:metapost、tikz 和 PGF 都很强大。还有 asymptote,另一种基于代码的绘图语言。
您还可以使用 graphviz,如果您的图表很大并且您需要诸如网络流量之类的图表,那么它非常有用。 dot2tex 会将您的 graphviz 文件转换为 Latex 可以处理的文件。
There are many ways to include drawings/graphs/images in your latex document.
The easiest way is just to draw the graph in your drawing program of choice, then export the graph to jpg or png (or eps if you're not using PDFlatex), then use the graphicx package ( \usepackage{graphicx} in your preamble), and include the graph in your document by using the code
As indicated in other answers, there are several drawing languages that can be used with tex: metapost, tikz, and PGF are are powerful. There is also asymptote, another code based drawing language.
You could also use graphviz, which is excellent if your graph is large and you need graph something like network traffic. And dot2tex will turn your graphviz file into something latex can handle.