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

Avoid clutteting LaTeX project #45

Open
KronosTheLate opened this issue May 16, 2022 · 7 comments
Open

Avoid clutteting LaTeX project #45

KronosTheLate opened this issue May 16, 2022 · 7 comments

Comments

@KronosTheLate
Copy link

KronosTheLate commented May 16, 2022

To use this package, I have uploaded the files from here to my overleaf latex project. This leaves me with the following file structure:
image

Which is a quite horrible mess. Is it possible to make things prettier? If I put everything into a folder, the the paths become wrong. It feels like the paths are defined internally, so that I can not change them without changing the source code.

EDIT: If this IS in fact possible, an example of how to make it happen in the readme would be lovely.

@wg030
Copy link
Owner

wg030 commented May 17, 2022

Well, first of all, you do not need all files. Essentially, jlcode.sty and the *.tff files if you do not compile your document with pdftex but luatex or xtex instead ar sufficient. Forget about createkwlists.jl, manual.pdf, etc.

Concerning your problem, I think the easiest way to avoid what you call a horrible mess is to make the jlcode package known to your local miktex distribution so that it loads like a normal package, check out this youtube video I found: https://www.youtube.com/watch?v=9OtTvKMhAMc

@KronosTheLate
Copy link
Author

I am using overleaf, so I do not have a local installation...

But thanks for your tips. Could a section in the readme on how to not clutter the latex project be appropriate?

@wg030
Copy link
Owner

wg030 commented May 30, 2022

I am using overleaf, so I do not have a local installation...

Ahh, I see. In that case my recommendation cannot be applied, of course. I think the best you can do is the following then:
Put the font files *.tff into a folder like jlfontfiles and change the path attribute in the command (lines 496-498)

  \setmonofont{JuliaMono}[
  Extension = .ttf,
  Path = ./,
  %[...]
  ]

to

  \setmonofont{JuliaMono}[
  Extension = .ttf,
  Path = ./jlfontfiles/,
  %[...]
  ]

Concerning the jlcode.sty I think there is no good way to load the package from a different folder so you are best to put in the root folder next to your main.tex. But as I said all other files are not needed anyway so your structure would be way more organized.


But thanks for your tips. Could a section in the readme on how to not clutter the latex project be appropriate?

Yes, I think we can add a some description on how to do that with the next major update.

@KronosTheLate
Copy link
Author

How difficult would it be to add the Julia language to the listings package, to allow what one can currently do for Python?:
\begin{lstlisting}[language=Python], from this overleaf example page.

@wg030
Copy link
Owner

wg030 commented Jun 27, 2022

Well, as you can see in the issue #16, I already tried to get the definition into the listings package by contacting the current maintainer. He was very receptive to this idea when I mailed him back then, but he likely has a lot of other stuff to do, too.
I think so because as you can see under https://ctan.org/pkg/listings, there has not been an update in 2021, neither in 2022.
It might help if someone else contacts him, too, so that he gets to know that there is some interest in adding the Julia language definition to the listings package.

@KronosTheLate
Copy link
Author

And he is e-mailed. I will keep this issue open until there is some description of how to handle the problem is the readme.md, or in case Julia is supported in Listings.

@wg030
Copy link
Owner

wg030 commented Jun 28, 2022

And he is e-mailed. I will keep this issue open until there is some description of how to handle the problem is the readme.md, or in case Julia is supported in Listings.

👍
Support of the listings package would of course be awesome, but there is not much more than asking we could do here. So let's see what happens.
However as I said a description in the readme and/or in the manual is definitiley added with the next update.

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