作図ソフト dia の改良版
Revisão | 421548766e4d2cd4e9a8b5dc6757c5602174764a (tree) |
---|---|
Hora | 2006-03-07 06:26:40 |
Autor | Lars Clausen <lclausen@src....> |
Commiter | Lars Clausen |
TeX char fixing with actual tests.
@@ -1,4 +1,11 @@ | ||
1 | -2006-03-05 Lars Clausen <larsrc@> | |
1 | +2006-03-06 Lars Clausen <larsrc@raeder.dk> | |
2 | + | |
3 | + * samples/TexChars.dia: Added sample of the escaped chars for TeX. | |
4 | + | |
5 | + * plug-ins/pstricks/render_pstricks.c (tex_escape_string): | |
6 | + Changing escape of \, [, and ] to something that works. $ is fine. | |
7 | + | |
8 | +2006-03-05 Lars Clausen <larsrc@raeder.dk> | |
2 | 9 | |
3 | 10 | * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import. |
4 | 11 |
@@ -742,11 +742,11 @@ tex_escape_string(const gchar *src) | ||
742 | 742 | case '~': g_string_append(dest, "\\~{}"); break; |
743 | 743 | case '_': g_string_append(dest, "\\_"); break; |
744 | 744 | case '^': g_string_append(dest, "\\^{}"); break; |
745 | - case '\\': g_string_append(dest, "\\\\"); break; | |
745 | + case '\\': g_string_append(dest, "\\textbackslash{}"); break; | |
746 | 746 | case '{': g_string_append(dest, "\\}"); break; |
747 | 747 | case '}': g_string_append(dest, "\\}"); break; |
748 | - case '[': g_string_append(dest, "\\ensuremath{\\left[}"); break; | |
749 | - case ']': g_string_append(dest, "\\ensuremath{\\right]}"); break; | |
748 | + case '[': g_string_append(dest, "\\ensuremath{\\left[\\right.}"); break; | |
749 | + case ']': g_string_append(dest, "\\ensuremath{\\left.\\right]}"); break; | |
750 | 750 | default: |
751 | 751 | /* if we really have utf8 append the whole 'glyph' */ |
752 | 752 | g_string_append_len(dest, p, g_utf8_skip[(unsigned char)*p]); |