Re: Markdown to Lyx

2020-12-21 Thread Saša Janiška
On Mon, 14 Dec 2020 12:27:14 +0700
Murat Yildizoglu  wrote:

> I have now created the WiKi page:
> https://wiki.lyx.org/Tips/ConvertMarkdown

Thanks a lot! After deciding to use LyX as my main non-coding editor, that's
just what I need. :-)


Sincerely,
Gour

-- 
It is far better to discharge one's prescribed duties, even though
faultily, than another's duties perfectly. Destruction in the course
of performing one's own duty is better than engaging in another's
duties, for to follow another's path is dangerous.


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-14 Thread José Abílio Matos
On Monday, December 14, 2020 4:41:11 AM WET Murat Yildizoglu wrote:
> Hi José,
> I have tried to do it, but, if I understand correctly how this works, I need
> to add a new page under Tips. Unfortunately the suggested password LyX does
> not seem to be enough for editing the page list. Probably, I am doing
> something stupid. I have not used a wiki for many years, and lost the logic
> of the system.

Thank you for doing that. :-)
I see that Riki already fixed the issue you had.

Best regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-14 Thread Richard Kimberly Heck
On 12/14/20 12:27 AM, Murat Yildizoglu wrote:
> Hello,
>
> I have now created the WiKi
> page: https://wiki.lyx.org/Tips/ConvertMarkdown
> 
>
> Strangely, the links to Pandoc that I have put in the top part wait
> for approval, while other links I have put on the. Bottom of the page
> have been activated immediately. 
>
> Could someone with admin privileges could activate these links?

Mysterious! But done.

Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-14 Thread Murat Yildizoglu
I send this message again, it seems that it has not been received by list 
members. 

--

Prof. Murat Yildizoglu
Advisor to the Minister of Education, Youth and Sports of Cambodia
Expertise France

On leave from:
UNIVERSITE DE BORDEAUX
GREThA (UMR CNRS 5113)

web: www.yildizoglu.fr

> Le 14 déc. 2020 à 12:27, Murat Yildizoglu  a écrit :
> 
> Hello,
> 
> I have now created the WiKi page: https://wiki.lyx.org/Tips/ConvertMarkdown
> 
> Strangely, the links to Pandoc that I have put in the top part wait for 
> approval, while other links I have put on the. Bottom of the page have been 
> activated immediately. 
> 
> Could someone with admin privileges could activate these links?
> 
> Very cordially,
> 
> Murat
> 
>> Le 14 déc. 2020 à 00:27, José Abílio Matos  a écrit :
>> 
>> On Friday, December 11, 2020 8:50:36 AM WET Dr Eberhard W Lisse wrote:
>> > 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
>> 
>> Hi Eberhard and Murat,
>>   I always find these threads very enlightening. :-)
>> 
>> If you find the time and motivation it would be nice to add these nice 
>> snippets to the LyX wiki so they do not get forget here.
>> 
>> Best regards,
>> --
>> José Abílio
>> -- 
>> lyx-users mailing list
>> lyx-users@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
> 
> 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-13 Thread Dr Eberhard W Lisse
Murat,

what is the Wiki link?

—
Sent from Dr Lisse’s iPhone
On 14 Dec 2020, 07:28 +0200, Murat Yildizoglu , wrote:
>
>
> > Le 11 déc. 2020 à 15:50, Dr Eberhard W Lisse  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 , 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  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@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
>
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-13 Thread Murat Yildizoglu


> Le 11 déc. 2020 à 15:50, Dr Eberhard W Lisse  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 
> <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 , 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 >> <mailto:nos...@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@lists.lyx.org <mailto:lyx-users@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 <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


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-13 Thread Murat Yildizoglu
Hello,

I have now created the WiKi page: https://wiki.lyx.org/Tips/ConvertMarkdown 


Strangely, the links to Pandoc that I have put in the top part wait for 
approval, while other links I have put on the. Bottom of the page have been 
activated immediately. 

Could someone with admin privileges could activate these links?

Very cordially,

Murat

> Le 14 déc. 2020 à 00:27, José Abílio Matos  a écrit :
> 
> On Friday, December 11, 2020 8:50:36 AM WET Dr Eberhard W Lisse wrote:
> > 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
> 
> Hi Eberhard and Murat,
>   I always find these threads very enlightening. :-)
> 
> If you find the time and motivation it would be nice to add these nice 
> snippets to the LyX wiki so they do not get forget here.
> 
> Best regards,
> --
> José Abílio
> -- 
> lyx-users mailing list
> lyx-users@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


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-13 Thread Murat Yildizoglu
Hi José,
I have tried to do it, but, if I understand correctly how this works, I need to 
add a new page under Tips. Unfortunately the suggested password LyX does not 
seem to be enough for editing the page list. Probably, I am doing something 
stupid. I have not used a wiki for many years, and lost the logic of the system.

