Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
34219: Document that SageTeX is now in SAGE_ROOT/venv/share
Browse files Browse the repository at this point in the history
  • Loading branch information
slel committed Jul 25, 2022
1 parent 7f71494 commit 4fad776
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/sagetex/SPKG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ needs. Full details are in the Sage installation guide at
http://doc.sagemath.org/html/en/installation/ and
http://doc.sagemath.org/html/en/tutorial/sagetex.html .

The directory ``$SAGE_ROOT/local/share/doc/sagetex`` contains
The directory ``$SAGE_ROOT/venv/share/doc/sagetex`` contains
documentation and an example file. See
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex`` for the source code
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex`` for the source code
and some possibly useful scripts. If you have problems or suggestions
see `the sage-support
group <http://groups.google.com/group/sage-support>`__.
Expand Down
4 changes: 2 additions & 2 deletions src/doc/de/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ Hier geben wir nur ein paar Kommentare ab.
einzige Datei in ein Verzeichnis kopieren, welches TeX durchsucht.

Die Dokumentation für SageTeX befindet sich in
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/``, wobei
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/``, wobei
"``$SAGE_ROOT``" auf das Verzeichnis zeigt, in welches Sie Sage
installiert haben, zum Beispiel ``/opt/sage-4.2.1``.
installiert haben, zum Beispiel ``/opt/sage-9.6``.

