Git Product home page Git Product logo

dokuwiki-plugin-latexcaption's People

Contributors

bennvan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

dokuwiki-plugin-latexcaption's Issues

array key not found

I found several error (when debug active): Array key undefned:

I suggest not using list($matches, $label) = explode('|', $match, 2); for array which some element may not exist. Here I change the code becomes:

$matchArr = explode('|', $match, 2);
 //var_dump($matchArr);
 //list($matches, $label) = explode('|', $match, 2);
$matches = $matchArr[0];
if(count($matchArr) === 2){
	$label = $matchArr[1];
 }else{
	$label = '';
}

Also I spot some typo: if (!$this->$helper) Should be if (!$this->helper)

I hope this helps. Thank you

Here my version.
caption - Salin.txt

Add an option to see or hide the type of reference

When referring to a figure or a table, it automatically adds the type (figure, table, ... or a abbreviation) with the corresponding number. It would be interesting if you could just put the number (without the type of element).

Something like this example:

see figure number {{ref>fig_label?no_type}} for more details

and that would be rendered as:

see figure number 6 for more details

Thank you very much for this beautiful plugin.

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.