7 votes
Accepted

Is it possible for org-publish to ignore certain sub-directories?

The :exclude property should do the trick. I think the reason the property is not working for you is because its value should form a regular expression, whereas your example is a glob pattern. Try ...
Basil's user avatar
  • 12.3k
5 votes

How to achieve dynamic projects without fixed paths for publishing from Org mode?

This is going to be a long post, so bear with me. The only Emacs way I see so far is to use .dir-locals.el and keep it relatively clean so you don't have to approve evals every time you change ...
mlt's user avatar
  • 233
3 votes
Accepted

org-publish-project fails because of defective org-links - repair links automatically or ignore them?

It seems you can set the variable org-export-with-broken-links: org-export-with-broken-links is a variable defined in ‘ox.el’. Its value is t Original value was nil Documentation: Non-...
JeanPierre's user avatar
  • 7,423
2 votes

How to achieve dynamic projects without fixed paths for publishing from Org mode?

According to the description of (org-publish) function: (org-publish PROJECT &optional FORCE ASYNC) Publish PROJECT. PROJECT is either a project name, as a string, or a project ...
NobbZ's user avatar
  • 171
2 votes

Code block evaluated when exporting, not when publishing

Finally works, seems the trick was to add: (org-babel-do-load-languages ...
Robert Biloute's user avatar
2 votes

How can I publish a single org file to multiple pdfs

The solution I found was to write my own publishing function. The function is a wrapper around the org-latex-publish-to-pdf that also calls rename-file. (defun publish-function-counselor-...
tomcat's user avatar
  • 355
2 votes
Accepted

Unable to load my CSS during org-publish-project

Try adding this line to the top of the org file: #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/stylesheet.css" /> Reference: https://orgmode.org/manual/CSS-support.html
jamesmaj's user avatar
  • 341
2 votes
Accepted

How do I change the value of author name in org-publish?

You could try #+author: name you choose or let-bind the user-full-name in a src block. Something like this should work. (let ((user-full-name "name you choose")) ;; publish commands here ...
John Kitchin's user avatar
  • 11.8k
2 votes
Accepted

Org publish does not load Latex packages

Just to summarize and amplify the discussion in the comments: the OP was trying to publish to HTML, not to PDF: that became clear after he posted his org-publish-project-alist which specifies org-html-...
NickD's user avatar
  • 29.3k
2 votes

İmage caption problem

This question solved the problem. I added this .figure-number { display: none; } to my css file. Edit: More info about how I figured this: I opened the page with the image that displayed "...
zeynel's user avatar
  • 371
2 votes

How to add a default #+SETUPFILE: header to every published org-mode file

It turns out there is a org-mode variable specifically aimed at providing a header. See the documentation for the emacs variable org-html-head. For my particular case, I put the contents of the orgexp....
JP.'s user avatar
  • 141
2 votes
Accepted

Publish a book as HTML/website with org-mode that is similar to bookdown

Option 1: Use a static website generator, such as Hugo, which is external software that natively understands Org-Mode syntax. You will have to build a template that replicates your ideal. Natively, ...
Peter Prevos's user avatar
2 votes
Accepted

How can I use ox-pandoc as a publishing backend for org files?

You misinterpreted the meaning of the first argument of org-publish-org-to. It is the export backend and not a function. Because of the special structure of the pandoc backend replacing org-pandoc-...
Tobias's user avatar
  • 33.1k
2 votes
Accepted

`org-publish` export utf-8 symbols instead of html entities

Do C-h v org-entities and C-h v org-entities-user. You can override the ldquo and rdquo entries in the first one by supplying modified entries for the second one. E.g. org-entities says: ... ("...
NickD's user avatar
  • 29.3k
1 vote
Accepted

How to adjust HTML elements using org-publish in Emacs

Do not quote property values inside the (quasi-)quoted form that you set org-publish-project-alist to! That's too much quoting. Try: ... :html-divs ((preamble "header" "preamble") ...
NickD's user avatar
  • 29.3k
1 vote

org mode - suppress export to ascii

EDIT: Simpler answer This answer is really along the same lines that the answer in the executive summary follows, but it is a bit more streamlined to make it easier for a new Emacs user to use. The ...
NickD's user avatar
  • 29.3k
1 vote

Where do the auto-sitemap files get generated?

I found it in the content/org_posts directory. I was looking for it in the published directory but it gets put in content along with index.org.
BigBoy1337's user avatar
1 vote
Accepted

Org publish html preamble navigation bar does not work

You can use C-u M-x org-publish-current-project or C-u M-x org-publish-current-file to force the publishing of the current project (the project associated with the current file) or just the current ...
NickD's user avatar
  • 29.3k
1 vote

Using org-roam tags when org publishing

After experimenting with custom backends using org-export-define-derived-backend, I learned that we can define custom properties and reference their values in the way my question states. For example: ...
Alex Miller's user avatar
1 vote
Accepted

Toggle org-html-head-include- only when publishing

You should be able to use directory-local variables for this: do C-h i g(emacs)Per-directory local variables RET to find out more information. Briefly, create a file named .dir-locals.el in your blog ...
NickD's user avatar
  • 29.3k
1 vote

Fix org-publish links when using org-wiki & ox-pandoc

Maybe you should redefine this function like this: (defun org-wiki--org-link (path desc backend) "Creates an html org-wiki pages when exporting to html. Example: The hyperlink [[wiki:Linux][...
John Kitchin's user avatar
  • 11.8k
1 vote
Accepted

Fix org-publish links when using org-wiki & ox-pandoc

You probably need to add a pandoc backend like this: (org-link-set-parameters "wiki" :export (lambda (path desc backend) (message-box "%s" backend) (cond ((eq backend 'html) ...
John Kitchin's user avatar
  • 11.8k
1 vote

Include reveal.js presentation in publish process

I am thinking about the same thing. I think the issue is that org-reveal-export-to-html is not a defined publishing function. There is a nice solution provided by Matt Price and it works on my ...
raivtash raivtash's user avatar
1 vote

Publish org entries to Jekyll with a custom header

I have written two org-mode exporter for pelican and hexo for my self (no public release yet, just opensource on GitHub) In your case, the best way is write a org-mode exporter based on ox-html, I ...
coldnew's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible