Giter Site home page Giter Site logo

Comments (6)

oscarlevin avatar oscarlevin commented on June 12, 2024 2

Aha. Yes, I was .gitignor-ing pdfs, and forgot to include those manually. I've updated it so now everything in the external directory (starting out in the assets directory) should be available to latex when you build. 🤞

from discrete-book.

oscarlevin avatar oscarlevin commented on June 12, 2024 1

Wonderful. Thanks for reporting this and making the project better.

from discrete-book.

oscarlevin avatar oscarlevin commented on June 12, 2024

Thanks for alerting me to this. There were a few changes I had to make to work with the updated version of PreTeXt, thanks to my previous hacking to customize things. I think I have it set up to work now. Please try to pull the latest commit and rebuild. Let me know how it goes.

from discrete-book.

JL102 avatar JL102 commented on June 12, 2024

@oscarlevin The latex-preamble-styles.tex problem seems to be gone! But unfortunately the dmoi.pdf error is still there. This is the last bit of the build output:


! Package pdfpages Error: Cannot find file `external/images/front.pdf'.

See the pdfpages package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.2201 ...oscale=false]{external/images/front.pdf}
                                                  %
No pages of output.
Transcript written on dmoi.log.
critical: [Errno 2] No such file or directory: 'dmoi.pdf'
##################
Failed to build pdf.  Exiting...

----------------------------------------------------
While running pretext, the following errors occured:

critical: [Errno 2] No such file or directory: 'dmoi.pdf'
----------------------------------------------------
Exception ignored in atexit callback: <function exit_command at 0x7fd2d2ffcb80>
Traceback (most recent call last):
  File "/home/drak/.local/lib/python3.10/site-packages/pretext/utils.py", line 377, in exit_command
    sys.exit(1)
SystemExit: 1

Here's .error_schema.log:

/home/drak/OneDrive/Projects/Programming/syncignore_discrete-book/source/dmoi.ptx:4:0:ERROR:RELAXNGV:RELAXNG_ERR_ELEMWRONG: Did not expect element include there
/home/drak/OneDrive/Projects/Programming/syncignore_discrete-book/source/dmoi.ptx:4:0:ERROR:RELAXNGV:RELAXNG_ERR_EXTRACONTENT: Element pretext has extra content: include

from discrete-book.

JL102 avatar JL102 commented on June 12, 2024

If I comment out line 4 of dmoi.pdf (<!-- <xi:include href="./bookinfo.ptx"/> -->), it seems to build... but only the first 18 pages?

image

from discrete-book.

JL102 avatar JL102 commented on June 12, 2024

Eyyyy, it worked! The whole pdf built, thanks!

from discrete-book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.