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

Integrating kaobook-based templates #24

Open
zenny opened this issue Oct 2, 2024 · 4 comments
Open

Integrating kaobook-based templates #24

zenny opened this issue Oct 2, 2024 · 4 comments

Comments

@zenny
Copy link

zenny commented Oct 2, 2024

Hi @pprevos:

Congrats on final EWS published!

I have tried to use kaobook template (fmarotta/kaobook#278) with EWS too, but without success.

Three of the examples from https://github.com/fmarotta/kaobook/blob/81bfb18af4a13dc38a82ebf233c4f62ab7699245/README.md?plain=1#L47 are outstandingly legible:

  1. https://github.com/tudelft3d/terrainbook
  2. https://github.com/JimRou/template_kaobook
  3. https://github.com/anjapetkovic/template-kaobook-thesis

As you are an avid and veteran in LaTeX2OrgTemplate (read somewhere yout comment in reddit that "converting is easy", but my try didn't yield the result as expected, tbh), it would be desirable to append a kaobook template to EWS.

Cheers,
/zenny

@pprevos
Copy link
Owner

pprevos commented Oct 2, 2024

Hi @zenny,

Org mode mostly does is a 1-1 conversion to LaTeX. The tricky part is perhaps with the way it constructs the preamble. There is also a variable that determines how the compilation process runs.

With respect to the preamble, Org mode inserts standard package, which you might need to omit using [NO-DEFAULT-PACKAGES]. Read the documentation for org-latex-classes.

You will also need to set the org-latex-pdf-process to run the Bash script provided with the Kaobook template (compileall.sh). Perhaps best to do this as a local variable so that it does not apply to all of Org mode.

It looks like quite a complex LaTeX template that might need some tweaking.

P:)

@zenny
Copy link
Author

zenny commented Oct 3, 2024

Hi @zenny,

Org mode mostly does is a 1-1 conversion to LaTeX. The tricky part is perhaps with the way it constructs the preamble. There is also a variable that determines how the compilation process runs.

With respect to the preamble, Org mode inserts standard package, which you might need to omit using [NO-DEFAULT-PACKAGES]. Read the documentation for org-latex-classes.

You will also need to set the org-latex-pdf-process to run the Bash script provided with the Kaobook template (compileall.sh). Perhaps best to do this as a local variable so that it does not apply to all of Org mode.

Thanks @pprevos for the pointers. I shall try to figure out the hints your provided, yet I appreciate if you post the link to org-lates-classes documentation.

It looks like quite a complex LaTeX template that might need some tweaking.

Meaning it must be beyond the grasp of the common soul like me! :)

P:)

@pprevos
Copy link
Owner

pprevos commented Oct 3, 2024

Hi, type c-h v org-latex-classes. Use this to read the documentation for any Emacs variable.

I downloaded the template and will have a crack at getting it to run in Org. I like the format so might like to use it.

Interestingly, it doesn't work in Overleaf.

@zenny
Copy link
Author

zenny commented Oct 3, 2024

Hi, type c-h v org-latex-classes. Use this to read the documentation for any Emacs variable.

Superb!

I downloaded the template and will have a crack at getting it to run in Org. I like the format so might like to use it.

That would be awesome! Appreciate if you do share your changes to kaobook scripts.

Interestingly, it doesn't work in Overleaf.

I read somewhere that Overleaf reportedly removed. But I never used Overleaf, tbh.

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

2 participants