Re: Help: undefined control sequence

George McNulty <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>
Dear Ms Jones,

         This is not a question about MikTeX as such but about LaTeX 
more generally.  Anyway, here are my thoughts on your trouble.

         The \chapter command should be defined in uwathes.cls.  In all 
the copies of this that I saw online (all pretty old) this was actually 
done a the end of the documentclass file.  So it may be that you have a 
corrupted copy of the documentclass file (and I hope you have some newer 
version than what I was able to see). Also, I do not have a copy of 
uwamaths.sty so I cannot say what is happening inside it.  It would be 
strange but possible that the unsectioned option on this package is to 
blame.

          LaTeX expects (usually) to see   \documentclass...    on the 
first line of a file it processes.  The file below has that property.  
But probably the file  overall-intro.tex  begins something like   
\chapter{Introduction} so if you try to run LaTeX on that file you will 
likely get an error message (although I would have expected the error 
message to say  ``missing \begin{document}''... ).  If you only want to 
process that one file, the thing to do is insert in the file below the 
line \includeonly{overall-intro}  just before the \begin{document} command.

          There should be someone who can play the role of TeX guru at 
the University of Western Australia.  If there is no one like that in 
your department, try the department of mathematics.

Best of luck

George McNulty




On 1/18/2016 11:07 PM, Rachel Jones wrote:
> 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
>>


------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.