diff options
| author | Julian Weigt <juw@posteo.de> | 2026-01-18 14:09:04 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:56:57 +0100 |
| commit | d97037469517d129efecf1cb686281379c7881d8 (patch) | |
| tree | 1d55a0e888d06ffdfcc689d5d19b1aa133aa99e2 /charf.c | |
| parent | bb267b7a40d849569375da475b412c16fce02acb (diff) | |
formulations
Diffstat (limited to 'charf.c')
| -rw-r--r-- | charf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -279,7 +279,7 @@ void format_results(char* text, EXPTYPE exponents[P], VALUETYPE ratios[K+1][P], char e[8]; if(format == FORMAT_TEXT){ - strcpy(beginning,"Current records:"); + strcpy(beginning,"Current records:\n"); strcpy(end,""); for(int p=0; p<P; p++){ @@ -305,7 +305,7 @@ void format_results(char* text, EXPTYPE exponents[P], VALUETYPE ratios[K+1][P], for(int p=0; p<P; p++){ exptype_to_latex(e,exponents[p]); sprintf(beginningp[p],"\\begin{table}\n\\begin{tabular}%s\n%s",h,f); - sprintf(endp[p],"\\end{tabular}\n\\caption{$p=%s$:}\n\\end{table}",e); + sprintf(endp[p],"\\end{tabular}\n\\caption{$p=%s$}\n\\end{table}\n",e); } strcpy(newline,"\\\\"); } @@ -319,7 +319,7 @@ void format_results(char* text, EXPTYPE exponents[P], VALUETYPE ratios[K+1][P], l += sprintf(text+l,"%s%s\n",s,newline); } if(format == FORMAT_LATEX){ - /*Replace last \\ and \n by \n */ + /*Replace last \\\n by \n */ l -= 4; l += sprintf(text+l,"\n"); } |
