• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Revisão421548766e4d2cd4e9a8b5dc6757c5602174764a (tree)
Hora2006-03-07 06:26:40
AutorLars Clausen <lclausen@src....>
CommiterLars Clausen

Mensagem de Log

TeX char fixing with actual tests.

Mudança Sumário

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
29
310 * plug-ins/xfig/xfig-import.c: Fixed locale issues with FIG import.
411
--- a/plug-ins/pstricks/render_pstricks.c
+++ b/plug-ins/pstricks/render_pstricks.c
@@ -742,11 +742,11 @@ tex_escape_string(const gchar *src)
742742 case '~': g_string_append(dest, "\\~{}"); break;
743743 case '_': g_string_append(dest, "\\_"); break;
744744 case '^': g_string_append(dest, "\\^{}"); break;
745- case '\\': g_string_append(dest, "\\\\"); break;
745+ case '\\': g_string_append(dest, "\\textbackslash{}"); break;
746746 case '{': g_string_append(dest, "\\}"); break;
747747 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;
750750 default:
751751 /* if we really have utf8 append the whole 'glyph' */
752752 g_string_append_len(dest, p, g_utf8_skip[(unsigned char)*p]);
Binary files /dev/null and b/samples/TexChars.dia differ