【问题标题】:How to install pstricks on a mac (using emacs and orgmode.)如何在 Mac 上安装 pstricks(使用 emacs 和 orgmode。)
【发布时间】:2017-09-06 12:59:40
【问题描述】:

我现在在我的 orgmode 文件中的内容是:

#+BEGIN_SRC latex

\begin{pspicture}(7,3)
\psline[linecolor=red,linestyle=dotted](0,4)(7,4)
\psline[linecolor=red,linestyle=dotted](0,3)(7,3)
\psline[linecolor=red,linestyle=dotted](0,2)(7,2)

\cnode*(0,1){1mm}{n1}
\cnode*(2,1){1mm}{n2}
\cnode*(4,1){1mm}{n3}
\cnode(6,1){2mm}{c}

\ncangle[armB=1.2,angleA=90,angleB=135]{->}{n3}{c}  % armA = ca. 1
\ncangle[armB=2.2,angleA=90,angleB=125]{->}{n2}{c}  % armA = ca. 2
\ncangle[armB=3.1,angleA=90,angleB=115]{->}{n1}{c}  % armA = ca. 3
\end{pspicture}

#+END_SRC

我在我的乳胶 ~/.emacs 中配置乳胶的是:

    \\usepackage{pstricks,pst-node}
    \\usepackage{pstricks-add}
    \\usepackage{auto-pst-pdf}
    \\usepackage{pst-pdf}

此方法适用于所有包,即 \usepackage{amsmath、amsthm、amssymb、amsfonts、epsfig} 但也不是为了 pstricks 编译为 pdf 后,我发现一个空白空间,并且在我的日志中没有错误。

经过一番搜索,我发现我需要在我的主要乳胶文件中添加一些 pstrick(-add) 文件。

我唯一能找到的可能是主要的乳胶文件是路径:

\Library\Tex\* 

但我不知道在哪里放置 pstrick 文件。

请帮忙。 谢谢。

【问题讨论】:

  • 我确实得到了一个包含所有内容的 .tex 文件。我可以在乳胶上使用哪个命令来获取其中包含 pstricks 图像的 pdf?

标签: macos emacs latex org-mode pstricks


【解决方案1】:

我找到了一个我想分享的解决方案。 使用 emacs 我生成一个 file.tex 文件。

命令:

emacs --batch -f org-latex-export-to-latex

然后在导出文件夹中:

latex -shell-escape file.tex

这会生成一个 dvi.Then 命令

dvips file.dvi

最后但同样重要的是,命令:

ps2pdf file.ps

现在我有了我漂亮的 pdf 和我漂亮的微积分。 我搜索了 2 天:D。最后。我真的很想在 tikz 或 pgf 上使用 pstricks。简单的语法->快速的工作流程。

我在https://nl.sharelatex.com/learn/Choosing%20a%20LaTeX%20Compiler 上找到了解决方案 通过查看 Latex 编译文件流程。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-08
    • 2021-07-12
    • 2016-02-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-03
    相关资源
    最近更新 更多