I'm trying to compile and automate the process of generating the PDF from this project [https://github.com/deedy/Deedy-Resume][1] on Linux machine(Ubuntu specifically). I'm finding it quite difficult to compile. I've tried different compilers but it always ends in errors and warnings.
Edit 1:
command run to create file:
xetex deedy_resume-openfont.xtx
log file output:
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**deedy_resume-openfont.xtx
(./deedy_resume-openfont.xtx
! Undefined control sequence.
l.48 \documentclass
[]{deedy-resume-openfont}
?
! Undefined control sequence.
l.49 \usepackage
{fancyhdr}
?
! Undefined control sequence.
l.51 \pagestyle
{fancy}
?
! Undefined control sequence.
l.52 \fancyhf
{}
?
! Undefined control sequence.
l.54 \begin
{document}
?
! Undefined control sequence.
l.61 \lastupdated
?
! Undefined control sequence.
l.68 \namesection
{Debarghya}{Das}{ \urlstyle{same}\href{http://debarghyadas....
?
! Undefined control sequence.
l.68 \namesection{Debarghya}{Das}{ \urlstyle
{same}\href{http://debarghyadas....
?
! Undefined control sequence.
l.68 ...tion{Debarghya}{Das}{ \urlstyle{same}\href
{http://debarghyadas.com}{...
?
! Undefined control sequence.
l.68 ...debarghyadas.com}{debarghyadas.com}| \href
{http://fb.co/dd}{fb.co/dd}\\
?
! Argument of \\ has an extra }.
<inserted text>
\par
<to be read again>
}
l.70 }
?
Runaway argument?
\href {mailto:deedy#fb.com}{deedy#fb.com} | 607.379.5733 | \href {ma\ETC.
! Paragraph ended before \\ was complete.
<to be read again>
\par
<to be read again>
}
l.70 }
?
! Undefined control sequence.
l.78 \begin
{minipage}[t]{0.33\textwidth}
?
! Undefined control sequence.
l.78 \begin{minipage}[t]{0.33\textwidth
}
?
! Undefined control sequence.
l.84 \section
{Education}
?
! Undefined control sequence.
l.86 \subsection
{Cornell University}
?
! Undefined control sequence.
l.87 \descript
{MEng in Computer Science}
?
! Undefined control sequence.
l.88 \location
{Dec 2014 | Ithaca, NY}
?
! Undefined control sequence.
l.89 \sectionsep
?
! Undefined control sequence.
l.91 \subsection
{Cornell University}
?
! Undefined control sequence.
l.92 \descript
{BS in Computer Science}
?
! Undefined control sequence.
l.93 \location
{May 2014 | Ithaca, NY}
?
Runaway argument?
Magna Cum Laude\\ \location { Cum. GPA: 3.83 / 4.0 \\ Major GPA: 3.9\ETC.
! Paragraph ended before \\ was complete.
<to be read again>
\par
l.99
?
! Undefined control sequence.
l.100 \subsection
{La Martiniere for Boys}
?
! Undefined control sequence.
l.101 \location
{Grad. May 2011| Kolkata, India}
?
! Undefined control sequence.
l.102 \sectionsep
?
! Undefined control sequence.
l.108 \section
{Links}
?
! Undefined control sequence.
l.109 Facebook:// \href
{https://facebook/dd}{\bf dd} \\
?
Runaway argument?
Github:// \href {https://github.com/deedydas}{\bf deedydas} \\ Linke\ETC.
! Paragraph ended before \\ was complete.
<to be read again>
\par
l.115
?
! Undefined control sequence.
l.120 \section
{Coursework}
?
! Undefined control sequence.
l.121 \subsection
{Graduate}
?
Runaway argument?
Open Source Software Engineering \\ Advanced Interactive Graphics \\\ETC.
! Paragraph ended before \\ was complete.
<to be read again>
\par
l.131
?
! Undefined control sequence.
l.132 \subsection
{Undergraduate}
?
Runaway argument?
Operating Systems \\ Artificial Intelligence + Practicum \\ Function\ETC.
! Paragraph ended before \\ was complete.
<to be read again>
\par
l.140
?
! Undefined control sequence.
l.145 \section
{Skills}
?
! Undefined control sequence.
l.146 \subsection
{Programming}
?
! Undefined control sequence.
l.147 \location
{Over 5000 lines:}
?
! Undefined control sequence.
l.148 Java \textbullet
{} Shell \textbullet{} Python \textbullet{} Javascri...
?
! Undefined control sequence.
l.148 Java \textbullet{} Shell \textbullet
{} Python \textbullet{} Javascri...
?
! Undefined control sequence.
l.148 ... Shell \textbullet{} Python \textbullet
{} Javascript \\
?
Runaway argument?
OCaml \textbullet {} Matlab \textbullet {} Rails \textbullet {} \LaTeX \ETC.
! Paragraph ended before \\ was complete.
<to be read again>
\par
l.155
?
[1] )
Output written on deedy_resume-openfont.pdf (1 page).```
[1]: https://github.com/deedy/Deedy-Resume
Related
I wrote myself a thesis template a couple of years ago that I want to work with again. However, when I want to compile the document now, I get compilation errors. When I wrote the template I didn't get any errors.
I already traced the problem down to 2 packages: fancyhdr and babel. When I use both packages I get errors, when I use either package on its own there are no problems.
I removed all the unnecessary stuff from my template and could reproduce the problem with the MWE:
\documentclass[12pt,a4paper]{report}
\usepackage[left=3cm,right=2cm,top=2cm,bottom=2cm]{geometry}
%-----------------------------------------------------------------------
\usepackage[compatV3]{fancyhdr}
\pagestyle{plain}
% my custom header style
% \setlength{\headsep}{8pt}
% \setlength{\headheight}{40pt}
% \setlength{\skip\footins}{0cm}
% \renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\thesection\ #1}}{}}
% \fancyhead[R]{\vspace{\baselineskip}\thepage}
% \fancyfoot[C]{}
\fancypagestyle{plain}{
% \fancyhead[L]{}
% \fancyhead[C]{}
% \fancyhead[R]{\vspace{\baselineskip}\thepage}
% \fancyfoot[C]{}
}
%-----------------------------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[autostyle=true,german=quotes]{csquotes}
\MakeOuterQuote{"}
%-----------------------------------------------------------------------
\usepackage{lipsum}
\begin{document}
\chapter{Ein Kapitel}
\section{Ein Abschnitt}
\lipsum{}
\section{Zweiter Abschnitt}
\lipsum{}
\chapter{Zweites Kapitel}
\section{Ein Abschnitt}
\lipsum{}
\section{Zweiter Abschnitt}
\lipsum{}
Das sind "Anführungszeichen".
\end{document}
I first suspected the problem to be with my custom header style but it seems that all it takes to generate the errors is to include the fancyhdr package.
For reference, this is the compilation log:
Win CP console initial and current in/out Win: (850, 65001), (1252, 1252)
Coding system for system and terminal: 'CP1252'
---
Rc files read:
NONE
Latexmk: This is Latexmk, John Collins, 17 Mar. 2022. Version 4.77, version: 4.77.
Latexmk: applying rule 'xelatex'...
Rule 'xelatex': File changes, etc:
Changed files, or newly in use since previous run(s):
c:/Coding/other_projects/QuickTests/LaTeX/test.tex
Rule 'xelatex': The following rules & subrules became out-of-date:
xelatex
------------
Run number 1 of rule 'xelatex'
------------
------------
Running 'xelatex -no-pdf --max-print-line=10000 -synctex=1 -interaction=nonstopmode -shell-escape -file-line-error -recorder -output-directory="out" "c:/Coding/other_projects/QuickTests/LaTeX/test.tex"'
------------
This is XeTeX, Version 3.141592653-2.6-0.999994 (MiKTeX 22.10) (preloaded format=xelatex.fmt)
\write18 enabled.
entering extended mode
(c:/Coding/other_projects/QuickTests/LaTeX/test.tex
LaTeX2e <2022-11-01>
L3 programming layer <2022-11-02> (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/base\report.cls
Document Class: report 2022/07/02 v1.4n Standard LaTeX document class
(C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/base\size12.clo)) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/geometry\geometry.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/generic/iftex\ifvtex.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/generic/iftex\iftex.sty)) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/geometry\geometry.cfg)) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/fancyhdr\fancyhdr.sty) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/base\fontenc.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/lm\t1lmr.fd)) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/generic/babel\babel.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/generic/babel\xebabel.def (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/generic/babel\txtbabel.def))
*************************************
* Local config file bblopts.cfg used
*
(C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/arabi\bblopts.cfg) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/babel-german\ngerman.ldf (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/babel-german\ngermanb.ldf))) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/generic/babel/locale/de\babel-ngerman.tex) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/csquotes\csquotes.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/etoolbox\etoolbox.sty) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/csquotes\csquotes.def) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/csquotes\csquotes.cfg)) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/lipsum\lipsum.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/l3packages/l3keys2e\l3keys2e.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/l3kernel\expl3.sty (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-xetex.def))) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/lipsum\lipsum.ltd.tex)) (c:\Coding\other_projects\QuickTests\LaTeX\out\test.aux) (C:\Users\FMeinicke\AppData\Local\Programs\MiKTeX\tex/latex/base\ts1cmr.fd)
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
Kapitel 1.
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:40: Argument of \__cmd_expandable_grab_D:NNNwNNn has an extra }.
<inserted text>
\par
l.40 \chapter{Ein Kapitel}
Runaway argument?
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:40: Paragraph ended before \__cmd_expandable_grab_D:NNNwNNn was complete.
<to be read again>
\par
l.40 \chapter{Ein Kapitel}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:40: Argument of \__cmd_expandable_grab_D:NNNwNNn has an extra }.
<inserted text>
\par
l.40 \chapter{Ein Kapitel}
Runaway argument?
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:40: Paragraph ended before \__cmd_expandable_grab_D:NNNwNNn was complete.
<to be read again>
\par
l.40 \chapter{Ein Kapitel}
Runaway argument?
{\protect \foreignlanguage {ngerman}{\protect \bbl#restore#actives \MakeUppercase \ETC.
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Paragraph ended before \#markright was complete.
<to be read again>
\par
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Extra }, or forgotten \endgroup.
\#themark ...store#actives \MakeUppercase {\par }
{Kapitel\ 1. \ Ein Kapitel...
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Extra }, or forgotten \endgroup.
\#themark ... {\par }{Kapitel\ 1. \ Ein Kapitel}}
}{}
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Extra }, or forgotten \endgroup.
\#themark ... {\par }{Kapitel\ 1. \ Ein Kapitel}}}
{}
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Argument of \__text_expand_loop:w has an extra }.
<inserted text>
\par
l.41 \section{Ein Abschnitt}
Runaway argument?
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Paragraph ended before \__text_expand_loop:w was complete.
<to be read again>
\par
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Missing number, treated as zero.
<to be read again>
\scan_stop:
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Argument of \#firstoftwo has an extra }.
<inserted text>
\par
l.41 \section{Ein Abschnitt}
Runaway argument?
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Paragraph ended before \#firstoftwo was complete.
<to be read again>
\par
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Use of \\bbl#foreign#x doesn't match its definition.
\kernel#ifnextchar ...d#d =#1\def \reserved#a {#2}
\def \reserved#b {#3}\futu...
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Argument of \\bbl#foreign#x has an extra }.
<inserted text>
\par
l.41 \section{Ein Abschnitt}
Runaway argument?
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Paragraph ended before \\bbl#foreign#x was complete.
<to be read again>
\par
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Undefined control sequence.
\bbl#fixname #1->\begingroup \def \bbl#tempe
{l#}\edef \bbl#tempd {\noexpand...
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Argument of \bbl#tempd has an extra }.
<inserted text>
\par
l.41 \section{Ein Abschnitt}
Runaway argument?
{\noexpand \#ifundefined {\noexpand \bbl#tempe \languagename }}\bbl#tempd \ETC.
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Paragraph ended before \bbl#tempd was complete.
<to be read again>
\par
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Undefined control sequence.
\bbl#fixname #1->\begingroup \def \bbl#tempe
{l#}\edef \bbl#tempd {\noexpand...
l.41 \section{Ein Abschnitt}
Runaway argument?
{\noexpand \#ifundefined {\noexpand \bbl#tempe \languagename }}\bbl#tempd \ETC.
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Paragraph ended before \bbl#tempd was complete.
<to be read again>
\par
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Missing \endcsname inserted.
<to be read again>
\#temptokena
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Missing \endcsname inserted.
<to be read again>
\#temptokena
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Missing \endcsname inserted.
<to be read again>
\#temptokena
l.41 \section{Ein Abschnitt}
c:/Coding/other_projects/QuickTests/LaTeX/test.tex:41: Missing number, treated as zero.
<to be read again>
\__text_change_case_letterlike_
l.41 \section{Ein Abschnitt}
)
Runaway text?
\__text_change_case_letterlike_ \#temptokena :nnN\cs_end: {\#temptokena \ETC.
! File ended while scanning text of \__kernel_exp_not:w.
<inserted text>
}
<*> ...ng/other_projects/QuickTests/LaTeX/test.tex
! Missing { inserted.
<to be read again>
:
<*> ...ng/other_projects/QuickTests/LaTeX/test.tex
! Emergency stop.
<*> ...ng/other_projects/QuickTests/LaTeX/test.tex
No pages of output.
Transcript written on c:\Coding\other_projects\QuickTests\LaTeX\out\test.log.
Latexmk: If appropriate, the -f option can be used to get latexmk
to try to force complete processing.
Reverting Windows console CPs to (in,out) = (850,65001)
Latexmk: Getting log file 'out/test.log'
Latexmk: Examining 'out/test.fls'
PWD line not in UTF-8
Latexmk: Examining 'out/test.log'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
xelatex: Command for 'xelatex' gave return code 1
Refer to 'out/test.log' for details
I'm using MiKTeX 22.10 on Windows 10 and compiling with XeTeX (run by latexmk which is called with latexmk -synctex=1 -interaction=nonstopmode -shell-escape -file-line-error -pdfxe -outdir=out test.tex).
I read that the "Runaway argument" error has something to do with fragile commands but since the errors occur by simply including the fancyhdr package I don't really know what to do.
I'm trying to include a .csv file into my LaTeX document in order to plot its data. However, I struggle with setting its path correctly.
This is what I was trying first:
\begin{tikzpicture}
\begin{axis}[
width=0.95\linewidth
]
\addplot+[
mark=*]
table[col sep=comma, x=x, y=y1]{data/Cuba [filter: 10 $\leq$ size $\leq$ 20]_normalized_nodes_a5aa37ded2f2837de689914432ad84f3.csv};
\addlegendentry{some legend};
\end{axis}
\end{tikzpicture}
does not work for obvious reasons.
Then I tried to escape it:
...
table[col sep=comma, x=x, y=y1]{\verb|data/Cuba [filter: 10 $\leq$ size $\leq$ 20]_normalized_nodes_a5aa37ded2f2837de689914432ad84f3.csv|};
...
which also failed:
Missing $ inserted. ...odes_a5aa37ded2f2837de689914432ad84f3.csv| };
I also tried to escape each special character by hand (which is not the solution I am looking for): _ becomes \_, $ becomes \$ and so on. But it still did not work since the \ where still included in the search path.
Lastly, it tired the \url{} package (write path with '$' character in Latex) which did also not work:
line 32: \textfont 0 is undefined (character d). ...2837de689914432ad84f3.csv} };
line 32: \textfont 0 is undefined (character a). ...2837de689914432ad84f3.csv} };
line 32: \textfont 0 is undefined (character t). ...2837de689914432ad84f3.csv} };
line 32: \textfont 0 is undefined (character a). ...2837de689914432ad84f3.csv} };
line 32: \textfont 0 is undefined (character /).
How can I easily fix this issue? Isn't there any verb like command which does not require math mode?
Thanks in advance.
I am having trouble using \midrule in a latex longtable along with brackets. For example, here is my latex document (test.tex):
\documentclass[a4paper]{article}\usepackage[]{graphicx}\usepackage[]{color}
\usepackage{longtable}
\usepackage{booktabs}
\begin{document}
\begin{longtable}{|l|l|}
\caption{} \\
\toprule
test & estimate\\
\midrule
(Intercept) & 10.000 \\
test & 20.000 \\
\bottomrule
\end{longtable}
\end{document}
When running pdflatex on this file:
pdflatex test.tex
I run into these errors:
! Undefined control sequence.
<argument> ...al \expandafter \let \cmrsideswitch
\#tempa \fi \fi
l.12 (Intercept)
& 10.000 \\
Removing the brackets fixes the issue. And interestingly switching the order of the 2 rows works too [i.e. the (Intercept) row as the second row). I can't figure out what is wrong. Has anyone encountered this?
OK, so I had the same problem with code generated from Pandoc (with bracket after \toprule), I fixed it by using \toprule{} instead, it seems that toprule eats the bracket otherwise. Maybe this will help you.
Another possibilty is to put empty \hbox{} before the opening bracket, which I used, since I could not modify tex produced by pandoc (but pandoc is capable of parsing latex snippets in markdown).
I am creating a document in LateX and the following multivalued function has been giving me trouble for a while.
The Latex code for the above as I gave is
$\[delta \tau_{i,j}^{k}$ = $\left\{$
\begin{array}{l l}
\frac{1}{L_{k}} & \quad \mbox{if ant k travels on edge \textit{i,j}} \\
0 & \quad \mbox{otherwise}
\end{array} \right. \]
While compiling it gives me the following error
! LaTeX Error: Bad math environment delimiter.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.52 $\[
delta \tau_{i,j}^{k}$ = $\left\{$
?
Any help on fixing this error would be much appreciated.
aschepler is right--it's the [ inside the $.
You may also want to consider the cases environment, which I think is easier for this sort of thing. For you example, you'd have:
\[
\Delta\tau_{i,j}^k=
\begin{cases}
1/L_k & \text{if ant $k$ travels along edge $i,j$} \\
0 & \text{otherwise}
\end{cases}
\]
You can't use both $ $ and \[ \] like that. $ is for in-line equations (fit within a paragraph of text), so you should probably use just \[ \] around your equation and remove all the $s.
When I compile the following latex code:
\begin{align}
f_{m}(x) = c_{1,m} \times I(x_{i}^{m} \geqslant t_{m} ) + c_{2,m} \times I(x_{i}^{m} < t_{m} ),
\end{align}
I always get an error:
! Undefined control sequence.
<argument> ..._{1,m} \times I(x_{i}^{m} \geqslant
t_{m} ) + c_{2,m} \times I...
l.124 \end{align}
When I replace \geqslant with >=, it is okay.
I already include the amsmath package. What would cause the problem?
Thanks and regards!
That command isn't defined in the amsmath package, but rather the amssymb package -- put \usepackage{amssymb} in your preamble and you should be fine.