Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose-publish
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
compose
include
compose-publish
Commits
e266df43
Commit
e266df43
authored
2 years ago
by
FELŠÖCI Marek
Browse files
Options
Downloads
Patches
Plain Diff
Add remove-from-org-latex-packages-alist also to latex-publish.el
parent
06e96d4b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
latex-publish.el
+11
-0
11 additions, 0 deletions
latex-publish.el
with
11 additions
and
0 deletions
latex-publish.el
+
11
−
0
View file @
e266df43
...
@@ -18,6 +18,17 @@ undesirable behavior."
...
@@ -18,6 +18,17 @@ undesirable behavior."
(
add-to-list
'output
pkg
t
)))
(
add-to-list
'output
pkg
t
)))
(
setq
org-latex-default-packages-alist
output
)))
(
setq
org-latex-default-packages-alist
output
)))
(
defun
remove-from-org-latex-packages-alist
(
package
)
"Removes `package' from the list of packages that are included by default when
exporting from Org to LaTeX, i.e. from `org-latex-packages-alist'. This is
useful for controlling the order in which some of the packages are loaded in
order to prevent conflicts or other undesirable behavior."
(
let
((
output
'
()))
(
dolist
(
pkg
org-latex-packages-alist
)
(
unless
(
string=
package
(
nth
1
pkg
))
(
add-to-list
'output
pkg
t
)))
(
setq
org-latex-packages-alist
output
)))
;; Custom publishing function for LaTeX files. This is useful when we need to
;; Custom publishing function for LaTeX files. This is useful when we need to
;; publish a manually written LaTeX file to PDF (e. g. a poster).
;; publish a manually written LaTeX file to PDF (e. g. a poster).
(
defun
latex-publish-to-pdf
(
plist
filename
pub-dir
)
(
defun
latex-publish-to-pdf
(
plist
filename
pub-dir
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment