Refact: move mapytex to usecase and build example
This commit is contained in:
		| @@ -1,7 +0,0 @@ | |||||||
| from mapytex import Expression |  | ||||||
|  |  | ||||||
| from bopytex.jinja2_env.texenv import texenv |  | ||||||
|  |  | ||||||
| jinja2 = { |  | ||||||
|     "environment": texenv, |  | ||||||
| } |  | ||||||
							
								
								
									
										
											BIN
										
									
								
								example/simple/joined_example.pdf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								example/simple/joined_example.pdf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @@ -2,11 +2,25 @@ | |||||||
| % | % | ||||||
| \documentclass[12pt]{article} | \documentclass[12pt]{article} | ||||||
|  |  | ||||||
| \title{Bopytex example -- {{ number }}} | \title{Bopytex example -- \Var{ number }} | ||||||
|  |  | ||||||
| \begin{document} | \begin{document} | ||||||
|  |  | ||||||
| \maketitle | \maketitle | ||||||
|  | %- set a = 10 | ||||||
|  | %- set n = 2 | ||||||
|  | We have two variables | ||||||
|  | \begin{itemize} | ||||||
|  |     \item a: \Var{a} | ||||||
|  |     \item n: \Var{n} | ||||||
|  | \end{itemize} | ||||||
|  |  | ||||||
|  | %# We can use blocks | ||||||
|  | \begin{itemize} | ||||||
|  | %- for i in range(n) | ||||||
|  |     \item \Var{a} | ||||||
|  | %- endfor | ||||||
|  | \end{itemize} | ||||||
|  |  | ||||||
|  |  | ||||||
| \end{document} | \end{document} | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								example/usecase/bopytex_config.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								example/usecase/bopytex_config.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | |||||||
|  | from mapytex import Expression | ||||||
							
								
								
									
										
											BIN
										
									
								
								example/usecase/joined_example.pdf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								example/usecase/joined_example.pdf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user