public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BPJ <bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Cannot create custom author highlight in reference list - works in v.2.10.1
Date: Wed, 6 Jan 2021 21:30:05 +0100	[thread overview]
Message-ID: <CADAJKhBKCv082-eg3+c=8KF7Uc70mU6vh7wV7nwkQtFfH7DGhQ@mail.gmail.com> (raw)
In-Reply-To: <2b0ecfee-5114-4808-967d-e25efc01577fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 4729 bytes --]

Some systems can't handle something as simple as my official given name
which is double, with space between the parts rather than a hyphen. I get
an error because of the space or they just chop off the second half.
Sometimes the system, or people, insert a hyphen in place of the space, or
worse a hyphen between the second half and my surname.

True enough you should make no assumptions about names, neither of people,
places or anything else. Nor about the relative order of zip codes and
place names or house numbers and street names for that matter.

-- 
Better --help|less than helpless

Den ons 6 jan. 2021 19:48amph...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <amphiboly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:

> While I appreciate that accepting formatting of the type requested might
> be problematical, I am reminded of "Falsehoods Programmers Believe About
> Names
> <https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/>"
> by Patrick McKenzie.
>
> --
> Rik
> On Sunday, November 22, 2020 at 4:21:49 PM UTC-5 John MacFarlane wrote:
>
>>
>> The citeproc library doesn't allow any formatting in given names,
>> so this bit of formatting is lost.
>>
>> I'm not too tempted to change this. For things like
>> initialization, it's very convenient to have plain strings
>> here.
>>
>> I would suggest using a lua filter which operates on the
>> bibliography Div and runs after the citeproc phase.
>> It can just find Str elements with your name and put
>> them in an Underline.
>>
>>
>> gnpan <g.pan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > 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-discus...-/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.
>>
>>
> --
> 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/2b0ecfee-5114-4808-967d-e25efc01577fn%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/2b0ecfee-5114-4808-967d-e25efc01577fn%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/CADAJKhBKCv082-eg3%2Bc%3D8KF7Uc70mU6vh7wV7nwkQtFfH7DGhQ%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 6927 bytes --]

      parent reply	other threads:[~2021-01-06 20:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22 14:06 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADAJKhBKCv082-eg3+c=8KF7Uc70mU6vh7wV7nwkQtFfH7DGhQ@mail.gmail.com' \
    --to=bpj-j3h7gcxpsitlodktgw+v6w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).