Skip to content

Commit

Permalink
Recognize that some papers have used {quote} for {abstract} frontmatt…
Browse files Browse the repository at this point in the history
…er, and latexml remained agnostic
  • Loading branch information
dginev committed Jan 17, 2023
1 parent 13a1191 commit c450f5b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions css/ar5iv.css
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,22 @@ blockquote.ltx_epigraph {
margin-left: calc(0.45*var(--main-width)) !important;
}

/* Exception: some articles carelessly use {quote} instead of abstract */
/* see ar5iv#253 and ar5iv-css#3 for examples */
.ltx_authors + .ltx_para:has(+ .ltx_section) > blockquote.ltx_quote:only-child,
.ltx_titlepage:not(:has(.ltx_abstract)) > blockquote.ltx_quote:last-child,
.ltx_abstract > .ltx_title_abstract + blockquote.ltx_quote:last-child {
max-width: 90%;
margin: auto;
border-left: initial;
font-size: initial;
font-style: initial;
line-height: initial;
padding: initial;
position: initial;
z-index: initial;
}

/* ================================= */
/* from LaTeXML.css, possibly edited */
/* ================================= */
Expand Down

0 comments on commit c450f5b

Please sign in to comment.