From: Laurent Geneste <laurent.geneste@enit.fr>
To: emacs-orgmode@gnu.org
Subject: Problem with org-mode odt exporter for styling exported src code blocks
Date: Thu, 15 Aug 2019 12:51:08 +0200 [thread overview]
Message-ID: <d73496fc-b7b5-f65d-5335-736e92631309@enit.fr> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1115 bytes --]
------------------------------------------------------------------------
Hello all,
I posted the following message in StackOverflow
(https://emacs.stackexchange.com/q/51800/9245):
I try to change the style of src code blocks export with odt
exporter but it does not work as expected.
I first exported my org file to an odt document. Then I changed the
style of *OrgSrcBlock* (red background) and saved my document as a
template file (let's say |mystyle.odt|).
Finally I added |#+ODT_STYLES_FILE: "mystyle.odt"| in the org file
and re-exported but nothing changed in the resulting odt document.
I tried the same procedure for the OrgTile style and it works as
expected (the style is correctly applied in the resulting odt document).
I'm using Org mode version 9.2.4.
I had no clear answer and I wonder if this is a normal behavior of if it
could be a bug in the odt exporter. The behavior is the same with Org
mode version 9.2.5. I attached a set of files (org file, style file,
exported file) to illustrate the problem.
Laurent
[-- Attachment #1.2: Type: text/html, Size: 1675 bytes --]
[-- Attachment #2: codeml.org --]
[-- Type: text/plain, Size: 301 bytes --]
* Code
#+name: test
#+begin_src python :results output :exports both
print("First Line")
print("Second Line")
#+end_src
#+RESULTS: test
: First Line
: Second Line
* Config :noexport:
#+options: toc:nil
#+Title: Test ODT exporter
#+ODT_STYLES_FILE: "mystyle.odt"
[-- Attachment #3: mystyle.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 14617 bytes --]
[-- Attachment #4: codeml.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 14556 bytes --]
next reply other threads:[~2019-08-15 10:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-15 10:51 Laurent Geneste [this message]
2019-08-15 11:34 ` Problem with org-mode odt exporter for styling exported src code blocks Fraga, Eric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d73496fc-b7b5-f65d-5335-736e92631309@enit.fr \
--to=laurent.geneste@enit.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).