tag:support.multimarkdown.com,2013-02-12:/discussions/problems-v4/3408-problem-with-file-transclusionMultiMarkdown Software, LLC: Discussion 2019-06-27T22:28:34Ztag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T00:45:12Z2019-06-01T00:45:12ZProblem with file transclusion<div><p>Dear Fletcher,</p>
<p>I am having a problem with file transclusion, and I was wondering whether you could be so kind to help me.</p>
<p>I created a transclusion file (see attached "Transclusion File" screenshot, which shows part of it). I then used the "File > Transclude to New File" function, but the transclusion is incomplete (see attached "Transcluded File" screenshot, which shows part of it). As you can see, the first and fourth files were included in the transclusion, but the second and third were not. Actually, the first time I had tried this, the first file had not been included in the transclusion either, but I solved that problem by adding the ".md" suffix to the file name, which is in itself strange because all the files to be included in the transclusion and the transclusion file itself were created with Composer, and I never add an ".md" suffix to the file name because I had selected "md" as default file extension in the Preferences. Nevertheless, I then proceeded to add the ".md" suffix to the second and third files, but this time the stratagem failed to solve the problem. The names of the files are written properly in the transclusion file, as you can see from the "File Names" screenshot, which also shows that the fourth file to be included in the transclusion indeed lacks the ".md" suffix, and yet it was included in the transclusion.</p>
<p>I have performed the same transclusion using Marked 2 with the same files (but with a different transclusion file because Marked uses a different syntax to indicate transclusion), and it worked perfectly, which would suggest that the problem is with Composer, but I cannot think of anything; would you have any suggestion?</p>
<p>Thank you for your consideration.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T01:26:07Z2019-06-01T01:26:07ZProblem with file transclusion<div><p>Are you sure that the files do/don't have the file extensions you think they do? Did you do a "Get Info" in the finder to see the actual filenames, and not just the filenames as they are displayed?</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T04:01:53Z2019-06-01T04:01:53ZProblem with file transclusion<div><p>Thank you for your prompt response, Fletcher.</p>
<p>Yes, I am sure: for example, see the attached screenshot of the "Get Info" window for those files, which matches the "File Names" screenshot in my opening post (i.e. extension shown for the first three files and hidden for the fourth one).</p>
<p>Moreover, as mentioned, the very same files transclude perfectly through Marked 2 by using, in a transclusion file with the Marked 2 transclusion syntax, the very same file names and extensions I had used in the transclusion file I created to transclude through Composer.</p>
<p>Thank you for your consideration.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T10:18:49Z2019-06-01T10:18:49ZProblem with file transclusion<div><p>Brett uses a different transfusion mechanism in Marked, so that doesn’t help figure out what is happening.</p>
<p>If you can send me the relevant files, I can take a look and see what’s happening.</p>
<p>Fletcher</p>
<p>Sent from my iPhone</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T13:15:51Z2019-06-01T13:15:51ZProblem with file transclusion<div><p>Thank you for your willingness to look into that, but I can't send you the files: they are of an unpublished manuscript I am working on with collaborators.</p>
<p>I'll see whether I can recreate the problem with files of scrambled text; if so, I'll get in touch; if not, I'll keep on using Marked for now. Thank you again.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T16:42:30Z2019-06-01T16:42:30ZProblem with file transclusion<div><p>I can't replicate it.</p>
<p>Are you sure that Composer has permission to access all the files? Does the preview work properly? (assuming you have transclusion enabled in the MMD preferences)</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T19:52:13Z2019-06-01T19:52:13ZProblem with file transclusion<div><p>Thank you for not giving up.</p>
<p>For some unknown reason, I can not replicate the issue either: today, everything works just fine, even though I have not changed anything: I have not restarted Composer or the computer; since yesterday, I did quit a few applications, though (e.g., Marked 2, Tinderbox 8, DTPO/DT3 and SublimeText 3). I wondered whether any of those were somehow interfering, so I re-opened them all, but no: file transclusion through Composer still works perfectly... So I am not sure what to say, other than I am sorry for wasting your time. Thank you for bearing with me.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T20:01:32Z2019-06-01T20:01:32ZProblem with file transclusion<div><p>No problem -- glad it's working!</p>
<p>The only things that make any sense to me:</p>
<ol>
<li>
<p>Maybe two of the file extensions were missing early on in the process and got fixed during testing?</p>
</li>
<li>
<p>A file permission issue related to sandboxing?</p>
</li>
</ol>
<p>If it happens again, let me know and we'll try again.</p>
<p>Fletcher</p>
<p>--<br>
Fletcher T. Penney<br>
Manager, Founder<br>
MultiMarkdown Software, LLC<br>
<a href="mailto:admin@multimarkdown.com">admin@multimarkdown.com</a></p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-01T21:00:45Z2019-06-01T21:00:45ZProblem with file transclusion<div><p>Thank you very much again for your help and support and for your availability!</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-22T19:01:29Z2019-06-22T19:01:29ZProblem with file transclusion<div><p>Dear Fletcher,</p>
<p>A quick note just to let you know that the problem with file transclusion I described above continues to happen, albeit intermittently. I don't know if it helps to diagnose the issue, but I find it is solved by opening in MMD Composer all the files that need to be transcluded before launching the command "New file from transclusion". It works, but it's inconvenient when I am working with >50 files that need to be transcluded, so I was wondering whether you had any suggestions. Thank you for your consideration.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-23T13:07:37Z2019-06-23T13:07:37ZProblem with file transclusion<div><p>Enrico,</p>
<p>Sorry it's still causing you trouble.</p>
<p>It sounds like a sandboxing issue. Are the files being transcluded in the same folder as the master file (or in a subfolder?)</p>
<p>Is the preview pane enabled? If not, make sure to toggle it on to see if that asks for permission.</p>
<p>You can try moving the document and all transcluded files to the Downloads folder (Composer has permission to read files in that folder)</p>
<p>If none of that works, you can try deleting the preferences to see if that resets the permissions settings -- Composer should ask again for access.</p>
<p>Let me know if that works.</p>
<p>Fletcher</p>
<p>--<br>
Fletcher T. Penney<br>
Manager, Founder<br>
MultiMarkdown Software, LLC<br>
<a href="mailto:admin@multimarkdown.com">admin@multimarkdown.com</a></p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-23T18:41:57Z2019-06-23T18:41:57ZProblem with file transclusion<div><p>Dear Fletcher,</p>
<p>Thank you very much for your prompt and helpful reply.</p>
<blockquote>
<p>Sorry it's still causing you trouble.</p>
</blockquote>
<p>No need to apologize, please: this is a minor inconvenience, more than compensated by the joy of using MMD Composer, which is the only app I use to write.</p>
<blockquote>
<p>It sounds like a sandboxing issue. Are the files being transcluded in the same folder as the master file (or in a subfolder?)</p>
</blockquote>
<p>Yes, they are all in the same folder.</p>
<blockquote>
<p>Is the preview pane enabled? If not, make sure to toggle it on to see if that asks for permission.</p>
</blockquote>
<p>No, it isn't, so I've now tried the following with three different groups of files to be transcluded -- each group in their own folder. For each of the three groups, I've tried to "Transclude to a new file", but for all of them the resulting file was only partly correct -- same problem as in my opening post. However, when I enabled the preview, two of them showed me a perfect preview of the transcluded files and the third asked me for permission to do it; after granting the permission, it too showed me a perfect preview of the transcluded files. And now, for all the three groups of files to be transcluded, the function "Transclude to a new file" produced a perfect transclusion of all the files. I am not sure why permission was asked only in one of the three cases, but it seems that in all of them, enabling the preview did the trick.</p>
<p>I would like to take advantage of this opportunity to thank you for the "Open Folder" option: I use it all the time when I write manuscripts: I write their different parts in separate .md files; all the files are in the same folder; and when I need to submit to co-authors or journals, I just create a file of the whole manuscript by means of transclusion.</p>
<p>Finally, I have an unrelated feature request, if I may, that would enhance even more the usefulness of the app: the possibility to style keywords of choice -- for example, the word "Figure" or "Table": by styling them differently from the rest of the text, I would be able to readily notice whether I had refer to them in the correct order in the text. I suspect this is not as easy to do as it is to ask, and my needs may very well be niche ones, so I suspect such a feature will never be implemented, but I thought I could do no harm by asking... In any case, thank you very much for your consideration.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-26T22:51:08Z2019-06-26T22:51:08ZProblem with file transclusion<div><p>Enrico,</p>
<p>Glad it's working!!</p>
<p>I'm not sure I understand the feature request. You mean unique styling for arbitrary words that the user chooses? I would have to think about that. Since it's not part of MMD, there's not a built-in way to do it, and I'm not sure it really fits the scope of what Composer is.</p>
<p>Fletcher</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-27T00:22:32Z2019-06-27T00:22:32ZProblem with file transclusion<div><p>Thank you very much for your prompt reply, Fletcher.</p>
<blockquote>
<p>I'm not sure I understand the feature request. You mean unique styling for arbitrary words that the user chooses?</p>
</blockquote>
<p>Yes, that's exactly what I meant.</p>
<blockquote>
<p>I would have to think about that. Since it's not part of MMD, there's not a built-in way to do it, and I'm not sure it really fits the scope of what Composer is.</p>
</blockquote>
<p>I totally understand that, and mine may be a niche need, which I currently take care of in BBEdit with a custom Codeless Language Module; I just thought it would be great if it could be integrated in Composer, so that I could do everything I need to do in a single app. But because I use Composer as a "writing app" to write manuscripts, I realize I perhaps use it in a non-orthodox way, and, again, I understand if my request cannot be taken into account because it deviates too much from the philosophy of the app.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpellatag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-27T22:07:35Z2019-06-27T22:07:35ZProblem with file transclusion<div><p>Composer is designed as a writing app, and people use it for writing<br>
everything from short notes to textbooks and novels.</p>
<p>But it is centered on writing in Markdown/MultiMarkdown, so that drives<br>
most of my decision-making about what features to include or not include.</p>
<p>F-</p></div>Fletchertag:support.multimarkdown.com,2013-02-12:Comment/473174332019-06-27T22:28:33Z2019-06-27T22:28:33ZProblem with file transclusion<div><p>Thank you for the clarification, Fletcher. I completely understand and respect your motivations; I hope I did not insulted you by asking. Thank you for listening.</p>
<p>Best regards,<br>
Enrico</p></div>enrico.scarpella