Re: [O] org mode error "pdf wasn't produced"

2018-03-15 Thread R Jain
Hi Dereje,

Two things:
1) Pygmentize is a python package. I hope you meant trying to install it for 
python, and not Latex or Emacs.
http://pygments.org/docs/cmdline/
2) Which Tex software are you using? I recall having some compilation errors 
(last year) when I was setting this up with org-mode. Though I can't put my 
finger on what solved the problem, it was after I installed TexMaker. A friend 
suggested that it has a very decent library.
So, if you have installed the vanilla Miktex, or something else, I'd recommend 
giving TexMaker a try. Don't recall ever having to open it up though.
Let us know. Good luck.
--Rishabh

On Mar 14 2018, at 3:24 pm, Dereje Tefera <tef...@ualberta.ca> wrote:
>
> I saw that there is one error:
>
> "! Package minted Error: You must have `pygmentize' installed to use this 
> package." but when I try to install from the package list says no match.
> and a warning:
>
> "Package inputenc Warning: inputenc package ignored with utf8 based engines."
>
>
>
>
> Do you think it would be better to reinstall emacs?
>
>
> Regards
>
> Dereje
>
>
> On Wed, Mar 14, 2018 at 12:28 PM, Eric S Fraga <esfli...@gmail.com 
> (mailto:esfli...@gmail.com)> wrote:
> > On Wednesday, 14 Mar 2018 at 11:39, Dereje Tefera wrote:
> > > Dear John and R Jain,
> > >
> > > I have done all required installation for the Latex and it worked for a
> > > couple of times but it then crashes. This is the error message I am
> > > getting while trying to export to Latex PDF or Beamer. I really appreciate
> > > your cooperation but I completely if you are busy.
> >
> > So, it looks like LaTeX is now being found but that there are errors in
> > the LaTeX created by org. Have you looked at the LaTeX output buffer,
> > as the error message suggests?
> >
> > > Debugger entered--Lisp error: (error "File
> > > \"c:/Users/deret/Desktop/examp3.pdf\" wasn’t produced. See \"*Org PDF 
> > > LaTeX Output*\" for details")
> >
> > The error will likely be near the end of the buffer.
> > --
> > Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-303-g6cf5fc.dirty
>
>
>
>



Re: [O] org mode error "pdf wasn't produced"

2018-03-13 Thread R Jain
Hi Dereje,Have you already looked at (8) from https://orgmode.org/worg/org-tutorials/org-latex-export.html?--Rishabh
  

On Mar 12 2018, at 5:40 pm, Dereje Tefera  wrote:


  Dear good team of Org-mode,I am using org-mode in the Emacs, but I have a problem exporting to Latex,  PDF."I always have this message that says, PDF was not produced, when i try to export to latex pdf. I can export to HTML or tet latex but not to pdf. Any help would be highly appreciated.Thank you for your time.RegardsDereje 



  



[O] Changing indentations of all the children at once

2017-09-05 Thread R Jain
Hi Everyone,Is it possible to change the indentations of all the children (subheadings, subsubheadings, etc) at the same time, when we change the indentation of the main heading. In other words:A. Main thingB. Somethingwhich expands to:A. Main thingB. Something	1. First thing		a. Second thing			i) third thingchange to:A. Main thing	1. Something		a. First thing			i) Second thing- third thingin one step, when I use 'M-rightarrow' on the main heading "B. Something".Thanks,Rishabh



Re: [O] Using Book class without 'parts' for Org-mode Export

2017-08-16 Thread R Jain
Hi Ian,Thanks for the reply. The part which I'm tripping over is:#+latex: \chapterauthor{by Mike Anderson}(add-to-list 'org-latex-classes           '("koma-book"              "\\documentclass{scrbook}"              ("\\chapter{%s}" . "\\chapter{%s}")              ("\\subsection{%s}" . "\\subsection*{%s}")              ("\\subsection{%s}" . "\\subsection*{%s}")              ("\\paragraph{%s}" . "\\paragraph*{%s}")              )	      )Where should I add this definition?My setup is:Main.texwriteup.texWriteup.tex is suppsed to have all the chapters without preamble. Main.tex has the preamble, abstract, \input{writeup}, and bibliography.Thanks,Rishabh
  

On Aug 16 2017, at 12:51 pm, li...@wilkesley.net wrote:


  On 2017-08-16 14:44, R Jain wrote:
> Hi Everyone,
> 
> My question is about using Org-mode Export to Latex, but starting with
> Chapter, then Section, and so on.
> 
> I found a solution on Stackexchange [1] but when I add that code to my
> init file, restart emacs, and add "#+LaTeX_CLASS: book_noparts" to my
> org file,  it apparently doesn't get read. The exported .tex is an
> itemized list.
> 
> Any help with what I'm doing wrong would be great help. Also, if
> there's a better way to make custom class files within the org-file
> I'm working on, please do let me know.
> 
> Thanks,
> RJ
> 
> Links:
> --
> [1]
> https://n1.nylas.com/link/7e7b7fc5c641bf88e42b688f208d6c1b7782ff4f8c6d4b77bb3d2eacf574a234/0?redirect=https%3A%2F%2Femacs.stackexchange.com%2Fquestions%2F33318%2Fexport-org-mode-subtrees-at-chapter-level-for-latex

Here is my setup using the koma-book class. This uses H1 as the chapter 
title. A typical chapter starts with:

** The Clubroom Project
#+latex: \chapterauthor{by Mike Anderson}


(add-to-list 'org-latex-classes
   '("koma-book"
  "\\documentclass{scrbook}"
  ("\\chapter{%s}" . "\\chapter{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  )
)


In the file to be exported:

#+latex_class: koma-book
#+LATEX_CLASS_OPTIONS: [a5paper,openany,font 10pt]
#+latex_header: \makeatletter
#+latex_header: \newcommand{\chapterauthor}[1]{%
#+latex_header:   {\parindent0pt\vspace*{-5pt}%
#+latex_header:   \linespread{1.1}\large\scshape#1%
#+latex_header:   \par\nobreak\vspace*{35pt}}
#+latex_header:   \@afterheading%
#+latex_header: }
#+latex_header: \makeatother
#+latex_header: \graphicspath{{../../images/}}
#+latex_header: \usepackage{hyperref}
#+latex_header: \usepackage{pdfpages}
#+latex_header: \hypersetup{
#+latex_header: colorlinks,
#+latex_header: citecolor=black,
#+latex_header: filecolor=black,
#+latex_header: linkcolor=blue,
#+latex_header: urlcolor=black
#+latex_header: }
#+latex_header: \KOMAoptions{twoside=false}
#+latex_header: \usepackage{adjustbox}

The first chapter has:

#+latex: 
\includepdf{/home/ian/Documents/emacs/thecastle/images/frontcover.pdf}
#+latex: \setcounter{tocdepth}{2}
#+latex: \tableofcontents

This sets the TOC depthand adds the TOC at the start of the first 
chapter.

Hope that helps.

Ian.


  



[O] Using Book class without 'parts' for Org-mode Export

2017-08-16 Thread R Jain
Hi Everyone,My question is about using Org-mode Export to Latex, but starting with Chapter, then Section, and so on.I found a solution on Stackexchange but when I add that code to my init file, restart emacs, and add "#+LaTeX_CLASS: book_noparts" to my org file,  it apparently doesn't get read. The exported .tex is an itemized list. Any help with what I'm doing wrong would be great help. Also, if there's a better way to make custom class files within the org-file I'm working on, please do let me know.Thanks,RJ