Skip to content

Commit 8c5ce7c

Browse files
author
hengxin
committed
cprogramming: +io.tex
1 parent 7883108 commit 8c5ce7c

8 files changed

+573
-0
lines changed

.gitignore

+270
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,273 @@
3030
*.exe
3131
*.out
3232
*.app
33+
34+
# Swap
35+
[._]*.s[a-v][a-z]
36+
[._]*.sw[a-p]
37+
[._]s[a-v][a-z]
38+
[._]sw[a-p]
39+
40+
# Session
41+
Session.vim
42+
43+
# Temporary
44+
.netrwhist
45+
*~
46+
# Auto-generated tag files
47+
tags
48+
49+
## Core latex/pdflatex auxiliary files:
50+
*.aux
51+
*.lof
52+
*.log
53+
*.lot
54+
*.fls
55+
*.out
56+
*.toc
57+
*.fmt
58+
*.fot
59+
*.cb
60+
*.cb2
61+
62+
## Intermediate documents:
63+
*.dvi
64+
*.xdv
65+
*-converted-to.*
66+
# these rules might exclude image files for figures etc.
67+
# *.ps
68+
# *.eps
69+
# *.pdf
70+
71+
## Generated if empty string is given at "Please type another file name for output:"
72+
.pdf
73+
74+
## Bibliography auxiliary files (bibtex/biblatex/biber):
75+
*.bbl
76+
*.bcf
77+
*.blg
78+
*-blx.aux
79+
*-blx.bib
80+
*.run.xml
81+
82+
## Build tool auxiliary files:
83+
*.fdb_latexmk
84+
*.synctex
85+
*.synctex(busy)
86+
*.synctex.gz
87+
*.synctex.gz(busy)
88+
*.pdfsync
89+
90+
## Auxiliary and intermediate files from other packages:
91+
# algorithms
92+
*.alg
93+
*.loa
94+
95+
# achemso
96+
acs-*.bib
97+
98+
# amsthm
99+
*.thm
100+
101+
# beamer
102+
*.nav
103+
*.pre
104+
*.snm
105+
*.vrb
106+
107+
# changes
108+
*.soc
109+
110+
# cprotect
111+
*.cpt
112+
113+
# elsarticle (documentclass of Elsevier journals)
114+
*.spl
115+
116+
# endnotes
117+
*.ent
118+
119+
# fixme
120+
*.lox
121+
122+
# feynmf/feynmp
123+
*.mf
124+
*.mp
125+
*.t[1-9]
126+
*.t[1-9][0-9]
127+
*.tfm
128+
129+
#(r)(e)ledmac/(r)(e)ledpar
130+
*.end
131+
*.?end
132+
*.[1-9]
133+
*.[1-9][0-9]
134+
*.[1-9][0-9][0-9]
135+
*.[1-9]R
136+
*.[1-9][0-9]R
137+
*.[1-9][0-9][0-9]R
138+
*.eledsec[1-9]
139+
*.eledsec[1-9]R
140+
*.eledsec[1-9][0-9]
141+
*.eledsec[1-9][0-9]R
142+
*.eledsec[1-9][0-9][0-9]
143+
*.eledsec[1-9][0-9][0-9]R
144+
145+
# glossaries
146+
*.acn
147+
*.acr
148+
*.glg
149+
*.glo
150+
*.gls
151+
*.glsdefs
152+
153+
# gnuplottex
154+
*-gnuplottex-*
155+
156+
# gregoriotex
157+
*.gaux
158+
*.gtex
159+
160+
# hyperref
161+
*.brf
162+
163+
# knitr
164+
*-concordance.tex
165+
# TODO Comment the next line if you want to keep your tikz graphics files
166+
*.tikz
167+
*-tikzDictionary
168+
169+
# listings
170+
*.lol
171+
172+
# makeidx
173+
*.idx
174+
*.ilg
175+
*.ind
176+
*.ist
177+
178+
# minitoc
179+
*.maf
180+
*.mlf
181+
*.mlt
182+
*.mtc[0-9]*
183+
*.slf[0-9]*
184+
*.slt[0-9]*
185+
*.stc[0-9]*
186+
187+
# minted
188+
_minted*
189+
*.pyg
190+
191+
# morewrites
192+
*.mw
193+
194+
# nomencl
195+
*.nlo
196+
197+
# pax
198+
*.pax
199+
200+
# pdfpcnotes
201+
*.pdfpc
202+
203+
# sagetex
204+
*.sagetex.sage
205+
*.sagetex.py
206+
*.sagetex.scmd
207+
208+
# scrwfile
209+
*.wrt
210+
211+
# sympy
212+
*.sout
213+
*.sympy
214+
sympy-plots-for-*.tex/
215+
216+
# pdfcomment
217+
*.upa
218+
*.upb
219+
220+
# pythontex
221+
*.pytxcode
222+
pythontex-files-*/
223+
224+
# thmtools
225+
*.loe
226+
227+
# TikZ & PGF
228+
*.dpth
229+
*.md5
230+
*.auxlock
231+
232+
# todonotes
233+
*.tdo
234+
235+
# easy-todo
236+
*.lod
237+
238+
# xindy
239+
*.xdy
240+
241+
# xypic precompiled matrices
242+
*.xyc
243+
244+
# endfloat
245+
*.ttt
246+
*.fff
247+
248+
# Latexian
249+
TSWLatexianTemp*
250+
251+
## Editors:
252+
# WinEdt
253+
*.bak
254+
*.sav
255+
256+
# Texpad
257+
.texpadtmp
258+
259+
# Kile
260+
*.backup
261+
262+
# KBibTeX
263+
*~[0-9]*
264+
265+
# auto folder when using emacs and auctex
266+
/auto/*
267+
268+
# expex forward references with \gathertags
269+
*-tags.tex
270+
271+
# Prerequisites
272+
*.d
273+
274+
# Compiled Object files
275+
*.slo
276+
*.lo
277+
*.o
278+
*.obj
279+
280+
# Precompiled Headers
281+
*.gch
282+
*.pch
283+
284+
# Compiled Dynamic libraries
285+
*.so
286+
*.dylib
287+
*.dll
288+
289+
# Fortran module files
290+
*.mod
291+
*.smod
292+
293+
# Compiled Static libraries
294+
*.lai
295+
*.la
296+
*.a
297+
*.lib
298+
299+
# Executables
300+
*.exe
301+
*.out
302+
*.app
Binary file not shown.

tutorial/cprogramming.pdf

139 KB
Binary file not shown.

tutorial/cprogramming.tex

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
\documentclass[]{beamer}
2+
3+
\input{preamble}
4+
5+
%%%%%%%%%%
6+
\title[\titletext]{\titletext}
7+
\subtitle{}
8+
9+
\author[Hengfeng Wei]{\large 魏恒峰}
10+
% \titlegraphic{\includegraphics[height = 1.8cm]{figs/20171016-logic-qrcode.png}}
11+
\institute{hfwei@nju.edu.cn}
12+
% from 2017年10月18日
13+
\date{\zhtoday}
14+
15+
\AtBeginSection[]{
16+
\begin{frame}[noframenumbering, plain]
17+
\frametitle{\titletext}
18+
\tableofcontents[currentsection, sectionstyle=show/shaded, subsectionstyle=show/show/hide]
19+
\end{frame}
20+
}
21+
%%%%%%%%%%
22+
\begin{document}
23+
24+
\maketitle
25+
26+
\input{sections/overview}
27+
\input{sections/io}
28+
29+
\end{document}
30+
%%%%%%%%%%

tutorial/cprogramming.tex.latexmain

Whitespace-only changes.

tutorial/preamble.tex

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
% File: preamble.tex
2+
\usepackage{lmodern}
3+
4+
\usepackage{xeCJK}
5+
\usepackage{zhnumber} % counters in Chinese
6+
7+
\usetheme{CambridgeUS} % try Madrid, Pittsburgh
8+
\usecolortheme{beaver}
9+
\usefonttheme[onlymath]{serif} % try "professionalfonts"
10+
11+
\setbeamertemplate{itemize items}[default]
12+
\setbeamertemplate{enumerate items}[default]
13+
14+
\usepackage{amsmath, amsfonts, latexsym, mathtools}
15+
16+
\usepackage{hyperref}
17+
18+
% colors
19+
\newcommand{\red}[1]{\textcolor{red}{#1}}
20+
\newcommand{\green}[1]{\textcolor{green}{#1}}
21+
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
22+
\newcommand{\purple}[1]{\textcolor{purple}{#1}}
23+
24+
% colorded box
25+
\newcommand{\rbox}[1]{\red{\boxed{#1}}}
26+
\newcommand{\gbox}[1]{\green{\boxed{#1}}}
27+
\newcommand{\bbox}[1]{\blue{\boxed{#1}}}
28+
\newcommand{\pbox}[1]{\purple{\boxed{#1}}}
29+
30+
\usepackage{pifont}
31+
\usepackage{wasysym}
32+
33+
\newcommand{\cmark}{\green{\ding{51}}}
34+
\newcommand{\xmark}{\red{\ding{55}}}
35+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36+
% for fig without caption: #1: width/size; #2: fig file
37+
\newcommand{\fignocaption}[2]{
38+
\begin{figure}[htp]
39+
\centering
40+
\includegraphics[#1]{#2}
41+
\end{figure}
42+
}
43+
44+
\newcommand{\titletext}{C/C++ 程序设计基础}

0 commit comments

Comments
 (0)