GeneralPlaceholder for filename in "define output profile"

General information and discussion about TeXnicCenter
Post Reply
nestor
Posts: 1
Joined: Sun Sep 02, 2007 11:19 pm

Placeholder for filename in "define output profile"

Post by nestor »

Hello,

I've got the following problem :

I try to define an 'output profile' to compile metapost file (*.mp)

C:\Program Files\MiKTeX 2.6\miktex\bin\mp.exe
"%bm"

The placeholder "%bm" gives me the filename to give in input to the compiler (mp.exe). The filename is with a complete path. Works fine as long as the path do not have space. But when there is a space in the path of the file, the filename is cut at the space, and so the compiler doesn't find the file to compile

For instance if I want to compile the file "C:\My Documents\File.mp", the compiler try to compile the file "C:\My" because of the space between "My" and "Documents".

Why ?? and how avoiding this ? (I do not want to restrain myself to path without space !)

Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
pete

Placeholder for filename in "define output profile"

Post by pete »

Embrace the path name with quotes. Looks like this:
  • pdflatex "%pm"
...instead of %pm.

Other approach: use a placeholder which encodes to 8.3 short path names.

regards
Post Reply