The shell auto-image now runs code and turns the output into an image that is embedded into the document The prompt is configurable in /bin/prompt The first draft is done up until the references section
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			264 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
fixAnsiReset(){
 | 
						|
	FIND="$(echo -e "\033[m")"
 | 
						|
	REPLACE="$(echo -e "\033[0m")"
 | 
						|
	#sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g"
 | 
						|
	cat - | sed -r 's/\x1B\[m/\x1B\[0m/g'
 | 
						|
}
 | 
						|
 | 
						|
fixTab(){
 | 
						|
	cat - | sed 's/\t/    /g'
 | 
						|
}
 | 
						|
 | 
						|
cat - | fixAnsiReset | fixTab
 |