fortplot_latex_parser Module

LaTeX command parser for Greek letters and mathematical symbols


Functions

public function is_valid_greek_command(command_text)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: command_text

Return Value logical


Subroutines

public subroutine find_latex_command(text, start, start_pos, end_pos, found)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text
integer, intent(in) :: start
integer, intent(out) :: start_pos
integer, intent(out) :: end_pos
logical, intent(out) :: found

public subroutine extract_latex_command(text, start_pos, end_pos, command)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text
integer, intent(in) :: start_pos
integer, intent(in) :: end_pos
character(len=*), intent(out) :: command

public subroutine find_all_latex_commands(text, commands, num_found)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text
integer, intent(out) :: commands(:,:)
integer, intent(out) :: num_found

public subroutine latex_to_unicode(latex_command, unicode_char, success)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: latex_command
character(len=*), intent(out) :: unicode_char
logical, intent(out) :: success

public subroutine process_latex_in_text(input_text, result_text, result_len)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input_text
character(len=*), intent(out) :: result_text
integer, intent(out) :: result_len