Thanks for the very helpful details. A missing image will most likely abort the PDF build. You could ask for more verbose error messages.
You should have a "directories" element in your publication file. And it should be specified for the CLI somehow? Can you post that "directories" element here? Itd help with what you have given
I might be able to locate versions in the documentation later.
Rob
On May 9, 2022 1:12:39 PM HST, Juan Carlos <
jotac...@gmail.com> wrote:
>Hello,
>
>Thanks for the tip with the @preview trick! I was looking for that
>"versions" part, I did not find the documentation, though.
>
>On the other hand, for the thumbnails, here is what I did:
>
> * Installed the pretext-CLI. When I run pretext --version I get 0.6.3.
> * I created a new project with pretext new book
> * I entered in the /new-pretext-project/source directory, added the code
> <p>
> Puis ici je voudrais autre chose, un tutoriel qu'il faut regarder
> bientôt.
> <figure>
> <caption>Ben au ukulele <articletitle>Don't worry, be
> happy</articletitle></caption>
> <video xml:id="DontWorry" youtube="HpGk7D4Dyao" width="60%"
> start="12" preview="images/DontWorry.jpg" />
> </figure>
> </p>
> * Then I run pretext build html -d, which creates everything, almost
> as expected. When I preview the output with pretext view html the
> thumbnail for the video is missing. I get what you see below:
>
>
> However, upon clicking in the icon, I get the thumbnail... Upon
> clicking again, I go to the video. Further, the file
> output/html/generated/youtube/DontWorry.jpg is there, so
> * When I do pretext build pdf no output is created at all (I find this
> rather radical, taking into account that there's only one .png missing).
> * The latex error message complains about not finding the file