Re: Help: undefined control sequence
Rachel Jones <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <2340ACC4E714504CA8C774E12FE54F1A0278244DFD53@IS-WIN-385.staffad.uwa.edu.au> |
Thanks for your email Bill.
This is what I have for my overall document. The \chapter error is coming from the overall-intro file. Do I need to specify the document class in the overall-intro as well?
\documentclass[12pt]{uwathes}
% The following 5 lines are non-essential ... see docs for details
\usepackage[unsectioned]{uwamaths}
\renewcommand{\AtBeginSection}[1]{\numberallin{#1}} % needs previous line
\usepackage{rotating} % Useful for printing wide tables sideways.
\usepackage{prettyref} % Makes \pref{sec:xxx} equivalent
\usepackage{graphicx}
\newcommand{\pref}{\prettyref} % to: Section~\ref{sec:xxx} etc.
\usepackage{titlesec}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{5}
\def\bivhat{\hat{\beta_{IV}}}
\setlength{\parindent}{0in}
%\oneandhalfspacing % Minimal PhD thesis interline spacing
\doublespacing
\makeindex % To produce a .idx index file (from which *.ind is created)
\makeglossary % To produce a .glo glossary file (from which *.gls is created)
\makesymbols % To produce a .sym symbols file (from which *.smb is created)
\title{Whole Exome Sequencing of Three Sarcoma Families}
\author{Rachel Jones}
\date{}
\newcommand{\GL}{\mathrm{GL}}
\newcommand{\SL}{\mathrm{SL}}
\newcommand{\sbold}[2]{{\textbf #1}_{\textbf #2}}
\newcommand{\bs}{\boldsymbol}
%\includeonly{} % See LaTeX manual ... useful for drafts
\begin{document}
\bibliographystyle{unsrt}
\maketitle
\include{abstract} % Essential for a PhD thesis
\include{declaration}
\include{acknowledgements}
\tableofcontents
\listoftables % Comment out if you have no tables
\listoffigures % Comment out if you have no figures
\printglossary % print .gls Glossary file if it exists
%\printsymbols % print .smb List of Symbols file if it exists
% Acknowledgements (see docs for dedications (similar))
% File acknow.tex should begin: \begin{acknowledgements}
% ... and end: \end{acknowledgements}
\mainmatter % Sets the page style and arabic page numbering
\include{overall-intro}
\include{wes-intro}
\include{wes-litreview}
\include{wes-methods}
\include{wes-results}
\include{wes-discussion}
\include{cc-litreview}
\include{cc-methods}
\include{cc-results}
\include{cc-discussion}
\include{overall-conclusion}
\appendix
\include{appxA}
%\nocite{*} % BibTeX instruction ... uncomment to include all
% all entries in .bib file in bibliography
%\bibliographystyle{unsrt}
\bibliography{PhD2libraryLatex} % CHANGE TO BASENAME OF YOUR .bib FILE
\printindex % If you intend having an index
\end{document}
Rachel Jones
PhD Candidate I Centre for Genetic Origins of Health and Disease
Faculty of Medicine, Dentistry & Health Sciences, The University of Western Australia
Level 5 MRF Building 50 Murray Street, Perth WA
Tel: +61 8 9224 0394
-----Original Message-----
From: William Atwood [mailto:[email protected]]
Sent: Tuesday, 19 January 2016 11:47 AM
To: [email protected]
Subject: Re: [MiKTeX] Help: undefined control sequence
Rachel,
>From the log that you have provided, it seems that "\chapter" is the
first line of your .tex file. If so, then you need to (at least) define the class file that LaTeX will use. You (probably) want to incorporate other useful packages as well. The error messages from BibTeX are a side effect of the fact that you have not successfully run the LaTeX compile yet. (BibTeX uses a file created by the LaTeX compile.)
Search the web for help on "getting started" with LaTeX. One that I have found helpful is Peter Grogono's "A LaTeX2E Gallimaufry:
Techniques, Tips, and Traps.", which can be found at http://users.encs.concordia.ca/~grogono/Writings/writings.html . He even provides the LaTeX source for the document, which can be quite instructive.
Bill Atwood
On 18/01/2016 10:08 PM, Rachel Jones wrote:
> Command Line: bibtex.exe "overall-intro"
> Startup Folder: F:\PhD\Thesis with LaTeX\Thesis
>
> This is BibTeX, Version 0.99d (MiKTeX 2.9) The top-level auxiliary
> file: overall-intro.aux I found no \bibdata command---while reading
> file overall-intro.aux I found no \bibstyle command---while reading
> file overall-intro.aux (There were 2 error messages)
>
>
> Command Line: texify.exe --pdf --tex-option=--interaction=errorstopmode --tex-option=--synctex=-1 "F:\PhD\Thesis with LaTeX\Thesis\overall-intro.tex"
> Startup Folder: F:\PhD\Thesis with LaTeX\Thesis
>
> This is pdfTeX, Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9) entering
> extended mode ("F:/PhD/Thesis with LaTeX/Thesis/overall-intro.tex"
> LaTeX2e <2015/10/01> patch level 2
> Babel <3.9m> and hyphenation patterns for 69 languages loaded.
> ! Undefined control sequence.
> l.1 \chapter
> {Introduction}
> ? q
> OK, entering \batchmode
> Sorry, but texify.exe did not succeed.
>
> The log file hopefully contains the information to get MiKTeX going again:
>
> C:/Users/rjones/AppData/Local/MiKTeX/2.9/miktex/log/texify.log
>
> You may want to visit the MiKTeX project page, if you need help.
>
>
> _____________________________________________________________________
>
> PDFTeXify Compilation Report (Pages: 0)
>
> Errors: 112 Warnings: 57 Bad Boxes: 144
> _____________________________________________________________________
>
>
>
>
>
>
>
> Rachel Jones
> PhD Candidate I Centre for Genetic Origins of Health and Disease
> Faculty of Medicine, Dentistry & Health Sciences, The University of
> Western Australia Level 5 MRF Building 50 Murray Street, Perth WA
> Tel: +61 8 9224 0394
>
> ----------------------------------------------------------------------
> --------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Q: How can I leave the mailing list?
> A: See http://docs.miktex.org/faq/support.html#leavingml
>
--
Dr. J.W. Atwood, Eng. tel: +1 (514) 848-2424 x3046
Distinguished Professor Emeritus fax: +1 (514) 848-2830
Department of Computer Science
and Software Engineering
Concordia University EV 3.185 email:[email protected]
1455 de Maisonneuve Blvd. West http://users.encs.concordia.ca/~bill
Montreal, Quebec Canada H3G 1M8
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml