Giter Club home page Giter Club logo

Comments (3)

jkitchin avatar jkitchin commented on June 11, 2024

Labels are a little subtle. I suggest you try putting the table label in
the caption, or, use #+tblname: tab-1 instead. that should work, but if not
use a latex label in the caption. Your label is in the section, not the
table.

You can only label an equation in an equation environment I think.
On May 31, 2014 5:46 AM, "llcc" [email protected] wrote:

Hi John,

I am trying you org-ref. It is awesome.

When I use the function of label like lable:table-label, I found a problem
which likes a bug.

  • section 1
    this is section1
  • section 2
    label:tab-1
    #+caption: a table
    | 2 | 2 | 2 | 2 | 2 |
    |---+---+---+---+---|
    | 2 | 2 | 2 | 2 | 2 |

table ref:tab-1

[H=\frac{N_1I}l=\frac{N_1}lポ\frac{V_1}{R_1} \eqno{(1)}
\label{eq-1}]

As equation eqref:eq-1 shows........

It outputs:

[image: image]
https://cloud.githubusercontent.com/assets/3996879/3138697/c67210fa-e8a7-11e3-853a-1fee9b404906.png

The label of table and equation output as the label of section.

I tried to put the label:tab-1 below the +cpation: a table, but it does
not output the caption of the table.

Maybe it is a unique problem in my windows, I am not very sure.

—
Reply to this email directly or view it on GitHub
#18.

from jmax.

jkitchin avatar jkitchin commented on June 11, 2024

Change your org-file to this:

* section 1
this is section1
* section 2

#+caption: a table label:tab-1
| 2 | 2 | 2 | 2 | 2 |
|---+---+---+---+---|
| 2 | 2 | 2 | 2 | 2 |

table ref:tab-1

\begin{equation}
\[H=\frac{N_1I}l=\frac{N_1}lポ\frac{V_1}{R_1} \eqno{(1)}
\label{eq-1}
\end{equation}

As equation eqref:eq-1 shows........

That should give you what you want. Let me know if it does not.

from jmax.

llcc avatar llcc commented on June 11, 2024

@jkitchin
Sorry to reply late.
It works perfectly, thanks very much.

from jmax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.