-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org-reader: Parse image and table label #2999
Comments
Closing in favor of #2496 |
Org-mode
Translates to latex: As seen in fig. \url{fig:1} I would expect As seen in fig. \ref{fig:1} Is it possible to fix this in the org-reader? |
Unfortunately this is not a simple change. It requires, among other things, changes to pandoc's internal document model, which is always a lot of work. See also #1299. |
I suppose the org reader could keep an internal count of +++ Albert Krewinkel [Oct 05 16 11:12 ]:
|
I'm probably being dense here again, but I don't see how this would work. From a quick grep it seems to me that the LaTeX writer won't output |
I guess John means, that the org-reader could parse But this approach fails for example when outputting a LaTeX report, where this could be |
Meanwhile I would be happy with this workaround. |
+++ Michel Kuhlmann [Oct 06 16 23:19 ]:
Correct, but this is the best we could achieve with just |
Any update with the numbering workaround? |
Or would you recommend a lua-filter? |
Apologies, I'm currently short on time and cannot work on this right now. I believe a filter-based solution should be possible. Allowing lua filters to use a hierarchicalized version of the AST would probably help here (and would make the solution for tarleb/pandoc-org-presentations#1 much simpler). |
Is there any update with table-labels in the org-mode reader?
|
Looks like a shortcoming of the LaTeX writer. Please open a new issue for this. |
I'm unsure, what to describe in the new issue. Should I just reference to this issue? |
Another question (maybe off-topic here): How could I pass image-width to LaTeX?
|
The pandoc-discuss mailing list would probably be a better place for these questions. Re image width: use Re labels on LaTeX tables: I've opened #8219 to keep track of the issue. |
cc @tarleb
Minimal example
Org-file:
Expected Latex
Actual latex
The text was updated successfully, but these errors were encountered: