@@ -263,7 +263,7 @@ check_title <- function(path, ignore = ""){
263
263
}
264
264
265
265
if (! res $ result ){
266
- log_error (" Article title not in title case! Suggest title: {res$suggest}." )
266
+ log_warning (" Article title not in title case! Suggest title: {res$suggest}." )
267
267
} else {
268
268
log_success(" Article title formatted in title case." )
269
269
}
@@ -308,7 +308,7 @@ check_section <- function(path){
308
308
dt <- do.call(rbind , lapply(str_remove(str , " R" ), check_sentence_case ))
309
309
res <- paste0(str [! dt [[" in_sentence_case" ]]], collapse = " , " )
310
310
if (nchar(res ) != 0 ){
311
- log_error (" Section {res} is not in sentence case!" )
311
+ log_warning (" Section {res} is not in sentence case!" )
312
312
} else {
313
313
log_success(" Section titles formatted in sentence case." )
314
314
}
@@ -379,7 +379,8 @@ check_spelling <- function(path, dic = "en_US", ...){
379
379
detect_abstract <- purrr :: map(tex , ~ stringr :: str_extract(.x , " (?<=\\\\ abstract\\ {).*?" ))
380
380
abstract_loc <- match(detect_abstract [! is.na(detect_abstract )], detect_abstract )
381
381
382
- detect_bib <- purrr :: map(tex , ~ stringr :: str_extract(.x , " \\\\ section\\ *\\ {References\\ }" ))
382
+ # detect_bib <- purrr::map(tex, ~stringr::str_extract(.x, "\\\\section\\*\\{References\\}"))
383
+ detect_bib <- purrr :: map(tex , ~ stringr :: str_extract(.x , " (?<=\\\\ bibliography\\ {).*?(?=\\ })" )) # Reverse 3950d84, issue #132
383
384
bib_loc <- match(detect_bib [! is.na(detect_bib )], detect_bib )
384
385
385
386
# spell_to_remove is a pre-defined vector of latex commands
0 commit comments