Citation Style Language

Subsequent author substitute HELP

This is driving me crazy. I have papers3, and I spent hours (and hours and hours!) developing a CSL style that will work for a journal. I need to create a substitute for an author that has multiple references. I found where to put that, applied it in the bibliography line, the preview in the editor looks exactly how I need it to appear, but when I save it and export it to Papers, it doesn’t do the substitute. At one point I had it working a few days ago when I was just messing around, but now it’s not working. If anyone can help, I would be so, so grateful!

Hi, it’s a bit difficult to help without more details. Can you post a couple of examples of your expected results and the code of your style? By the way, for which journal is that?

Hi! This is for Micropaleontology (micropress.org). As far as I can tell, there is no CSL in the repository, and I can’t find anything that’s similar. I’m pasting what I created all the way at the end. It works as it’s supposed to in Zotero, Mendeley, and the new Papers ReadCube. It does what it’s supposed to in Papers3, except, and this is where it differs from the others, in Papers3, it will not do the substitute subsequent author. I do not want to switch over to using other PDF managers so it is not ideal to just abandon Papers3. THANKS SO MUCH FOR YOUR HELP

This is what it should look like (and get in Zotero, Mendeley, etc.):
EICHER, D. L., 1965. Foraminifera and biostratigraphy of the Graneros Shale. Journal of Paleontology , 39(5): 875–909.

__________, 1966. Foraminifera from the Cretaceous Carlile Shale of Colorado. Contributions from the Cushman Foundation for Foraminiferal Research , 17(Part 1): 16–31.

__________, 1967. Foraminifera from Belle Fourche Shale and equivalents, Wyoming and Montana. Journal of Paleontology , 41(1): 167–188.

__________, 1969. Paleobathymetry of Cretaceous Greenhorn Sea in eastern Colorado. American Association of Petroleum Geologists Bulletin , 53(5): 1075–1090.

EICHER, D. L. and DINER, R., 1985. Foraminifera as indicators of water mass in the Cretaceous Greenhorn Sea, Western Interioror In: Pratt, L. M., Kauffman, E. G., and Zelt, F. B. Foraminifera as indicators of water mass in the Cretaceous Greenhorn Sea, Western Interioror , 60–71. SEPM Field Trip Guidebook No. 4, 1985 Midyear Meeting.

__________, 1989. Origin of the Cretaceous Bridge Creek cycles in the Western Interior, United States. Palaeogeography, Palaeoclimatology, Palaeoecology , 74(1–2): 127–146.

EICHER, D. L. and WORSTELL, P., 1970. Cenomanian and Turonian foraminifera from the Great Plains, United States. Micropaleontology , 16(3): 269–324.

__________, 1970. Lunatriella, a Cretaceous Heterohelicid foraminifer from the Western Interior of the United States. Micropaleontology , 16(1): 117–121.

HAWKING, S., 1966. “Properties of expanding universes.” Unpublished Doctoral thesis, University of Cambridge.

MARES, I., 2001. Firms and the welfare state: When, why, and how does social policy matter to employers? In: Hall, P. A. and Soskice, D. Firms and the welfare state: When, why, and how does social policy matter to employers? , 184–213. New York: Oxford University Press.

BUT, this is what it ends up looking like if using in Papers3:

EICHER, D. L., 1965. Foraminifera and biostratigraphy of the Graneros Shale. Journal of Paleontology , 39(5): 875–909.

EICHER, D. L., 1966. Foraminifera from the Cretaceous Carlile Shale of Colorado. Contributions from the Cushman Foundation for Foraminiferal Research , 17(Part 1): 16–31.

EICHER, D. L., 1967. Foraminifera from Belle Fourche Shale and equivalents, Wyoming and Montana. Journal of Paleontology , 41(1): 167–188.

EICHER, D. L., 1969. Paleobathymetry of Cretaceous Greenhorn Sea in eastern Colorado. American Association of Petroleum Geologists Bulletin , 53(5): 1075–1090.

EICHER, D. L. and DINER, R., 1985. Foraminifera as indicators of water mass in the Cretaceous Greenhorn Sea, Western Interioror In: Pratt, L. M., Kauffman, E. G., and Zelt, F. B. Foraminifera as indicators of water mass in the Cretaceous Greenhorn Sea, Western Interioror , 60–71. SEPM Field Trip Guidebook No. 4, 1985 Midyear Meeting.

EICHER, D. L. and DINER, R., 1989. Origin of the Cretaceous Bridge Creek cycles in the Western Interior, United States. Palaeogeography, Palaeoclimatology, Palaeoecology , 74(1–2): 127–146.

EICHER, D. L. and WORSTELL, P., 1970. Cenomanian and Turonian foraminifera from the Great Plains, United States. Micropaleontology , 16(3): 269–324.

EICHER, D. L. and WORSTELL, P., 1970. Lunatriella, a Cretaceous Heterohelicid foraminifer from the Western Interior of the United States. Micropaleontology , 16(1): 117–121.

HAWKING, S., 1966. “Properties of expanding universes.” Unpublished Doctoral thesis, University of Cambridge.

MARES, I., 2001. Firms and the welfare state: When, why, and how does social policy matter to employers? In: Hall, P. A. and Soskice, D. Firms and the welfare state: When, why, and how does social policy matter to employers? , 184–213. New York: Oxford University Press.

WHAT I CREATED (I’m new to this so perhaps I’m missing something):

<?xml version="1.0" encoding="utf-8"?> Micropaleontology_organized2 http://www.zotero.org/styles/micropaleontology_organized2 Serena Dameron micropress.org 2020-06-29T04:38:46+00:00

In order to paste what I created, I guess in order for you to see it, I just did a find and replace < with an *. I also had to replace part any links/urls that appeared since it wouldn’t let me submit more than one. So for those, I just did a find and replace anything that started with http:// and replaced it with ***. I also had to delete whatever was in the info-tag since I’m trying to figure out why it won’t let me paste the CSL code I made. Hopefully this posts.

WHAT I WROTE:
*?xml version=“1.0” encoding=“utf-8”?>
*style xmlns="***purl.org/net/xbiblio/csl" class=“in-text” version=“1.0” name-as-sort-order=“all” demote-non-dropping-particle=“never” default-locale=“en_US”>
*!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
*macro name=“author”>
*group>
*choose>
*if type=“book” match=“any”>
*names variable=“author editor”>
*name and=“text” delimiter-precedes-last=“never” initialize-with=". " name-as-sort-order=“all”>
*name-part name=“family” text-case=“uppercase”/>
*name-part name=“given” text-case=“uppercase”/>
*/name>
*/names>
*/if>
*else>
*names variable=“author container-author original-author collection-editor”>
*name and=“text” initialize-with=". “>
*name-part name=“family” text-case=“uppercase”/>
*name-part name=“given” text-case=“uppercase”/>
*/name>
*/names>
*/else>
*/choose>
*/group>
*/macro>
*macro name=“author-short”>
*choose>
*if type=“book” match=“any”>
*names variable=“editor” suffix=” “>
*name form=“short” et-al-min=“3” et-al-use-first=“1”>
*name-part name=“family”/>
*/name>
*/names>
*/if>
*else>
*names variable=“author” suffix=” “>
*name form=“short” delimiter=”" and=“text” et-al-min=“3” et-al-use-first=“1” initialize-with=". " name-as-sort-order=“all”>
*name-part name=“family”/>
*/name>
*/names>
*/else>
*/choose>
*/macro>
*macro name=“Date-published-YYYY”>
*choose>
*if match=“any” variable=“issued”>
*date date-parts=“year” form=“text” variable=“issued”/>
*/if>
*/choose>
*/macro>
*macro name=“Book-title”>
*text variable=“title” font-style=“italic”/>
*/macro>
*macro name=“title-article-chapter”>
*text variable=“title”/>
*/macro>
*citation>
*sort>
*key macro=“author-short”/>
*key macro=“Date-published-YYYY”/>
*/sort>
*layout delimiter="; " prefix="(" suffix=")">
*text macro=“author-short”/>
*text macro=“Date-published-YYYY”/>
*/layout>
*/citation>
*bibliography name-as-sort-order=“all” subsequent-author-substitute="__________," hanging-indent=“true”>
*sort>
*key variable=“author”/>
*key macro=“Date-published-YYYY”/>
*key macro=“title-article-chapter”/>
*/sort>
*layout>
*group>
*choose>
*if type=“book” match=“any”>
*group suffix=".">
*text macro=“author”/>
*text macro=“Date-published-YYYY” prefix=", “/>
*text macro=“Book-title” prefix=”. " suffix=". “/>
*choose>
*if match=“any” variable=“publisher-place”>
*text variable=“publisher-place” suffix=”: “/>
*/if>
*/choose>
*text variable=“publisher”/>
*choose>
*if match=“any” variable=“page-first”>
*text variable=“page-first” prefix=”, " suffix=" pp “/>
*/if>
*/choose>
*/group>
*/if>
*else-if type=“chapter” match=“any”>
*group suffix=”.">
*text macro=“author”/>
*text macro=“Date-published-YYYY” prefix=", " suffix=". “/>
*text macro=“title-article-chapter”/>
*names variable=“editor” prefix=” In: “>
*name and=“text” initialize-with=”. " name-as-sort-order=“all”/>
*/names>
*text macro=“Book-title” prefix=" “/>
*text variable=“page” prefix=”, " suffix=". “/>
*choose>
*if match=“any” variable=“publisher-place”>
*text variable=“publisher-place” suffix=”: “/>
*/if>
*/choose>
*text variable=“publisher” font-style=“normal” suffix=”."/>
*/group>
*/else-if>
*else-if type=“thesis” match=“any”>
*group suffix=".">
*text macro=“author”/>
*text macro=“Date-published-YYYY” prefix=", “/>
*text macro=“title-article-chapter” quotes=“true” prefix=”. “/>
*text variable=“genre” prefix=”. Unpublished “/>
*text variable=“publisher” prefix=”, “/>
*choose>
*if match=“any” locator=“page” variable=“page page-first number-of-pages collection-number”>
*text variable=“page-first” prefix=”, " suffix=" pp"/>
*/if>
*/choose>
*/group>
*/else-if>
*else>
*group suffix=".">
*text macro=“author”/>
*text macro=“Date-published-YYYY” prefix=", “/>
*text macro=“title-article-chapter” prefix=”. “/>
*text variable=“container-title” font-style=“italic” prefix=”. “/>
*choose>
*if match=“any” variable=“volume”>
*text variable=“volume” prefix=”, “/>
*/if>
*/choose>
*choose>
*if match=“any” variable=“issue”>
*text variable=“issue” prefix=”(" suffix=")"/>
*/if>
*/choose>
*text variable=“page” prefix=": "/>
*/group>
*/else>
*/choose>
*/group>
*/layout>
*/bibliography>
*/style>

You can use three backticks to paste codeblocks here.
Or, you use hastebin pastebin or a github gist to share youre code.

Well, that sounds like it’s a bug in Papers3. You should probably contact their customer support. There’s not really much we can do about it if it works correctly with the other tools mentioned.

Thanks, I’ll try contacting Papers. Hopefully they still offer support.

