Latex変換HTML
作者:金良([email protected])csdnブログ:http://blog.csdn.net/u012176591
注意:作業ディレクトリフォルダとファイル名はすべて英語で、中国語ではありません.そうしないと、公式の画像を生成できません.
コンパイルコマンドは次のとおりです(コンパイル後、プロジェクトのディレクトリにImagesフォルダが生成され、挿入する画像を中に入れることに注意してください).
ソース:
\documentclass{ctexart}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{color}%xcolor , color
\usepackage[CJKbookmarks=true,colorlinks,linkcolor=blue,anchorcolor=blue,citecolor=green]{hyperref}
\title{LaTeX HTML}
\date{\today}
\author{Jins0.618}
\begin{document}
\maketitle
\section{ }
\begin{table}[h]
\caption{{\bf }}
\begin{tabular}{p{3.5cm}ll}
Letter & \\
Survey & , \\
\end{tabular}
\end{table}
\section{ }
{\LARGE\textcolor[rgb]{1,0,0}{ }}:% rgb , 0 1
\begin{equation}
\begin{split}
g'(z)&= \frac{\mathrm d}{\mathrm d x} \frac{1}{1+\exp(-z)}\\
&= g(z)(1-g(z))
\end{split}
\end{equation}
\section{ }
\begin{figure}[!ht]
\centering
\includegraphics[width=0.5\textwidth,height=1in]{bupt.jpg}
\caption{ }
\label{fig:myfigure}
\end{figure}
\section{ }
\url{http://blog.csdn.net/u012176591}
\end{document}
効果は次のとおりです.
質問:
パッケージ{tabu}を導入すると、エラーが発生します.原因を調べると、支持性が悪いという人もいます.
質問:
--- error --- Can't find/open file `Jins0618.dvi'
ある人はこのような解釈を与えた.
In some platforms, the operating systems pass on the quotes of the parameters of htlatex, httex, and httexi to the utilities tex4ht and t4ht. In such cases, the utilities issue complaints of the above nature for file names ‘xxx’ other than those being compiled. The problem can be resolved by installing a filter named ‘htcmd’, and submitting the tex4ht and t4ht commands to the filter. Backslash characters ‘\’ might need replacements with double backslash characters ‘\\’ or forward slash characters ‘/’.
For instance, if htlatex.bat contains a command line of the form ‘C:\tex4ht\t4ht %1 %4’, then after introducing the filter the modified command line will take the form ‘C:\\tex4ht\\htcmd C:\\tex4ht\\t4ht %1 %4’.
質問:
! LaTeX Error: There's no line here to end.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.65 \\ ?
Φ ?\bm{A}$ :\\
エラーの場所を確認し、エラーの原因が改行であることを発見し、クリアすればよい.質問:
[3]
! TeX capacity exceeded, sorry [input stack size=5000].
\bm@command ->
\mathchar 30032 \let \prOteCt \relax \let \prOteCt \relax \let...
l.91 \item , $\bm{P_0}
$ ?
その原因は、bm{}コマンドに下付き文字が表示されないため、下付き文字を外に置けばよいのかもしれません.次のように変更します.
いくつかの漢字に対してコンパイルできないことを発見して、私が実践の中で出会った字は“測”の字で、この字の所在のコンパイルが停止して、多くの間違いを提示して、前の公式もピクチャーに変換することができません.この字を他の字やピンインに変えればいいです.
いくつかの記号、例えば素朴な貝爺斯のアルファベットは、その特殊な文字がエラーを示すことを示します.
コンパイルされたHTMLソースがブログエディタに完全にコピーできない場合は、HTMLソースに特殊な文字がある可能性があります.私がここで出会ったのは「NUL」で、コピー時に遭遇したブレークポイントの位置です.
http://docs.huihoo.com/homepage/shredderyin/tex2page/intro-Z-H-2.html
http://zzg34b.w3.c361.com/tutorial/tool.htm