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

local styles are note found #13

Closed
halloleo opened this issue Jun 19, 2015 · 9 comments
Closed

local styles are note found #13

halloleo opened this issue Jun 19, 2015 · 9 comments

Comments

@halloleo
Copy link

I try using local styles, but panzer gives message:

ERROR:   No style definition found for style "fotext" --- ignoring it

I attached a zipped MWE. (You need to change the extension to zip, because GitHub only allows JPGs, not ZIP files.): local-style-test_change-ext-to-zip.jpg

The complete input and out when I run panzer is:

$ panzer -w latex -o out.pdf fotext-doc.md
WARNING: no global style definitions found
         ----- pandoc read -----
         pandoc reading with options:
           --smart
         ----- style definitions -----
         no global definitions loaded
         ----- document style -----
         style:
           fotext
ERROR:   No style definition found for style "fotext" --- ignoring it
         full hierarchy:
           empty
         writer:
           latex
         ----- run list -----
           empty
         ----- pandoc write -----
         running
$ 
@msprev msprev closed this as completed in 6e55855 Jun 19, 2015
@msprev
Copy link
Owner

msprev commented Jun 19, 2015

Thanks for catching this. It's now fixed. Let me know if there are any problems.

@halloleo
Copy link
Author

Strange things seem to happen, Mark:

Thanks for the fix. It did work afterwrads. But now a day later I get the same error message again:

ERROR:   No style definition found for style "fotext" --- ignoring it

Is that possible? I haven't updated the source code again...

@halloleo
Copy link
Author

Also, why does panzer look for style files only in ./styles but not in the current directory . itself?

@msprev
Copy link
Owner

msprev commented Jun 22, 2015

Thanks, but I can't reproduce the error with your original source files. panzer has not changed since the fix, so something in your source files or config must have changed to cause the error. Could you bundle them and upload them again for me to test?

I'm not sure that assuming any .yaml file inside . is a style definition file would be helpful, as you may want to keep other .yaml files there too. That is why the scope is restricted to ./styles/. Can you give a use case where one would want to read from .?

@halloleo
Copy link
Author

Sure, will bundle my test case when I'm back at home. I'm traveling right now, so that won't be before 3./4. July.

Re style files in the durrent directory: You have a point with other use of yaml files! It just would be convenient not to create a subfolder for simple documents. Maybe just the name styles.yaml under .?

@msprev
Copy link
Owner

msprev commented Jun 22, 2015

Thanks. I'll wait until I get your files.

On the second issue, this is already implemented, but not documented as I was treating it as a legacy option. If there is no styles/ directory found in ., panzer will attempt to look for a file called styles.yaml in . and read the local definitions from that. The same rules applies to global style definitions in .panzer. Does that address your case?

@halloleo
Copy link
Author

Hey, that's great to be able to use a styles.yaml file in ..

Will let you know how I go when I'm back.

@halloleo
Copy link
Author

Hi, finally tested this (with v1.00 now): Works beautifully! Thanks for fixing this.

@msprev
Copy link
Owner

msprev commented Aug 26, 2015

Great, thanks!!

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