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

LaTeX Error: File `protobuf/style.sty' not found. #1

Closed
YimengZhu opened this issue Oct 21, 2017 · 2 comments
Closed

LaTeX Error: File `protobuf/style.sty' not found. #1

YimengZhu opened this issue Oct 21, 2017 · 2 comments

Comments

@YimengZhu
Copy link

Hi. Thanks for sharing this package.

After added the usage of this package and click the compile in texmaker I got the error:

LaTeX Error: File `protobuf/style.sty' not found.

Do you have any suggestion about where I should place the .sty file?

Thanks

@aytchell
Copy link
Owner

Hi YimengZhu,

I'm not using Texmaker so I can't say much about this tool.

But regarding LaTeX you could try these options:

  • Probably easiest: make a new subdirectory named 'protobuf' in the directory of your main tex-file. Copy the two sty-files into this subdir. Works but has to be repeated for each new document.
  • Related but "a bit more hacky": Copy the sty-files in the directory of your tex-file and change usepackage{protobuf/style} and usepackage{protobuf/lang} to ...{style} and ...{lang}. (This is basically the same as the first option but will clutter your working directory.)
  • In my Makefile I set the environment variable TEXINPUTS telling LaTeX where to search for sty-files; this might not be an option with texmaker. (This is kind of a poor-mans-texmf)
  • or "the correct"(tm) method is to add the sty-files to your local texmf tree (see "man texhash" or "man texlsr"). In this case you should probably rename the files to something "less generic" (and also remove the 'protobuf/' part from the "usepackage"-parameter); this is the most initial work but best if you plan to use the sty a lot.

HTH,
Hannes

@YimengZhu
Copy link
Author

Hi Hannes,
The first two solution work in my case.
Thanks for you help.!

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