Skip to content

Commit

Permalink
Update zzz.R
Browse files Browse the repository at this point in the history
emph aded as option
  • Loading branch information
iramosgutierrez authored Mar 22, 2024
1 parent 766af64 commit 456a14f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ check_latex<- function(df = NULL, column=NULL){
df[[column]] <- gsub("~", "-" , df[[column]]) #unable to render with \\~
df[[column]] <- gsub("\\^", "\\\\^" , df[[column]])#name truncated and accent to the next letter
df[[column]] <- gsub("\\textit" , "\\textit{" , df[[column]], fixed = T)#open italize
df[[column]] <- gsub("\\emph" , "\\emph{" , df[[column]], fixed = T)#open italize
df[[column]] <- gsub("\\textbf" , "\\textbf{" , df[[column]], fixed = T)#open bold
df[[column]] <- gsub("\\end", "}" , df[[column]], fixed = T)#close italize AND bold
return(df[,column, drop=FALSE])
Expand Down

0 comments on commit 456a14f

Please sign in to comment.