New answers tagged

0

Change pdflatex to xelatex, it solves the problem for me.


3

PDF knows a color for stroking and for filling. The example sets the fill color, but the line is stroked. Using the stroke color operator (RG) instead of the fill color operator (rg) fixes this example: \pdfcompresslevel=0 \pdfobjcompresslevel=0 \nopagenumbers \pdfliteral direct {1 0 0 RG} \line{\leaders\hrule\hfill} \bye However, it depends on the ...


1

Although it's usually a coding error that leads to this message, I think in this case it's legitimate. I wasn't able to grok the implementation immediately, but in the documentation of the spreadtab package we read: ... spreadtab proceeds in 3 main stages before \begin{<table environment>}sees the table: first, it reads the body of the ...


4

It's a vietnamese name so for the best result you need a vietnamese font encoding: \documentclass[]{scrreprt} \usepackage[utf8]{inputenc} \usepackage[T5,T1]{fontenc} \begin{document} T5: {\fontencoding{T5}\selectfont H\`an Th\'\ecircumflex{} Th\`anh} T1: H\`an Th\'{ê} Th\`anh \end{document} With xelatex or lualatex you can input the character (U+1EBF)...


1

Based on Stefan Pinnow's comment I found the solution: using stackengine package we can write: \documentclass{article} \usepackage{stackengine} \renewcommand\stacktype{L} \begin{document} H\`an Th\stackon[3pt]{\^{e}}{\'{}} Th\`anh \end{document} Note: I couldn't find the desired symbol in TIPA package.


10

You need the fitpaper option instead of noautoscale \documentclass{article} \usepackage[a4paper]{geometry} \usepackage{pdfpages} \usepackage{lipsum} \begin{document} \lipsum[1-10]\clearpage \includepdf[pages=1,fitpaper]{one} \lipsum[1-10] \end{document}


0

tl dr; Putting it all together Little background first Anki uses latex compiler to create .dvi intermediate documents from the input LaTeX code, which are then converted to .png bitmap image using dvipng converter. Anki is only able to work with .png picture format! Now, TikZ is (in vast majority of cases) only able to be compiled with pdflatex compiler, ...


4

Your PDF viewer can provide this information. Here are some font listings provided by Okular, for example. In this PDF, all fonts are fully embedded. This means that all characters from the font are included, even if they are not used in the document. Full embedding violates many commercial font licences and increases the size of the resulting PDF. ...


1

It's a problem due to how the conversion works. The file is actually compiled twice, but one time essentially without any package and so when the aux file is read in this phase, the command is not defined. Workaround: \providecommand{\pgfsyspdfmark}[3]{} \documentclass[convert={convertexe={convert}}]{standalone} \usepackage[utf8]{inputenc} \usepackage{...


1

brew cask install basictex just downloads the .pkg installer, which you then need to open so it can install itself. $ brew cask install basictex ==> Tapping caskroom/cask Cloning into '/usr/local/Library/Taps/caskroom/homebrew-cask'... remote: Counting objects: 3781, done. remote: Compressing objects: 100% (3728/3728), done. remote: Total 3781 (delta 73),...


2

The following should work, if you don't use any of the social-networking features: \renewcommand*{\httplink}[2][]{% \ifthenelse{\equal{#1}{}}% {\href{#2}{#2}}% {\href{#2}{#1}}} This way it strips all of the http:// from the code, which means that you have to put it back in yourself where needed. Assuming all your links that you want to create ...


2

It looks like this is controlled by \@sectioncolor, which was originally defined so that it'd colour the first three characters of the section title. Redefining it like this will make all letters of all section title the same colour (blue in this case): \makeatletter \def\@sectioncolor{\color{blue}} \makeatother


1

It's an old question and I'm not sure if this is an alternative in all the aspects, but it may be interesting to add the following: I was able to do the replacement using the package pstool and the command \psfragfig{}{} \documentclass{article} \usepackage{pstool} \begin{document} \psfragfig{fileinepsformat}{% \psfrag{a}{$\alpha$} \psfrag{b}{$\beta$}} ...


0

As you can see here, in other answers in SE, and as @JPi pointed out in a comment, LuaLaTeX can be the solution to you problem. In particular you have to run lualatex instead of pdflatex, with the same option (-shell-escape or -enable-write18). After the image has been externalized, you can fall back on pdflatex, as long as you don't introduce a new picture ...


1

