Browse Source

Progress on pixel_assembly

Caleb Fangmeier 4 years ago
parent
commit
9eab04be34

+ 5 - 0
build/thesis.tex

@@ -104,6 +104,11 @@ citestyle=phys  % Amaerican Institute of Physics style
 
 %%%%%%%%% End Preamble from pandoc
 
+% Adds line numbers. Comment out for final draft
+\usepackage{lineno}
+\linenumbers
+
+
 \begin{document}
 %% Start formatting the first few special pages
 %% frontmatter is needed to set the page numbering correctly

File diff suppressed because it is too large
+ 22 - 9
content/06_pixel_assembly.md


BIN
content/figures/pixel_assembly/assembly_flow.png


BIN
content/figures/pixel_assembly/disk_assembly.jpg


BIN
content/figures/pixel_assembly/module.jpg


BIN
content/figures/pixel_assembly/phase_0_performance.png


BIN
content/figures/pixel_assembly/tracker_compare.jpg


+ 12 - 0
content/references.bib

@@ -138,6 +138,18 @@
   year = "2013",
 }
 
+@online{daq_software,
+    title = {Phase II Telescope Software},
+    url = {https://github.com/cfangmeier/VFPIX-telescope-Code},
+    date = {2016},
+}
+
+@online{daq_hardware,
+    title = {Phase II Telescope Hardware Designs},
+    url = {https://github.com/cfangmeier/VFPIX-telescope-PCB},
+    date = {2016},
+}
+
 @online{apc128_testboard_designs,
     title = {APC128 Testboard Designs},
     url = {https://github.com/cfangmeier/VFPIX-telescope-PCB/tree/master/APC128testboard},

+ 2 - 0
convert.py

@@ -11,6 +11,7 @@ def make_tex(infilename):
     run(('pandoc', '--biblatex',
          '-F', 'pandoc-crossref',
          '-F', '../filters/note_filter.py',
+         # '-F', '../filters/shorthand_filter.py',
          '-s', infilename, '-o', outfilename,
          '--metadata=bibliography:references.bib',
          '--template=chapter',
@@ -27,6 +28,7 @@ def make_html(infilename):
     run(('pandoc',
          '-F', 'pandoc-crossref',
          '-F', 'pandoc-citeproc',
+         # '-F', '../filters/shorthand_filter.py',
          '-s', infilename, '-o', outfilename,
          '--mathjax',
          '--metadata=linkReferences:true',

+ 29 - 0
filters/shorthand_filter.py

@@ -0,0 +1,29 @@
+#! /usr/bin/env python3
+import panflute as pf
+
+shorthands = {
+    r'\um': r'$\mu \mathrm{m}$',
+}
+
+
+def handle_shorthand(elem, doc):
+    if isinstance(elem, pf.Str):
+        for shorthand, replacement in shorthands.items():
+            parts = elem.text.split(shorthand)
+            if len(parts) > 1:
+                # build a new thinggy
+                pass
+            else:
+
+            new = elem.text.replace(shorthand, replacement)
+            if new != elem.text:
+                print(new, elem.text)
+    return elem
+
+
+def main(doc=None):
+    return pf.run_filter(handle_shorthand, doc=doc)
+
+
+if __name__ == "__main__":
+    main()