mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Include dive time in TeX/LaTeX export
This was missing in the export. We export separate hour and minutes so the template can decide about the time format. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
		
							parent
							
								
									dece8d1ba4
								
							
						
					
					
						commit
						2d8a8f974b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -327,6 +327,8 @@ void DiveLogExportDialog::export_TeX(const char *filename, const bool selected_o | ||||||
| 		put_format(&buf, "\n%% Time, Date, and location:\n"); | 		put_format(&buf, "\n%% Time, Date, and location:\n"); | ||||||
| 		put_format(&buf, "\\def\\%sdate{%04u-%02u-%02u}\n", ssrf, | 		put_format(&buf, "\\def\\%sdate{%04u-%02u-%02u}\n", ssrf, | ||||||
| 		      tm.tm_year, tm.tm_mon+1, tm.tm_mday); | 		      tm.tm_year, tm.tm_mon+1, tm.tm_mday); | ||||||
|  | 		put_format(&buf, "\\def\\%shour{%02u}\n", ssrf, tm.tm_hour); | ||||||
|  | 		put_format(&buf, "\\def\\%sminute{%02u}\n", ssrf, tm.tm_min); | ||||||
| 		put_format(&buf, "\\def\\%snumber{%d}\n", ssrf, dive->number); | 		put_format(&buf, "\\def\\%snumber{%d}\n", ssrf, dive->number); | ||||||
| 		put_format(&buf, "\\def\\%splace{%s}\n", ssrf, site ? site->name : ""); | 		put_format(&buf, "\\def\\%splace{%s}\n", ssrf, site ? site->name : ""); | ||||||
| 		put_format(&buf, "\\def\\%sspot{}\n", ssrf); | 		put_format(&buf, "\\def\\%sspot{}\n", ssrf); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue