<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Murat,<br />
<br />
also look for pandoc’s template (-t latex) which you can modify. You really want Koma-Script instead of the standard (ie scrartcl vs article), and you also want LuaLaTeX (if you are not using it already.<br />
 <br />
Then google <br />
<br />
<a href="https://www.google.com/search?q=pandoc+latex+template" target="_blank">https://www.google.com/search?q=pandoc+latex+template</a><br />
<br />
I took the example from Wandmalfarbe and modified it heavily for my use two years ago and had to use a little Perl because tex2lyx produced some ERT, but tex2lyx has been revised a number of times by then, and, as I wrote before my situation was very specific.<br />
<br />
My latest hobby, by the way, is to re-engineer hardcopy forms in LyX and then use Perl’s template toolkit to have my practice software fill in my patients’ details :-)-O. <br />
<br />
Even figured out a way to generate a realistically looking date stamp  which varies by location and rotation randomly a little and put it into the preamble so no ERT when it appears in the PDF. But I had to have someone explain my own LaTeX code to me :-)-O<br />
<br />
greetings, el</div>
</div>
<div name="messageSignatureSection"><br />
<div dir="auto">— 
<div dir="auto">Sent from Dr Lisse’s iPhone</div>
</div>
</div>
<div name="messageReplySection">On 11 Dec 2020, 06:19 +0200, Murat Yildizoglu <myildi@gmail.com>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">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>
</blockquote>
</div>
</body>
</html>