summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/generators/latex/text_g.cpp3
-rw-r--r--src/parser/text_p.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/generators/latex/text_g.cpp b/src/generators/latex/text_g.cpp
index 338172a..56b4191 100644
--- a/src/generators/latex/text_g.cpp
+++ b/src/generators/latex/text_g.cpp
@@ -29,7 +29,8 @@ latex::text_g::text_g() : text_g::base_type(text_) {
| &uint_(CODE) << L"\\texttt{" << +text_ << '}'
| &uint_(MATH) << L"$" << +text_ << '$'
| &uint_(SUPER) << L"^{" << +text_ << '}'
- | &uint_(QUOTE) << L"``" << +text_ << L"''";
+ | &uint_(QUOTE) << L"``" << +text_ << L"''"
+ | &uint_(SUB) << L"_{" << +text_ << '}';
ptext_ = +char_;
}
diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp
index 16cb703..af454fe 100644
--- a/src/parser/text_p.cpp
+++ b/src/parser/text_p.cpp
@@ -31,7 +31,8 @@ text_p::text_p() : text_p::base_type(text_) {
| lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$'
| lit("^{") >> attr(SUPER) >> +text_(val(L"*'`$^}")) >> '}'
| lit('^') >> attr(SUPER) >> +text_(val(L"*'`$ "))
- | lit(L"@\"") >> attr(QUOTE) >> +text_(val(L"*'`$@\"")) >> '"';
+ | lit(L"@\"") >> attr(QUOTE) >> +text_(val(L"*'`$@\"")) >> '"'
+ | lit(L"@_") >> attr(SUB) >> +text_(val(L"*'`$@_")) >> '_';
ptext_ = +(echar_ | rchar_(_r1));
echar_ = lit('\\') >> char_;