[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]
On Sun, Jul 27, 2014 at 7:27 AM, Bastien <bzg@gnu.org> wrote:
> Hi Jacob,
>
> Jacob Gerlach <jacobgerlach@gmail.com> writes:
>
> > Is it possible to configure the exporter to stop and throw an error
> > for a bad link?
>
> No. But what is really a "bad link"? Is it bad because it cannot be
> exported to a specific backend?
>
By bad, I meant a link that can't be resolved (perhaps because of a typo).
Org already handles this by formatting the "bad" link with texttt in latex.
For example:
-----
* First
In [[frst]], we see the ECM.
-----
Exports to:
-----
\section{First}
\label{sec-1}
In \texttt{frst}, we see the ECM.
-----
Whereas
----
* First
In [[First]], we see the ECM.
----
exports as:
----
\section{First}
\label{sec-1}
In \ref{sec-1}, we see the ECM.
----
After further digging, I found org-latex-link-with-unknown-path-format.
Since I usually export directly to pdf, I can achieve my desired result by
customizing this variable to some undefined control sequence (i.e.
\BADLINK), in which case latex complains, but I have to hunt down the error
in the *Org PDF LaTeX Output* buffer. It would be great if the export would
just quit and move point to the offending link
>
> --
> Bastien
>
[-- Attachment #2: Type: text/html, Size: 3676 bytes --]