##// END OF EJS Templates
regen latex example
Matthias BUSSONNIER -
Show More
@@ -120,8 +120,13
120 % Prevent overflowing lines due to urls and other hard-to-break entities.
120 % Prevent overflowing lines due to urls and other hard-to-break entities.
121 \sloppy
121 \sloppy
122
122
123 \begin{document}
123
124 \section{A brief tour of the IPython notebook}
124
125
126 \begin{document}
127
128
129 \section{A brief tour of the IPython notebook}
125
130
126 This document will give you a brief tour of the capabilities of the
131 This document will give you a brief tour of the capabilities of the
127 IPython notebook.\\You can view its contents by scrolling around, or
132 IPython notebook.\\You can view its contents by scrolling around, or
@@ -151,7 +156,11 pwd
151 \end{codeinput}
156 \end{codeinput}
152 \begin{codeoutput}
157 \begin{codeoutput}
153
158
159
160 \begin{verbatim}
154 u'/Users/minrk/dev/ip/mine/docs/examples/notebooks'
161 u'/Users/minrk/dev/ip/mine/docs/examples/notebooks'
162 \end{verbatim}
163
155
164
156 \end{codeoutput}
165 \end{codeoutput}
157 \end{codecell}
166 \end{codecell}
@@ -224,7 +233,7 title('A simple chirp');
224 \end{codeinput}
233 \end{codeinput}
225 \begin{codeoutput}
234 \begin{codeoutput}
226 \begin{center}
235 \begin{center}
227 \includegraphics[width=0.7\textwidth]{_fig_07.png}
236 \includegraphics[width=0.7\textwidth, height=0.9\textheight, keepaspectratio]{_fig_07.png}
228 \par
237 \par
229 \end{center}
238 \end{center}
230 \end{codeoutput}
239 \end{codeoutput}
@@ -317,6 +326,7 for i in range(8):
317
326
318 \begin{verbatim}
327 \begin{verbatim}
319 0 1 2 3 4 5 6 7
328 0 1 2 3 4 5 6 7
329
320 \end{verbatim}
330 \end{verbatim}
321
331
322 \end{codeoutput}
332 \end{codeoutput}
@@ -369,7 +379,7 if (i=0; i<n; i++) {
369 Courtesy of MathJax, you can include mathematical expressions both
379 Courtesy of MathJax, you can include mathematical expressions both
370 inline: $e^{i\pi} + 1 = 0$ and displayed:
380 inline: $e^{i\pi} + 1 = 0$ and displayed:
371
381
372 \[e^x=\sum_{i=0}^\infty \frac{1}{i!}x^i\]
382 \[^x=\sum_{i=0}^\infty \frac{1}{i!}x^i\]
373
383
374 \subsection{Rich displays: include anyting a browser can show}
384 \subsection{Rich displays: include anyting a browser can show}
375
385
@@ -388,7 +398,10 Image(filename='../../source/_static/logo.png')
388 \end{codeinput}
398 \end{codeinput}
389 \begin{codeoutput}
399 \begin{codeoutput}
390
400
391 <IPython.core.display.Image at 0x10faeafd0>
401 \begin{center}
402 \includegraphics[width=0.7\textwidth, height=0.9\textheight, keepaspectratio]{_fig_22.png}
403 \par
404 \end{center}
392
405
393 \end{codeoutput}
406 \end{codeoutput}
394 \end{codecell}
407 \end{codecell}
@@ -402,7 +415,11 Image(url='http://python.org/images/python-logo.gif')
402 \end{codeinput}
415 \end{codeinput}
403 \begin{codeoutput}
416 \begin{codeoutput}
404
417
418
419 \begin{verbatim}
405 <IPython.core.display.Image at 0x1060e7410>
420 <IPython.core.display.Image at 0x1060e7410>
421 \end{verbatim}
422
406
423
407 \end{codeoutput}
424 \end{codeoutput}
408 \end{codecell}
425 \end{codecell}
@@ -418,7 +435,10 SVG(filename='python-logo.svg')
418 \end{codeinput}
435 \end{codeinput}
419 \begin{codeoutput}
436 \begin{codeoutput}
420
437
421 <IPython.core.display.SVG at 0x10fb998d0>
438 \begin{center}
439 \includegraphics[width=0.7\textwidth]{_fig_26.pdf}
440 \par
441 \end{center}
422
442
423 \end{codeoutput}
443 \end{codeoutput}
424 \end{codecell}
444 \end{codecell}
@@ -458,7 +478,7 Embed
458 \end{codeinput}
478 \end{codeinput}
459 \begin{codeoutput}
479 \begin{codeoutput}
460
480
461 <IPython.core.display.Image at 0x10fb99b50>
481
462
482
463 \end{codeoutput}
483 \end{codeoutput}
464 \end{codecell}
484 \end{codecell}
@@ -477,7 +497,11 SoftLinked
477 \end{codeinput}
497 \end{codeinput}
478 \begin{codeoutput}
498 \begin{codeoutput}
479
499
500
501 \begin{verbatim}
480 <IPython.core.display.Image at 0x10fb99b10>
502 <IPython.core.display.Image at 0x10fb99b10>
503 \end{verbatim}
504
481
505
482 \end{codeoutput}
506 \end{codeoutput}
483 \end{codecell}
507 \end{codecell}
@@ -504,7 +528,11 YouTubeVideo('1j_HxD4iLn8')
504 \end{codeinput}
528 \end{codeinput}
505 \begin{codeoutput}
529 \begin{codeoutput}
506
530
531
532 \begin{verbatim}
507 <IPython.lib.display.YouTubeVideo at 0x10fba2190>
533 <IPython.lib.display.YouTubeVideo at 0x10fba2190>
534 \end{verbatim}
535
508
536
509 \end{codeoutput}
537 \end{codeoutput}
510 \end{codecell}
538 \end{codecell}
@@ -531,7 +559,11 HTML(data=video_tag)
531 \end{codeinput}
559 \end{codeinput}
532 \begin{codeoutput}
560 \begin{codeoutput}
533
561
562
563 \begin{verbatim}
534 <IPython.core.display.HTML at 0x10fba28d0>
564 <IPython.core.display.HTML at 0x10fba28d0>
565 \end{verbatim}
566
535
567
536 \end{codeoutput}
568 \end{codeoutput}
537 \end{codecell}
569 \end{codecell}
@@ -619,7 +651,11 FileLink('00_notebook_tour.ipynb')
619 \end{codeinput}
651 \end{codeinput}
620 \begin{codeoutput}
652 \begin{codeoutput}
621
653
654
655 \begin{verbatim}
622 <IPython.lib.display.FileLink at 0x10f7ea3d0>
656 <IPython.lib.display.FileLink at 0x10f7ea3d0>
657 \end{verbatim}
658
623
659
624 \end{codeoutput}
660 \end{codeoutput}
625 \end{codecell}
661 \end{codecell}
@@ -639,7 +675,11 FileLinks('.')
639 \end{codeinput}
675 \end{codeinput}
640 \begin{codeoutput}
676 \begin{codeoutput}
641
677
678
679 \begin{verbatim}
642 <IPython.lib.display.FileLinks at 0x10f7eaad0>
680 <IPython.lib.display.FileLinks at 0x10f7eaad0>
681 \end{verbatim}
682
643
683
644 \end{codeoutput}
684 \end{codeoutput}
645 \end{codecell}
685 \end{codecell}
@@ -656,7 +696,11 HTML('<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 hei
656 \end{codeinput}
696 \end{codeinput}
657 \begin{codeoutput}
697 \begin{codeoutput}
658
698
699
700 \begin{verbatim}
659 <IPython.core.display.HTML at 0x1094900d0>
701 <IPython.core.display.HTML at 0x1094900d0>
702 \end{verbatim}
703
660
704
661 \end{codeoutput}
705 \end{codeoutput}
662 \end{codecell}
706 \end{codecell}
@@ -671,8 +715,8 were typing mathematical expressions in Markdown cells (along with
671 normal text) and letting the browser render them; now we are displaying
715 normal text) and letting the browser render them; now we are displaying
672 the output of a Python computation as a LaTeX expression wrapped by the
716 the output of a Python computation as a LaTeX expression wrapped by the
673 \texttt{Math()} object so the browser renders it. The \texttt{Math}
717 \texttt{Math()} object so the browser renders it. The \texttt{Math}
674 object will add the needed LaTeX delimiters (\texttt{\$\$}) if they are
718 object will add the needed LaTeX delimiters (`\$\$) if they are not
675 not provided:
719 provided:
676
720
677 \begin{codecell}
721 \begin{codecell}
678 \begin{codeinput}
722 \begin{codeinput}
@@ -683,7 +727,7 Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx')
683 \end{codeinput}
727 \end{codeinput}
684 \begin{codeoutput}
728 \begin{codeoutput}
685
729
686 <IPython.core.display.Math at 0x10fba26d0>
730
687
731
688 \end{codeoutput}
732 \end{codeoutput}
689 \end{codecell}
733 \end{codecell}
@@ -705,7 +749,7 Latex(r"""\begin{eqnarray}
705 \end{codeinput}
749 \end{codeinput}
706 \begin{codeoutput}
750 \begin{codeoutput}
707
751
708 <IPython.core.display.Latex at 0x10fba2c10>
752
709
753
710 \end{codeoutput}
754 \end{codeoutput}
711 \end{codecell}
755 \end{codecell}
@@ -815,10 +859,13 show()
815 \end{codeinput}
859 \end{codeinput}
816 \begin{codeoutput}
860 \begin{codeoutput}
817 \begin{center}
861 \begin{center}
818 \includegraphics[width=0.7\textwidth]{_fig_60.png}
862 \includegraphics[width=0.7\textwidth, height=0.9\textheight, keepaspectratio]{_fig_60.png}
819 \par
863 \par
820 \end{center}
864 \end{center}
821 \end{codeoutput}
865 \end{codeoutput}
822 \end{codecell}
866 \end{codecell}
823
867
824 \end{document}
868
869
870 \end{document}
871
General Comments 0
You need to be logged in to leave comments. Login now