[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

738.0. "DOCUMENT-TeX Dictionary ??" by CADSYS::MCDONOUGH () Fri Jul 31 1987 15:41

	Is there a list anywhere that correlates DOCUMENT tags with TeX 
	commands? 

	In a couple weeks, I am going to convert from LaTeX to DOCUMENT 
	a manual that is *loaded* with complex equations. I have received 
	some help (via this conference) from Doug Rayner, who produced a
	LaTeX2GNC program in SCAN, but who warns that he didn't have
	any equations to deal with.

	I'm not a programmer, and can use all the help I can get toward 
	modifying Doug's program to do everything I need. A great start 
	would be a list matching DOCUMENT and Tex "commands".

	Thanks.
	Kevin

     ps I would also appreciate feedback on my planned conversion. Am
	I on the right track in asking for a "DOCUMENT-and-TeX" list? Should 
	I be asking instead for a "DOCUMENT-and-LaTeX" list? Do you 
	foresee any problems with my approach?
T.RTitleUserPersonal
Name
DateLines
738.1MARTY::FRIEDMANFri Jul 31 1987 17:044
    Can you get LATEX to generate straight TEX? If so, you might try
    running the .TEX file with DOCUMENT/NOTAG. Just a thought.
    
    Marty
738.2no LaTeX experts hereVAXUUM::KOHLBRENNERFri Jul 31 1987 17:0627
    The DOCUMENT development team does not have a LaTeX expert
    so you are not likely to get any good advice from us.
    We're sympathetic to the problem, just not equipped to
    supply solution(s).  So, LaTeX help probably has to come
    from the in-house user community and this sure is the right
    place to address that community!
    
    The math tags in DOCUMENT for v1 were developed by mapping
    backward from the plain TeX macros into SDML tags, so if you
    have the SDML Users Guide part 1, just create an SDML file with
    all the math tags, run DOCUMENT over it with the qualifier /NOTEX,
    and print out the .TEX file that you get.  That will show you
    the correspondence between SDML tags and TeX macros.  You can
    then figure out how to go from LaTeX math notation to SDML 
    math tags.
    
    There is no general SDML to TeX mapping list.  Many of the SDML
    tags put out different TeX macros depending on the context in
    which they are used.  The suggestion made in an earlier note 
    (repeated above) to write a file using the SDML tags, and process
    it with the /NOTEXT qualifier, and print the resulting .TEX file
    is probably the best way to get such a list, except that you will
    be getting the TeX macros for the particular context in which you
    used the SDML tag.  In another context you might get different
    TeX macros...
    
    bill
738.3do you *really* need to do TeX code?WRONGO::PARMENTERVenusian or Venerean?Fri Jul 31 1987 18:1210
    Speaking as someone who is a non LaTeX user, it sounds like what
    you really need to be worried about is mappings between LaTeX and
    DOCUMENT.   Until you delve into the wonderful world of doctypes,
    it seems that you *may* be able to avoid sullying your hands with
    TeX code.  On the other hand,  If your equations are really difficult, 
    then you may want to punt them:  put them in a tex file, and try
    to use <include_tex_file>.  This may or may not work.
    
    David
    
738.4I get no TeX from LaTeX.BUNSUP::LITTLETodd Little, NYA SWS, 323-4475Fri Jul 31 1987 18:2411
    As for the suggestion of getting LaTeX to generate standard TeX,
    thats out.  LaTeX and DOCUMENT both work by creating their own format
    file that is used to initialize TeX's stating state, i.e. variables,
    macros, etc.  Running the LaTeX code through $ DOCUMENT/NOTAG won't
    do it either, because the LaTeX and DOCUMENT format files are
    different.  The same is true of PLAIN TeX.
    
    -tl
    
    PS  The above are generalizations, not necessarily true for every
   	bit of TeX code.
738.5Why use Document if you don't really convert?IJSAPL::KLERKTheo de KlerkSat Aug 01 1987 01:0317
 There is a lot of LaTeX going on in VAXUUM::TEX. At times I think you
 could paraphrase "real programmers do it in fortran" by stating in
 this file that "real typesetters do it in LaTeX" (... :-) )

 Trying to use DOCUMENT/NOTAG to me sounds useless (even if it worked,
 which it doesn't). A converter to me should be something that translates
 one source into the other in order to develop the newly created source
 further. What's the use to squeeze it through Document if you can
 already squeeze it throuh LaTeX? I prefer to convert the LaTeX files
 to Document and delete the original LaTeXs...


 So now comes the big question (asked before in other notes): is there
 a LaTeX-Document converter around (apart from the simple one mentioned
 earlier in this file)?

Theo
738.6responses to repliesCADSYS::MCDONOUGHMon Aug 03 1987 11:5972
>    Can you get LATEX to generate straight TEX? If so, you might try
>    running the .TEX file with DOCUMENT/NOTAG. Just a thought.


	My primary goal is to have a .GNC file that can be easily revised 
	in the future. My hope is that by limiting my writing projects to
	a single production system/language, I can become as proficient
	as I'd like to be.

	Currently, I waste a lot of time whenever I shift from LaTeX to DOCUMENT
	(or vice versa) because I find myself going through a relearning 
	process with each shift. 


>                                                  (. . .)  so if you
>    have the SDML Users Guide part 1, just create an SDML file with
>    all the math tags, run DOCUMENT over it with the qualifier /NOTEX,
>    and print out the .TEX file that you get.  That will show you
>    the correspondence between SDML tags and TeX macros.  You can
>    then figure out how to go from LaTeX math notation to SDML 
>    math tags.
 

	Thanks. This is what I needed -- a way to get the "list".

   
>    There is no general SDML to TeX mapping list.  Many of the SDML
>    tags put out different TeX macros depending on the context in
>    which they are used.  


	I anticipate that the book will always be produced using the
	software.reference doctype, so I won't worry about this.


>         On the other hand,  If your equations are really difficult, 
>    then you may want to punt them:  put them in a tex file, and try
>    to use <include_tex_file>.  This may or may not work.
 

	Again, this conflicts with my goal of working with a single
	system. What's the slogan --  "one egg, one basket?"




>    As for the suggestion of getting LaTeX to generate standard TeX,
>    thats out.  LaTeX and DOCUMENT both work by creating their own format
>    file that is used to initialize TeX's stating state, i.e. variables,
>    macros, etc.  Running the LaTeX code through $ DOCUMENT/NOTAG won't
>    do it either, because the LaTeX and DOCUMENT format files are
>    different.  The same is true of PLAIN TeX.
    
 
	Thanks for the benefit of your experience.



>               A converter to me should be something that translates
 one source into the other in order to develop the newly created source
 further. What's the use to squeeze it through Document if you can
 already squeeze it throuh LaTeX? 

	I couldn't agree more.

****************************************************************************

	Well, I'll give it a try starting in about 10 days. I'll post the 
	results as a reply to this note. 

	Thanks for all the help. 
	Kevin