This site is moving soon to become part of an integrated Appfire documentation and information site for our apps. This site will remain available during the transition to our new and improved site. Once this site is moved over, this banner will be updated with the new site link for easy access.

Take a look here! If you have any questions please email support@appfire.com

How to get the app usage of Latex math macros through REST API on Confluence Cloud

This article explains how to define and execute a search using the advanced search capabilities of the Confluence REST API for latex math macros in the Confluence Cloud.

Instructions

  • Use the below-advanced search to find out the pages using Latex Math macros: Replace “your-domain” with the site name.

    1 https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=macro in(unit,mathblock,mathinline,"mathblock-ref","mathblock-table")
  • In the above query:

    • unit refers to latex Unit macro.

    • mathblock refers to latex Math Block macro.

    • mathinline refers to latex Math Inline macro.

    • “mathblock-ref“ refers to Math Block Reference macro.

    • “mathblock-table” refers to the LaTex List of Equations (Math Blocks) macro.

  • To search for the individual macros, use the query below:

    • For Math Block macro:

      1 https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=macro=mathblock

       

    • For LaTex List of Equations macro:

      1 https://your-domain.atlassian.net/wiki/rest/api/content/search?cql=macro="mathblock-table"

 

For macro names containing special characters(-), enclose them in double quotes during the CQL search; refer to this for info https://developer.atlassian.com/server/confluence/cql-function-reference/#reserved-characters