arXiv / arXiv/html_feedback

Minted Error causing display error and overlapping text

Open
#4,466 1 comment 0 reactions 0 assignees View on GitHub
needs-latex-package
Dominant language
No language data
Stars
42
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Image

### Description

See screenshot that shows apparent Minted error causing error message to be shown over the paper text in html. The overlapping text makes the html unreadable.

```{minted}
[fontsize=]python import numpy as np import torch from torch.nn.functional import unfold
def fc_topo(num_node, repeat=1): edge = [] for i in range(num_node): for j in range(num_node): if i != j: for _in range(repeat): edge.append([i, j]) return edge
def ne_topo(c, w, h, k, repeat=1):
n = c * w * h
# Generate node indices. ind = torch.arange(1, 1 + n) ind = ind.view(c, w, h)
# Unfold indices using # the given kernel size.
# unsqueeze and squeeze for # utilizing the unfold function. ind = unfold(ind.unsqueeze(0).float(), k) ind = ind.squeeze(0)
# Create edges edge = [ [int(ind[j, i]), int(ind[l, i])] for i in range(ind.shape[1]) for j in range(ind.shape[0]) for l in range(ind.shape[0]) if j != l for _in range(repeat) ] return edge
def proj_topo(c, w, h, k, n, repeat=[1,1]):
edge = ne_topo(c, w, h, k, repeat[0]) m = np.max(np.array(edge))
# add n projected nodes. for i in range(m + 1, m + 1 + n): for j in range(m + 1): for _in range(repeat[1]): edge.append([i, j]) edge.append([j, i]) return edge```

### (Optional:) Please add any files, screenshots, or other information here.

Image

### (Required) What is this issue most closely related to? Select one.

Figures

### Internal issue ID

189880e9-6032-46aa-9bfe-5a5a9dfbb5eb

### Paper URL

https://arxiv.org/html/2310.15872v3

### Browser

Chrome/138.0.0.0

### Device Type

Desktop

Contributor guide

Open the contributing guide

Research direction

Open the paper URL in Chrome and inspect the rendered minted Python block alongside the issue screenshots. Trace where the error message overlaps the paper text; done means the HTML remains readable and the minted error no longer obscures the code or surrounding content.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.