TeX - LaTeX Asked by YoungMath on October 17, 2020
In one of my arxiv articles, I am using listings environment combined with the tcolorbox package. Here’s a minimal example:
documentclass{article}
usepackage[many,breakable,listings]{tcolorbox}
tcbset{nobeforeafter}
newtcblisting{mylistings}{%
breakable,
enhanced,
size=fbox,
pad at break*=1mm,
opacityfill=1,
boxrule=1pt,
before skip=bigskipamount,
after={parnoindent},
colback=lightgray,
colframe=lightgray,
attach title to upper,
listing only,
listing options={
language=Python,
upquote= true,
tabsize=4,
keywordstyle=bfseries,
basicstyle=smallttfamily,
basewidth=.5em,
aboveskip=0pt,
belowskip=-2pt,
showstringspaces=false,
breaklines=true,
sensitive=true,
},
}
begin{document}
begin{mylistings}
%display latex
end{mylistings}
end{document}
In arxiv, it appears to happen that the text after the % sign vanishes even though everything works fine on all of my machines.
Edit 07/22/2020:
The output in arxiv looks as follows:
Your minimal working example appears to work just fine in arXiv, and compiles with identical output in texlive 2020.
I see that it's rotating due to the stamping operation, so if you want to disable that, you'll need to supply a 00README.XXX
plain text file with the appropriate control value. If you are having a specific issue, please contact arXiv help along with your submit-id
for specific assistance relative to your source.
Correct answer by Jake on October 17, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP