-
-
Notifications
You must be signed in to change notification settings - Fork 42
Updated PDF file #21
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
Updated PDF file #21
Conversation
Thanks so much for doing this, and sorry for the delay. Since there's been no objections for a week, I'll merge right away.
@agnivade I wonder if we could run the pdf-generating script automatically, the same way the zip archive is automatically generated and pushed to this repo for every merged PR on the tldr-pages repo. Thoughts?
Agree. Should be doable. Will take a look.
Hey @maxbeier - How did you install the Consolas font ?
! fontspec error: "font-not-found"
!
! The font "Consolas" cannot be found.
I am using Ubuntu, and do not see any automated way to achieve it.
@agnivade Consolas is a proprietary font. Inconsolata, on the other hand, is an openly-licensed font inspired by Consolas, so it would probably be the best choice in our case.
Oh, good point, sorry 😅. It should be Inconsolata then. I created a PR for that: tldr-pages/tldr#1303
Very small change due to tldr-pages/tldr-pages.github.io#21 (comment) > Consolas is a proprietary font. Inconsolata, on the other hand, is an openly-licensed font inspired by Consolas, so it would probably be the best choice in our case.
Ok, I am stuck in another issue now -
pandoc: Error producing PDF from TeX source.
! Font \XeTeXLink@font=pzdr at 0.00002pt not loadable: Metric (TFM) file or ins
talled font not found.
<to be read again>
\relax
l.5125 \font\XeTeXLink@font=pzdr at 1sp\relax
@maxbeier - Any idea as to whats going on here ?
I don't really know, but looks like something named "pzdr" is missing. Found this on StackExchange which recommends to install "zapfding". Searching my command line history I found that I installed more packages and than it worked 😬
So maybe try this:
tlmgr install zapfding tlmgr install collection-latexrecommended tlmgr install cm-super tlmgr install psyr tlmgr install ec
Sorry, but I am a n00b in latex. I am stuck with yet another error about which I have no clue -
pandoc: Error producing PDF from TeX source.
! Illegal parameter number in definition of \lst@next.
<to be read again>
}
l.2633 \lstinline#c
There is only one block of lst. Even after commenting that out, it gives the same error.
Sorry, I don't know what that is. If I change generate-pdf.sh to output a .tex file there is no \lstinline in there. Can you attach your .tex file here?
Wait, I must be doing something wrong. I am just doing ./generate-pdf.sh. The tex file is the template.tex itself right ? Am I supposed to be doing something else ?
If its not a problem with you, lets hop on to gitter and continue this there ? To prevent this thread from overflowing.
Ohh, because of the l.2633 I thought is must be in the intermediate tex code that pandoc creates. But you're right – I wrote you on gitter, it might go faster there.
A lot has changed in a year and there are now 71 new pages.