How to show Tikz figures on the webpage (html)

2014年6月17日 19:40

Consider the fact that I have used Tikz (Tex) to finished drawing some nice graphs. In another words, I have some source files in .tex format. The question is, how do I show these diagrams drawn using Tikz on the html file?

Tags: latex html5
评论(13) 阅读(7586)

Use Moderncv with numeric index for bibliographies

2013年3月09日 11:15

Here is a template latex file

\begin{filecontents*}{xxyyy.bib}
@book{testa,
    author = "The AuthorA",
    title = "The TitleA",
    year = "2012",
    publisher = "The PublisherA"
}
@book{testb,
    author = "The AuthorB",
    title = "The TitleB",
    year = "2012",
    publisher = "The PublisherB"
}
\end{filecontents*}

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvtheme[red]{classic}
\usepackage[ngerman]{babel}
\usepackage{multibib,chapterbib, babelbib}

\firstname{John}
\familyname{Doe}

\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\renewenvironment{thebibliography}[1]%
  {%
     \setlength\hintscolumnwidth{0pt}
     \setlength\separatorcolumnwidth{0pt}
     \bibliographyhead{\refname}%
%    \small%
    \begin{list}{\bibliographyitemlabel}%
      {%
        \setlength{\separatorcolumnwidth}{0.025\textwidth}
        \setlength{\topsep}{0pt}%
        \settowidth\labelwidth{\@biblabel{#1}}
        \setlength{\labelsep}{\separatorcolumnwidth}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code%
        \usecounter{enumiv}%
        \let\p@enumiv\@empty%
        \renewcommand\theenumiv{\@arabic\c@enumiv}}%
        \sloppy\clubpenalty4000\widowpenalty4000%
  }%
  {%
    \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
    \end{list}%
  }
\makeatother

\begin{document}

\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\nocite{*}

\bibliographystyle{plain}
\bibliography{xxyyy}

\end{document}

compile tex file using Emacs command : C-c C-c

that is,

pdflatex filename.tex
bibtex filename.aux
pdflatex filename.tex
pdflatex filename.tex

 

then shows below:

from http://tex.stackexchange.com/questions/67426/literature-in-moderncv

 

Other Reference:

latex moderncv中英文简历模版

http://blog.csdn.net/xiangshimoni/article/details/7381217

评论(12) 阅读(5230)

\trans@languagepath ->\languagename, English.错误处理

2012年5月11日 09:45

\documentclass{beamer}
\usetheme{default}
\begin{document}

\begin{frame}{A sample slide}
A displayed formula:

\[
  \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi}
\]

\begin{theorem}
  In a right triangle, the square of hypotenuse equals
  the sum of squares of two other sides.
\end{theorem}
\end{frame}

\end{document}

会出现类似如下的错误:

! Undefined control sequence. \trans@languagepath ->\languagename
l.54 \end{frame}

1、\usepackage[english]{babel}宏包加上就没有问题了

2、按照上面的链接的解决方案,即更新升级下MIktex的beamer包,问题便自动解决了。
CTeX->MikTeX->Maintenance(Admin)->Updat(Admin)

注意:升级MIktex的beamer包的时候,必须关闭所有有关latex的文件

http://hi.baidu.com/zjunmm/blog/item/0915d010d7ce2d175aaf53d1.html/cmtid/259538d857650d69d1164e6d

评论(4) 阅读(4601)

数学函数中下标如何能到正下方

2011年9月12日 09:04

问题描述
我在使用 \pi_{i=1} 和 \arg_{v \in V} 都无法使 i, v放到 求积符号 pi 以及求参数符号arg正下面,只出现在右下角,请问这个应该怎么解决?

解决方案

\mathop{\arg\min}\limits_{v \in V}

结果显示
\mathop{\arg\min}\limits_{v \in V}

Quote:

http://www.chinatex.org/bbs/forum.php?mod=redirect&tid=4903&goto=lastpost

评论(6) 阅读(17423)