ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: special character in filename
Date: Sat, 5 Mar 2011 16:14:59 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1103051558450.1228@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <7B4626C28B06A7418E938BF73D6DEE18F9E71DB5FB@KCL-MAIL05.kclad.ds.kcl.ac.uk>

On Sat, 5 Mar 2011, Reviczky, Adam wrote:

>>> only Hans can decide if this can/should be changed
> I won't argue for any changes, just thought to ask about it.
>
> I'll think about a workaround outside context.

The "error" is with the backend.

luatex (and pdftex and even tex) do not like filenames with a ~ in it.

luatex test\~1.tex

tries to compile a file called test.tex! If you want to compile 
test~1.tex, you need

luatex "test\string~1.tex"

In ConteXt, a wrapper script mtx-context calls luatex with appropriate 
settings of format, etc. So, with

context test\~1.tex

mtx-context will call

luatex --fmt=... --lua=.. "test~1.tex"

which, as mentioned above, tries to compile test.tex. But you can use the 
same workaround

context "test\\string~1.tex"

and the file test~1.tex is correctly compiled.

> A simple "yes, can be done" or "no, its a really bad idea" is perfectly enough for me.

I don't understand why tex (the engine) ignores ~. I will call it a bug.

Aditya

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2011-03-05 21:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 20:57 Reviczky, Adam
2011-03-05 21:14 ` Aditya Mahajan [this message]
2011-03-05 21:23 ` Peter Münster
  -- strict thread matches above, loose matches on Subject: below --
2011-03-05 20:38 Reviczky, Adam
2011-03-05 20:46 ` Thomas Schmitz
2011-03-05 20:09 Reviczky, Adam
2011-03-05 20:26 ` Thomas Schmitz
2011-03-06  8:36   ` Vnpenguin
2011-03-06 11:00     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.01.1103051558450.1228@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).