I am having a problem with an appendix title. I have a main.tex file, and several .tex files (one for each section) that are then included in the main.tex file through \input{namefile.tex} command.
However, the appendix section has a problem: the title of the appendix goes under the first three tables that are inside it (all the table contents are hidden):
The code of the main.tex file is as follows:
\documentclass[a4paper,fleqn]{cas-sc}
\UseRawInputEncoding
\usepackage[authoryear,longnamesfirst]{natbib}
% Needed for subfigures
\usepackage{subcaption}
% Needed for better tables
\usepackage{tabularx}
\newcolumntype{g}{X} % big column
\newcolumntype{s}{>{\hsize=.5\hsize}X} % small column
\newcolumntype{Y}{>{\centering\arraybackslash}X} % centered column in tabularx environment
\usepackage{enumitem}
%%%Author macros
\def\tsc#1{\csdef{#1}{\textsc{\lowercase{#1}}\xspace}}
\tsc{WGM}
\tsc{QE}
%%%
\begin{document}
\let\WriteBookmarks\relax
\def\floatpagepagefraction{1}
\def\textpagefraction{.001}
% Short title
\shorttitle{shorttitle}
% Short author
\shortauthors{anonymous}
% Main title of the paper
\title[mode=title]{maintitle}
% Address/affiliation
\affiliation[aff]{organization={org},
%addressline={},
city={city},
% citysep={}, % Uncomment if no comma needed between city and postcode
postcode={pk},
%state={st},
country={c}
}
% First author
%
% Options: Use if required
%\author[<aff no>]{<author name>}[<options>]
\author[aff]{anonymous}[type=editor]
% Corresponding author indication
\cormark[1]
% Footnote of the first author
%\fnmark[1]
% Email id of the author
\ead{mail}
% Corresponding author text
\cortext[1]{Corresponding author}
\begin{abstract}
Abstract
\end{abstract}
% Keywords
% Each keyword is separated by \sep
\begin{keywords}
kw1 \sep kw2
\end{keywords}
\maketitle
%*************************************************************
% Mainmatter
%*************************************************************
%\input{sections/01}
%\input{sections/02}
%\input{sections/03}
%\input{sections/04}
%% Loading bibliography style file
\bibliographystyle{cas-model2-names}
% Loading bibliography database
\bibliography{bibliography.bib}
\clearpage
%% The Appendices part is started with the command \appendix;
%% appendix sections are then done as normal sections
\appendix
\include{sections/appendix}
\end{document}
While the appendix.tex code is as follows (at the beginning):
\section{Tables and Numerical Results}
\label{app:tables-results}
% Number the appendix tables as A.1, A.2, ...
\setcounter{table}{0}
\renewcommand{\thetable}{A.\arabic{table}}
\begin{table}[ht]
\centering
\renewcommand{\arraystretch}{1.5}
\begin{tabularx}{\columnwidth}{XYY}
\hline
&&\\
\hline
&&\\
&&\\
&&\\
&&\\
&&\\
&&\\
&&\\
&&\\
&&\\
\hline
\end{tabularx}
\caption{caption}
\label{tab}
\end{table}
All the other tables are pretty much the same.
I have already tried in changing the [ht] option of the table, by using both [h] and [h!], but without any result.
The class you are using defines tables and figures in such a way that their default position is only at the top of the page. You can hack the code like this:
\documentclass[a4paper,fleqn,draft]{cas-sc}
\usepackage[authoryear,longnamesfirst]{natbib}
\ExplSyntaxOn
\cs_set:Npn \__reset_tbl:
{
\tl_set:Nx \l_tbl_pos_tl { h }
\tl_set:Nx \l_tbl_cols_tl { 1 }
\tl_set:Nn \l_tbl_align_tl { \centering }
\skip_set:Nn \l_tbl_abovecap_skip { 6pt }
\skip_set:Nn \l_tbl_belowcap_skip { 0pt }
\skip_set:Nn \l_tbl_abovetbl_skip { 6pt }
\skip_set:Nn \l_tbl_belowtbl_skip { 6pt }
}
\ExplSyntaxOff
\begin{document}
\section{Tables and Numerical Results}
\label{app:tables-results}
\begin{table}[htbp]
\caption{caption}
\label{tab}
\end{table}
text
\end{document}
Related
I have a csv file called csv1.csv that looks like:
name|surname|grade
Maier|Hans,|A
Huber|Anna|B
Weißbäck|Werner|C
(So my csv is a table with 4 rows and 3 columns. There are tabular lines and not "|" in my csv file - like a spreadsheet.)
My actual file is a .csv file in my desktop that I imported in my overleaf. I have no idea why I am unable to simply display the table, let alone format it, using the csvsimple package. What I tried:
\documentclass[10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{csvsimple}
\begin{document}
\begin{table}[h]
\centering
\csvautobooktabular{csv1.csv}
\end{table}
\caption{My File}
\end{document}
I just want to display my csv file in my beamer and format it a bit (capitalize headers, make them bold, etc) instead of pasting a screenshot of it. If there is any other package that can help me, please feel free to suggest! Thank you!
By default csvsimple assumes commas as the column separator; but your csv1.csv uses pipe characters. So you'll need to specify separator=pipe.
The \caption should also go before the \end{table}. So this should work:
\documentclass[10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{csvsimple}
\begin{document}
\begin{frame}
\begin{table}
\csvautobooktabular[separator=pipe]{csv1.csv}
\caption{My File}
\end{table}
\end{frame}
\end{document}
(Demo on Overleaf: https://www.overleaf.com/read/tnbwbwfbjpqg)
Adapting the example of the following link, you can get the following result
This is the code:
\documentclass{beamer}
\usepackage{csvsimple}
% file content grade.csv
% name,givenname,matriculation,gender,grade
% Maier,Hans,12345,m,1.0
% Huber,Anna,23456,f,2.3
% Weisbaeck,Werner,34567,m,5.0
\begin{document}
\begin{frame}{Title frame}
\begin{table}
\caption{Caption of table}
\begin{tabular}{l|c}%
\hline
\bfseries Person & \bfseries Matr.~No.% specify table head
\csvreader[head to column names]{grade.csv}{}% use head of csv as column names
{\\\hline\givenname\ \name & \matriculation}% specify your columns here
\end{tabular}
\end{table}
\end{frame}
\end{document}
Keep in mind that the *.CSV file is in the same work board and the data is separated by a ","
Hi I'm new to LaTex and doing some translating at school in LaTex. Since I'm translating a book, I received a bulky file and when I tried to build it. It didn't work.. By the way I'm using TexLive and Visual Studio Code for editing.
The error consists of a lot of undefined sequences..
The code mainly operates with 3 files. modern_robotics.tex, mr1.tex and mr2.tex.
Due to copyright reasons and also the big file, I won't be able to upload all the codes. But I think I can upload the three files mentioned above. I think most of the problem is in mr2.. but I'm not sure.
Any help would be appreciated. Thanks.
modern_robotics.tex
\input{mr1}
% to center the book horizontally:
\setlength{\oddsidemargin}{63pt}
\setlength{\evensidemargin}{63pt}
% instead of centering horizontally, make it so pages can be enlarged in 2per printing without large gutter:
%\setlength{\oddsidemargin}{80pt}
%\setlength{\evensidemargin}{46pt}
\input{mr2}
mr1.tex
\documentclass[10pt]{book}
%======================================================================%
% PACKAGES %
%======================================================================%
\usepackage[centertags]{amsmath}
\usepackage{amsthm,amsfonts,amssymb,enumerate} % Amstex
%\usepackage{Jtocinc}% Jtocinc.sty Include Table of Contents as first entry
%\usepackage{fancybox}
\usepackage{makeidx}
\makeindex
\usepackage[shortlabels]{enumitem}
\usepackage{color}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{rotating}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{xspace}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{ifthen,version}
\usepackage{cancel}
\usepackage{arydshln}
\usepackage{mathtools}
\usepackage{booktabs}
\usepackage{xcolor}
\usepackage{framed}
\definecolor{shadecolor}{rgb}{0.9,0.9,0.9}
% For translation!!!!!!!!
\usepackage{kotex}
\usepackage{titlesec}
\titleformat{\chapter}% reformat chapter headings
[hang]% like section, with number on same line
{\Huge\bfseries}% formatting applied to whole
{\thechapter~장.}% Chapter number
{0.5em}% space between # and title
{}% formatting applied just to title
\titlespacing*{\chapter}{0pt}{-5mm}{20mm}
\titlespacing*{\section}{0pt}{15mm}{15mm}
\titlespacing*{\subsection}{0pt}{15mm}{15mm}
\titlespacing*{\subsubsection}{0pt}{15mm}{15mm}
\renewcommand{\figurename}{그림}
\usepackage{geometry}
\geometry{
a4paper,
left=20mm,
right=31mm,
top=40mm,
bottom=40mm
}
\usepackage[font={footnotesize,stretch=1.6}]{caption}
\setlength{\belowcaptionskip}{15mm}
\usepackage{setspace}
\setstretch{1.6}
\setlength\parindent{0pt}
% For translation!!!!!!!!
%%%%%%%%%%% for long sub-figures (160824) %%%%%%%%
\usepackage{caption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{csquotes}
\usepackage[linktoc=all,colorlinks=true,urlcolor=blue]{hyperref}
\hypersetup{
colorlinks,
linkcolor=blue
}
\newboolean{include-notes}
% Comment out the following line to exclude the notes.
\setboolean{include-notes}{false}
%notes
\newcommand{\fpnote}[1]{\ifthenelse{\boolean{include-notes}}%
{\textbf{FP says: #1}}{}}
\newcommand{\klnote}[1]{\ifthenelse{\boolean{include-notes}}%
{\textbf{KL says: #1}}{}}
\newcommand{\kldraft}[1]{\ifthenelse{\boolean{include-notes}}%
{#1}{}}
\newenvironment{function}[2]
{
\vspace*{0.1in}
\noindent
\verb~#1~
\\
\noindent
#2
}{}
\usepackage{draftcopy}
\usepackage{fancyhdr}
\usepackage{datetime}
\begin{comment}
\usepackage[linktoc=all]{hyperref}
\hypersetup{
colorlinks,
linkcolor=blue
}
\end{comment}
% Visual ornaments
% \usepackage[avantgarde]{quotchap}
% select Sanserif font for title and quote
% \renewcommand\sectfont{\sffamily\bfseries\Huge}
% San serif section headers
\usepackage{sfsect}
% hyperref package should be the last one in \usepackage list
% \usepackage[colorlinks,backref]{hyperref}
%********** Fine Tune for this TeX
\hfuzz2pt % Don't bother to report over-full boxes if over-edge is < 2pt
\hyphenation{di-men-sion-al}
%\renewcommand{\theenumi}{\roman{enumi}}
%\renewcommand{\labelenumi}{{\normalfont(\theenumi)}}
\renewcommand{\theenumi}{\alph{enumi}}
\renewcommand{\labelenumi}{{\normalfont(\theenumi)}}
%======================================================================%
% COMMANDS %
%======================================================================%
%\renewcommand{\baselinestretch}{1.5}
%\renewcommand{\baselinestretch}{1.0}
% new commands for unit axes vectors
\newcommand{\xhat}{\ensuremath{\hat{\text{x}}}}
\newcommand{\yhat}{\ensuremath{\hat{\text{y}}}}
\newcommand{\zhat}{\ensuremath{\hat{\text{z}}}}
\newcommand{\Xhat}{\ensuremath{\hat{\text{X}}}}
\newcommand{\Yhat}{\ensuremath{\hat{\text{Y}}}}
\newcommand{\Zhat}{\ensuremath{\hat{\text{Z}}}}
\newcommand{\xhats}{\ensuremath{\hat{\text{x}}_{\text{s}}}}
\newcommand{\yhats}{\ensuremath{\hat{\text{y}}_{\text{s}}}}
\newcommand{\zhats}{\ensuremath{\hat{\text{z}}_{\text{s}}}}
\newcommand{\xhatb}{\ensuremath{\hat{\text{x}}_{\text{b}}}}
\newcommand{\yhatb}{\ensuremath{\hat{\text{y}}_{\text{b}}}}
\newcommand{\zhatb}{\ensuremath{\hat{\text{z}}_{\text{b}}}}
\newcommand{\xhatc}{\ensuremath{\hat{\text{x}}_{\text{c}}}}
\newcommand{\yhatc}{\ensuremath{\hat{\text{y}}_{\text{c}}}}
\newcommand{\zhatc}{\ensuremath{\hat{\text{z}}_{\text{c}}}}
% new commands for abstract (unrepresented) vectors
\newcommand{\vecp}{\ensuremath{\text{p}}}
\newcommand{\vecq}{\ensuremath{\text{q}}}
\newcommand{\vecr}{\ensuremath{\text{r}}}
\newcommand{\vecs}{\ensuremath{\text{s}}}
\newcommand{\vect}{\ensuremath{\text{t}}}
\newcommand{\vecu}{\ensuremath{\text{u}}}
\newcommand{\vecv}{\ensuremath{\text{v}}}
\newcommand{\vecw}{\ensuremath{\text{w}}}
\newcommand{\vecx}{\ensuremath{\text{x}}}
\newcommand{\vecy}{\ensuremath{\text{y}}}
\newcommand{\vecz}{\ensuremath{\text{z}}}
% new commands for orthogonal group
\newcommand{\SOthree}{\ensuremath{SO(3)}\xspace}
\newcommand{\SOtwo}{\ensuremath{SO(2)}\xspace}
\newcommand{\SOn}{\ensuremath{SO(n)}\xspace}
\newcommand{\sothree}{\ensuremath{so(3)}\xspace}
\newcommand{\sotwo}{\ensuremath{so(2)}\xspace}
\newcommand{\son}{\ensuremath{so(n)}\xspace}
\newcommand{\SE}{\ensuremath{SE(3)}\xspace}
\newcommand{\se}{\ensuremath{se(3)}\xspace}
% new commands for bold face greeks
\newcommand{\bomega}{\ensuremath{\mathbf{\omega}}}
\newcommand{\blambda}{\ensuremath{\mathbf{\lambda}}}
% new commands for mathematical equations
\newcommand{\defeq}{\ensuremath{\triangleq}}
\newcommand{\trans}{\ensuremath{^{\mbox{\scriptsize $\top$}}}}
\newcommand{\invtrans}{\ensuremath{^{\mbox{\scriptsize $-\top$}}}}
\newcommand{\inverse}{\ensuremath{^{\mbox{\scriptsize -1}}}}
\newcommand{\smallTH}{\ensuremath{^{\mbox{\scriptsize th}}}}
\newcommand{\trace}{\ensuremath{\mathrm{tr}}}
\newcommand{\RE}{\ensuremath{\mathbb{R}}}
\newcommand{\strad}{\bar{}\!\!\!\!\:d}
\newcommand{\bstrad}{\,\,\,\bar{}\!\!\!\!\:d}
\newcommand{\xinit}{\ensuremath{x^{\circ}}}
\newcommand{\optimal}{\ensuremath{^{\mbox{\scriptsize \textsf {OPT}}}}}
% new commands for abbreviations and others
\newcommand{\etal}{\textit{et al.}\#\xspace}
\newcommand{\eg}{\textit{e.g.,}\xspace}
\newcommand{\ie}{\textit{i.e.,}\xspace}
\newcommand{\etc}{\textit{etc}\#\xspace}
%\newcommand{\mass}{\mathfrak{m}}
%\newcommand{\gravity}{\mathfrak{g}}
% Zero height rule of width of one quad
\newcommand{\IR}[1]{\rule{1em}{0pt}%
\makebox[0cm][c]{\rotatebox{45}{\ #1}}}
%********** Definitions for proof
\def\QED{\mbox{\rule[0pt]{1.5ex}{1.5ex}}}
\def\endofrmk{\hspace*{\fill}~$\Diamond$\par\endtrivlist\unskip}
%********** Environments
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{명제}
%
\theoremstyle{definition}
\newtheorem{definition}{정의}[chapter]
\newtheorem{assumption}{Assumption}[chapter]
\newtheorem{condition}{Condition}[chapter]
\newtheorem{example}{예제}[chapter]
%
%
\numberwithin{equation}{chapter}
%\renewcommand{\theequation}{\thesection.\arabic{equation}}
%********** Tools
\newcommand{\mnote}[1]%
{\mbox{}\marginpar{\raggedright\hspace{0pt}\small#1}}
% {\footnote{#1}}
%\reversemarginpar
\newcommand {\nemo} {\hfill $\Box$ }
\newlength{\blenfbox}
\newsavebox{\boxff}
\newenvironment{FramedPar}%
{\setlength{\fboxsep}{15pt}%
\setlength{\blenfbox}{\fboxsep}%
\addtolength{\blenfbox}{\fboxrule}%
\begin{lrbox}{\boxff}
\minipage{\textwidth}}%
{\endminipage\end{lrbox}
\bigskip\noindent\hspace*{-\blenfbox}%
\fbox{\usebox{\boxff}}\bigskip\bigskip}
\newlength{\mylength}
\newenvironment{FramedNM}%
{\setlength{\fboxsep}{5pt}%
\setlength{\mylength}{\fboxsep}%
\addtolength{\mylength}{\fboxrule}%
\Sbox
\minipage{\textwidth}%
\setlength{\abovedisplayskip}{0pt}}%
{\endminipage\endSbox\par
\addvspace{\smallskipamount}\noindent\hspace*{-\mylength}%
\fbox{\TheSbox}\smallskip}
\newenvironment{FramedEqn}%
{\setlength{\fboxsep}{15pt}
\setlength{\mylength}{\linewidth}%
\addtolength{\mylength}{-2\fboxsep}%
\addtolength{\mylength}{-2\fboxrule}%
\Sbox
\minipage{\mylength}%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\equation}%
{\endequation\endminipage\endSbox
\[\fbox{\TheSbox}\]}
\newcounter{xmplctr}
\newcounter{rmrkctr}
\newenvironment{remark}{
\addtocounter{rmrkctr}{1}
\begin{trivlist}
\item[] {\bf Remark \thermrkctr}
}{\end{trivlist}}
%\setlength{\textheight}{7.5in} % fit to b5
%\setlength{\textwidth}{5.5in} % fit to b5
%\setlength{\oddsidemargin}{0.5in}
%\setlength{\evensidemargin}{0.5in}
%\setlength{\footskip}{20mm} % fit to b5
\raggedbottom
%======================================================================%
% COMMANDS FROM KEVIN %
%======================================================================%
% to make the book: pdflatex; bibtex; pdflatex; pdflatex; makeindex; pdflatex
\usepackage{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Indexing. See http://en.wikibooks.org/wiki/LaTeX/Indexing
%
% usual method when defining a term is {\bf term}\index{indexed form of term}
% if we want it to appear in the index as
%
% joint
% revolute, 13
%
% then use {\bf revolute joint}\index{joint|revolute}
%
% can also use \indbf{term} for bold indexed term or \ind{term} for indexed term as short hand if printed
% form is same way it should show up in index
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\topfraction}{0.99}
\renewcommand{\textfraction}{0.01}
\renewcommand{\floatpagefraction}{0.95}
\renewcommand{\textfloatsep}{6mm}
\providecommand{\ind}[1]{#1\index{#1}}
\providecommand{\indbf}[1]{{\bf #1}\index{#1}}
\DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png,.eps} %For pdftex
\newcommand{\real}{\mathbb{R}}
\renewcommand{\Re}{\mathbb{R}} % redefine script R
%\newenvironment{flushenum}{
%\begin{enumerate}
% \setlength{\leftmargin}{0pt}
%}{\end{enumerate}}
\setcounter{secnumdepth}{3}
\newcounter{exercise}[chapter]
\newcommand{\exercise}{\refstepcounter{exercise} \vspace*{5mm} \noindent {\bf \theexercise. }}
\newcommand{\colwidth}{4.8in}
\newcommand{\zeroopen}{[0}
\newcommand{\fzclose}{f_z]^T}
\newcommand{\angvel}{\boldsymbol{\omega}}
\newcommand{\jointtorques}{\boldsymbol{\tau}}
\newcommand{\linvel}{{\bf v}}
%\newcommand{\torque}{{\bf n}}
\newcommand{\torque}{{\bf m}}
%\newcommand{\torquescalar}{n}
\newcommand{\torquescalar}{m}
\newcommand{\force}{{\bf f}}
%\newcommand{\twist}{{\bf t}}
%\newcommand{\wrench}{{\bf w}}
\newcommand{\pos}{{\bf p}}
\newcommand{\rot}{{\bf R}}
\newcommand{\partframe}{P}
\newcommand{\worldframe}{O}
\newcommand{\contactloc}{{\bf x}}
\newcommand{\contactnorm}{\hat{{\bf u}}}
%\newcommand{\config}{{\bf q}}
\newcommand{\config}{q}
\newcommand{\constraints}{{\bf f}}
\newcommand{\crossp}[1]{[#1]}
%\newcommand{\fmode}{{\tt r}}
%\newcommand{\rollmode}{\fmode}
%\newcommand{\smode}{{\tt s}}
%\newcommand{\bmode}{{\tt b}}
%\newcommand{\lmode}{{\tt s}$_\ell$}
%\newcommand{\rmode}{{\tt s}$_r$}
\newcommand{\fmode}{{\tt R}}
\newcommand{\rollmode}{\fmode}
\newcommand{\smode}{{\tt S}}
\newcommand{\bmode}{{\tt B}}
\newcommand{\lmode}{{\tt Sl}}
\newcommand{\rmode}{{\tt Sr}}
\newcommand{\wrench}{\mathcal{F}}
\newcommand{\twist}{\mathcal{V}}
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
%\newcommand{\mass}{{\textrm m}}
%\newcommand{\gravity}{{\textrm g}}
\newcommand{\mass}{\mathfrak{m}}
\newcommand{\gravity}{\mathfrak{g}}
\newcommand{\exerenumbegin}{\begin{enumerate}[itemsep=0pt,parsep=0pt,partopsep=0pt,topsep=0pt]}
\newcommand{\exerenumend}{\end{enumerate}}
%======================================================================%
% END COMMANDS FROM KEVIN %
%======================================================================%
%\input{formatting}
\usdate
\begin{comment}
\pagestyle{fancy}
\fancyhead{} % turn off default
\rfoot{\currenttime ~ \today}
\lfoot{Lynch and Park}
\lhead{\slshape \leftmark}
\end{comment}
% size so the same build works for all these cases, with character size at least the same as 10pt printed:
% 8.5x11 or A4 (8.27 x 11.69), one book page per page
% same as above, but two pages per page
% 9.7 in diagonal view tablet, which is 5.82 in x 7.76 in (3/4 ratio)
% so 4.75 in width, 7.2 in height assures 0.5'' vertical margins printed 2per on A4 paper, and 0.5'' side margins and gutter printed 2 per on 8.5x11
% 7.2 in includes text and header. if default head height is 12pt and headsep is 25pt (total 37 pt about 0.5''), that means textheight is 6.7''.
% need 1.9'' at
% but for some reason 0.6in seems to work better for centering the header+text (ignoring foo.
% maybe book class changes some spacings from defaults.
%
% VERSIONS TO MAKE:
% - tablet version (margins stripped), working hyperlinks
% - printable large font version (A4 and 8.5x11), working hyperlinks
% - printable 2 per page version (A4 and 8.5x11), hyperlinks probably don't work
% to center vertically:
\setlength{\textheight}{6.7in}
\setlength{\voffset}{0.6in}
mr2.tex
%======================================================================%
% USE TO ONLY MAKE PART OF THE BOOK %
%======================================================================%
%
%\includeonly{chapters/ch03-rbm/ch03-text}
%======================================================================%
% Title Page %
%======================================================================%
\begin{document}
\frontmatter
\begin{titlepage}
\selectfont
\begin{center}
%\renewcommand{\baselinestretch}{1.5}
\pagestyle{empty}
\LARGE{\bfseries MODERN ROBOTICS\\ \vspace*{0.2in}
\Large{MECHANICS, PLANNING, AND CONTROL}
}
\vspace{50mm}
\Large{\scshape Kevin M. Lynch and Frank C. Park} \\
\normalsize
\vspace*{0.2in}
\today
\vspace*{0.7in}
This document is the unedited preprint version of \vspace*{0.1in} \\
\large{\emph{Modern Robotics}} \\
\normalsize
\emph{Mechanics, Planning, and Control} \\
%Kevin M. Lynch and Frank C. Park \vspace*{0.1in} \\
\copyright ~Kevin M. Lynch and Frank C. Park \vspace*{0.1in} \\
\end{center}
\noindent
This preprint is being made available for personal use only and not for further distribution. The book will be published by Cambridge University Press in May 2017,
ISBN 9781107156302. Citations of the book should cite Cambridge University Press as the publisher, with a publication date of 2017. Original figures from this book may be reused provided proper citation is given. More information on the book, including software, videos, and a feedback form can be found at \url{http://modernrobotics.org}. Comments are welcome!
\end{titlepage}
\thispagestyle{empty}
\cleardoublepage
%======================================================================%
% Foreword and Preface %
%======================================================================%
%\renewcommand{\chaptermark}[1]{%
% \markboth{}{}}
%\renewcommand{\sectionmark}[1]{%
% \markright{}}
%\cleardoublepage
%\chaptermark{}
%\sectionmark{}
%\sectionmark{\href{http://lynchandpark.org}{Modern Robotics, Lynch and Park}}
%\sectionmark{some stuff}
%\pagenumbering{arabic}
\begin{comment}
\pagestyle{myheadings}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection.\ #1}}
\end{comment}
%\begin{comment}
%\newcommand{\helv}{\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}
%\newcommand{\helv}{\fontfamily{phv}\fontsize{9}{11}\selectfont}
\pagestyle{fancy}
\fancyhf{}
%\renewcommand{\headrulewidth}{0pt}
\fancyhead[LE,RO]{\small\thepage}
\fancyhead[RE]{\small\nouppercase{\rightmark}}
\fancyhead[LO]{\small\nouppercase{\leftmark}}
\fancyfoot[CO,CE]{\footnotesize \href{http://modernrobotics.org}{\copyright Lynch and Park. Nov.\ 2016 preprint of \emph{Modern Robotics}, Cambridge U.\ Press, 2017.}}
%\fancyhead[RE]{\small\scshape\nouppercase{\rightmark}}
%\fancyhead[LO]{\small\scshape\nouppercase{\leftmark}}
%\fancyhead[LE,RO]{\helv \thepage}
%\fancyhead[RE]{\helv \rightmark}
%\fancyhead[LO]{\helv \leftmark}
%\end{comment}
\setcounter{page}{1}
\tableofcontents
\cleardoublepage
\fancyhead[RE,LO]{\small Foreword}
\include{chapters/foreword/foreword}
\cleardoublepage
\fancyhead[RE,LO]{\small Preface}
\include{chapters/preface/preface-text}
\cleardoublepage
\renewcommand{\chaptermark}[1]{\markboth{\arabic{chapter}~장.\ #1}{}}
\fancyhead[RE]{\small\nouppercase{\rightmark}}
\fancyhead[LO]{\small\nouppercase{\leftmark}}
%\pagestyle{plain}
%\pagenumbering{roman}
%\setcounter{page}{2}
%\kldraft{\include{chapters/notation}}
%======================================================================%
% Table of Contents %
%======================================================================%
%\tableofcontents
%\cleardoublepage
%\addcontentsline{toc}{chapter}{List of Tables}
%\listoftables
%\cleardoublepage
%\addcontentsline{toc}{chapter}{List of Figures}
%\listoffigures
%\cleardoublepage
%\include{chapters/chapter0/ch0}
%\cleardoublepage
%======================================================================%
% Chapters %
%======================================================================%
\mainmatter
\include{chapters/ch01-preview/ch01-text}
\cleardoublepage
\include{chapters/ch02-cspace/ch02-text}
\cleardoublepage
\include{chapters/ch03-rbm/ch03-text}
\cleardoublepage
\include{chapters/ch04-kinematics/ch04-text}
\cleardoublepage
\include{chapters/ch05-velkinematics/ch05-text}
\cleardoublepage
\include{chapters/ch06-invkinematics/ch06-text}
\cleardoublepage
\include{chapters/ch07-closed/ch07-text}
\cleardoublepage
\include{chapters/ch08-dynamics/ch08-text}
\cleardoublepage
\include{chapters/ch09-trajectory/ch09-text}
\cleardoublepage
\include{chapters/ch10-planning/ch10-text}
\cleardoublepage
\include{chapters/ch11-control/ch11-text}
\cleardoublepage
\include{chapters/ch12-contact/ch12-text}
\cleardoublepage
\include{chapters/ch13-mobile/ch13-text}
\cleardoublepage
%======================================================================%
% APPENDIX %
%======================================================================%
\appendix
\cleardoublepage
\include{chapters/app1-formulas/app1-text}
\cleardoublepage
\include{chapters/app2-rotationreps/app2-text}
\cleardoublepage
\include{chapters/app3-dh/app3-text}
\cleardoublepage
\include{chapters/app4-optimization/app4-text}
\cleardoublepage\phantomsection % the \phantomsection seems to be needed to correctly hyperref
%\appendix
%\include{chapters/appendix}
%\cleardoublepage
%======================================================================%
% BIBLIOGRAPHY %
%======================================================================%
%\pagestyle{headings}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
\bibliography{robotics-frank,robotics-kevin}
\cleardoublepage\phantomsection % the \phantomsection seems to be needed to correctly hyperref
%======================================================================%
% INDEX %
%======================================================================%
%\begin{comment}
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\cleardoublepage
%\end{comment}
\end{document}
It seems that I can't post images due to 10 reputations rule. Some of the errors are as below. (for mr2.tex)
The font size command \normalsize is not defined(Ln 10, Col 1)
checked for documentclass but no problem.
Environment titlepage undefined(Ln 14, Col 1)
Undefined control sequence. - many times.
error_screencapture
I have a tex-file obtained originally from RStudio with bookdown. The original set of Rmd-files were deleted by accident.
So I need to convert below minimized correct tex-file to Word (docx file extension):
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{article}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\#ifundefined{KOMAClassName}{% if non-KOMA class
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
pdftitle={Simple document},
hidelinks,
pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
\usepackage[margin=1in]{geometry}
\usepackage{longtable,booktabs,array}
\usepackage{calc} % for calculating minipage widths
% Correct order of tables after \paragraph or \subparagraph
\usepackage{etoolbox}
\makeatletter
\patchcmd\longtable{\par}{\if#noskipsec\mbox{}\fi\par}{}{}
\makeatother
% Allow footnotes in longtable head/foot
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
\makesavenoteenv{longtable}
\usepackage{graphicx}
\makeatletter
\def\maxwidth{\ifdim\Gin#nat#width>\linewidth\linewidth\else\Gin#nat#width\fi}
\def\maxheight{\ifdim\Gin#nat#height>\textheight\textheight\else\Gin#nat#height\fi}
\makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
% Set default figure placement to htbp
\makeatletter
\def\fps#figure{htbp}
\makeatother
\usepackage[normalem]{ulem}
% Avoid problems with \sout in headers with hyperref
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{5}
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi
\usepackage[]{biblatex}
\addbibresource{bibliography.bib}
\title{Simple document}
\author{}
\date{\vspace{-2.5em}}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{conjecture}{Conjecture}[section]
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\theoremstyle{definition}
\newtheorem{example}{Example}[section]
\theoremstyle{definition}
\newtheorem{exercise}{Exercise}[section]
\theoremstyle{remark}
\newtheorem*{remark}{Remark}
\newtheorem*{solution}{Solution}
\begin{document}
\maketitle
{
\setcounter{tocdepth}{2}
\tableofcontents
}
\hypertarget{format}{%
\section{Format}\label{format}}
Read \ref{format} for details.
Or read \protect\hyperlink{format}{format}.
Formatting:
\begin{itemize}
\tightlist
\item
sup-script or power - x\textsuperscript{2} ;
\item
sub-script - y\textsubscript{3} ;
\item
strike through - \sout{strike through} ;
\item
term -- definition ;
\item
long term --- long definition .
\end{itemize}
Here comes \textbf{footnote} \footnote{Footnote text} with its contents.
Image with caption, see \ref{fig:image}.
\begin{figure}
\centering
\includegraphics{image.png}
\caption{\label{fig:image} Image}
\end{figure}
Labeled table is below, see table \ref{tab:table}.
\begin{longtable}[]{#{}ll#{}}
\caption{\label{tab:table}\\
My table}\tabularnewline
\toprule
\textbf{Col 1 header} & \textbf{Col 2 header} \\
\midrule
\endfirsthead
\endhead
r1c1 & r1c2 \\
r2c1 & r2c2 \\
\bottomrule
\end{longtable}
Inline: \(a^2 + b^2 = c^2\).
Block:
\[ E = \frac{mc^2}{\sqrt{1-\frac{v^2}{c^2}}} \]
Labeled, see \eqref{eq:eq}:
\begin{equation}
f\left(k\right) =\binom{n}{k} p^k\left(1-p\right)^{n k}
\label{eq:eq}
\end{equation}
See LaTeX \autocite{latex} site for details.
Code is below, see \ref{exm:code}:
\begin{example}
\protect\hypertarget{exm:code}{}{\label{exm:code} }Hello world
\end{example}
\begin{verbatim}
int main(){
return 0;
}
\end{verbatim}
\hypertarget{references}{%
\section*{References}\label{references}}
\addcontentsline{toc}{section}{References}
\printbibliography
\end{document}
When I try to convert it to docx using pandoc (2.16.1 version) command below:
pandoc simple.tex --to docx+native_numbering --output simple.docx --table-of-contents --toc-depth 5 --number-sections --citeproc --verbose --csl ieee.csl
(In the above command ieee.csl was downloaded from Zotero).
I get
and I see many strange things:
[fig:image] along with Figure with number;
[tab:table] along with Table with number;
[eq:eq] instead of equation number;
[exm:code] instead of example number.
Is it possible to replace (or suppress them for Figure and Table) above strange […] fields by correct numbers and links using Pandoc to get correct docx output?
This is currently not supported by plain pandoc, but you can use filters to get the numbering back. E.g., the resolve-references.lua filter in the OpenJournals "Inara" project does something comparable. You may have to adjust and extend it to fully suit your requirements.
How do I vertically center the (web, email, email, mobile) field right to the QR-code?
\documentclass[11pt,a4paper]{memoir}
\setstocksize{55mm}{85mm} % UK Stock size
\setpagecc{55mm}{85mm}{*}
\settypeblocksize{45mm}{75mm}{*}
\setulmargins{5mm}{*}{*}
\setlrmargins{5mm}{*}{*}
\usepackage{xcolor}
\setheadfoot{0.1pt}{0.1pt}
\setheaderspaces{1pt}{*}{*}
\usepackage{fontspec}
\checkandfixthelayout[fixed]
\pagestyle{empty}
\usepackage{pstricks}
\usepackage{auto-pst-pdf,pst-barcode}
\begin{document}
\begin{Spacing}{0.75}%
\noindent
\textbf{Helena Doe}\\
\tiny subtitle \hfill {\color{gray}Division / Employer}\\
\rule{74mm}{.3mm}\\
\begin{minipage}[t]{33mm}
\vspace{-0mm}%
\begin{pspicture}(25mm,25mm)
% The MECARD format is used to exchange contact information. More information at:
% http://www.nttdocomo.co.jp/english/service/imode/make/content/barcode/function/application/addressbook/index.html
\psbarcode{MECARD:N:Last name, First Name;URL:https://fqdn;EMAIL:helena#univ.edu;NOTE:GPG: ;;}{eclevel=L width=1 height=1}{qrcode}
\end{pspicture}
\end{minipage}
\hspace{1mm}
\begin{minipage}[t]{42mm}
\vspace{-0mm}%
\begin{flushleft}
{\scriptsize
\begin{Spacing}{1}%
% \textbf{Job Title}\\
% \hspace{5mm}Speciality 1\\
% \hspace{5mm}Speciality 2\\
% \hspace{5mm}Speciality 3 \vspace{2mm}\\
\end{Spacing}
}
{\tiny
\begin{tabular}{rl}
{\color{gray}web} & https://fqdn/\\
{\color{gray}email} & helena#univ.edu\\
{\color{gray}email} & hxr42#gmail.com\\
{\color{gray}mobile} & +1 123 456 7890\\
\end{tabular}
\vspace*{2mm}
}
\end{flushleft}
\end{minipage}
\rule{74mm}{0mm}\\
\texttt{\fontsize{2.84mm}{3.55mm}\selectfont 425B 030A B8D2 0316 CA1B 4709 CA83 5DDA EC31 CA56} % GPG KEY ID
\end{Spacing}
\end{document}
I tried
\vapce*{\fill}
but this does not work. And I tried some other things, which failed all.
Has anybody an idea?
For compelation I u xelatex!
Okay, I need some more details, sorry, but I have said everything about this problem, this is really annoying.
complexinfinity
minipage allows to specify the height with an optional argument. If this option is set, the text can be centred with the c key:
% !TeX TS-program = xelatex
\documentclass[11pt,a4paper]{memoir}
\setstocksize{55mm}{85mm} % UK Stock size
\setpagecc{55mm}{85mm}{*}
\settypeblocksize{45mm}{75mm}{*}
\setulmargins{5mm}{*}{*}
\setlrmargins{5mm}{*}{*}
\usepackage{xcolor}
\setheadfoot{0.1pt}{0.1pt}
\setheaderspaces{1pt}{*}{*}
\usepackage{fontspec}
\checkandfixthelayout[fixed]
\pagestyle{empty}
\usepackage{pstricks}
\usepackage{auto-pst-pdf,pst-barcode}
\begin{document}
\begin{Spacing}{0.75}%
\noindent
\textbf{Helena Doe}\\
\tiny subtitle \hfill {\color{gray}Division / Employer}\\
\rule{74mm}{.3mm}\\
\begin{minipage}[t]{33mm}
\vspace{-0mm}%
\begin{pspicture}(25mm,25mm)
% The MECARD format is used to exchange contact information. More information at:
% http://www.nttdocomo.co.jp/english/service/imode/make/content/barcode/function/application/addressbook/index.html
\psbarcode{MECARD:N:Last name, First Name;URL:https://fqdn;EMAIL:helena#univ.edu;NOTE:GPG: ;;}{eclevel=L width=1 height=1}{qrcode}
\end{pspicture}
\end{minipage}
\hspace{1mm}
\begin{minipage}[t][24mm][c]{42mm}
\tiny
\begin{tabular}{rl}
{\color{gray}web} & https://fqdn/\\
{\color{gray}email} & helena#univ.edu\\
{\color{gray}email} & hxr42#gmail.com\\
{\color{gray}mobile} & +1 123 456 7890\\
\end{tabular}
\end{minipage}
\rule{74mm}{0mm}\\
\texttt{\fontsize{2.84mm}{3.55mm}\selectfont 425B 030A B8D2 0316 CA1B 4709 CA83 5DDA EC31 CA56} % GPG KEY ID
\end{Spacing}
\end{document}
Hello I'm new in Latex.
I was trying to write my thesis, using the MasterDoctoralClass.cls.
This is my main.tex:
\documentclass[
11pt,
english,
singlespacing,
headsepline
]{MastersDoctoralThesis}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} )
\addbibresource{example.bib}
\usepackage[autostyle=true]{csquotes}
%----------------------------------------------------------------------------------------
% MARGIN SETTINGS
%----------------------------------------------------------------------------------------
\geometry{
paper=a4paper,
inner=2.5cm,
outer=3.8cm,
bindingoffset=.5cm,
top=1.5cm,
bottom=1.5cm
}
%----------------------------------------------------------------------------------------
% THESIS INFORMATION
%----------------------------------------------------------------------------------------
\thesistitle{Title Thesis}
\supervisor{Prof. X \textsc{Y} \\ Dr. Z \textsc{W}}
\degree{Master of Science in Electronic Engineering}
\author{Name \textsc{Surname}}
\subject{Electronic Engineering}
\keywords{}
\university{{Università}}
\department{{Department of Information Engineering, Electronics and Telecommunications}}
\group{{Master of Science in Electronic Engineering}}
\faculty{{Faculty of Information Engineering, Informatics and Statistics}}
\AtBeginDocument{
\hypersetup{pdftitle=\ttitle}
\hypersetup{pdfauthor=\authorname}
\hypersetup{pdfkeywords=\keywordnames}
}
\begin{document}
\frontmatter
\pagestyle{plain}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\begin{titlepage}
\begin{center}
\includegraphics[scale=1]{logo.jpg}
\end{center}
\begin{center}
\vspace*{.01\textheight}
\textsc{\Large Master Thesis}\\[1cm]
\HRule \\[0.4cm]
{\huge \bfseries \ttitle\par}\vspace{0.4cm}
\HRule \\[1.5cm]
\begin{minipage}[t]{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
\href{}{\authorname}
\end{flushleft}
\end{minipage}
\begin{minipage}[t]{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
{\supname}
\end{flushright}
\end{minipage}\\[2cm]
\begin{center}
\includegraphics[scale=0.4]{logo2.jpg}\hfill\includegraphics[scale=0.5]{logo3.jpg}
\end{center}
\vspace*{1.5cm}
\groupname\\\deptname\\[1.5cm]
\vfill
\rule{3cm}{1pt}\\
{\large \today}\\[4cm]
%\includegraphics{Logo}
\vfill
\end{center}
\end{titlepage}
%----------------------------------------------------------------------------------------
% QUOTATION PAGE
%----------------------------------------------------------------------------------------
\vspace*{0.2\textheight}
\begin{flushright}
\thispagestyle{empty}
\vspace*{5cm}
\itshape\enquote{Something}\\[0.3cm]
\end{flushright}
\hfill Name
%----------------------------------------------------------------------------------------
% ABSTRACT PAGE
%----------------------------------------------------------------------------------------
\begin{abstract}
\addchaptertocentry{\abstractname}
The Thesis Abstract is written here (and usually kept to just this page). The page is kept centered vertically so can expand into the blank space above the title too\ldots
\end{abstract}
%----------------------------------------------------------------------------------------
% ACKNOWLEDGEMENTS
%----------------------------------------------------------------------------------------
\begin{acknowledgements}
\addchaptertocentry{\acknowledgementname}
The acknowledgments and the people to thank go here, don't forget to include your project advisor\ldots
\end{acknowledgements}
%----------------------------------------------------------------------------------------
% LIST OF CONTENTS/FIGURES/TABLES PAGES
%----------------------------------------------------------------------------------------
\tableofcontents
\listoffigures
\listoftables
%----------------------------------------------------------------------------------------
% ABBREVIATIONS
%----------------------------------------------------------------------------------------
\begin{abbreviations}{ll} %
\textbf{LAH} & \textbf{L}ist \textbf{A}bbreviations \textbf{H}ere\\
\textbf{WSF} & \textbf{W}hat (it) \textbf{S}tands \textbf{F}or\\
\end{abbreviations}
%----------------------------------------------------------------------------------------
% PHYSICAL CONSTANTS/OTHER DEFINITIONS
%----------------------------------------------------------------------------------------
\begin{constants}{lr#{${}={}$}l}
Speed of Light & $c_{0}$ & \SI{2.99792458e8}{\meter\per\second} (exact)\\
\end{constants}
%----------------------------------------------------------------------------------------
% SYMBOLS
%----------------------------------------------------------------------------------------
\begin{symbols}{lll}
$a$ & distance & \si{\meter} \\
$P$ & power & \si{\watt} (\si{\joule\per\second}) \\
%Symbol & Name & Unit \\
\addlinespace
$\omega$ & angular frequency & \si{\radian} \\
\end{symbols}
%----------------------------------------------------------------------------------------
% DEDICATION
%----------------------------------------------------------------------------------------
\dedicatory{For my family}
\end{document}
%----------------------------------------------------------------------------------------
% THESIS CONTENT - CHAPTERS
%----------------------------------------------------------------------------------------
\mainmatter
\pagestyle{thesis}
\include{Chapters/Introduction}
%\include{Chapters/Chapter1}
If I compile main.tex (with PDFLatex, I also did it with Latex and PDFTex) it doesn't return me any error, but when I look at the PDF it doesn't print the Introduction.
So I was watching to the Introduction.tex:
% Chapter 1
\chapter{Chapter Title Here} % Main chapter title
\label{Chapter1} % For referencing the chapter elsewhere, use \ref{Chapter1}
%----------------------------------------------------------------------------------------
% Define some commands to keep the formatting separated from the content \newcommand{\keyword}[1]{\textbf{#1}} \newcommand{\tabhead}[1]{\textbf{#1}} \newcommand{\code}[1]{\texttt{#1}} \newcommand{\file}[1]{\texttt{\bfseries#1}} \newcommand{\option}[1]{\texttt{\itshape#1}}
%----------------------------------------------------------------------------------------
\section{Welcome and Thank You} Welcome to this \LaTeX{} Thesis Template, a beautiful and easy to use template for writing a thesis using the \LaTeX{} typesetting system.
If you are writing a thesis (or will be in the future) and its subject is technical or mathematical (though it doesn't have to be), then creating it in \LaTeX{} is highly recommended as a way to make sure you can just get down to the essential writing without having to worry over formatting or wasting time arguing with your word processor.
\LaTeX{} is easily able to professionally typeset documents that run to hundreds or thousands of pages long. With simple mark-up commands, it automatically sets out the table of contents, margins, page headers and footers and keeps the formatting consistent and beautiful. One of its main strengths is the way it can easily typeset mathematics, even \emph{heavy} mathematics. Even if those equations are the most horribly twisted and most difficult mathematical problems that can only be solved on a super-computer, you can at least count on \LaTeX{} to make them look stunning.
And if I complie it I have some errors:
Undefined control sequence \chapter
Missing \begin{document}. \chapter{C
Undefined control sequence \section
I tryed to put the \begin{document} but I still have the same errors on the undefined control sequence and other errors like
The font size command \normalisize si not defined:there is probably something wrong with the class file.
Can someone help me, please? Thanks!
If on line 13 you remove the ) and move the \end{document} statement on line 183 to the end of the main, it will compile properly.