Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
18c0663
Use XeLaTeX by default
kwankyu Dec 11, 2023
1ea88d8
Set latex engine to xelatex for building docs
kwankyu Dec 11, 2023
68adb85
Use uplatex for Japanese
kwankyu Dec 12, 2023
fb8a1ad
Use uplatex for Japanese tutorial too
kwankyu Dec 12, 2023
708c100
Remove unused DeclareUnicodeCharacter commands
kwankyu Dec 12, 2023
77e5882
Remove deprecated code
kwankyu Dec 12, 2023
8a966dd
Add support for lualatex and make xelatex as the default engine for l…
kwankyu Dec 12, 2023
cbe2330
Add free_fonts spkg
kwankyu Dec 12, 2023
8de57e0
Add more description to the spkg
kwankyu Dec 12, 2023
d41807e
Fix a typo
kwankyu Dec 12, 2023
8046486
Add version to GPL
kwankyu Dec 12, 2023
b397f8a
Add free_fonts as dependency to sagemath_doc_pdf
kwankyu Dec 12, 2023
1929e0e
Add proper spkg-configure.m4
kwankyu Dec 12, 2023
45f643f
Install free fonts in build pdf workflow
kwankyu Dec 12, 2023
2d45451
Use spkg name
kwankyu Dec 12, 2023
7807f42
Change debian distro package name
kwankyu Dec 12, 2023
4144143
Install xindy general-purpose index processor for xelatex
kwankyu Dec 13, 2023
20bdc44
Merge a fix for create-changes-html
kwankyu Dec 13, 2023
36922f9
Remove DeclareUnicodeCharacter from conf.py
kwankyu Dec 13, 2023
40f7a02
Some edits
kwankyu Dec 13, 2023
d2378f1
More edits
kwankyu Dec 13, 2023
2681240
More edits
kwankyu Dec 13, 2023
f1b1d43
Still more edits
kwankyu Dec 13, 2023
88efa25
Add xindy dummy package
kwankyu Dec 13, 2023
307cf49
Fix an error in free_fonts spkg-configure.m4
kwankyu Dec 13, 2023
4529b55
Update .github/workflows/doc-build-pdf.yml
kwankyu Dec 14, 2023
498c512
Merge branch 'develop' into p/use-xelatex-by-default
kwankyu Dec 14, 2023
035f134
Switch again to lualatex
kwankyu Dec 14, 2023
9c11301
Add texlive-luatex
kwankyu Dec 14, 2023
e4c9f74
Add texlive_luatex dummy package
kwankyu Dec 15, 2023
369d889
Fix an error in xindy package
kwankyu Dec 15, 2023
a817fe9
Fix a typo
kwankyu Dec 15, 2023
a7944ef
Add optional packages for live doc
kwankyu Dec 15, 2023
88ddd0a
Fixes for reviewer comments
kwankyu Dec 16, 2023
f1c31fc
Implement fallback mechanism of default latex engine
kwankyu Dec 16, 2023
fa94630
Default engine is computed lazily
kwankyu Dec 17, 2023
fc86ec5
png() uses the default engine
kwankyu Dec 17, 2023
658abc4
Current engine is dependent on the user's system
kwankyu Dec 17, 2023
7ab3557
Remove a redundant comment
kwankyu Dec 18, 2023
08728e1
Merge branch 'develop'
kwankyu Dec 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/doc-build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
export PATH="build/bin:$PATH"
eval $(sage-print-system-package-command auto update)
eval $(sage-print-system-package-command auto --yes --no-install-recommends install zip)
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git texlive)
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git texlive texlive_luatex free_fonts xindy)

- name: Add prebuilt tree as a worktree
id: worktree
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
export PATH="build/bin:$PATH"
eval $(sage-print-system-package-command auto update)
eval $(sage-print-system-package-command auto --yes --no-install-recommends install zip)
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git texlive)
eval $(sage-print-system-package-command auto --spkg --yes --no-install-recommends install git texlive texlive_luatex free_fonts xindy)
export SAGE_USE_CDNS=yes
export SAGE_LIVE_DOC=yes
export SAGE_JUPYTER_SERVER=binder:sagemath/sage-binder-env/dev
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/_recommended/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pandoc ffmpeg imagemagick texlive git libjpeg
pandoc ffmpeg imagemagick git libjpeg texlive texlive_luatex free_fonts xindy
23 changes: 23 additions & 0 deletions build/pkgs/free_fonts/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
free_fonts: a free family of scalable outline fonts
===================================================

Description
-----------

This dummy package represents the GNU free fonts: a free family of scalable
outline fonts, suitable for general use on computers and for desktop
publishing. It is Unicode-encoded for compatibility with all modern operating
systems.

We do not have an SPKG for it. The purpose of this dummy package is to
associate system package lists with it.

License
-------

GNU General Public License GPLv3+

Upstream Contact
----------------