Wie man Sage benutzen kann
==========================
Expand Down
4 changes: 2 additions & 2 deletions src/doc/de/tutorial/sagetex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Tutorial und den Abschnitt "Make SageTeX known to TeX" des `Sage installation gu
Installationsanleitung führen) um weitere Informationen zu erhalten.

Hier stellen wir ein sehr kurzes Beispiel vor wie man SageTeX nutzt.
Die komplette Dokumentation finden Sie unter ``SAGE_ROOT/local/share/texmf/tex/latex/sagetex``,
Die komplette Dokumentation finden Sie unter ``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex``,
wobei ``SAGE_ROOT`` das Installationsverzeichnis von Sage ist. Dieses Verzeichnis
enthält die Dokumentation, eine Beispieldatei und einige nützliche Python Skripte.

Expand Down Expand Up @@ -103,4 +103,4 @@ an den Sage Befehlen in Ihrem Dokument vorgenommen haben.

Es gibt noch viel mehr über SageTeX zu sagen, aber da sowohl Sage alsauch
LaTeX komplexe und mächtige Werkzeuge sind, sollten Sie die Dokumentation
über SageTeX in ``SAGE_ROOT/local/share/texmf/tex/latex/sagetex`` lesen.
über SageTeX in ``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex`` lesen.
4 changes: 2 additions & 2 deletions src/doc/en/thematic_tutorials/numtheory_rsa.rst
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ given above, we would get an error message similar to the following::

mod(m^e, n)
Traceback (most recent call last)
/home/mvngu/<ipython console> in <module>()
/home/mvngu/usr/bin/sage-3.1.4/local/lib/python2.5/site-packages/sage/rings/integer.so
...<ipython console> in <module>()
.../sage/rings/integer.so
in sage.rings.integer.Integer.__pow__ (sage/rings/integer.c:9650)()
RuntimeError: exponent must be at most 2147483647

Expand Down
4 changes: 2 additions & 2 deletions src/doc/en/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ computer. Here we merely make a few comments.
will search.

The documentation for using SageTeX is located in
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/``, where
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/``, where
"``$SAGE_ROOT``" refers to the directory where you installed Sage --
for example, ``/opt/sage-4.2.1``.
for example, ``/opt/sage-9.6``.

Ways to Use Sage
================
Expand Down
16 changes: 8 additions & 8 deletions src/doc/en/tutorial/sagetex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ An example
----------

Here is a very brief example of using SageTeX. The full documentation
can be found in ``SAGE_ROOT/local/share/doc/sagetex``,
can be found in ``SAGE_ROOT/venv/share/doc/sagetex``,
where ``SAGE_ROOT`` is the directory where your Sage installation is
located. That directory contains the documentation and an example file.
See ``SAGE_ROOT/local/share/texmf/tex/latex/sagetex`` for
See ``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex`` for
some possibly useful Python scripts.

To see how SageTeX works, follow the directions for installing SageTeX (in
Expand Down Expand Up @@ -105,7 +105,7 @@ commands in your document.
There's a lot more to SageTeX, and since both Sage and LaTeX are
complex, powerful tools, it's a good idea to read the documentation for
SageTeX, which is in
``SAGE_ROOT/local/share/doc/sagetex``.
``SAGE_ROOT/venv/share/doc/sagetex``.

.. _sec-sagetex_install:

Expand All @@ -122,7 +122,7 @@ installation aware of it before it will work.

The key to this is that TeX needs to be able to find ``sagetex.sty``,
which can be found in
``SAGE_ROOT/local/share/texmf/tex/latex/sagetex/``, where
``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/``, where
``SAGE_ROOT`` is the directory where you built or installed Sage. If
TeX can find ``sagetex.sty``, then SageTeX will work. There are several
ways to accomplish this.
Expand All @@ -142,7 +142,7 @@ ways to accomplish this.

.. CODE-BLOCK:: shell-session
$ export TEXINPUTS="SAGE_ROOT/local/share/texmf//:"
$ export TEXINPUTS="SAGE_ROOT/venv/share/texmf//:"
where ``SAGE_ROOT`` is the location of your Sage installation. Note
that the double slash and colon at the end of that line are important.
Expand Down Expand Up @@ -173,12 +173,12 @@ ways to accomplish this.
which will print out a directory, such as ``/home/drake/texmf`` or
``/Users/drake/Library/texmf``. Copy the ``tex/`` directory from
``SAGE_ROOT/local/share/texmf/`` into your home ``texmf`` directory
``SAGE_ROOT/venv/share/texmf/`` into your home ``texmf`` directory
with a command like

.. CODE-BLOCK:: shell-session
$ cp -R SAGE_ROOT/local/share/texmf/tex TEXMFHOME
$ cp -R SAGE_ROOT/venv/share/texmf/tex TEXMFHOME
where ``SAGE_ROOT`` is, as usual, replaced with the location of your
Sage installation and ``TEXMFHOME`` is the result of the
Expand Down Expand Up @@ -229,7 +229,7 @@ SageTeX documentation

While not strictly part of installation, it bears mentioning here that
the documentation for SageTeX is maintained in
``SAGE_ROOT/local/share/doc/sagetex/sagetex.pdf``. There is also an
``SAGE_ROOT/venv/share/doc/sagetex/sagetex.pdf``. There is also an
example file in the same directory -- see ``example.tex`` and
``example.pdf``, the pre-built result of typesetting that file with
LaTeX and Sage. You can also get those files from the `SageTeX page <https://github.com/sagemath/sagetex>`_.
Expand Down
4 changes: 2 additions & 2 deletions src/doc/es/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ Sage en tu computador. Aquí hacemos simplemente dos comentarios:
en un directorio en el que TeX va a buscar.

La documentación para usar SageTeX se encuentra en
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/``, donde
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/``, donde
"``$SAGE_ROOT``" se refiere al directorio donde Sage está instalado --
por ejemplo, ``/opt/sage-4.2.1``.
por ejemplo, ``/opt/sage-9.6``.


Formas de usar Sage
Expand Down
4 changes: 2 additions & 2 deletions src/doc/fr/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ Nous nous limiterons ici à quelques remarques.
d'environnement.

La documentation de SageTeX se trouve dans le répertoire
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/``, où
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/``, où
"``$SAGE_ROOT``" est le répertoire où vous avez installé Sage, par
exemple ``/opt/sage-4.3.4``.
exemple ``/opt/sage-9.6``.

Les différentes manières d'utiliser Sage
========================================
Expand Down
4 changes: 2 additions & 2 deletions src/doc/fr/tutorial/sagetex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ locale) pour plus de détails.

