texdoc不会工作

时间:2015-11-25 09:08:39

标签: stata

我想在Stata中编写类似sweave-a的文本,并尝试使用texdoc包。

我已经更新了我的所有套餐,但它似乎并没有完全发挥作用。

示例:

* texdoc Init
texdoc init $texdoc/myexample.tex, replace

tex \documentclass{article}
tex \usepackage{stata}
tex \begin{document}

tex \section{First Things First}

tex So when i write it like this, it works like a charm \\

/*tex 
\section{Second things never}
But when i write it like this, nothing happens
tex*/

tex You wouldnt think this is possible

texdoc stlog
local w=99
dis "because 1+1=`w'" 
texdoc stlog close  

tex \end{document}

texdoc close

" texdoc do filename" tex文档看起来像这样:

\documentclass{article}
\usepackage{stata}
\begin{document}
\section{First Things First}
So when i write it like this, it works like a charm \\
You wouldnt think this IS possible

\begin{stlog}
    \input{myexample_1.log.tex}
    \end{stlog}

\end{document}

为什么我把代码放在" tex"之后才能正确编译?命令,如果我把它放在/ tex和tex /?之间,为什么不呢?

我扫描了ado文件并且找不到任何错误......

0 个答案:

没有答案