mailing-list for TeXmacs Users

Text archives Help


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


Chronological Thread 
  • From: "Sam Liddicott" <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Re: How to find errors in a TeXmacs document?
  • Date: Tue, 09 Aug 2011 17:04:44 +0100
  • Envelope-to:
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAADxQTFRF NTdQY2Z/i286eHFugnNXoJBwm5GCs5VeoqO0ua+fwLCQ4c2q19C81NDF4eLr/unQ/PTf/fXW+/rq /f/7XKo76wAAAAlwSFlzAAALEwAACxMBAJqcGAAAAi9JREFUSMetloGSqyAMRVsFNAQkxP//15cE 62rFdt/MZqbTVu/hBhLEx/qf8fgDIAN455wHyPk7wCIe9nA+fwGSH87hgD8AHPfRpy2GwdMtcBh+ mg4Ech9Ih+RNixJKDLEL0GF8VLkSojePHrDlryNijbFW8zBg8PUKbBOI6D1WCV5Rf2DzxCtgBlMs tRRVW5LyVW3ew1TfAZZ6RcQicpb4yZmaC74DJADK6BdATOrUAbJzsZie+K22ZnEBknNYysvhVH6u 1X8CqAe4DuANoPoOrAbsHXUARJ5knc5z4EyyTnHoAqj7xvkYIdk65AwhyEZKMusOIDV2QQQaCnDQ gBiDR3RdIEb5CBESt2wgQJI0Yx/Agphg1MgNsD+QkszM9wHVPx/PeQOW+fmcR9DF8+4CyCJhCuP8 fDzmBbLqs8JzMODqYNfDvKhoGYM2lDosy5jlRozccRAgrPM8iygQS3Mv87IugUgKlC7NZ6liuy4r uresVq5QuQAr09ZKEga8OkluyKXeQ6Bs3SrtqgC1pWLNqAfwDhBnB+sK8OrVL4D4h1B4zWPWhJhu gPUHKA5EwSMYUMsdQK+UKDhIOTSHeg+8HCoTOGtB/gwcl4mSdGybwXegPWhM/RHYKwchkckhUNMX 6j7ueQNScLbZZOPRxaADyO2UQCJpl7wbnE6gQ+ksWjpngxOwF1tF5ecP3R6KB+AQxPfHLncQ+nKw 06fhu68OTIfJ869eTtg22l+9zfwDK3mKl5BFHMYAAAAASUVORK5CYII=

On 09/08/11 02:20, David G. Wonnacott wrote:
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


I like your chapter name. "In which ..." has shades of A. A. Milne, are you a fan?

Otherwise... yup! Sucks.

I'll probably fix the labels problem first but not very soon.

However workaround for the labels problem is to run this attached sed script which removes the toc, the references and the aux section.

Then re-open the doc in texmacs and update-all a couple of times.

I use the sed script as a git clean/smudge filter so that the toc, references and aux don't go into git - as they typically cause problems when merging, and the page numbers not only have no significant but can also be re-calculated anyway

git-fix-texmacs myfile.tm > myfile.new.tm

OR MAKE SURE YOU EDIT THE FILE and change the first line to:

#! /bin/sed -i -f

and then you can do:

git-fix-texmacs myfile.tm

but never never do:

git-fix-texmacs < myfile.tm > myfile.tm

or it will trash your file and you probably wont have a backup

Sam

--
[FSF Associate Member #2325] <http://www.fsf.org/register_form?referrer=2325>

<http://www.openrightsgroup.org/>
#! /bin/sed -f

/^\( *<.table-of-contents\|<.references\|<.auxiliary\)/{h;/<\\/p};x;/^
*<\\/{x;d};x



Archive powered by MHonArc 2.6.19.

Top of page