Skip to content

Commit d57a388

Browse files
committedNov 14, 2019
doc for multiline input in sagecommandline
resolves a part of #38
1 parent 6dbe41a commit d57a388

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
 

‎sagetex.dtx

+11-5
Original file line numberDiff line numberDiff line change
@@ -818,20 +818,26 @@ suggestions.
818818
% provides Python syntax highlighting and line numbers. For example,
819819
% \begin{quote}
820820
% |\begin{sagecommandline}|\\
821-
% | sage: 1+1|\\
822-
% | 2|\\
821+
% | sage: t = 1+1|\\
822+
% | sage: for i in range(101): # multiline input example|\\
823+
% | ....: t+=1|\\
824+
% | sage: t|\\
825+
% | 103|\\
823826
% | sage: factor(x^2 + 2*x + 1)|\\
824827
% |\end{sagecommandline}|
825828
% \end{quote}
826829
% becomes
827830
\begin{sagecommandline}
828-
sage: 1+1
829-
2
831+
sage: t = 1+1
832+
sage: for i in range(101): # multiline input example
833+
....: t+=1
834+
sage: t
835+
103
830836
sage: factor(x^2 + 2*x + 1)
831837
\end{sagecommandline}
832838
% You have a choice of either explicitly providing the Sage output or
833839
% leaving it up to the computer to fill in the blanks. Above, the output
834-
% for $1+1$ was provided, but the output for the |factor()| command
840+
% for $t$ was provided, but the output for the |factor()| command
835841
% wasn't. Moreover, any Sage comment that starts with a ``at'' sign is
836842
% escaped to \LTX. In particular, you can use |\label| to mark line
837843
% numbers in order to |\ref|erence and |\pageref|erence them as usual.

0 commit comments

Comments
 (0)