ご質問はこちらへ
質問用フォーラムです。ご質問の前に質問のしかたをご覧ください。
TeXworks の ptex2pdf はネットワークドライプに対応していない?
- 葛西 の投稿
大学のPC実習室のWindowsで TeXworks の pLaTeX(ptex2pdf) で日本語LaTeXファイルがタイプセットできない件についてお聞きしたく。以下はインストールされている TeXLive 2020 で確認しています。また,大学ではユーザのホームディレクトリがネットワークドライブになっていて H: としてマウントされています。
H: にて,
コマンドラインで ptex2pdf -l hello.tex などとすると問題なく pdf ができますが,TeXworks ではコンソールに文字化けしたエラーが出てタイプセットできません。
Visual Studio Code の settings.json に ptex2pdf を設定して様子をみると以下のようなメッセージですので,ptex2pdf.lua が(?)ネットワークドライブの UNC パスに対応していないため hello.tex のあるディレクトリに cd できないからではないか?と憶測しています。
同じ状況で,日本語なしの latex ファイルをTeXworks の pdflatex でタイプセットするとうまくいくので,ptex2pdf 固有の問題かなと思います。
・この憶測は間違いで原因は別,とか
・この不具合は texlive 2021 では解消されている,とか
・このような回避策がある,など
情報をお持ちの方がいましたら,教えていただければ幸いです。
PS Microsoft.PowerShell.Core¥FileSystem::¥¥CHAOS-2¥riko¥stf¥kasai¥windows¥_redirected¥Document
> cd "¥¥CHAOS-2¥riko¥stf¥kasai¥windows¥_redirected¥Document¥" ; if ($?) { ptex2pdf -l -ot "-kanji=utf8 -synctex=1 -interaction=nonstopmode -file-line-error" hello.tex }
This is ptex2pdf[.lua] version 20200520.0.
Processing hello.tex
'¥¥CHAOS-2¥riko¥stf¥kasai¥windows¥_redirected¥Document'
上記の現在のディレクトリで CMD.EXE を開始しました。
UNC パスはサポートされません。Windows ディレクトリを既定で使用します。
This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) (preloaded format=platex)
restricted ¥write18 enabled.
entering extended mode
! I can't find file `hello.tex'.
H: にて,
コマンドラインで ptex2pdf -l hello.tex などとすると問題なく pdf ができますが,TeXworks ではコンソールに文字化けしたエラーが出てタイプセットできません。
Visual Studio Code の settings.json に ptex2pdf を設定して様子をみると以下のようなメッセージですので,ptex2pdf.lua が(?)ネットワークドライブの UNC パスに対応していないため hello.tex のあるディレクトリに cd できないからではないか?と憶測しています。
同じ状況で,日本語なしの latex ファイルをTeXworks の pdflatex でタイプセットするとうまくいくので,ptex2pdf 固有の問題かなと思います。
・この憶測は間違いで原因は別,とか
・この不具合は texlive 2021 では解消されている,とか
・このような回避策がある,など
情報をお持ちの方がいましたら,教えていただければ幸いです。
PS Microsoft.PowerShell.Core¥FileSystem::¥¥CHAOS-2¥riko¥stf¥kasai¥windows¥_redirected¥Document
> cd "¥¥CHAOS-2¥riko¥stf¥kasai¥windows¥_redirected¥Document¥" ; if ($?) { ptex2pdf -l -ot "-kanji=utf8 -synctex=1 -interaction=nonstopmode -file-line-error" hello.tex }
This is ptex2pdf[.lua] version 20200520.0.
Processing hello.tex
'¥¥CHAOS-2¥riko¥stf¥kasai¥windows¥_redirected¥Document'
上記の現在のディレクトリで CMD.EXE を開始しました。
UNC パスはサポートされません。Windows ディレクトリを既定で使用します。
This is e-pTeX, Version 3.14159265-p3.8.3-191112-2.6 (utf8.sjis) (TeX Live 2020/W32TeX) (preloaded format=platex)
restricted ¥write18 enabled.
entering extended mode
! I can't find file `hello.tex'.
このトピックを読む
(現在の返信数: 8)
ghostscript SECURITY ADVISORY SEPTEMBER 9, 2021
- nekurai の投稿
Ghostscript: CVE-2021-3781
Ghostscriptの任意のコマンド実行が可能な脆弱性(CVE-2021-3781)に関する注意喚起 (jpcert.or.jp)
現状の最新版 (9.54.0) でも影響あり。悪意のある画像ファイルを読み込むことで任意のコマンドを実行する可能性あり。なのでおそらくは正体不明な画像ファイルを処理しなければ大丈夫っぽい???
とりあえず↑を鵜呑みにすれば Windows についてはセーフ。*nix 系の OS では引っかかる可能性あり。自分でパッチを当てるか、9/末までにリリース予定の 9.55.0 を使うか、怪しい画像ファイルを処理しないか…でいいんですかね?
このトピックを読む
(現在の返信数: 0)
LaTeXeが突然動かなくなる。
- 坂本 の投稿
私が使っている ¥LaTeXe が突然動かなくなりました。そのとき出て来たメッセージは以下の通りです。これから原因を見ることは出来るでしょうか。こういうのが読めないのにLaTeXを使っています。私の手にはおえませんので、よろしくお願いします。
This is ptex2pdf[.lua] version 0.9.
Processing skmt_macros縺ョ蜀⒦ョケ(A4).tex
This is e-pTeX, Version 3.14159265-p3.7-160201-2.6 (sjis.euc) (TeX Live 2016) (preloaded format=platex)
restricted ¥write18 enabled.
entering extended mode
(./skmt_macrosã^^81ã^^86^^85ãM¹(A4).tex
pLaTeX2e <2016/11/29> (based on LaTeX2e <2016/03/31> patch level 3)
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/platex/base/jarticle
.cls
Document Class: jarticle 2016/11/22 v1.7b Standard pLaTeX class
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/platex/base/jsize11.
clo)) (./skmt_macros.sty
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/platex/base/ascmac.s
ty
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/platex/base/tascmac.
sty))
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsmath/amsmat
h.sty
For additional information on amsmath, use the `?' option.
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsmath/amstex
t.sty
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen
.sty))
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy
.sty)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn
.sty))
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/tools/array.st
y)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsfonts/amssy
mb.sty
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfo
nts.sty))
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/curves/curves.
sty)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/eepic/eepic.st
y
Extension to Epic and LaTeX. Version 1.1e - Released Dec 21, 1999
)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/eepic/epic.sty
Enhancements to Picture Environment. Version 1.2 - Released June 1, 1986
)
(./skmt_macrosã^^81ã^^86^^85ãM¹(A4).toc) [1]
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/base/omscmr.fd
)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsfonts/umsa.
fd)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/amsfonts/umsb.
fd)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/base/ulasy.fd)
Underfull \hbox (badness 10000) in paragraph at lines 79--79
[]\OMS/cmsy/m/n/10.95 f\OT1/cmr/m/n/10.95 Y[]leavevmode\OT1/cmtt/m/n/10.95 \OT
1/cmr/m/n/10.95 Y[]setbox1=Y[]hbox\OMS/cmsy/m/n/10.95 f\OT1/cmr/m/n/10.95 #1\OM
S/cmsy/m/n/10.95 g\OT1/cmr/m/n/10.95 Y[]setbox3=Y[]hbox\OMS/cmsy/m/n/10.95 f\OT
1/cmr/m/n/10.95 Y[]tiny\OT1/cmtt/m/n/10.95 \OT1/cmr/m/n/10.95 #2\OMS/cmsy/m/n/
10.95 g\OT1/cmr/m/n/10.95 %
Underfull \hbox (badness 10000) in paragraph at lines 79--79
[]\OT1/cmr/m/n/10.95 Y[]hbox\OMS/cmsy/m/n/10.95 f\OT1/cmr/m/n/10.95 Y[]kanjiski
p=0pt\OT1/cmtt/m/n/10.95 \OT1/cmr/m/n/10.95 plus\OT1/cmtt/m/n/10.95 \OT1/cmr/
m/n/10.95 2fil\OT1/cmtt/m/n/10.95 \OT1/cmr/m/n/10.95 Y[]xkanjiskip=0pt\OT1/cmt
t/m/n/10.95 \OT1/cmr/m/n/10.95 plus\OT1/cmtt/m/n/10.95 \OT1/cmr/m/n/10.95 2fi
l
[2]
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <15> not available
(Font) size <14.4> substituted on input line 117.
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <48> not available
(Font) size <24.88> substituted on input line 117.
[3] [4]
Overfull \hbox (0.64369pt too wide) in paragraph at lines 259--285
[]\JY1/hmc/m/n/10.95 @ [] []
[5] [6] [7] [8] [9] [10] [11] [12]
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <16> not available
(Font) size <17.28> substituted on input line 774.
LaTeX Font Warning: Font shape `OT1/cmr/bx/n' in size <16> not available
(Font) size <17.28> substituted on input line 774.
LaTeX Font Warning: Font shape `OML/cmm/b/it' in size <16> not available
(Font) size <17.28> substituted on input line 774.
LaTeX Font Warning: Font shape `OMS/cmsy/b/n' in size <16> not available
(Font) size <17.28> substituted on input line 774.
LaTeX Font Warning: Font shape `U/lasy/b/n' in size <16> not available
(Font) size <17.28> substituted on input line 774.
[13] [14] [15] [16] [17]
Underfull \hbox (badness 10000) in paragraph at lines 1100--1100
[]\OT1/cmr/m/n/10.95 Y[]Fbz\OMS/cmsy/m/n/10.95 f\OT1/cmr/m/n/10.95 .2pt\OMS/cms
y/m/n/10.95 gf\OT1/cmr/m/n/10.95 $
Underfull \hbox (badness 10000) in paragraph at lines 1141--1141
[]\OT1/cmr/m/n/10.95 Y[]Fbz\OMS/cmsy/m/n/10.95 f\OT1/cmr/m/n/10.95 .2pt\OMS/cms
y/m/n/10.95 gf\OT1/cmr/m/n/10.95 Y[]\OT1/cmr/bx/n/10.95 BPL\OMS/cmsy/b/n/10.95
f\OT1/cmr/bx/n/10.95 0.8\OMS/cmsy/b/n/10.95 g\OT1/cmr/m/n/10.95 (40, 20)( -10,
-
[18] [19] [20] [21] [22]
Underfull \hbox (badness 10000) in paragraph at lines 1499--1499
[]\JY1/hmc/m/n/10.95 @@@@@| \OT1/cmr/m/n/10.95 Y[]put(1,1.5)\OMS/cmsy/m/n
/10.95 f\OT1/cmr/m/n/10.95 Y[]line(1,0)\OMS/cmsy/m/n/10.95 f\OT1/cmr/m/n/10.95
#3\OMS/cmsy/m/n/10.95 ggg\OT1/cmr/m/n/10.95 Y[]put(#2,1.5)\OMS/cmsy/m/n/10.95 f
\OT1/cmr/m/n/10.95 Y[]veC\OMS/cmsy/m/n/10.95 f\OT1/cmr/m/n/10.95 1,0\OMS/cmsy/m
/n/10.95 gg
./skmt_macrosãããM¹(A4).tex:1499: Missing number, treated as zero.
<to be read again>
\protect
l.1499 }
\nx{1.5} \quad \hrf \nx{.}
? (/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/graphics/graph
icx.sty
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/graphics/keyva
l.sty)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/graphics/graph
ics.sty
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/graphics/trig.
sty)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/graphics-cfg/g
raphics.cfg)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/graphics-def/d
vips.def)))
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/latex/base/latexsym.
sty)
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/platex/japanese-otf-
uptex/otf.sty
(/Applications/TeXLive/Library/texlive/2016/texmf-dist/tex/platex/japanese-otf/
ajmacros.sty))) (./skmt_macrosã^^81ã^^86^^85ãM¹(A4).aux)
Runaway argument?
{\^^M
./skmt_macrosãããM¹(A4).tex:14: File ended while scanning use of \@writefile
.
<inserted text>
\par
l.14 \begin{document}
\noindent
?
このトピックを読む
(現在の返信数: 3)
引数の最後が約物、その後に約物が続くときの、スペースの入り方
- O Kay の投稿
listings環境で[Xlanguage=R]を指定するとエラーになってしまう
- 小林 コウキ の投稿
listings環境を使用して,[language=R]とR言語の指定をしたいのですが,
! Package Listings Error: Couldn't load requested language.
! Package Listings Error: language r undefined.
とエラーが出てしまいます.
lstlang3.sty内ではRの指定は記述されています.
また,スタイルファイルは,コンパイルをかけるTeXファイルと同じ階層に
以下のファイルを置いてあります.
lstmisc.sty
listings.sty
lstdoc.sty
lstlang1.sty
lstlang2.sty
lstlang3.sty
ソースは以下のようになります.
\lstset{
language=R,
basicstyle={\ttfamily},
breaklines=true,
columns=[l]{fullflexible},
lineskip=-0.5zw,
}
\makeatother
\begin{lstlisting}[language=R]
boa.acf <- function(link, lags)
# Brian Smith has produced the BOA (Bayesian Output Analysis) suite of
# S-plus/R functions for analysis of MCMC output, which reads in output
# from Classic BUGS or WinBUGS. Version 0.5.0 is now available.
{
pnames <- boa.pnames(link)
result <- matrix(NA, nrow = ncol(link), ncol = length(lags),
dimnames = list(pnames, paste("Lag", lags)))
lags <- lags[lags <= (nrow(link) - 1)]
n.lags <- length(lags)
if(n.lags > 0) {
idx <- 1:n.lags
lag.max <- max(lags)
for(i in pnames) {
result[i, idx] <- acf(link[, i], lag.max = lag.max,
plot = FALSE)$acf[lags + 1]
}
}
return(result)
}
\end{lstlisting}
いつも,質問ばかりで恐れ入りますが,教えていただけないでしょうか.
よろしくお願いいたします.
このトピックを読む
(現在の返信数: 10)
ご報告「TeXworksの再インストール」
- 若松 久仁光 の投稿
Mac OS10.14.6 MojaveでのTeXworksのコンパイルで
多少問題が出ている方に「朗報」です。
『TeXworks 0.7.0 (r.717d3f7)を使いましょう!』
Release 717d3f7 · stloeffler/texworks-testing
[[https://github.com/stloeffler/texworks-testing/releases/tag/717d3f7]]
Attempt at building TeXworks for macOS 10.14+
TeXworks-macos-0.7.0-202104292133-git_717d3f7.dmg
上記のサイトからTeXworks 0.7.0 (r.717d3f7)をDLして
現行のTeXworks(ver.0.6.5 r.649699a)を置き換えると
問題なく全てのエンジンが利用できます。
今まで、Mac OS10.14.6 Mojaveで、小生が使用していた
TeXworks(ver.0.6.5 r.649699a)ではpLaTeX(ptex2pdf)
だけがTeXLive2021環境下でも不本意な結果を出していました。
TeXworks 0.7.0 (r.717d3f7)をインストールしてからは、
pLaTeX(ptex2pdf)も正常にコンパイルできました。
0.6.6 doesn't work on MacOS 10.14.5. · Issue #934 ·
TeXworks/texworks
[[https://github.com/TeXworks/texworks/issues/934]]
此の記事でもTeXworks 0.6.6はMojaveでは使えない。と有り
これ迄は、已む無くTeXworks 0.6.5を使い続けていたのですが
(pdflatex , lualatex etc大体のエンジンはコンパイルするのに)
ptex2pdfだけが「lua」が見つからないのでコンパイルできません!
と言った旨のコメントが出されていました。
[ログの表示:env: texlua: No such file or directory]
【ご注意】
但しTeXworks-macos-0.6.5-202103111015-git_8cec2ae.dmg
こちらはアイコンに「X」印が現れているのでMojaveでは不可。
P.S
以下は、エラーのログです。 若松久仁光拝
多少問題が出ている方に「朗報」です。
『TeXworks 0.7.0 (r.717d3f7)を使いましょう!』
Release 717d3f7 · stloeffler/texworks-testing
[[https://github.com/stloeffler/texworks-testing/releases/tag/717d3f7]]
Attempt at building TeXworks for macOS 10.14+
TeXworks-macos-0.7.0-202104292133-git_717d3f7.dmg
上記のサイトからTeXworks 0.7.0 (r.717d3f7)をDLして
現行のTeXworks(ver.0.6.5 r.649699a)を置き換えると
問題なく全てのエンジンが利用できます。
今まで、Mac OS10.14.6 Mojaveで、小生が使用していた
TeXworks(ver.0.6.5 r.649699a)ではpLaTeX(ptex2pdf)
だけがTeXLive2021環境下でも不本意な結果を出していました。
TeXworks 0.7.0 (r.717d3f7)をインストールしてからは、
pLaTeX(ptex2pdf)も正常にコンパイルできました。
0.6.6 doesn't work on MacOS 10.14.5. · Issue #934 ·
TeXworks/texworks
[[https://github.com/TeXworks/texworks/issues/934]]
此の記事でもTeXworks 0.6.6はMojaveでは使えない。と有り
これ迄は、已む無くTeXworks 0.6.5を使い続けていたのですが
(pdflatex , lualatex etc大体のエンジンはコンパイルするのに)
ptex2pdfだけが「lua」が見つからないのでコンパイルできません!
と言った旨のコメントが出されていました。
[ログの表示:env: texlua: No such file or directory]
【ご注意】
但しTeXworks-macos-0.6.5-202103111015-git_8cec2ae.dmg
こちらはアイコンに「X」印が現れているのでMojaveでは不可。
P.S
以下は、エラーのログです。 若松久仁光拝
このトピックを読む
(現在の返信数: 0)