[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG]: contradictory requirements between resolving links and noweb
From: |
gerard . vermeulen |
Subject: |
Re: [BUG]: contradictory requirements between resolving links and noweb result block |
Date: |
Sun, 04 Feb 2024 11:02:14 +0000 |
On 02.02.2024 21:12, Ihor Radchenko wrote:
gerard.vermeulen@posteo.net writes:
I want to have a kind of dynamic RESULTS: noweb block to select what
other block to put in the LaTeX preamble on LaTeX export.
I can get it working, but in this case links to the RESULTS: noweb
block
are not resolved. I found no way to get the links resolved without
breaking Noweb. See my MWE with instructions below:
May you please provide more detailed information about your MWE?
What exactly are the steps? What did you expect to happen? What
happened instead?
I have turned my MWE into two almost identical MWE's (attached,
including a diff), so that LaTeX export output shows the problem.
I start with my expectations and then I explain what contains the
LaTeX output for mwe-noweb-ok.org and mwe-links-ok.org.
* LaTeX export objectives
Noweb should work, meaning that the LaTeX output preamble should
contain (above \author) the line:
#+begin_src latex
% Should go to the LaTeX preamble above \author{}.
#+end_src
Resolving links should work, meaning that the LaTeX output should
contain (below \tableofcontents) the line
#+begin_src latex
Listing \ref{noop}, \ref{make-noweb}, and \ref{make-noweb-result}.
#+end_src
where all links have user labels.
* mwe-noweb-ok
Export of mwe-noweb-ok.org to LaTeX shows that noweb works
Noweb works, because the preamble contains:
#+begin_src latex
% Should go to the LaTeX preamble above \author{}.
#+end_src
Resolving the last link fails, because it has an org-id
#+begin_src latex
Listing \ref{noop}, \ref{make-noweb}, and \ref{orgd105392}.
#+end_src
while the caption of the linked listing has a user label.
* mwe-links-ok
Noweb fails, because the LaTeX output preamble does contain
#+begin_src latex
\usepackage{hyperref}
\author{Gerard Vermeulen}
#+end_src
without the LaTeX comment.
Resolving links works, because the LaTeX output contains
#+begin_src latex
Listing \ref{noop}, \ref{make-noweb}, and \ref{make-noweb-result}.
#+end_src
* Problem
I can find no configuration where noweb and resolving the link
to the noweb block works.
Regards -- Gerard
mwe-noweb-ok.org
Description: Binary data
mwe-links-ok.org
Description: Binary data
mwe.diff
Description: Binary data