emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t
@ 2018-12-13  7:30 Uwe Brauer
  2018-12-13  9:23 ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Uwe Brauer @ 2018-12-13  7:30 UTC (permalink / raw)
  To: emacs-orgmode


Hi

The following org file is exported correctly to latex.
,----
| 
| * Test of the bibliography
| 
| 
| \begin{equation}
| \label{eq:testbib:1}
| \int f dx =0 
| \end{equation}
| 
| see
| citep:tao08:_global
| 
| 
| bibliographystyle:unsrt
| bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib
`----

However I sometimes prefer 

,----
| * Test of the bibliography
| #+BEGIN_src latex :results latex replace :exports results :eval t
| 
| \begin{equation}
| \label{eq:testbib:1}
| \int f dx =0 
| \end{equation}
| 
| see
| citep:tao08:_global
| 
| #+END_src
| bibliographystyle:unsrt
| bibliography:/home/oub/texmf/bibtex/bib/bibgraf.bib
| 
`----

Because this way the fortification  for \begin{equation} is the same as
in my latex buffer (with auctex).

However, in this case the exportation to latex is only partially
successful.

citep:tao08:_global

Is *not* expanded.

Can this problem solved?

Regards

Uwe Brauer 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t
  2018-12-13  7:30 problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t Uwe Brauer
@ 2018-12-13  9:23 ` Eric S Fraga
  2018-12-13 10:55   ` Uwe Brauer
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2018-12-13  9:23 UTC (permalink / raw)
  To: emacs-orgmode

On Thursday, 13 Dec 2018 at 08:30, Uwe Brauer wrote:
> Hi

[...]

> ,----
> | * Test of the bibliography
> | #+BEGIN_src latex :results latex replace :exports results :eval t
> | 
> | \begin{equation}
> | \label{eq:testbib:1}
> | \int f dx =0 
> | \end{equation}
> | 
> | see
> | citep:tao08:_global
> | 
> | #+END_src
> | 
> `----

Why have the citep line within the src block?  It's not LaTeX and is in
fact org syntax.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.13-894-gf79545

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t
  2018-12-13  9:23 ` Eric S Fraga
@ 2018-12-13 10:55   ` Uwe Brauer
  2018-12-13 13:22     ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Uwe Brauer @ 2018-12-13 10:55 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

>>> "Eric" == Eric S Fraga <esflists@gmail.com> writes:

> On Thursday, 13 Dec 2018 at 08:30, Uwe Brauer wrote:
>> Hi

> [...]

>> ,----
>> | * Test of the bibliography
>> | #+BEGIN_src latex :results latex replace :exports results :eval t
>> | 
>> | \begin{equation}
>> | \label{eq:testbib:1}
>> | \int f dx =0 
>> | \end{equation}
>> | 
>> | see
>> | citep:tao08:_global
>> | 
>> | #+END_src
>> | 
>> `----

> Why have the citep line within the src block?  It's not LaTeX and is in
> fact org syntax.

That is for babel. That is I have an org file, which contains matlab and
latex for the documentation. So I want to cite a reference. There is no
problem with citep if I don't have the latex in a src block. 

However as I said the fortification is much nicer if I put latex in a
src block.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t
  2018-12-13 10:55   ` Uwe Brauer
@ 2018-12-13 13:22     ` Eric S Fraga
  2018-12-13 15:08       ` Uwe Brauer
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2018-12-13 13:22 UTC (permalink / raw)
  To: emacs-orgmode

On Thursday, 13 Dec 2018 at 11:55, Uwe Brauer wrote:
> That is for babel. That is I have an org file, which contains matlab and
> latex for the documentation. So I want to cite a reference. There is no
> problem with citep if I don't have the latex in a src block. 
>
> However as I said the fortification is much nicer if I put latex in a
> src block.

Yes but my point is that the line that has the citep: link is org syntax
and should therefore not be in the LaTeX src block.  Keep the equation
in the src block but take that line to past the end of the block.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1034-gafcb1d

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t
  2018-12-13 13:22     ` Eric S Fraga
@ 2018-12-13 15:08       ` Uwe Brauer
  2018-12-13 16:10         ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Uwe Brauer @ 2018-12-13 15:08 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

>>> "Eric" == Eric S Fraga <esflists@gmail.com> writes:

   > On Thursday, 13 Dec 2018 at 11:55, Uwe Brauer wrote:
   >> That is for babel. That is I have an org file, which contains matlab and
   >> latex for the documentation. So I want to cite a reference. There is no
   >> problem with citep if I don't have the latex in a src block. 
   >> 
   >> However as I said the fortification is much nicer if I put latex in a
   >> src block.

   > Yes but my point is that the line that has the citep: link is org syntax
   > and should therefore not be in the LaTeX src block.  Keep the equation
   > in the src block but take that line to past the end of the block.

Oops, you are right and I am wrong, thanks.

BTW I just saw  mail from Nick in which he states 

> Why don't you use <C-c C-,>? It turns a region into a source block.

In which org version. What command is bound to C-c C-,

My version seems not to have it. (Master from last July, I think).

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t
  2018-12-13 15:08       ` Uwe Brauer
@ 2018-12-13 16:10         ` Eric S Fraga
  2018-12-13 21:21           ` Uwe Brauer
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2018-12-13 16:10 UTC (permalink / raw)
  To: emacs-orgmode

On Thursday, 13 Dec 2018 at 16:08, Uwe Brauer wrote:

[...]

> BTW I just saw  mail from Nick in which he states 
>
>> Why don't you use <C-c C-,>? It turns a region into a source block.
>
> In which org version. What command is bound to C-c C-,

Not sure when it was introduced but maybe 9 months ago or so.  It's
bound to org-insert-structure-template.

> My version seems not to have it. (Master from last July, I think).

Should be there as the binding was done 8 months ago according to the
git log (39837b4b3).

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1034-gafcb1d

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t
  2018-12-13 16:10         ` Eric S Fraga
@ 2018-12-13 21:21           ` Uwe Brauer
  0 siblings, 0 replies; 7+ messages in thread
From: Uwe Brauer @ 2018-12-13 21:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

>>> "Eric" == Eric S Fraga <esflists@gmail.com> writes:

   > On Thursday, 13 Dec 2018 at 16:08, Uwe Brauer wrote:
   > [...]

   >> BTW I just saw  mail from Nick in which he states 
   >> 
   >>> Why don't you use <C-c C-,>? It turns a region into a source block.
   >> 
   >> In which org version. What command is bound to C-c C-,

   > Not sure when it was introduced but maybe 9 months ago or so.  It's
   > bound to org-insert-structure-template.

   >> My version seems not to have it. (Master from last July, I think).

   > Should be there as the binding was done 8 months ago according to the
   > git log (39837b4b3).

Ok, my version is older, so decided to upgrade. First thing I noted my
old templates are useless, the syntax has changed. I will ask about that
in a different email.

The new command is quite nice, though, thanks for providing it.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-12-13 21:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-13  7:30 problem with export of #+BEGIN_src latex :results latex replace :exports results :eval t Uwe Brauer
2018-12-13  9:23 ` Eric S Fraga
2018-12-13 10:55   ` Uwe Brauer
2018-12-13 13:22     ` Eric S Fraga
2018-12-13 15:08       ` Uwe Brauer
2018-12-13 16:10         ` Eric S Fraga
2018-12-13 21:21           ` Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).