public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Cannot create custom author highlight in reference list - works in v.2.10.1
@ 2020-11-22 14:06 gnpan
       [not found] ` <ce795365-1926-49ca-947d-2dac0fa75f43n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: gnpan @ 2020-11-22 14:06 UTC (permalink / raw)
  To: pandoc-discuss


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



In versions previous to 2.11 (latest was 2.10.1) I could highlight only my 
name in reference lists (e.g. for cv) using the trick shown here 
https://tex.stackexchange.com/questions/18664/underline-my-name-in-the-bibliography, 
which involves modifying my name in the .bib file and adding a \newcommand 
under header-includes in the .txt file (see files below for MWE). This does 
not work in subsequent pandoc versions and I assume it is an issue of 
citeproc vs. pandoc-citeproc. 

MWE (note that the default templates that came with each version have to be 
used to avoid cslreference errors):
For v.2.11.2:
pandoc --pdf-engine=xelatex --citeproc --bibliography=test.bib 
--csl=nature.csl -o test11.pdf test.txt

For v.2.10.1:
pandoc --pdf-engine=xelatex --bibliography=test.bib --csl=nature.csl -o 
test10.pdf test.txt
Files:
1. test.txt contents:
---
header-includes:
- \newcommand{\myname}[1]{\textbf{First, A.}}
---

Test [@first_test_2020]

2. test.bib file contents:
@Article{first_test_2020,
title = {Test title},
journaltitle = {Journal},
author = {{\myname{first}} and Second, B. and Third, C.},
date = {2020}
}

3. nature.csl: https://www.zotero.org/styles?q=nature
4. Result with 2.10: test10.pdf 
<https://github.com/jgm/pandoc/files/5559278/test10.pdf>
5. Result with 2.11: test11.pdf 
<https://github.com/jgm/pandoc/files/5559279/test11.pdf>

Sorry for cross-posting this from the github site (#6856), not sure which 
is more appropriate. 
Thanks
George

-- 
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/ce795365-1926-49ca-947d-2dac0fa75f43n%40googlegroups.com.

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

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

end of thread, other threads:[~2021-02-04 17:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22 14:06 Cannot create custom author highlight in reference list - works in v.2.10.1 gnpan
     [not found] ` <ce795365-1926-49ca-947d-2dac0fa75f43n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-22 21:21   ` John MacFarlane
     [not found]     ` <m2lfetdr4y.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-11-23 15:39       ` gnpan
     [not found]         ` <7aab780f-2a4e-4641-bc69-adc88280730an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-11-23 19:37           ` BPJ
     [not found]             ` <CADAJKhBE6p41ke4qFiABjQanSXzFMMfi=OmwCKaYa7fw=FtcFA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-01-06 16:44               ` gnpan
2021-02-04 17:39               ` gnpan
2021-01-06 18:48       ` amph...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
     [not found]         ` <2b0ecfee-5114-4808-967d-e25efc01577fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-06 20:30           ` BPJ

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