<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" name-as-sort-order="all" demote-non-dropping-particle="never" default-locale="en_US">
  <!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
  <info>
    <title>Micropaleontology_organized2</title>
    <id>http://www.zotero.org/styles/micropaleontology_organized2</id>
    <link rel="self" href="http://www.zotero.org/styles/micropaleontology_organized2" xml:lang="CSL 1.0"/>
    <author>
      <name>Serena Dameron</name>
    </author>
    <category citation-format="author-date"/>
    <category field="geology"/>
    <summary>micropress.org </summary>
    <updated>2020-06-29T04:38:46+00:00</updated>
  </info>
  <macro name="author">
    <group>
      <choose>
        <if type="book" match="any">
          <names variable="author editor">
            <name and="text" delimiter-precedes-last="never" initialize-with=". " name-as-sort-order="all">
              <name-part name="family" text-case="uppercase"/>
              <name-part name="given" text-case="uppercase"/>
            </name>
          </names>
        </if>
        <else>
          <names variable="author container-author original-author collection-editor">
            <name and="text" initialize-with=". ">
              <name-part name="family" text-case="uppercase"/>
              <name-part name="given" text-case="uppercase"/>
            </name>
          </names>
        </else>
      </choose>
    </group>
  </macro>
  <macro name="author-short">
    <choose>
      <if type="book" match="any">
        <names variable="editor" suffix=" ">
          <name form="short" et-al-min="3" et-al-use-first="1">
            <name-part name="family"/>
          </name>
        </names>
      </if>
      <else>
        <names variable="author" suffix=" ">
          <name form="short" delimiter="" and="text" et-al-min="3" et-al-use-first="1" initialize-with=". " name-as-sort-order="all">
            <name-part name="family"/>
          </name>
        </names>
      </else>
    </choose>
  </macro>
  <macro name="Date-published-YYYY">
    <choose>
      <if match="any" variable="issued">
        <date date-parts="year" form="text" variable="issued"/>
      </if>
    </choose>
  </macro>
  <macro name="Book-title">
    <text variable="title" font-style="italic"/>
  </macro>
  <macro name="title-article-chapter">
    <text variable="title"/>
  </macro>
  <citation>
    <sort>
      <key macro="author-short"/>
      <key macro="Date-published-YYYY"/>
    </sort>
    <layout delimiter="; " prefix="(" suffix=")">
      <text macro="author-short"/>
      <text macro="Date-published-YYYY"/>
    </layout>
  </citation>
  <bibliography name-as-sort-order="all" subsequent-author-substitute="__________," hanging-indent="true">
    <sort>
      <key variable="author"/>
      <key macro="Date-published-YYYY"/>
      <key macro="title-article-chapter"/>
    </sort>
    <layout>
      <group>
        <choose>
          <if type="book" match="any">
            <group suffix=".">
              <text macro="author"/>
              <text macro="Date-published-YYYY" prefix=", "/>
              <text macro="Book-title" prefix=". " suffix=". "/>
              <choose>
                <if match="any" variable="publisher-place">
                  <text variable="publisher-place" suffix=": "/>
                </if>
              </choose>
              <text variable="publisher"/>
              <choose>
                <if match="any" variable="page-first">
                  <text variable="page-first" prefix=", " suffix=" pp "/>
                </if>
              </choose>
            </group>
          </if>
          <else-if type="chapter" match="any">
            <group suffix=".">
              <text macro="author"/>
              <text macro="Date-published-YYYY" prefix=", " suffix=". "/>
              <text macro="title-article-chapter"/>
              <names variable="editor" prefix=" In: ">
                <name and="text" initialize-with=". " name-as-sort-order="all"/>
              </names>
              <text macro="Book-title" prefix=" "/>
              <text variable="page" prefix=", " suffix=". "/>
              <choose>
                <if match="any" variable="publisher-place">
                  <text variable="publisher-place" suffix=": "/>
                </if>
              </choose>
              <text variable="publisher" font-style="normal" suffix="."/>
            </group>
          </else-if>
          <else-if type="thesis" match="any">
            <group suffix=".">
              <text macro="author"/>
              <text macro="Date-published-YYYY" prefix=", "/>
              <text macro="title-article-chapter" quotes="true" prefix=". "/>
              <text variable="genre" prefix=". Unpublished "/>
              <text variable="publisher" prefix=", "/>
              <choose>
                <if match="any" locator="page" variable="page page-first number-of-pages collection-number">
                  <text variable="page-first" prefix=",  " suffix=" pp"/>
                </if>
              </choose>
            </group>
          </else-if>
          <else>
            <group suffix=".">
              <text macro="author"/>
              <text macro="Date-published-YYYY" prefix=", "/>
              <text macro="title-article-chapter" prefix=". "/>
              <text variable="container-title" font-style="italic" prefix=". "/>
              <choose>
                <if match="any" variable="volume">
                  <text variable="volume" prefix=", "/>
                </if>
              </choose>
              <choose>
                <if match="any" variable="issue">
                  <text variable="issue" prefix="(" suffix=")"/>
                </if>
              </choose>
              <text variable="page" prefix=": "/>
            </group>
          </else>
        </choose>
      </group>
    </layout>
  </bibliography>
</style>