Re: [O] ox-latex: Export ignores org-latex-classes from 4th level on

2016-11-06 Thread Nicolas Goaziou
Hello, Christian Heinrich writes: > the ox-latex file uses org-latex-classes to help, among other things, > with exporting headlines to the right commands, such as \section, > \subsection etc. > > Unfortunately, not all headlines get exported correctly; the default > "article" class, as defined

[O] ox-latex: Export ignores org-latex-classes from 4th level on

2016-11-06 Thread Christian Heinrich
Hello, the ox-latex file uses org-latex-classes to help, among other things, with exporting headlines to the right commands, such as \section, \subsection etc. Unfortunately, not all headlines get exported correctly; the default "article" class, as defined in ox-latex.el (see org-latex-classes th

Re: [O] ox-latex doesn't handle doi: links right

2016-03-19 Thread Eric S Fraga
On Thursday, 17 Mar 2016 at 07:47, Vladimir Alexiev wrote: > A link like doi:10.1109/ICMEW.2015.7169818 is resolved in org to > http://dx.doi.org/10.1109/ICMEW.2015.7169818. > (I mean that if I click to the link, I go to that URL) > > However, ox-latex makes merely this: >\url{10.1109/ICMEW.20

[O] ox-latex doesn't handle doi: links right

2016-03-18 Thread Vladimir Alexiev
A link like doi:10.1109/ICMEW.2015.7169818 is resolved in org to http://dx.doi.org/10.1109/ICMEW.2015.7169818. (I mean that if I click to the link, I go to that URL) However, ox-latex makes merely this: \url{10.1109/ICMEW.2015.7169818} which Acrobat tries to resolve as a local file. Instead,

Re: [O] ox-latex

2015-12-04 Thread John Hendy
On Thu, Dec 3, 2015 at 3:23 AM, Raimund wrote: > Hi, > > I'm a bloody beginner on org-mode so I still am searching my way through the > oceans of informations about getting along with org-mode. > > At the moment I am struggling with using latex-export and setting up (a) > latex-class(es). > > I fo

Re: [O] ox-latex

2015-12-04 Thread John Hendy
On Thu, Dec 3, 2015 at 10:36 AM, Thomas S. Dye wrote: > Aloha Raimund, > > Raimund writes: > >> Hi, >> >> I'm a bloody beginner on org-mode so I still am searching my way through >> the oceans of informations about getting along with org-mode. >> >> At the moment I am struggling with using latex-

Re: [O] ox-latex

2015-12-03 Thread Thomas S . Dye
Aloha Raimund, Raimund writes: > Hi, > > I'm a bloody beginner on org-mode so I still am searching my way through > the oceans of informations about getting along with org-mode. > > At the moment I am struggling with using latex-export and setting up (a) > latex-class(es). > > I found some gre

Re: [O] ox-latex

2015-12-03 Thread Rasmus
Raimund writes: > Hi, > > I'm a bloody beginner on org-mode so I still am searching my way > through the oceans of informations about getting along with org-mode. > > At the moment I am struggling with using latex-export and setting up > (a) latex-class(es). > > I found some great instructions on

[O] ox-latex

2015-12-03 Thread Raimund
Hi, I'm a bloody beginner on org-mode so I still am searching my way through the oceans of informations about getting along with org-mode. At the moment I am struggling with using latex-export and setting up (a) latex-class(es). I found some great instructions on worg: Latex Export vor org-

Re: [O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Zack Piper
On Fri, Aug 07, 2015 at 03:22:32PM +0200, Rasmus wrote: > Zack Piper writes: > > > Apparently ox-latex doesn't add `\newminted` to languages that I wish > > to use. > > > > This is required to use: > > > > \begin{common-lispcode} > > (format t "test") > > \end{common-lispcode} > > > >

Re: [O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Nicolas Goaziou
Hello, Zack Piper writes: > Apparently ox-latex doesn't add `\newminted` to languages that I wish > to use. > > This is required to use: > > \begin{common-lispcode} > (format t "test") > \end{common-lispcode} > > That being the `${LANG}code` environment, which Org-mode uses for my >

Re: [O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Rasmus
Zack Piper writes: > Apparently ox-latex doesn't add `\newminted` to languages that I wish > to use. > > This is required to use: > > \begin{common-lispcode} > (format t "test") > \end{common-lispcode} > > That being the `${LANG}code` environment, which Org-mode uses for my > entire d

[O] ox-latex doesn't export with `\newminted`.

2015-08-07 Thread Zack Piper
Apparently ox-latex doesn't add `\newminted` to languages that I wish to use. This is required to use: \begin{common-lispcode} (format t "test") \end{common-lispcode} That being the `${LANG}code` environment, which Org-mode uses for my entire document. https://github.com/gpoore/mint

Re: [O] ox-latex: default packages cleaning

2015-07-29 Thread Rasmus
Suvayu Ali writes: >> >> +(defun org-latex-guess-polyglossia-language (header info) >> >> + "Set the Polyglossia language according to the LANGUAGE keyword. >> > >> > I'm in two-minds about this. On the one had it is a nice thing, but on >> > the other hand, it prevents the more fine grained co

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Rasmus
Hi, Sebastien Vauban writes: >> (I'm hesitant to allow arbitrary scripts). > > I agree. Just stick to the basic need, which is to be able to easily > change of LaTeX engine. I'd however also like to allow some flags, e.g. -shell-escape/write18 for minted. I cannot think of other useful flags.

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Sebastien Vauban
Rasmus writes: > Sebastien Vauban writes: > >> FWIW, it seems that people who played with different LaTeX engines used >> the "LATEX_CMD" property, as adviced on Worg [1]. Doesn't matter if we >> change that, but just a reminder of some already common usage. > > I didn't know that worg page. Ju

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Rasmus
Sebastien Vauban writes: > FWIW, it seems that people who played with different LaTeX engines used > the "LATEX_CMD" property, as adviced on Worg [1]. Doesn't matter if we > change that, but just a reminder of some already common usage. I didn't know that worg page. Just to understand, you are

Re: [O] ox-latex: default packages cleaning

2015-07-27 Thread Sebastien Vauban
Hello, Rasmus writes: >> I have a few other questions: >> - how does one change the variant when doing a subtree export? By >> setting EXPORT_LATEX_VARIANT? > > It seems to work at least to the point that the right engine is written to > the file: > > #+LATEX_VARIANT: xelatex > * pdflatex > :P

Re: [O] [ox-latex] setting `org-latex-classes'

2015-07-21 Thread Rasmus
Seb writes: > On Tue, 21 Jul 2015 13:37:39 -0400, > Nick Dokos wrote: > > [...] > >> Use eval-after-load: > >> (eval-after-load "ox-latex" (add-to-list 'org-latex-classes )) > > Thanks, I tried that but I get a "Symbol's value as variable is void: > org-latex-classes" when starting Emacs. (

Re: [O] [ox-latex] setting `org-latex-classes'

2015-07-21 Thread Seb
On Tue, 21 Jul 2015 13:37:39 -0400, Nick Dokos wrote: [...] > Use eval-after-load: > (eval-after-load "ox-latex" (add-to-list 'org-latex-classes )) Thanks, I tried that but I get a "Symbol's value as variable is void: org-latex-classes" when starting Emacs. -- Seb

Re: [O] [ox-latex] setting `org-latex-classes'

2015-07-21 Thread Nick Dokos
Seb writes: > Does one have to `require' ox-latex in ~/.emacs just to set > `org-latex-classes'? I can't seem to find the proper hook where I can > add to this alist without loading ox-latex. > Use eval-after-load: (eval-after-load "ox-latex" (add-to-list 'org-latex-classes )) Nick

[O] [ox-latex] setting `org-latex-classes'

2015-07-21 Thread Seb
Hello, Does one have to `require' ox-latex in ~/.emacs just to set `org-latex-classes'? I can't seem to find the proper hook where I can add to this alist without loading ox-latex. Cheers, -- Seb

Re: [O] ox-latex: default packages cleaning

2015-07-16 Thread Rasmus
Suvayu Ali writes: > The polyglossia bits work well. > The file local variable prompt for every export is quite annoying > though. Same goes for the exported file, opening it brings up the same > prompt again. I guess it is a one time thing to mark that variable as > safe, then it should be go

Re: [O] ox-latex: default packages cleaning

2015-07-16 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 08:35:28PM +0200, Rasmus wrote: > Suvayu Ali writes: > > >> +(defun org-latex-guess-polyglossia-language (header info) > >> + "Set the Polyglossia language according to the LANGUAGE keyword. > > > > I'm in two-minds about this. On the one had it is a nice thing, but on >

Re: [O] ox-latex: default packages cleaning

2015-07-15 Thread Rasmus
Marcin Borkowski writes: >> I would also suggest removing inputenc. At the moment, it is loaded >> with the AUTO option. AFAIK, this is redundant since most recent >> (meaning for quite a few years) TeX engines already use the encoding of >> the file if nothing is specified. > > Can you elabora

Re: [O] ox-latex: default packages cleaning

2015-07-14 Thread Marcin Borkowski
On 2015-07-07, at 21:35, Suvayu Ali wrote: > I would like to second microtype. In fact as far as I know, now a days > it is recommended to load that for almost all documents with significant > text on TeX.SX. As I wrote a minute ago, I would rather not add microtype, though it's a minor thing,

Re: [O] ox-latex: default packages cleaning

2015-07-14 Thread Marcin Borkowski
On 2015-07-07, at 16:53, Rasmus wrote: > Hi, Hi, and sorry for my delay – I have a huge email backlog... > We could do some cleaning of org-default-package-alist before Org 8.3. Yes, yes, yes! > * tolerance > > Why is "\\tolerance=1000" part of org-default-package-alist? Is this > value go

Re: [O] ox-latex: default packages cleaning

2015-07-13 Thread Rasmus
Hi, Rasmus writes: > * tolerance > * marvosym¹ > * Wasysym² Pushed. > * Fixltx2e Will push after 8.3 is released. Rasmus -- Dobbelt-A

Re: [O] ox-latex: default packages cleaning

2015-07-11 Thread Robert Klein
Hi Rasmus, On Sat, 11 Jul 2015 12:48:06 +0200 Rasmus wrote: > Hi Robert, > > Robert Klein writes: > > >> * Fixltx2e > >> > >> This packages is depreciated with TL2015 cf. LaTeX News 22. We can > >> use \RequirePackage[current]{latexrelease} but there's no point in > >> that AFAIK latexr

Re: [O] ox-latex: default packages cleaning

2015-07-11 Thread Rasmus
Hi Robert, Robert Klein writes: >> * Fixltx2e >> >> This packages is depreciated with TL2015 cf. LaTeX News 22. We can >> use \RequirePackage[current]{latexrelease} but there's no point in >> that AFAIK latexrelease only useful for backwards compatibility. > > Leaving this out probably doe

Re: [O] ox-latex: default packages cleaning

2015-07-10 Thread Robert Klein
Hello > * Fixltx2e > > This packages is depreciated with TL2015 cf. LaTeX News 22. We can > use \RequirePackage[current]{latexrelease} but there's no point in > that AFAIK latexrelease only useful for backwards compatibility. Leaving this out probably doesn't break texing with older texlive

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: >> +(defun org-latex-guess-polyglossia-language (header info) >> + "Set the Polyglossia language according to the LANGUAGE keyword. > > I'm in two-minds about this. On the one had it is a nice thing, but on > the other hand, it prevents the more fine grained control offered b

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Hi, Suvayu Ali writes: >> +(defun org-latex-guess-polyglossia-language (header info) >> + "Set the Polyglossia language according to the LANGUAGE keyword. > > I'm in two-minds about this. On the one had it is a nice thing, but on > the other hand, it prevents the more fine grained control offe

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
Hi Rasmus, On Wed, Jul 08, 2015 at 02:53:46PM +0200, Rasmus wrote: > > +(defun org-latex-guess-polyglossia-language (header info) > + "Set the Polyglossia language according to the LANGUAGE keyword. I'm in two-minds about this. On the one had it is a nice thing, but on the other hand, it preven

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 04:26:56PM +0200, Rasmus wrote: > > I'm trying to think of an elegant way to map from a tex-variant to a > command. Perhaps change the variant names to the latex variants and input > that. I think that would be a good way to go. -- Suvayu Open source is the future. It

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: > Indeed, and it works very nicely! Let me know when you find bugs. I'm trying to think of an elegant way to map from a tex-variant to a command. Perhaps change the variant names to the latex variants and input that. E.g. if using plain commands, "pdflatex" is changed to re

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 03:53:32PM +0200, Rasmus wrote: > Suvayu Ali writes: > > >> From 54bcf8f1ae26c91fa856b64071dca65d3f31e1f2 Mon Sep 17 00:00:00 2001 > >> From: Rasmus > >> Date: Wed, 8 Jul 2015 14:44:56 +0200 > >> Subject: [PATCH 9/9] ox-latex: Support TeX variants > > > > This one fails t

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: >> From 54bcf8f1ae26c91fa856b64071dca65d3f31e1f2 Mon Sep 17 00:00:00 2001 >> From: Rasmus >> Date: Wed, 8 Jul 2015 14:44:56 +0200 >> Subject: [PATCH 9/9] ox-latex: Support TeX variants > > This one fails to apply for me. I'm on You probably need the other patches posted in

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 02:54:41PM +0200, Rasmus wrote: > Suvayu Ali writes: > > > I would also suggest removing inputenc. At the moment, it is loaded > > with the AUTO option. AFAIK, this is redundant since most recent > > (meaning for quite a few years) TeX engines already use the encoding of

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Suvayu Ali
On Wed, Jul 08, 2015 at 02:53:46PM +0200, Rasmus wrote: > Suvayu Ali writes: > > > We could also take this opportunity to provide users an easy way to > > switch between TeX engines. > > These two patches goes some of the way towards what you want. > org-latex-pdf-process would also have to patc

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: > I would also suggest removing inputenc. At the moment, it is loaded > with the AUTO option. AFAIK, this is redundant since most recent > (meaning for quite a few years) TeX engines already use the encoding of > the file if nothing is specified. A colleague of mine were mis

Re: [O] ox-latex: default packages cleaning

2015-07-08 Thread Rasmus
Suvayu Ali writes: > We could also take this opportunity to provide users an easy way to > switch between TeX engines. These two patches goes some of the way towards what you want. org-latex-pdf-process would also have to patched as well, though. Test document: #+title: test xetex #+

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Rasmus
Suvayu Ali writes: > Yes, but polyglossia is recommended. In the interest of minimal work on > the part of Org, this could just be ignored. I don't think we add babel > anyway, or do we? I thought we did, but we don't. Anyway, babel works across different tex backends which is nice feature.

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Suvayu Ali
On Tue, Jul 07, 2015 at 10:05:06PM +0200, Rasmus wrote: > Suvayu Ali writes: > > > \usepackage{polyglossia} % instead of babel > > You can use babel with xelatex. Yes, but polyglossia is recommended. In the interest of minimal work on the part of Org, this could just be ignored. I don't th

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Rasmus
Suvayu Ali writes: > I would like to second microtype. In fact as far as I know, now a days > it is recommended to load that for almost all documents with significant > text on TeX.SX. It's easy enough to add and we should keep the default minimal. Though microtype is certainly a package I wou

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Suvayu Ali
Hi Rasmus, On Tue, Jul 07, 2015 at 04:53:35PM +0200, Rasmus wrote: > > If it's a means to archive "high-quality" paragraphs, maybe microtype is > probably the 'proper' fix... I would like to second microtype. In fact as far as I know, now a days it is recommended to load that for almost all doc

Re: [O] ox-latex: default packages cleaning

2015-07-07 Thread Eric S Fraga
On Tuesday, 7 Jul 2015 at 16:53, Rasmus wrote: > Hi, > > We could do some cleaning of org-default-package-alist before Org 8.3. Rasmus, I'm happy with all of your suggested removals. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1260-gcedef7

[O] ox-latex: default packages cleaning

2015-07-07 Thread Rasmus
Hi, We could do some cleaning of org-default-package-alist before Org 8.3. * tolerance Why is "\\tolerance=1000" part of org-default-package-alist? Is this value good for all languages? If we keep it, it should be configurable. But people who explicitly wants this behavior can probably add it

Re: [O] ox-latex: includegraphics should "quote" filenames

2015-05-29 Thread Vaidheeswaran C
On Friday 29 May 2015 03:39 PM, Rasmus wrote: > Okay, I'm adding grffile as it also support spaces in filenames. Now this > example works: Thanks. Works for me.

Re: [O] ox-latex: includegraphics should "quote" filenames

2015-05-29 Thread Rasmus
Rasmus writes: > Vaidheeswaran C writes: > >> ox-latex export must work out of the box (when it can)! Currently >> inline images (that have dots in their names) are not exporting >> correctly. >> >> If someone fixes this bug (one way or the other), I will be most >> grateful! > > Actually, does

Re: [O] ox-latex: includegraphics should "quote" filenames

2015-05-29 Thread Rasmus
Vaidheeswaran C writes: > ox-latex export must work out of the box (when it can)! Currently > inline images (that have dots in their names) are not exporting > correctly. > > If someone fixes this bug (one way or the other), I will be most > grateful! Actually, does it work if you add grffile t

Re: [O] ox-latex: includegraphics should "quote" filenames

2015-05-29 Thread Rasmus
Vaidheeswaran C writes: > ox-latex export must work out of the box (when it can)! Currently > inline images (that have dots in their names) are not exporting > correctly. No it musen't. There's explicit cases where you have to add configuration. The most horrendous example is a local toc. >

Re: [O] ox-latex: includegraphics should "quote" filenames

2015-05-29 Thread Vaidheeswaran C
On Tuesday 26 May 2015 02:32 PM, Andreas Leha wrote: > Hi Vaidheeswaran, > > Vaidheeswaran C writes: >> > In: >> > [[./emacs-24.5.1-startup-screen-annotated.png]] >> > >> > Buggy Out: >> > >> > \includegraphics[width=.9\linewidth]{./emacs-24.5.1-startup-screen-annotated.png} >> > >> > Desired

Re: [O] ox-latex: includegraphics should "quote" filenames

2015-05-26 Thread Rasmus
Andreas Leha writes: > I have not experienced any problem with that package and it appears to > handle more cases (especially spaces) than 'quoting'. So, it might be > an alternative to use grffile by default? Even with the downside of > more dependencies. But maybe more experienced LaTeX user

Re: [O] ox-latex: includegraphics should "quote" filenames

2015-05-26 Thread Andreas Leha
Hi Vaidheeswaran, Vaidheeswaran C writes: > In: > [[./emacs-24.5.1-startup-screen-annotated.png]] > > Buggy Out: > > \includegraphics[width=.9\linewidth]{./emacs-24.5.1-startup-screen-annotated.png} > > Desired: Out: > > \includegraphics[width=.9\linewidth]{{./emacs-24.5.1-startup-screen-anno

[O] ox-latex: includegraphics should "quote" filenames

2015-05-25 Thread Vaidheeswaran C
In: [[./emacs-24.5.1-startup-screen-annotated.png]] Buggy Out: \includegraphics[width=.9\linewidth]{./emacs-24.5.1-startup-screen-annotated.png} Desired: Out: \includegraphics[width=.9\linewidth]{{./emacs-24.5.1-startup-screen-annotated}.png} Source: http://tex.stackexchange.com/question

Re: [O] ox-latex does not recognize :align setting

2015-05-02 Thread Nicolas Goaziou
Hello, Vicente writes: > #+ATTR_LATEX: :mode table :align |p{3cm}|p{1cm}|p{1cm}|p{1cm}|p{1cm}| This line has to appear just before the table. Therefore, the line below prevents the attributes from being associated to the table. > #+LATEX: {\tiny Note that there is a :font parameter: #+ATT

[O] ox-latex does not recognize :align setting

2015-05-02 Thread Vicente
I can't get ox-beamer to recognize the settings from the :align, while exporting a table to latex. In the tex file it shows as: \begin{tabular}{l} Using Emacs 24.4.1 (Org mode 8.2.10) on Fedora 21 my script follows, including headers #+TITLE: export latex embedded table #+AUTHOR: VE #+EMAIL:

Re: [O] ox-latex export code block results without \texttt

2015-05-01 Thread Joon Ro
I'm sorry, :results latex solved my problem. :)From: joon...@outlook.com To: emacs-orgmode@gnu.org Date: Fri, 1 May 2015 17:34:34 -0500 Subject: [O] ox-latex export code block results without \texttt Hi, When I export a org file with an inline code like "Two plus two equals src_pyt

[O] ox-latex export code block results without \texttt

2015-05-01 Thread Joon Ro
Hi, When I export a org file with an inline code like "Two plus two equals src_python{return(2+2)}" to latex, it is exported as "Two plus two equals \texttt{4}". Is there any way to suppress \texttt and have it exported as a common text? Usually I would want the verbatim font, but in this partic

Re: [O] ox-latex and small caps links

2015-04-22 Thread Rasmus
Hi, David Dynerman writes: > I've been using links to render text in small caps when exporting to > LaTeX and HTML, e.g. > > [[latex:textsc][this is in small caps]] > > This worked fine in 8.2.10, but causes an error in latest. When I try to > export the file to LaTeX, the export fails with: > >

Re: [O] ox-latex and small caps links

2015-04-21 Thread Thomas S. Dye
Aloha David, David Dynerman writes: >> ,- >> | Code within @@latex:some code@@ a paragraph. >> `- > > This works great! Thanks Tom! Good news. > It might be nice to document this somehwere, to make the tran

Re: [O] ox-latex and small caps links

2015-04-21 Thread David Dynerman
> ,- > | Code within @@latex:some code@@ a paragraph. > `- This works great! Thanks Tom! It might be nice to document this somehwere, to make the transition a little easier when 8.3 rolls out and the old [[lat

Re: [O] ox-latex and small caps links

2015-04-21 Thread Thomas S. Dye
Aloha David, David Dynerman writes: > This > latex: trick in a link was the standard way to bracket text with any > latex command, right? The latex: link trick was invented for pre Org mode 8. AFAIK, it should still work, but I haven't been paying full attention. However, in the meant

[O] ox-latex and small caps links

2015-04-21 Thread David Dynerman
Hi there, I've been using links to render text in small caps when exporting to LaTeX and HTML, e.g. [[latex:textsc][this is in small caps]] This worked fine in 8.2.10, but causes an error in latest. When I try to export the file to LaTeX, the export fails with: Unable to resolve link latex:text

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-24 Thread Rasmus
Nicolas Goaziou writes: > Rasmus writes: > >> AFAIK, we use float actively at one place, namely ";; Case 1. No source >> fontification". Of org-latex-src-block. In that particular case I guess >> we could also use capt-of, actually. > > It's worth trying. Do you want to provide a patch? Yeah

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-24 Thread Nicolas Goaziou
Rasmus writes: > AFAIK, we use float actively at one place, namely ";; Case 1. No source > fontification". Of org-latex-src-block. In that particular case I guess > we could also use capt-of, actually. It's worth trying. Do you want to provide a patch? > At some point I wanted to get rid of

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Rasmus
Nicolas Goaziou writes: > We could use captof with a caption and :float nil. You would also be able to do this with the awful float-package using the H :placement, though I guess it's still a float (so I don't know if it would work in e.g. minipage). AFAIK, we use float actively at one place,

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Rasmus
Nicolas Goaziou writes: >> Do you consider it explicit when no environment is specified? I would >> /only/ use capt-of when :environment is nil. > > I think you are confusing :environment and :float. :environment cannot > be nil. I think you are right. > We could use captof with a caption and

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Nicolas Goaziou
Rasmus writes: > Do you consider it explicit when no environment is specified? I would > /only/ use capt-of when :environment is nil. I think you are confusing :environment and :float. :environment cannot be nil. ‘:environment’ Environment used for the table. It can be set to any LaT

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Rasmus
Nicolas Goaziou writes: > Again, this is the user's problem. But it could be reasonable to use > "captionof" when no environment is explicitly required. Do you consider it explicit when no environment is specified? I would /only/ use capt-of when :environment is nil. > IOW "ox-latex" could fa

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Nicolas Goaziou
Hello, Rasmus writes: > Consider this example: > > #+ATTR_LATEX: :environment nil :center nil :caption cap > | t | > > Exporting to latex, it produces: > > \begin{table}[htb] > cap > \begin{tabular}{l} > \toprule > t\\ > \bottomrule > \end{tabular} > \end{table}

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Rasmus
Nicolas Goaziou writes: > This is a feature. A caption implies, at least, a "table" environment. Except when it doesn't¹ ... And in this case I told Org that it doesn't by specifying :environment nil. :environment should be stronger than :caption. >> The real usecase is that I want to use \c

Re: [O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Nicolas Goaziou
Rasmus writes: > Nicolas Goaziou writes: > >> This is a feature. A caption implies, at least, a "table" environment. > > Except when it doesn't¹ ... That's your problem since Org didn't request the minipage in the first place. You don't want a caption but still provide one. > And in this case

[O] [ox-latex, bug?] :caption forces environment

2015-02-19 Thread Rasmus
Hi, Consider this example: #+ATTR_LATEX: :environment nil :center nil :caption cap | t | Exporting to latex, it produces: \begin{table}[htb] cap \begin{tabular}{l} \toprule t\\ \bottomrule \end{tabular} \end{table} I'd expect: cap \begin{tabular}{l}

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-24 Thread Nicolas Goaziou
Eric S Fraga writes: > Not sure whether any reference will be definitive as there will always > be those that argue when it comes to style. However, a web search for > "typesetting captions for tables and figures" gives quite a few results, > the first of which is interesting: > > https://www.e-

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-24 Thread Eric S Fraga
On Friday, 24 Oct 2014 at 11:28, Nicolas Goaziou wrote: > Eric S Fraga writes: > >> The old behaviour was not consistent in the sense of captions for >> different objects being placed differently but the behaviour was >> "consistent" with what is recognised as best practice in typesetting: >> capt

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-24 Thread Rasmus
Nicolas Goaziou writes: > Eric S Fraga writes: > >> The old behaviour was not consistent in the sense of captions for >> different objects being placed differently but the behaviour was >> "consistent" with what is recognised as best practice in typesetting: >> captions below figures and caption

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-24 Thread Nicolas Goaziou
Eric S Fraga writes: > The old behaviour was not consistent in the sense of captions for > different objects being placed differently but the behaviour was > "consistent" with what is recognised as best practice in typesetting: > captions below figures and captions above tables. However, I agree

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-24 Thread Eric S Fraga
On Thursday, 23 Oct 2014 at 23:08, Nicolas Goaziou wrote: > Hello, > > Eric S Fraga writes: > >> I don't actually understand you. > > `org-latex-table-caption-above' is now an alias for > `org-latex-caption-above', so the default values ought to be the same. Ah, I see. > IIUC, the old behaviour

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-23 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > I don't actually understand you. `org-latex-table-caption-above' is now an alias for `org-latex-caption-above', so the default values ought to be the same. > All I know is that I had nothing set explicitly anywhere to do with > captions and, all of a sudden, the b

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-22 Thread Eric S Fraga
On Tuesday, 21 Oct 2014 at 18:47, Nicolas Goaziou wrote: > Hello, > > Eric S Fraga writes: > >> However, I think it would make sense to make '(table) (at least) the >> default for captions above to have some form of backward compatibility? >> The change caught me by surprise... > > If we change `o

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-21 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > However, I think it would make sense to make '(table) (at least) the > default for captions above to have some form of backward compatibility? > The change caught me by surprise... If we change `org-latex-caption-above', then it will no longer match `org-latex-tabl

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-21 Thread Eric S Fraga
On Friday, 17 Oct 2014 at 22:08, Nicolas Goaziou wrote: > Nicolas Goaziou writes: > >> If we want to preserve backward-compatibility, t, nil and a list of >> types (e.g. '(table src-block)) should suffice. No need for an alist. >> >> Still on my ToDo list but I'm not there yet. Feel free to beat m

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-17 Thread Nicolas Goaziou
Nicolas Goaziou writes: > If we want to preserve backward-compatibility, t, nil and a list of > types (e.g. '(table src-block)) should suffice. No need for an alist. > > Still on my ToDo list but I'm not there yet. Feel free to beat me to it > if you want. Done. Feedback welcome.

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-13 Thread Nicolas Goaziou
Hello, Aaron Ecay writes: > There’s at least some notion in the Latex community that captions atop > tables but below figures is sensible style: > . > > In that light, does it make sense to instead

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-12 Thread Aaron Ecay
Hi Nicolas, 2014ko urriak 5an, Nicolas Goaziou-ek idatzi zuen: > > Hello, > > James Harkins writes: > >> Something like that would do it, I think. I hesitate about breaking >> backward compatibility, but at the same time, I'm hard-pressed to >> imagine why one would want captions to be differe

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-05 Thread Nicolas Goaziou
Hello, James Harkins writes: > Something like that would do it, I think. I hesitate about breaking > backward compatibility, but at the same time, I'm hard-pressed to > imagine why one would want captions to be differently placed in the > same document. This wouldn't break compatibility. We wou

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-03 Thread James Harkins
On Thu, 02 Oct 2014 18:54:20 +0200 Nicolas Goaziou wrote: > You mean moving `org-latex-table-caption-above' to > `org-latex-caption-above' and making sure every block complies to the > variable? Sorry for the late reply. I wasn't feeling quite well yesterday. Something like that would do it, I

Re: [O] [ox-latex] How to force ALL captions below their referents?

2014-10-02 Thread Nicolas Goaziou
Hello, James Harkins writes: > It seems somebody recognized a while ago that this was a problem, and > introduced org-latex-table-caption-above. But this applies only to > tables, not to "figure" special blocks, nor to source code blocks, and > probably some other cases that I can't think of. We

[O] [ox-latex] How to force ALL captions below their referents?

2014-10-02 Thread James Harkins
I'm struggling a bit with caption placement in LaTeX export. In the document I'm working on now, I have: - Image links, exported as floating figures (by inclusion of a caption). ox-latex places the caption at the end of the figure environment, so the caption appears below the image. #+name:

[O] ox-latex and synctex

2014-02-24 Thread Ken Mankoff
I'm writing about a recent thread combining syntex with ox-latex. Four posts on this are here: https://lists.gnu.org/archive/html/emacs-orgmode/2013-10/msg00905.html including an ox-synctex.el that implements PDF -> Org syncing. I have bi-directional synctex working with LaTeX source, and wo

[O] ox-latex: need win-cygwin path translation

2014-02-21 Thread mirko
Hi, This is on Windows 7 and Cygwin64 with TeXLive When exporting to latex and pdf, the compilation fails because the path passed to pdflatex is the Windows one. I installed and activated cygwin-mount and setup-cygwin packages, but that did not help. Before I dig in (I did find the pdf export c

Re: [O] ox-latex: Is \uline really right for underlining?

2013-12-11 Thread Aaron Ecay
Hi James, 2013ko abenudak 12an, James Harkins-ek idatzi zuen: > What's the best way to handle that? I really want the "hidelinks" > option for hyperref to be used globally. But, customizing > org-latex-default-packages-alist means that I will miss updates to > that variable in future org versions

Re: [O] ox-latex: Is \uline really right for underlining?

2013-12-11 Thread James Harkins
On Thu, Dec 12, 2013 at 10:40 AM, James Harkins wrote: > On Wednesday, December 11, 2013 10:47:42 PM HKT, Nicolas Goaziou wrote: >>> >>> Is "ulem" one of the LaTeX export default packages? >> >> Yes, it is. See `org-latex-default-packages-alist'. > > Ah... I must have customized that at some point

Re: [O] ox-latex: Is \uline really right for underlining?

2013-12-11 Thread James Harkins
On Wednesday, December 11, 2013 10:47:42 PM HKT, Nicolas Goaziou wrote: Is "ulem" one of the LaTeX export default packages? Yes, it is. See `org-latex-default-packages-alist'. Ah... I must have customized that at some point. Drifting off the topic slightly, to a related question. I have a fe

Re: [O] ox-latex: Is \uline really right for underlining?

2013-12-11 Thread Nicolas Goaziou
Hello, James Harkins writes: > Is "ulem" one of the LaTeX export default packages? Yes, it is. See `org-latex-default-packages-alist'. Regards, -- Nicolas Goaziou

[O] ox-latex: Is \uline really right for underlining?

2013-12-11 Thread James Harkins
org-latex-text-markup-alist is a variable defined in `ox-latex.el'. Its value is ((bold . "\\textbf{%s}") (code . verb) (italic . "\\emph{%s}") (strike-through . "\\sout{%s}") (underline . "\\uline{%s}") (verbatim . protectedtexttt)) underline . "\\uline{%s}" -- According to [1], ~~ \uline U

Re: [O] [ox-latex] Bad default value for image width?

2013-04-11 Thread Bastien
Hi, Nicolas Goaziou writes: > Rasmus writes: > >> Perhaps. I'm not convinced. > > Since I didn't introduce this feature in new exporter (it was already in > the previous one), it may be interesting to know the motivation of the > person who originally introduced it. I think it was Bastien (Cc'

Re: [O] [ox-latex] Bad default value for image width?

2013-04-10 Thread Nicolas Goaziou
Rasmus writes: > Perhaps. I'm not convinced. Since I didn't introduce this feature in new exporter (it was already in the previous one), it may be interesting to know the motivation of the person who originally introduced it. I think it was Bastien (Cc'ed). > If the float width is removed I ca

  1   2   >