Explorar el Código

Append current CV to thesis

Ryan C. Thompson hace 5 años
padre
commit
b4f1d1ad9d
Se han modificado 3 ficheros con 2488 adiciones y 17 borrados
  1. 11 1
      Snakefile
  2. 2461 0
      ryan_thompson_cv.pdf
  3. 16 16
      thesis.lyx

+ 11 - 1
Snakefile

@@ -173,7 +173,6 @@ def lyx_bib_deps(lyxfile):
     except FileNotFoundError:
         pass
 
-
 def lyx_gfx_deps(lyxfile):
     '''Return an iterator over all graphics files included by a LyX file.'''
     try:
@@ -184,6 +183,16 @@ def lyx_gfx_deps(lyxfile):
     except FileNotFoundError:
         pass
 
+def lyx_pdfpages_deps(lyxfile):
+    try:
+        with open(lyxfile) as f:
+            lyx_text = f.read()
+
+        for m in regex.finditer('\\\\begin_inset External\\s+template\s+PDFPages\s+filename\s+(.*?)\n', lyx_text, regex.MULTILINE):
+            yield m.group(1)
+    except FileNotFoundError:
+        pass
+
 def lyx_hrefs(lyxfile):
     '''Return an iterator over hrefs in a LyX file.'''
     try:
@@ -239,6 +248,7 @@ rule thesis_lyx_to_pdf:
            gfx_deps = lambda wildcards: lyx_gfx_deps(wildcards.basename + '.lyx'),
            bib_deps = lambda wildcards: lyx_bib_deps(wildcards.basename + '.lyx'),
            tex_deps = lambda wildcards: lyx_input_deps(wildcards.basename + '.lyx'),
+           pdfpages_deps = lambda wildcards: lyx_pdfpages_deps(wildcards.basename + '.lyx'),
     output: pdf='{basename,thesis.*}.pdf'
     run:
         if not LYX_PATH or LYX_PATH == '/bin/false':

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 2461 - 0
ryan_thompson_cv.pdf


+ 16 - 16
thesis.lyx

@@ -20,6 +20,7 @@
 % Make watermark not copyable (in Adobe Reader)
 \SetWatermarkText{\BeginAccSupp{method=escape,ActualText={}}DRAFT\EndAccSupp{}}
 
+
 % Set up required header format
 \usepackage{fancyhdr}
 \pagestyle{fancy}
@@ -367,6 +368,7 @@ Use roman numeral page numbers
 \end_layout
 
 \begin_layout Standard
+\align center
 \begin_inset Note Note
 status open
 
@@ -23774,24 +23776,24 @@ options "bibtotoc"
 \end_layout
 
 \begin_layout Standard
-\begin_inset Note Note
+\align center
+\begin_inset ERT
 status open
 
 \begin_layout Plain Layout
-How to include other PDFs: https://tex.stackexchange.com/a/28323/5654
-\end_layout
-
-\end_inset
 
 
+\backslash
+phantomsection
 \end_layout
 
-\begin_layout Standard
-\begin_inset Flex TODO Note (inline)
-status open
-
 \begin_layout Plain Layout
-Appendix: Publications?
+
+
+\backslash
+addcontentsline{toc}{chapter}{
+\backslash
+emph{Curriculum vitae}}
 \end_layout
 
 \end_inset
@@ -23800,12 +23802,10 @@ Appendix: Publications?
 \end_layout
 
 \begin_layout Standard
-\begin_inset Flex TODO Note (inline)
-status open
-
-\begin_layout Plain Layout
-Curriculum vitae
-\end_layout
+\begin_inset External
+	template PDFPages
+	filename ryan_thompson_cv.pdf
+	extra LaTeX "pages=-"
 
 \end_inset
 

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio