ご質問はこちらへ
TeXworksの補完が起動しない
restricted mode の件(お詫びと補足)
# なんか、お詫びや訂正をしてばかりのような気がしますけれど…。
#
# 元々のトピックの本題からは外れていますので、そちらには追記せずに、
# こちらに新たなトピックとさせていただきました。すいません。
昨日、
Re: タイプセットが出来なくなりました
2021年 05月 15日(土曜日) 11:02 - ut の投稿
https://okumuralab.org/tex/mod/forum/discuss.php?d=3118&parent=18630
という投稿で:
> で、現在では多くの場合 “restricted \write18 enabled.” となっているのは、texmf.cnf
> で shell_escape_commands が設定されているからですよね。
と書いてしまいましたが、ちょっと端折り過ぎというか、これでは、因果関係が
逆でした(自分では分かっていたつもりなのですが、説明がよくありませんでした)。
申し訳ありません。
restricted mode がデフォルトで、その除外リストが shell_escape_commands
ですよね…。
ちゃんと説明されている文書を探してみました:
----------------------------------------------------------------------
web2c.pdf
(Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2007, 2008, 2009, 2010-2021 Karl Berry & Olaf Weber.)
5 TeX: Typesetting
5.5 Shell escapes
TeX can execute shell escapes, that is, arbitrary shell commands. Although
tremendously useful, this also has obvious security implications. Therefore,
as of TeX Live 2009, a restricted mode for shell escapes is the default mode
of operation, which allows executing only certain commands, as specified in
the texmf.cnf configuration file.
----------------------------------------------------------------------
texlive-en.pdf
(Karl Berry, editor, July 2010)
10 Release history
10.2 Present
A related change is that execution of a very few external commands from TeX,
via the \write18 feature, is now enabled by default. These are commands are
repstopdf, makeindex, kpsewhich, bibtex, and bibtex8; the list is defined in
texmf.cnf. Environments which must disallow all such external commands can
deselect this option in the installer (see section 3.2.4), or override the
value after installation by running tlmgr conf texmf shell_escape 0.
----------------------------------------------------------------------
tlmgr(あるいはTL同梱のwget)のエラー?
いたのですが,今日tlmgrをかけたら発現しました(時刻は1013JST,1031JST,1051JSTの3回).
#前回かけた時(5月9日)は異常なく更新できたのですが
環境は次のとおりです:
Mac mini (Late 2014)
macOS 10.15.7 (Catalina)
install-tlからuniversal-darwinをフルインストール(4月29日)
(新規にOSをクリーンインストールしたところにインストールしたので,以前のTeXシステムはなし)
リポジトリは北陸先端大(main),山形大,KDDIを明示的に設定しています.
以下,ターミナルの記録です:
====
xxxx@xxxxx ~ % sudo tlmgr update --self --all
Password:
/usr/local/texlive/2021/tlpkg/installer/wget/wget.universal-darwin: unrecognized option '--no-check-certificate'
Usage: wget.universal-darwin [OPTION]... [URL]...
Try `wget.universal-darwin --help' for more options.
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.
You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).
tlmgr: package repositories
main = http://ftp.jaist.ac.jp/pub/CTAN/systems/texlive/tlnet (not verified: unknown)
kddi = http://ftp.kddilabs.jp/pub/ctan/systems/texlive/tlnet (not verified: gpg unavailable)
yamagata = http://ftp.yz.yamagata-u.ac.jp/pub/CTAN/systems/texlive/tlnet/ (not verified: gpg unavailable)
For more about verification, see https://texlive.info/verification.html.
tlmgr: saving backups to /usr/local/texlive/2021/tlpkg/backups
tlmgr: no self-updates for tlmgr available
tlmgr: no updates available
xxxx@xxxxx ~ %
====
「unrecognized option '--no-check-certificate'」とありましたので,
/usr/local/texlive/2021/tlpkg/installer/wget/wget.universal-darwin --help
でヘルプを見ると,そのようなオプションは記載がありません.
tlmgrで更新できない時は時間をおいてリトライするというのは常道だと思いますが,もしかすると
tlmgrがwgetを呼び出す際のオプション指定にミスがあるかもしれず,これが影響しているのかも
しれないと思い報告させていただきました.
#データベースのチェックサムをダウンロードできていない(Unable to download the checksum of the remote TeX Live database)
#方が本質かもしれないのですが
Windows10のAtom上でコードを実行できない
TeXstudioのコマンドが勝手に初期に戻る
TeXWikiを参考にW32TeXとTeXstudio3.1.1をつい最近インストールしました。
TeXstudioで正常にビルドと表示ができるようになったため、キーボードショートカットをカスタマイズしようと思い、
https://hamada.hatenablog.jp/entry/2017/06/13/160419
の方法を行いました。
しかし、しばらくすると設定のメニュータブ(コマンドを登録するところ)が完全に初期状態に戻ってしまいました。
その後リセットされる条件を調べるために何度か試したところ、コマンドの登録(変更)→TeXstudio再起動→設定を立ち上げてOKをクリックして設定画面を閉じる(キャンセルで閉じるとこの現象は起こりませんでした)
これを行うと設定のメニュータブが初期状態に戻ってしまうようでした。
設定内の他の項目はリセットされません。
どうすれば解決できるでしょうか?
お知恵をお貸しください。お願い致します。
Japanese Latex templete
TeX Live 2021 Windows 版同梱の pdf2dsc が動かない
tlmgr updateについて
% sudo tlmgr update --self --all
query_ctan_mirror: Programs not set up, trying wget
cannot contact mirror.ctan.org, returning a backbone server!
tlmgr: package repository http://www.ctan.org/tex-archive/systems/texlive/tlnet (not verified: gpg unavailable)
tlmgr: saving backups to /usr/local/texlive/2020/tlpkg/backups
TLPDB::_install_package: unsupported container format xz
tlmgr: Installation of new version of texlive.infra failed, trying to unwind.
[1/2, ??:??/??:??] update: texlive.infra [424k] (54630 -> 57705) ... tlmgr: Restoring old package state succeeded.
done
TLPDB::_install_package: unsupported container format xz
tlmgr: Installation of new version of texlive.infra.x86_64-darwin failed, trying to unwind.
[2/2, 00:00/00:00] update: texlive.infra.x86_64-darwin [629k] (53254 -> 57584) ... tlmgr: Restoring old package state succeeded.
done
tlmgr: action update returned an error; continuing.
tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log
tlmgr: An error has occurred. See above messages. Exiting.
となりました。なにがだめなのでしょうか?
よろしくお願いします。