* problem with urls in bibliography (pdf output)
@ 2023-10-31 19:21 t t
[not found] ` <b82b1b49-4c9d-4534-9b41-831bab0917c6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: t t @ 2023-10-31 19:21 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1898 bytes --]
Hi,
I'm getting garbled URLs in the pdf output for a bibliography. I'm not sure
what I am doing wrong.
By garbled, I mean this here, copied from the pdf (note all the happy %20s):
Pitt, David. 2022. “Mental Representation.” In The Stanford Encyclopedia of
Philosophy, edited by Edward N. Zalta and Uri Nodelman, Fall 2022.
%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%
20%20%20%20https://plato.stanford.edu/archives/fall2022/entries/mentalrepresentation/%0A%20%20%20%20%20%20%20%20%20%20%20%20%
20%20%20%20%20%20%20%20; Metaphysics Research Lab, Stanford University.
Got this through calling `pandoc mwe.bib -s --citeproc -o mwe.pdf` like
suggested in a manual.
(I had similar results calling it as --bibliography, with the main input a
.tex file that included \usepackage{url}, so that does not seem to be the
problem)
The mwe.bib file that produced this is this:
```
@incollection{sep-mental-representation,
author = {Pitt, David},
booktitle = {The {Stanford} Encyclopedia of Philosophy},
edition = {{F}all 2022},
editor = {Edward N. Zalta and Uri Nodelman},
howpublished = {\url{
https://plato.stanford.edu/archives/fall2022/entries/mental-representation/
}},
publisher = {Metaphysics Research Lab, Stanford University},
title = {{Mental Representation}},
year = {2022},
}
```
Any ideas what I might have overlooked here?
Thanks,
Best,
Tobias
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b82b1b49-4c9d-4534-9b41-831bab0917c6n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2364 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with urls in bibliography (pdf output)
[not found] ` <b82b1b49-4c9d-4534-9b41-831bab0917c6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-10-31 20:14 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2023-10-31 20:14 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 2934 bytes --]
It should make the problem go away if you remove the spaces and newlines around the URL. (%20 encodes a space and %0A a newline)
But this does seem like a bug (I guess in the LaTeX reader's treatment of \url) so it should be reported on our bug tracker.
> On Oct 31, 2023, at 12:21 PM, t t <tobias.tschiedl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hi,
> I'm getting garbled URLs in the pdf output for a bibliography. I'm not sure what I am doing wrong.
> By garbled, I mean this here, copied from the pdf (note all the happy %20s):
>
> Pitt, David. 2022. “Mental Representation.” In The Stanford Encyclopedia of Philosophy, edited by Edward N. Zalta and Uri Nodelman, Fall 2022. %0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20% 20%20%20%20https://plato.stanford.edu/archives/fall2022/entries/mentalrepresentation/%0A%20%20%20%20%20%20%20%20%20%20%20%20% 20%20%20%20%20%20%20%20; Metaphysics Research Lab, Stanford University.
>
> Got this through calling `pandoc mwe.bib -s --citeproc -o mwe.pdf` like suggested in a manual.
> (I had similar results calling it as --bibliography, with the main input a .tex file that included \usepackage{url}, so that does not seem to be the problem)
> The mwe.bib file that produced this is this:
> ```
> @incollection{sep-mental-representation,
> author = {Pitt, David},
> booktitle = {The {Stanford} Encyclopedia of Philosophy},
> edition = {{F}all 2022},
> editor = {Edward N. Zalta and Uri Nodelman},
> howpublished = {\url{
> https://plato.stanford.edu/archives/fall2022/entries/mental-representation/
> }},
> publisher = {Metaphysics Research Lab, Stanford University},
> title = {{Mental Representation}},
> year = {2022},
> }
> ```
>
> Any ideas what I might have overlooked here?
> Thanks,
> Best,
> Tobias
>
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b82b1b49-4c9d-4534-9b41-831bab0917c6n%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/b82b1b49-4c9d-4534-9b41-831bab0917c6n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/DF1D2254-193D-4AD9-BDCC-7E5C885320FD%40gmail.com.
[-- Attachment #2: Type: text/html, Size: 3880 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-31 20:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 19:21 problem with urls in bibliography (pdf output) t t
[not found] ` <b82b1b49-4c9d-4534-9b41-831bab0917c6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-10-31 20:14 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).