I found a working template: 
https://github.com/nbrewk/biblatex-apa-preview-bibdesk


> Am 15.04.2024 um 17:45 schrieb Prof. Bertolt Meyer 
> <bertolt.me...@psychologie.tu-chemnitz.de>:
> 
> Dear all,
> 
> sorry for my apparent stupidity, but I still cannot get bibdesk to render a 
> TeX preview of a selected reference in apa7 style (NOT „apalike“). Can 
> someone who managed this please share their preview tex template with me? I’m 
> running MacTex 2023.
> 
> Thank you and best greetings,
> Bertolt
> 
> 
> 
>> Am 22.06.2023 um 23:05 schrieb Alan Munn <am...@gmx.com>:
>> 
>> If you're using an up-to-date biblatex, and load it with the style=apa 
>> option it will format things according to the APA7 specfiications in any 
>> document class. You can get APA6 by using the apa6 package option. The apa7 
>> document class is for producing APA conforming manuscripts or preprints, it 
>> doesn't do any formatting of the bibliography. So I'm not sure what you mean 
>> by it not working with article:
>> 
>> Here's a simple example:
>> 
>> \documentclass{article}
>> \usepackage[american]{babel}
>> \usepackage[style=apa]{biblatex}
>> \usepackage{csquotes}
>> \addbibresource{/usr/local/texlive/2023/texmf-dist/doc/latex/biblatex-apa/biblatex-apa-test-references.bib}
>> \begin{document}
>> \textcite{10.15:105c}
>> \printbibliography
>> \end{document}
>> 
>> Notice that if you change the style to apa6 the formatting of the entry 
>> changes.
>> 
>> Alan
>> 
>> 
>> 
>> I thought this was the only way to get APA 7th - formatted references? Is 
>> there a way to get APA 7 style to work with article? I only managed to get 
>> article to work with APA 6, not 7.
>> 
>> 
>> Bertolt
>> 
>>> Am 22.06.2023 um 15:39 schrieb am...@gmx.com:
>>> 
>>> Why are you using the apa7 document class? For preview this makes very 
>>> little sense. Just use article. The class has no effect on the bibliography 
>>> formatting.
>>> 
>>> Alan
>>> 
>>> Sent using the mobile mail app
>>> 
>>> On 6/22/23 at 09:13, Prof. Bertolt Meyer wrote:
>>> 
>>>> Still not working. With the .bib extension, BibDesk throws an error, so 
>>>> this preview template
>>>> 
>>>> \documentclass[man]{apa7}
>>>> \usepackage[american]{babel}
>>>> \usepackage{csquotes}
>>>> \usepackage[style=apa,backend=biber]{biblatex}
>>>> \addbibresource{<<File>>.bib}
>>>> \pagestyle{empty}
>>>> \textwidth = 6.5in
>>>> % \voffset = -105pt
>>>> % \hoffset = -120pt
>>>> 
>>>> \begin{document}
>>>> \nocite{<<CiteKeys>>}
>>>> \printbibliography
>>>> \end{document}
>>>> 
>>>> gives this log:
>>>> 
>>>> ---------- BibTeX log file -------
>>>> File: 
>>>> "/var/folders/rd/njfhjmlx6wnbvgr0wl6zvv2h0000gn/T/bibdesk.sWm61C/bibpreview/bibpreview.blg"
>>>> [0] Config.pm:307> INFO - This is Biber 2.19
>>>> [0] Config.pm:310> INFO - Logfile is 'bibpreview.blg'
>>>> [33] biber-darwin:340> INFO - === Thu Jun 22, 2023, 15:08:31
>>>> [41] Biber.pm:419> INFO - Reading 'bibpreview.bcf'
>>>> [86] Biber.pm:979> INFO - Found 1 citekeys in bib section 0
>>>> [96] Biber.pm:4419> INFO - Processing section 0
>>>> [102] Biber.pm:4610> INFO - Looking for bibtex file 'bibpreview' for 
>>>> section 0
>>>> [195] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable 
>>>> = shifted' with 'variable = non-ignorable'
>>>> [195] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>> 'normalization = NFD' with 'normalization = prenormalized'
>>>> [196] Biber.pm:4239> INFO - Sorting list 'apa/apasortcite//global/global' 
>>>> of type 'entry' with template 'apa' and locale 'en-US'
>>>> [196] Biber.pm:4245> INFO - No sort tailoring available for locale 'en-US'
>>>> [198] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable 
>>>> = shifted' with 'variable = non-ignorable'
>>>> [198] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>> 'normalization = NFD' with 'normalization = prenormalized'
>>>> [198] Biber.pm:4239> INFO - Sorting list 'apa/global//global/global' of 
>>>> type 'entry' with template 'apa' and locale 'en-US'
>>>> [198] Biber.pm:4245> INFO - No sort tailoring available for locale 'en-US'
>>>> [199] bbl.pm:660> INFO - Writing 'bibpreview.bbl' with encoding 'UTF-8'
>>>> [199] bbl.pm:763> INFO - Output to bibpreview.bbl
>>>> [199] Biber.pm:131> WARN - Data source './bibpreview.tex' contains no 
>>>> BibTeX entries/macros, ignoring
>>>> [199] Biber.pm:131> WARN - I didn't find a database entry for 'Mandl_2023' 
>>>> (section 0)
>>>> [199] Biber.pm:133> INFO - WARNINGS: 2
>>>> 
>>>> Without the .bib, the above template results in an empty preview without 
>>>> error with this log:
>>>> 
>>>> 
>>>> ---------- BibTeX log file -------
>>>> File: 
>>>> "/var/folders/rd/njfhjmlx6wnbvgr0wl6zvv2h0000gn/T/bibdesk.sWm61C/bibpreview/bibpreview.blg"
>>>> [0] Config.pm:307> INFO - This is Biber 2.19
>>>> [0] Config.pm:310> INFO - Logfile is 'bibpreview.blg'
>>>> [30] biber-darwin:340> INFO - === Thu Jun 22, 2023, 15:12:39
>>>> [37] Biber.pm:419> INFO - Reading 'bibpreview.bcf'
>>>> [79] Biber.pm:979> INFO - Found 1 citekeys in bib section 0
>>>> [89] Biber.pm:4419> INFO - Processing section 0
>>>> [93] Biber.pm:4610> INFO - Looking for bibtex file 'bibpreview' for 
>>>> section 0
>>>> [174] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>> 'normalization = NFD' with 'normalization = prenormalized'
>>>> [174] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable 
>>>> = shifted' with 'variable = non-ignorable'
>>>> [174] Biber.pm:4239> INFO - Sorting list 'apa/apasortcite//global/global' 
>>>> of type 'entry' with template 'apa' and locale 'en-US'
>>>> [174] Biber.pm:4245> INFO - No sort tailoring available for locale 'en-US'
>>>> [177] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable 
>>>> = shifted' with 'variable = non-ignorable'
>>>> [177] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>> 'normalization = NFD' with 'normalization = prenormalized'
>>>> [177] Biber.pm:4239> INFO - Sorting list 'apa/global//global/global' of 
>>>> type 'entry' with template 'apa' and locale 'en-US'
>>>> [177] Biber.pm:4245> INFO - No sort tailoring available for locale 'en-US'
>>>> [177] bbl.pm:660> INFO - Writing 'bibpreview.bbl' with encoding 'UTF-8'
>>>> [177] bbl.pm:763> INFO - Output to bibpreview.bbl
>>>> [178] Biber.pm:131> WARN - Data source './bibpreview.tex' contains no 
>>>> BibTeX entries/macros, ignoring
>>>> [178] Biber.pm:131> WARN - I didn't find a database entry for 
>>>> 'Mandl:2023ab' (section 0)
>>>> [178] Biber.pm:133> INFO - WARNINGS: 2
>>>> 
>>>> 
>>>> 
>>>>> Am 22.06.2023 um 15:06 schrieb Christiaan Hofman <cmhof...@gmail.com>:
>>>>> 
>>>>> Oh, and I don’t see you added the .bib extension to <<File>>.
>>>>> 
>>>>> Christiaan
>>>>> 
>>>>>> On 22 Jun 2023, at 15:05, Christiaan Hofman <cmhof...@gmail.com> wrote:
>>>>>> 
>>>>>> What if you remove the biblatex from the document class option instead?
>>>>>> 
>>>>>> Christiaan
>>>>>> 
>>>>>>> On 22 Jun 2023, at 14:54, Prof. Bertolt Meyer 
>>>>>>> <bertolt.me...@psychologie.tu-chemnitz.de> wrote:
>>>>>>> 
>>>>>>> That’s not it either. The template looks like this at the moment 
>>>>>>> (resulting in an empty preview):
>>>>>>> 
>>>>>>> \documentclass[man, biblatex]{apa7}
>>>>>>> \usepackage[american]{babel}
>>>>>>> \usepackage{csquotes}
>>>>>>> % \usepackage[style=apa,backend=biber]{biblatex}
>>>>>>> \addbibresource{<<File>>}
>>>>>>> \pagestyle{empty}
>>>>>>> \textwidth = 6.5in
>>>>>>> % \voffset = -105pt
>>>>>>> % \hoffset = -120pt
>>>>>>> 
>>>>>>> \begin{document}
>>>>>>> \nocite{<<CiteKeys>>}
>>>>>>> \printbibliography
>>>>>>> \end{document}
>>>>>>> 
>>>>>>> And gives (now using the BibTeX output):
>>>>>>> 
>>>>>>> ---------- BibTeX log file -------
>>>>>>> File: 
>>>>>>> "/var/folders/rd/njfhjmlx6wnbvgr0wl6zvv2h0000gn/T/bibdesk.sWm61C/bibpreview/bibpreview.blg"
>>>>>>> [0] Config.pm:307> INFO - This is Biber 2.19
>>>>>>> [0] Config.pm:310> INFO - Logfile is 'bibpreview.blg'
>>>>>>> [30] biber-darwin:340> INFO - === Thu Jun 22, 2023, 14:50:19
>>>>>>> [38] Biber.pm:419> INFO - Reading 'bibpreview.bcf'
>>>>>>> [80] Biber.pm:979> INFO - Found 1 citekeys in bib section 0
>>>>>>> [91] Biber.pm:4419> INFO - Processing section 0
>>>>>>> [96] Biber.pm:4610> INFO - Looking for bibtex file 'bibpreview' for 
>>>>>>> section 0
>>>>>>> [184] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>>>>> 'variable = shifted' with 'variable = non-ignorable'
>>>>>>> [184] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>>>>> 'normalization = NFD' with 'normalization = prenormalized'
>>>>>>> [184] Biber.pm:4239> INFO - Sorting list 
>>>>>>> 'apa/apasortcite//global/global' of type 'entry' with template 'apa' 
>>>>>>> and locale 'en-US'
>>>>>>> [184] Biber.pm:4245> INFO - No sort tailoring available for locale 
>>>>>>> 'en-US'
>>>>>>> [187] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>>>>> 'normalization = NFD' with 'normalization = prenormalized'
>>>>>>> [187] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 
>>>>>>> 'variable = shifted' with 'variable = non-ignorable'
>>>>>>> [187] Biber.pm:4239> INFO - Sorting list 'apa/global//global/global' of 
>>>>>>> type 'entry' with template 'apa' and locale 'en-US'
>>>>>>> [187] Biber.pm:4245> INFO - No sort tailoring available for locale 
>>>>>>> 'en-US'
>>>>>>> [187] bbl.pm:660> INFO - Writing 'bibpreview.bbl' with encoding 'UTF-8'
>>>>>>> [187] bbl.pm:763> INFO - Output to bibpreview.bbl
>>>>>>> [187] Biber.pm:131> WARN - Data source './bibpreview.tex' contains no 
>>>>>>> BibTeX entries/macros, ignoring
>>>>>>> [187] Biber.pm:131> WARN - I didn't find a database entry for 
>>>>>>> 'Mandl:2023ab' (section 0)
>>>>>>> [187] Biber.pm:133> INFO - WARNINGS: 2
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>> Am 22.06.2023 um 14:45 schrieb Christiaan Hofman <cmhof...@gmail.com>:
>>>>>>>> 
>>>>>>>> Perhaps there is a problem with loading bib latex twice, once as an 
>>>>>>>> option to \documentclass and once using \usepackage?
>>>>>>>> 
>>>>>>>> Christiaan
>>>>>>>> 
>>>>>>>>> On 22 Jun 2023, at 14:25, Prof. Bertolt Meyer 
>>>>>>>>> <bertolt.me...@psychologie.tu-chemnitz.de> wrote:
>>>>>>>>> 
>>>>>>>>> Hmmm, that re-introduces an error and oddly the log says this (I 
>>>>>>>>> swear I only changed the one line like you suggested to include the 
>>>>>>>>> .bib):
>>>>>>>>> 
>>>>>>>>> AED endfloat: Processing end Figures and Tables
>>>>>>>>> ! Undefined control sequence.
>>>>>>>>> <inserted text> \@shorttitle
>>>>>>>>> 
>>>>>>>>> l.15 \end{document}
>>>>>>>>> 
>>>>>>>>> The control sequence at the end of the top line
>>>>>>>>> of your error message was never \def'ed. If you have
>>>>>>>>> misspelled it (e.g., `\hobx'), type `I' and the correct
>>>>>>>>> spelling (e.g., `I\hbox'). Otherwise just continue,
>>>>>>>>> and I'll forget about whatever was undefined.
>>>>>>>>> 
>>>>>>>>> [1{/usr/local/texlive/2023/texmf-var/fonts/map/pdftex/updmap/pdftex.map}{/usr/l
>>>>>>>>> ocal/texlive/2023/texmf-dist/fonts/enc/dvips/lm/lm-ec.enc}
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> ] (./bibpreview.aux)
>>>>>>>>> 
>>>>>>>>> LaTeX Warning: There were undefined references.
>>>>>>>>> 
>>>>>>>>> Package rerunfilecheck Info: File `bibpreview.out' has not changed.
>>>>>>>>> (rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
>>>>>>>>> 
>>>>>>>>> Package biblatex Warning: Please rerun LaTeX.
>>>>>>>>> (biblatex) Page breaks have changed.
>>>>>>>>> 
>>>>>>>>> Package logreq Info: Writing requests to 'bibpreview.run.xml'.
>>>>>>>>> \openout1 = `bibpreview.run.xml'.
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>> Am 22.06.2023 um 14:16 schrieb Christiaan Hofman 
>>>>>>>>>> <cmhof...@gmail.com>:
>>>>>>>>>> 
>>>>>>>>>> I think for fiber you need the full filename with extension. So 
>>>>>>>>>> replace the \addbibresource command by
>>>>>>>>>> 
>>>>>>>>>> \addbibresource{<<File>>.bib}
>>>>>>>>>> 
>>>>>>>>>> Christiaan
>>>>>>>>>> 
>>>>>>>>>>> On 22 Jun 2023, at 14:00, Prof. Bertolt Meyer 
>>>>>>>>>>> <bertolt.me...@psychologie.tu-chemnitz.de> wrote:
>>>>>>>>>>> 
>>>>>>>>>>> Alan,
>>>>>>>>>>> 
>>>>>>>>>>> thanks so much for your help. It now compiles without error, but 
>>>>>>>>>>> the file is empty, this seems to be the relevant bit:
>>>>>>>>>>> 
>>>>>>>>>>> (/usr/local/texlive/2023/texmf-dist/tex/latex/apa7/config/APA7american.txt
>>>>>>>>>>> File: APA7american.txt 2020/12/02 v1.02 apa7 configuration for 
>>>>>>>>>>> American English
>>>>>>>>>>> 
>>>>>>>>>>> )
>>>>>>>>>>> Package caption Info: Begin \AtBeginDocument code.
>>>>>>>>>>> Package caption Info: End \AtBeginDocument code.
>>>>>>>>>>> 
>>>>>>>>>>> LaTeX Warning: Citation 'Mandl:2023ab' undefined on input line 13.
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> LaTeX Warning: Empty bibliography on input line 14.
>>>>>>>>>>> 
>>>>>>>>>>> AED endfloat: Processing end Figures and Tables (./bibpreview.aux)
>>>>>>>>>>> 
>>>>>>>>>>> LaTeX Warning: There were undefined references.
>>>>>>>>>>> 
>>>>>>>>>>> Package rerunfilecheck Info: File `bibpreview.out' has not changed.
>>>>>>>>>>> (rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
>>>>>>>>>>> 
>>>>>>>>>>> Package biblatex Warning: Please (re)run Biber on the file:
>>>>>>>>>>> (biblatex) bibpreview
>>>>>>>>>>> (biblatex) and rerun LaTeX afterwards.
>>>>>>>>>>> 
>>>>>>>>>>> Package logreq Info: Writing requests to 'bibpreview.run.xml'.
>>>>>>>>>>> \openout1 = `bibpreview.run.xml’.
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> Any idea how to get around this?
>>>>>>>>>>> 
>>>>>>>>>>> Best greetings,
>>>>>>>>>>> Bertolt
>>>>>>>>>>> 
>>>>>>>>>>>> Am 21.06.2023 um 23:01 schrieb am...@gmx.com:
>>>>>>>>>>>> 
>>>>>>>>>>>> In the TeX preview panel of the preferences you need to use 
>>>>>>>>>>>> /Library/TeX/texbin/biber instead of bibtex in the “Full path to 
>>>>>>>>>>>> bibtex” part of the preference.
>>>>>>>>>>>> 
>>>>>>>>>>>> Alan
>>>>>>>>>>>> 
>>>>>>>>>>>> Sent using the mobile mail app
>>>>>>>>>>>> 
>>>>>>>>>>>> On 6/21/23 at 15:26, Prof. Bertolt Meyer wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> Hello fellow bibdesk users,
>>>>>>>>>>>>> 
>>>>>>>>>>>>> I’m trying to get a formatted latex preview in the preview pane 
>>>>>>>>>>>>> in apa7 style. However, the apa7 document class requires going 
>>>>>>>>>>>>> through biblatex to do proper apa7 formatting. Here is my attempt 
>>>>>>>>>>>>> for a corresponding preview template (I’m running MacTex 2023):
>>>>>>>>>>>>> 
>>>>>>>>>>>>> \documentclass[man, biblatex]{apa7}
>>>>>>>>>>>>> \usepackage[american]{babel}
>>>>>>>>>>>>> \usepackage{csquotes}
>>>>>>>>>>>>> \usepackage[style=apa,backend=biber]{biblatex}
>>>>>>>>>>>>> \addbibresource{<<File>>}
>>>>>>>>>>>>> \pagestyle{empty}
>>>>>>>>>>>>> \textwidth = 6.5in
>>>>>>>>>>>>> \voffset = -105pt
>>>>>>>>>>>>> \hoffset = -120pt
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> \begin{document}
>>>>>>>>>>>>> \nocite{<<CiteKeys>>}
>>>>>>>>>>>>> \printbibliography
>>>>>>>>>>>>> \end{document}
>>>>>>>>>>>>> 
>>>>>>>>>>>>> However, this throws an error in the preview log:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Package biblatex Info: Trying to load bibliographic data...
>>>>>>>>>>>>> Package biblatex Info: ... file 'bibpreview.bbl' not found.
>>>>>>>>>>>>> No file bibpreview.bbl.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Any idea how to fix this?
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Thank you and best greetings,
>>>>>>>>>>>>> Bertolt
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> --
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Prof. Dr. Bertolt Meyer
>>>>>>>>>>>>> Professor for Work and Organizational Psychology
>>>>>>>>>>>>> Vice Dean of Student Affairs, Institute of Psychology
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Speaker of the CRC 1410 „Hybrid Societies“
>>>>>>>>>>>>> https://hybrid-societies.org
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Chemnitz University of Technology
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Wilhelm-Raabe-Str. 43
>>>>>>>>>>>>> 09120 Chemnitz
>>>>>>>>>>>>> Germany
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Tel. +49 371 531 30587
>>>>>>>>>>>>> bertolt.me...@psychologie.tu-chemnitz.de
>>>>> 
>>>>> _______________________________________________
>>>>> Bibdesk-users mailing list
>>>>> Bibdesk-users@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Bibdesk-users mailing list
>>>> Bibdesk-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Bibdesk-users mailing list
>>> Bibdesk-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>> 
>> 
>> _______________________________________________
>> Bibdesk-users mailing list
>> Bibdesk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>> _______________________________________________
>> Bibdesk-users mailing list
>> Bibdesk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
> 
> 
> _______________________________________________
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users


_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to