<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
I am experiencing a strange phenomenon which I am not sure I can replicate in a minimal example.  Has anyone else experienced this?
<div class=""><br class="">
<div class="">I am working on a book-length project using the memoir documentclass and using a master file with \input statements for different sections, which are in separate files.</div>
<div class="">Today, I had written a brief \subsection, compiled the whole book with that, decided to change it, made changes and wrote a subsequent subsection, and compiled again.</div>
<div class="">The intial subsection showed up <i class="">twice</i>—in the proper place, and followed by (one copy of) the subsequent subsection.</div>
<div class="">I commented out all that material in the source file (there is only one copy of either subsection there) and compiled twice, hoping to shut off whatever was leading to the</div>
<div class="">loop that repeats the subsection.  As desired, neither subsection appeared.</div>
<div class="">So then I uncommented the two subsections, and compiled.  Again, I got two copies of (only) the initial section.</div>
<div class="">Then I copied the previously uncommented material into a new file, modified my master file to input the new file in place of the (whole chapter) file where this material had </div>
<div class="">appeared.  This time the initial subsection showed up <i class="">three times</i><span style="font-style: normal;" class=""> (again followed by the succeeding section, in a single copy).</span></div>
<div class=""><span style="font-style: normal;" class="">Then I went back to my original setup (ie, took out the \input for the test file, but replaced the \input for the whole chapter.</span></div>
<div class=""><span style="font-style: normal;" class="">Now </span><i class="">that also</i><span style="font-style: normal;" class=""> compiles with three copies of the offending </span>subsection.</div>
<div class=""><br class="">
</div>
<div class="">Needless to say, I will erase the two subsections and retype everything from scratch, but I am curious about what could possibly be causing what is clearly some kind of </div>
<div class="">“do loop” that the compiler is getting from my source file.</div>
<div class=""><br class="">
</div>
<div class="">I experienced a similar issue several years ago with another book project, but did my workaround without pursuing an investigation of why it happened.</div>
<br class="">
<br class="">
<div class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div class="">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class=""><br class="Apple-interchange-newline">
Zbigniew Nitecki</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class="">Department of Mathematics</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class="">Tufts University</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class="">Medford, MA 02155</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; font-size: 12px; " class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class="">telephones:</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class="">Office<span class="Apple-converted-tab">    </span>(617)627-3843</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class="">Dept.<span class="Apple-converted-tab">    </span>(617)627-3234</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; " class="">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; " class="">Dept. fax<span class="Apple-converted-tab">    </span>(617)627-3966</font></div>
<span class="Apple-style-span" style="font-size: 12px; "><a href="http://www.tufts.edu/~znitecki/" class="">http://www.tufts.edu/~znitecki/</a></span></div>
</div>
</span><br class="Apple-interchange-newline">
</div>
</span><br class="Apple-interchange-newline">
</span><br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</body>
</html>