![使用 jPicEdt 来制作图形吗?](https://linux22.com/image/288686/%E4%BD%BF%E7%94%A8%20jPicEdt%20%E6%9D%A5%E5%88%B6%E4%BD%9C%E5%9B%BE%E5%BD%A2%E5%90%97%EF%BC%9F.png)
我正在使用 jPicEdt 制作图表并生成 LaTeX 代码。我想增加图表的大小吗?
\documentclass[12pt]{article}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{float}
\usepackage{graphicx}
\begin{document}
\begin{figure}[htbp][width=0.5mm]
\centering
\begin{picture}(160,90)(0,0)
\linethickness{0.3mm}
\multiput(10,30)(0.12,0.3){167}{\line(0,1){0.3}}
\multiput(30,80)(1.57,0.12){83}{\line(1,0){1.57}}
\multiput(10,30)(1.57,0.12){83}{\line(1,0){1.57}}
\multiput(140,40)(0.12,0.3){167}{\line(0,1){0.3}}
\put(90,25){\makebox(0,0)[cc]{}}
\put(8,25){\makebox(0,0)[cc]{$\alpha$}}
\put(145,35){\makebox(0,0)[cc]{$\beta$}}
\put(23.5,82){\makebox(0,0)[cc]{$\gamma$}}
\put(165,90){\makebox(0,0)[cc]{$\epsilon$}}
\put(130,25){\makebox(0,0)[cc]{}}
\end{picture}
\caption{Three Dimensional Schematic Diagram of Physical Problem}
\label{fig:1.1}
\end{figure}
\end{document}
答案1
从 jPicEdt 导出的环境picture
确实很奇特,因为它通过将多个短段彼此相邻放置来构建一条线;结果是一条锯齿状的线。
您可以通过以下方式调整图片大小\unitlength
:
\documentclass[12pt]{article}
\begin{document}
\begin{figure}[htbp]
\centering
\setlength{\unitlength}{2pt} % double the size
\begin{picture}(160,90)(0,0)
\linethickness{0.3mm}
\multiput(10,30)(0.12,0.3){167}{\line(0,1){0.3}}
\multiput(30,80)(1.57,0.12){83}{\line(1,0){1.57}}
\multiput(10,30)(1.57,0.12){83}{\line(1,0){1.57}}
\multiput(140,40)(0.12,0.3){167}{\line(0,1){0.3}}
\put(90,25){\makebox(0,0)[cc]{}}
\put(8,25){\makebox(0,0)[cc]{$\alpha$}}
\put(145,35){\makebox(0,0)[cc]{$\beta$}}
\put(23.5,82){\makebox(0,0)[cc]{$\gamma$}}
\put(165,90){\makebox(0,0)[cc]{$\epsilon$}}
\put(130,25){\makebox(0,0)[cc]{}}
\end{picture}
\caption{Three Dimensional Schematic Diagram of Physical Problem}
\label{fig:1.1}
\end{figure}
\end{document}
如果您想要一个规定的宽度,您必须做一些计算;您的图片宽度为 160 个单位(标准单位为 1pt);如果您想将图片缩放为 8 厘米,请进行转换:
8*72.27/2.54=227.62
是所需的宽度(以点为单位);由于 227.62/160 = 1.42(这些是近似值),因此您需要
\setlength{\unitlength}{1.42pt}
可以使计算自动化。
这是借助该pict2e
包绘制图表的正确方法。
\documentclass[12pt]{article}
\usepackage{pict2e}
\begin{document}
\begin{figure}[htbp]
\centering
\setlength{\unitlength}{1.42pt}
\begin{picture}(160,90)(0,0)
\linethickness{0.3mm}
\Line(10,30)(30,80)
\Line(30,80)(160,90)
\Line(10,30)(140,40)
\Line(140,40)(160,90)
\put(90,25){\makebox(0,0)[cc]{}}
\put(8,25){\makebox(0,0)[cc]{$\alpha$}}
\put(145,35){\makebox(0,0)[cc]{$\beta$}}
\put(23.5,82){\makebox(0,0)[cc]{$\gamma$}}
\put(165,90){\makebox(0,0)[cc]{$\epsilon$}}
\put(130,25){\makebox(0,0)[cc]{}}
\end{picture}
\caption{Three Dimensional Schematic Diagram of Physical Problem}
\label{fig:1.1}
\end{figure}
\end{document}
没有锯齿状的线条。