public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* CSL for natbib
@ 2016-11-06 20:24 Zelphir Kaltstahl
       [not found] ` <e3008275-8d93-4d7d-b66d-aaf3b892a07b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Zelphir Kaltstahl @ 2016-11-06 20:24 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2364 bytes --]

As far as I know the `--natbib` switch in command line calls to Pandoc only 
works properly when converting from markdown to tex but not from markdown 
to PDF (correct me if I'm wrong). When used with output PDF, it will only 
show question marks as citation keys in the text of the PDF. Somewhere I 
read, that no efforts for correcting this will be made, because (if I 
remember the reason correctly) by that point the user is assumed to have 
their own build procedure, which at some point includes manually using 
bibtex and that would make it right.

Since I am not a pro with all the latex stuff and want to keep things 
simple, without multiple manually triggered compilation processes, which 
yield a hundred confusing warnings, I am searching for a CSL file, which 
simulates the natbib style. I read that CSL is a bit lacking in 
abbreviating author names, but maybe there is a workaround or something I 
don't know about.

So is there any way, by which I can get the same citation style with 
pandoc-citeproc as I'd get with converting from markdown to tex using the 
natbib switch and then some multiple compilations and bibtex using process? 
If there is not, is there another easy one-pandoc-command-and-be-done way 
to achieve natbib formatting of citations?

(I have a perfectly fine compiling markdown source and a wonderful pandoc 
template in which I invested many hours already, and there is no warning at 
all when I use pandoc-citeproc to compile in one pandoc command, but there 
is a LOAD of warnings, if I use natbib switch, then bibtex and then xelatex 
twice! I don't see the reason why and it would probably take many hours to 
get it running without any errors or warnings. It is simply not my current 
compilation process and I'd dislike having to go that way.)

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e3008275-8d93-4d7d-b66d-aaf3b892a07b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2846 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CSL for natbib
       [not found] ` <e3008275-8d93-4d7d-b66d-aaf3b892a07b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-07  9:18   ` John MacFarlane
       [not found]     ` <20161107091845.GC2572-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: John MacFarlane @ 2016-11-07  9:18 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Zelphir Kaltstahl [Nov 06 16 12:24 ]:
>   As far as I know the `--natbib` switch in command line calls to Pandoc
>   only works properly when converting from markdown to tex but not from
>   markdown to PDF (correct me if I'm wrong).

Right, because pandoc does not attempt to call bibtex or
biber when creating a PDF.  If you want to do this, generate
latex from pandoc and process it as you like.  You might
look into latexmk as a way of making this simpler.

>   which yield a hundred confusing warnings, I am searching for a CSL
>   file, which simulates the natbib style. I read that CSL is a bit
>   lacking in abbreviating author names, but maybe there is a workaround
>   or something I don't know about.

natbib offers several different styles, so I assume you mean
the default?  And which is that?
https://www.sharelatex.com/learn/Natbib_bibliography_styles

You can search for CSL styles here:
https://www.zotero.org/styles
You can restrict to author-date styles.
Then hover over each link and you'll see a preview.

It's also pretty easy to modify things like the brace style
in an existing style.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CSL for natbib
       [not found]     ` <20161107091845.GC2572-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
@ 2016-11-07  9:51       ` Zelphir Kaltstahl
       [not found]         ` <22d36f6f-9119-46e6-807c-4283adbfbcbc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2016-11-07 10:00       ` Zelphir Kaltstahl
  1 sibling, 1 reply; 8+ messages in thread
From: Zelphir Kaltstahl @ 2016-11-07  9:51 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1914 bytes --]



Right, because pandoc does not attempt to call bibtex or 
> biber when creating a PDF.  If you want to do this, generate 
> latex from pandoc and process it as you like.  You might 
> look into latexmk as a way of making this simpler. 
>

I think you're suggesting to produce latex with pandoc and then use latexmk 
to compile the PDF -- Did I understand correctly?
 

> natbib offers several different styles, so I assume you mean 
> the default?  And which is that? 
> https://www.sharelatex.com/learn/Natbib_bibliography_styles 
>
> You can search for CSL styles here: 
> https://www.zotero.org/styles 
> You can restrict to author-date styles. 
> Then hover over each link and you'll see a preview. 
>
> It's also pretty easy to modify things like the brace style 
> in an existing style. 
>

