Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Use filename with underscore in \input statement

1,501 views
Skip to first unread message

Kyung Kook Park

unread,
Feb 16, 2004, 2:31:49 AM2/16/04
to
Hi, I am having a very annoying situation with \input command.
I am trying \input{filename_with_underscore}, which makes an error
looking like LaTeX is translating the underscores as special meaning.

I couldn't find the full description of \input command and
how to define its parameter in the manual.

I am using teTeX package of darwinport on MacOSX.
Is this a kind of bug?

Kyung

José Carlos Santos

unread,
Feb 16, 2004, 4:38:58 AM2/16/04
to

If you are using the underscore package, load it with

\usepackage[strings]{underscore}

Best regards,

Jose Carlos Santos

Ulrike Fischer

unread,
Feb 16, 2004, 4:42:28 AM2/16/04
to
kkpa...@hotmail.com (Kyung Kook Park) schrieb:

> Hi, I am having a very annoying situation with \input command.
> I am trying \input{filename_with_underscore}, which makes an error
> looking like LaTeX is translating the underscores as special meaning.

No. It should work fine:

\documentclass{article}
\begin{document}
\input{test_with_under}
\end{document}

gives in the log

This is e-TeX, Version 3.141592-2.1 (MiKTeX 2.4) (preloaded
format=latex 2000.11.28) 16 FEB 2004 10:36
entering extended mode
**test.tex
(test.tex

....

(test_with_under.tex) [1

]
(test.aux) )


> I am using teTeX package of darwinport on MacOSX.
> Is this a kind of bug?

I don't know, I use MikTeX on Windows.


--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.

Donald Arseneau

unread,
Feb 16, 2004, 5:11:47 AM2/16/04
to
kkpa...@hotmail.com (Kyung Kook Park) writes:

> Hi, I am having a very annoying situation with \input command.
> I am trying \input{filename_with_underscore}, which makes an error
> looking like LaTeX is translating the underscores as special meaning.

Sounds like. But LaTeX doesn't, so you will have to tell us what
packages you are using that might be making underscores special.


Donald Arseneau as...@triumf.ca

Arnau:D

unread,
Feb 16, 2004, 5:03:57 AM2/16/04
to
Le 15 Feb 2004 23:31:49 -0800
Kyung Kook Park s'exprimait en ces termes :

Hi,

try

\begingroup
\catcode`\_=12\relax
\input{name_with_underscore}
\endgroup

Arnaud

0 new messages