help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exporting org file to pdf with latex rendering


From: uzibalqa
Subject: Exporting org file to pdf with latex rendering
Date: Fri, 02 Jun 2023 21:28:36 +0000

Have made the following org document from which I want to get the pdf file with
latex rendered typesetting but getting the error shown subsequently after doing
"C-c C-e l o".

--------

* My Document

This is an Org mode document that demonstrates the use of LaTeX
commands.

** LaTeX Environment
#+BEGIN_LATEX
     \begin{equation}
     E = mc^2
     \end{equation}
#+END_LATEX

** Inline LaTeX
     You can also include LaTeX commands inline by wrapping them in
     single dollar signs, like this: $E = mc^2$.

** Custom LaTeX Packages
#+LATEX_HEADER: \usepackage{amsmath}

You can include custom LaTeX packages in your document using the
#+LATEX_HEADER keyword. In this example, we have included the 'amsmath'
package.

** LaTeX Fragments
#+BEGIN_EXPORT latex
\[ \sum_{i=1}^{n} i^2 \]
#+END_EXPORT

LaTeX fragments are enclosed in #+BEGIN_EXPORT latex and #+END_EXPORT
blocks. They allow you to write complex equations or formulas using
LaTeX syntax.

** Exporting to LaTeX/PDF
     To export this Org mode document to LaTeX/PDF, use the C-c C-e l o
     (org-latex-export-to-pdf) command.

* Footnotes

This is a paragraph of text containing a footnote.[fn:1]

[fn:1] This is the content of the footnote. It provides additional
information or references related to the main text.

--------

This is the debugger output.  I current use luapdf.

Debugger entered--Lisp error: (error "File 
\"/home/hagbard/Opstk/bin/gungadin-1.0/strateg...")
  signal(error ("File \"/home/hagbard/Opstk/bin/gungadin-1.0/strateg..."))
  error("File \"/home/hagbard/Opstk/bin/gungadin-1.0/strateg...")
  org-compile-file("fast-multiply.tex" ("%L -interaction nonstopmode 
-output-directory %o %..." "%L -interaction nonstopmode -output-directory %o 
%..." "%L -interaction nonstopmode -output-directory %o %...") "pdf" "See 
\"*Org PDF LaTeX Output*\" for details" #<buffer *Org PDF LaTeX Output*> ((66 . 
"bibtex") (76 . "pdflatex")))
  org-latex-compile("fast-multiply.tex")
  org-export-to-file(latex "fast-multiply.tex" nil nil nil nil nil 
org-latex-compile)
  org-latex-export-to-pdf(nil nil nil nil)
  (org-open-file (org-latex-export-to-pdf nil s v b))
  (if a (org-latex-export-to-pdf t s v b) (org-open-file 
(org-latex-export-to-pdf nil s v b)))
  (lambda (a s v b) (if a (org-latex-export-to-pdf t s v b) (org-open-file 
(org-latex-export-to-pdf nil s v b))))(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  call-interactively(org-export-dispatch nil nil)
  command-execute(org-export-dispatch)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]