LaTeX command parser for Greek letters and mathematical symbols
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | command_text |
| Type | Intent | Optional | 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 |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | text | |||
| integer, | intent(in) | :: | start_pos | |||
| integer, | intent(in) | :: | end_pos | |||
| character(len=*), | intent(out) | :: | command |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | text | |||
| integer, | intent(out) | :: | commands(:,:) | |||
| integer, | intent(out) | :: | num_found |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | latex_command | |||
| character(len=*), | intent(out) | :: | unicode_char | |||
| logical, | intent(out) | :: | success |
Convert LaTeX-style commands to Unicode while preserving math scopes
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | input_text | |||
| character(len=*), | intent(out) | :: | result_text | |||
| integer, | intent(out) | :: | result_len |