Voici un bref exemple d'utilisation de SageTeX. La documentation
complète se trouve dans
``SAGE_ROOT/local/share/texmf/tex/latex/sagetex``, où ``SAGE_ROOT``
``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex``, où ``SAGE_ROOT``
désigne le répertoire racine de votre installation Sage. Elle est
accompagnée d'un fichier exemple et de scripts Python potentiellement
utiles.
Expand Down Expand Up @@ -114,4 +114,4 @@ compilation précédente.)
SageTeX offre bien d'autres possibilités. Puisque Sage
comme LaTeX sont des outils complexes et puissants, le mieux est sans
doute de consulter la documentation complète de SageTeX, qui se trouve
dans ``SAGE_ROOT/local/share/texmf/tex/latex/sagetex``.
dans ``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex``.
4 changes: 2 additions & 2 deletions src/doc/ja/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ Sageを自分のコンピュータへインストールする手順について


SageTeXの利用に関する解説は
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/`` にある.
``$SAGE_ROOT`` はSageがインストールされているディレクトリで,例えば ``/opt/sage-4.2.1`` などとなっているはずだ.
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/`` にある.
``$SAGE_ROOT`` はSageがインストールされているディレクトリで,例えば ``/opt/sage-9.6`` などとなっているはずだ.



Expand Down
16 changes: 8 additions & 8 deletions src/doc/ja/tutorial/sagetex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ SageTeXパッケージを使うと,Sageによる処理結果をLaTeX文書に
=======

ここでは,ごく簡単な例題を通してSageTeXの利用手順を紹介する.
完全な解説ドキュメントと例題ファイルは,ディレクトリ ``SAGE_ROOT/local/share/doc/sagetex`` に置いてある.
``SAGE_ROOT/local/share/texmf/tex/latex/sagetex`` にあるPythonスクリプトは何か役に立つ場面があるはずだ.
完全な解説ドキュメントと例題ファイルは,ディレクトリ ``SAGE_ROOT/venv/share/doc/sagetex`` に置いてある.
``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex`` にあるPythonスクリプトは何か役に立つ場面があるはずだ.
以上の ``SAGE_ROOT`` は,Sageをインストールしたディレクトリである.


Expand Down Expand Up @@ -98,7 +98,7 @@ SageTeXの動作を体験するために,まずSageTeXのインストール手


SageTeXは到底以上で語り尽せるものでなく,SageとLaTeXは共に複雑で強力なツールだ.
``SAGE_ROOT/local/share/doc/sagetex`` にあるSageTeXのドキュメントを読むことを強くお勧めする.
``SAGE_ROOT/venv/share/doc/sagetex`` にあるSageTeXのドキュメントを読むことを強くお勧めする.


.. _sec-sagetex_install:
Expand All @@ -118,7 +118,7 @@ SageTeXはデフォルトでSageにインストールされるが,LaTeX文書

鍵になるのは, TeXが ``sagetex.sty`` を発見できるかどうかである.
この ``sagetex.sty`` は, ``SAGE_ROOT`` をSageがビルトあるいはインストールされたディレクトリとすると,
``SAGE_ROOT/local/share/texmf/tex/latex/sagetex/`` に置かれているはずだ.
``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/`` に置かれているはずだ.
TeXが ``sagetex.sty`` を読めるようにしてやらなければ,SageTeXも動作できないのである.
これを実現するには何通りかのやり方がある.

Expand All @@ -137,7 +137,7 @@ TeXが ``sagetex.sty`` を読めるようにしてやらなければ,SageTeX

::

export TEXINPUTS="SAGE_ROOT/local/share/texmf//:"
export TEXINPUTS="SAGE_ROOT/venv/share/texmf//:"

と実行すればよい.ただし ``SAGE_ROOT`` はSageのインストール先ディレクトリである.
上の実行例では,行末にスラッシュ2個とコロンを付け忘れないでいただきたい.
Expand All @@ -163,11 +163,11 @@ TeXが ``sagetex.sty`` を読めるようにしてやらなければ,SageTeX

kpsewhich -var-value=TEXMFHOME

を実行する.すると ``/home/drake/texmf`` や ``/Users/drake/Library/texmf`` などと表示されるはずだから, ``SAGE_ROOT/local/share/texmf/`` 内の ``tex/`` ディレクトリをホームディレクトリの ``texmf`` にコピーするには
を実行する.すると ``/home/drake/texmf`` や ``/Users/drake/Library/texmf`` などと表示されるはずだから, ``SAGE_ROOT/venv/share/texmf/`` 内の ``tex/`` ディレクトリをホームディレクトリの ``texmf`` にコピーするには

