Tag Info

New answers tagged

0

My best guess is that you did not install the forloop.sty file correctly, but just save it to the folder, where you have your project. If this is the case, it will work with pdflatex, as pdflatex will install search you current directory for .sty files, but LyX will not. To install a package you have to choices. You can use the texlive install utitlity, if ...


1

The problem is not specific to shrink. The Turkish module of babel activates = and this causes problems for the interpretation of key-value syntax. If you have an up-to-date TeX system you can disable the = shorthand (that does nothing useful, in my opinion) maintaining the other two: \usepackage[turkish,shorthands=:!]{babel} With an older TeX system ...


0

Here is a cleaned up version of your code which combines the two documents. It relies on a solution explained by Gonzalo Medina here which requires PGF/TiKZ version 3.0. If you are using an older version, you will either need to use the workaround also explained in that answer or (preferably) update. \documentclass[spanish]{book}% article has no chapters; ...


1

Thanks to the egreg answer, i found another package to fix my problem : \documentclass{article} \usepackage{fp} \newcounter{r} \begin{document} \FPeval{\result}{round(10000 * 10.01,0)} \setcounter{r}{\result} \ther \end{document} Thank you for your help.


1

Well, you can rely on the policy that in the preamble, one uses \usepackage, whereas in the packages and classes, it's \RequirePackage: \documentclass[a4paper]{article} \def\usedpackages{} \let\xusepackage\usepackage \renewcommand\usepackage[2][]{\edef\usedpackages{\usedpackages#2,}\xusepackage[#1]{#2}} \usepackage[margin=0pt]{geometry} ...


0

OK, managed to do something - but, of course, a more erudite answer will be greatly appreciated. First, here is the usage example: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass{article} %%% start scanning \input{_usedpackages.tex} \usepackage{filecontents} % tlmgr install filecontents ...


1

Go to Miktex 2.9 settings and check if you allow "install package on the fly". If not, allow it.


11

TeX uses fixed point binary arithmetic and calc uses this arithmetic that can't guarantee great accuracy. You get a better result using implementations of floating point numbers, for example the one in expl3: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \DeclareExpandableDocumentCommand{\roundtointeger}{m} { \fp_eval:n { round ( #1, 0 ) } ...


3

The trick is pretending that Ñ occupies the same vertical space as A % arara: latex % arara: dvips % arara: ps2pdf \documentclass[a4paper]{article} \usepackage{psgo} \usepackage[spanish]{babel} \renewcommand{\golabelformat}[1]{{\sffamily\vphantom{A}\smash{#1}}} \begin{document} \begin{psgoboard} \end{psgoboard} \end{document} The arara lines are ...


1

Ok, not exactly fixing the .sty file, but here someone posted a way to solve the issue: http://www.reddit.com/r/LaTeX/comments/2j1q3c/hints_for_modifying_a_sty_file/


2

You need to use xpatch: \documentclass[]{article} \usepackage[nonumber]{cuisine} \usepackage{xpatch} \makeatletter \xpatchcmd{\Displ@ySt@p}{\arabic{st@pnumber}}{}{}{} \makeatother \begin{document} \begin{recipe}{Name}{4}{\fr12 hour} \ing[5]{units}{something} STEP 1 STEP 2 ... \end{recipe} \end{document}


2

If you don't need to allocate new name for printing version of the macro \confname, you can define more intelligent version of such macro: if the equal sign immediately follows then the value is stored else the value is used. Example: The test: \confname\ % value is used, empty value is printed as default. \confname={Name} % the value ...


2

In your example, \confdate takes an argument. Therefore, when you use ...remember the date \confdate\ for the rest of your life. the \ (control space) is grabbed as the argument and placed inside \@confdate. That's why your output resembles ...remember the date for the rest of your life. On the other hand, when you use ...remember the date ...


4

The two main problems were: To use the @ in macro mames you need to use \makeatletter and \makeatother. See the references below. The definition \newcommand\confdate[1]{\renewcommand\@confdate{#1}} means that calling \confdate sets the value of \@confdate to the first parmamater. In your code the first line (which is commented out in the MWE below) was ...


2

Here is a suggestion using the exsheets and tasks packages: \documentclass{article} \usepackage{exsheets,tasks} \SetupExSheets{ solution/name=Exercise , headings-format=\itshape } \begin{document} \begin{question} Calculate the following: \begin{tasks}(3) \task $7+2$ \task $9-9$ \task $5+5+5$ \end{tasks} \end{question} ...


2

Had the same issue. For me it worked after I synchronized manually with the repository using the MikTeX Package Manager (Admin) tool and under the Repository menu using the synchronize. Then the issue is resolved and the mathtools package appears under the package list.


3

With the probsoln package, problems can be defined either within the document or in an external file that can be loaded using a command such as \loadallproblems or \loadrandomproblems. Here's a simple example with the problems defined in the document: \documentclass{article} \usepackage{probsoln} \begin{defproblem}{prob1}% label \begin{onlyproblem}% ...


1

Here's a solution using the answers package. You can tinker with the formatting of the answers. \documentclass[pdftex,12pt]{article} \usepackage{amsmath} \usepackage{answers} \newcommand{\answerFileName}{anexamanswers} \Newassociation{sol}{Solution}{\answerFileName} \Opensolutionfile{\answerFileName} \newenvironment{Exercise}[1] {\item #1 ...


2

I use the following True/False format in the Exam class. It may or may not suit your needs. I find this layout especially convenient for grading. Part of the true/false question format is based on this answer by Gonzalo Medina. \documentclass[11pt]{exam} %\printanswers % Create a True False question format \newcommand*{\TrueFalse}[1]{% \ifprintanswers ...


6

Add \usepackage{tikz} to your preamble. Then where you want your figure insert the following code. \begin{figure} \begin{tikzpicture} %axis \draw (12,0) -- (0,0)--(0,10); % Blue lines \draw[blue] (0,9)node[left]{\color{black}20} -- (11,0)node[below]{\color{ black}12}node[near end,right]{\color{black}$MC_2$}; \draw[blue] (0,9) -- ...


3

How about a vertical alignment of the \underbraces using a strut: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \newcommand{\tempstrut}{\rule[-1.2\baselineskip]{0pt}{1.5\baselineskip}} \frac{\mathrm{d}^2B}{\mathrm{d}A^2} = - \underbrace{\tempstrut\frac{1}{(1-p)U'(B)}}_{(+)} \Bigg[\underbrace{\tempstrut p U''(A)}_{(-)} ...


3

\documentclass{article} \usepackage{graphicx} \usepackage{amsmath,amssymb} \begin{document} \[ \frac{d^2B}{dA^2}=-\frac{1}{\underbrace{(1-p)U'(B)}_{\text{(+)}}}\Biggl[\underbrace{p U''(A)}_{\text{(-)}} + \underbrace{(1-p)U''(B)}_{\text{(-)}} \underbrace{\left(\frac{dB}{dA}\right)^2}_{\text{(+)}}\Biggr]>0. \] \end{document}


3

An alternative is use of textcase package with commands \lowercase{...}. Further info can be found here textcase. Test file and class files are from SIAM. Also to compile, one needs to use Use latex -> dvips -> ps2pdf rather than pdflatex. Please see SIAM compiling. Code \documentclass[]{siamltex1213} \usepackage[overload]{textcase} \title{This ...


5

At the moment you use \DeclareOption, your style file is divided into three parts: Pre-options Section (above first \DeclareOption); Options Section (between first \DeclareOption and \ProcessOptions); and Post-options Section (after \ProcessOptions). Whatever is contained within the pre-options section has already been processed. So, the only problem ...


6

You can modify the \includegraphcs macro to add to a list and print the list at the end of the document. The MWE below yields the following output: Figures included were images/figA.jpg images/figB.png Notes: In this case \let would have work as well (as per egreg's comment at Resize all images in Latex to a percentage width), but I have gotten used ...


1

This is not TeX related question. You can open the folder in Nautilus for example, select the figures you want and press Ctrl+C. Then open some text editor, such as Kate or gedit and press Ctrl+V. There you have it - the full paths of all of your selected figures. Another way is to get all the informations from the .tex file. Here are the commands: $ cd ...


1

put the file in ~/texmf/tex/latex/bbm/ (you may have to create directories for that). however, the fonts are distributed separately as metafont source and you'll need to install them, too; it's a long time since i've done that, but try copying all of the font files on an archive mirror into ~/texmf/fonts/bbm after that, i reckon it’s worth running texhash ...


0

U just need to press Enter key and it goes on, that won't effect your PDF file, and you don't bother to figure it out where's the error. The easiest way for fixing it once for all, is, you download an installer and re-install for a complete installation, then it will be alright.


5

(1) Comment the line loading the package that you want to test: \documentclass{article} %\usepackage{fontawesome} \begin{document} The \faBook And the \faCloud \end{document} (2) Compile from the command line yourfile in nonstopmode: lualatex -interaction=nonstopmode yourfile With the above MWE you will see in the output that now lines 4 and 6 ...



Top 50 recent answers are included