mirror of https://github.com/eyhc1/rendercv.git
fix bugs in classic theme's templates
This commit is contained in:
parent
cd898274b7
commit
43da08205d
|
@ -1,3 +1,11 @@
|
||||||
|
((* if section_title in design.show_time_span_in *))
|
||||||
|
((* set date_and_location_strings = [entry.location, entry.date_string, entry.time_span_string] *))
|
||||||
|
((* else *))
|
||||||
|
((* set date_and_location_strings = [entry.location, entry.date_string] *))
|
||||||
|
((* endif *))
|
||||||
|
((* if not is_first_entry *))
|
||||||
|
\vspace{<<design.margins.entry_area.vertical_between>>}
|
||||||
|
((* endif *))
|
||||||
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
||||||
((# width: \textwidth #))
|
((# width: \textwidth #))
|
||||||
((# preamble: first column, second column, third column #))
|
((# preamble: first column, second column, third column #))
|
||||||
|
@ -22,15 +30,15 @@
|
||||||
\begin{highlights}
|
\begin{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
\item <<item>>
|
\item <<item>>
|
||||||
|
|
||||||
((* if loop.last *))
|
((* if loop.last *))
|
||||||
\end{highlights}
|
\end{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
((* endfor *))
|
((* endfor *))
|
||||||
&
|
&
|
||||||
((*set date_and_location_strings = [entry.location, entry.date_string, entry.time_span_string]*))
|
|
||||||
((* for item in date_and_location_strings *))
|
((* for item in date_and_location_strings *))
|
||||||
<<item>>
|
<<item>>
|
||||||
|
((* if not loop.last *))
|
||||||
|
|
||||||
|
((* endif *))
|
||||||
((* endfor *))
|
((* endfor *))
|
||||||
\end{tabularx}
|
\end{tabularx}
|
|
@ -1,3 +1,11 @@
|
||||||
|
((* if section_title in design.show_time_span_in *))
|
||||||
|
((* set date_and_location_strings = [entry.location, entry.date_string, entry.time_span_string] *))
|
||||||
|
((* else *))
|
||||||
|
((* set date_and_location_strings = [entry.location, entry.date_string] *))
|
||||||
|
((* endif *))
|
||||||
|
((* if not is_first_entry *))
|
||||||
|
\vspace{<<design.margins.entry_area.vertical_between>>}
|
||||||
|
((* endif *))
|
||||||
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
||||||
((# width: \textwidth #))
|
((# width: \textwidth #))
|
||||||
((# preamble: first column, second column #))
|
((# preamble: first column, second column #))
|
||||||
|
@ -18,15 +26,15 @@
|
||||||
\begin{highlights}
|
\begin{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
\item <<item>>
|
\item <<item>>
|
||||||
|
|
||||||
((* if loop.last *))
|
((* if loop.last *))
|
||||||
\end{highlights}
|
\end{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
((* endfor *))
|
((* endfor *))
|
||||||
&
|
&
|
||||||
((*set date_and_location_strings = [entry.location, entry.date_string, entry.time_span_string]*))
|
|
||||||
((* for item in date_and_location_strings *))
|
((* for item in date_and_location_strings *))
|
||||||
<<item>>
|
<<item>>
|
||||||
|
((* if not loop.last *))
|
||||||
|
|
||||||
|
((* endif *))
|
||||||
((* endfor *))
|
((* endfor *))
|
||||||
\end{tabularx}
|
\end{tabularx}
|
|
@ -1,3 +1,7 @@
|
||||||
|
((* if design.show_last_updated_date *))
|
||||||
|
\placelastupdatedtext
|
||||||
|
((* endif *))
|
||||||
|
|
||||||
\begin{header}
|
\begin{header}
|
||||||
\fontsize{<<design.header_font_size>>}{<<design.header_font_size>>}
|
\fontsize{<<design.header_font_size>>}{<<design.header_font_size>>}
|
||||||
\textbf{<<cv.name>>}
|
\textbf{<<cv.name>>}
|
||||||
|
@ -34,7 +38,6 @@
|
||||||
\mbox{\hrefWithoutArrow{network.url}{{\small<<icon_dictionary[network.network]>>}\hspace{0.13cm}<<network.username>>}}
|
\mbox{\hrefWithoutArrow{network.url}{{\small<<icon_dictionary[network.network]>>}\hspace{0.13cm}<<network.username>>}}
|
||||||
\hspace{0.5cm}
|
\hspace{0.5cm}
|
||||||
((* endfor *))
|
((* endfor *))
|
||||||
|
|
||||||
\end{header}
|
\end{header}
|
||||||
|
|
||||||
\vspace{<<design.margins.header.bottom>>}
|
\vspace{<<design.margins.header.bottom>>}
|
|
@ -1,5 +1,16 @@
|
||||||
|
((* if section_title in design.show_time_span_in *))
|
||||||
((* set date_and_location_strings = [entry.location, entry.date_string, entry.time_span_string] *))
|
((* set date_and_location_strings = [entry.location, entry.date_string, entry.time_span_string] *))
|
||||||
((* if date_and_location_strings == ["", "", ""]*))
|
((* else *))
|
||||||
|
((* set date_and_location_strings = [entry.location, entry.date_string] *))
|
||||||
|
((* endif *))
|
||||||
|
((* if not is_first_entry *))
|
||||||
|
\vspace{<<design.margins.entry_area.vertical_between>>}
|
||||||
|
((* endif *))
|
||||||
|
((* if date_and_location_strings == ["", "", ""] or date_and_location_strings == ["", ""] *))
|
||||||
|
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
||||||
|
((# width: \textwidth #))
|
||||||
|
((# preamble: first column #))
|
||||||
|
((# first column:: K{<<design.margins.entry_area.left_and_right>>}; variable width, justified column #))
|
||||||
\begin{tabularx}{
|
\begin{tabularx}{
|
||||||
\textwidth-<<design.margins.entry_area.left_and_right|divide_length_by(0.5)>>-0.13cm
|
\textwidth-<<design.margins.entry_area.left_and_right|divide_length_by(0.5)>>-0.13cm
|
||||||
}{
|
}{
|
||||||
|
@ -14,12 +25,10 @@
|
||||||
\begin{highlights}
|
\begin{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
\item <<item>>
|
\item <<item>>
|
||||||
|
|
||||||
((* if loop.last *))
|
((* if loop.last *))
|
||||||
\end{highlights}
|
\end{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
((* endfor *))
|
((* endfor *))
|
||||||
|
|
||||||
\end{tabularx}
|
\end{tabularx}
|
||||||
((* else *))
|
((* else *))
|
||||||
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
||||||
|
@ -42,7 +51,6 @@
|
||||||
\begin{highlights}
|
\begin{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
\item <<item>>
|
\item <<item>>
|
||||||
|
|
||||||
((* if loop.last *))
|
((* if loop.last *))
|
||||||
\end{highlights}
|
\end{highlights}
|
||||||
((* endif *))
|
((* endif *))
|
||||||
|
@ -50,7 +58,9 @@
|
||||||
&
|
&
|
||||||
((* for item in date_and_location_strings *))
|
((* for item in date_and_location_strings *))
|
||||||
<<item>>
|
<<item>>
|
||||||
|
((* if not loop.last *))
|
||||||
|
|
||||||
|
((* endif *))
|
||||||
((* endfor *))
|
((* endfor *))
|
||||||
\end{tabularx}
|
\end{tabularx}
|
||||||
((* endif *))
|
((* endif *))
|
|
@ -1,3 +1,6 @@
|
||||||
|
((* if not is_first_entry *))
|
||||||
|
\vspace{<<design.margins.entry_area.vertical_between>>}
|
||||||
|
((* endif *))
|
||||||
\begingroup((* if design.text_alignment == "left-aligned" *))\raggedright((* endif *))
|
\begingroup((* if design.text_alignment == "left-aligned" *))\raggedright((* endif *))
|
||||||
\leftskip=<<design.margins.entry_area.left_and_right>>
|
\leftskip=<<design.margins.entry_area.left_and_right>>
|
||||||
\advance\csname @rightskip\endcsname <<design.margins.entry_area.left_and_right>>
|
\advance\csname @rightskip\endcsname <<design.margins.entry_area.left_and_right>>
|
||||||
|
|
|
@ -124,3 +124,8 @@
|
||||||
\let\hrefWithoutArrow\href
|
\let\hrefWithoutArrow\href
|
||||||
% new command for external links:
|
% new command for external links:
|
||||||
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{#2 \raisebox{.15ex}{\footnotesize \faExternalLink*}}}
|
\renewcommand{\href}[2]{\hrefWithoutArrow{#1}{#2 \raisebox{.15ex}{\footnotesize \faExternalLink*}}}
|
||||||
|
|
||||||
|
\let\originalTabularx\tabularx
|
||||||
|
\let\originalEndTabularx\endtabularx
|
||||||
|
|
||||||
|
\renewenvironment{tabularx}{\bgroup\centering\originalTabularx}{\originalEndTabularx\par\egroup}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
((* if not is_first_entry *))
|
||||||
|
\vspace{<<design.margins.entry_area.vertical_between>>}
|
||||||
|
((* endif *))
|
||||||
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
((# \begin{tabularx}{⟨width⟩}[⟨pos⟩]{⟨preamble⟩} #))
|
||||||
((# width: \textwidth #))
|
((# width: \textwidth #))
|
||||||
((# preamble: first column, second column #))
|
((# preamble: first column, second column #))
|
||||||
|
@ -15,5 +18,4 @@
|
||||||
\href{<<entry.doi_url>>}{<<entry.doi>>} (<<entry.journal>>)
|
\href{<<entry.doi_url>>}{<<entry.doi>>} (<<entry.journal>>)
|
||||||
&
|
&
|
||||||
<<entry.date_string>>
|
<<entry.date_string>>
|
||||||
|
|
||||||
\end{tabularx}
|
\end{tabularx}
|
|
@ -1 +1,15 @@
|
||||||
|
((* if not is_first_entry *))
|
||||||
|
\vspace{<<design.margins.entry_area.vertical_between>>}
|
||||||
|
((* endif *))
|
||||||
|
{
|
||||||
|
((* if design.text_alignment == "left-aligned" *))
|
||||||
|
\raggedright
|
||||||
|
((* endif *))
|
||||||
|
\setlength{\leftskip}{<<design.margins.entry_area.left_and_right>>}
|
||||||
|
\setlength{\rightskip}{<<design.margins.entry_area.left_and_right>>}
|
||||||
|
|
||||||
<<entry>>
|
<<entry>>
|
||||||
|
|
||||||
|
\setlength{\leftskip}{0cm}
|
||||||
|
\setlength{\rightskip}{0cm}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue