Feature Suggestions ⇒ Jump to line with error
Re: Jump to line with error
It doesn't matter whether I'm creating a .pdf or just doing build without producing output -- sometimes it automatically jumps to the error line and sometimes it doesn't. It still seems like there must be a toggle somewhere that I can use to reset the system to jump to the error line!
TikZ book: Now 40% off at Amazon for a short time.
Jump to line with error
Here is a minimal example:
\documentclass[11pt, twoside, a4paper]{article}
\begin{document}
This is a \emp h{TEST}.
\end{document}
output:
No problem here. TexnicCentere finds the error message and jumps to the correct line in the source code.
But if i move the file to another subdirectory "long sub directory", it does not jump to the line in the source code if compiling directly to pdf:
but if compiling to dvi everything works fine!
The only obvious difference in the error log is the way the file name is printed! Maybe this is the key for the problem?
\documentclass[11pt, twoside, a4paper]{article}
\begin{document}
This is a \emp h{TEST}.
\end{document}
output:
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2008.10.28) 28 OCT 2008 15:10entering extended mode**E:/tex/minimal.tex(E:/tex/minimal.texLaTeX2e <2005/12/01>Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.("D:\Programme\MiKTeX 2.7\tex\latex\base\article.cls"Document Class: article 2005/09/16 v1.4f Standard LaTeX document class("D:\Programme\MiKTeX 2.7\tex\latex\base\size11.clo"File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option))\c@part=\count79\c@section=\count80\c@subsection=\count81\c@subsubsection=\count82\c@paragraph=\count83\c@subparagraph=\count84\c@figure=\count85\c@table=\count86\abovecaptionskip=\skip41\belowcaptionskip=\skip42\bibindent=\dimen102)No file minimal.aux.LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.! Undefined control sequence.l.3 This is a \emph{TEST}.The control sequence at the end of the top line
But if i move the file to another subdirectory "long sub directory", it does not jump to the line in the source code if compiling directly to pdf:
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2008.10.28) 28 OCT 2008 15:11entering extended mode**E:/tex/long*sub*directory/minimal.tex("E:/tex/long sub directory/minimal.tex"LaTeX2e <2005/12/01>Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.("D:\Programme\MiKTeX 2.7\tex\latex\base\article.cls"Document Class: article 2005/09/16 v1.4f Standard LaTeX document class("D:\Programme\MiKTeX 2.7\tex\latex\base\size11.clo"File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option))\c@part=\count79\c@section=\count80\c@subsection=\count81\c@subsubsection=\count82\c@paragraph=\count83\c@subparagraph=\count84\c@figure=\count85\c@table=\count86\abovecaptionskip=\skip41\belowcaptionskip=\skip42\bibindent=\dimen102)No file minimal.aux.LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.! Undefined control sequence.l.3 This is a \emph{TEST}.The control sequence at the end of the top line
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=latex 2008.10.28) 28 OCT 2008 15:15entering extended mode**minimal.tex(minimal.texLaTeX2e <2005/12/01>Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.("D:\Programme\MiKTeX 2.7\tex\latex\base\article.cls"Document Class: article 2005/09/16 v1.4f Standard LaTeX document class("D:\Programme\MiKTeX 2.7\tex\latex\base\size11.clo"File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option))\c@part=\count79\c@section=\count80\c@subsection=\count81\c@subsubsection=\count82\c@paragraph=\count83\c@subparagraph=\count84\c@figure=\count85\c@table=\count86\abovecaptionskip=\skip41\belowcaptionskip=\skip42\bibindent=\dimen102) (minimal.aux)LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.LaTeX Font Info: ... okay on input line 2.! Undefined control sequence.l.3 This is a \emph{TEST}.The control sequence at the end of the top line
Re: Jump to line with error
It works with me. It could be because of the way you call latex. I use the command line -interaction=nonstopmode "%Wm".
Jump to line with error
Ok, thats it! I had "%pm" instead of "%Wm" and after changing it works fine!It works with me. It could be because of the way you call latex. I use the command line -interaction=nonstopmode "%Wm".
Thank you!
edit: "%wm" works as well.
-
- Posts: 3
- Joined: Wed Mar 30, 2011 4:56 pm
Re: Jump to line with error
it doesn'n work if the path of the tex file has a folder with a space in its name. I had the same problem and that solve it for me.
Re: Jump to line with error
I had the same problem, but then i solved it. Going by trial and error, I realized that this feature doesn't work if the file name contains any dots (.) or whitespaces ( ). Underscores (_) seem fine though.
E.g., it didn't work naming the file "a.test" or "a test", but it did work if i called it "a_test".
Personally, I prefer to press F9 rather than move my hand all the way to the mouse, click on the right spot and then back to the keyboard.
I'm so glad i have this feature back, I am going to save so much time!
E.g., it didn't work naming the file "a.test" or "a test", but it did work if i called it "a_test".
Personally, I prefer to press F9 rather than move my hand all the way to the mouse, click on the right spot and then back to the keyboard.
I'm so glad i have this feature back, I am going to save so much time!
-
- Posts: 3
- Joined: Wed Mar 30, 2011 4:56 pm
Re: Jump to line with error
@dandus Glad I could help!