arXiv / html_feedback

Supports a student project developing a UI for feedback on arXiv articles rendered as html.
MIT License
17 stars 3 forks source link

Ill-formed equation environment #1266

Open Xuerli opened 4 months ago

Xuerli commented 4 months ago

Description

Hi there, thanks for your work.

  1. I have some text in the equation environment edited via Overleaf and they are ill-formed in the HTML version.
  2. Also, the size of Figure 1 is larger than it should be.
  3. In equation 3, the bracket is smaller than it should be.

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

image image image

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

Choose One

Internal issue ID

663e97af-eba5-4e1d-a9d8-acdbec182701

Paper URL

https://services.arxiv.org/html/submission/5563333/view

Browser

Chrome/125.0.0.0

Device Type

Desktop

github-actions[bot] commented 4 months ago

Hello @Xuerli, thanks for the issue report! We are reviewing your report and will address it as soon as possible.

chrisjcameron commented 4 months ago

Hi @Xuerli Would you be able to share the latex source for these examples? It is possible that the bracket might be resolved with \big{ or \Big{. Once your paper is announced, please come back and leave the link to the announced paper. Thanks!

Xuerli commented 4 months ago

Hi,

Thanks for your extremely fast response. Yes, please find the problematic content below including packages I used. If there is anything else needed, please let me know.

\usepackage[T1]{fontenc} \usepackage{amsmath} % \usepackage[fleqn]{amsmath} \usepackage{xcolor} \usepackage{multirow} \usepackage[shortlabels]{enumitem} \usepackage{amssymb} \usepackage{hyperref} \usepackage{cleveref} \usepackage{centernot}

\begin{equation}\label{e:ab} \text{If A were true then B would be true.} \end{equation}

\begin{figure} \centering \includegraphics[width = 0.35\textwidth]{figures/correlation.pdf} \caption{Correlation in (E\ref{e5}): \textit{Climate change is the cause of two consequences: C1) extreme weather and C2) the speaker not driving; here C1 and C2 are seen as correlated}.} \label{fig:enter-label} \end{figure}

\begin{equation} \label{equ:miscc} \tv(C) = \begin{cases} \top,\ (\neg\tv(C_a)) \wedge (\neg\tv(C_c)) \wedge \tv(C_v)\ \bot,\ \tv(C_a) \vee \tv(C_c)\vee (\neg\tv(C_v)) \ \omega,\ \text{otherwise} \end{cases} \end{equation}

Best wishes, Xue

From: chrisjcameron @.> Date: Thursday, 16 May 2024 at 22:53 To: arXiv/html_feedback @.> Cc: Xue Li @.>, Mention @.> Subject: Re: [arXiv/html_feedback] Ill-formed equation environment (Issue #1266) This email was sent to you by someone outside the University. You should only click on links or attachments if you are certain that the email is genuine and the content is safe.

Hi @Xuerlihttps://github.com/Xuerli Would you be able to share the latex source for these examples? It is possible that the bracket might be resolved with \big{ or \Big{. Once your paper is announced, please come back and leave the link to the announced paper. Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/arXiv/html_feedback/issues/1266#issuecomment-2116264251, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEY2VVASQ3L77EFYALB4MLTZCUTD7AVCNFSM6AAAAABH3AKNKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJWGI3DIMRVGE. You are receiving this because you were mentioned.Message ID: @.***>

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.

chrisjcameron commented 4 months ago

As a quick pass, it looks like PDF is more complicated than png or other formats (https://github.com/brucemiller/LaTeXML/issues/2077).

Overleaf does not recognize \tv. Which package is that from?

Xuerli commented 4 months ago

Hi,

Sorry for the incomplete packages and self-defined command, e.g.\tv.

The full declaration is given below, including \tv for the special font.

\documentclass[runningheads]{llncs} % \usepackage[T1]{fontenc} \usepackage{amsmath} % \usepackage[fleqn]{amsmath} \usepackage{xcolor} \usepackage{multirow} \usepackage[shortlabels]{enumitem} \usepackage{amssymb} \usepackage{hyperref} \usepackage{cleveref} \usepackage{centernot}

\hypersetup{ colorlinks=true, linkcolor=blue, filecolor=magenta, urlcolor=blue, pdftitle={Overleaf Example}, pdfpagemode=FullScreen, }

\makeatletter \def\tagform@#1{% \maketag@@@{(E#1\unskip\@@italiccorr)}% } % \renewcommand{\theequation}{E\num{equation}} % For proper rendering and hyphenation of words containing Latin characters (including in bib files) \usepackage[T1]{fontenc} % T1 fonts will be used to generate the final print and online PDFs, % so please use T1 fonts in your manuscript whenever possible. % Other font encondings may result in incorrect characters. % \usepackage{graphicx} % Used for displaying a sample figure. If possible, figure files should % be included in EPS format. % % If you use the hyperref package, please uncomment the following two lines % to display URLs in blue roman font according to Springer's eBook style: %\usepackage{color} %\renewcommand\UrlFont{\color{blue}\rmfamily} %\urlstyle{rm} % \newtheorem{defn}{Definition} \newtheorem{ex}{Example} \newcommand{\red}[1]{\textcolor{red}{#1}} \newcommand{\blue}[1]{\textcolor{blue}{#1}} \newcommand{\green}[1]{\textcolor{green}{#1}} \newcommand{\cyan}[1]{\textcolor{cyan}{#1}} \newcommand{\brown}[1]{\textcolor{brown}{#1}} \newcommand{\tv}{\mathcal{T}} \newcommand{\antecedent}{\mathcal{A}} \newcommand{\consequent}{\mathcal{\gamma}} \newcommand{\hard}{\mathcal{H}} \newcommand{\soft}{\mathcal{S}} \newcommand{\f}{\mathcal{F}}

Best wishes, Xue Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: chrisjcameron @.> Sent: Thursday, May 16, 2024 11:41:32 PM To: arXiv/html_feedback @.> Cc: Xue Li @.>; Mention @.> Subject: Re: [arXiv/html_feedback] Ill-formed equation environment (Issue #1266)

This email was sent to you by someone outside the University. You should only click on links or attachments if you are certain that the email is genuine and the content is safe.

As a quick pass, it looks like PDF is more complicated than png or other formats (brucemiller/LaTeXML#2077https://github.com/brucemiller/LaTeXML/issues/2077).

Overleaf does not recognize \tv. Which package is that from?

— Reply to this email directly, view it on GitHubhttps://github.com/arXiv/html_feedback/issues/1266#issuecomment-2116318481, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEY2VVAMXE5C6GCYOABTPFTZCUYZZAVCNFSM6AAAAABH3AKNKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJWGMYTQNBYGE. You are receiving this because you were mentioned.Message ID: @.***>

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.