Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing real life example #73

Closed
Eskimon opened this issue Nov 9, 2017 · 8 comments
Closed

Failing real life example #73

Eskimon opened this issue Nov 9, 2017 · 8 comments

Comments

@Eskimon
Copy link

Eskimon commented Nov 9, 2017

Hi guys,

I tried to generate a pdf of one of my tutorial.
To do so, I made a fresh install in a virtual machine to test everything. I installed a clean zds-site (branch zmarkdown-notes) and fetch the template. Anyhow, after few things, I managed to get it compiling...almost. I have a ton of error and latex just give up after 100 of them.

Here is a gist with the md/tex/log data

https://gist.github.com/Eskimon/1a0c9751f84b85186119a33c0ed964e8

@pierre-24
Copy link
Member

Thanks for this nice example ;)

There is actually 3 things that are "wrong" in that document:

  • Since the recent improvement of @Heziode, the syntax of \licence has changed, and I guess that it is not up to date in the parser, but it is probably us that should mention that ^^
  • The images. Obviously, they are not provided here, but anyway there is another bug that I mention in rebber: some parser mistakes zmarkdown#137 (but since there were many bugs mentioned, so I'll resignal it :p )
  • Finally, there is something that rebber does with the youtube video: it transforms the !(youtube.com/xxx) into an image ... But use the url to this image directly in LaTeX, which does not knows how to fetch urls (yeah, LaTeX is an old language :p ).

I'll open an issue into zmarkdown repo, but thanks for trying :)

@artragis
Copy link
Member

artragis commented Nov 9, 2017

For licence => zmd is still not released @sandhose

for youtube/rebber it's known and not so simple to fix

for the extension issue, It's a zds issue I think (or a latex issue). Perhaps as we now use lua you can perform some "temp file operation" when you detect more than one dot?

@pierre-24
Copy link
Member

I like your idea for the third point, if I find some time, I'll look in that direction :)

@artragis
Copy link
Member

artragis commented Jan 5, 2018

zestedesavoir/zds-site#4733 is updated to fix the licence issue.

you need to install zmd at its newest version & manualy add lua external dependency to make it work but it's ok.

@pierre-24
Copy link
Member

Ok, nice :)

I have a few piece of code to mix together in order to fix the "multiple dot" issue, but I think I will be able to make that one right. For Youtube, communicating trough http(s) in lua seems ... Difficult, so it is on you :p

@artragis
Copy link
Member

artragis commented Jan 5, 2018

an update https://gist.github.com/artragis/b89957c58aef1f437111836df693bebe

nota : printable is built.

@artragis
Copy link
Member

artragis commented Jan 5, 2018

The error seems to be generated by an \externalLink inside a \image caption. Once I removed it, the pdf was produced properly
developper-et-publier-une-app-android-material-design.pdf

@pierre-24
Copy link
Member

I think we are done here ;)

(until next time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants