Converting markdown to PDF
Steve Litt
slitt at troubleshooters.com
Thu Jun 17 01:24:02 UTC 2021
Paul Smith said on Wed, 16 Jun 2021 22:13:15 +0100
>On Wed, Jun 16, 2021 at 9:48 PM Paul A. Rubin <parubin73 at gmail.com>
>wrote:
>>
>> > Using R is a little overkill in my view, but if it works it works
>> > :-)-O
>> It's a bit indirect, but for users of the RStudio IDE, you just open
>> RStudio, open the .md file and click the "Knit to PDF" toolbar button
>> and you're done (unless you don't like the way the PDF turned out).
>> In my case, it would save having to look up the command syntax.
>
>I believe that a much needed development avenue that LyX could take is
>to become able to export to markdown. Something like the following,
>but builtin natively:
>
>https://wiki.lyx.org/Tips/ConvertMarkdown
Just understand that you'll lose a lot of styles information in a
conversion of LyX to Markdown. LyX enables you to create and use any
number of arbitrary character and paragraph styles. Markdown allows
only a short list of predefined styles, so the LyX styles must be
shoehorned into Markdown.
What might be more interesting is a Markdown *import*. LyX, equipped
with a Markdown layout file, could easily print Markdown to pdf, or use
it as part of a larger LyX work.
What we need, and we've needed for over a decade is a real, style for
style, syntactically complete HTML export, or lacking that, finally
finish the job, started a decade ago, of making LyX' native language
format valid and well formed XML. Do that and I'll make a LyX to
(x)HTML converter that drops no styles nor adds styles for silly stuff
like not indenting the first paragraph in a sequence of same-styled
paragraphs, and is suitable for a high quality ePub and other flowing
text eBooks.
SteveT
Steve Litt
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques
More information about the lyx-users
mailing list