Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xrefs

  • pretty and consistent cross-references in HTML documents
  • customizations possible upon script loading

Quickstart

  1. clone this git-repo into your project
  2. copy the
    1. first code-snippet to your html <head></head>
      1. needs to be pasted before any other <link> for firefox compatibility
    2. second code-snippet below to the bottom of your html <body></body>
  3. replace <path/to/repo/> with the path pointing to the cloned repo
  4. customize the appearance using the fields in Xrefs.initialize()
    <!-- `importmap` to load local scripts -->
    <!-- before any other imports/links (firefox compatibility) -->
    <script type="importmap">
    {
        "imports": {
            "xrefs": "<path/to/repo>/src/index.js"
        }
    }
    </script>

    <!-- Xrefs setup -->
    <script type="module">
        import { Xrefs } from "xrefs";
        Xrefs.initialize({
            "bibPaths": [
                "./bib-refs.bib",
            ],
            "bibEntryFormat": [
            "long",
            "short",
            ][0],
            "citeStyle": [
                "authoryear",
                "ieee",
            ][0],
            "maxAuthors": 5,
            "glsPaths": [
                "../glossary.json",
            ],
        });

        Xrefs.render();
        console.log(Xrefs)
    </script>

Note

you can check test.html for an example html file

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages