* Stop export on bad link?
@ 2014-07-26 20:15 Jacob Gerlach
2014-07-27 11:27 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Jacob Gerlach @ 2014-07-26 20:15 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
Is it possible to configure the exporter to stop and throw an error for a
bad link?
I found this old thread
<http://comments.gmane.org/gmane.emacs.orgmode/55912> with a patch to make
the format configurable, but I'd rather receive an explicit warning.
Thanks,
Jake
[-- Attachment #2: Type: text/html, Size: 366 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Stop export on bad link?
2014-07-26 20:15 Stop export on bad link? Jacob Gerlach
@ 2014-07-27 11:27 ` Bastien
2014-08-20 17:40 ` Jacob Gerlach
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2014-07-27 11:27 UTC (permalink / raw)
To: Jacob Gerlach; +Cc: emacs-orgmode
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?
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Stop export on bad link?
2014-07-27 11:27 ` Bastien
@ 2014-08-20 17:40 ` Jacob Gerlach
0 siblings, 0 replies; 3+ messages in thread
From: Jacob Gerlach @ 2014-08-20 17:40 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-08-20 17:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-26 20:15 Stop export on bad link? Jacob Gerlach
2014-07-27 11:27 ` Bastien
2014-08-20 17:40 ` Jacob Gerlach
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).