Re: special characters in tex file
Arkady Kitover <[email protected]> Fri, 21 Apr 2017 00:06:06 +0000
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <CY1PR10MB0378528B9273D1BC61CD9FC6D61A0@CY1PR10MB0378.namprd10.prod.outlook.com> |
Christopher, thank you, but the problem is not the output but the input file. The program inserts special characters in the original tex file and if I need to send a copy of it (say to Math Reviews) it creates a headache. Arkady ________________________________ From: Christopher Weedall <[email protected]> Sent: Thursday, April 20, 2017 7:41 PM To: A place for MiKTeX users to discuss MiKTeX related questions. Subject: Re: [MiKTeX] special characters in tex file Hi Arkady, What are you doing in the first place? It appears you use \in and \infty in your document...but what do you expect to appear? You want "\in" and "\infty" to appear literally? \ is a special character in TeX. If you use \ followed by anything, you should expect the output to be different than your raw .tex document. In this case, for example, I would expect "\infty" to be replace by the actual infinity symbol. This is by design. If you want \ to appear literally, you have two options. 1) use \textbackslash{} instead of the backslash (e.g. \textbackslash{}infty ) or 2) use either the \verb command (e.g. \verb|\infty| ) or verbatim environment (e.g. \being{verbatim} ...\infty... \end{verbatim} ). See, for example, https://tex.stackexchange.com/a/9365/78866 and [https://cdn.sstatic.net/Sites/tex/img/[email protected]?v=eaf26b461720]<https://tex.stackexchange.com/a/9365/78866> How does one insert a backslash or a tilde (~) into LaTeX?<https://tex.stackexchange.com/a/9365/78866> tex.stackexchange.com How does one insert a "\\" (backslash) into the text of a LaTeX document? And how does one insert a "~" (tilde)? (If you insert \\~, it will give you a tilde as an accent over the following letter.) ... https://en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting#Verbatim_text LaTeX/Paragraph Formatting - Wikibooks, open books for an ...<https://en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting#Verbatim_text> en.wikibooks.org Altering the paragraph formatting is rarely necessary in academic writing. It is primarily used for formatting text in floats or for more exotic documents. There is no way to suppress this behavior in (La)TeX. You simply need to get in the habit of using these methods when you want to have \ appear in your output. Based on your message, it is unclear if my advice is what you are looking for or not. If not, include a minimal working example of the document and also the exact output you receive from compiling that document. This helps others identify the problem more easily. Best, Chris On Fri, Apr 21, 2017 at 9:06 AM, Arkady Kitover <[email protected]> wrote: > I am not sure if it is a Winedt or a Miktex issue but after compilation > the program inserts into the tex file some special characters, e.g. > instead of \in or instead of \infty. Is there any way to suppress this > feature? > > > Arkady Kitover > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Q: How can I leave the mailing list? > A: See http://docs.miktex.org/faq/support.html#leavingml - MiKTeX Docs<http://docs.miktex.org/faq/support.html#leavingml> docs.miktex.org 1. How do I get support? Please visit https://miktex.org/support, for an overview of available support options. 2. Is there a mailing list? Yes. 3. How can I join the ... > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Q: How can I leave the mailing list? A: See http://docs.miktex.org/faq/support.html#leavingml - MiKTeX Docs<http://docs.miktex.org/faq/support.html#leavingml> docs.miktex.org 1. How do I get support? Please visit https://miktex.org/support, for an overview of available support options. 2. Is there a mailing list? Yes. 3. How can I join the ... ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Q: How can I leave the mailing list? A: See http://docs.miktex.org/faq/support.html#leavingml