Yes, I've already been exploring many citation styles there, but none has 
abbreviated author names for example only the initials of the first and 
last names of authors =( That's why I wrote about possible limitations of 
the CSL format. But I could be wrong about that. I also played with with 
CSL visual editor already, but could not find any way to abbreviate author 
names in the in-text citation key.
Then I thought maybe here someone knows how to use CSL for this.

I'll take a look at latexmk and see if I can get it running, thanks.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/22d36f6f-9119-46e6-807c-4283adbfbcbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3726 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CSL for natbib
       [not found]     ` <20161107091845.GC2572-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
  2016-11-07  9:51       ` Zelphir Kaltstahl
@ 2016-11-07 10:00       ` Zelphir Kaltstahl
  1 sibling, 0 replies; 8+ messages in thread
From: Zelphir Kaltstahl @ 2016-11-07 10:00 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1281 bytes --]


>
> natbib offers several different styles, so I assume you mean 
> the default?  And which is that? 
> https://www.sharelatex.com/learn/Natbib_bibliography_styles 
> <https://www.google.com/url?q=https%3A%2F%2Fwww.sharelatex.com%2Flearn%2FNatbib_bibliography_styles&sa=D&sntz=1&usg=AFQjCNF3MULzNX6OqzmK9DqqxvythuayFA> 
>

I am a bit confused by the different styles right now. I thought `alphadin` 
was one of the natbib styles. Maybe I am looking for the wrong thing here, 
but I don't know yet. I am looking for a style which has something like 
this:

... (stuff) ...

Text Text Text Text Text [AB1990 p. 160].

... (some chapters and their contents) ...

REFERENCES CHAPTER

[AB1990]: full description.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/721791e6-6a02-4699-ac64-d10bd15f7964%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2469 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CSL for natbib
       [not found]         ` <22d36f6f-9119-46e6-807c-4283adbfbcbc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-07 11:10           ` John MacFarlane
       [not found]             ` <20161107111054.GA2085-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: John MacFarlane @ 2016-11-07 11:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

There are CSL experts who sometimes read this group, so
maybe someone will help.

I can tell you for sure that CSL supports author name
initialization.  See the docs here
http://docs.citationstyles.org/en/stable/specification.html#name


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CSL for natbib
       [not found]             ` <20161107111054.GA2085-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
@ 2016-11-07 12:44               ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w
       [not found]                 ` <c1f2316c-6c48-4dbd-ba8c-0ff27970a084-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: nickbart1980-Re5JQEeQqe8AvxtiuMwx3w @ 2016-11-07 12:44 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1071 bytes --]

There seems to be exactly one CSL style that uses labels: “DIN 1505-2 
(alphanumeric, German)” (see https://www.zotero.org/styles?format=label).

On Monday, November 7, 2016 at 11:11:32 AM UTC, John MacFarlane wrote:
>
> There are CSL experts who sometimes read this group, so 
> maybe someone will help. 
>
> I can tell you for sure that CSL supports author name 
> initialization.  See the docs here 
> http://docs.citationstyles.org/en/stable/specification.html#name 
>
>

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c1f2316c-6c48-4dbd-ba8c-0ff27970a084%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2180 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CSL for natbib
       [not found]                 ` <c1f2316c-6c48-4dbd-ba8c-0ff27970a084-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-07 14:38                   ` Zelphir Kaltstahl
       [not found]                     ` <2cd127df-a6cf-442f-a013-684d91bca684-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Zelphir Kaltstahl @ 2016-11-07 14:38 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 890 bytes --]

This looks like indeed like something I could use. It seems to limit the 
length of the author name to 4 characters and even if that is not the same 
as only initials, it does make the whole citation key in text short and it 
at least always includes the last name (abbreviated or not).

Thanks, I'll try it later : )

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2cd127df-a6cf-442f-a013-684d91bca684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1327 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: CSL for natbib
       [not found]                     ` <2cd127df-a6cf-442f-a013-684d91bca684-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-11-22 14:54                       ` Zelphir Kaltstahl
  0 siblings, 0 replies; 8+ messages in thread
From: Zelphir Kaltstahl @ 2016-11-22 14:54 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1257 bytes --]

I found out, that pandoc-citeproc does not work with the following style: 
https://www.zotero.org/styles/din-1505-2-alphanumeric

The square brackets simply remain empty. As soon as I switch to another CSL 
style in the command used to invoke pandoc, for example 
https://www.zotero.org/styles/chicago-author-date it works again.

I am not sure whether this is an error in the CSL definition, which is 
tolerated by the zotero website (because it is still showing text in the 
brackets in the JS popup for that style) or pandoc-citeproc simply cannot 
handle this style.

I think I need another style, which abbreviates names and sorts them 
alphabetically in the table of references.

-- 
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c426c628-e047-4f84-82ab-60fc41ac68bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1869 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-22 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-06 20:24 CSL for natbib Zelphir Kaltstahl
     [not found] ` <e3008275-8d93-4d7d-b66d-aaf3b892a07b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-07  9:18   ` John MacFarlane
     [not found]     ` <20161107091845.GC2572-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
2016-11-07  9:51       ` Zelphir Kaltstahl
     [not found]         ` <22d36f6f-9119-46e6-807c-4283adbfbcbc-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-07 11:10           ` John MacFarlane
     [not found]             ` <20161107111054.GA2085-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
2016-11-07 12:44               ` nickbart1980-Re5JQEeQqe8AvxtiuMwx3w
     [not found]                 ` <c1f2316c-6c48-4dbd-ba8c-0ff27970a084-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-07 14:38                   ` Zelphir Kaltstahl
     [not found]                     ` <2cd127df-a6cf-442f-a013-684d91bca684-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-11-22 14:54                       ` Zelphir Kaltstahl
2016-11-07 10:00       ` Zelphir Kaltstahl

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).