> Le 14 déc. 2020 à 00:27, José Abílio Matos  a écrit :
> 
> On Friday, December 11, 2020 8:50:36 AM WET Dr Eberhard W Lisse wrote:
> > 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
> 
> Hi Eberhard and Murat,
>   I always find these threads very enlightening. :-)
> 
> If you find the time and motivation it would be nice to add these nice 
> snippets to the LyX wiki so they do not get forget here.
> 
> Best regards,
> --
> José Abílio
> -- 
> lyx-users mailing list
> lyx-users@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


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-13 Thread José Abílio Matos
On Friday, December 11, 2020 8:50:36 AM WET Dr Eberhard W Lisse wrote:
> 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

Hi Eberhard and Murat,
  I always find these threads very enlightening. :-)

If you find the time and motivation it would be nice to add these nice 
snippets to the LyX wiki so they do not get forget here.

Best regards, 
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-11 Thread Dr Eberhard W Lisse
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 , 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  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@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
>
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-10 Thread Murat Yildizoglu
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  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@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


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-10 Thread Dr Eberhard W Lisse
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@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-09 Thread Richard Kimberly Heck
On 12/9/20 10:41 PM, Murat Yildizoglu wrote:
>
>
>> Le 10 déc. 2020 à 10:34, Andrew Parsloe > <mailto:ajpars...@gmail.com>> a écrit :
>>
>> On 10/12/2020 4:15 pm, 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
>>
>> Have you created a Markdown file format in LyX,
>>
>> Tools > Preferences > File Handling > File Formats
>>
>> ensuring the Document format checkbox is set? The name you use for
>> the format will then appear in the lists showing in the From format:
>> and To format: slots in the
>>
>> Tools > Preferences > File Handling > Converters
>>
>> dialogue. There are a number of Converter Definitions already from
>> different formats to LyX format.
>>
>> Andrew
>>
>> -- 
>> lyx-users mailing list
>> lyx-users@lists.lyx.org <mailto:lyx-users@lists.lyx.org>
>> http://lists.lyx.org/mailman/listinfo/lyx-users
>> <http://lists.lyx.org/mailman/listinfo/lyx-users>
>
> Thank you Andrew,
>
> I have indeed done all this but *my error was to set the destination
> format as Latex(pdflatex). When I have switched to Latex(plain),
> Markdown is shown indeed as an import option.* I imagine that the
> Latex->Lyx chain is only defined for the plain version.

At the moment, though you can define a converter yourself for just about
anything.

Riki


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-09 Thread Murat Yildizoglu


> Le 10 déc. 2020 à 10:34, Andrew Parsloe  a écrit :
> 
> On 10/12/2020 4:15 pm, 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
> 
> Have you created a Markdown file format in LyX,
> 
> Tools > Preferences > File Handling > File Formats
> 
> ensuring the Document format checkbox is set? The name you use for the format 
> will then appear in the lists showing in the From format: and To format: 
> slots in the
> 
> Tools > Preferences > File Handling > Converters
> 
> dialogue. There are a number of Converter Definitions already from different 
> formats to LyX format.
> 
> Andrew
> 
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users 
> <http://lists.lyx.org/mailman/listinfo/lyx-users>

Thank you Andrew,

I have indeed done all this but my error was to set the destination format as 
Latex(pdflatex). When I have switched to Latex(plain), Markdown is shown indeed 
as an import option. I imagine that the Latex->Lyx chain is only defined for 
the plain version. 

I now will be able to outline in iThoughts mind map app and then importe in Lyx 
for developing the document. :-)

LyX is an amazing tool for writing. I hate when people make me work in RTF/Word 
or convert my documents in a strange format (like I,Design) that completely 
breaks my write/revise cycle. :-(

Best regards,

Murat

—

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


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-09 Thread Andrew Parsloe

On 10/12/2020 4:15 pm, 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


Have you created a Markdown file format in LyX,

Tools > Preferences > File Handling > File Formats

ensuring the Document format checkbox is set? The name you use for the 
format will then appear in the lists showing in the From format: and To 
format: slots in the


Tools > Preferences > File Handling > Converters

dialogue. There are a number of Converter Definitions already from 
different formats to LyX format.


Andrew

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Markdown to Lyx

2020-12-09 Thread Murat Yildizoglu
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@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users