New answers tagged

0

Try navigating to your /miktex/bin directory and running the following. initexmf --mkmaps initexmf --update-fndb Reference: https://www.dev-eth0.de/2016/11/13/latex_miktex-makepk-pk-font-umvs-could-not-be-created/


0

I had exactly the same problem and here's what I did to fix it. Delete LaTeXit preferences . (Library/Preferences/fr.chachatelier.pierre.LaTeXiT.plist) Remove LaTeXit Reinstall LaTeXit


1

You need \addplot+ instead of \addplot. \documentclass[crop]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \pgfplotsset{compat=1.9} \pgfplotsset{ colormap={bright}{rgb255=(0,0,0) rgb255=(78,3,100) rgb255=(2,74,255) rgb255=(255,21,181) rgb255=(255,113,26) rgb255=(147,213,114) rgb255=(230,255,0) rgb255=(255,255,255)} } \begin{...


1

You'll have to set \@currentlabel manually. If you're using hyperref as well, then an additional \phantomsection should provide the correct hypertarget. \documentclass{article} \usepackage{caption,graphicx} \usepackage{hyperref} \makeatletter \newcommand{\setrefnumber}{\phantomsection\renewcommand{\@currentlabel}}% \makeatother \begin{document} \begin{...


1

I would go with a conditional to abstract the backend differences \ifdefined\XeTeXversion \protected\def\myspecial#1{\special{pdf:content q #1 Q}} \else \protected\def\myspecial#1{\pdfliteral{q #1 Q}} \fi \myspecial{% 0 G 0.4 w 0 8 m 2 10 l 0 6 m 4 10 l 0 4 m 6 10 l 0 2 m 8 10 l 0 0 m 10 10 l 0 -2 m 12 10 l 0 -4 m 14 10 l 0 ...


2

A simple solution is to use the libertinus version of the Libertine fonts. This version has the regular theta: \documentclass[a4paper,12pt]{article} \usepackage[LGR,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,greek.polutoniko]{babel} \usepackage{libertinus} \begin{document} \textgreek{θεόλογος} \end{document}


5

You have several options here. In the Modern Toolchain Although you tagged your question with pdftex, my advice is to use LuaLaTeX and unicode-math when you can, and legacy 8-bit fonts when you have to. You can use the OpenType Garamond Math font with \usepackage{unicode-math} \setmainfont{EB Garamond} \setmathfont{Garamond-Math.otf}[StylisticSet={8,9}] % ...


1

When I started using MikTeX, several years ago, I encountered the same kind of problems during the update from the console and couldn't easily go back. Now I have a more conservative approach. (I tried before to have two twin machines and also using a virtual machine for the testing the new installation. But this way is faster) I do it maybe once a year, ...


0

This issue is described in the manual of the underscore package. You code contains the command \input{Belastungsart2.pdf_tex}. This command contains an underscore character, which causes the input to fail because the underscore package changes the interpretation of this character. As mentioned in the manual, it works if you explicitly state that this ...


0

I'm deciphering the bibtex/pdflatex pipeline in another context and the answer by user Mensch has helped a lot. As complement, a diagram of that particular work pipeline:


0

For completeness, there is a script ps4pdf that runs following commands to convert a .tex file that uses PSTricks into PDF. latex $1.tex dvips -Ppdf -o $1-pics.ps $1.dvi ps2pdf $1-pics.ps $1-pics.pdf pdflatex $1.tex bibtex $1 pdflatex $1.tex


0

I just figured out a way myself. May not be a very clean way, but at least it works. The idea is to just add two asterisks manually to the two authors, and then add a footnote without any label and link through the method described in this post: Footnote without reference


0

movie15 is obsolete. Instead, use media9: \documentclass[a4paper]{article} \usepackage{media9} \usepackage{tikz} % for creating a poster %\usepackage{hyperref} %\usepackage[UKenglish]{babel} \begin{document} \includemedia[ activate=onclick, 3Dtoolbar, % label=cylinder.u3d, 3Dmenu, % found by right-click on 'Generate Default View' ...


1

I’m going to do a frame challenge here. You (practically) never want to do that. Your file in either of those cases is actually going to use a font in the OT1 encoding. There are no fonts that ship with TeX in the Windows-1252 encoding. If your PDF reader thinks the document is using a different encoding than it really is, that’s not good. It might not be ...


1

This will work on selected pages. In this case pages 2-3. \documentclass{article} \usepackage{everypage} \usepackage{tikz}% not really needed, but easier than \rlap{\hspace{-1in}\raisebox{1in}[0pt][0pt]{...}} \usepackage{lipsum}% MWE only \AddEverypageHook{% do pages 2-3 \ifnum\value{page} > 1 \ifnum\value{page} < 4 \begin{tikzpicture}[overlay, ...


5

apacite uses macros to localise strings like "et al.", so you just have to redefine the relevant macros. This needs to happen in \AtBeginDocument after apacite has done its language selection. \documentclass{article} \usepackage[natbibapa,apaciteclassic]{apacite} \AtBeginDocument[apacite-localisation]{% \renewcommand{\BOthers}[1]{\emph{et al.}\...


2

As Урош and Bernard said in the comments, it's quite probable that the original was set in Utopia and that therefor you could use fourier-otf (which actually is Erewhon, which is based on Heuristica which in turn, is based on Utopia) with XeLaTeX: \documentclass[a5paper]{article} \usepackage{fourier-otf} \usepackage{amsmath} \usepackage{unicode-math} \...


0

If you do want to use OpenType fonts, you can try this. There may be a better way to do this, but this forms the basis of the template I have been using for years. Just replace "Adobe Garamond Pro" with the name of your chosen typeface. \documentclass[11pt, a4paper]{article} % For setting the section heading fonts \usepackage[raggedright]{titlesec}...


1

Adobe will end its support for Flash by the end of December. Did you perhaps consent to stop using Flash in Acrobat Reader? Although this can be undone in the settings, it might be possible that AR updates after the 31st December will ultimately disable Flash usage. Video playback without Flash is possible in Acrobat Reader, but currently no control buttons ...


1

The main problem is an incompability between preview and hyperref due to changes in the shipout code of LaTeX that I already reported here: https://lists.gnu.org/archive/html/bug-auctex/2020-11/msg00000.html Because of this incompability the ghostscript call fails and then you get error both in miktex and texlive (but slightly different ones). In your ...


0

My original solution was incorrect. When I upgraded to the latest version of doxygen (1.8.20) in conjunction with MiKTeX-pdfTeX 4.1 (MiKTeX 20.11) the problem still exists. Incorrect solution: I figured it out, my input file to doxygen has a filename of tx_commands.h. Taking a clue from this thread (https://stackoverflow.com/questions/2476831/getting-the-...


0

With xelatex, you don't need the textgreek package, you can just input the letters themselves, but you have to use fontspec instead of libertinus to get the font. So then the MWE becomes: \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Linux Libertine O} \begin{document} Ω\textsuperscript{$-1$} s\textsuperscript{\textit{β}} \...


1

In addition to fixing the (possibly not so obvious?) typo \mathb, you may want to rethink how you approach the display of the equation. The bmatrix environment -- like all other matrix-like environments of the amsmath and mathtools packages -- renders its contents in text style by default. This doesn't seem optimal for the use case at hand; you've tried to ...


5

Check your input: you have \mathb where \mathbf seems to be expected and also \mathb \rangle where it should be \mathbf{1}\rangle. The idea of reducing the size is interesting, but not implemented correctly, because \footnotesize doesn't really work in math mode. Here's a better version: \documentclass{article} \usepackage{amsmath} \newsavebox{\fbmatrixbox} ...


0

This answer comes a long time after the question but it might help someone to know that: the example provided by the OP compiles fine if the package tikz is loaded after moodle. with the development version of the moodle package, you no longer need to load tikz after moodle.


0

KDP specifies the safe minimum margins, not the actual margins of the pages that you will use in a book. It is a “no trespass” zone. Let's put this topic aside for the moment. The first task when designing a book page is to decide the size and location of the text area on the physical page. (Actually, you will first have to choose the main font of the book....


5

You get Missing character: There is no <E2> in font cmsy10! Missing character: There is no <E3> in font cmsy10! because you have a typo: symbols instead of largesymbols. That is, assuming you want to use the glyphs from STIX2. Don't forget \makeatletter because of \noaccents@. \documentclass[12pt]{article} \usepackage{amsthm,amsmath,ragged2e,...


0

The KDP guidelines specify very little about the page layout, so most of it is up to you. You might like to consider using the memoir class (a superset of book and report with many additional facilities). Here is a possible layout design for you. % KDPprob.tex SE 569994 %\documentclass[smallroyalvopaper,twoside,12pt]{memoir} % stocksize 9.25 by 6.175 in \...


2

You don't need to declare \lfloor and \rfloor again. They already exists. Pdflatex is not the problem here. \documentclass[12pt]{article} \usepackage{amsthm,amsmath,ragged2e,relsize,graphicx,bbm,mathtools} \DeclareFontEncoding{LS1}{}{} \DeclareFontEncoding{LS2}{}{\noaccents@} \DeclareFontSubstitution{LS1}{stix2}{m}{n} \DeclareFontSubstitution{LS2}{stix2}{m}{...


3

This isn't a true verbatim, but it comes pretty close. For example, brace balancing is required of the input. Syntax is what the user requested: \bv....\ev. Furthermore, the verbatim material can include line and paragraph (empty line) breaks. One place it will produce improper output is if a \bv input line ends in a lone backslash \. Another improper ...


2

The description environment might come in handy: To customize indentation, spacing, ... take a look at the enumitem package. \documentclass{article} \usepackage{lipsum} % Just used for dummy text via the \lipsum command. Do not use in real document. \begin{document} \lipsum[4] \begin{description} \item[Nominal scale] \lipsum[5] \end{description} \lipsum[...


5

\verb has to know where to finish, but in the meantime it has to disable every special interpretation of characters, including the backslash. One might think to delimit the material with the string \ev, but this would be very cumbersome. Delimiting with a single character not in the material that is to be printed verbatim is much simpler. But this works in a ...


6

verbatim commands need to find the end string without expanding commands, so you can't hide it in a \ev command. You can use fancyvrb to define short verbatim, see the documentation: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{xcolor} \usepackage{fancyvrb} \DefineShortVerb{\|} \begin{...


0

Since the "problem" is a conflicting environment which prevents figure placement there, and "wrapfigure" get placed at the beginning of paragraphs, you can provide a fake paragraph with ~~\vspace*{-\baselineskip} \documentclass{book} \usepackage{wrapfig} \usepackage{graphicx} \newtheorem{problem}{P}[chapter] \begin{document} A circle is ...


0

I propose this variant layout, with the insbox set of plain TeX macros package: \documentclass{book} \usepackage{graphicx} \input{insbox} \newtheorem{problem}{P}[chapter] \begin{document} \begin{problem}\leavevmode% \InsertBoxR{-1}{\includegraphics[width=0.38\textwidth]{example-image}}\par\noindent A circle is drawn in a sector of a larger circle of radius ...


0

With two minipages instead of wrapfig: \documentclass{book} \usepackage{graphicx} \usepackage[export]{adjustbox} \newtheorem{problem}{P}[chapter] \begin{document} \begin{problem} \begin{minipage}[t]{0.5\textwidth} A circle is drawn in a sector of a larger circle of radius $r$, as shown in the adjacent figure. The smaller circle is tangent to the two ...


0

The problem is not at the end of \epigraph, but at the beginning! The missing blank line before \epigraph makes everything go awry, causing very low level errors due to the ignored \prevdepth that's out of place if TeX is not in vertical mode as it should be. The command definition should start with \par. \documentclass[10pt,a4paper,twocolumn,twoside]{...


Top 50 recent answers are included