mohuangrui / ucasthesis

LaTeX Thesis Template for the University of Chinese Academy of Sciences
3.47k stars 935 forks source link

undefined control sequence "l.35 \makeenglish" #4

Closed libingict closed 8 years ago

libingict commented 8 years ago

Thanks for your contribution. I downloaded the your source could and was ready to use it. But when I compile the "Thesis.tex" with the pdflatex command, an error occurred as following:

! Undefined control sequence. \HyOrg@maketitle ... {4} \UCAS@label@confidential \UCASunderline [30pt]{\UCA... l.35 \makeenglishtitle

?

I don't know what's wrong? I did not change anything in your package and I updated my Miktex. My pdfTeX, version is 3.14159265-2.6-1.40.16 (MiKTeX 2.9) and I am using the Ctex suite.

Looking forward to your reply.

mohuangrui commented 8 years ago

Hi, please try to check the following things:

1) Try Compile.bat (Windows OS) or Compile.sh (Linux OS) to test the template directly after downloading, if it doesn't work, there may be something wrong with your LaTeX environment.

2) If Compile.bat script works but you failed compiling in your WinEdit, it's because files in \input{} commands are only name indexed and then searched by the Compile script. Using Compile.bat is recommended, if you want to use WinEdit compilation function, please provide the search path for each file inclusion.

3) Generally, xelatex is superior than pdflatex for generating Chinese documents using LaTeX.

Cheers

libingict commented 8 years ago

Hi, I re-installed my Ctex suite (change from the SIMPLE version to the FULL one) and the compile.bat worked well so far. There are two more problems haunting me.

  1. When I add my own file (chapter) into the package and run the Complie.bat, my chapter in the output pdf turned to a heap of garbage characters. On the other hand, if I changed the content in your provided file to my own, the output pdf could be all fine, and both the chinese and english could be showed well. What should I do if I want to create my own file and make them work well.
  2. Now the title of the subsection is in the middle. If we want it to be in the left, what could we do?

Thanks for your nice help again.

mohuangrui commented 8 years ago

Hi, 1) Please make sure all the created source files are using the UTF-8 encoding. You can simply reuse available files to generate UTF-8 encoded files on Windows OS. 2) Please download the latest template (Updated today) to get what you want. The format of the template is improved.

Cheers