::

cp -R SAGE_ROOT/local/share/texmf/tex TEXMFHOME
cp -R SAGE_ROOT/venv/share/texmf/tex TEXMFHOME

などとする.
もちろん, ``SAGE_ROOT`` を実際にSageをインストールしたディレクトリとするのはこれまでと同じことで, ``TEXMFHOME`` は上で見た ``kpsewhich`` コマンドの結果で置き換える.
Expand Down Expand Up @@ -210,7 +210,7 @@ SageTeXドキュメント
---------------------

厳密にはSageのインストール一式には含まれないものの,ここで
SageTeXのドキュメントが ``SAGE_ROOT/local/share/doc/sagetex/sagetex.pdf`` に配置されていることに触れておきたい.
SageTeXのドキュメントが ``SAGE_ROOT/venv/share/doc/sagetex/sagetex.pdf`` に配置されていることに触れておきたい.
同じディレクトリには例題ファイルと,これをLaTeXとSageTeXによってすでに組版処理した結果も用意されている(``example.tex`` と ``example.pdf`` を参照).
これらのファイルは `SageTeX ページ <https://github.com/sagemath/sagetex>`_ からダンロードすることもできる.

Expand Down
4 changes: 2 additions & 2 deletions src/doc/pt/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ computador. Aqui faremos apenas alguns comentários.
encontrá-lo.

A documentação para usar o SageTex está disponível em
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/``, onde
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/``, onde
``$SAGE_ROOT`` refere-se ao diretório onde você instalou o Sage
-- por exemplo, ``/opt/sage-4.2.1``.
-- por exemplo, ``/opt/sage-9.6``.

Formas de usar o Sage
=====================
Expand Down
4 changes: 2 additions & 2 deletions src/doc/pt/tutorial/sagetex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ instalação do Sage <http://doc.sagemath.org/html/en/installation/index.html>`_

Aqui vai um breve exemplo de como usar o SageTeX. A documentação
completa pode ser encontrada em
``SAGE_ROOT/local/share/texmf/tex/latex/sagetex``, onde
``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex``, onde
``SAGE_ROOT`` é o diretório onde se encontra a sua instalação. Esse
diretório contém a documentação, um arquivo de exemplo, e alguns
scripts em Python possivelmente úteis.
Expand Down Expand Up @@ -107,4 +107,4 @@ os comandos em Sage em seu documento.
Há muito mais sobre o SageTeX, e como tanto o Sage como o LaTeX são
ferramentas complexas e poderosas, é uma boa idéia ler a documentação
para o SageTeX que se encontra em
``SAGE_ROOT/local/share/texmf/tex/latex/sagetex``.
``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex``.
4 changes: 2 additions & 2 deletions src/doc/ru/tutorial/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ Sage в разделе документации: [SA]_ Здесь мы прив
всего лишь скопировать один файл в директорию поиска TeX.

Документация по использованию SageTeX находится в
``$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/``, где
``$SAGE_ROOT/venv/share/texmf/tex/latex/sagetex/``, где
"``$SAGE_ROOT``" соответствует директории, где установлен сам Sage,
например, ``/opt/sage-4.2.1``.
например, ``/opt/sage-9.6``.

Работа в Sage
================
Expand Down
4 changes: 2 additions & 2 deletions src/doc/ru/tutorial/sagetex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SageTeX known to TeX" `Руководства по установке Sage
по установке).

В этом уроке показан небольшой пример использования SageTeX. Полная документация
находится в ``SAGE_ROOT/local/share/texmf/tex/latex/sagetex``, где
находится в ``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex``, где
``SAGE_ROOT`` - это директория, в которой установлен Sage. Эта папка содержит
документацию, файл с примером и полезные скрипты Python.

Expand Down Expand Up @@ -89,4 +89,4 @@ SageTeX known to TeX" `Руководства по установке Sage

SageTeX предлагает много возможностей, и так как Sage и LaTeX являются
мощными инструментами, то стоит изучить
``SAGE_ROOT/local/share/texmf/tex/latex/sagetex``.
``SAGE_ROOT/venv/share/texmf/tex/latex/sagetex``.

0 comments on commit 4fad776

Please sign in to comment.