ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Searching
@ 1999-09-02 20:01 David Arnold
  1999-09-02 20:32 ` Searching Tobias Burnus
  1999-09-02 21:59 ` Searching Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: David Arnold @ 1999-09-02 20:01 UTC (permalink / raw)
  Cc: pragma

Hans,

This from the Miktex site:

Improving the edit/view/edit cycle

Use TeX's --src option to enrich the DVI file with source file information. 

Benefits

      You will be able to synchronize the DVI previewer with the text
editor while you are editing the TeX source file. 
      You will be able to synchronize the text editor with the DVI
previewer while you are viewing the DVI file. 

Details

The command 

latex --src mydoc.tex

will enrich the DVI file mydoc.dvi with source file information, i.e.
mydoc.dvi will contain references to mydoc.tex. 

I'd like to try to implement this, but I am not sure to insert the switch
--src in light of I am using texexec. The best situation for me would be
able to put something on the first line of master.tex that texexec would
interpret.

Any ideas?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Searching
  1999-09-02 20:01 Searching David Arnold
@ 1999-09-02 20:32 ` Tobias Burnus
  1999-09-02 21:59 ` Searching Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Burnus @ 1999-09-02 20:32 UTC (permalink / raw)
  Cc: NTG-ConTeXt

Hi David,

> I'd like to try to implement this, but I am not sure to insert the switch
> --src in light of I am using texexec. The best situation for me would be
> able to put something on the first line of master.tex that texexec would
> interpret.
How about something like this (untested):
--- /usr/bin/texexec    Fri Jul 23 03:52:50 1999
+++ texexec     Thu Sep  2 22:30:13 1999
@@ -100,13 +100,15 @@
     "color"         => \$UseColor         ,
     "environment=s" => \$Environment      ,
     "result=s"      => \$Result           ,
-    "mptex"         => \$DoMPTeX          ) ;
+    "mptex"         => \$DoMPTeX          ,
+    "miktex-src"    => \$MikTeXSrc        ) ;

 $SIG{INT} = "IGNORE" ;

 if ($ProducePdf)  { $OutputFormat = "pdf" }
-if ($RunOnce)     { $NOfRuns = 1 }
-if ($Pages)       { $NOfRuns = 1 }
+if ($RunOnce)     { $NOfRuns = 1          }
+if ($Pages)       { $NOfRuns = 1          }
+if ($MikTeXSrc)   { $MikTeXSrc = "--src"  }

 $Program = " TeXExec 1.2 - ConTeXt / PRAGMA ADE 1997-1999" ;

@@ -211,7 +213,7 @@
 $ConTeXtInterfaces{en} = "en" ; $ConTeXtInterfaces{english}  = "en" ;
 $ConTeXtInterfaces{de} = "de" ; $ConTeXtInterfaces{german}   = "de" ;
 $ConTeXtInterfaces{cz} = "cz" ; $ConTeXtInterfaces{czech}    = "cz" ;
-$ConTeXtInterfaces{uk} = "uk" ; $ConTeXtInterfaces{brittish} = "uk" ;
+$ConTeXtInterfaces{uk} = "uk" ; $ConTeXtInterfaces{british}  = "uk" ;

 $Help{HELP} =
   "                --help   show this or more, e.g. '--help interface'\n" ;
@@ -278,7 +280,7 @@
   "                           =nl : dutch    \n" .
   "                           =de : german   \n" .
   "                           =cz : czech    \n" .
-  "                           =uk : brittish \n" ;
+  "                           =uk : british  \n" ;

 $Help{RUNS} =
   "                --runs   maximum number of TeX runs \n" ;
@@ -524,7 +527,7 @@
           { $TeXProgNameFlag = "-progname=context" } }
     $cmd = "$TeXProgramPath$TeXExecutable " .
            "$TeXProgNameFlag " .
-           "$TeXFormatFlag$TeXFormatPath$Format $JobName" ;
+           "$TeXFormatFlag$TeXFormatPath$Format $MikTeXSrc $JobName" ;
     $Problems = system ( "$cmd" ) ;
     my $StopTime = time - $StartTime ;
     print "\n              run time : $StopTime seconds\n" ;

Tobias


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Searching
  1999-09-02 20:01 Searching David Arnold
  1999-09-02 20:32 ` Searching Tobias Burnus
@ 1999-09-02 21:59 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 1999-09-02 21:59 UTC (permalink / raw)
  Cc: ntg-context

David Arnold wrote:
> 
> Hans,
> 
> This from the Miktex site:
> 
> Improving the edit/view/edit cycle
> 
> Use TeX's --src option to enrich the DVI file with source file information.
> 
> Benefits
> 
>       You will be able to synchronize the DVI previewer with the text
> editor while you are editing the TeX source file.
>       You will be able to synchronize the text editor with the DVI
> previewer while you are viewing the DVI file.
> 
> Details
> 
> The command
> 
> latex --src mydoc.tex
> 
> will enrich the DVI file mydoc.dvi with source file information, i.e.
> mydoc.dvi will contain references to mydoc.tex.
> 
> I'd like to try to implement this, but I am not sure to insert the switch
> --src in light of I am using texexec. The best situation for me would be
> able to put something on the first line of master.tex that texexec would
> interpret.
> 
> Any ideas?

So you need something --pass=src,whatever resulting in 

  --src --whatever

If ok, I'll implement it. 

hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The NetheX-Mozilla-Status: 0009 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-09-02 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-02 20:01 Searching David Arnold
1999-09-02 20:32 ` Searching Tobias Burnus
1999-09-02 21:59 ` Searching Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).