LaTeX forum ⇒ Feature SuggestionsJump to line with error

Suggestions and discussions for new TeXnicCenter features
dba
Posts: 3
Joined: Tue Oct 14, 2008 11:27 pm

Re: Jump to line with error

Postby dba » Sat Oct 25, 2008 12:09 am

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!

Hedron
Posts: 4
Joined: Tue Oct 07, 2008 3:52 pm

Postby Hedron » Tue Oct 28, 2008 3:59 pm

Here is a minimal example:

\documentclass[11pt, twoside, a4paper]{article}
\begin{document}
This is a \emp h{TEST}.
\end{document}

output:
  1. This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2008.10.28) 28 OCT 2008 15:10
  2. entering extended mode
  3. **E:/tex/minimal.tex
  4. (E:/tex/minimal.tex
  5. LaTeX2e <2005/12/01>
  6. Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, german-x-2008-06-18, ngerm
  7. an-x-2008-06-18, french, loaded.
  8. ("D:\Programme\MiKTeX 2.7\tex\latex\base\article.cls"
  9. Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
  10. ("D:\Programme\MiKTeX 2.7\tex\latex\base\size11.clo"
  11. File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
  12. )
  13. \c@part=\count79
  14. \c@section=\count80
  15. \c@subsection=\count81
  16. \c@subsubsection=\count82
  17. \c@paragraph=\count83
  18. \c@subparagraph=\count84
  19. \c@figure=\count85
  20. \c@table=\count86
  21. \abovecaptionskip=\skip41
  22. \belowcaptionskip=\skip42
  23. \bibindent=\dimen102
  24. )
  25. No file minimal.aux.
  26. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.
  27. LaTeX Font Info: ... okay on input line 2.
  28. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.
  29. LaTeX Font Info: ... okay on input line 2.
  30. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.
  31. LaTeX Font Info: ... okay on input line 2.
  32. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.
  33. LaTeX Font Info: ... okay on input line 2.
  34. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.
  35. LaTeX Font Info: ... okay on input line 2.
  36. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.
  37. LaTeX Font Info: ... okay on input line 2.
  38. ! Undefined control sequence.
  39. l.3 This is a \emp
  40. h{TEST}.
  41. The control sequence at the end of the top line
  42. of your error message was never \def'ed. If you have
  43. misspelled it (e.g., `\hobx'), type `I' and the correct
  44. spelling (e.g., `I\hbox'). Otherwise just continue,
  45. and I'll forget about whatever was undefined.
  46.  
  47. [1
  48. {C:/Dokumente und Einstellungen/All Users/Anwendungsdaten/MiKTeX/2.7/pdftex/config/pdftex.map}] (minimal.aux) )
  49. Here is how much of TeX's memory you used:
  50. 202 strings out of 95304
  51. 2017 string characters out of 1183179
  52. 46328 words of memory out of 1500000
  53. 3489 multiletter control sequences out of 110000
  54. 3940 words of font info for 15 fonts, out of 1200000 for 2000
  55. 14 hyphenation exceptions out of 8191
  56. 21i,4n,19p,147b,111s stack positions out of 5000i,500n,10000p,200000b,5000s
  57. <D:/Progr
  58. amme/MiKTeX 2.7/fonts/type1/bluesky/cm/cmr10.pfb>
  59. Output written on minimal.pdf (1 page, 5623 bytes).
  60. PDF statistics:
  61. 10 PDF objects out of 1000 (max. 8388607)
  62. 0 named destinations out of 1000 (max. 131072)
  63. 1 words of extra memory for PDF output out of 10000 (max. 10000000)
  64.  


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:

  1. This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=pdflatex 2008.10.28) 28 OCT 2008 15:11
  2. entering extended mode
  3. **E:/tex/long*sub*directory/minimal.tex
  4. ("E:/tex/long sub directory/minimal.tex"
  5. LaTeX2e <2005/12/01>
  6. Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, german-x-2008-06-18, ngerm
  7. an-x-2008-06-18, french, loaded.
  8. ("D:\Programme\MiKTeX 2.7\tex\latex\base\article.cls"
  9. Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
  10. ("D:\Programme\MiKTeX 2.7\tex\latex\base\size11.clo"
  11. File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
  12. )
  13. \c@part=\count79
  14. \c@section=\count80
  15. \c@subsection=\count81
  16. \c@subsubsection=\count82
  17. \c@paragraph=\count83
  18. \c@subparagraph=\count84
  19. \c@figure=\count85
  20. \c@table=\count86
  21. \abovecaptionskip=\skip41
  22. \belowcaptionskip=\skip42
  23. \bibindent=\dimen102
  24. )
  25. No file minimal.aux.
  26. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.
  27. LaTeX Font Info: ... okay on input line 2.
  28. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.
  29. LaTeX Font Info: ... okay on input line 2.
  30. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.
  31. LaTeX Font Info: ... okay on input line 2.
  32. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.
  33. LaTeX Font Info: ... okay on input line 2.
  34. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.
  35. LaTeX Font Info: ... okay on input line 2.
  36. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.
  37. LaTeX Font Info: ... okay on input line 2.
  38. ! Undefined control sequence.
  39. l.3 This is a \emp
  40. h{TEST}.
  41. The control sequence at the end of the top line
  42. of your error message was never \def'ed. If you have
  43. misspelled it (e.g., `\hobx'), type `I' and the correct
  44. spelling (e.g., `I\hbox'). Otherwise just continue,
  45. and I'll forget about whatever was undefined.
  46.  
  47. [1
  48. {C:/Dokumente und Einstellungen/All Users/Anwendungsdaten/MiKTeX/2.7/pdftex/config/pdftex.map}] (minimal.aux) )
  49. Here is how much of TeX's memory you used:
  50. 202 strings out of 95304
  51. 2074 string characters out of 1183179
  52. 46328 words of memory out of 1500000
  53. 3489 multiletter control sequences out of 110000
  54. 3940 words of font info for 15 fonts, out of 1200000 for 2000
  55. 14 hyphenation exceptions out of 8191
  56. 21i,4n,19p,166b,111s stack positions out of 5000i,500n,10000p,200000b,5000s
  57. <D:/Progr
  58. amme/MiKTeX 2.7/fonts/type1/bluesky/cm/cmr10.pfb>
  59. Output written on minimal.pdf (1 page, 5623 bytes).
  60. PDF statistics:
  61. 10 PDF objects out of 1000 (max. 8388607)
  62. 0 named destinations out of 1000 (max. 131072)
  63. 1 words of extra memory for PDF output out of 10000 (max. 10000000)
  64.  


but if compiling to dvi everything works fine!
  1. This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded format=latex 2008.10.28) 28 OCT 2008 15:15
  2. entering extended mode
  3. **minimal.tex
  4. (minimal.tex
  5. LaTeX2e <2005/12/01>
  6. Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, german, ngerman, german-x-2008-06-18, ngerm
  7. an-x-2008-06-18, french, loaded.
  8. ("D:\Programme\MiKTeX 2.7\tex\latex\base\article.cls"
  9. Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
  10. ("D:\Programme\MiKTeX 2.7\tex\latex\base\size11.clo"
  11. File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
  12. )
  13. \c@part=\count79
  14. \c@section=\count80
  15. \c@subsection=\count81
  16. \c@subsubsection=\count82
  17. \c@paragraph=\count83
  18. \c@subparagraph=\count84
  19. \c@figure=\count85
  20. \c@table=\count86
  21. \abovecaptionskip=\skip41
  22. \belowcaptionskip=\skip42
  23. \bibindent=\dimen102
  24. ) (minimal.aux)
  25. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2.
  26. LaTeX Font Info: ... okay on input line 2.
  27. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2.
  28. LaTeX Font Info: ... okay on input line 2.
  29. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2.
  30. LaTeX Font Info: ... okay on input line 2.
  31. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2.
  32. LaTeX Font Info: ... okay on input line 2.
  33. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2.
  34. LaTeX Font Info: ... okay on input line 2.
  35. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2.
  36. LaTeX Font Info: ... okay on input line 2.
  37.  
  38. ! Undefined control sequence.
  39. l.3 This is a \emp
  40. h{TEST}.
  41. The control sequence at the end of the top line
  42. of your error message was never \def'ed. If you have
  43. misspelled it (e.g., `\hobx'), type `I' and the correct
  44. spelling (e.g., `I\hbox'). Otherwise just continue,
  45. and I'll forget about whatever was undefined.
  46.  
  47. [1
  48.  
  49. ] (minimal.aux) )
  50. Here is how much of TeX's memory you used:
  51. 202 strings out of 95305
  52. 2008 string characters out of 1183206
  53. 46328 words of memory out of 1500000
  54. 3489 multiletter control sequences out of 110000
  55. 3940 words of font info for 15 fonts, out of 1200000 for 2000
  56. 14 hyphenation exceptions out of 8191
  57. 21i,4n,19p,140b,111s stack positions out of 5000i,500n,10000p,200000b,5000s
  58.  
  59. Output written on minimal.dvi (1 page, 252 bytes).


The only obvious difference in the error log is the way the file name is printed! Maybe this is the key for the problem?

MartinC
Posts: 152
Joined: Wed Jan 17, 2007 10:09 pm

Postby MartinC » Tue Oct 28, 2008 6:04 pm

It works with me. It could be because of the way you call latex. I use the command line -interaction=nonstopmode "%Wm".

Hedron
Posts: 4
Joined: Tue Oct 07, 2008 3:52 pm

Postby Hedron » Wed Oct 29, 2008 10:44 am

It works with me. It could be because of the way you call latex. I use the command line -interaction=nonstopmode "%Wm".

Ok, thats it! I had "%pm" instead of "%Wm" and after changing it works fine!
Thank you!
edit: "%wm" works as well.

marianatasaf2
Posts: 3
Joined: Wed Mar 30, 2011 4:56 pm

Postby marianatasaf2 » Wed Mar 30, 2011 5:03 pm

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.

dandus
Posts: 10
Joined: Thu Mar 31, 2011 12:41 pm

Postby dandus » Thu Mar 31, 2011 1:00 pm

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!

marianatasaf2
Posts: 3
Joined: Wed Mar 30, 2011 4:56 pm

Postby marianatasaf2 » Fri Apr 01, 2011 5:15 pm

@dandus Glad I could help!


Return to “Feature Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest