-
Notifications
You must be signed in to change notification settings - Fork 0
/
fig_tab_temp.tex
111 lines (102 loc) · 2.94 KB
/
fig_tab_temp.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
%画像挿入
%%%%%%%%%%%%%%%%%%%%
\begin{figure}
\centering
\includegraphics[width=0.5\linewidth]{./fig/title.pdf}
\caption[title]{title}
\label{fig:hoge}
\end{figure}
%%%%%%%%%%%%%%%%%%%%
%subfigureで画像挿入
%%%%%%%%%%%%%%%%%%%%
\begin{figure}
\centering
\subfigure[]{%
\includegraphics[width=.4\textwidth,clip]{./fig/title_1.pdf}%
\label{fig:hoge_1}%
}%
\subfigure[]{%
\includegraphics[width=.4\textwidth,clip]{./fig/title_2.pdf}%
\label{fig:hoge_2}%
}
\caption[title]{title。(a)hogehoge、(b)hogehoge。}
\label{fig:hoge}
\end{figure}
%%%%%%%%%%%%%%%%%%%%
%table環境を使う
%%%%%%%%%%%%%%%%%%%%
\begin{table}
\centering
\caption{title}
\footnotesize
\label{tab:hogehoge}
\begin{tabular}{cccc}
\hline
\shortstack{hoge} &
\shortstack{hoge} &
\shortstack{hoge} &
\shortstack{hoge}
\\
\hline
hoge & hoge & hoge & hoge\\
\hline
\end{tabular}
\normalsize
\end{table}
%%%%%%%%%%%%%%%%%%%%
%コードの挿入
%%%%%%%%%%%%%%%%%%%%
\begin{lstlisting}[caption = hogehoge,label = code:1_1_1]
import numpy as np
import matplotlib.pyplot as plt
e = np.arange(1.0, 10**(5.0), 1.0)
m = 511.0
x = e/m
s = 3.0/4.0*( (1.0+x)*x**(-3.0)*( 2.0*x*(1.0+x)*(1.0+2.0*x)**(-1) \
- np.log(1.0+2.0*x) ) + np.log(1.0 + 2.0*x)/(2.0*x) - (1.0+3.0*x)*(1.0+2.0*x)**(-2.0) )
f1 = 1.0 - 2.0*x + 26.0/5.0*x**(2.0)
f2 = 3.0/(8.0*x) * ( np.log(2.0*x) + 0.5 )
plt.figure(figsize=(7,7))
plt.plot(e, s, label='cross section')
plt.plot(e, f1, label='Approximate: $x \ll 1$')
plt.plot(e, f2, label='Approximate: $x \gg 1$')
plt.title('The cross-section for Compton scattering')
plt.xlabel('$E_{\gamma}\,[\mathrm{keV}]$')
plt.ylabel('$\\sigma_{\mathrm{KN}}/\\sigma_{\mathrm{T}}$')
plt.xscale('log')
plt.ylim(0.0,1.0)
plt.xlim(1.0,10**(5.0))
plt.rcParams['font.size'] = 12
plt.legend(bbox_to_anchor=(1, 1), loc='upper right', borderaxespad=0)
plt.savefig('fig_compton_sc.pdf')
plt.close('all')
plt.figure(figsize=(7,7))
plt.plot(e, s, label='cross section')
plt.plot(e, f1, label='Approximate: $x \ll 1$')
plt.plot(e, f2, label='Approximate: $x \gg 1$')
plt.title('The cross-section for Compton scattering')
plt.xlabel('$E_{\gamma}\,[\mathrm{keV}]$')
plt.ylabel('$\\sigma_{\mathrm{KN}}/\\sigma_{\mathrm{T}}$')
plt.xscale('log')
plt.ylim(0.0,1.0)
plt.xlim(1.0,10**(5.0))
plt.rcParams['font.size'] = 12
plt.legend(bbox_to_anchor=(1, 1), loc='upper right', borderaxespad=0)
plt.savefig('fig_compton_sc.png')
plt.close('all')
plt.figure(figsize=(7,7))
plt.plot(e, s, label='cross section')
plt.plot(e, f1, label='Approximate: $x \ll 1$')
plt.plot(e, f2, label='Approximate: $x \gg 1$')
plt.title('The cross-section for Compton scattering')
plt.xlabel('$E_{\gamma}\,[\mathrm{keV}]$')
plt.ylabel('$\\sigma_{\mathrm{KN}}/\\sigma_{\mathrm{T}}$')
plt.xscale('log')
plt.ylim(0.0,1.0)
plt.xlim(1.0,10**(5.0))
plt.rcParams['font.size'] = 12
plt.legend(bbox_to_anchor=(1, 1), loc='upper right', borderaxespad=0)
plt.savefig('fig_compton_sc.jpg')
plt.close('all')
\end{lstlisting}
%%%%%%%%%%%%%%%%%%%%