Re: [O] How to define shortcut for equations

2014-01-31 Thread o.castillo.felis...@gmail.com
Bastien... You were right! I guess the previous session didn't charge the
updated configuration.

Thx. Cheers.


On Fri, Jan 31, 2014 at 9:47 AM, Bastien  wrote:

> "o.castillo.felis...@gmail.com" 
> writes:
>
> > I tried the following but does not work
> >
> > -8< Code Start ->8--
> > #+BEGIN_SRC emacs-lisp
> > (eval-after-load "org"
> >   '(add-to-list 'org-structure-template-alist
> > '("E" "\\begin\{equation\}\n?\n\\end\{equation\}" "")))
> > #+END_SRC
> > -8< Code End  ->8--
>
> It works fine here.  I insert  TAB then the snippet is expanded.
>
> What version of Org are you using?
>
> --
>  Bastien
>



-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__


[O] How to define shortcut for equations

2014-01-31 Thread o.castillo.felis...@gmail.com
Dear community,

I'd like to use the shortcut =8--
#+BEGIN_SRC emacs-lisp
(eval-after-load "org"
  '(add-to-list 'org-structure-template-alist
'("E" "\\begin\{equation\}\n?\n\\end\{equation\}" "")))
#+END_SRC
-8< Code End  ->8--


-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__


Re: [O] How to use ox-bibtex

2014-01-29 Thread o.castillo.felis...@gmail.com
I finally did it!!! (with your help of course).

Thank you.

A single doubt is left... the bibtex compilation is not performed during
the exportation process, should be done manually, Am I write?

 For completeness 

$ cd ~/.emacs.d/

Either create the repository

$ git clone git://orgmode.org/org-mode.git
$ cd org-mode

or update it

$ cd org-mode
$make up1

Then compile the sources

$ make all
$ sudo make install

After this... I followed the advice of Eric,  open an emacs session without
personal configuration

$ make vanilla

in the emacs session evaluate one line at the time, for that use =M-:=

(add-to-list 'load-path "contrib/lisp/")
(require 'ox-bibtex)

Finally, open the =ox-bibtex-example.org= and export it!!!

I did the work for me, however, the bibtex compilation should be done by
hand.

Cheers.


On Tue, Jan 28, 2014 at 11:16 PM, Eric Schulte wrote:

> There is not enough information to address your bug.  Please read [1]
> and re-send.  It sounds to me like your installation may be bad, in
> which case it may also be worthwhile to read [2].
>
> Best,
>
> Footnotes:
> [1]  http://orgmode.org/org.html#Feedback
>
> [2]
> http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>



-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__


Re: [O] How to use ox-bibtex

2014-01-28 Thread o.castillo.felis...@gmail.com
My problem continues... however, It seems has to be with the exportation,
because if I open de file before evaluating =(requier 'ox-bibtex)= the
links are not recognised.

I tried using the latest git code

$ git fetch origin
$ make all
$ make install

Then I repeated the =vanilla= calling of emacs, and nothing.

If I try to export something (no ox-bibtex), obtain the same error. If I
uninstall the newest =org-mode= the 6.XX version does extort!

:-S


On Tue, Jan 28, 2014 at 9:38 AM, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 01/28/14, 09:32 , Rainer M Krug wrote:
> >
> >
> > On 01/27/14, 15:36 , Eric Schulte wrote:
> >> "o.castillo.felis...@gmail.com" 
> >> writes:
> >
> >>> Hello Eric. I finally try the examples you attached above, and
> >>> I'm getting a problem. The file is not imported, because of an
> >>> error "Wrong type argument arrayp, nil".
> >>>
> >>> Does anyone know what I am missing?
> >>>
> >>> Cheers
> >>>
> >
> >> My guess is that something is messed up in either your version of
> >>  Org-mode or your personal config.  Please try the following to
> >> reproduce.
> >
> >> 1. launch a version of Emacs with Org-mode loaded but without
> >> your personal config, this may be conveniently done by running
> >
> >> make vanilla
> >
> >> from the base of your Org-mode installation.
> >
> >> 2. evaluate the following
> >
> >> (add-to-list 'load-path "contrib/lisp/") (require 'ox-bibtex)
> >
> >> 3. open the example .org file attached previously (with the
> >> example .bib file in the same directory), and export to latex.
> >
> >> You should now see appropriate \cite{ref} and \bibliography
> >> elements in the exported latex.  This all works for me, if you
> >> get an error please send the whole debug trace along with version
> >> info for your Org-mode and Emacs.
> >
> > Thanks for this thread - very interesting. Just one correction (or
> > is it a bug?): Even the export to text - ASCII aborts the
> > bibtex2htlm installation.
> >
> > But also: I don't get it to work. I evaluated (require 'ox-bibtex)
> > which worked, but export to te4xt and html gives the following
> > error:
> >
> > org-babel-exp process emacs-lisp at line 78... if: Executing
> > bibtex2html failed
> >
> >
> > but bibtex2html is installed (homebrew)
> >
> > Export to LaTeX gives the attached .tex file, but the pdf contains
> > corrupt citations "[?]" and no bibliograhy.
> >
> > Is this my setup? Bibliographies work in LaTex here.
>
> OK - I have to run pdflatex - bibtex - pdflatex manually after .tex
> file creation. Then I get the references in. But is this intended?
>
> I thought that this would be done automatically?
>
> Rainer
>
> >
> > Cheers,
> >
> > Rainer
> >
> >
> >> Best,
> >
> >>>
> >>>
> >>> On Sun, Jan 26, 2014 at 4:37 PM, o.castillo.felis...@gmail.com
> >>> < o.castillo.felis...@gmail.com> wrote:
> >>>
> >>>> Thank you Eric, I'll try it asap! Cheers! On Jan 26, 2014
> >>>> 4:20 PM, "Eric Schulte"  wrote:
> >>>>
> >>>>> "o.castillo.felis...@gmail.com"
> >>>>>  writes:
> >>>>>
> >>>>>> Dear community,
> >>>>>>
> >>>>>> I'm using org-mode to draft most of my activities, and
> >>>>>> day after day I
> >>>>> get
> >>>>>> closer to managing my paper writing. Nonetheless, there
> >>>>>> is a point still drives me crazy.
> >>>>>>
> >>>>>> All over the web I find post about using such or what
> >>>>>> tool to get emacs org-mode to work with Bibtex... all of
> >>>>>> them seems complex to execute. I found the exported
> >>>>>> ox-bibtex.el [1] (included in my installation from
> >>>>> git),
> >>>>>> which 'It also introduces "cite" syntax for Org links.',
> >>>>>> but no
> >>>>> examples of
> >>>>>> the usage are included in this document.
> >>>>>>
> >>>>>> *Question*
> >>>>>>

Re: [O] How to use ox-bibtex

2014-01-28 Thread o.castillo.felis...@gmail.com
Hello again,

I'm still having the problem... please correct me if I'm wrong:

1) In a terminal:
$ cd path/to/org-mode
$ make vanilla

an emacs window (without the personal configuration but with the org-mode
conf. opens)

2) I run the command you suggest using =M-: (add-to-list 'load-path
"contrib/lisp/")= and again =M-: (require 'ox-bibtex)=

3) Open the =ox-bibtex-example.org= and export it with =C-c C-e l o=


After all that I get "Wrong type argument: arrayp, nil"

Am I doing something wrong?

Best wishes



On Mon, Jan 27, 2014 at 11:36 AM, Eric Schulte wrote:

> "o.castillo.felis...@gmail.com"  writes:
>
> > Hello Eric. I finally try the examples you attached above, and I'm
> getting
> > a problem. The file is not imported, because of an error "Wrong type
> > argument arrayp, nil".
> >
> > Does anyone know what I am missing?
> >
> > Cheers
> >
>
> My guess is that something is messed up in either your version of
> Org-mode or your personal config.  Please try the following to
> reproduce.
>
> 1. launch a version of Emacs with Org-mode loaded but without your
>personal config, this may be conveniently done by running
>
>  make vanilla
>
>from the base of your Org-mode installation.
>
> 2. evaluate the following
>
>(add-to-list 'load-path "contrib/lisp/")
>(require 'ox-bibtex)
>
> 3. open the example .org file attached previously (with the example .bib
>file in the same directory), and export to latex.
>
> You should now see appropriate \cite{ref} and \bibliography elements in
> the exported latex.  This all works for me, if you get an error please
> send the whole debug trace along with version info for your Org-mode and
> Emacs.
>
> Best,
>
> >
> >
> > On Sun, Jan 26, 2014 at 4:37 PM, o.castillo.felis...@gmail.com <
> > o.castillo.felis...@gmail.com> wrote:
> >
> >> Thank you Eric, I'll try it asap! Cheers!
> >> On Jan 26, 2014 4:20 PM, "Eric Schulte"  wrote:
> >>
> >>> "o.castillo.felis...@gmail.com" 
> writes:
> >>>
> >>> > Dear community,
> >>> >
> >>> > I'm using org-mode to draft most of my activities, and day after day
> I
> >>> get
> >>> > closer to managing my paper writing. Nonetheless, there is a point
> still
> >>> > drives me crazy.
> >>> >
> >>> > All over the web I find post about using such or what tool to get
> emacs
> >>> > org-mode to work with Bibtex... all of them seems complex to
> execute. I
> >>> > found the exported ox-bibtex.el [1] (included in my installation from
> >>> git),
> >>> > which 'It also introduces "cite" syntax for Org links.', but no
> >>> examples of
> >>> > the usage are included in this document.
> >>> >
> >>> > *Question*
> >>> >
> >>> > Can anyone provide a minimal example of the use to this tool,
> including
> >>> the
> >>> > configuration (if needed), and the necessary external (non-org)
> files?
> >>> >
> >>>
> >>> The attached two files (.org and .bib) provide an example of usage.
> >>>
> >>>
> >>>
> >>> Best,
> >>>
> >>>
> >>> >
> >>> > Thank you!
> >>> >
> >>> > [1]
> >>> >
> >>>
> http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-bibtex.el;hb=HEAD
> >>>
> >>> --
> >>> Eric Schulte
> >>> https://cs.unm.edu/~eschulte
> >>> PGP: 0x614CA05D
> >>>
> >>>
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>



-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__


Re: [O] How to use ox-bibtex

2014-01-27 Thread o.castillo.felis...@gmail.com
Hello Eric. I finally try the examples you attached above, and I'm getting
a problem. The file is not imported, because of an error "Wrong type
argument arrayp, nil".

Does anyone know what I am missing?

Cheers


On Sun, Jan 26, 2014 at 4:37 PM, o.castillo.felis...@gmail.com <
o.castillo.felis...@gmail.com> wrote:

> Thank you Eric, I'll try it asap! Cheers!
> On Jan 26, 2014 4:20 PM, "Eric Schulte"  wrote:
>
>> "o.castillo.felis...@gmail.com"  writes:
>>
>> > Dear community,
>> >
>> > I'm using org-mode to draft most of my activities, and day after day I
>> get
>> > closer to managing my paper writing. Nonetheless, there is a point still
>> > drives me crazy.
>> >
>> > All over the web I find post about using such or what tool to get emacs
>> > org-mode to work with Bibtex... all of them seems complex to execute. I
>> > found the exported ox-bibtex.el [1] (included in my installation from
>> git),
>> > which 'It also introduces "cite" syntax for Org links.', but no
>> examples of
>> > the usage are included in this document.
>> >
>> > *Question*
>> >
>> > Can anyone provide a minimal example of the use to this tool, including
>> the
>> > configuration (if needed), and the necessary external (non-org) files?
>> >
>>
>> The attached two files (.org and .bib) provide an example of usage.
>>
>>
>>
>> Best,
>>
>>
>> >
>> > Thank you!
>> >
>> > [1]
>> >
>> http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-bibtex.el;hb=HEAD
>>
>> --
>> Eric Schulte
>> https://cs.unm.edu/~eschulte
>> PGP: 0x614CA05D
>>
>>


-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__


Re: [O] How to use ox-bibtex

2014-01-26 Thread o.castillo.felis...@gmail.com
Thank you Eric, I'll try it asap! Cheers!
On Jan 26, 2014 4:20 PM, "Eric Schulte"  wrote:

> "o.castillo.felis...@gmail.com"  writes:
>
> > Dear community,
> >
> > I'm using org-mode to draft most of my activities, and day after day I
> get
> > closer to managing my paper writing. Nonetheless, there is a point still
> > drives me crazy.
> >
> > All over the web I find post about using such or what tool to get emacs
> > org-mode to work with Bibtex... all of them seems complex to execute. I
> > found the exported ox-bibtex.el [1] (included in my installation from
> git),
> > which 'It also introduces "cite" syntax for Org links.', but no examples
> of
> > the usage are included in this document.
> >
> > *Question*
> >
> > Can anyone provide a minimal example of the use to this tool, including
> the
> > configuration (if needed), and the necessary external (non-org) files?
> >
>
> The attached two files (.org and .bib) provide an example of usage.
>
>
>
> Best,
>
> >
> > Thank you!
> >
> > [1]
> >
> http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-bibtex.el;hb=HEAD
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>
>


[O] How to use ox-bibtex

2014-01-24 Thread o.castillo.felis...@gmail.com
Dear community,

I'm using org-mode to draft most of my activities, and day after day I get
closer to managing my paper writing. Nonetheless, there is a point still
drives me crazy.

All over the web I find post about using such or what tool to get emacs
org-mode to work with Bibtex... all of them seems complex to execute. I
found the exported ox-bibtex.el [1] (included in my installation from git),
which 'It also introduces "cite" syntax for Org links.', but no examples of
the usage are included in this document.

*Question*

Can anyone provide a minimal example of the use to this tool, including the
configuration (if needed), and the necessary external (non-org) files?

Thank you!

[1]
http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-bibtex.el;hb=HEAD

-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__


Re: [O] Table with LaTeX math expressions as default

2014-01-21 Thread o.castillo.felis...@gmail.com
Thank you!
On Jan 21, 2014 5:32 AM, "Eric S Fraga"  wrote:

> "o.castillo.felis...@gmail.com"  writes:
>
> > Hi  there!
> >
> > I'm using org-mode to generate a table which has columns with
> mathematical
> > expressions in certain columns.
>
> [...]
>
> > Is there a way to say that a column contains (by default) mathematical
> > expressions?
> >
> > In LaTeX the answer would be:
> > - Use the package =array=
> > - In the format of the array column include >{$} c <{$}, to indicate
> these
> > is a math expression
> >
> > Thank you.
>
> Nobody has answered yet so let me do so.  Basically, no, this is not
> possible.  Org will let you define the column specifications the way you
> want them but you would still have to escape the actual mathematical
> expressions in the table to avoid org's exporter from escaping the
> backslashes, e.g. using export snippets or macros.  The result would be
> more effort than what you already have, in my opinion.
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429
>
>


[O] Table with LaTeX math expressions as default

2014-01-08 Thread o.castillo.felis...@gmail.com
Hi  there!

I'm using org-mode to generate a table which has columns with mathematical
expressions in certain columns.

   #+caption: Berger's list of Holonomy groups
   #+name: tab:holonomy

|---+---+-+---|
   |   | Metric| Holonomy|
Dimension |

|---+---+-+---|
   | / | <>| <>  |
<>|
   | # | Kaehler   | \( U(\tfrac{n}{2}) \)   | \(n\in 2\mathbb{N}
\) |
   | # | Calabi-Yau| \( SU(\tfrac{n}{2}) \)  | \(n\in 2\mathbb{N}
\) |
   | # | Hyper-Kaehler | \( Sp(\tfrac{n}{4}) \)  | \(n\in 4\mathbb{N}
\) |
   | # | Quaternionic  | \( Sp(\tfrac{n}{4})Sp(1) \) | \(n\in 4\mathbb{N}
\) |
   | # | Exceptional   | \( G_2 \)   |
7 |
   | # |   | \( Spin(7) \)   |
8 |

|---+---+-+---|

Unfortunately, these math expressions should be typeset between \( and \).

*QUESTION*

Is there a way to say that a column contains (by default) mathematical
expressions?

In LaTeX the answer would be:
- Use the package =array=
- In the format of the array column include >{$} c <{$}, to indicate these
is a math expression

Thank you.

-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__