mirror of
				https://github.com/flynx/photobook.git
				synced 2025-10-31 11:20:10 +00:00 
			
		
		
		
	cls2tex.sh now working, still needs more work...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									6aadbcaedb
								
							
						
					
					
						commit
						4d194859a8
					
				
							
								
								
									
										12
									
								
								cls2tex.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								cls2tex.sh
									
									
									
									
									
								
							| @ -3,11 +3,11 @@ | |||||||
| # usage: cls2tex.sh INPUT OUTPUT PREFIX | # usage: cls2tex.sh INPUT OUTPUT PREFIX | ||||||
| 
 | 
 | ||||||
| cat $1 \ | cat $1 \ | ||||||
| 	| egrep '(^%$3|^\\\\edef\\\\$*@[A-Z][A-Z]+)' \ | 	| egrep '(^%'$3'|^\\edef\\.*@[A-Z][A-Z]+)' \ | ||||||
| 	| sed 's/^\(\\\\edef\\\\\)$*@/%$3\\1/' \ | 	| sed 's/^\(\\edef\\\).*@/%'$3'\1/' \ | ||||||
| 	| sed 's/%$3%%%% \(.*\)/%$3\\\\subsubsection{\1}\\\\label{subsubsec:\1}/' \ | 	| sed 's/%'$3'%%%% \(.*\)/%'$3'\\subsubsection{\1}\\label{subsubsec:\1}/' \ | ||||||
| 	| sed 's/%$3%%% \(.*\)/%$3\\\\subsection{\1}\\\\label{subsec:\1}/' \ | 	| sed 's/%'$3'%%% \(.*\)/%'$3'\\subsection{\1}\\label{subsec:\1}/' \ | ||||||
| 	| sed 's/%$3%% \(.*\)/%$3\\\\section{\1}\\\\label{sec:\1}/' \ | 	| sed 's/%'$3'%% \(.*\)/%'$3'\\section{\1}\\label{sec:\1}/' \ | ||||||
| 	| sed 's/%$3\s\+>>\s\+\(.*\)/%$3\\\\begin{verbatim} \1 \\\\end{verbatim}/' \ | 	| sed 's/%'$3'\s\+>>\s\+\(.*\)/%'$3'\\begin{verbatim} \1 \\end{verbatim}/' \ | ||||||
| 	| cut -c 3- - > $2 | 	| cut -c 3- - > $2 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user