<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="">Hello Eberhard,<div class="">Thank you very much for your suggestions. I think Hazel + some scripting could make life easier if I have to tweak too much things, too frequently in this process.</div><div class=""><br class=""></div><div class="">In the meantime, I have discovered that with correct options in Pandoc (and I have not explored them all yet), the document obtained through the import filters is already pretty decent in fact. Kudos to LyX again!</div><div class=""><br class=""></div><div class="">I currently use the following command line for md -> tex conversion :</div><div class=""><br class=""></div><div class="">pandoc -s  -f markdown-auto_identifiers+raw_tex -t latex   -o $$o $$I</div><div class=""><br class=""></div><div class="">-auto_identifiers+raw_tex extensions, respectively,  eliminate some automatic referencing that does not play very well with LyX, and the possibility of including raw latex in the MD document.</div><div class=""><br class=""></div><div class="">With time, I will have to make things more sophist aced (including YAML headers, references etc.) but for now I am quite happy with what I get as a basis.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">Murat</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Le 11 déc. 2020 à 00:33, Dr Eberhard W Lisse <<a href="mailto:nospam@lisse.NA" class="">nospam@lisse.NA</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Murat,<br class=""><br class="">I would not do that through an import from the LyX GUI.<br class=""><br class="">Convert to LaTeX (with pandoc) and then modify the template pandoc uses<br class="">in steps until the TeX file it produces converts into proper LyX<br class="">(tex2lyx).<br class=""><br class="">Write yourself a Makefile, especially if a little Perl or Python is<br class="">required to make changes to the LyX file.<br class=""><br class="">I once had to take a MindMap and generate a Beamer presentation, so a<br class="">little AppleScript was even required in the Makefile to export to<br class="">Markdown, but eventually this worked out great.<br class=""><br class="">Same for trying to dictate, which does not work with LyX at all.<br class="">Markdown works very well, and a little Makefile produces very nice LyX.<br class=""><br class="">make is part of the XCode Command Line Tools which you get from the<br class="">command line with<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">   </span>sudo xcode-select --install<br class=""><br class="">el<br class=""><br class="">On 2020-12-10 05:15 , Murat Yildizoglu wrote:<br class=""><blockquote type="cite" class="">Hello All,<br class="">I am trying to find a way to directly import markdown documents in Lyx.<br class=""><br class="">I have created a Markdown file type and a filter Markdown->Latex using<br class=""></blockquote>a pandoc command for the conversion:<br class=""><blockquote type="cite" class="">                 pandoc -f markdown_mmd -t latex   -o $$o $$I<br class="">But Lyx does not include this type in the import menu.<br class="">What am I missing?<br class="">How can I do this?<br class="">Is this possible?<br class=""><br class="">Thank you for your help!<br class=""><br class="">Murat<br class=""><br class=""></blockquote><br class=""><br class="">-- <br class="">lyx-users mailing list<br class=""><a href="mailto:lyx-users@lists.lyx.org" class="">lyx-users@lists.lyx.org</a><br class="">http://lists.lyx.org/mailman/listinfo/lyx-users<br class=""></div></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;">—</div><br class="">Prof. Murat Yildizoglu<br class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;"><br class="">Advisor to the Minister of Education, Youth and Sports of Cambodia</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;">Expertise France<br class=""><br class="">On temporary leave from <br class="">University of Bordeaux<br class=""><br class=""><a href="http://yildizoglu.fr" class="">http://yildizoglu.fr</a><br class=""><br class=""></div></div></div></div></div>
</div>
<br class=""></div></body></html>