Re: Advice on WinEdt/MiKTeX on a Windows 7?
"Thompson,Paul" <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <9B75E7CF385CB94EAD6587DD96AC2D97015355DB8C@SFSMCEXMBX3.sanfordhealth.org> |
I have to admit I have no idea why MikTeX needs to see your .tex file. I simply navigate to that directory using a "Command Prompt" window, and run latex or (more usually) pdflatex. Thus, since I am in the directory, pdflatex finds it: pdflatex myfile Of course, I could say: pdflatex c:\users\myname\documents\mysubdoc\myfile and run it from anywhere, but that is a lot of extra typing. If you do want to do that, I would make a batch directory and put a batch command there. The batch command system is, on a ms-dos computer, a primitive version of the shell system. By setting up c:\batch and adding c:\batch to your system path, you can do the following runmylatex from anywhere. You need to have c:\batch on the path. Inside c:\batch, you create runmylatex.bat This contains pdflatex c:\users\myname\documents\mysubdoc\myfile I use a scheme like this in other places. -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Wednesday, April 08, 2015 1:16 PM To: [email protected] Subject: [MiKTeX] Advice on WinEdt/MiKTeX on a Windows 7? Ulrike Fischer wrote 2015-04-04 21:04:11 >> I have a number of my TeX files in a folder. Any one of these files >> can be compiled by plain TeX with no difficulty. But if I use WinEdt >> to create and edit a new file in the same folder, when I run the TeX >> compiler via WinEdt, TeX says "I can't find file newfile.tex", even >> though that very file is open in WinEdt. >> >> I tried using "maintenance" to refresh FNDB, and still get the same error. >> Maintenance/Options/Root shows no directories, unless "Show >> MiKTeX-maintained root directories" is checked. Then it shows my TeX >> file directory (that containing the TeX documents I have written). >You should'nt put files that you want to compile in a texmf root. >That's the wrong place, such files belongs e.g. in your document >folder. Miktex doesn't add the current folder in a texmf to the >search path so you will always have problems if you try to compile >there. I already have all my TeX files in a separate directory (call it T). I tried something else: I used Maintenance (Admin) to refresh FNDB, instead of Maintenance, and now my new file compiles using WinEdt/MiKTeX. Using Maintenance (Admin)/Options/Root shows a) only directory T when "Show MiKTeX-maintained root directories" is NOT checked, and b) diretory T + C:\ProgramData\MiKTeX\2.9 and C:\Program Files (x86)\MiKTeX 2.9 when it is. So, I guess I still have the original question: how do I set things up so when I create a new TeX file in my directory T, MiKTeX will see it *without* my having to refresh FNDB (or any other such step). ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ MiKTeX-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/miktex-users ----------------------------------------------------------------------- Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain privileged and confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF