Weave.jl/test/documents/chunk_options_ref.tex

111 lines
2.2 KiB
TeX
Raw Normal View History

2014-12-06 18:16:45 +01:00
\begin{juliaterm}
2014-12-06 18:16:45 +01:00
julia> y= [2, 5, 12]
3-element Array{Int64,1}:
2
5
12
\end{juliaterm}
2014-12-06 18:16:45 +01:00
\begin{juliacode}
x = [12, 10]
println(y)
2016-04-11 19:34:36 +02:00
2014-12-06 18:16:45 +01:00
\end{juliacode}
\begin{juliaout}
[2,5,12]
2016-04-11 19:34:36 +02:00
\end{juliaout}
\begin{juliacode}
println(x)
\end{juliacode}
\begin{juliaout}
2014-12-09 10:34:26 +01:00
[12,10]
2014-12-06 18:16:45 +01:00
\end{juliaout}
\begin{juliaout}
2014-12-09 10:34:26 +01:00
Results without code
2016-04-11 19:34:36 +02:00
\end{juliaout}
\begin{juliaout}
2014-12-06 18:16:45 +01:00
[12,10]
\end{juliaout}
2014-12-09 10:34:26 +01:00
\begin{juliacode}
y = randn(5)
println("Don't eval, but show code")
\end{juliacode}
\begin{juliacode}
y = 1:5
println(y)
\end{juliacode}
\begin{juliaout}
1:5
\end{juliaout}
2014-12-06 18:16:45 +01:00
\begin{juliacode}
2014-12-09 10:34:26 +01:00
a = "Don't print me"
2014-12-06 18:16:45 +01:00
println(a)
\end{juliacode}
2014-12-09 10:34:26 +01:00
\begin{juliacode}
println("No markup for results.")
\end{juliacode}
No markup for results.
Test wrapping:
\begin{juliacode}
2016-04-11 19:34:36 +02:00
println(collect(0:10:1000))
\end{juliacode}
\begin{juliaout}
2016-04-11 19:34:36 +02:00
[0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,2
10,220,230,240,250,260,270,280,290,300,310,320,330,340,350,360,370,380,390,
400,410,420,430,440,450,460,470,480,490,500,510,520,530,540,550,560,570,580
,590,600,610,620,630,640,650,660,670,680,690,700,710,720,730,740,750,760,77
0,780,790,800,810,820,830,840,850,860,870,880,890,900,910,920,930,940,950,9
60,970,980,990,1000]
\end{juliaout}
\begin{juliacode}
2016-04-11 19:34:36 +02:00
println(collect(0:10:1000))
\end{juliacode}
2016-04-11 19:34:36 +02:00
\begin{juliaout}[0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350,360,370,380,390,400,410,420,430,440,450,460,470,480,490,500,510,520,530,540,550,560,570,580,590,600,610,620,630,640,650,660,670,680,690,700,710,720,730,740,750,760,770,780,790,800,810,820,830,840,850,860,870,880,890,900,910,920,930,940,950,960,970,980,990,1000]
\end{juliaout}
\begin{juliacode}
2016-04-11 19:34:36 +02:00
println(collect(0:10:1000))
\end{juliacode}
\begin{juliaout}
2016-04-11 19:34:36 +02:00
[0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,17
0,180,190,200,210,220,230,240,250,260,270,280,290,300,310,32
0,330,340,350,360,370,380,390,400,410,420,430,440,450,460,47
0,480,490,500,510,520,530,540,550,560,570,580,590,600,610,62
0,630,640,650,660,670,680,690,700,710,720,730,740,750,760,77
0,780,790,800,810,820,830,840,850,860,870,880,890,900,910,92
0,930,940,950,960,970,980,990,1000]
\end{juliaout}