latex - Error using \Glsentrytext{} in section title -


When using a glossary package in a latex document, For the example section or chapter title, I want to use the glossary entry:

  \ section {\ Glsentrytext {big}}  

This is again a The result in error is trying to use \ protect / glsentrytext {} does not solve the problem Note that the non-capitalized version ( \ glsentrytext ) Does not cause any problems.

Is anyone aware of the way to do this work?



I sometimes use the terminology package as a way to format specific stars in a certain way. For example, \ gls {big} turns into 'beam-in-gas', obviously I can make two vocabulary entries without having the caps to achieve it and only one final It can be included in vocabulary though it is an ugly solution. Unfortunately, I do not know why this does not work or how to fix it, but I'm one I know the alternate solution:

Note: The current version of the glossary package is required for it, I tested it with version 2.07 which worked And is with version 2.03 which is not working because user 1-user 6 key is missing in that version Granted did not.

workaround

The following command:

  \ newglossaryentry {big} {name = big, type = main, text = {beam-in- Gas}, user1 = {beam-in-gas}}  

and then use it:

  \ section {\ glsentryuseri {big}}  

If the section title entry is the only event, then you must manually add the entry to the gloss by using \ glsadd {big} .


Comment

This solution is similar to the idea that you posted about making two entries, apart from that you have two entries There is no need to create: -)

However, I could think that \ Glsentrytext does not work in latex, which means that it can not be done. But this is just guessing.

PS: Maybe you should post replies to get a quick response.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -