Tweak og-set-export-spec indentation

This commit is contained in:
TEC 2023-01-18 23:43:20 +08:00
parent 2705080dd8
commit ff10653b8b
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
3 changed files with 19 additions and 20 deletions

View File

@ -1111,6 +1111,7 @@ The information is extracted from `org-glossary-export-specs'."
Specifically, for each :PROPERTY VALUE pair of PROPERTY-VALUE-PAIRS, that
PROPERTY is set to VALUE within the TYPE list of the BACKEND list in
`org-glossary-export-specs'."
(declare (indent 2))
(while property-value-pairs
(setf (alist-get type (alist-get backend org-glossary-export-specs))
(plist-put (alist-get type (alist-get backend org-glossary-export-specs))

View File

@ -563,17 +563,16 @@ In this example we could alternatively set =:definition-structure= to a function
to avoid the =\ifnum%n>0= LaTeX switch.
#+begin_example
(org-glossary-set-export-spec
'latex t :definition-structure
(lambda (backend info term-entry form &optional ref-index plural-p capitalized-p extra-parameters)
(org-glossary--export-template
(if (plist-get term-entry :uses)
"*%d*\\emsp{}%v\\ensp{}@@latex:\\labelcpageref{@@%b@@latex:}@@\n"
"*%d*\\emsp{}%v\n")
backend info term-entry ref-index
plural-p capitalized-p extra-parameters)))
(org-glossary-set-export-spec 'latex t
:definition-structure
(lambda (backend info term-entry form &optional ref-index plural-p capitalized-p extra-parameters)
(org-glossary--export-template
(if (plist-get term-entry :uses)
"*%d*\\emsp{}%v\\ensp{}@@latex:\\labelcpageref{@@%b@@latex:}@@\n"
"*%d*\\emsp{}%v\n")
backend info term-entry ref-index
plural-p capitalized-p extra-parameters)))
#+end_example
This allows for any change in other backends or the defaults you're not
particularly attached to from freely updating.

View File

@ -751,18 +751,17 @@ In this example we could alternatively set @samp{:definition-structure} to a fun
to avoid the @samp{\ifnum%n>0} @LaTeX{} switch.
@example
(org-glossary-set-export-spec
'latex t :definition-structure
(lambda (backend info term-entry form &optional ref-index plural-p capitalized-p extra-parameters)
(org-glossary--export-template
(if (plist-get term-entry :uses)
"*%d*\\emsp@{@}%v\\ensp@{@}@@@@latex:\\labelcpageref@{@@@@%b@@@@latex:@}@@@@\n"
"*%d*\\emsp@{@}%v\n")
backend info term-entry ref-index
plural-p capitalized-p extra-parameters)))
(org-glossary-set-export-spec 'latex t
:definition-structure
(lambda (backend info term-entry form &optional ref-index plural-p capitalized-p extra-parameters)
(org-glossary--export-template
(if (plist-get term-entry :uses)
"*%d*\\emsp@{@}%v\\ensp@{@}@@@@latex:\\labelcpageref@{@@@@%b@@@@latex:@}@@@@\n"
"*%d*\\emsp@{@}%v\n")
backend info term-entry ref-index
plural-p capitalized-p extra-parameters)))
@end example
This allows for any change in other backends or the defaults you're not
particularly attached to from freely updating.