Nikola + Pandoc + Mathjax:数学显示不正确

时间:2015-07-04 15:55:26

标签: pandoc mathjax nikola

我有一个使用Nikola的静态网站,其中 number = str(int(input("Number:"))) input_name = ((input("Lastname:") + (input("Firstname:"))) file = "TXT.txt" # Open file with default mode for reading f = open(file) lines = f.readlines() # Loop for each line in the file for line in lines: # The name is the values indexed from 0 (first character) to -4 (fourth to last character) name = line[0:-4] # Check if name has been appended before if name == input_name: # If value of name is input_name, concentrate the number onto the line found = True print("\nYour name has been found in the file.\n") new_line = line[:-1] + "," + number + "\n" lines.remove(line) lines.append(new_line) # Break the loop break # Otherwise, continue the loop else: found = False f.close() if found == False: with open(file, "a") as f: f.write(name + "," + number + "\n") .md一起变为.html

pandoc的部分内容如下:

conf.py

我使用COMPILERS = { # "markdown": ('.md', '.mdown', '.markdown'), "pandoc": ('.md', '.mdown', '.markdown') } 生成帖子。

我的问题是关于生成数学。我有一个nikola new_post -f pandoc这样的文件:

.md

我使用<!-- .. title: Testing Maths .. slug: testing-maths .. date: 2015-07-04 23:44:07 UTC+08:00 .. tags: .. category: .. link: .. description: .. type: text --> $\beta_i=2$ $k_i=2$ $\hat{\beta_i}=2$ 构建我的网站,并使用nikola build在本地托管。这是浏览器的屏幕截图:

result http://s9.postimg.org/70t4j7k6l/Screen_Shot_2015_07_04_at_11_48_40_pm.png

有人可以帮忙吗?感谢。

0 个答案:

没有答案