Commit da3f1cdf authored by RF's avatar RF
Browse files

latex typesetting fix

Changes to be committed:
	modified:   src/lbm.h
	modified:   src/tpde.hpp
	modified:   supp_d1q3_nse.pdf
	modified:   supp_d2q5_ade.pdf
	modified:   supp_d2q9_nse.pdf
	modified:   supp_d3q27_nse.pdf
	modified:   supp_d3q7_ade.pdf
parent e02747a5
......@@ -141,7 +141,7 @@ struct LBM
char desc[100], desc_tex[100];
for (int q=0;q<MQ;q++)
{
sprintf(desc,"o_%d",q+1);
sprintf(desc,"o%d",q+1);
sprintf(desc_tex,"\\omega_{%d}",q+1);
sym_os[q]=symbol(desc,desc_tex);
}
......
......@@ -421,6 +421,7 @@ void TPDE::save_raw(const char* dirname, const char* subdirname, const char*fmt,
string str1 = sout2.str();
// str1 = ReplaceString( str1, "(t,x,y,z)", "");
// str1 = ReplaceString( str1, "(t,\\x,\\y,\\z)", "");
str1 = ReplaceString( str1, "cs", "c_s");
str1 = ReplaceString( str1, "frho", "rho");
str1 = ReplaceString( str1, "rho", "rh");
str1 = ReplaceString( str1, "o", "omega");
......@@ -521,6 +522,26 @@ string TPDE::replaceStringForExport(string s)
str1 = ReplaceString( str1, "fv", "v");
str1 = ReplaceString( str1, "fw", "w");
str1 = ReplaceString( str1, "frho", "rho");
str1 = ReplaceString( str1, "cs", "c_s");
// hot fix!
str1 = ReplaceString( str1, "omega_10", "omega_{10}");
str1 = ReplaceString( str1, "omega_11", "omega_{11}");
str1 = ReplaceString( str1, "omega_12", "omega_{12}");
str1 = ReplaceString( str1, "omega_13", "omega_{13}");
str1 = ReplaceString( str1, "omega_14", "omega_{14}");
str1 = ReplaceString( str1, "omega_15", "omega_{15}");
str1 = ReplaceString( str1, "omega_16", "omega_{16}");
str1 = ReplaceString( str1, "omega_17", "omega_{17}");
str1 = ReplaceString( str1, "omega_18", "omega_{18}");
str1 = ReplaceString( str1, "omega_19", "omega_{19}");
str1 = ReplaceString( str1, "omega_20", "omega_{20}");
str1 = ReplaceString( str1, "omega_21", "omega_{21}");
str1 = ReplaceString( str1, "omega_22", "omega_{22}");
str1 = ReplaceString( str1, "omega_23", "omega_{23}");
str1 = ReplaceString( str1, "omega_24", "omega_{24}");
str1 = ReplaceString( str1, "omega_25", "omega_{25}");
str1 = ReplaceString( str1, "omega_26", "omega_{26}");
str1 = ReplaceString( str1, "omega_27", "omega_{27}");
return str1;
}
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment