emacs-orgmode
[Top][All Lists]

Re: Expanding how the new cite syntax is used to include cross-reference

 From: John Kitchin Subject: Re: Expanding how the new cite syntax is used to include cross-references - thoughts? Date: Wed, 11 Aug 2021 09:43:55 -0400 User-agent: mu4e 1.6.0; emacs 28.0.50

"Bruce D'Arcus" <bdarcus@gmail.com> writes:

> On Wed, Aug 11, 2021 at 7:13 AM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
>> Is there a workaround for this somehow, or an alternative that gets
>> the same thing in the end?
>
> Like, if not typing the link, type the target?
>
> From this example from org-mode manual, the "fig" in the name keyword
> could provide that type?

The "fig" part is only useful imo, for prefix text, eg. If I write "see
\cref{fig:SED-HR4049}" in text, it will get exported in LaTeX as
something like "see Figure 1", where the cleveref package inferred that
the Figure prefix should go in front of the number.

Otherwise, "see \ref{fig:SED-HR4049}" would just export to "see 1",
which is not what you want to see. You can manually add prefix text of
course, like "see Figure \ref{fig:SED-HR4049}".

However, if I am in a long document (like a book), I may want to refer
to a page number, e.g. "See pg. \pageref{fig:SED-HR4049}" to indicate to
the reader where to find some information. In this case the fig prefix
of the label is not important.

With sections, you may want \ref{sec-intro} to get the number of the
section, or \nameref{sec-intro} to get the name of the section. Both
cases use the same label.

>
> #+CAPTION: This is the caption for the next figure link (or table)
> #+NAME:   fig:SED-HR4049
>
> [[./img/a.jpg]]
>
> Or some other metadata on the target?

I don't think metadata on the target helps with the cases described
above, you can reference a label in different ways at different times to
get different meanings.

>
> Bruce
>
> https://orgmode.org/manual/Images.html

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
Pronouns: he/him/his