Menu

Line number: Notepad++ and LaTeX

2008-03-22
2012-11-13
  • Nobody/Anonymous

    Hello.

    I suggest to include the current line number in the set of environment variables.

    Such variable is needed, for instance, if you use Notepad++ for LaTeX and want to make a forward search in the output dvi-file.
    I suppose the required effort for implementation is little.
    Yet, it would surely make Notepad++ more attractive to users of LaTeX.

    Happy TeXing, JTM.

     
    • Nobody/Anonymous

      Could you perhaps explain what you really mean? I can't figure out what kind of change or addition it is that you propose.

       
    • Nobody/Anonymous

      Notepad++ already provides environment variables such as CURRENT_WORD and FULL_CURRENT_PATH.
      Users of LaTeX would also like to have a variable CURRENT_LINE.

      Some more details for MikTeX.
      Having compiled your tex-file with latex.exe you want to view the output, i.e., the dvi-file, using yap.
      The command line is
      yap -s 41mydoc.tex mydoc.dvi
      where 41 is the current line in the current tex-file.
      The effect of this call is that yap opens the dvi-document and jumps to the area corresponding to the position of the cursor in the tex-file.
      For Notepad++ the command line would be something like
      yap -s $(CURRENT_LINE)mydoc.tex mydoc.dvi

       
MongoDB Logo MongoDB