I got from texlive on windows 8.1 an error when I wrote some text in verbatim.   The error was:  (c:/texlive/2013/texmf-dist/tex/latex/lm/t1lmtt.fd) (c:/texlive/2013/texmf-dist/tex/latex/lm/ts1lmtt.fd)  ! Package tikz Error: Sorry, some package has redefined the meaning of the math -mode dollar sign. This is incompatible with tikz and its calc library and migh t cause unrecoverable errors.  See the tikz package documentation for explanation. Type  H &lt;return&gt;  for immediate help.   But if I remove the verbatim mode the tex file can be compiled with no error.   Could anyone help with this? Thank you in advance.   EDIT:  I've upload my tex to . In addition, my class file is .
9990
I'm using  semiverbatim with tikz in beamer. My following MWE throws error:     ! Package tikz Error: Sorry, some package has redefined the meaning of   the math-mode dollar sign. This is incompatible with tikz and its calc   library and might cause unrecoverable errors.   Any idea to resolve this issue. Thanks in advance.  \documentclass{beamer}  \usepackage{csed}  \usepackage{tikz} \usetikzlibrary{shapes}  \newif\ifshowanimation % The slides with animations take a long time to process. % They are omitted in handout mode. \showanimationfalse  \newenvironment&lt;&gt;{exercise}{\begin{block}#1{Exercise}}{\end{block}}  \newenvironment&lt;&gt;{notes}{\begin{alertblock}#1{Notes}}{\end{alertblock}}  \newcommand*{\menu}[1]{\textbf{#1}} \newcommand*{\menuitem}[1]{\,$\to$\,\textbf{#1}}  \definecolor{highlight1}{named}{yellow} \definecolor{highlight2}{named}{pink} \definecolor{highlight3}{named}{green} \definecolor{highlight4}{named}{orange} \definecolor{Red}{named}{red} \definecolor{Blue}{named}{blue}  \pgfdeclareimage[width=0.95\textwidth]{backdrop}{images/background.jpg} \pgfdeclareimage[width=1mm]{pointer}{images/pointer.png} \pgfdeclareimage[width=0.18\textwidth]{startmenu}{images/startMenu.jpg} \pgfdeclareimage[width=0.34\textwidth]{programsmenu}{images/programsMenu.jpg} \pgfdeclareimage[width=0.495\textwidth]{submenu}{images/subMenu.jpg} \pgfdeclareimage[width=0.608\textwidth]{latexmenu}{images/latexMenu.jpg} \pgfdeclareimage[width=0.591\textwidth]{latexmenu2}{images/latexMenu2.png} \pgfdeclareimage[width=0.591\textwidth]{cmd1}{images/cmd1.jpg} \pgfdeclareimage[width=0.591\textwidth]{cmd2}{images/cmd2.jpg} \foreach \x in {1,...,46} {   \pgfdeclareimage[width=0.84\textwidth]{tmkwin\x}{images/tmkwin-\x.jpg} } \pgfdeclareimage[width=0.75\textwidth]{saveAs1}{images/tex-28.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs2}{images/tex-30.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs3}{images/tex-32.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs4}{images/tex-35.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs5}{images/tex-36.jpg} \pgfdeclareimage[width=0.75\textwidth]{saveAs6}{images/tex-37.jpg}   \begin{document}  \begin{frame}[fragile]   \frametitle{A Simple Document}  \begin{example}     \begin{semiverbatim}         \textcolor&lt;2&gt;{Red}{\cs{documentclass}\annote&lt;5-7&gt;[offset=0.5in,voffset=1cm,pos=br,bg=highlight2]{[a4paper,12pt]}{Class options}\annote&lt;4-7&gt;[pos=br,bg=highlight1]{\marg{article}}{The class name.}}         \vspace{-2\baselineskip}\alt&lt;7&gt;{\colorbox{highlight4}{\rmfamily Preamble}}{\strut}         \textcolor&lt;2&gt;{Red}{\cs{begin}\marg{document}}         \textcolor&lt;3&gt;{Blue}{\% This is a comment}         \annote&lt;6-7&gt;[pos=cr,bg=highlight3,offset=0.4in]{\begin{tabular}{@{}l}         This is   a simple\\         document\cs{footnote}\marg{with a footnote}.\\         \\         This is a new paragraph.         \end{tabular}}{The document.}         \textcolor&lt;2&gt;{Red}{\cs{end}\marg{document}}     \end{semiverbatim} \end{example}  \end{frame}   \end{document}     Edited    csed can be obtained from .
123874
I'm using pdfLatex (with --shell-escape option) and I had a problem of compilation with TexWorks that was successfully solved with the help of other post in this site: .  After correcting that error the code compiles smoothly but just displays the logarithmic grids, not the function. The gnuplot files are created in the right place, but the graphic doesn't come out in the PDF.  Code from :  \documentclass{article}  \usepackage{tikz} \usepackage{bodegraph}  \begin{document}  \begin{tikzpicture}[     gnuplot def/.append style={prefix={}}, % Fixed the issue (prefix was 'gnuplot/\jobname/' before) ] \begin{scope} \UnitedB \semilog{-1}{2}{-50}{60}  \BodeAmp{-1:1.35}{\POAmpAsymp{4}{2.0}+\IntAmp{1}}  \end{scope} \end{tikzpicture} \end{document}   Any clues?
22558
I'm trying to use the svg package for inserting svg images in my latex file, as suggested in other questions. But now I ran into a problem:  For example I have a image figure1.svg, if I write  \includesvg{figure1}   it will give an error says  ERROR: LaTeX Error: File `figure1.pdf_tex' not found.   But if I write  \includesvg{figure1.svg}   it will give another error says  ERROR: LaTeX Error: Unknown graphics extension: .svg.   How can I fix this problem? I'll prefer not having to convert all my svg files to pdf_tex files with some external program.    Update  My LaTeX environment is latest the TeXLive 2013 on Windows 7. A MWE code would be  \documentclass{article} \usepackage{svg}  \begin{document}  \begin{figure}[htbp]   \centering   \includesvg{figure1.svg}   \caption{svg image} \end{figure}  \end{document}
85135
I have the following LaTeX code which works fine:  \documentclass[12pt,a4paper]{article} \usepackage[a5paper]{geometry}% just for the example \usepackage[utf8x]{inputenc} \usepackage{listings} \usepackage[labelfont=bf, font=small]{caption} \usepackage[framemethod=tikz]{mdframed}   \lstset{ breaklines=true, breakatwhitespace=false, xleftmargin=1em, frame=single, numbers=left, numbersep=5pt, }  \newcommand\mylstcaption{}  \surroundwithmdframed[ hidealllines=true, middleextra={   \node[anchor=west] at (O|-P)     {\lstlistingname~\thelstlisting\  (Cont.):~\mylstcaption};}, secondextra={   \node[anchor=west] at (O|-P)     {\lstlistingname~\thelstlisting\  (Cont.):~\mylstcaption};}, splittopskip=2\baselineskip ]{lstlisting}  \begin{document}  \renewcommand\mylstcaption{Example listing of code} \begin{lstlisting}[language=C, caption=\mylstcaption, label=lst:c1]  struct safe_buffer { struct list_head node;  /* original request */ void    *ptr; size_t  size; int direction;  /* safe buffer info */ struct dmabounce_pool *pool; void    *safe; dma_addr_t  safe_dma_addr; };  struct dmabounce_pool { unsigned long   size; struct dma_pool *pool; #ifdef STATS unsigned long   allocs; #endif };  struct dmabounce_device_info { struct device *dev; struct list_head safe_buffers; #ifdef STATS unsigned long total_allocs; unsigned long map_op_count; unsigned long bounce_count; int attr_res; #endif struct dmabounce_pool   small; struct dmabounce_pool   large;  rwlock_t lock;  int (*needs_bounce)(struct device *, dma_addr_t, size_t); };  #ifdef STATS static ssize_t dmabounce_show(struct device *dev, struct device_attribute *attr, char *buf) { struct dmabounce_device_info *device_info = dev-&gt;archdata.dmabounce; return sprintf(buf, "%lu %lu %lu %lu %lu %lu\n", device_info-&gt;small.allocs, device_info-&gt;large.allocs, device_info-&gt;total_allocs - device_info-&gt;small.allocs - device_info-&gt;large.allocs, device_info-&gt;total_allocs, device_info-&gt;map_op_count, device_info-&gt;bounce_count); }  static DEVICE_ATTR(dmabounce_stats, 0400, dmabounce_show, NULL); #endif  \end{lstlisting}  \end{document}   Part of the result looks like:  page 1    page 2    Now I would like to have similar looking captions (same font size etc.) which is currently not the case.
29403
I am new to TeX/LaTeX. How do I install TeX on Windows (7)? It seems that there are many different implementations, so which one is best for my OS?
93291
(FYI I am new to LaTeX)  I'm trying to compile a TeX document that someone else has given me. I had BasicTex installed, and it didn't seem to work. My friend said he uses TeX Live, so I tried installing that but I get the same error after typing pdftex document.tex:  ! Undefined control sequence. l.1 \documentclass                   [final,hyperref={pdfpagelabels=false}]{beamer}   I'm guessing that means the distribution I have installed does not support this tag, is that right?  How can I find out which distribution I should install?
66809
When I write {{\tilde{C}}^{0}_{har}}^{\Gamma} (or the same with fewer curly brackets) in Tex I obtain a double superscript error and I can't solve it. Does someone know how to fix this?
56342
When compiling a document using my university's thesis class file and the TikZ package I receive an error message (missing number, treated as zero). Would someone know how I can solve this problem?   \documentclass[phd,bottom,nosig]{usbthesis} \usepackage{tikz} \begin{document} Test 1-2-3 \end{document}   The class file can be found here:
41095
How do I create something like this without getting any errors?  \begin{thm}[\cite[page 10]{ABC2011}] ... \end{thm}   I tried putting various things into {...} brackets, but not eliminating any errors. I probably have misunderstood something about how LaTeX works in the background and the AMS packet:  \usepackage[amsmath,thmmarks]{ntheorem}
109041
It seems that verbatim is not working properly. It produce an error and the output is not as I expected. Here is the latex code   % !TEX encoding = UTF-8 Unicode \documentclass{beamer}  \mode&lt;presentation&gt; \usetheme{Madrid} \setbeamercovered{transparent}  \usepackage{beamerthemesplit} \usepackage[utf8]{inputenc} \usepackage{graphics} \usepackage{graphicx}  \usepackage{hyperref} \usepackage{booktabs} \usepackage{times} \usepackage[T1]{fontenc} \usepackage{natbib}  \usepackage[turkish]{babel} \usepackage{verbatim} \AtBeginDocument{\catcode`==12 }  \begin{document} \begin{frame}  \begin{verbatim}  Call: glm(formula = propn.dead ~ conc, family = binomial(link = logit),      weights = number)  Deviance Residuals:      Min       1Q   Median       3Q      Max   -1.5941  -0.3944   0.8329   1.2592   1.5940    Coefficients:             Estimate Std. Error z value Pr(&gt;|z|)     (Intercept)  -60.717      5.181  -11.72   &lt;2e-16 *** conc          34.270      2.912   11.77   &lt;2e-16 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 284.202  on 7  degrees of freedom Residual deviance:  11.232  on 6  degrees of freedom AIC: 41.43  Number of Fisher Scoring iterations: 4 \end{verbatim} \end{frame} \end{document}
104474
I’m using TeXLive 2015.  Okay, so I have some sort of poltergeist in the following code. I compile it with either XeLaTeX or LuaLaTeX.  \documentclass{article} \usepackage{     fontspec, %   mathtools,     unicode-math, }  \setmathfont[ %   range = \mathcal, ]{xits-math.otf}  \begin{document}  %   $\mathtt L$     $\mathcal L$  \end{document}   The desired output – when uncommenting all lines – should be:    However, when uncommenting all lines and compiling with xelatex the script ‘L’ is missing. I found out that (re-)commenting out any of the three lines mathtools, range = \mathcal and $\mathtt L$ will restore the script ‘L’. Unfortunately, I have a scenario in which I need all three lines.  Also, compiling with lualatex doesn’t seem to yield any problems.  A similar question is , where  for the unicode-math package has come up. Is that stemming from the same issue or is there something else going on here?
59348
Currently having problems with compiling my Master's thesis after downloading the newest version of TeXStudio and MiKTeX. The error message is as follows:  Use of \blx@bbl@verbadd@i doesn't match its definition. \verb   The only other place I found a similar question regarding this error message was found here:   I am not sure how this applies to my problem, but from what I understand this is due to some problem in an external file. If you need the bibliography-entry, I can provide you with that on short notice, though it is rather long (which is why I didn't include it here in the first place).  I am using Mendeley Desktop v1.16.1 to automatically generate my BibTeX database.   I am using biblatex as follows:  \usepackage[backend = bibtex,         style = numeric-comp,         sorting = none,         natbib = true,         doi = false,         isbn = true,         hyperref = true]{biblatex}   I also have some code to change how the bibliography output, but I doubt it is causing the problem, as commenting it out did not help.  Hope anyone knows what causes my problem and how to fix it.  Thanks.
21330
I work in Linux with the latest TeX Live. The system encoding is UTF-8. It is also the default editor encoding in my TeXstudio 2.12.8.  I have figures in files like σ_1_μ_02_per_5.tikz, and I included them using \input{}.   Now, the most interesting part: it had worked fine (even without inputenc etc), then it just stopped. I have not change a single line in my files. Now I get  Package inputenc Error:  Unicode character σ (U+3C3)(inputenc) not set up for use with LaTeX. ...σ_1_μ_02_per_5.tikz   I have tried:   using babel inputenc with utf8, utf8x, latin1 fontenc with different parameters opening and saving in UTF-8 in other editors   And in this case I get:  Undefined control sequence. ...μ_02_per_5.tikz} Missing $ inserted. ...μ_02_per_5.tikz} Double subscript. ...μ_02_per_5.tikz} Undefined control sequence. ...μ_02_per_5.tikz}   How to fix this?    Minimal not working example:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \begin{document}     \input{1.tex}     \input{σ.tex} \end{document}
62666
This is with ref to my previous question .  \documentclass[11pt,table,a4paper]{article} \usepackage{lmodern} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage{CJKutf8} \usepackage[english,russian]{babel}  \newenvironment{SChinese}{%  \CJKfamily{gbsn}%  \CJKtilde  \CJKnospace}{}   \begin{document}  \selectlanguage{russian}   Это мой первый многоязычный докладе.   Инфантильный гипертрофический стеноз привратника - это серьёзное   \selectlanguage{english}   This is my first multilingual report.   \begin{CJK}{UTF8}{}   \begin{SChinese}     这是我的第一个多语种的报告。   \end{SChinese}   \end{CJK}    \end{document}   when I try to compile it, I get following error message.  LaTeX Warning: Unused global option(s):     [table].  (./data.aux (/usr/local/texlive/2011/texmf-dist/tex/latex/cyrillic/t2acmr.fd)) (/usr/local/texlive/2011/texmf-dist/tex/latex/lm/t1lmr.fd)  LaTeX Font Warning: Font shape `T2A/lmr/m/n' undefined (Font)          using `T2A/cmr/m/n' instead on input line 15.   ! Package inputenc Error: Unicode char \u8:  not set up for use with LaTeX.  See the inputenc package documentation for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                      l.18 ...�ный гипертрофический стеноз привра...   How can I avoid such error message.
438
I updated my TeXlive distribution a couple times in the past week, and now I get this error when I include package expl3 (or any other package that includes it, such as fontspec). Before the updates it was working fine. Am I missing any package that should be installed? I tried searching for l3backend-pdfmode.def, but I found no results.  \documentclass{article} \usepackage{expl3} \begin{document} Hi \end{document}   λ lualatex a This is LuaTeX, Version 1.10.0 (TeX Live 2019)   restricted system commands enabled. (./a.tex LaTeX2e &lt;2018-12-01&gt;  luaotfload | main : initialization completed in 0.042 seconds (/opt/texlive/2019/texmf-dist/tex/latex/base/article.cls Document Class: article 2018/09/03 v1.4i Standard LaTeX document class (/opt/texlive/2019/texmf-dist/tex/latex/base/size10.clo)) (/opt/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty (/opt/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3-code.tex)  ! LaTeX Error: File `l3backend-pdfmode.def' not found.  Type X to quit or &lt;RETURN&gt; to proceed, or enter new name. (Default extension: def)  Enter file name:  ! Emergency stop. &lt;read *&gt;   l.282   }   379 words of node memory still in use:    2 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 4 attribute, 48 glue_spec, 4 attrib ute_list, 1 write nodes    avail lists: 2:9,3:3,4:1,5:2,7:2,9:2 !  ==&gt; Fatal error occurred, no output PDF file produced! Transcript written on a.log.
118393
I'm trying to insert a figure into my LaTeX file using the following syntax:  \begin{figure}   \centering   \includegraphics [width=3in]{fig1.png}   \caption{Calculation of shortest path betweenness}   \label{Fig.3:Shortest path betweenness} \end{figure}   It worked for me before but this time I'm getting the following error:   LaTeX Error: \begin{figure} on input line xxx ended by \end{document}   Also, hovering over the red cross symbol indicating error in Eclipse, I see this message    paragraph ended before Gin@iii was completed.   It's obvious that I have the \end{figure} to end my \begin{figure} so I don't understand how I still get that error.  Can someone please tell me what the problem is?  Edit: Add more details for debugging. The problem went away if I remove '[width=3in]'. Here is the detail error:  pdflatex&gt; Runaway argument? pdflatex&gt; width=3in]{fig1.png} \caption {Caption} \label {Fig.1}  pdflatex&gt; ! Paragraph ended before \Gin@iii was complete. pdflatex&gt; &lt;to be read again&gt;  pdflatex&gt;                    \par  pdflatex&gt; l.40  pdflatex&gt;        pdflatex&gt;  pdflatex&gt; Underfull \vbox (badness 10000) has occurred while \output is active pdflatex&gt; (./document.bbl pdflatex&gt;  pdflatex&gt; Package natbib Warning: Empty `thebibliography' environment on input line 3.   Added sample code:  \documentclass[10pt,psfig,letterpaper,twocolumn]{article} \usepackage{geometry} \usepackage{graphics} \usepackage{setspace} \usepackage{natbib} \usepackage{verbatim} \usepackage[scaled=0.9]{helvet} \singlespacing \paperwidth 8.5in \paperheight 11in \oddsidemargin 0in \headsep 1.3cm  \geometry{left=0.75in,top=0.75in,right=0.75in,bottom=1in} \textwidth 7in  \textheight 9.25in \columnsep 0.4in \footskip 0in  \renewcommand{\bibname}{REFERENCE} \pagestyle{empty}  \begin{document} \bibliographystyle{acm}   \title{\fontfamily{phv}\selectfont{\huge{\bfseries{Title here}}}} \author{ {\fontfamily{ptm}\selectfont{\large{\bfseries{author name}}}}\thanks{contact info }}  \maketitle \thispagestyle{empty}  \section*{\fontfamily{phv}\selectfont{\normalsize{\bfseries{Section name}}}}  \begin{figure} \centering \includegraphics[width=3in]{fig1.png} \caption{Caption} \label{Fig.1} \end{figure}  \pagebreak[4] \vspace*{5.52in} \bibliography{ref} \end{document}
23384
I would like to try a package which seems interesting, but it some dependencies are not satisfied.   Here is my minimal example:  \documentclass{article}  \usepackage{pkgloader} \LoadPackagesNow  \begin{document}     pckloader trial \end{document}   And I get the following error: ! LaTeX Error: File 'l3regex.sty' not found.. Therefore, I tried to update my distribution with the linux commands  tlmgr update --self tlmgr update --all   But the package l3regex is still not foundable. Plus, my computer is not lying since l3regex.sty is not in my folder /texmf-dist/tex/latex/*.  So, is it something normal ? How can I workaround this problem ?