Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a glossary in Sphinx?
    text
    copied!<p>I try to make a glossary at the end of my book which contains also the <strong>headlines content</strong> of my documentation (<strong>without description, only a reference to the page</strong>). I want to get the headlines into a glossary. But headlines need 2 lines to work, because you have to underline them.</p> <p>So I am searching a way to <strong>combine</strong> the <code>.. glossary::</code> command with a headline <strong>OR to make the command invisible under my headlines</strong>. <strong>I don’t want to see</strong> the <code>.. glossary::</code> command in my LaTeX PDF output, because if I seperat the command I would have my headlines <strong>twice</strong>. I only want to see the glossary.</p> <p>But every time I try to, my headlines aren't highlighted anymore and dont work.</p> <p>They just look like a <code>.. note::</code> box within the LaTeX PDF and my structures are missing.</p> <p>How it looks like:</p> <p><img src="https://i.stack.imgur.com/jTKX6.png" alt="enter image description here"></p> <p>How it should look:</p> <p><img src="https://i.stack.imgur.com/H8cRp.png" alt="enter image description here"></p> <p>Also the sturctures are missing, so About this Guide isn't anymore a headline.</p> <p>How it looks:</p> <p><img src="https://i.stack.imgur.com/y3jIU.png" alt="enter image description here"></p> <p>How it should look:</p> <p><img src="https://i.stack.imgur.com/lQdFF.png" alt="enter image description here"></p> <p>I searched a lot in the internet and found a lot of descriptions about the <code>.. glossary::</code> Syntax, but nothing in combination with a headline. So I tried it in many different ways by myself. Here some of the nearby endless examples XD, how I tried it:</p> <p>1.)</p> <pre><code>.. glossary:: About this Guide ****************************** </code></pre> <p>2.) ..glossary::</p> <pre><code>About this Guide **************** </code></pre> <p>I also indented this part of the code under the <code>.. glossary::</code> command to get some kind of a block or box, but my headlines weren't highlited anymore and didn't work.</p> <p>3.)</p> <pre><code>About this Guide **************** .. glossary:: About this Guide </code></pre> <p>In this try, my headline worked fine, but the glossary command was visible within my LaTeX PDF output, so I had it twice.</p> <p>Is there any way to combine my headlines with a glossary command or to make the seperat glossary command from example 3 invisible?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload