Skip to end of banner
Go to start of banner

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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

    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:

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

    • For LaTex List of Equations macro:

      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

  • No labels