diff options
-rw-r--r--[l---------] | Makefile | 61 | ||||
-rw-r--r-- | common.mk | 23 | ||||
-rw-r--r-- | configs/config.md | 3 | ||||
-rw-r--r-- | configs/templates/class.html5 | 64 | ||||
-rw-r--r-- | configs/templates/class.latex | 244 | ||||
-rw-r--r-- | configs/tex_metadata.yaml | 7 | ||||
-rw-r--r-- | configs/this_class_cfg.md | 24 | ||||
l--------- | css_styles/Makefile | 1 | ||||
-rw-r--r-- | css_styles/evmik.scss | 361 | ||||
-rw-r--r-- | css_styles/evmik_pandoc_class.scss | 398 | ||||
-rw-r--r-- | css_styles/local.mk | 13 | ||||
-rw-r--r-- | index.md | 26 | ||||
-rw-r--r-- | index.t2t | 27 | ||||
-rw-r--r-- | local.mk | 4 |
14 files changed, 1226 insertions, 30 deletions
@@ -1 +1,60 @@ -../make_templates/subdir_makefile/Makefile
\ No newline at end of file +# -*- make -*- + +TOPDIR=$(shell pwd) +TOPDIR=. + +make = make + +class_base_dir = $(shell basename $(CURDIR)) + +upload_location_wm = physics.wm.edu:public_html/classes/$(class_base_dir) +hdrive_location = ~/disk_h/$(class_base_dir) +# see 2012_fall_practical_computing_for_scientists for PREVIOUS_YEAR_MATERIALS_DIR usage +PREVIOUS_YEAR_MATERIALS_DIR = + + +files4upload = $(html_targets) $(samples) $(syllabus_dir) $(misc) + +upscr = rsync --delete -ave ssh + +include $(TOPDIR)/common.mk +include ./local.mk +dest_dir = $(DESTDIR)$(PREFIX)/$(PACKAGE_DIR) + +include $(MAKEINCLUDE_DIR)/t2t.mk +include $(MAKEINCLUDE_DIR)/pandoc.mk +include $(MAKEINCLUDE_DIR)/rem.mk +include $(MAKEINCLUDE_DIR)/tex.mk +include $(MAKEINCLUDE_DIR)/css.mk +include $(MAKEINCLUDE_DIR)/raw.mk +include $(MAKEINCLUDE_DIR)/subdirs.mk +include $(MAKEINCLUDE_DIR)/dest_dirs.mk + + +.DEFAULT_GOAL := all + +all: compile install + +compile: subdirs $(REQUIRED_TARGETS) + +clean: subdirs $(CLEAN_TARGETS) + +real_clean: subdirs clean $(REAL_CLEAN_TARGETS) + +install: subdirs $(INSTALL_TARGETS) + +upload: upload_location_wm + + +upload_location_wm: + $(MAKE) upload2location upload_location=$(upload_location_wm) + +upload2location: + $(upscr) $(PREFIX)/ $(upload_location) + +hdrive: + $(MAKE) DESTDIR=$(hdrive_location)/ + +backup: + rsync -rvze ssh * spiffy.physics.wm.edu:jobs/wm/$(class_base_dir)/ + diff --git a/common.mk b/common.mk new file mode 100644 index 0000000..4fa1492 --- /dev/null +++ b/common.mk @@ -0,0 +1,23 @@ +# -*- make -*- +# (C) 2013 by Eugeniy Mikhailov, <evgmik@gmail.com> + +ifndef PREFIX + PREFIX=web_site_version +endif + +ifndef DESTDIR + DESTDIR=$(TOPDIR)/ +endif + +INSTALL = install -p +MAKEINCLUDE_DIR = $(TOPDIR)/makefile_templates + +CONFIG_DIR ?= $(TOPDIR)/configs +PANDOC_TEMPLATE ?= class + +V ?= 0 +ifeq ($(V),0) +# Don’t print command lines which are run +.SILENT: + +endif diff --git a/configs/config.md b/configs/config.md new file mode 100644 index 0000000..0685155 --- /dev/null +++ b/configs/config.md @@ -0,0 +1,3 @@ +<#include "./this_class_cfg.md" +<#define HmPgURL http://physics.wm.edu/~evmik/ +<#define EugeniyMikhailov [Eugeniy E. Mikhailov](HmPgURL) diff --git a/configs/templates/class.html5 b/configs/templates/class.html5 new file mode 100644 index 0000000..14bff62 --- /dev/null +++ b/configs/templates/class.html5 @@ -0,0 +1,64 @@ +<!DOCTYPE html> +<html$if(lang)$ lang="$lang$"$endif$> +<head> + <meta charset="utf-8"> + <meta name="generator" content="pandoc"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> +$for(author-meta)$ + <meta name="author" content="$author-meta$"> +$endfor$ +$if(date-meta)$ + <meta name="dcterms.date" content="$date-meta$"> +$endif$ + <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title> + <style type="text/css">code{white-space: pre;}</style> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> +$if(quotes)$ + <style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style> +$endif$ +$if(highlighting-css)$ + <style type="text/css"> +$highlighting-css$ + </style> +$endif$ +$for(css)$ + <link rel="stylesheet" href="$css$"> +$endfor$ +$if(math)$ + $math$ +$endif$ +$for(header-includes)$ + $header-includes$ +$endfor$ +</head> +<body> +$for(include-before)$ +$include-before$ +$endfor$ +$if(title)$ +<header> +<h1 class="title">$title$</h1> +$if(subtitle)$ +<h1 class="subtitle">$subtitle$</h1> +$endif$ +$for(author)$ +<h2 class="author">$author$</h2> +$endfor$ +$if(date)$ +<h3 class="date">$date$</h3> +$endif$ +</header> +$endif$ +$if(toc)$ +<nav id="$idprefix$TOC"> +$toc$ +</nav> +$endif$ +$body$ +$for(include-after)$ +$include-after$ +$endfor$ +</body> +</html> diff --git a/configs/templates/class.latex b/configs/templates/class.latex new file mode 100644 index 0000000..0579f30 --- /dev/null +++ b/configs/templates/class.latex @@ -0,0 +1,244 @@ +\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} +$if(fontfamily)$ +\usepackage[$fontfamilyoptions$]{$fontfamily$} +$else$ +\usepackage{lmodern} +$endif$ +$if(linestretch)$ +\usepackage{setspace} +\setstretch{$linestretch$} +$endif$ +\usepackage{amssymb,amsmath} +\usepackage{ifxetex,ifluatex} +\usepackage{fixltx2e} % provides \textsubscript +\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex + \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} + \usepackage[utf8]{inputenc} +$if(euro)$ + \usepackage{eurosym} +$endif$ +\else % if luatex or xelatex + \ifxetex + \usepackage{mathspec} + \else + \usepackage{fontspec} + \fi + \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} + \newcommand{\euro}{€} +$if(mainfont)$ + \setmainfont[$mainfontoptions$]{$mainfont$} +$endif$ +$if(sansfont)$ + \setsansfont[$sansfontoptions$]{$sansfont$} +$endif$ +$if(monofont)$ + \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$monofontoptions$$endif$]{$monofont$} +$endif$ +$if(mathfont)$ + \setmathfont(Digits,Latin,Greek)[$mathfontoptions$]{$mathfont$} +$endif$ +$if(CJKmainfont)$ + \usepackage{xeCJK} + \setCJKmainfont[$CJKoptions$]{$CJKmainfont$} +$endif$ +\fi +% use upquote if available, for straight quotes in verbatim environments +\IfFileExists{upquote.sty}{\usepackage{upquote}}{} +% use microtype if available +\IfFileExists{microtype.sty}{% +\usepackage{microtype} +\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts +}{} +$if(geometry)$ +\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} +$endif$ +\makeatletter +\@ifpackageloaded{hyperref}{}{% +\ifxetex + \usepackage[setpagesize=false, % page size defined by xetex + unicode=false, % unicode breaks when used with xetex + xetex]{hyperref} +\else + \usepackage[unicode=true]{hyperref} +\fi +} +\@ifpackageloaded{color}{ + \PassOptionsToPackage{usenames,dvipsnames}{color} +}{% + \usepackage[usenames,dvipsnames]{color} +} +\makeatother +\hypersetup{breaklinks=true, + bookmarks=true, + pdfauthor={$author-meta$}, + pdftitle={$title-meta$}, + colorlinks=true, + citecolor=$if(citecolor)$$citecolor$$else$blue$endif$, + urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$, + linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$, + pdfborder={0 0 0} + $if(hidelinks)$,hidelinks,$endif$} +\urlstyle{same} % don't use monospace font for urls +$if(lang)$ +\ifxetex + \usepackage{polyglossia} + \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$} +$for(polyglossia-otherlangs)$ + \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$} +$endfor$ +\else + \usepackage[shorthands=off,$babel-lang$]{babel} +\fi +$endif$ +$if(natbib)$ +\usepackage{natbib} +\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} +$endif$ +$if(biblatex)$ +\usepackage{biblatex} +$for(bibliography)$ +\addbibresource{$bibliography$} +$endfor$ +$endif$ +$if(listings)$ +\usepackage{listings} +$endif$ +$if(lhs)$ +\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} +$endif$ +$if(highlighting-macros)$ +$highlighting-macros$ +$endif$ +$if(verbatim-in-note)$ +\usepackage{fancyvrb} +\VerbatimFootnotes % allows verbatim text in footnotes +$endif$ +$if(tables)$ +\usepackage{longtable,booktabs} +$endif$ +$if(graphics)$ +\usepackage{graphicx,grffile} +\makeatletter +\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} +\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} +\makeatother +% Scale images if necessary, so that they will not overflow the page +% margins by default, and it is still possible to overwrite the defaults +% using explicit options in \includegraphics[width, height, ...]{} +\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} +$endif$ +$if(links-as-notes)$ +% Make links footnotes instead of hotlinks: +\renewcommand{\href}[2]{#2\footnote{\url{#1}}} +$endif$ +$if(strikeout)$ +\usepackage[normalem]{ulem} +% avoid problems with \sout in headers with hyperref: +\pdfstringdefDisableCommands{\renewcommand{\sout}{}} +$endif$ +$if(indent)$ +$else$ +\setlength{\parindent}{0pt} +\setlength{\parskip}{6pt plus 2pt minus 1pt} +$endif$ +\setlength{\emergencystretch}{3em} % prevent overfull lines +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} +$if(numbersections)$ +\setcounter{secnumdepth}{5} +$else$ +\setcounter{secnumdepth}{0} +$endif$ +$if(dir)$ +\ifxetex + % load bidi as late as possible as it modifies e.g. graphicx + $if(latex-dir-rtl)$ + \usepackage[RTLdocument]{bidi} + $else$ + \usepackage{bidi} + $endif$ +\fi +\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex + \TeXXeTstate=1 + \newcommand{\RL}[1]{\beginR #1\endR} + \newcommand{\LR}[1]{\beginL #1\endL} + \newenvironment{RTL}{\beginR}{\endR} + \newenvironment{LTR}{\beginL}{\endL} +\fi +$endif$ + +$if(title)$ +\title{$title$$if(subtitle)$\\\vspace{0.5em}{\large $subtitle$}$endif$} +$endif$ +$if(author)$ +\author{$for(author)$$author$$sep$ \and $endfor$} +$endif$ +\date{$date$} +$for(header-includes)$ +$header-includes$ +$endfor$ + +$if(subparagraph)$ +$else$ +% Redefines (sub)paragraphs to behave more like sections +\ifx\paragraph\undefined\else +\let\oldparagraph\paragraph +\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} +\fi +\ifx\subparagraph\undefined\else +\let\oldsubparagraph\subparagraph +\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} +\fi +$endif$ + +\begin{document} +$if(title)$ +\maketitle +$endif$ +$if(abstract)$ +\begin{abstract} +$abstract$ +\end{abstract} +$endif$ + +$for(include-before)$ +$include-before$ + +$endfor$ +$if(toc)$ +{ +\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$} +\setcounter{tocdepth}{$toc-depth$} +\tableofcontents +} +$endif$ +$if(lot)$ +\listoftables +$endif$ +$if(lof)$ +\listoffigures +$endif$ +$body$ + +$if(natbib)$ +$if(bibliography)$ +$if(biblio-title)$ +$if(book-class)$ +\renewcommand\bibname{$biblio-title$} +$else$ +\renewcommand\refname{$biblio-title$} +$endif$ +$endif$ +\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} + +$endif$ +$endif$ +$if(biblatex)$ +\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ + +$endif$ +$for(include-after)$ +$include-after$ + +$endfor$ +\end{document} diff --git a/configs/tex_metadata.yaml b/configs/tex_metadata.yaml new file mode 100644 index 0000000..cdbefdb --- /dev/null +++ b/configs/tex_metadata.yaml @@ -0,0 +1,7 @@ + +--- +documentclass: evmikcompact +fontsize: 12pt +papersize: letterpaper + +... diff --git a/configs/this_class_cfg.md b/configs/this_class_cfg.md new file mode 100644 index 0000000..78afb9a --- /dev/null +++ b/configs/this_class_cfg.md @@ -0,0 +1,24 @@ +<#define ThisClassID [Physics 251](path2root) +<#define ThisClassTitle Experimental Atomic Physics +<#define ThisClassSemester Fall 2019 +<#define ThisClassURL path2root + +<#define PiLab Measure pi +<#define Interf [Optical interferometry](path2manual/interferometry.pdf) +<#define emRatio [Charge mass ratio](path2manual/emratio.pdf) +<#define eDiffr [Electron diffraction](path2manual/ediffract.pdf) +<#define FaradR [Faraday rotation](path2manual/faraday_rotation.pdf) +<#define bBody [Blackbody radiation](path2manual/blackbody.pdf) +<#define SuperC [Superconductivity](path2manual/supcon.pdf) +<#define singPh [Single photon interference](path2manual/single-photon-interference.pdf) +<#define phElect [Photoelectric effect](path2manual/pe-effect.pdf) +<#define LabTour [Research Tour](path2tour/research_tour.html) +<#define Spectr [Spectroscopy](path2manual/spectr.pdf) +<#define SpPrW1 [Special Project Week 1](path2root/special_projects.html) +<#define SpPrW2 [Special Project Week 2 ](path2root/special_projects.html) +<#define FallBrk Fall break (no lab) +<#define NoLab No lab +<#define NoMtng No meeting +<#define ThankG Thanksgiving (no lab) +<#define SpPrPrs Special project final presentation + diff --git a/css_styles/Makefile b/css_styles/Makefile new file mode 120000 index 0000000..8e5609b --- /dev/null +++ b/css_styles/Makefile @@ -0,0 +1 @@ +../makefile_templates/subdir_makefile/Makefile
\ No newline at end of file diff --git a/css_styles/evmik.scss b/css_styles/evmik.scss new file mode 100644 index 0000000..e239920 --- /dev/null +++ b/css_styles/evmik.scss @@ -0,0 +1,361 @@ +// --------- Color definitions start ------------------- +$body_bg: #336699; +$body_padding: 0px; +$body_margin: 1%; +$body_font_family: Sans-Serif; + +$toc_width: 20%; + +$body_header_bg: $body_bg; +$body_header_fg: white; + +$link_color_cmd_normal: black; +$link_color_cmd_visited: $link_color_cmd_normal; +$link_color_cmd_hover: $link_color_cmd_normal; +$link_color_cmd_active: $link_color_cmd_normal; + +$normal_bg: #ffcc99; +$normal_fg: black; + +$sidebar_bg: lighten($body_bg,35%); +$sidebar_border_clr: $body_bg; + +$toc_bg: lighten($body_bg,35%); +$toc_border_clr: $body_bg; + + +$div_padding: 0.5%; +$div_margin_vert: 0.5%; +$div_margin_horiz: 0.5%; + +$small_screen: 480px; +$large_screen: 1200px; + +$errormsg_bg: #ff0000; +$infomsg_bg: #ffccff; + +$attention_bg: #8f0000; +$attention_fg: white; + + +$Quiz: #CFECEC; +$Homework: #C3FDB8; +$LabReport: #82CAFA; +$MidTerm: #f0b7f0; +$FinalExam: #f08ab6; +$Participation: #cccc99; +$Unset: #cccccc; + +$table_hover_bg: #ffeebb; + +$controls_bg: #dddddd; + +$col_controls_bg: #dddddd; +$col_controls_fg: black; +$col_errata_fg: white; +$col_errata_bg: $body_bg; +$col_announce_fg: $normal_fg; +$col_announce_bg: #24E0FB; +$col_controls_dangerous_bg: red; +$col_controls_dangerous_fg: black; +// --------- Color definitions end ------------------- + + +body { + padding: $body_padding; + margin: $body_margin; + background-color: $body_bg; + color: $normal_fg; + font-family: $body_font_family; + text-align: justify; + /* + a { + color: $link_color_cmd_normal; + text-decoration: none; + &:visited { color: $link_color_cmd_visited; } + &:hover { + color: $link_color_cmd_hover; + text-decoration:underline; + background-color: lighten($controls_bg,20%); + } + &:active { + color: $link_color_cmd_active; + text-decoration:underline; + background-color: lighten($controls_bg,20%); + } + } + */ + + div { + background-color: $normal_bg; + color: $normal_fg; + padding: { + top: $div_padding; + bottom: $div_padding; + left: $div_padding; + right: $div_padding; + } + margin: { + top: $div_margin_vert; + bottom: $div_margin_vert; + left: $div_margin_horiz; + right: $div_margin_horiz; + } + pre { + background-color: lighten($normal_bg,10%); + padding: 15px; + border: 1px dashed black; + } + ul { + padding-left: 1em; + } + } + div.toc { + margin: { + right: $body_margin; + left: $div_padding;; + top: $div_padding; + bottom: $div_padding; + } + float: right; + z-index: 1; + background-color: $toc_bg; + width : 15em; + border-style: solid; + border-width: 1px; + border-color: $toc_border_clr; + ul { + list-style-type : none; + padding: { + top: 0; + bottom: 0; + left: 1em; + right: 0; + } + margin: 0; + } + p { + margin: 0; + } + h3 { + padding: .1em; + margin: 0; + font-weight: bold; + } + // small screen/handheld + // @media (max-width: $small_screen) { + // above gives hick up to sass + // so I have to do hard coded values + @media (max-width: 4in) { + float: none; + width: auto; + margin: 0; + padding: 0; + h3 { + display: none; + } + ul { + padding: 0; + list-style-type : none; + text-align: center; + } + li { + display: inline-block; + padding: .4em; + } + } + } + // div.toc { + // float: left; + // width: $toc_width; + // font-weight: bold; + // a { + // color: black; + // text-decoration: none; + // } + // a:hover { + // text-decoration: underline; + // } + // } + div.body { + // float: right; + // width: 100% - $toc_width - 5%; + h1 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 150%; + font-weight: bold; + color: $body_header_fg; + background-color: $body_header_bg; + } + h2 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 130%; + font-weight: normal; + color: $body_header_fg; + background-color: $body_header_bg; + } + h3 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 115%; + font-weight: normal; + color: $body_header_fg; + background-color: $body_header_bg; + } + img.myphoto { + float: right; + text-align: right; + width: 10em; + } + #sidebar { + margin: { + left: $div_padding; + right: 0; + top: 0; + bottom: 0; + } + float: right; + z-index: 1; + background-color: $sidebar_bg; + width : 10em; + border-style: solid; + border-width: 1px; + border-color: $sidebar_border_clr; + ul { + list-style-type : none; + padding: { + top: 0; + bottom: 0; + left: 1em; + right: 0; + } + margin: 0; + } + p { + margin: 0; + } + h3 { + padding: .1em; + margin: 0; + font-weight: bold; + } + } + } + div.header { + text-align: left; + font-family: Sans-Serif; + h1 { + margin: 2pt; + font-size: 200%; + font-weight: bold; + a { + color: $normal_fg; + } + } + h2 { + margin: 2pt; + font-size: 120%; + font-weight: normal; + } + h3 { + margin: 2pt; + font-size: 110%; + font-weight: normal; + } + } + div.errata { + background: $col_errata_bg; + color: $col_errata_fg; + h1 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 150%; + font-weight: bold; + color: white; + background-color: red; + } + dt { + background-color: #FF0000; + color: white; + font-weight: bold; + } + dl { + background-color: #FF7a7a; + color: black; + } + } + + div.announce { + background-color: $col_announce_bg; + color: $col_announce_fg; + } +} + +body.home_page { + div.zero_p_space { + margin: 0; + padding: 0; + p { + margin: 0; + } + } + ul { + list-style-type : none; + padding: 0; + margin: 0; + } +} + + + +/* + * print styles + */ +@media print { + * { + background-color: white !important; + background-image: none !important; + } + div.controls { + display: none; + } + div.greetings { + display: none; + } + div.footer { + display: none; + } + div.gradestable { + table.gradestable { + th { + font-weight: bold; + valign: top; + } + } + a[href]:after { + content:none; + } + a img { + display: none; + } + } +} + + + + +// vim: ts=2:sw=2:tw=74:fdm=indent diff --git a/css_styles/evmik_pandoc_class.scss b/css_styles/evmik_pandoc_class.scss new file mode 100644 index 0000000..262f300 --- /dev/null +++ b/css_styles/evmik_pandoc_class.scss @@ -0,0 +1,398 @@ +// --------- Color definitions start ------------------- +$body_bg: #336699; +$body_padding: 0px; +$body_margin: 1%; +$body_font_family: Sans-Serif; + +$toc_width: 20%; + +$body_header_bg: $body_bg; +$body_header_fg: white; + +$link_color_cmd_normal: black; +$link_color_cmd_visited: $link_color_cmd_normal; +$link_color_cmd_hover: $link_color_cmd_normal; +$link_color_cmd_active: $link_color_cmd_normal; + +$normal_bg: #ffcc99; +$normal_fg: black; + +$sidebar_bg: lighten($body_bg,35%); +$sidebar_border_clr: $body_bg; + +$toc_bg: lighten($body_bg,35%); +$toc_border_clr: $body_bg; + + +$div_padding: 0.5%; +$div_margin_vert: 0.5%; +$div_margin_horiz: 0.5%; + +$small_screen: 480px; +$large_screen: 1200px; + +$errormsg_bg: #ff0000; +$infomsg_bg: #ffccff; + +$attention_bg: #8f0000; +$attention_fg: white; + +$col_errata_header_fg: white; +$col_errata_header_bg: #FF0000; +$col_errata_bg: #FF7a7a; +$col_errata_fg: $normal_fg; + +$col_announce_header_fg: $body_header_fg; +$col_announce_header_bg: lighten($body_header_bg,5%); +$col_announce_fg: $normal_fg; +$col_announce_bg: #24E0FB; + +$Quiz: #CFECEC; +$Homework: #C3FDB8; +$LabReport: #82CAFA; +$MidTerm: #f0b7f0; +$FinalExam: #f08ab6; +$Participation: #cccc99; +$Unset: #cccccc; + +$table_hover_bg: #ffeebb; + +$controls_bg: #dddddd; + +$col_controls_bg: #dddddd; +$col_controls_fg: black; + +$col_controls_dangerous_bg: red; +$col_controls_dangerous_fg: black; +// --------- Color definitions end ------------------- + + +body { + padding: $body_padding; + margin: $body_margin; + background-color: $body_bg; + color: $normal_fg; + font-family: $body_font_family; + text-align: justify; + /* + a { + color: $link_color_cmd_normal; + text-decoration: none; + &:visited { color: $link_color_cmd_visited; } + &:hover { + color: $link_color_cmd_hover; + text-decoration:underline; + background-color: lighten($controls_bg,20%); + } + &:active { + color: $link_color_cmd_active; + text-decoration:underline; + background-color: lighten($controls_bg,20%); + } + } + */ + + section { + background-color: $normal_bg; + color: $normal_fg; + padding: { + top: $div_padding; + bottom: $div_padding; + left: $div_padding; + right: $div_padding; + } + margin: { + top: $div_margin_vert; + bottom: $div_margin_vert; + left: $div_margin_horiz; + right: $div_margin_horiz; + } + pre { + background-color: lighten($normal_bg,10%); + padding: 15px; + border: 1px dashed black; + } + ul { + padding-left: 1em; + } + // float: right; + // width: 100% - $toc_width - 5%; + h1 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 150%; + font-weight: bold; + color: $body_header_fg; + background-color: $body_header_bg; + } + h2 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 130%; + font-weight: normal; + color: $body_header_fg; + background-color: $body_header_bg; + } + h3 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 115%; + font-weight: normal; + color: $body_header_fg; + background-color: $body_header_bg; + } + img.myphoto { + float: right; + text-align: right; + width: 10em; + } + #sidebar { + margin: { + left: $div_padding; + right: 0; + top: 0; + bottom: 0; + } + float: right; + z-index: 1; + background-color: $sidebar_bg; + width : 10em; + border-style: solid; + border-width: 1px; + border-color: $sidebar_border_clr; + ul { + list-style-type : none; + padding: { + top: 0; + bottom: 0; + left: 1em; + right: 0; + } + margin: 0; + } + p { + margin: 0; + } + h3 { + padding: .1em; + margin: 0; + font-weight: bold; + } + } + } + section.level2, section.level3 { + padding: { + top: 0*$div_padding; + bottom: 0*$div_padding; + left: 0*$div_padding; + right: 0*$div_padding; + } + margin: { + top: 0*$div_margin_vert; + bottom: 0*$div_margin_vert; + left: 0*$div_margin_horiz; + right: 0*$div_margin_horiz; + } + } + nav#TOC { + margin: { + right: $body_margin; + left: $div_padding;; + top: $div_padding; + bottom: $div_padding; + } + float: right; + z-index: 1; + background-color: $toc_bg; + width : 15em; + border-style: solid; + border-width: 1px; + border-color: $toc_border_clr; + ul { + list-style-type : none; + padding: { + top: 0; + bottom: 0; + left: 1em; + right: 0; + } + margin: 0; + } + p { + margin: 0; + } + h3 { + padding: .1em; + margin: 0; + font-weight: bold; + } + // small screen/handheld + // @media (max-width: $small_screen) { + // above gives hick up to sass + // so I have to do hard coded values + @media (max-width: 4in) { + float: none; + width: auto; + margin: 0; + padding: 0; + h3 { + display: none; + } + ul { + padding: 0; + list-style-type : none; + text-align: center; + } + li { + display: inline-block; + padding: .4em; + } + } + } + header { + text-align: left; + font-family: Sans-Serif; + background-color: $normal_bg; + color: $normal_fg; + padding: { + top: 0*$div_padding; + bottom: 0*$div_padding; + left: 0*$div_padding; + right: 0*$div_padding; + } + margin: { + top: $div_margin_vert; + bottom: $div_margin_vert; + left: $div_margin_horiz; + right: $div_margin_horiz; + } + h1 { + margin: 2pt; + font-size: 200%; + font-weight: bold; + background-color: $normal_bg; + color: $normal_fg; + a { + color: $normal_fg; + } + } + h2 { + margin: 2pt; + font-size: 120%; + font-weight: normal; + background-color: $normal_bg; + color: $normal_fg; + } + h3 { + margin: 2pt; + font-size: 110%; + font-weight: normal; + background-color: $normal_bg; + color: $normal_fg; + } + } + section#errata { + background-color: $col_errata_bg; + color: $col_errata_fg; + h1 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 150%; + font-weight: bold; + color: $col_errata_header_fg; + background-color: $col_errata_header_bg; + } + dt { + color: $col_errata_header_fg; + background-color: $col_errata_header_bg; + font-weight: bold; + } + dl { + color: $col_errata_fg; + background-color: $col_errata_bg; + } + } + + section#announcements { + background-color: $col_announce_bg; + color: $col_announce_fg; + h1 { + padding: { + left: $div_padding; + right: $div_padding; + } + text-align: left; + font-size: 150%; + font-weight: bold; + color: $col_announce_header_fg; + background-color: $col_announce_header_bg; + } + } +} + +body.home_page { + div.zero_p_space { + margin: 0; + padding: 0; + p { + margin: 0; + } + } + ul { + list-style-type : none; + padding: 0; + margin: 0; + } +} + + + +/* + * print styles + */ +@media print { + * { + background-color: white !important; + background-image: none !important; + } + div.controls { + display: none; + } + div.greetings { + display: none; + } + div.footer { + display: none; + } + div.gradestable { + table.gradestable { + th { + font-weight: bold; + valign: top; + } + } + a[href]:after { + content:none; + } + a img { + display: none; + } + } +} + + + + +// vim: ts=2:sw=2:tw=74:fdm=indent diff --git a/css_styles/local.mk b/css_styles/local.mk new file mode 100644 index 0000000..2399a68 --- /dev/null +++ b/css_styles/local.mk @@ -0,0 +1,13 @@ +# -*- make -*- +# (C) 2013 by Eugeniy Mikhailov, <evgmik@gmail.com> + + +PACKAGE_DIR = $(shell basename `pwd`) + +tex_independent := +t2t_fig_files := +tex_fig_files := + +REQUIRED_TARGETS += css +INSTALL_TARGETS += install_css + diff --git a/index.md b/index.md new file mode 100644 index 0000000..d920fb1 --- /dev/null +++ b/index.md @@ -0,0 +1,26 @@ +<#define path2root . +<#define path2manual . +<#include "./configs/config.md" +% Experimental atomic physics lab manual +% by EugeniyMikhailov + +# Single pdf + +The whole [lab manual pdf](./manual.pdf) + +# Separate chapters + +- Interf +- emRatio +- eDiffr +- bBody +- phElect +- singPh +- FaradR +- Spectr +- SuperC + + + + + diff --git a/index.t2t b/index.t2t deleted file mode 100644 index 6f55e27..0000000 --- a/index.t2t +++ /dev/null @@ -1,27 +0,0 @@ -ThisClassID - Lab manual -by EugeniyMikhailov - - - -%!includeconf: ../configs/config.t2t -%!includeconf: ../configs/labs_acronyms_cfg.t2t -%!options(html): --no-toc -%!postproc: path2root '..' - -The whole [lab manual pdf ./manual.pdf] - -Separate chaptes -- Interf -- e/m -- eDiffr -- bBody -- phElect -- singPh -- FaradR -- Spectr -- SuperC - - - - - @@ -29,6 +29,6 @@ tex_includes := title_page.tex evmik_manual.sty \ supcon.tex -REQUIRED_TARGETS += pdf_tex html_t2t -INSTALL_TARGETS += install_pdf_tex install_html_t2t +REQUIRED_TARGETS += pdf_tex html_t2t html_md +INSTALL_TARGETS += install_pdf_tex install_html_t2t install_html_md |