Tweak og-set-export-spec indentation
This commit is contained in:
parent
2705080dd8
commit
ff10653b8b
|
@ -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))
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue