New answers tagged

2

The package old-arrows has been added to TeX Live on August 25, 2015. You don't tell what version of TeX Live is used by your TeXmaker program, but judging from the error message, the package has been installed improperly: besides the old-arrows.sty file, also the fonts have to be installed in the expected places and map files have to be updated. Check your ...


1

A way to solve the problem is to comment the command: \usepackage{old-arrows}


2

Your problem here is that \Huge doesn't have an accompanying \par that would set the appropriate baseline skip - necessary to allow for gaps between lines. Instead you should use a construction like this: \begin{center} \scshape\Huge Huge Title Very Important \end{center} Here's a complete, minimal example: \documentclass{article} \begin{document} \...


0

Hypersetup is a package that modifies the package hyperref. Since you have not loaded hyperref before trying to manipulate it, it fails. If you include \usepackage{hyperref} in your preamble it might at the very least get rid of the error \RequirePackage{hyperref}. For example at this location: % Pacotes de citações % --- \usepackage{hyperref} \usepackage[...


1

The word Question and its text in italics. I maintained the packages to check for loading incompatibilities with the exam class. The \qformat{...} command and \renewcommand{\questionshook}{...} gives you control of the style of the question. % !TeX TS-program = pdflatex \documentclass[11pt,addpoints]{exam} \usepackage[utf8]{inputenc} \usepackage[a4paper, ...


1

I would recommend my package ffcode, which makes it as simple as this: \documentclass{article} \usepackage{ffcode} \begin{document} The function \ff{foo} can be used in a loop: \begin{ffcode} while (true) { foo(i++); } \end{ffcode} \end{document} The package uses minted for code blocks and tcolorbox for individual words.


1

Your example shows a fixed font for the code. Using package ffcode might be one way. \documentclass{article} \usepackage{ffcode} \begin{document} \begin{ffcode} set.seed(123) ## do grid y <- rcoga(100000, c(2, 5, 7), c(3, 2, 4)) grid <- seq(0,15,length.out=100) ## calculate pdf and cdf \end{ffcode} \end{document} With package minted though you can ...


2

I would change iid to \mathrm{iid} and place it above a "distributed as" symbol, say, \sim. \documentclass{article} \usepackage{amsmath} % for '\overset' macro \begin{document} \begin{equation} \ln Z_{t+1} = \rho_{Z}\ln Z_{t}+\epsilon_{Z,t+1}, \quad \rho_{Z}\in(-1,1),\ \epsilon^{}_{Z,t+1} \overset{\mathrm{iid}}{\sim} N(0,\sigma^2_{Z})\,. \end{...


2

Try with this: \documentclass{book} \usepackage{mathtools} \begin{document} \begin{equation} \ln Z_{t+1}=\rho_{Z}\ln Z_{t}+\epsilon_{Z,t+1}, \quad \rho_{Z}\in(-1,1),\epsilon_{Z,t+1},\text{ iid } N (0,\sigma^2_{Z}). \end{equation} \end{document} As you don't provide your preamble, I used standard book class file...


2

Just for the fun of it, and in case somebody else stumbles on this: This idea can be combined with the standalone package as well, with a bit of tweaking: \documentclass[multi=apage,varwidth=8cm]{standalone} \usepackage{minted} \usepackage{tikz} \usetikzlibrary{tikzmark} \newenvironment{apage}[0]{}{} \begin{document} \begin{apage} \begin{tabular}{p{0.3\...


1

Not 100% sure why it be so, but the first quotation mark of the final two here was causing it: quote="\"" The solution is to use instead: quote="|\textbackslash"|" Which produces this: Code is here: \documentclass[a4paper]{report} \usepackage[svgnames]{xcolor} % colorare testo \usepackage[T1]{fontenc} % codifica dei font in ...


Top 50 recent answers are included