我在我的 FreeBSD 服务器上安装了这些软件包:
tex-formats
texlive-texmf
当我运行命令时
pdflatex filename.tex
我收到此错误:!我无法在文件“filename.log”上写入(按 Enter 重试,或按 Control-D 退出;默认文件扩展名为“.log”)请输入另一个转录文件名:
我尝试了许多其他名称,重命名了原始文件等,但仍然出现同样的错误。
我该如何解决这个问题?我正在测试的 latex 文件在这里:
\documentclass[12pt]{article}
\usepackage{lingmacros}
\usepackage{tree-dvips}
\begin{document}
\section*{Notes for My Paper}
Don't forget to include examples of topicalization.
They look like this:
{\small
\enumsentence{Topicalization from sentential subject:\\
\shortex{7}{a John$_i$ [a & kltukl & [el &
{\bf l-}oltoir & er & ngii$_i$ & a Mary]]}
{ & {\bf R-}clear & {\sc comp} &
{\bf IR}.{\sc 3s}-love & P & him & }
{John, (it's) clear that Mary loves (him).}}
}
\subsection*{How to handle topicalization}
I'll just assume a tree structure like (\ex{1}).
{\small
\enumsentence{Structure of A$'$ Projections:\\ [2ex]
\begin{tabular}[t]{cccc}
& \node{i}{CP}\\ [2ex]
\node{ii}{Spec} & &\node{iii}{C$'$}\\ [2ex]
&\node{iv}{C} & & \node{v}{SAgrP}
\end{tabular}
\nodeconnect{i}{ii}
\nodeconnect{i}{iii}
\nodeconnect{iii}{iv}
\nodeconnect{iii}{v}
}
}
\subsection*{Mood}
Mood changes when there is a topic, as well as when
there is WH-movement. \emph{Irrealis} is the mood when
there is a non-subject topic or WH-phrase in Comp.
\emph{Realis} is the mood when there is a subject topic
or WH-phrase.
\end{document}
答案1
我意识到我遇到的问题是由于权限问题。
换句话说,当我跑步的时候
doas pdflatex filename.tex
它按预期工作。
您还可以使用 chmod 更改正在处理的文件