Created
February 13, 2017 14:50
-
-
Save inkydragon/5c9d31ec22f012a8abeba9035a1b3f03 to your computer and use it in GitHub Desktop.
LaTeX-Bug? minted 长代码强行跨页
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{book} | |
\usepackage{xcolor} | |
\usepackage{mdframed} | |
\usepackage[margin=2.8cm]{geometry} | |
\usepackage{minted} | |
\setminted{ | |
%bgcolor=red, % 取消此行注释 陷入死循环 | |
} % 我想实现的是: | |
% minted 跨页 且全局有颜色 | |
% 报错: | |
% ....... | |
% Overfull \vbox (230.36552pt too high) detected at line 95 [] | |
% Overfull \vbox (231.36552pt too high) detected at line 95 [] | |
% Overfull \vbox (232.36552pt too high) detected at line 95 [] | |
% Package mdframed Warning: correct box splittet fails | |
% It seems you are using a non splittable contents | |
% (mdframed) on input line 95. | |
% | |
% Package mdframed Info: You first box width is to small | |
% mdframed fixed it | |
% (mdframed) on input line 95. | |
% [19] | |
% .......... | |
% | |
% 无限循环 | |
\begin{document} | |
\begin{mdframed} | |
\begin{minted}{java} | |
import java.awt.event.*;//for ActionListener | |
public class Runtime implements KmaxRuntime { | |
KmaxToolsheet tlsh;//Store a reference to the toolsheet environment | |
KmaxWidget wSlot; | |
KmaxWidget wAdd; | |
KmaxWidget wData; | |
KmaxWidget dataField; | |
KmaxWidget countField; | |
KmaxWidget setSRQ; | |
KmaxDevice dev; | |
KmaxHist hist1,hist2,hist3,hist4,hist5,hist6, histoLowX, histoLowY; | |
KmaxHist dee1; | |
KmaxWidget report; | |
KmaxWidget liveTime; | |
KmaxWidget realTime; | |
KmaxWidget deadTime; | |
KmaxWidget progress; | |
KmaxWidget xcombo, ycombo, offsetButton; | |
KmaxWidget combo, checkBoxCalib; | |
/** ADC Levels */ | |
KmaxWidget lld; | |
KmaxWidget setLLD; | |
KmaxWidget getLLD; | |
KmaxWidget lldText; | |
KmaxWidget uld; | |
KmaxWidget setULD; | |
KmaxWidget getULD; | |
KmaxWidget uldText; | |
/** Calibration - Check Box(use calibration) */ | |
boolean eventFileOn = true; | |
int slotADC = 22;// Change CAMAC controller's backpanel jumper, accordingly | |
int count = 0; | |
int[] data = new int[1]; | |
int[] offset = {0, 0}; | |
int[] in = {1, 2}; | |
int[] ones = {1,1}; | |
int points = 10; | |
int[] region = new int[points]; | |
int timeTicks; | |
int totalTime; | |
int LiveTime = 0; | |
int totcount; | |
int evType = 1; //The Type ID for these kinds of events | |
SimpleDateFormat today = new SimpleDateFormat("dd/MM/yyyy"); | |
SimpleDateFormat now = new SimpleDateFormat("HH:mm:ss:SSS"); | |
Map<String,KmaxHist> histograms = new HashMap<String,KmaxHist>(); | |
static final int evSize = 6;//The num of parameters per event of this type | |
static final int BUF_SIZE = evSize*1000;// Buffer size | |
static final int LP_MEM_TOP = 0xFFFF00;//Memory size 16MB | |
static final int READ_START = LP_MEM_TOP - BUF_SIZE;//We start the read/write pointer 1 buffer before the end | |
\end{minted} | |
\end{mdframed} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment