From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33421 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Thomas J.' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Citeproc/Order of filters being called Date: Wed, 29 Nov 2023 10:29:14 -0800 (PST) Message-ID: References: <15e09292-83a1-4e28-ba84-d0c518be709dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_24478_1525038948.1701282554862" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7052"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDWZ72G5ZAFBB7EFT2VQMGQEZQOJXEA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 29 19:29:19 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f55.google.com ([209.85.160.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1r8PJH-0001gk-Pr for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 29 Nov 2023 19:29:19 +0100 Original-Received: by mail-oa1-f55.google.com with SMTP id 586e51a60fabf-1fa1db3ab4bsf1131427fac.1 for ; Wed, 29 Nov 2023 10:29:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1701282558; x=1701887358; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=HSvA9UnFfVObFjSbpGIg93/pmptg7/FDPJA3jFwt7gI=; b=ij5+hY5aoOa3yc/v0JTAqntbR+IWfNPNOJJyd8gsqVonuASiOtI97lTr6yLPd4Cldk yonT8bp6RJhKZnxp8zt720xasD7x4H4bsv4lcIImT3AR1eNK9QfbD2AFTYE0Ot9nxkAA CNJmgBzs6F3xUxgZ0fcS7pUGkIxO54VT9y3/0GVZMuGY4ZQSlhlAppXKF8NexCqGdBSf 8h9zser4kY1ltYuV0Nj18S5y7qh/uAt2ULeoa32whEYPL1QCgucBTJUzsLqJ8L6qSU3n /U9mzK/kiF/ybGoNfwb9d9w2EflzQ8tqkJyPz/wm6s1xc9WvDbZ3NbojYmuRvWHp6aRP iIhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701282558; x=1701887358; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HSvA9UnFfVObFjSbpGIg93/pmptg7/FDPJA3jFwt7gI=; b=szJe1hsMcYkdakHYEaA647RZxHzSCfbO0DW1HoPaNJhgcYqurG0XFhNhviy5kKL4Al vX6iN381Zf2KpzKWuh0R9M8yvqJe9N46HZXNy015ynX6y5+gN4WBoXFk47bfWqVRLk74 M5TyAm75X+WIUIBiQyAT3qyaLT7ljoicxZG49vtLNg9wlGklfN7/qhonHowe9o/tiJR9 Vt5B521lUMi8Oum+BYk31F1NDgzMZKDiW+MqF5Z+4ocIsm2oAz8aCp9LcGFQk8shwHz0 PYO3pYeru7vJdu+aKhYbjP3/KfRdn8TQPs6wJw+imB/w911nh8qv1Hsap X-Gm-Message-State: AOJu0YwZ2HCDzs/tR2rnbzZghdNTDHxcQ3pBG4POb9NeMH7QKBAnY9SF gZOCUipjoW9MJt9V2YHjxds= X-Google-Smtp-Source: AGHT+IG/2nyMPiIJmaLTQxUuvoGueircMIrF+c+LhNfQ7YMzCUleYWcbTPxq+E9rwISzZ5P7KOd7cA== X-Received: by 2002:a05:6870:4988:b0:1f5:7d40:4fe5 with SMTP id ho8-20020a056870498800b001f57d404fe5mr12706490oab.29.1701282558730; Wed, 29 Nov 2023 10:29:18 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:890b:b0:1f9:e591:9c62 with SMTP id ti11-20020a056871890b00b001f9e5919c62ls157262oab.2.-pod-prod-03-us; Wed, 29 Nov 2023 10:29:15 -0800 (PST) X-Received: by 2002:a05:6871:5ca:b0:1fa:132b:ab72 with SMTP id v10-20020a05687105ca00b001fa132bab72mr475633oan.9.1701282555630; Wed, 29 Nov 2023 10:29:15 -0800 (PST) In-Reply-To: X-Original-Sender: pyristfeuer-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: "Thomas J." Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33421 Archived-At: ------=_Part_24478_1525038948.1701282554862 Content-Type: multipart/alternative; boundary="----=_Part_24479_93911102.1701282554862" ------=_Part_24479_93911102.1701282554862 Content-Type: text/plain; charset="UTF-8" Thanks for the feedback! I simply was not aware of the fact that every @ string is apparently automatically converted into a Cite block in the AST, even without using citeproc (?). Anyhow, being aware of this fixed the problem. I've attached the filter, if someone is interested. It is still very raw and only for HTML (adding latex shouldnt be a huge problem though). Thanks again for the help! With best wishes, Thomas William Lupton schrieb am Mittwoch, 29. November 2023 um 15:49:45 UTC+1: > From the information given, I think that the AST must still contain a > fig:fig1 citation after your filter has run. Are you able to share your > filter? > > On Wed, 29 Nov 2023 at 13:28, 'Thomas J.' via pandoc-discuss < > pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > >> Hi everyone, >> >> Since pandoc-fignos isn't working anymore (at least, with my Pandoc >> version), I have written a Lua filter that basically does what fignos does, >> namely replacing tags such as @fig:fig1 with anchors/refs to the figures in >> html/latex. Now, if I am trying to use this filter without citeproc, >> everthing works as expected. The moment I use --citeproc, I get the error >> message "fig:fig1 citation not found" and I have no link in my output file. >> I am actually calling the lua filter BEFORE --citeproc in the command >> line... >> >> pandoc --lua-filter=filter/pandoc-figref.lua --citeproc --number-sections >> --from markdown --template=templates/phimisci-1-5.html --bibliography= >> $BIBLIOGRAPHY --csl=csl/apa7-single-spaced.csl yaml/gen-metadata.yaml >> article/$1 article/$2 -o $HTMLFILE >> >> What am I missing? Thanks for the help! >> >> Best wishes, >> Thomas >> >> -- >> 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/15e09292-83a1-4e28-ba84-d0c518be709dn%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/ee97eefb-cb70-4bf9-859c-e75448438894n%40googlegroups.com. ------=_Part_24479_93911102.1701282554862 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the feedback! I simply was not aware of the fact that every @<= ;WORD> string is apparently automatically converted into a Cite block in= the AST, even without using citeproc (?). Anyhow, being aware of this fixe= d the problem. I've attached the filter, if someone is interested. It is st= ill very raw and only for HTML (adding latex shouldnt be a huge problem tho= ugh).

Thanks again for the help!

With best wishes,
Thomas

William Lupton schrieb am Mittw= och, 29. November 2023 um 15:49:45 UTC+1:
From the information giv= en, I think that the AST must still contain a fig:fig1 citation after your = filter has run. Are you able to share your filter?

On Wed, 29 Nov 2023 at 13:28, 'Thomas J.' via pando= c-discuss <pandoc-...@googleg= roups.com> wrote:
Hi everyone,

S= ince pandoc-fignos isn't working anymore (at least, with my Pandoc vers= ion), I have written a Lua filter that basically does what fignos does, nam= ely replacing tags such as @fig:fig1 with anchors/refs to the figures in ht= ml/latex. Now, if I am trying to use this filter without citeproc, everthin= g works as expected. The moment I use --citeproc, I get the error message &= quot;fig:fig1 citation not found" and I have no link in my output file= . I am actually calling the lua filter BEFORE --citeproc in the command lin= e...=C2=A0

pandoc --lua-= filter=3Dfilter/pandoc-figref.lua --citeproc --number-sectio= ns --from markdown --template=3Dtemplates/phimisci-1-5.html --bibliography=3D$BIBLIOGRAPHY --csl=3Dcs= l/apa7-single-spaced.csl yaml= /gen-metadata.yaml article/$1 article/$2<= /span> -o $HTMLFILE

Wh= at am I missing? Thanks for the help!

Best wishes,=
Thomas

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...@googleg= roups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/15e09292-8= 3a1-4e28-ba84-d0c518be709dn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/ee97eefb-cb70-4bf9-859c-e75448438894n%40googlegroups.= com.
------=_Part_24479_93911102.1701282554862-- ------=_Part_24478_1525038948.1701282554862 Content-Type: application/octet-stream; name=pandoc-figref.lua Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=pandoc-figref.lua X-Attachment-Id: 9fdcfceb-3fe5-4466-9a6d-723c2d732344 Content-ID: <9fdcfceb-3fe5-4466-9a6d-723c2d732344> -- filter to reference images/figures in text -- inspired by pandoc-fignos (works with fignos @fig: