1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-11-22 16:20:11 +00:00

Awesome: Fix baseline LaTeX generation.

This commit is contained in:
devlinjd 2015-12-08 10:14:29 -05:00
parent baffe8ec02
commit 421bc71f65
10 changed files with 26 additions and 34 deletions

View File

@ -3,10 +3,10 @@
"description": "A FluentCV résumé theme based on Awesome-CV for LaTeX.", "description": "A FluentCV résumé theme based on Awesome-CV for LaTeX.",
"engine": "underscore", "engine": "underscore",
"delimeters": { "delimeters": {
"interpolate": "\\[\\[(.+?)\\]\\]", "interpolate": "\\[\\[([\\s\\S]+?)\\]\\]",
"escape": "\\[\\=(.+?)\\]\\]", "escape": "\\[\\=([\\s\\S]+?)\\]\\]",
"evaluate": "\\[\\~(.+?)\\~\\]", "evaluate": "\\[~([\\s\\S]+?)~]",
"comment": "\\[\\#(.+?)\\#\\]" "comment": "\\[\\#([\\s\\S]+?)\\#\\]"
}, },
"formats": { "formats": {
"latex": { "latex": {
@ -29,7 +29,7 @@
"src/latex/examples/cv/skills.tex", "src/latex/examples/cv/skills.tex",
"src/latex/examples/cv/writing.tex" "src/latex/examples/cv/writing.tex"
], ],
"symlinks": { "symLinks": {
"src/latex/examples/awesome-cv.cls": "../awesome-cv.cls", "src/latex/examples/awesome-cv.cls": "../awesome-cv.cls",
"src/latex/examples/fontawesome.sty": "../fontawesome.sty", "src/latex/examples/fontawesome.sty": "../fontawesome.sty",
"src/latex/examples/fonts": "../fonts" "src/latex/examples/fonts": "../fonts"

View File

@ -7,15 +7,14 @@
{[[ edu.institution ]]} {[[ edu.institution ]]}
{[[ edu.location ]]} {[[ edu.location ]]}
{[[ edu.safe.start ]] - [[ edu.safe.end ]]} {[[ edu.safe.start ]] - [[ edu.safe.end ]]}
[~ if( edu.highlights && edu.highlights.length ) { ~] [~ if( edu.highlights && edu.highlights.length ) {
{ ~]{
\begin{cvitems} \begin{cvitems}
[~ _.each(edu.highlights, function(high) { ~] [~ _.each(edu.highlights, function(high) { ~]
\item {[[ high ]]} \item {[[ high ]]}
[~ }); ~] [~ }); ~]
\end{cvitems} \end{cvitems}
} }[~ } else { ~]{ }[~ } ~]
[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -7,15 +7,12 @@
{[[ emp.employer ]]} {[[ emp.employer ]]}
{[[ emp.location ]]} {[[ emp.location ]]}
{[[ emp.safe.start ]] - [[ emp.safe.end ]]} {[[ emp.safe.start ]] - [[ emp.safe.end ]]}
[~ if( emp.highlights && emp.highlights.length ) { ~] [~ if( emp.highlights && emp.highlights.length ) {
{ ~]{
\begin{cvitems} \begin{cvitems}[~ _.each( emp.highlights, function(high) { ~]
[~ _.each( emp.highlights, function(high) { ~] \item {[[ high.replace(/#/g, '\\#') ]]}[~ }); ~]
\item {[[ high ]]}
[~ }); ~]
\end{cvitems} \end{cvitems}
} }[~ } ~]
[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -15,7 +15,7 @@
[~ }); ~] [~ }); ~]
\end{cvitems} \end{cvitems}
} }
[~ } ~] [~ } else { ~]{ }[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -15,7 +15,7 @@
[~ }); ~] [~ }); ~]
\end{cvitems} \end{cvitems}
} }
[~ } ~] [~ } else { ~]{ }[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -7,15 +7,14 @@
{[[ edu.institution ]]} {[[ edu.institution ]]}
{[[ edu.location ]]} {[[ edu.location ]]}
{[[ edu.safe.start ]] - [[ edu.safe.end ]]} {[[ edu.safe.start ]] - [[ edu.safe.end ]]}
[~ if( edu.highlights && edu.highlights.length ) { ~] [~ if( edu.highlights && edu.highlights.length ) {
{ ~]{
\begin{cvitems} \begin{cvitems}
[~ _.each(edu.highlights, function(high) { ~] [~ _.each(edu.highlights, function(high) { ~]
\item {[[ high ]]} \item {[[ high ]]}
[~ }); ~] [~ }); ~]
\end{cvitems} \end{cvitems}
} }[~ } else { ~]{ }[~ } ~]
[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -7,15 +7,12 @@
{[[ emp.employer ]]} {[[ emp.employer ]]}
{[[ emp.location ]]} {[[ emp.location ]]}
{[[ emp.safe.start ]] - [[ emp.safe.end ]]} {[[ emp.safe.start ]] - [[ emp.safe.end ]]}
[~ if( emp.highlights && emp.highlights.length ) { ~] [~ if( emp.highlights && emp.highlights.length ) {
{ ~]{
\begin{cvitems} \begin{cvitems}[~ _.each( emp.highlights, function(high) { ~]
[~ _.each( emp.highlights, function(high) { ~] \item {[[ high.replace(/#/g, '\\#') ]]}[~ }); ~]
\item {[[ high ]]}
[~ }); ~]
\end{cvitems} \end{cvitems}
} }[~ } ~]
[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -15,7 +15,7 @@
[~ }); ~] [~ }); ~]
\end{cvitems} \end{cvitems}
} }
[~ } ~] [~ } else { ~]{ }[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -15,7 +15,7 @@
[~ }); ~] [~ }); ~]
\end{cvitems} \end{cvitems}
} }
[~ } ~] [~ } else { ~]{ }[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]

View File

@ -15,7 +15,7 @@
[~ }); ~] [~ }); ~]
\end{cvitems} \end{cvitems}
} }
[~ } ~] [~ } else { ~]{ }[~ } ~]
[~ }); ~] [~ }); ~]
\end{cventries} \end{cventries}
[~ } ~] [~ } ~]