Giter VIP home page Giter VIP logo

arxiv_on_deck_2's People

Contributors

mfouesneau avatar

Stargazers

 avatar

Watchers

 avatar  avatar

arxiv_on_deck_2's Issues

[Bug] title with command options does not parse properly

Example paper: 2302.10943

\title[Brightest cluster galaxies in IllustrisTNG]{The growth of brightest cluster galaxies in the TNG300 simulation: dissecting the contributions from mergers and \textit{in situ} star formation} 

renders as

Brightest cluster galaxies in IllustrisTNGThe growth of brightest cluster galaxies in the TNG300 simulation: dissecting the contributions from mergers and \textit{in situ} star formation

[Bug] Title and subtitle parsing sometimes incorrect

def get_title(self) -> str:

  • Title, see 2302.08736
    \title{CRIRES$^+$ detection of CO emissions lines and temperature inversions on the dayside of WASP-18b and ...}
  • this paper would not be selected anymore as a paper candidate after correcting for #8. No MPIA author (code would not even check the affiliations).
  • Patch needed on the LatexDocument.get_title() .
    • the content.find_all() breaks the title into smaller bits because of the math mode.

title = ''.join(self.content.find_all('title')[0].contents[-1])

title = '"'.join([str(k) for k in doc.content.find_all('title')[0].contents])

[bug] latex_bib: IndexError: list index out of range

It seems that for some papers (e.g., 2303.02816 the parsing of bib does not work.


---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
Cell In[13], line 6
      4 except Exception as e:
      5     print(e)
----> 6     raise e

Cell In[13], line 2
      1 try:
----> 2     bibdata = latex_bib.LatexBib.from_doc(doc)
      3     full_md = latex_bib.replace_citations(full_md, bibdata)
      4 except Exception as e:

File ~/Work/arxiv_display/venv/lib/python3.11/site-packages/arxiv_on_deck_2/latex_bib.py:144, in LatexBib.from_doc(cls, doc)
    141         bib_database = parse_file(bibtex_file)
    142     bib_data.append(bib_database)
--> 144 b0 = bib_data[0]
    145 for bdata in bib_data[1:]:
    146     b0.add_entries(bdata.entries)

IndexError: list index out of range

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.