Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-26 Thread Evan Misshula
If it would be helpful I can send a screen shot to anyone who wants one offlist.

Best,
Evan

On Tue, Feb 26, 2013 at 9:54 AM, Evan Misshula  wrote:
> Hi Myles,
>
> I followed the directions.  I created bug.sty and minimal.el in the
> same directory and it worked for me.
>
> My ox.elc was in /home/evan/Documents/org/elisp/org-mode.
> My bug.sty was in /home/evan/Documents/org/exporter
> My minimal.el was in /home/evan/Documents/org/exporter
> My bug.org was in /home/evan/Documents/org/exporter
>
> I hope this helps.
>
> Best,
> Evan
>
> On Tue, Feb 26, 2013 at 9:21 AM, Myles English  wrote:
>>
>> Bastien writes:
>>
>>> Hi Myles,
>>>
>>> Myles English  writes:
>>>
 #+LATEX_HEADER: \usepackage{~/bug}
>>>
>>> you want
>>>
>>> #+LATEX_HEADER: \usepackage{/full/path/bug}
>>
>> I do use the full path but cut it down for the example, which was
>> incorrect, because it should have had a full path, so thanks for
>> pointing that out.
>>
>> These fragments still don't work for me though.  Do they work for anyone
>> else apart from Nicolas?  I have done make clean and build, started with
>> emacs -Q, checked that the correct org library is found, I don't know
>> what else to try.
>>
>> Myles
>>
>
>
>
> --
> Evan Misshula
> Doctoral Student (Criminal Justice)
> CUNY John Jay
> "Let us reform our schools, and we shall find little reform needed in
> our prisons."
>John Ruskin, Unto This Last, essay 2 (1862)
>English critic, essayist, & reformer (1819 - 1900)
>
> "Instruction does much, but encouragement does everything." Johann
> Wolfgang Von Goethe
> www.snrg-nyc.org



-- 
Evan Misshula
Doctoral Student (Criminal Justice)
CUNY John Jay
"Let us reform our schools, and we shall find little reform needed in
our prisons."
   John Ruskin, Unto This Last, essay 2 (1862)
   English critic, essayist, & reformer (1819 - 1900)

"Instruction does much, but encouragement does everything." Johann
Wolfgang Von Goethe
www.snrg-nyc.org



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-26 Thread Myles English

Hi Evan,

Evan Misshula writes:

> I followed the directions.  I created bug.sty and minimal.el in the
> same directory and it worked for me.
>
> My ox.elc was in /home/evan/Documents/org/elisp/org-mode.
> My bug.sty was in /home/evan/Documents/org/exporter
> My minimal.el was in /home/evan/Documents/org/exporter
> My bug.org was in /home/evan/Documents/org/exporter

Thanks for checking it.  I found the problem but it is too embarrassing
to post here.

And thank you again to Nicolas for fixing it.

Myles




Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-26 Thread Evan Misshula
Hi Myles,

I followed the directions.  I created bug.sty and minimal.el in the
same directory and it worked for me.

My ox.elc was in /home/evan/Documents/org/elisp/org-mode.
My bug.sty was in /home/evan/Documents/org/exporter
My minimal.el was in /home/evan/Documents/org/exporter
My bug.org was in /home/evan/Documents/org/exporter

I hope this helps.

Best,
Evan

On Tue, Feb 26, 2013 at 9:21 AM, Myles English  wrote:
>
> Bastien writes:
>
>> Hi Myles,
>>
>> Myles English  writes:
>>
>>> #+LATEX_HEADER: \usepackage{~/bug}
>>
>> you want
>>
>> #+LATEX_HEADER: \usepackage{/full/path/bug}
>
> I do use the full path but cut it down for the example, which was
> incorrect, because it should have had a full path, so thanks for
> pointing that out.
>
> These fragments still don't work for me though.  Do they work for anyone
> else apart from Nicolas?  I have done make clean and build, started with
> emacs -Q, checked that the correct org library is found, I don't know
> what else to try.
>
> Myles
>



-- 
Evan Misshula
Doctoral Student (Criminal Justice)
CUNY John Jay
"Let us reform our schools, and we shall find little reform needed in
our prisons."
   John Ruskin, Unto This Last, essay 2 (1862)
   English critic, essayist, & reformer (1819 - 1900)

"Instruction does much, but encouragement does everything." Johann
Wolfgang Von Goethe
www.snrg-nyc.org



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-26 Thread Myles English

Bastien writes:

> Hi Myles,
>
> Myles English  writes:
>
>> #+LATEX_HEADER: \usepackage{~/bug}
>
> you want
>
> #+LATEX_HEADER: \usepackage{/full/path/bug}

I do use the full path but cut it down for the example, which was
incorrect, because it should have had a full path, so thanks for
pointing that out.

These fragments still don't work for me though.  Do they work for anyone
else apart from Nicolas?  I have done make clean and build, started with
emacs -Q, checked that the correct org library is found, I don't know
what else to try.

Myles



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-26 Thread Bastien
Hi Myles,

Myles English  writes:

> #+LATEX_HEADER: \usepackage{~/bug}

you want

#+LATEX_HEADER: \usepackage{/full/path/bug}

HTH,

-- 
 Bastien



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-26 Thread Myles English

Nicolas Goaziou writes:

> Myles English  writes:
>
>> Thanks for looking at this, I tried just now and can't see any change in
>> what I reported above.
>
> Since the patch, \[ \mysymbol = f \] is correctly displayed after C-c
> C-x C-l here (I just changed "~/bug" with "bug" as bug.sty is not
> located in my home directory).

I still can't get it to work.  I have just updated doing 'make clean,
git pull, make all', the only messages that looked odd were these:

#-
Making generated-autoload-file local to  *autoload-file* while
let-bound!

In org-make-checklist-export:
org-checklist.el:122:14:Warning: print called with 0 arguments, but requires
1-2
org-checklist.el:126:54:Warning: reference to free variable `a2ps-switches'

In org-checklist:
org-checklist.el:132:17:Warning: reference to free variable `org-state'

In end of data:
org-checklist.el:141:1:Warning: the function `a2ps-buffer' is not known
to be
#-

Then I started emacs as before:

emacs -Q -l minimal.el bug.org

M-x locate-library org RET finds the correct library from git:

Library is file ~/.emacs.d/plugins/org-mode/lisp/org.elc

Any ideas?
Can anyone else verify that this works or not?

Myles



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-26 Thread Nicolas Goaziou
Myles English  writes:

> Thanks for looking at this, I tried just now and can't see any change in
> what I reported above.

Since the patch, \[ \mysymbol = f \] is correctly displayed after C-c
C-x C-l here (I just changed "~/bug" with "bug" as bug.sty is not
located in my home directory).


Regards,

-- 
Nicolas Goaziou



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-25 Thread Myles English

Nicolas Goaziou writes:

>> I have a problem where org-preview-latex-fragment appears not to use a
>> style file the latex header.
>>
>> Starting emacs like this:
>>
>> emacs -Q -l ~/minimal.el ~/file.org
>>
>> When I export the whole buffer to pdf it looks right.
>>
>> When I call org-preview-latex-fragment on the fragment the definitions
>> in a.sty are not picked up.  This previously worked when using the
>> new exporter before it was merged.
>> -- ~/bug.sty --
>> \newcommand{\mysymbol}{\mathbf v}
>>
>> -- minimal.el 
>> (add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp")
>> (require 'ox)
>>
>> -- file.org ---
>>
>> #+STARTUP: indent
>> #+LATEX_HEADER: \usepackage{~/bug}
>>
>>
>> * heading
>>
>> \[ \mysymbol = f \]-- NO WORK
>>
>> \[ 0 = f \]-- WORKS
>>
>> --
>
> I removed this functionality when clearing out old exporter from org.el.
> It should be back in master.

Thanks for looking at this, I tried just now and can't see any change in
what I reported above.

Myles



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-25 Thread Nicolas Goaziou
Hello,

Myles English  writes:

> I have a problem where org-preview-latex-fragment appears not to use a
> style file the latex header.
>
> Starting emacs like this:
>
> emacs -Q -l ~/minimal.el ~/file.org
>
> When I export the whole buffer to pdf it looks right.
>
> When I call org-preview-latex-fragment on the fragment the definitions
> in a.sty are not picked up.  This previously worked when using the
> new exporter before it was merged.
>
> Can anyone help?
>
> Thanks,
> Myles
>
>
> -- ~/bug.sty --
> \newcommand{\mysymbol}{\mathbf v}
>
> -- minimal.el 
> (add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp")
> (require 'ox)
>
> -- file.org ---
>
> #+STARTUP: indent
> #+LATEX_HEADER: \usepackage{~/bug}
>
>
> * heading
>
> \[ \mysymbol = f \]-- NO WORK
>
> \[ 0 = f \]-- WORKS
>
> --

I removed this functionality when clearing out old exporter from org.el.
It should be back in master.

Thank you for your report.


Regards,

-- 
Nicolas Goaziou



Re: [O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-24 Thread Myles English

Just adding some more information.  It gets curiouser and curiouser...


Myles English writes:

> Hi,
>
> I have just pulled from git and have been migrating to use the new
> exporter.
>
> I have a problem where org-preview-latex-fragment appears not to use a
> style file the latex header.
>
> Starting emacs like this:
>
> emacs -Q -l ~/minimal.el ~/file.org
>
> When I export the whole buffer to pdf it looks right.
>
> When I call org-preview-latex-fragment on the fragment the definitions
> in a.sty are not picked up.  This previously worked when using the
> new exporter before it was merged.
>
> Can anyone help?
>
> Thanks,
> Myles
>
>
> -- ~/bug.sty --
> \newcommand{\mysymbol}{\mathbf v}
>
> -- minimal.el 
> (add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp")
> (require 'ox)
>
> -- file.org ---
> #+STARTUP: indent
> #+LATEX_HEADER: \usepackage{~/bug}
>
> * heading
>
> \[ \mysymbol = f \]-- NO WORK
>
> \[ 0 = f \]-- WORKS

\[ \dfrac{\partial a}{\partial b} \]  -- The fragment is perfect,
showing it as da/db but the pdf file shows it as dadb instead.

Another strange thing is that if the \[\] is the last thing in the file
apart from some empty lines then org will fold at the end of it i.e. I
see \[\]...

>
> --

Myles



[O] [new exporter][latex] does org-preview-latex-fragment use #+latex_header ?

2013-02-24 Thread Myles English

Hi,

I have just pulled from git and have been migrating to use the new
exporter.

I have a problem where org-preview-latex-fragment appears not to use a
style file the latex header.

Starting emacs like this:

emacs -Q -l ~/minimal.el ~/file.org

When I export the whole buffer to pdf it looks right.

When I call org-preview-latex-fragment on the fragment the definitions
in a.sty are not picked up.  This previously worked when using the
new exporter before it was merged.

Can anyone help?

Thanks,
Myles


-- ~/bug.sty --
\newcommand{\mysymbol}{\mathbf v}

-- minimal.el 
(add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp")
(require 'ox)

-- file.org ---
#+STARTUP: indent
#+LATEX_HEADER: \usepackage{~/bug}

* heading

\[ \mysymbol = f \]-- NO WORK

\[ 0 = f \]-- WORKS

--