Both TeX and LaTeX are case-sensitive, i.e. it matters whether a command is written with uppercase or lower case letters. Most likely, the command \LaTeX was intended, but was spelled as \latex which is wrong (unless somebody defines this command) So out of the 32 possible variants of \latex, \Latex, \lATeX etc. only \LaTeX is correct ;-) Please note ...


1

As the MWE starts with %&latex, TeXShop uses latex to generate DVI output and no PDF was generated. To generate a PDF, one should use %&pdflatex, so that TeXShop automatically uses pdflatex to generate the PDF. If nothing is provided, then it will use pdflatex and output a PDF file.


1

I have found out that downloading dummy-space.pfb and dummy-space.tfm from here and storing them next to my tex file makes my second MWE compile successfully. The line \pdfmapline{+dummy-space <dummy-space.pfb} seems to be required -- it does not compile without it. Of course, I would be interested in a more automated solution available through the ...


2

You should use \frontmatter and \mainmatter, but you also need some adjustment because you're using fancyhdr that has the bad habit of redefining \chaptermark. \documentclass[a4paper,11pt,twoside]{book} \usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr \usepackage[printonlyused]{acronym} \fancyhf{} \fancyhead[LE,RO]{\small \thepage} \fancyhead[RE]{\...


1

Okular since some time in 2014 can save annotations inside files by saving it to a new file with: "File > Save as .." The annotations will then be saved inside that new file, and not just in the configuration/system files of okular. Opposite to that, you can use "File > Save Copy as ..", that removes any annotations for the newly saved file. ...


4

default code boxes for tcolorboxversion 3.40 are different from last version 3.93. I don't know how to obtain 3.40 code to dive into, so I've tried to do something similar. Hope it helps. OP box has a frame based on a fixed image which looks like a rotated version of blueshade.png from tcolorbox. As I don't know how to rotate it being the frame style ...


1

You need to add the real font name to the map file entries, e.g. recarial ArialMT " T1Encoding ReEncodeFont " <T1-WGL4.enc <arial.ttf. If the real font is a .ttf (and not a .pfb) it is better to compile with pdflatex.


2

There are several problems here, I think. First, your given message l.1185 \@ ... N{932}{15} comes usualy from package lineno you didn't mention in your problem description. I guess you activated an option for class copernicus to get a numbered line output? If that is true and you changed the option to be unnumbered you should delete file .aux before ...


0

As far as I can see, the class is meant to typeset everything in a sans serif font. So, if you have to use it, don't try changing its settings. If you are not required to use the class, just avoid it: its typographic decisions are funny, for example the enormous distance between a section title and the following text (twice and a half the baselineskip, with ...


0

The LaTeX build wrapper ltx2any may be a solution. It does not hide the auxiliary files, but places them in another directory, which you can specify ltx2any -t path_where_you_want_the_auxiliary_files_to_go filename.tex Now to hide them from your view, there are a couple of ways: specify this folder as an hidden subfolder, e.g. .test/ or specify some ...


0

The LaTeX build wrapper ltx2any may be a solution. It creates (aesthetical very pleasing) summaries of errors and warnings in different file formates, amongst them pdf and markdown. From its webpage: Aggregates error messages and warnings from all tools into a nicely formatted log (Markdown or PDF) with references to source files and original logs.


3

If you are compiling with pdflatex, this is one of several ways to get Times New Roman font for both math and text: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{newtxmath,newtxtext} \usepackage{lipsum} % just to generate dummy text \begin{document} \lipsum \end{document} \setmainfont is a command of the fontspec package, which you can't ...


3

If file size does not matter, the best solution is arguably to upsample the image, for example using ImageMagick: convert small.png -filter point -scale 10000% large.png You can install ImageMagick on macOS using Homebrew: brew install imagemagick You can also use batch processing in the current directory using a loop like this: for f in *.png: ...


10

You can add declarations for such inputs: \documentclass{article} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{FB01}{fi} \begin{document} find \end{document}


0

Poppler pdf rendering library is to blame - pdf files themselves are OK. This may be checked by first converting pdf to ps, and then ps to image: $ pdf2ps bad_letter_e-1.pdf $ pdf2ps bad_letter_e-2.pdf $ pstopnm bad_letter_e-1.ps $ pstopnm bad_letter_e-2.ps $ md5sum bad_letter_e-1*.ppm bad_letter_e-2*.ppm a879acaaab2af4bd4a3c8563ec0c7c48 bad_letter_e-1001....



Top 50 recent answers are included