Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Modified as per style guide

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

Instructions

  1. Use

...

  1. advanced search to find out the pages using

...

  1. the LaTeX Math macros

...

  1. . Replace “your-domain” with

...

  1. your instance’s domain name.

    Code Block
    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.

  2. To search for the individual macros, use the query below:

    • For Math Block macro:

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

...

    • LaTeX List of Equations macro:

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

 

Info

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 for more information.