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

author-info-blocks and pdfauthor #226

Open
twsh opened this issue May 6, 2022 · 11 comments
Open

author-info-blocks and pdfauthor #226

twsh opened this issue May 6, 2022 · 11 comments

Comments

@twsh
Copy link
Contributor

twsh commented May 6, 2022

When I add this to my metadata:

author:
  - Jane Doe:
      institute: Nice Place

The resulting LaTeX file includes the following in \hypersetup: pdfauthor={Jane Doe1}, and this ends up in the PDFs author field. Is there a way to avoid the unnecessary '1'?

Here is a complete command pandoc --standalone --output foo.tex --lua-filter scholarly-metadata.lua --lua-filter author-info-blocks.lua foo.md.

@jgm
Copy link
Member

jgm commented May 6, 2022

Pandoc really expects author to be string content or a list of strings.
What pandoc version are you using? When I try this I get nothing for author in hypersetup, and in the author field of the pdf I get true.

@twsh
Copy link
Contributor Author

twsh commented May 6, 2022

I'm using Pandoc 2.18.

I probably should have mentioned that I'm using the scholarly-metadata filter too, which is required for the author-info-blocks filter. (I will update my issue.)

@iandol
Copy link
Contributor

iandol commented May 10, 2022

I assume the 1 is the resultant numbering for the institute you've added?

@twsh
Copy link
Contributor Author

twsh commented May 10, 2022

@iandol Yes, that's my understanding. In the LaTeX file the \author is: \author{Jane Doe\textsuperscript{1}}.

@iandol
Copy link
Contributor

iandol commented May 10, 2022

In my own scholarly metadata filter written in Ruby via Paru (here), I separate this info so the PDF metadata just contains the author names. I'm sure the same can be done for the Lua filter shared here, although it may need a change in the LaTeX template as IIRC it uses author-meta rather than author. @tarleb would be the expert on this.

@tarleb
Copy link
Member

tarleb commented May 12, 2022

@iandol is right, the filter should be changed.

I'm considering to make bigger changes, too. Quarto is set to introduce a system that's similar to the one we have here, but cleaner and a bit more principled. I'll likely change the filter to use their schema, but may keep some of the current behavior for compatibility.

@iandol
Copy link
Contributor

iandol commented May 12, 2022

@tarleb -- yes I saw Quarto was going to support academic metadata too, it would be great to standardise (or if they are open source, to fork and save you some effort?) and thank you for your original filter which I think provided a good base for Quarto's devs to build from!

@tarleb
Copy link
Member

tarleb commented May 20, 2022

There's a good chance that the Quarto filter will be published as a separate filter within the next weeks. I'll deprecate my filter if/when that happens.

I currently don't have the resources to work on the filter, so I have to ask everyone to be patient for a little longer.

@twsh
Copy link
Contributor Author

twsh commented May 20, 2022

@tarleb Thanks for letting me know about Quarto.

@kapsner
Copy link

kapsner commented Dec 11, 2022

There's a good chance that the Quarto filter will be published as a separate filter within the next weeks. I'll deprecate my filter if/when that happens.

I currently don't have the resources to work on the filter, so I have to ask everyone to be patient for a little longer.

Hi @tarleb , any updates on the quarto adjustments? If you need help, maybe I could also have a look on this! I also tried to adjust scholarly-metadata and author-info-block for quarto, but no success so far. It would be really really great to have these working with quarto / docx.

@tarleb
Copy link
Member

tarleb commented Dec 11, 2022

@kapsner No updates yet, life interfered. I'd be grateful for any help. Feel free to message me with any question, or if you'd like to schedule a short call.

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

5 participants