https://www.gnu.org/software/freefont/
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/alpine.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ttf-freefont
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnu-free-fonts
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/conda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open-fonts
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fonts-freefont-otf
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnu-free-fonts
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/freebsd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x11-fonts/freefont-ttf
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/gentoo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
media-fonts/freefont
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
freefont-ttf
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnu-free-fonts
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/repology.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnu-freefont
1 change: 1 addition & 0 deletions build/pkgs/free_fonts/distros/void.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
freefont-ttf
16 changes: 16 additions & 0 deletions build/pkgs/free_fonts/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
SAGE_SPKG_CONFIGURE([free_fonts], [
sage_spkg_install_free_fonts=yes
m4_foreach([font],
[FreeSerif.ttf,FreeSerif.otf],
[
AC_MSG_CHECKING([for ]font)
AS_IF([kpsewhich ]font[ >& AS_MESSAGE_LOG_FD 2>&1], [
AC_MSG_RESULT([yes])
sage_spkg_install_free_fonts=no
break
], [
AC_MSG_RESULT([no])
])
])
])

1 change: 1 addition & 0 deletions build/pkgs/free_fonts/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
2 changes: 1 addition & 1 deletion build/pkgs/sagemath_doc_pdf/dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sagemath_doc_html texlive
sagemath_doc_html texlive texlive_luatex free_fonts xindy
21 changes: 21 additions & 0 deletions build/pkgs/texlive_luatex/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
texlive_luatex: LuaTeX packages
===============================

Description
-----------

Packages for LuaTeX, a TeX engine using Lua as an embedded scripting and
extension language, with native support for Unicode, OpenType/TrueType fonts,
and both PDF and DVI output.

The purpose of this dummy package is to associate system package lists with it.

License
-------

GNU General Public License version 2.0 (GPLv2)

Upstream Contact
----------------

https://www.luatex.org/
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/alpine.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive-luatex
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/arch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive-collection-luatex
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/cygwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive-luatex
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/fedora.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive-luatex
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/gentoo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-texlive/texlive-luatex
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive-luatex
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive-luatex
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/distros/repology.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive-luatex
10 changes: 10 additions & 0 deletions build/pkgs/texlive_luatex/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SAGE_SPKG_CONFIGURE([texlive_luatex], [
sage_spkg_install_texlive_luatex=no
AC_MSG_CHECKING([for luaotfload-main.lua])
AS_IF([kpsewhich luaotfload-main.lua >& AS_MESSAGE_LOG_FD 2>&1], [
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
sage_spkg_install_texlive_luatex=yes
])
])
1 change: 1 addition & 0 deletions build/pkgs/texlive_luatex/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
20 changes: 20 additions & 0 deletions build/pkgs/xindy/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
xindy: a general-purpose index processor
========================================

Description
-----------

This dummy package represents xindy: xindy was developed after an impasse had been encountered in the attempt to complete internationalisation of makeindex. Xindy can be used to process indexes for documents marked up using (LA)TEX, Nroff family and SGML-based languages. Xindy is highly configurable, both in markup terms and in terms of the collating order of the text being processed.

We do not have an SPKG for it. The purpose of this dummy package is to
associate system package lists with it.

License
-------

GNU General Public License version 2.0 (GPLv2)

Upstream Contact
----------------

http://www.xindy.org/
1 change: 1 addition & 0 deletions build/pkgs/xindy/distros/debian.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xindy
1 change: 1 addition & 0 deletions build/pkgs/xindy/distros/macports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xindy
1 change: 1 addition & 0 deletions build/pkgs/xindy/distros/opensuse.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xindy
1 change: 1 addition & 0 deletions build/pkgs/xindy/distros/repology.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xindy
5 changes: 5 additions & 0 deletions build/pkgs/xindy/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SAGE_SPKG_CONFIGURE([xindy], [
sage_spkg_install_xindy=no
AC_PATH_PROG([XINDY], [xindy])
AS_IF([test -z "$XINDY"], [sage_spkg_install_xindy=yes])
])
1 change: 1 addition & 0 deletions build/pkgs/xindy/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
optional
3 changes: 0 additions & 3 deletions src/doc/fr/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
'The Sage Group', 'manual'),
]

# Additional LaTeX stuff for the French version
#latex_elements['preamble'] += '\\DeclareUnicodeCharacter{00A0}{\\nobreakspace}\n'

# the definition of \\at in the standard preamble of the sphinx doc
# conflicts with that in babel/french[b]
latex_elements['preamble'] += '\\let\\at\\undefined'
4 changes: 4 additions & 0 deletions src/doc/ja/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
name = 'a_tour_of_sage'
language = "ja"

# The LaTeX engine to build the docs in Japanese.
# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-latex_engine
latex_engine = 'uplatex'

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = project + " v" + release
Expand Down
4 changes: 4 additions & 0 deletions src/doc/ja/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
name = 'tutorial-jp'
language = "ja"

# The LaTeX engine to build the docs in Japanese.
# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-latex_engine
latex_engine = 'uplatex'

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = project + " v" + release
Expand Down
3 changes: 0 additions & 3 deletions src/doc/ru/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,3 @@
('index', 'SageTutorial_ru.tex', 'Sage Tutorial in Russian',
'The Sage Development Team', 'manual'),
]

# Additional LaTeX stuff if necessary:
#latex_elements['preamble'] += '\\DeclareUnicodeCharacter{00A0}{\\nobreakspace}\n'
Loading