From 978cedf71604fff38943cfbc2f9d90f3476f5123 Mon Sep 17 00:00:00 2001 From: Ben Whitney Date: Wed, 8 Mar 2017 17:03:53 -0500 Subject: [PATCH] Awesome: follow FRESCA in writing section. 1. Writing publishers can be either strings or objects. 2. Writings have summaries, not highlights. --- themes/awesome/src/latex/examples/cv/writing.tex | 14 +++++++------- .../awesome/src/latex/examples/resume/writing.tex | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/themes/awesome/src/latex/examples/cv/writing.tex b/themes/awesome/src/latex/examples/cv/writing.tex index 4eb8636..b10bf7b 100644 --- a/themes/awesome/src/latex/examples/cv/writing.tex +++ b/themes/awesome/src/latex/examples/cv/writing.tex @@ -12,15 +12,15 @@ [~ _.each( r.writing, function(wri) { ~] %--------------------------------------------------------- \cventry - {[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role + {[~ if (_.isString(wri.publisher)) { ~] + [[ wri.publisher]] + [~ } else { ~] + print( wri.publisher ? wri.publisher.name : 'Unknown' ) + [~ } ~]} % Publisher {[[ wri.title ]]} % Title - {[[ wri.url ]]} % Location + {[[ wri.url ]]} % URL {[[ h.date(wri.date) ]]} % Date(s) - {[~ if (wri.highlights && wri.highlights.length) { ~] - \begin{cvitems} % Description(s) -[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] - \end{cvitems} - [~ } ~]} + {[[ wri.summary ]]} % Summary [~ }); ~] %--------------------------------------------------------- diff --git a/themes/awesome/src/latex/examples/resume/writing.tex b/themes/awesome/src/latex/examples/resume/writing.tex index 4eb8636..b10bf7b 100644 --- a/themes/awesome/src/latex/examples/resume/writing.tex +++ b/themes/awesome/src/latex/examples/resume/writing.tex @@ -12,15 +12,15 @@ [~ _.each( r.writing, function(wri) { ~] %--------------------------------------------------------- \cventry - {[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role + {[~ if (_.isString(wri.publisher)) { ~] + [[ wri.publisher]] + [~ } else { ~] + print( wri.publisher ? wri.publisher.name : 'Unknown' ) + [~ } ~]} % Publisher {[[ wri.title ]]} % Title - {[[ wri.url ]]} % Location + {[[ wri.url ]]} % URL {[[ h.date(wri.date) ]]} % Date(s) - {[~ if (wri.highlights && wri.highlights.length) { ~] - \begin{cvitems} % Description(s) -[~ print( h.pad( wri.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] - \end{cvitems} - [~ } ~]} + {[[ wri.summary ]]} % Summary [~ }); ~] %---------------------------------------------------------