Markdown to Lyx

Dr Eberhard W Lisse el at lisse.na
Mon Dec 14 05:51:02 UTC 2020


Murat,

what is the Wiki link?

—
Sent from Dr Lisse’s iPhone
On 14 Dec 2020, 07:28 +0200, Murat Yildizoglu <myildi at gmail.com>, wrote:
>
>
> > Le 11 déc. 2020 à 15:50, Dr Eberhard W Lisse <el at lisse.na> a écrit :
> >
> > Murat,
> >
> > 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.
> >
> > Then google
> >
> > https://www.google.com/search?q=pandoc+latex+template
> >
> > 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.
> >
> > 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.
> >
> > 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
> >
> > greetings, el
> >
> > —
> > Sent from Dr Lisse’s iPhone
> > On 11 Dec 2020, 06:19 +0200, Murat Yildizoglu <myildi at gmail.com>, wrote:
> > > Hello Eberhard,
> > > 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.
> > >
> > > 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!
> > >
> > > I currently use the following command line for md -> tex conversion :
> > >
> > > pandoc -s  -f markdown-auto_identifiers+raw_tex -t latex   -o $$o $$I
> > >
> > > -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.
> > >
> > > 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.
> > >
> > > Best regards,
> > >
> > > Murat
> > >
> > >
> > > > Le 11 déc. 2020 à 00:33, Dr Eberhard W Lisse <nospam at lisse.NA> a écrit :
> > > >
> > > > Murat,
> > > >
> > > > I would not do that through an import from the LyX GUI.
> > > >
> > > > Convert to LaTeX (with pandoc) and then modify the template pandoc uses
> > > > in steps until the TeX file it produces converts into proper LyX
> > > > (tex2lyx).
> > > >
> > > > Write yourself a Makefile, especially if a little Perl or Python is
> > > > required to make changes to the LyX file.
> > > >
> > > > I once had to take a MindMap and generate a Beamer presentation, so a
> > > > little AppleScript was even required in the Makefile to export to
> > > > Markdown, but eventually this worked out great.
> > > >
> > > > Same for trying to dictate, which does not work with LyX at all.
> > > > Markdown works very well, and a little Makefile produces very nice LyX.
> > > >
> > > > make is part of the XCode Command Line Tools which you get from the
> > > > command line with
> > > >
> > > > 	sudo xcode-select --install
> > > >
> > > > el
> > > >
> > > > On 2020-12-10 05:15 , Murat Yildizoglu wrote:
> > > > > Hello All,
> > > > > I am trying to find a way to directly import markdown documents in Lyx.
> > > > >
> > > > > I have created a Markdown file type and a filter Markdown->Latex using
> > > > a pandoc command for the conversion:
> > > > >                 pandoc -f markdown_mmd -t latex   -o $$o $$I
> > > > > But Lyx does not include this type in the import menu.
> > > > > What am I missing?
> > > > > How can I do this?
> > > > > Is this possible?
> > > > >
> > > > > Thank you for your help!
> > > > >
> > > > > Murat
> > > > >
> > > >
> > > >
> > > > --
> > > > lyx-users mailing list
> > > > lyx-users at lists.lyx.org
> > > > http://lists.lyx.org/mailman/listinfo/lyx-users
> > >
> > > —
> > >
> > > Prof. Murat Yildizoglu
> > >
> > > Advisor to the Minister of Education, Youth and Sports of Cambodia
> > > Expertise France
> > >
> > > On temporary leave from
> > > University of Bordeaux
> > >
> > > http://yildizoglu.fr
> > >
> > >
>
> Thank you very much for pointing to this very interesting possibility Eberhard!
>  I have included it in the Wiki page.
>
>>
> Prof. Murat Yildizoglu
>
> Advisor to the Minister of Education, Youth and Sports of Cambodia
> Expertise France
>
> On temporary leave from
> University of Bordeaux
>
> http://yildizoglu.fr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201214/0c428168/attachment-0001.html>


More information about the lyx-users mailing list