Skip to Content.
Sympa Menu

texmacs-users - [TeXmacs] Re: How to find errors in a TeXmacs document?

Subject: mailing-list for TeXmacs Users

List archive

[TeXmacs] Re: How to find errors in a TeXmacs document?


Chronological Thread 
  • From: "David G. Wonnacott" <address@hidden>
  • To: address@hidden
  • Subject: [TeXmacs] Re: How to find errors in a TeXmacs document?
  • Date: Mon, 08 Aug 2011 21:20:36 -0400

Hi TeXmacs folks,

I am looking for a way to find errors (bad macros, illegal image links, obsolete label uses) in a TeXmacs document *without* having to visually scan the entire 100+ page document. Details of my woes are in the attached TeXmacs/PDF/script-output files.

Thanks,
    Dave Wonnacott

<TeXmacs|1.0.7.7>

<style|book>

<\body>
  <chapter|In Which We Make Some Mistakes>

  Here is an attempt to include an image file (noman.eps) --\<gtr\>
  <image|file:noman.eps|*5/8|*5/8||||> \<less\>--, to see if there is any
  error from TeXmacs at the command-line prompt (or anywhere else, for that
  matter).

  \;

  Here is an attempt to use a TeXmacs macro I've not defined
  (backslash-noman) --\<gtr\> <noman> \<less\>--, once again I am hoping for
  some sort of error message to notify me.

  \;

  Obviously in this small test I can see the problems on my screen, but in a
  150 page book, I need to get a quick summary of errors.

  \;

  Also nice would be a way to throw out any no-longer-current label's
  <emdash> as far as I can tell, if I create a label section:noman
  <label|sec:noman> and then change it to sec-noman, any old references
  --\<gtr\> <reference|section:noman> \<less\>-- to the original label retain
  their old values even if the new label's number changes (even after using
  ``Document-\<gtr\>Update All'' my customary three times).

  \;

  I believe I used to see errors about bad image includes and/or bad commands
  when I tried to produce a PDF file, and now (TeXmacs 1.0.7.7 on Ubuntu
  11.04) I don't.

  \;

  \;
</body>

<\initial>
  <\collection>
    <associate|font-base-size|11>
    <associate|page-medium|paper>
    <associate|page-type|letter>
  </collection>
</initial>

<\references>
  <\collection>
    <associate|auto-1|<tuple|1|1>>
    <associate|sec:noman|<tuple|1|1>>
    <associate|section:noman|<tuple|1|?>>
  </collection>
</references>

<\auxiliary>
  <\collection>
    <\associate|toc>
      <vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>In
      Which We Make Some Mistakes> <datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
      <no-break><pageref|auto-1><vspace|0.5fn>
    </associate>
  </collection>
</auxiliary>

Attachment: bad-include.pdf
Description: Adobe PDF document

Script started on Mon 08 Aug 2011 07:55:48 PM EDT
davew@J-W-Macmini:~/Teaching/CS1-book/TeXmacs-tests$ texmacs bad-include.tm
TeXmacs] With linked TrueType support
Loading Dave's my-init-texmacs.scm
TeXmacs] Loading corktounicode
TeXmacs] Loading unicode-cork-oneway
TeXmacs] Loading tmuniversaltounicode
TeXmacs] Loading unicode-symbol-oneway
davew@J-W-Macmini:~/Teaching/CS1-book/TeXmacs-tests$ echo "I just opened the
fil
e and chose Export As PDF ... no errors"
I just opened the file and chose Export As PDF ... no errors
davew@J-W-Macmini:~/Teaching/CS1-book/TeXmacs-tests$ exit

Script done on Mon 08 Aug 2011 07:56:35 PM EDT



Archive powered by MHonArc 2.6.19.

Top of Page