Re: [BUG] Source code of type 'conf' disappears in LaTeX export [N/A (N/A @ /usr/share/emacs/site-lisp/org-mode/)]

2021-10-29 Thread Thomas S. Dye

Aloha,

Marc van der Sluys  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



[BUG] Source code of type 'conf' disappears in LaTeX export [N/A (N/A @ /usr/share/emacs/site-lisp/org-mode/)]

2021-10-29 Thread Marc van der Sluys


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.




Emacs  : GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, 
cairo version 1.16.0)
 of 2021-10-01
Package: Org mode version N/A (N/A @ /usr/share/emacs/site-lisp/org-mode/)

current state:
==
(setq
 org-duration-format 'h:mm
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-latex-listings 'minted
 org-columns-default-format "%ITEM(Task) %PRIORITY(Prio) %TODO(Status) 
%EFFORT(Effort) %CLOCKSUM(Clocked)"
 org-link-shell-confirm-function 'yes-or-no-p
 org-num-format-function 'org-num-default-format
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-after-todo-statistics-hook '(org-summary-todo)
 org-global-properties '(("Effort_ALL" . "0 0:15 0:30 1:00 1:30 2:00 3:00 4:00 
5:00 6:00 7:00 8:00"))
 org-agenda-tags-todo-honor-ignore-options t
 org-refile-targets '((nil :maxlevel . 1) (org-agenda-files :maxlevel . 1) 
("GWs.org" :maxlevel . 2)
  ("HAN.org" :maxlevel . 2))
 org-html-format-inlinetask-function 
'org-html-format-inlinetask-default-function
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode 
-output-directory %o %f"
 "pdflatex -shell-escape -interaction nonstopmode 
-output-directory %o %f"
 "pdflatex -shell-escape -interaction nonstopmode 
-output-directory %o %f")
 org-agenda-category-icon-alist '(("Gentoo" 
"/home/sluys/local/www/avatars/software_logos/Gentoo_logo_10.png" nil nil 
:ascent
   center)
  ("gcalMvdS" 
"/home/sluys/local/www/avatars/software_logos/google-logo-10.jpg" nil nil
   :ascent center)
  ("Email" 
"/home/sluys/local/www/avatars/software_logos/email-10b.jpg" nil nil :ascent
   center)
  ("calendar" 
"/home/sluys/local/www/avatars/software_logos/gcalendar-10a.png" nil nil
   :ascent center)
  ("Birgit" 
"/home/sluys/local/www/avatars/Birgit-Nero-10.jpg" nil nil :ascent center)
  ("Priv" 
"/home/sluys/local/www/avatars/Faces/marc_cool_10.jpg" nil nil :ascent center)
  ("RU" 
"/home/sluys/local/www/avatars/RUN-icon-10.png" nil nil :ascent center)
  ("Hack" 
"/home/sluys/local/www/avatars/AstroFloyd_icon_10.png" nil nil :ascent center)
  ("AstroC" 
"/home/sluys/local/www/avatars/software_logos/hwc-icon-10.png" nil nil :ascent
   center)
  ("Sky" 
"/home/sluys/local/www/avatars/software_logos/hwc-icon-10.png" nil nil :ascent
   center)
  ("GitHub" 
"/home/sluys/local/www/avatars/software_logos/GitHub-icon2-10.png" nil nil
   :ascent center)
  ("Git" 
"/home/sluys/local/www/avatars/software_logos/git-icon-10.png" nil nil :ascent
   center)
  ("HAN" 
"/home/sluys/local/www/avatars/HAN/HAN-logo-10.png" nil nil :ascent center)