From a9f002e89a07f1a0bc9b3fd1f93118cead2bdfad Mon Sep 17 00:00:00 2001 From: hacksalot Date: Sat, 13 Feb 2016 22:48:52 -0500 Subject: [PATCH] Awesome: Improve date handling. --- themes/awesome/src/latex/examples/cv/committees.tex | 4 ++-- themes/awesome/src/latex/examples/cv/education.tex | 4 ++-- themes/awesome/src/latex/examples/cv/experience.tex | 4 ++-- themes/awesome/src/latex/examples/cv/extracurricular.tex | 6 +++--- themes/awesome/src/latex/examples/cv/honors.tex | 4 ++-- themes/awesome/src/latex/examples/cv/presentation.tex | 4 ++-- themes/awesome/src/latex/examples/cv/writing.tex | 6 +++--- themes/awesome/src/latex/examples/resume/committees.tex | 4 ++-- themes/awesome/src/latex/examples/resume/education.tex | 4 ++-- themes/awesome/src/latex/examples/resume/experience.tex | 4 ++-- .../awesome/src/latex/examples/resume/extracurricular.tex | 6 +++--- themes/awesome/src/latex/examples/resume/honors.tex | 4 ++-- themes/awesome/src/latex/examples/resume/presentation.tex | 4 ++-- themes/awesome/src/latex/examples/resume/writing.tex | 6 +++--- 14 files changed, 32 insertions(+), 32 deletions(-) diff --git a/themes/awesome/src/latex/examples/cv/committees.tex b/themes/awesome/src/latex/examples/cv/committees.tex index 45262bf..090e0df 100644 --- a/themes/awesome/src/latex/examples/cv/committees.tex +++ b/themes/awesome/src/latex/examples/cv/committees.tex @@ -12,10 +12,10 @@ [~ _.each( r.governance, function(gov) { ~] %--------------------------------------------------------- \cvhonor - {[[ gov.position ]]} % Position + {[[ gov.role ]]} % Position {[[ gov.organization ]]} % Committee {[[ gov.location ]]} % Location - {[[ h.dateRange( gov ) ]]} % Date(s) + {[[ h.date(gov.start) ]]} % Date(s) [~ }); ~] %--------------------------------------------------------- diff --git a/themes/awesome/src/latex/examples/cv/education.tex b/themes/awesome/src/latex/examples/cv/education.tex index 59a543c..50be1ce 100644 --- a/themes/awesome/src/latex/examples/cv/education.tex +++ b/themes/awesome/src/latex/examples/cv/education.tex @@ -15,10 +15,10 @@ {[[ edu.title ]]} % Degree {[[ edu.institution ]]} % Institution {[[ edu.location ]]} % Location - {[~ print( h.dateRange( edu ) ) ~]} % Date(s) + {[[ h.dateRange( edu ) ]]} % Date(s) {[~ if( edu.highlights && edu.highlights.length ) { ~] \begin{cvitems} % Description(s) bullet points -[~ print( h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/cv/experience.tex b/themes/awesome/src/latex/examples/cv/experience.tex index 52c2155..0b076d5 100644 --- a/themes/awesome/src/latex/examples/cv/experience.tex +++ b/themes/awesome/src/latex/examples/cv/experience.tex @@ -15,10 +15,10 @@ {[[ job.position ]]} % Job title {[[ job.employer ]]} % Organization {[[ job.location ]]} % Location - {[~ print( h.dateRange( job ) ) ~]} % Date(s) + {[[ h.dateRange( job ) ]]} % Date(s) {[~ if (job.highlights && job.highlights.length ) { ~] \begin{cvitems} % Description(s) of tasks/responsibilities -[~ print( h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/cv/extracurricular.tex b/themes/awesome/src/latex/examples/cv/extracurricular.tex index 3e57e35..d1b7f59 100644 --- a/themes/awesome/src/latex/examples/cv/extracurricular.tex +++ b/themes/awesome/src/latex/examples/cv/extracurricular.tex @@ -12,13 +12,13 @@ [~ _.each( r.extracurricular, function(cur) { ~] %--------------------------------------------------------- \cventry - {[[ cur.role ]]} % Affiliation/role - {[[ cur.organization ]]} % Organization/group + {[[ cur.title ]]} % Affiliation/role + {[[ cur.activity ]]} % Organization/group {[[ cur.location ]]} % Location {[[ h.dateRange(cur) ]]} % Date(s) {[~ if (cur.highlights && cur.highlights.length ) { ~] \begin{cvitems} % Description(s) of experience/contributions/knowledge -[~ print( h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/cv/honors.tex b/themes/awesome/src/latex/examples/cv/honors.tex index 0f62a53..1bf20b7 100644 --- a/themes/awesome/src/latex/examples/cv/honors.tex +++ b/themes/awesome/src/latex/examples/cv/honors.tex @@ -21,7 +21,7 @@ {[[ rgn.title ]]} % Award {[[ rgn.from ]]} % Event {[[ rgn.location ]]} % Location - {[[ rgn.date ]]} % Date(s) + {[[ h.date(rgn.date) ]]} % Date(s) [~ }); ~] %--------------------------------------------------------- @@ -44,7 +44,7 @@ {[[ rgn.title ]]} % Award {[[ rgn.from ]]} % Event {[[ rgn.location ]]} % Location - {[[ rgn.date ]]} % Date(s) + {[[ h.date(rgn.date) ]]} % Date(s) [~ }); ~] %--------------------------------------------------------- diff --git a/themes/awesome/src/latex/examples/cv/presentation.tex b/themes/awesome/src/latex/examples/cv/presentation.tex index 4d20c61..ac5f4d9 100644 --- a/themes/awesome/src/latex/examples/cv/presentation.tex +++ b/themes/awesome/src/latex/examples/cv/presentation.tex @@ -15,10 +15,10 @@ {[[ spk.title ]]} % Role {[[ spk.event ]])} % Event {[[ spk.location ]]} % Location - {[[ spk.date ]]} % Date(s) + {[[ h.date(spk.date) ]]} % Date(s) {[~ if (r.speaking && r.speaking.length) { ~] \begin{cvitems} % Description(s) -[~ print( h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/cv/writing.tex b/themes/awesome/src/latex/examples/cv/writing.tex index dff9dec..4eb8636 100644 --- a/themes/awesome/src/latex/examples/cv/writing.tex +++ b/themes/awesome/src/latex/examples/cv/writing.tex @@ -12,10 +12,10 @@ [~ _.each( r.writing, function(wri) { ~] %--------------------------------------------------------- \cventry - {[[ wri.title ]]} % Role - {[[ wri.publisher ]]} % Title + {[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role + {[[ wri.title ]]} % Title {[[ wri.url ]]} % Location - {[[ wri.date ]]} % Date(s) + {[[ 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 ) ) ~] diff --git a/themes/awesome/src/latex/examples/resume/committees.tex b/themes/awesome/src/latex/examples/resume/committees.tex index 45262bf..090e0df 100644 --- a/themes/awesome/src/latex/examples/resume/committees.tex +++ b/themes/awesome/src/latex/examples/resume/committees.tex @@ -12,10 +12,10 @@ [~ _.each( r.governance, function(gov) { ~] %--------------------------------------------------------- \cvhonor - {[[ gov.position ]]} % Position + {[[ gov.role ]]} % Position {[[ gov.organization ]]} % Committee {[[ gov.location ]]} % Location - {[[ h.dateRange( gov ) ]]} % Date(s) + {[[ h.date(gov.start) ]]} % Date(s) [~ }); ~] %--------------------------------------------------------- diff --git a/themes/awesome/src/latex/examples/resume/education.tex b/themes/awesome/src/latex/examples/resume/education.tex index 59a543c..50be1ce 100644 --- a/themes/awesome/src/latex/examples/resume/education.tex +++ b/themes/awesome/src/latex/examples/resume/education.tex @@ -15,10 +15,10 @@ {[[ edu.title ]]} % Degree {[[ edu.institution ]]} % Institution {[[ edu.location ]]} % Location - {[~ print( h.dateRange( edu ) ) ~]} % Date(s) + {[[ h.dateRange( edu ) ]]} % Date(s) {[~ if( edu.highlights && edu.highlights.length ) { ~] \begin{cvitems} % Description(s) bullet points -[~ print( h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( edu.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/resume/experience.tex b/themes/awesome/src/latex/examples/resume/experience.tex index 52c2155..0b076d5 100644 --- a/themes/awesome/src/latex/examples/resume/experience.tex +++ b/themes/awesome/src/latex/examples/resume/experience.tex @@ -15,10 +15,10 @@ {[[ job.position ]]} % Job title {[[ job.employer ]]} % Organization {[[ job.location ]]} % Location - {[~ print( h.dateRange( job ) ) ~]} % Date(s) + {[[ h.dateRange( job ) ]]} % Date(s) {[~ if (job.highlights && job.highlights.length ) { ~] \begin{cvitems} % Description(s) of tasks/responsibilities -[~ print( h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( job.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/resume/extracurricular.tex b/themes/awesome/src/latex/examples/resume/extracurricular.tex index 3e57e35..d1b7f59 100644 --- a/themes/awesome/src/latex/examples/resume/extracurricular.tex +++ b/themes/awesome/src/latex/examples/resume/extracurricular.tex @@ -12,13 +12,13 @@ [~ _.each( r.extracurricular, function(cur) { ~] %--------------------------------------------------------- \cventry - {[[ cur.role ]]} % Affiliation/role - {[[ cur.organization ]]} % Organization/group + {[[ cur.title ]]} % Affiliation/role + {[[ cur.activity ]]} % Organization/group {[[ cur.location ]]} % Location {[[ h.dateRange(cur) ]]} % Date(s) {[~ if (cur.highlights && cur.highlights.length ) { ~] \begin{cvitems} % Description(s) of experience/contributions/knowledge -[~ print( h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( cur.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/resume/honors.tex b/themes/awesome/src/latex/examples/resume/honors.tex index 0f62a53..1bf20b7 100644 --- a/themes/awesome/src/latex/examples/resume/honors.tex +++ b/themes/awesome/src/latex/examples/resume/honors.tex @@ -21,7 +21,7 @@ {[[ rgn.title ]]} % Award {[[ rgn.from ]]} % Event {[[ rgn.location ]]} % Location - {[[ rgn.date ]]} % Date(s) + {[[ h.date(rgn.date) ]]} % Date(s) [~ }); ~] %--------------------------------------------------------- @@ -44,7 +44,7 @@ {[[ rgn.title ]]} % Award {[[ rgn.from ]]} % Event {[[ rgn.location ]]} % Location - {[[ rgn.date ]]} % Date(s) + {[[ h.date(rgn.date) ]]} % Date(s) [~ }); ~] %--------------------------------------------------------- diff --git a/themes/awesome/src/latex/examples/resume/presentation.tex b/themes/awesome/src/latex/examples/resume/presentation.tex index 4d20c61..ac5f4d9 100644 --- a/themes/awesome/src/latex/examples/resume/presentation.tex +++ b/themes/awesome/src/latex/examples/resume/presentation.tex @@ -15,10 +15,10 @@ {[[ spk.title ]]} % Role {[[ spk.event ]])} % Event {[[ spk.location ]]} % Location - {[[ spk.date ]]} % Date(s) + {[[ h.date(spk.date) ]]} % Date(s) {[~ if (r.speaking && r.speaking.length) { ~] \begin{cvitems} % Description(s) -[~ print( h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ) ~] +[[ h.pad( spk.highlights.map( function(h) { return '\\item {' + h + '}' }), -8 ) ]] \end{cvitems} [~ } ~]} diff --git a/themes/awesome/src/latex/examples/resume/writing.tex b/themes/awesome/src/latex/examples/resume/writing.tex index dff9dec..4eb8636 100644 --- a/themes/awesome/src/latex/examples/resume/writing.tex +++ b/themes/awesome/src/latex/examples/resume/writing.tex @@ -12,10 +12,10 @@ [~ _.each( r.writing, function(wri) { ~] %--------------------------------------------------------- \cventry - {[[ wri.title ]]} % Role - {[[ wri.publisher ]]} % Title + {[~ print( wri.publisher ? wri.publisher.name : 'Unknown' ) ~]} % Role + {[[ wri.title ]]} % Title {[[ wri.url ]]} % Location - {[[ wri.date ]]} % Date(s) + {[[ 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 ) ) ~]