emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Latex export fails with link in headline
@ 2016-11-28  9:03 Scott Otterson
  2016-11-28 11:26 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Scott Otterson @ 2016-11-28  9:03 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 678 bytes --]

Latex export sometimes fails when I put a link in a headline  Usually,
links in headlines work fine but below is an example that doesn't (error
message in emacs buffer attached); If I remove the link, the export is
successful.

-- tmp.org -----------------------------------------------------------------

* Some section  [[
http://orgmode.org/manual/Column-groups.html#Column-groups][A random link]]

  - Item A
  - Item B
  - Item C

--- My setup --------------------------------------------------------------
Emacs  : GNU Emacs 25.1.1 (i686-w64-mingw32)
 of 2016-09-17
Package: Org mode version 9.0.1 (9.0.1-elpa @
c:/Users/scott/OneDrive/scotto/.emacs.d/elpa/org-20161118/)

[-- Attachment #1.2: Type: text/html, Size: 1002 bytes --]

[-- Attachment #2: OrgPDFLatexOutputBuffer.txt --]
[-- Type: text/plain, Size: 10686 bytes --]

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LC_CTYPE = "C",
	LC_NUMERIC = "C",
	LANG = "ENU"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Latexmk: This is Latexmk, John Collins, 5 Sep. 2016, version: 4.48.
Rule 'pdflatex': Rules & subrules not known to be previously run:
   pdflatex
Rule 'pdflatex': The following rules & subrules became out-of-date:
      'pdflatex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -recorder -output-directory="./"  "./tmp.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(.//./tmp.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(c:/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(c:/texlive/2016/texmf-dist/tex/latex/base/size11.clo))
(c:/texlive/2016/texmf-dist/tex/latex/base/inputenc.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/utf8.def
(c:/texlive/2016/texmf-dist/tex/latex/base/t1enc.dfu)
(c:/texlive/2016/texmf-dist/tex/latex/base/ot1enc.dfu)
(c:/texlive/2016/texmf-dist/tex/latex/base/omsenc.dfu)))
(c:/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(c:/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/grffile.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(c:/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty))
(c:/texlive/2016/texmf-dist/tex/latex/tools/longtable.sty)
(c:/texlive/2016/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(c:/texlive/2016/texmf-dist/tex/latex/graphics/rotating.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/ifthen.sty))
(c:/texlive/2016/texmf-dist/tex/generic/ulem/ulem.sty)
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def
(c:/texlive/2016/texmf-dist/tex/latex/base/ts1enc.dfu)))
(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/texlive/2016/texmf-dist/tex/latex/capt-of/capt-of.sty)
(c:/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(c:/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

(c:/texlive/2016/texmf-dist/tex/latex/hyperref/hpdftex.def
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (.//tmp.aux
) (c:/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(c:/texlive/2016/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/texlive/2016/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/grfext.sty)
(c:/texlive/2016/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(c:/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
! Illegal parameter number in definition of \GetTitleStringResult.
<to be read again> 
                   C
l.28 ...groups.html#Column-groups}{A random link}}
                                                  
? 
! Emergency stop.
<to be read again> 
                   C
l.28 ...groups.html#Column-groups}{A random link}}
                                                  
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on .//tmp.log.
'tmp.fls' and './tmp.fls' are identical (not copied) at c:\texlive\2016\texmf-dist\scripts\latexmk\latexmk.pl line 6910.
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      './tmp.aux'
      'tmp.aux'
------------
Run number 2 of rule 'pdflatex'
------------
------------
Running 'pdflatex  -recorder -output-directory="./"  "./tmp.tex"'
------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(.//./tmp.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
(c:/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(c:/texlive/2016/texmf-dist/tex/latex/base/size11.clo))
(c:/texlive/2016/texmf-dist/tex/latex/base/inputenc.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/utf8.def
(c:/texlive/2016/texmf-dist/tex/latex/base/t1enc.dfu)
(c:/texlive/2016/texmf-dist/tex/latex/base/ot1enc.dfu)
(c:/texlive/2016/texmf-dist/tex/latex/base/omsenc.dfu)))
(c:/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/t1enc.def))
(c:/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/grffile.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(c:/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty))
(c:/texlive/2016/texmf-dist/tex/latex/tools/longtable.sty)
(c:/texlive/2016/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
(c:/texlive/2016/texmf-dist/tex/latex/graphics/rotating.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/ifthen.sty))
(c:/texlive/2016/texmf-dist/tex/generic/ulem/ulem.sty)
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2016/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/2016/texmf-dist/tex/latex/base/textcomp.sty
(c:/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def
(c:/texlive/2016/texmf-dist/tex/latex/base/ts1enc.dfu)))
(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/texlive/2016/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/texlive/2016/texmf-dist/tex/latex/capt-of/capt-of.sty)
(c:/texlive/2016/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(c:/texlive/2016/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/texlive/2016/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(c:/texlive/2016/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

(c:/texlive/2016/texmf-dist/tex/latex/hyperref/hpdftex.def
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) (.//tmp.aux
) (c:/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd)
(c:/texlive/2016/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/texlive/2016/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(c:/texlive/2016/texmf-dist/tex/latex/oberdiek/grfext.sty)
(c:/texlive/2016/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(c:/texlive/2016/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2016/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(.//tmp.out) (.//tmp.out)
! Illegal parameter number in definition of \GetTitleStringResult.
<to be read again> 
                   C
l.28 ...groups.html#Column-groups}{A random link}}
                                                  
? 
! Emergency stop.
<to be read again> 
                   C
l.28 ...groups.html#Column-groups}{A random link}}
                                                  
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on .//tmp.log.
'tmp.fls' and './tmp.fls' are identical (not copied) at c:\texlive\2016\texmf-dist\scripts\latexmk\latexmk.pl line 6910.
Failure to make './tmp.pdf'
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 256
Latexmk: Errors, in force_mode: so I tried finishing targets
C:\texlive\2016\bin\win32\runscript.tlu:679: command failed with exit code 12:
perl.exe c:\texlive\2016\texmf-dist\scripts\latexmk\latexmk.pl -pdf -output-directory="./" -f "./tmp.tex"

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

* Re: Bug: Latex export fails with link in headline
  2016-11-28  9:03 Bug: Latex export fails with link in headline Scott Otterson
@ 2016-11-28 11:26 ` Nicolas Goaziou
  2016-11-29 12:57   ` Scott Otterson
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-11-28 11:26 UTC (permalink / raw)
  To: Scott Otterson; +Cc: Emacs-orgmode@gnu.org

Hello,

Scott Otterson <scotto@sharpleaf.org> writes:

> Latex export sometimes fails when I put a link in a headline  Usually,
> links in headlines work fine but below is an example that doesn't (error
> message in emacs buffer attached); If I remove the link, the export is
> successful.
>
> -- tmp.org -----------------------------------------------------------------
>
> * Some section  [[
> http://orgmode.org/manual/Column-groups.html#Column-groups][A random link]]
>
>   - Item A
>   - Item B
>   - Item C

FWIW I cannot reproduce it.

Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: Latex export fails with link in headline
  2016-11-28 11:26 ` Nicolas Goaziou
@ 2016-11-29 12:57   ` Scott Otterson
  2016-12-03 15:04     ` Scott Otterson
  0 siblings, 1 reply; 7+ messages in thread
From: Scott Otterson @ 2016-11-29 12:57 UTC (permalink / raw)
  To: Scott Otterson, Emacs-orgmode@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1265 bytes --]

Very strange.  I moved to a different Windows machine, totally reinstalled
elpa/melpa, and the tmp.org file that emailed the list still failed.  I
even copied tmp.org out of my email to be sure we're looking at the same
thing.

Could it be something like you're running Linux and I'm running Windows, or
like I'm running TexLive and you're running MikTex?  I've attached the
output of M-x report-emacs-bug so you can see my whole setup.

I've also attached a different oddly crashing org file, and the latex error
buffer I get after typing C-c C-e l o

Scott

On Mon, Nov 28, 2016 at 12:26 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Scott Otterson <scotto@sharpleaf.org> writes:
>
> > Latex export sometimes fails when I put a link in a headline  Usually,
> > links in headlines work fine but below is an example that doesn't (error
> > message in emacs buffer attached); If I remove the link, the export is
> > successful.
> >
> > -- tmp.org ------------------------------------------------------------
> -----
> >
> > * Some section  [[
> > http://orgmode.org/manual/Column-groups.html#Column-groups][A random
> link]]
> >
> >   - Item A
> >   - Item B
> >   - Item C
>
> FWIW I cannot reproduce it.
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #1.2: Type: text/html, Size: 2165 bytes --]

[-- Attachment #2: report-emacs-bug.txt.zip --]
[-- Type: application/zip, Size: 5625 bytes --]

[-- Attachment #3: will_not_compile_either.org --]
[-- Type: application/octet-stream, Size: 87 bytes --]

The lisp file below doesn't exist

This is an example:a_lisp_file_with_long_name.el

[-- Attachment #4: wnce_OrgPDFLaTexOutput.txt.zip --]
[-- Type: application/zip, Size: 1940 bytes --]

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

* Re: Bug: Latex export fails with link in headline
  2016-11-29 12:57   ` Scott Otterson
@ 2016-12-03 15:04     ` Scott Otterson
  2016-12-03 21:03       ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Scott Otterson @ 2016-12-03 15:04 UTC (permalink / raw)
  To: Scott Otterson, Emacs-orgmode@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1761 bytes --]

Hi Nicolas,

Could you please check the .tex output you got when exported my .org file
example (attached again)?  In the .tex I get (also attached), it's clear
that org-mode has forgotten to escape the '#' in the URL.  In headlink.tex,
if I replace '#' with ''\#', then latexmk can successfully make a pdf.

Do you see something different?

Thanks,

Scott

On Tue, Nov 29, 2016 at 1:57 PM, Scott Otterson <scotto@sharpleaf.org>
wrote:

> Very strange.  I moved to a different Windows machine, totally reinstalled
> elpa/melpa, and the tmp.org file that emailed the list still failed.  I
> even copied tmp.org out of my email to be sure we're looking at the same
> thing.
>
> Could it be something like you're running Linux and I'm running Windows,
> or like I'm running TexLive and you're running MikTex?  I've attached the
> output of M-x report-emacs-bug so you can see my whole setup.
>
> I've also attached a different oddly crashing org file, and the latex
> error buffer I get after typing C-c C-e l o
>
> Scott
>
> On Mon, Nov 28, 2016 at 12:26 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>> Hello,
>>
>> Scott Otterson <scotto@sharpleaf.org> writes:
>>
>> > Latex export sometimes fails when I put a link in a headline  Usually,
>> > links in headlines work fine but below is an example that doesn't (error
>> > message in emacs buffer attached); If I remove the link, the export is
>> > successful.
>> >
>> > -- tmp.org ------------------------------------------------------------
>> -----
>> >
>> > * Some section  [[
>> > http://orgmode.org/manual/Column-groups.html#Column-groups][A random
>> link]]
>> >
>> >   - Item A
>> >   - Item B
>> >   - Item C
>>
>> FWIW I cannot reproduce it.
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 3276 bytes --]

[-- Attachment #2: headlink.org --]
[-- Type: application/octet-stream, Size: 133 bytes --]

* Some section  [[http://orgmode.org/manual/Column-groups.html#Column-groups][A random link]]

  - Item A
  - Item B
  - Item C

[-- Attachment #3: headlink.tex --]
[-- Type: application/x-tex, Size: 845 bytes --]

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

* Re: Bug: Latex export fails with link in headline
  2016-12-03 15:04     ` Scott Otterson
@ 2016-12-03 21:03       ` Nicolas Goaziou
  2016-12-05  8:19         ` Scott Otterson
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-12-03 21:03 UTC (permalink / raw)
  To: Scott Otterson; +Cc: Emacs-orgmode@gnu.org

Hello,

Scott Otterson <scotto@sharpleaf.org> writes:

> Could you please check the .tex output you got when exported my .org file
> example (attached again)?  In the .tex I get (also attached), it's clear
> that org-mode has forgotten to escape the '#' in the URL.  In headlink.tex,
> if I replace '#' with ''\#', then latexmk can successfully make a pdf.
>
> Do you see something different?

I do. While I get the same .tex output, compiling the file to a pdf
doesn't crash. I also use Texlive, but on GNU/Linux.

Besides, Org mode doesn't escape anything. It calles `url-encode-url' on
the link instead.

Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: Latex export fails with link in headline
  2016-12-03 21:03       ` Nicolas Goaziou
@ 2016-12-05  8:19         ` Scott Otterson
  2016-12-06 11:44           ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Scott Otterson @ 2016-12-05  8:19 UTC (permalink / raw)
  To: Emacs-orgmode@gnu.org, Nicolas Goaziou

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

Huh, the mystery deepens.  Does TexLive really behave differently on Linux?

Anyway, I'd argue that Org should do the minimum to prevent Latex crashes.
It seems that org is aiming to be a generic document format, which can be
exported to other formats without modification.

But with the current behavior, that's not possible.  If I modify the org
doc to avoid latex crashes (escaping the '#' in the URL), then the same
document exported to html will not work; click on the html link and you'll
get a 404 error.

On Sat, Dec 3, 2016 at 10:03 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Scott Otterson <scotto@sharpleaf.org> writes:
>
> > Could you please check the .tex output you got when exported my .org file
> > example (attached again)?  In the .tex I get (also attached), it's clear
> > that org-mode has forgotten to escape the '#' in the URL.  In
> headlink.tex,
> > if I replace '#' with ''\#', then latexmk can successfully make a pdf.
> >
> > Do you see something different?
>
> I do. While I get the same .tex output, compiling the file to a pdf
> doesn't crash. I also use Texlive, but on GNU/Linux.
>
> Besides, Org mode doesn't escape anything. It calles `url-encode-url' on
> the link instead.
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 1922 bytes --]

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

* Re: Bug: Latex export fails with link in headline
  2016-12-05  8:19         ` Scott Otterson
@ 2016-12-06 11:44           ` Nicolas Goaziou
  0 siblings, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2016-12-06 11:44 UTC (permalink / raw)
  To: Scott Otterson; +Cc: Emacs-orgmode@gnu.org

Hello,

Scott Otterson <scotto@sharpleaf.org> writes:

> Huh, the mystery deepens.  Does TexLive really behave differently on Linux?
>
> Anyway, I'd argue that Org should do the minimum to prevent Latex crashes.
> It seems that org is aiming to be a generic document format, which can be
> exported to other formats without modification.
>
> But with the current behavior, that's not possible.  If I modify the org
> doc to avoid latex crashes (escaping the '#' in the URL),

I don't see why "#" should be escaped in the URL. It seems legal, see
<http://latex-community.org/forum/viewtopic.php?t=16796>.

Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2016-12-06 11:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-28  9:03 Bug: Latex export fails with link in headline Scott Otterson
2016-11-28 11:26 ` Nicolas Goaziou
2016-11-29 12:57   ` Scott Otterson
2016-12-03 15:04     ` Scott Otterson
2016-12-03 21:03       ` Nicolas Goaziou
2016-12-05  8:19         ` Scott Otterson
2016-12-06 11:44           ` Nicolas Goaziou

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).