[texhax] [solved] Re: Issue about `~' character
Rodolfo Medina
rodolfo.medina at gmail.com
Fri Sep 30 20:31:02 CEST 2016
David Carlisle <d.p.carlisle at gmail.com> writes:
> Your question is very unclear.
>
> you say you can not use \string~ as it occurs within a \write
> but \string~ will work within a write and cause ~ to be written as itself
> as a ~ to the file.
Yes, apologises. That was because I needed to repeat `\string' more than
once. I had tried with `\string\string~' but it didn't work either.
> If you are inputting that file back to TeX then you also need to make
> that ~ that you
> read back in to be inert there are various ways to do that, depending
> what you are doing
> you could for instance do
>
> \write\wherever{\string\string\string~}
>
> which will write
>
> \string~
>
> to the file which if \input back will produce
>
> ~
Fantastic, that works in my case. In this case you need three \string s. I
couldn't imagine. I had tried with two.
Thanks,
Rodolfo
More information about the texhax
mailing list