#8489: New `sageexample` environment for sagetex
---------------------------------+------------------------------------------
Reporter: nthiery | Owner: nthiery
Type: enhancement | Status: needs_review
Priority: major | Milestone:
Component: documentation | Keywords: sagetex, doctest
Author: Nicolas M. ThiƩry | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------------+------------------------------------------
Comment(by mmeulien):
For reference: Copy-paste from a PDF document to a Sage session won't
necessarily work. That is, if a sageexample environment contains strings
defined using (simple) quotes, those quotes can be rendered in PDF by
differents characters: backquotes and quotes. The encoding used in TeX
sources files seems to have its role here.
{{{
\documentclass[12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{sagetex}
\usepackage[frenchb]{babel}
\begin{document}
\begin{sageexample}
sage: x, y, a, b, c, d = var('x y a b c d')
\end{sageexample}
\end{document}
}}}
Replying to [ticket:8489 nthiery]:
> The (ultimate) goal is to allow for straightforward copy paste of pieces
of sage doctests into one's latex document. See the attached pdf (the
sources of which are included in the patch) for details.^^
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8489#comment:12>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.