From: "Thomas S. Dye" <tsd@tsdye.online>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] Source code of type 'conf' disappears in LaTeX export [N/A (N/A @ /usr/share/emacs/site-lisp/org-mode/)]
Date: Fri, 29 Oct 2021 07:11:15 -1000 [thread overview]
Message-ID: <87cznng3ik.fsf@tsdye.online> (raw)
In-Reply-To: <87lf2bncu5.fsf@vandersluys.nl>
Aloha,
Marc van der Sluys <linux@vandersluys.nl> writes:
> Remember to cover the basics, that is, what you expected to
> happen and
> what in fact did happen. You don't know how to make a good
> report? See
>
> https://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org mailing list.
> ------------------------------------------------------------------------
> Thank you for the incredible orgmode software!
>
> I ran into this issue. When I have a block of 'code' from a
> configuration file, e.g.
>
> #+begin_src conf
> Host server
> HostName servername.domainname.org
> User username
> #+end_src
>
> it shows up nicely in emacs. However, when exporting to LaTeX
> and pdf using the Minted package, the code blocks go missing
> completely. The code is converted in LaTeX to
>
> \begin{minted}[]{conf}
> Host server
> HostName servername.domainname.org
> User username
> \end{minted}
>
> which disappears upon compilation because 'conf' is not one of
> the lexers recognised by Minted.
>
> Replacing 'conf' with 'aconf' (for Apache config) has the
> opposite result: no syntax highlighting in emacs orgmode, but
> acceptable output in LaTeX, because it is supported by Minted.
>
> A 'quick fix' could therefore be to either:
> 1) rename conf -> aconf when exporting orgmode to LaTeX,
> or
> 2) adding the syntax highlighting that is used for conf to
> source blocks of type aconf.
>
>
> Expected behaviour:
> + conf code block shows up in LaTeX/pdf with syntax highlighting
> after converting from orgmode to LaTeX/PDF.
>
> Actual behaviour:
> + conf code block completely disappears in PDF after converting
> from orgmode to LaTeX/PDF.
>
>
> Sincerely,
>
> Marc van der Sluys.
Does org-latex-minted-langs help?
All the best,
Tom
--
Thomas S. Dye
https://tsdye.online/tsdye
prev parent reply other threads:[~2021-10-29 17:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 13:57 [BUG] Source code of type 'conf' disappears in LaTeX export [N/A (N/A @ /usr/share/emacs/site-lisp/org-mode/)] Marc van der Sluys
2021-10-29 17:11 ` Thomas S. Dye [this message]
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=87cznng3ik.fsf@tsdye.online \
--to=tsd@tsdye.online \
--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).