diff options
-rw-r--r-- | Makefile | 120 | ||||
-rw-r--r-- | configs/config.t2t | 21 | ||||
-rw-r--r-- | styles/evmik.sty | 10 | ||||
-rw-r--r-- | styles/evmikcompact.sty | 189 | ||||
-rw-r--r-- | styles/listing_defs.tex | 20 | ||||
-rw-r--r-- | syllabus_source/Makefile | 63 | ||||
-rw-r--r-- | syllabus_source/syllabus_2013_fall_Experimental_Atomic_Physics_251.t2t | 178 |
7 files changed, 601 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..63bc055 --- /dev/null +++ b/Makefile @@ -0,0 +1,120 @@ +# -*- make -*- + +make = make + + +class_base_dir = $(shell basename $(CURDIR)) + +upload_location_wm = physics.wm.edu:public_html/classes/$(class_base_dir)/ +# see 2012_fall_practical_computing_for_scientists for PREVIOUS_YEAR_MATERIALS_DIR usage +PREVIOUS_YEAR_MATERIALS_DIR = + +exams = + +samples = +misc = ./cal.html ./evmik.css ./rem-default.css + +weekly_slides_dir = ./weekly_pdf_slides +weekly_pdf_slides= $(wildcard $(weekly_slides_dir)/*.pdf) + +syllabus_dir = ./syllabus +syllabus_pdf = $(wildcard $(syllabus_dir)/*.pdf) +syllabus_html = $(wildcard $(syllabus_dir)/*.html) +homeworks_assignment_dir = ./homeworks +homeworks_assignments = $(wildcard $(homeworks_assignment_dir)/*.pdf) +lecture_notes = ./lecture_notes + + +files4upload = $(html_targets) $(samples) $(hw_solutions) $(exams) $(weekly_slides_dir) $(syllabus_dir) $(misc) $(homeworks_assignment_dir) $(lecture_notes) + +t2t_files = $(wildcard *.t2t) +html_targets = $(t2t_files:%.t2t=%.html) +tex_targets = $(t2t_files:%.t2t=%.tex) +pdf_targets = $(t2t_files:%.t2t=%.pdf) + +t2t_includes = $(wildcard ./t2t_includes/*.t2t) +t2t_includes += ./configs/config.t2t + +scss_files = $(wildcard *.scss) +css_targets = $(scss_files:%.scss=%.css) + +upscr = rsync --delete -ave ssh + +default: tentative_list_of_topics.t2t html cal css + +css: $(css_targets) + +$(css_targets): %.css : %.scss + sass $< > $@ + + +html: $(html_targets) + +pdf: $(pdf_targets) + +tex: $(tex_targets) + +upload: upload_location_wm + + +$(html_targets): %.html : %.t2t $(t2t_includes) + txt2tags --css-sugar --toc --toc-level=2 -t html -o $@ $< + +$(pdf_targets): %.pdf : %.tex + pdflatex $< + +$(tex_targets): %.tex : %.t2t $(t2t_includes) + txt2tags -t tex -o $@ $< + + + +clean_latex_tmp: + rm -f *.aux + rm -f *.log + rm -f *.out + rm -f *.tex + +stick: + $(make) upload2location upload_location=/mnt/stick/$(class_base_dir)/ + + +upload_location_wm: + $(make) upload2location upload_location=$(upload_location_wm) + +upload2location: + $(upscr) $(files4upload) $(upload_location) + +last_time_uploaded: $(files4upload) $(weekly_pdf_slides) $(lab_manuals_pdf) $(homeworks_assignments) + touch last_time_uploaded + +clean: clean_latex_tmp + rm -f last_time_uploaded + rm -rf .sass-cache + + +clean_all: clean + rm -f $(pdf_targets) + rm -f $(tex_targets) + rm -f $(html_targets) + rm -f cal.html + rm -f tentative_list_of_topics.html + # rm -f tentative_list_of_topics.t2t + +real_clean: clean_all + +backup: + rsync -rvze ssh * spiffy.physics.wm.edu:jobs/wm/$(class_base_dir)/ + +cal: cal.html + +# tentative_list_of_topics.t2t: $(PREVIOUS_YEAR_MATERIALS_DIR)/lecture*/toc.t2t + # bin/lecture_toc2tent_shed.sh $(PREVIOUS_YEAR_MATERIALS_DIR) > $@ + +lecture_names.rem: tentative_list_of_topics.t2t + bin/tent_sched2lec_names.sh < tentative_list_of_topics.t2t > lecture_names.rem + +cal.html: tentative_list_of_topics.t2t lecture_names.rem calendar.rem + remind -p5 calendar.rem 16 jan 2013 | ./bin/rem2html -title "Modern Astrophysics calendar" | \ + sed 's/<head>/<head>\n<meta name="viewport" content="width=device-width, initial-scale=1.0">/' | \ + cat > cal.html + diff --git a/configs/config.t2t b/configs/config.t2t new file mode 100644 index 0000000..7fa9eba --- /dev/null +++ b/configs/config.t2t @@ -0,0 +1,21 @@ + +%!postproc: SITEROOT . + +%%!postproc(html): '(?i)<h1>DrEugeniyMikhailov</h1>' '<h1><a class="headerAuthor" href="HmPgURL">Dr. Eugeniy E. Mikhailov</a></h1>' +%% -- extra settings to make it handheld device compatible +%!postproc: '(?i)(<head.*$)' '\1\n<meta name="viewport" content="width=device-width, initial-scale=1.0">' +%% ------------------------------------------------------------------------------------- +%!postproc(html): '(?i)DrEugeniyMikhailov' 'Dr. Eugeniy E. Mikhailov' +%!postproc(html): EugeniyMikhailov <a class="headerAuthor" href="HmPgURL">Eugeniy E. Mikhailov</a> +%!postproc(html): HmPgURL http://physics.wm.edu/~evmik/ +%!postproc(txt): EugeniyMikhailov Eugeniy Mikhailov +%!postproc(html): 'WM' 'W&M' + +%!postproc(html): {{(.*?)}} <\1> +%!preproc(html): ^%%errata """ {{div CLASS="errata"}} +%!preproc(html): ^%%/errata """ {{/div}} +%!preproc(html): ^%%announce """ {{div CLASS="announce"}} +%!preproc(html): ^%%/announce """ {{/div}} +%!preproc(html): ^%%zero_p_space """ {{div CLASS="zero_p_space"}} +%!preproc(html): ^%%/zero_p_space """ {{/div}} + diff --git a/styles/evmik.sty b/styles/evmik.sty new file mode 100644 index 0000000..95c53d7 --- /dev/null +++ b/styles/evmik.sty @@ -0,0 +1,10 @@ +% -*- latex -*- +% FILE: "/home/evmik/jobs/wm/2013_fall_Experimental_Atomic_Physics_251/styles/evmik.sty" +% LAST MODIFICATION: "Tue, 27 Aug 2013 16:11:58 -0400 (evmik)" +% (C) 2008 by Eugeniy Mikhailov, <evgmik@gmail.com> +% $Id:$ + +\usepackage[margin=1in,letterpaper]{geometry} +%\usepackage{setspace} %to adjust line spacing adjust parameter in the next line +%\setstretch{1.0} + diff --git a/styles/evmikcompact.sty b/styles/evmikcompact.sty new file mode 100644 index 0000000..640c428 --- /dev/null +++ b/styles/evmikcompact.sty @@ -0,0 +1,189 @@ +%% +%% This is file `fullpage.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% fullpage.dtx (with options: `package') +%% ============================================= +%% IMPORTANT NOTICE: +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% This is a generated file. +%% It may not be distributed without the original source file fullpage.dtx. +%% +%% Full documentation can be obtained by LaTeXing that original file. +%% Only a few abbreviated comments remain here to describe the usage. +%% ============================================= +%% by Eugeniy E. Mikhailov +%% this package try to shrink all unnesesary spaces +%% it is all very crude and suitable only for very tailored cases +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{evmikcompact} + [2010/09/17 1.0] + +\def\maketitle{% +{\flushleft\Large \bf \@title\par}% +\vskip 1em +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% section definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\section{\@ifstar\unnumberedsection\numberedsection} +\def\numberedsection{\@ifnextchar[%] + \numberedsectionwithtwoarguments\numberedsectionwithoneargument} +\def\unnumberedsection{\@ifnextchar[%] + \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument} +\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}} +\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}} +\def\numberedsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak + \refstepcounter{section}% + \noindent + \leavevmode + \begingroup + \large + \bfseries + \thesection\ + #2.\quad + \endgroup + \addcontentsline{toc}{section}{% + \protect\numberline{\thesection}% + #1}% + } +\def\unnumberedsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak +% \refstepcounter{section}% + \noindent + \leavevmode + \begingroup + \large + \bfseries +% \thesection\ + #2.\quad + \endgroup + \addcontentsline{toc}{section}{% +% \protect\numberline{\thesection}% + #1}% + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% subsection definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\subsection{\@ifstar\unnumberedsubsection\numberedsubsection} +\def\numberedsubsection{\@ifnextchar[%] + \numberedsubsectionwithtwoarguments\numberedsubsectionwithoneargument} +\def\unnumberedsubsection{\@ifnextchar[%] + \unnumberedsubsectionwithtwoarguments\unnumberedsubsectionwithoneargument} +\def\numberedsubsectionwithoneargument#1{\numberedsubsectionwithtwoarguments[#1]{#1}} +\def\unnumberedsubsectionwithoneargument#1{\unnumberedsubsectionwithtwoarguments[#1]{#1}} +\def\numberedsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak + \refstepcounter{subsection}% + \noindent + \leavevmode + \begingroup + \bfseries + \thesubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsection}{% + \protect\numberline{\thesubsection}% + #1}% + } +\def\unnumberedsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak +% \refstepcounter{subsection}% + \noindent + \leavevmode + \begingroup + \bfseries +% \thesubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsection}{% +% \protect\numberline{\thesubsection}% + #1}% + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% subsubsection definition +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\def\subsubsection{\@ifstar\unnumberedsubsubsection\numberedsubsubsection} +\def\numberedsubsubsection{\@ifnextchar[%] + \numberedsubsubsectionwithtwoarguments\numberedsubsubsectionwithoneargument} +\def\unnumberedsubsubsection{\@ifnextchar[%] + \unnumberedsubsubsectionwithtwoarguments\unnumberedsubsubsectionwithoneargument} +\def\numberedsubsubsectionwithoneargument#1{\numberedsubsubsectionwithtwoarguments[#1]{#1}} +\def\unnumberedsubsubsectionwithoneargument#1{\unnumberedsubsubsectionwithtwoarguments[#1]{#1}} +\def\numberedsubsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak + \refstepcounter{subsubsection}% + \noindent + \leavevmode + \begingroup + \bfseries + \thesubsubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsubsection}{% + \protect\numberline{\thesubsubsection}% + #1}% + } +\def\unnumberedsubsubsectionwithtwoarguments[#1]#2{% + \ifhmode\par\fi + \removelastskip + \vskip 3ex\goodbreak +% \refstepcounter{subsubsection}% + \noindent + \leavevmode + \begingroup + \bfseries +% \thesubsubsection\ + #2.\quad + \endgroup + \addcontentsline{toc}{subsubsection}{% +% \protect\numberline{\thesubsubsection}% + #1}% + } + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% list items config +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%\def\@listi{\leftmargin\leftmargini + %\parsep 5\p@ \@plus2.5\p@ \@minus\p@ + %\topsep 2.5\p@ \@plus4\p@ \@minus6\p@ + %\itemsep0.0\p@ \@plus2.5\p@ \@minus\p@} +%\let\@listI\@listi + +\AtBeginDocument{% + \renewcommand{\@listi} + {\setlength{\leftmargin}{\leftmargini} + \setlength{\topsep} {0pt} + \setlength{\parsep} {\parskip} + \setlength{\itemsep}{0pt}} + \renewcommand{\@listii} + {\setlength{\leftmargin}{\leftmarginii} + \setlength{\labelwidth}{\leftmarginii} + \addtolength{\labelwidth}{-\labelsep}} + \renewcommand{\@listiii} + {\setlength{\leftmargin}{\leftmarginiii} + \setlength{\labelwidth}{\leftmarginiii} + \addtolength{\labelwidth}{-\labelsep}}} +\makeatother + diff --git a/styles/listing_defs.tex b/styles/listing_defs.tex new file mode 100644 index 0000000..893f88b --- /dev/null +++ b/styles/listing_defs.tex @@ -0,0 +1,20 @@ +% -*- latex -*- +% FILE: "/home/evmik/jobs/wm/2011_fall_practical_computing_for_scientists/styles/listing_defs.tex" +% LAST MODIFICATION: "Fri, 16 Sep 2011 11:03:13 -0400 (evmik)" +% (C) 2010 by Eugeniy Mikhailov, <evgmik@gmail.com> +% $Id:$ + + +% {{{ listing color schem definitions +\definecolor{listcommentcolor}{rgb}{0.0,0.4,0} %dark green +%\definecolor{listbg}{rgb}{0.67,0.90,0.64} %pale green +\definecolor{listbg}{rgb}{0.90,0.90,0.90} %light grey +\lstset{backgroundcolor=\color{listbg}} +\lstset{commentstyle=\color{listcommentcolor}} +\lstset{keywordstyle=\color{blue}} +\lstset{stringstyle=\color{magenta}} +\lstset{language=matlab} +\lstset{tabsize=2} +\lstset{showstringspaces=false} +\lstset{basicstyle = \ttfamily} +% }}} diff --git a/syllabus_source/Makefile b/syllabus_source/Makefile new file mode 100644 index 0000000..2700488 --- /dev/null +++ b/syllabus_source/Makefile @@ -0,0 +1,63 @@ +# -*- make -*- + +make = make + +INSTALL = install -C +CP_FILES = $(INSTALL) --mode=664 + +#includes = weekly_topics.txt +includes = +t2t_files = $(wildcard *.t2t) +html_targets = $(t2t_files:%.t2t=%.html) +tex_targets = $(t2t_files:%.t2t=%.tex) +pdf_targets = $(t2t_files:%.t2t=%.pdf) + +dest_dir = ../syllabus + +all: html pdf copy2dest + +html: $(html_targets) + +pdf: $(pdf_targets) + +tex: $(tex_targets) + +weekly_topics.txt: ../tentative_list_of_topics.t2t + ../bin/tent_sched2weekly_topics.sh < ../tentative_list_of_topics.t2t > weekly_topics.txt + +$(dest_dir): + $(INSTALL) -d $(dest_dir) + +copy2dest: $(dest_dir) html pdf + $(CP_FILES) $(html_targets) $(pdf_targets) $(dest_dir)/ + + +$(html_targets): %.html : %.t2t $(includes) + txt2tags --css-sugar --toc --toc-level=1 -t html -o $@ $< + +$(pdf_targets): %.pdf : %.tex $(includes) + pdflatex $< + +$(tex_targets): %.tex : %.t2t $(includes) + txt2tags -t tex -o $@ $< + + + +clean_latex_tmp: + rm -f *.aux + rm -f *.log + rm -f *.out + rm -f *.tex + + +clean: clean_latex_tmp + rm -f last_time_uploaded + + +clean_all: clean + rm -f $(pdf_targets) + rm -f $(tex_targets) + rm -f $(html_targets) + rm -f $(includes) + +real_clean: clean_all diff --git a/syllabus_source/syllabus_2013_fall_Experimental_Atomic_Physics_251.t2t b/syllabus_source/syllabus_2013_fall_Experimental_Atomic_Physics_251.t2t new file mode 100644 index 0000000..b0f4dcd --- /dev/null +++ b/syllabus_source/syllabus_2013_fall_Experimental_Atomic_Physics_251.t2t @@ -0,0 +1,178 @@ +Physics 251 Syllabus, fall 2013 + +27 August 2013 + +%!includeconf: ../configs/config.t2t +% %%mtime(%Y-%m-%d) +%%!style(tex): ./evmikcompact +%!style(tex): fullpage,../styles/evmikcompact +%!style(tex): ../styles/evmik.sty +% %% parskip remove indent of the paragraphs +%!style(tex): parskip +%!style(html): ../evmik.css +%!postproc(tex): ,a4paper ,letter +%!postproc(tex): \\date{.*} \date{} +% %!postproc(tex): \\maketitle %\maketitle +%!postproc(tex): \\clearpage %\clearpage +%!postproc(tex): LaTeX \LaTeX{} + + += Instructor: Eugeniy E. Mikhailov = +- Office: Small Hall 253 +%- Lab: Small 032 and 065 +%- Phones: 221-3571 (office), 251-3560 (lab) +- Email: eemikh@wm.edu +%- Web: http://physics.wm.edu/~evmik/ +- Office Hours: MWR 9:30-10:30 and by appointment. + + +== Lab assistants == +Matt T. Simons <mtsimons@email.wm.edu> and Aj Pyle <ajpyle@email.wm.edu> + += What will we learn = +- Experimental techniques +- Lab report writing +- Uncertainty analysis + + += What will we do = +You will be conducting a new experiment every week, using the 170 minutes we have in class. + +== Reading Ahead == +The standard experiments have lab "manuals" which I will post at the website. You should reserve about half an hour to read over them before coming to lab. + + +== Labbook == + +Your lab book should be a regular style notebook without rings with either +line or quadrangle ruling or a computation logbook. It can be obtained at +most stationary stores (i.e. Staples, etc ...) + +You need to keep a good labbook, with your raw data, sketches or pictures of +the equipment, notes on your experimental methodology, calculations, etc. +Everything you do goes into this book and it provides the foundation for your +lab reports. You need to bring it every week (if you forget you'll have to run +home to get it). + +Diagrams, data, +graphs, and other notes on separate pieces of paper should be glued, taped, +or stapled into the lab book. If something falls out of the lab book during +reading/shaking/transporting, it is not the part of the log book and will +be discarded. All notes should be written in **pen**. Mistakes and errors +in design, data, and analysis will occur, and they should be crossed out +neatly. + +The lab book will be graded primarily on completeness and to a lesser +extent on neatness (i.e. better to be complete than neat, though doing both +is better yet). It should also feature a table of contents. The lab books +will be turned in every week or two and returned before the next lab. + +You should enter you lab notes and data directly into the lab book. A +"scratch" lab book that is neatly copied into the lab book at a later time +is not appropriate and will result in a significantly reduced grade. It is +OK though to use scratch paper which is glued into the lab book prior +submission. + + +== Lab reports == +You will need to write a report for each of the standard labs. Though you will +do the experiments in collaboration with a partner, your lab report is your own +work. They are due at the start of class the following week. Late reports will +be docked 5% per day. + +In physics and mathematics LaTeX is the standard program used to format +papers. It's great, especially for mathematical forumlae, figures with +captions, and tables. It's available on Windows/Mac/Linux. A previous student +says: + + "Just letting you know I used LaTeX using TeXnicCenter as my editor. + At first I was a bit skeptical because I felt Word could do just as + much without having to build the Document to view it. But as + experiments began to need more figures and equations I really started + to enjoy latex because it was so simple. I could make gigantic + equations like the Schrodinger's equation in just a minute whereas + word would have taken me quite a while. Anyways I'm really happy I + learned to use LaTeX and look forward to using it in the future." + +I **strongly** encourage you to try it but do not require it. MSWord and other WSIWYG +programs will also work. + +== Analysis software == +It might be tempting to use MSExcel for you analysis. I strongly suggest to +keep away from it. Moreover I will not accept plots made in Excel or its +analog. They are easy to spot, since they are ugly and have no notion of +proper axes limits. + +I suggest you to use Matlab which is very powerful and free for W&M students. + +Usually there is no "silver bullet" software which does good analysis and +presentation, and you might invest some time to find a good plotting +software as well. My personal choice is Gnuplot, though Matlab will do good +enough job most of the time. + + +== Lab visit == + +One week, instead of doing experiments, you will visit physics and applied +science research labs, and maybe even talk with a theorist or +two. You'll write up a summary of your visit. + + + + + + += Textbook = +There is no required text for this class. However, as supplements I suggest: +- Melissinos and Napolitano, "Experiments in Modern Physics", 2nd Ed., Academic Press. +- G. L. Squires, "Practical Physics", 4th Ed., Cambridge. + + += Sections = +There are several independent sections for this class. In general, you +cannot switch between them after the first experiment since you will have a +lab partner and some of the experiments require at least two people. + + += Physics 201 corequisite = +Physics 201 is a corequisite of this class. However, unlike Physics +101/102, the two classes are separate and we do not try very hard to keep +them in sync or make sure that 201 covers the theory behind a topic before +251 does the experiment. This is, more or less, how progress in physics +really occurs! Experimenters usually do their work at the frontier where +there is no theory or where there are multiple competing theories. + + += Evaluations = +Your final grade for the course will be determined from the following grading weight distribution: +- Lab reports and lab visit: 75% +- Special project: 15% +- Logbook evaluation: 5% +- Lab participation: 5% +- Occasionally I will make mistakes: typos, etc. If you report them or prove me wrong, +you will get an extra bonus. + + +I will drop the lowest lab score. However, in order to pass the class, +**you** **must** **do** **and** **turn** **in** **a** **report** **for** **all** **labs**. +You must also do the special +project. Makeup labs are only allowed with prior permission and for a good +reason or due to illness with a doctor's note. Unlike 101/102 labs there is no +reserved date. We'll just deal with this as necessary. + += Grading = +|| Grade | Score percentage | Grade | Score percentage | Grade | Score percentage | +| | | A | 94-100 | A- | 90-94 | +| B+ | 87-90 | B | 84-87 | B- | 80-84 | +| C+ | 77-80 | C | 74-77 | C- | 70-74 | +| D+ | 67-70 | D | 64-67 | D- | 60-64 | +| F | <60 | | | | | + + + + +%= Important dates = +% exams, break etc. +%%!include: ../important_dates.t2t + + |