tectonic icon indicating copy to clipboard operation
tectonic copied to clipboard

Accessing a custom style

Open edwardabraham opened this issue 7 years ago • 5 comments

Excited to have a modern way of running latex, so have just tried giving tectonic a whirl. Immediately hit my first bump. I am using a custom style (.cls) file. When I run xelatex, it can find the style happily. What do I need to do so that tectonic can find the style file? Hopefully just case of documentation (#62) being required.

edwardabraham avatar Jun 04 '17 09:06 edwardabraham

The recommended route is to copy the file to place it next to your main .tex file. However, there are some issues that crop up if you're running Tectonic from a different directory than the one that the .tex file lives in, so this might not work if you do that. Hopefully those issues will be fixed soon.

pkgw avatar Jun 04 '17 13:06 pkgw

Just, FYI, we have a system where we make latex templates and install them using Debian. These days often inside Docker images. Ideally there would be some way of telling tectonic where to find these packages. Or, maybe build them into a custom tectonic bundle... copying them into project directories would feel a bit messy to me.

edwardabraham avatar Jul 23 '18 06:07 edwardabraham

Yeah, sadly this story has not improved over the past, gulp, year. In principle I'd like to recommend that you build your files into a custom bundle, but the infrastructure to support that approach just isn't there at the moment. I'm afraid that for now, copying files is still the most practical approach that I can think of.

pkgw avatar Jul 23 '18 15:07 pkgw

Thanks so much for your response. Custom bundles sounds like they would take Tectonic to another level, but yep, the simple approach works too!

On Tue, 24 Jul 2018, 03:31 Peter Williams, [email protected] wrote:

Yeah, sadly this story has not improved over the past, gulp, year. In principle I'd like to recommend that you build your files into a custom bundle, but the infrastructure to support that approach just isn't there at the moment. I'm afraid that for now, copying files is still the most practical approach that I can think of.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tectonic-typesetting/tectonic/issues/64#issuecomment-407099583, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHYlg9_-hsysQJCVvzICq6jFSxCknbaks5uJexHgaJpZM4NvUmR .

edwardabraham avatar Jul 23 '18 20:07 edwardabraham

Yo @edwardabraham, now you can add custom .sty files using the -Z search-path option that was added in recent versions https://github.com/tectonic-typesetting/tectonic/pull/814

Can you give it a try, come back to tell how did it go and see that we can close this?

Neved4 avatar Oct 21 '21 11:10 Neved4

ping @edwardabraham

Neved4 avatar Oct 05 '22 10:10 Neved4

It's been a long time without followup and we have a variety of similar issues logged, so I'm going to go ahead and close this one.

pkgw avatar Oct 21 '22 23:10 pkgw