|
[Date Index]
[Thread Index]
[Author Index]
Re: Problem with strings and backslashes
- To: mathgroup at smc.vnet.net
- Subject: [mg99739] Re: Problem with strings and backslashes
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 12 May 2009 05:44:23 -0400 (EDT)
- Organization: Uni Leipzig
- References: <gub7ej$4h5$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
Mathematica need a double back slash "\\" for a true back slash,
because it use \ in combinations for control codes "\n" for new line,
"\t" for a tabulator.
But there is not really a problem
StringReplace["$\\tau\\,\sin(\\xi \\pi)$", "\\tau" -> "tan(\\psi)"]
work as it should.
Regards
Jens
LordBeotian wrote:
> I'm trying to work with strings wich are LaTeX codes of formulas. I
> want to make substitution of particular substrings. The problem is
> that Mathematica (5.1) has a strange behaviour with the backslashes.
> When it finds "\tau" it removes the "\t" in the output. The same
> happen with "\right" which becomes "ight". To make it work properly I
> need to manually add on the input an additional backslash at the
> beginning of "\tau" and "\right": "\\tau" becames "\tau". But in this
> way my work go on too slowly. What can I do?
>
Prev by Date:
export Disdyakis Dodecahedron to 3D model (maya)
Next by Date:
Re: Recovering data from DumpSave
Previous by thread:
Problem with strings and backslashes
Next by thread:
Re: Problem with strings and backslashes
|