mb21 / panwriter

Markdown editor with pandoc integration and paginated preview.
https://PanWriter.com
GNU General Public License v3.0
1.03k stars 49 forks source link

How to build from source #63

Closed PHHENS closed 3 years ago

PHHENS commented 3 years ago

Dear Developper, Thanks for panwriter, which is already a great tool.

The giving procedure : git clone git@github.com:mb21/panwriter.git cd panwriter yarn install

Does not work out the box : git clone https://github.com/mb21/panwriter --> modified URL cd panwriter yarn install ---> 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'

Can you update the procedure so that a newbie can build ;-)

mb21 commented 3 years ago

The instructions are for unix (mac or linux).. exact command might differ on windows... also make sure you have yarn installed: https://yarnpkg.com ... and if you don't want to use git on the commandline, I can recommend https://desktop.github.com

PHHENS commented 3 years ago

I am under Debian Buster, yarn is installed through apt : yarn install 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'

Thanks for your fast feedback ;-)

Le mercredi 16 juin 2021 à 05:20 -0700, Mauro Bieg a écrit :

The instructions are for unix (mac or linux).. exact command might differ on windows... also make sure you have yarn installed: https://yarnpkg.com ... and if you don't want to use git on the commandline, I can recommend https://desktop.github.com — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

PHHENS commented 3 years ago

It seems that under debian the command is yarnpkg instead of yarn ... yarnpkg install seems to work...

Le mercredi 16 juin 2021 à 05:20 -0700, Mauro Bieg a écrit :

The instructions are for unix (mac or linux).. exact command might differ on windows... also make sure you have yarn installed: https://yarnpkg.com ... and if you don't want to use git on the commandline, I can recommend https://desktop.github.com — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

PHHENS commented 3 years ago

Managed to compile, and it runs into web browser. But how to build the standalone app ?

Thanks.

Le mercredi 16 juin 2021 à 05:20 -0700, Mauro Bieg a écrit :

The instructions are for unix (mac or linux).. exact command might differ on windows... also make sure you have yarn installed: https://yarnpkg.com ... and if you don't want to use git on the commandline, I can recommend https://desktop.github.com — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

PHHENS commented 3 years ago

I finally managed to build the standalone app. Get some other questions :

Thanks for your help.  

Le mercredi 16 juin 2021 à 05:20 -0700, Mauro Bieg a écrit :

The instructions are for unix (mac or linux).. exact command might differ on windows... also make sure you have yarn installed: https://yarnpkg.com ... and if you don't want to use git on the commandline, I can recommend https://desktop.github.com — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mb21 commented 3 years ago

The page preview seems have a bug

Can you reproduce it with plain paged.js ? If so, it's a bug in that library PanWriter relies on....

markdown #. statement is not interpreted (autonumbering).

I think that syntax is not in CommonMark...

How to add page numbers in a footer when exporting pdf ?

exporting with pandoc or directly from the preview?

PHHENS commented 3 years ago

Dear Mauro,

Le jeudi 17 juin 2021 à 00:32 -0700, Mauro Bieg a écrit :

The page preview seems have a bug Can you reproduce it with plain paged.js ? If so, it's a bug in that library PanWriter relies on.... Did not managed to test with paged.js, but very easy to reproduce in panwriter : md file :

header-includes: >-


zee

Visualize in panwriter page preview (with page breaks), the background is black instead of grey. 

markdown #. statement is not interpreted (autonumbering). I think that syntax is not in CommonMark... OK, but is very convinient ;-) How to add page numbers in a footer when exporting pdf ? exporting with pandoc or directly from the preview? It would be nice to have it directly in the preview and of course the same way in exported pdf ;-) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Thanks for your feedbacks

mb21 commented 3 years ago

Did not managed to test with paged.js, but very easy to reproduce in panwriter

Thanks! This should be fixed with https://github.com/mb21/panwriter/commit/0981762e924b3725f76d0e6cfd7078b606223b53


markdown #. statement is not interpreted (autonumbering).

You can use instead:

1. foo
1. bar

For the page numbering, it really depends whether you want to use pandoc+LaTeX for the PDF export or export from the preview directly, see https://github.com/mb21/panwriter#usage. If the latter, then you can use the following CSS:

@page {
  @bottom-left {
    content: counter(page) ' of ' counter(pages);
  }
}
alexmyczko commented 3 years ago

@PHHENS now when you figured building it from source, will you create a debian package? https://github.com/mb21/panwriter/issues/35

mb21 commented 3 years ago

Since building from source works, I'll close this issue...