Discussion:
[MiKTeX] special characters in tex file
Arkady Kitover
2017-04-20 23:06:37 UTC
Permalink
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. $B":(B instead of \in or $B!g(B instead of \infty. Is there any way to suppress this feature?


Arkady Kitover
Christopher Weedall
2017-04-20 23:41:26 UTC
Permalink
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://en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting#Verbatim_text

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 <***@hotmail.com>
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
>
Arkady Kitover
2017-04-21 00:06:06 UTC
Permalink
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 <***@gmail.com>
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/apple-touch-***@2.png?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 <***@hotmail.com>
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. $B":(B
> instead of \in or $B!g(B 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 ...
Christopher Weedall
2017-04-21 01:38:43 UTC
Permalink
I see. Can you describe the process in details? It is not clear when and
how these are replaced with symbols. For example, do you type "\in" and
then when you hit Spacebar or Enter, the string of text "\in" is replaced
immediately? Or can you create the document completely without issues and
upon closing and re-opening the document, you find these symbols replaced?
If possible, walk us through the steps from new document to replaced
symbols.

Given your response, I am inclined to assume this is a WinEdt problem.
None MiKTeX's executables should be doing this and I do not have this when
using the TeXworks editor (which is bundled with MiKTeX). For example, in
WinEdt, there is a Transition Tables options interface which appears to map
special characters to commands or vice-versa. I'm not so familiar with
what triggers these mappings, however. This may or may not be the cause of
your problem, but may help you search for the cause.

Best,
Chris


On Fri, Apr 21, 2017 at 10:06 AM, Arkady Kitover <***@hotmail.com>
wrote:

> 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 <***@gmail.com>
> 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/apple-touch-
> ***@2.png?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 <***@hotmail.com>
> 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
>
George N. White III
2017-04-21 12:46:09 UTC
Permalink
On 20 April 2017 at 20:06, Arkady Kitover <***@hotmail.com> 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?
>

Have you checked the .tex file in a different editor? The special
characters may only be generated when the file is displayed with certain
editors. In any case, MiKTeX does not change the .tex source files during
compilation, so this sounds like a "feature" of WiinEDT.

--
George N. White III <***@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia
Marckus Kraft
2017-04-24 13:55:42 UTC
Permalink
Hi all!

Today I experienced a strange behaviour after installing MiKTeX due to
an reinstallation of Windows 10 after the lasted update.

I have all my style file stored in a local TeX tree
(d:\localtexmf\tex\latex\). This path is also set in MiKTeX Options ->
Roots as Path. After a Refresh FNDB (user and/or admin) kpsewhich
returns an empty line.

As a workaround I set a symbolic links to the MiKTeX directorys
tex-directory. Now kpsewhich is successful.

For years the solution with the local TeX tree worked perfectly for my.
I did not change the MiKTeX directory (D:\Program Files\MiKTeX) nor the
location of the local TeX tree.

I tried some alternate locations but was unsuccessful, i.e., pathes
added, refresh executed, but still no style files.

Any ideas or hints to solve this are welcome. Or is this a bug?

Thanks for your support.

Kind regards,
Marckus
Loading...