diff --git a/build/pkgs/configure/checksums.ini b/build/pkgs/configure/checksums.ini index 5a209c1c1bc..ba60f5b4f04 100644 --- a/build/pkgs/configure/checksums.ini +++ b/build/pkgs/configure/checksums.ini @@ -1,4 +1,4 @@ tarball=configure-VERSION.tar.gz -sha1=2d6779beb2e69f0f7bddc2edc44ad275442ffd29 -md5=789344e03a6b57ba1538c0c760449720 -cksum=3806733369 +sha1=e0222376823475faac337ea488d4a30304b4ea9a +md5=c51194c0b4c266ab5affd32a5c22d77f +cksum=2696744150 diff --git a/build/pkgs/configure/package-version.txt b/build/pkgs/configure/package-version.txt index 6035b129425..66c9f084e23 100644 --- a/build/pkgs/configure/package-version.txt +++ b/build/pkgs/configure/package-version.txt @@ -1 +1 @@ -0a7b2513287af1124a358c2494b8bef4668a1882 +f740aeac06a83268aa0df435948d04229b7a574b diff --git a/src/sage/groups/libgap_wrapper.pyx b/src/sage/groups/libgap_wrapper.pyx index 0cf0e8bfb31..ddba766e94d 100644 --- a/src/sage/groups/libgap_wrapper.pyx +++ b/src/sage/groups/libgap_wrapper.pyx @@ -602,14 +602,11 @@ cdef class ElementLibGAP(MultiplicativeGroupElement): sage: from sage.groups.libgap_group import GroupLibGAP sage: G = GroupLibGAP(libgap.FreeGroup('a', 'b')) sage: g = G.gen(0) * G.gen(1) - sage: g._latex_() - "ab%\n" - """ - try: - return self.gap().LaTeX() - except ValueError: - from sage.misc.latex import latex - return latex(self._repr_()) + sage: latex(g) + \text{\texttt{a*b}} + """ + from sage.misc.latex import latex + return latex(self._repr_()) cpdef _mul_(left, right): """ diff --git a/src/sage/interfaces/gap.py b/src/sage/interfaces/gap.py index ee5861ac785..2e49e4c106f 100644 --- a/src/sage/interfaces/gap.py +++ b/src/sage/interfaces/gap.py @@ -1562,16 +1562,10 @@ def _latex_(self): sage: s = gap("[[1,2], [3/4, 5/6]]") sage: latex(s) - \left(\begin{array}{rr} 1&2\\ 3/4&\frac{5}{6}\\ \end{array}\right) + \left[\left[1, 2\right], \left[\frac{3}{4}, \frac{5}{6}\right]\right] """ - P = self._check_valid() - try: - s = P.eval('LaTeXObj(%s)' % self.name()) - s = s.replace('\\\\', '\\').replace('"', '') - s = s.replace('%\\n', ' ') - return s - except RuntimeError: - return str(self) + from sage.misc.latex import latex + return latex(self._sage_()) @cached_method def _tab_completion(self):