Comments (4)
Interestingly, the issue appeared in the 3.1.0.2 release.
from sharelatex-full.
Hey @tangruize, thanks for raising the issue. Sorry that I didn't test this properly. Were you able to resolve the issue locally? I will fix this in the next week or so. Can you provide a MWE for me to test with?
from sharelatex-full.
Feel free to submit a PR if you would like :)
from sharelatex-full.
Yes, minted works after installing python3-pygments
in the container. I think python-pygments
is no longer needed. But I did not test it from scratch. Here is a tex file using the minted package:
\documentclass{article}
\usepackage{minted}
\setminted{frame=single, linenos=true, escapeinside={||}, autogobble=true}
\usepackage{refcount}
\makeatletter
\define@key{FV}{highlightlines}{\edef\FV@HighlightLinesList{#1}}
\makeatother
\begin{document}
\newcommand\sldots[0]{\scriptsize\ldots}
\renewcommand\theFancyVerbLine{%
\ifnum\value{FancyVerbLine}=1
\setcounter{FancyVerbLine}{153}\sldots
\else\ifnum\value{FancyVerbLine}=154
\setcounter{FancyVerbLine}{1000}%
\scriptsize{154}%
\else\ifnum\value{FancyVerbLine}=1001
\scriptsize{+}%
\else\ifnum\value{FancyVerbLine}=1002
\setcounter{FancyVerbLine}{154}%
\scriptsize{+}%
\else
\scriptsize\arabic{FancyVerbLine}%
\fi\fi\fi\fi
}
highlightlines \getrefnumber{new2} and \getrefnumber{new3}
\begin{minted}[highlightlines={\getrefnumber{new2},\getrefnumber{new3}}]{python}
# suppressed
hello|\label{new1}|
world|\label{new2}|
hello|\label{new3}|
world|\label{new4}|
\end{minted}
highlightlines \getrefnumber{newa} and \getrefnumber{newb}
\begin{minted}[highlightlines={\getrefnumber{newa},\getrefnumber{newb}}]{python}
# suppressed
hello|\label{newa}|
world|\label{newb}|
hello|\label{newc}|
world|\label{newd}|
\end{minted}
\end{document}
from sharelatex-full.
Related Issues (12)
- Add Inkscape to Image HOT 2
- Test Build fails HOT 2
- Add LilyPond and Gregorio support HOT 2
- Biber not working HOT 5
- Shell-Escape in Subfolders
- Improve Testing HOT 1
- Cannot connect to mongodb HOT 7
- After update all files and accounts are gone HOT 7
- How to access the sharelate files and edit without using web-broswer? HOT 1
- ShareLatex changing to Overleaf HOT 6
- The docker-compose.override.yaml file extension (yaml) has changed to yml HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharelatex-full.