Package: weigangtang-reftab
Package DescriptionRefTab is used to manage reference of journal papers. It can export reference table into 1) Excel and 2) Bibtex. Excel contains hyperlink, so users can quickly open the PDF of papers. Bibtex can be recognized for LaTex.Functionsis_year_format_correct()is_author_format_correct()auto_correct_author_string()auto_fill_abbr()auto_fill_link()read_ref_workbook()merge_ref_workbook()get_pdf_list()create_df_from_pdf_name()sort_header()save_workbook_to_excel()save_df_to_excel()save_df_to_latex()RefTab Class__init__()two inputs required:dataframe of reference tablefile path of readcube foldergenerate a list of pdf file name in readcube folderfile path of readcube folder is used to build hyperlink to pdfupdate()replace dataframe with new reference tablefind_incomplete_ref()find_duplicated_ref()find_duplicated_ref_by_abbr()find_nolink_ref()find_unlisted_pdf()find_invalid_pdf_name()get_unique_keywords()find categories of papersget_unique_ref()each record has an unqiue linktake Link (pdf name) as primary keymerge duplicated recordsKeyword for multiple records were combined in a string seperate by ','for example, "General Hydrology, Classification"subset_ref_by_keyword()subset_ref_by_abbr()save_to_excel()allow to save as either single-sheet or multiple-sheet (separate by keyword) workbooksave_to_latex()Data TypeReference Table (DataFrame)Required Columnes: 1) Title, 2) Year, 3) Journal, 4) Authors, 5) Vol, 6) PagesOptional Columnes: 1) Link, 2) Abbreviation, 3) KeywordLink and Abberviation can be auto-filled on the basis of other columnsWorkbook (Dictionary)consist of a number of dataframekey = sheet namevalues = dataframe of reference tableChange LogVersion 0.0.5 (2021-07-20)IntializeStart from 0.0.5 as previous versions are all failedRemoveos,re,stringfrom 'install_requires', as they are built-in packages. Issue raise up if list those packages.Version 0.0.6 (2021-07-20)Merge scripts intoinit.py. Script can not load function from another.Version 0.0.7 (2021-07-21)Adjust the column width of reference table.Version 0.0.8 (2021-07-23)Addmerge_duplicated_ref()merge keywords togethersort keywords by alphabetWhen export to ExcelAssign references with no keyword to "No Category" sheetAssign references with keyword of" * "to "Important" sheetVersion 0.0.9 (2021-08-02)Addcheck_ref_workbook()list sheets with missing columnslist references with incorrect format of authors and yearrequiretabulatepackageVersion 0.0.10 (2021-08-03)Addclean_ref_workbook()correct column of 'Authors'add 'Abbr' column on the basis of columns of 'Authors' and 'Year'add 'Link' (as index) on the basis of columns of 'Abbr', 'Year', and 'Journal'Changeauto_correct_author_string()instead of dealing with a list of author string, now it processes a single author stringsplit author by ';'correct author one by oneits functionality move toauto_correct_author_column()can automatically correct three cases:extra space at the beginning of each author (segement)extra space at the end of each authorsingle, isolated uppercase letter not followed with '.'Addauto_correct_author_column()Version 0.0.11 (2021-08-08)change print color inget_pdf_list()Version 0.0.12 (2021-09-12)ensure code format follow PEP 8set .git to track the entire package, rather than python script onlyadd .gitignoreVersion 0.0.13 (2021-09-13)change column width list to a dictionary (match with header name)convert to PEP 8 code style with autopep8Version 0.0.13 (2021-09-14)print ref with incorrect format when autofill abbreviation