diff --git a/tests/auxiliary_files/test_generate_latex_file/classic_empty/None_CV.tex b/tests/auxiliary_files/test_generate_latex_file/classic_empty/None_CV.tex index 3bd0b44..cdf6845 100644 --- a/tests/auxiliary_files/test_generate_latex_file/classic_empty/None_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file/classic_empty/None_CV.tex @@ -17,6 +17,7 @@ \definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color \usepackage{enumitem} % for customizing lists \usepackage{fontawesome5} % for using icons +\usepackage{amsmath} % for math \usepackage[ pdftitle={None's CV}, pdfauthor={None}, @@ -27,7 +28,7 @@ \usepackage{calc} % for calculating lengths \usepackage{bookmark} % for bookmarks \usepackage{lastpage} % for getting the total number of pages -\usepackage[default, type1]{sourcesanspro} % for using source sans pro font +\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font \usepackage{ifthen} % Some settings: diff --git a/tests/auxiliary_files/test_generate_latex_file/classic_filled/John_Doe_CV.tex b/tests/auxiliary_files/test_generate_latex_file/classic_filled/John_Doe_CV.tex index 6eebc50..b336570 100644 --- a/tests/auxiliary_files/test_generate_latex_file/classic_filled/John_Doe_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file/classic_filled/John_Doe_CV.tex @@ -17,6 +17,7 @@ \definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color \usepackage{enumitem} % for customizing lists \usepackage{fontawesome5} % for using icons +\usepackage{amsmath} % for math \usepackage[ pdftitle={John Doe's CV}, pdfauthor={John Doe}, @@ -27,7 +28,7 @@ \usepackage{calc} % for calculating lengths \usepackage{bookmark} % for bookmarks \usepackage{lastpage} % for getting the total number of pages -\usepackage[default, type1]{sourcesanspro} % for using source sans pro font +\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font \usepackage{ifthen} % Some settings: @@ -182,8 +183,7 @@ \vspace{0.10 cm} - \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () - & + \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () & Dec. 2023 \end{tabularx} @@ -197,8 +197,7 @@ \vspace{0.10 cm} - \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () - & + \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () & Dec. 2023 \end{tabularx} diff --git a/tests/auxiliary_files/test_generate_latex_file/moderncv_empty/None_CV.tex b/tests/auxiliary_files/test_generate_latex_file/moderncv_empty/None_CV.tex index 371bf1b..aa658df 100644 --- a/tests/auxiliary_files/test_generate_latex_file/moderncv_empty/None_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file/moderncv_empty/None_CV.tex @@ -12,6 +12,8 @@ \moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red' %\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name +\usepackage{amsmath} % for math + % adjust the page margins \usepackage[scale=0.75]{geometry} \setlength{\hintscolumnwidth}{3.8 cm} % if you want to change the width of the column with the dates diff --git a/tests/auxiliary_files/test_generate_latex_file/moderncv_filled/John_Doe_CV.tex b/tests/auxiliary_files/test_generate_latex_file/moderncv_filled/John_Doe_CV.tex index 32f567f..b554fa3 100644 --- a/tests/auxiliary_files/test_generate_latex_file/moderncv_filled/John_Doe_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file/moderncv_filled/John_Doe_CV.tex @@ -12,6 +12,8 @@ \moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red' %\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name +\usepackage{amsmath} % for math + % adjust the page margins \usepackage[scale=0.75]{geometry} \setlength{\hintscolumnwidth}{3.8 cm} % if you want to change the width of the column with the dates diff --git a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex index 3bd0b44..cdf6845 100644 --- a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex @@ -17,6 +17,7 @@ \definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color \usepackage{enumitem} % for customizing lists \usepackage{fontawesome5} % for using icons +\usepackage{amsmath} % for math \usepackage[ pdftitle={None's CV}, pdfauthor={None}, @@ -27,7 +28,7 @@ \usepackage{calc} % for calculating lengths \usepackage{bookmark} % for bookmarks \usepackage{lastpage} % for getting the total number of pages -\usepackage[default, type1]{sourcesanspro} % for using source sans pro font +\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font \usepackage{ifthen} % Some settings: diff --git a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex index 6eebc50..b336570 100644 --- a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex @@ -17,6 +17,7 @@ \definecolor{primaryColor}{RGB}{0, 79, 144} % define primary color \usepackage{enumitem} % for customizing lists \usepackage{fontawesome5} % for using icons +\usepackage{amsmath} % for math \usepackage[ pdftitle={John Doe's CV}, pdfauthor={John Doe}, @@ -27,7 +28,7 @@ \usepackage{calc} % for calculating lengths \usepackage{bookmark} % for bookmarks \usepackage{lastpage} % for getting the total number of pages -\usepackage[default, type1]{sourcesanspro} % for using source sans pro font +\usepackage[default, type1]{sourcesanspro} % for using source sans 3 font \usepackage{ifthen} % Some settings: @@ -182,8 +183,7 @@ \vspace{0.10 cm} - \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () - & + \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () & Dec. 2023 \end{tabularx} @@ -197,8 +197,7 @@ \vspace{0.10 cm} - \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () - & + \href{https://doi.org/10.1109/TASC.2023.3340648}{10.1109/TASC.2023.3340648} () & Dec. 2023 \end{tabularx} diff --git a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_empty/None_CV.tex b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_empty/None_CV.tex index 371bf1b..aa658df 100644 --- a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_empty/None_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_empty/None_CV.tex @@ -12,6 +12,8 @@ \moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red' %\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name +\usepackage{amsmath} % for math + % adjust the page margins \usepackage[scale=0.75]{geometry} \setlength{\hintscolumnwidth}{3.8 cm} % if you want to change the width of the column with the dates diff --git a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_filled/John_Doe_CV.tex b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_filled/John_Doe_CV.tex index 32f567f..b554fa3 100644 --- a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_filled/John_Doe_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/moderncv_filled/John_Doe_CV.tex @@ -12,6 +12,8 @@ \moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red' %\renewcommand{\familydefault}{\sfdefault} % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name +\usepackage{amsmath} % for math + % adjust the page margins \usepackage[scale=0.75]{geometry} \setlength{\hintscolumnwidth}{3.8 cm} % if you want to change the width of the column with the dates diff --git a/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf index fba6444..5f19446 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf index 1638acc..c2c8e51 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf index ea32247..fb72e06 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf index 4b31186..6534058 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf index 759121b..8971179 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf index 8d66a5f..90312a9 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf differ diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 5bd3229..3f4de94 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -60,12 +60,12 @@ def test_escape_latex_characters(string, expected_string): ("*My* Text", "\\textit{My} Text"), ("***My*** Text", "\\textit{\\textbf{My}} Text"), ("[My](https://myurl.com) Text", "\\href{https://myurl.com}{My} Text"), - ("`My` Text", "\\texttt{My} Text"), + ("`My` Text", "`My` Text"), ( "[**My** *Text* ***Is*** `Here`](https://myurl.com)", ( "\\href{https://myurl.com}{\\textbf{My} \\textit{Text}" - " \\textit{\\textbf{Is}} \\texttt{Here}}" + " \\textit{\\textbf{Is}} `Here`}" ), ), ],