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
dd373941
Commit
dd373941
authored
2 years ago
by
FELŠÖCI Marek
Browse files
Options
Downloads
Patches
Plain Diff
Add function for removing a package from list of default LaTeX packages
parent
8e272801
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#749194
failed
2 years ago
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compose-publish.el
+12
-0
12 additions, 0 deletions
compose-publish.el
latex-publish.el
+12
-0
12 additions, 0 deletions
latex-publish.el
with
24 additions
and
0 deletions
compose-publish.el
+
12
−
0
View file @
dd373941
...
@@ -75,6 +75,18 @@
...
@@ -75,6 +75,18 @@
(
"\\subsection{%s}"
.
"\\subsection*{%s}"
)
(
"\\subsection{%s}"
.
"\\subsection*{%s}"
)
(
"\\subsubsection{%s}"
.
"\\subsubsection*{%s}"
))))
(
"\\subsubsection{%s}"
.
"\\subsubsection*{%s}"
))))
(
defun
remove-from-org-latex-default-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-default-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-default-packages-alist
)
(
unless
(
string=
package
(
nth
1
pkg
))
(
add-to-list
'output
pkg
t
)))
(
setq
org-latex-default-packages-alist
output
)))
;; Load languages for code block evaluation.
;; Load languages for code block evaluation.
(
org-babel-do-load-languages
(
org-babel-do-load-languages
'org-babel-load-languages
'org-babel-load-languages
...
...
This diff is collapsed.
Click to expand it.
latex-publish.el
+
12
−
0
View file @
dd373941
...
@@ -6,6 +6,18 @@
...
@@ -6,6 +6,18 @@
;; Preserve user-defined labels during the export to PDF via LaTeX.
;; Preserve user-defined labels during the export to PDF via LaTeX.
(
setq
org-latex-prefer-user-labels
t
)
(
setq
org-latex-prefer-user-labels
t
)
(
defun
remove-from-org-latex-default-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-default-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-default-packages-alist
)
(
unless
(
string=
package
(
nth
1
pkg
))
(
add-to-list
'output
pkg
t
)))
(
setq
org-latex-default-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