Hot answers tagged

24

Python 3.4 and newer come with the package manager pip already included: http://docs.python.org/3.4/whatsnew/3.4.html Setting up minted+Pygments has therefore become very easy: Install the latest Python 3.x (PATH can be set during installation). From a normal command prompt, run python -m pip install -U pygments. This will create a pygmentize.exe in the ...


20

If windows 8 has as windows7 a search window then type "settings", this should find the miktex settings. Or go in the windows explorer to the miktex/bin folder and start mo.exe.


17

Unlike pdflatex lualatex doesn't trigger the tfm generation from a mf-source if it can't find the tfm (this is not miktex specific: it doesn't do it in texlive either, but there bbold10.tfm exist in the main tree while miktex installs only the mf-sources). So in miktex one has to first call pdflatex which triggers the creation of the tfm and can then use ...


16

LaTeX Error: File `listings.sty' not found. This error message means the source file needs the package listings but the system doesn't have it. MikTeX was designed to be a TeX distribution that can install missing packages automatically, but this feature doesn't work well. Fortunately, you can install packages manually in three steps: Press <Win> + ...


15

Font Awesome provides a number of operating system logos (compile with XeLaTeX/LauLaTeX): \documentclass{article} \usepackage{fontspec,fontawesome} \newcommand{\faWindows}{\FA\symbol{"F17A}} \newcommand{\faLinux}{\FA\symbol{"F17C}} \newcommand{\faApple}{\FA\symbol{"F179}} \begin{document} \verb|Windows:| \faWindows \par \verb|Linux :| \faLinux \par \...


14

everyshi belongs to the ms bundle, which consists of several packages by Martin Schröder. If TeX Live or MiKTeX is used, you don't need to install everyshi as single package, such as by compiling everyshi.ins or everyshi.dtx. Instead, use the package manager (tlmgr or mpm, respectively) to install the ms package provided by both distributions.


14

After some search in the internet and tex.sx, I finally know the cause. I have installed a new font into my computer a few days ago but have not run the fc-cache program. Following the post here, here is the solution: go the directory where the Texlive bin resides (in my computer, it is D:\texlive\2016\bin\win32) and execute fc-cache -f (if fc-cache is on ...


13

There is probably no latex compiler which supports parallel compilation. The short reason is: The way latex typesets documents is essential linear. If latex would typeset different document parts in parallel, they would need to be merged at the compilation. However to get the same result as in the non-parallel case, you would need to have a compilation run ...


13

You can use \widowpenalties to avoid that two lines are alone on the second page: \documentclass{article} \usepackage{lipsum} \textheight=10\baselineskip \widowpenalties=3 10000 10000 150 \begin{document} \lipsum[1-2] \end{document}


12

I've had the same problem. I've found two ways to make it work: Solution 1. Add miktex portable to the environment variable PATH. Even if you don't have administrative privileges on the machine, you can usually set the variable just for your account. I wouldn't use it while keeping miktex on a USB drive but if you copied it onto the disk it should be ...


12

Close texworks. Compile your document in some other editor or on the command line so that miktex can do whatever maintenance tasks it wants to do. There is a bug report that texworks currently interferes with miktex: http://sourceforge.net/p/miktex/bugs/2394/. This bug shouldn't affect normal compilation later on.


11

Use BRISS: It's light and free. And it's portable (you don't need to install anything). I tried it on Windows 8.1. You can download it from here and run it: 1- "l": load 2- "cancel" (or enter page numbers to be excluded). 3- Adjust the top-left and bottom-right corners of the desired rectangle with mouse. 4- "c": crop and save the ...


11

As an example, the page number are not independent usually. The page numbers of the second chapter depends on the page numbers of the first. Also there can be references, index entries, ... If all relevant counters are reset at the start of a new chapter (page, figure, table, equation, ...), then \include/\includeonly can be tried to compile the chapters ...


11

I've been facing the same problem since TeX Live 2015 was released last month (I have Windows 7 Pro 64-bit OS). I've tried installing it every week (in the hopes that there is a bug, which will be fixed in the weekly updates) but no luck. I tried installing it from different mirrors but again no luck. Finally, I was able to figure out a workaround yesterday. ...


11

Been a few months since I asked this question, so I figured would be good to give it closure, for anyone facing the same problem. The best solution I found is to install SumatraPDF. It is very lightweight and brings back the long lost user experience of opening a PDF almost instantly (I can't recall when Adobe's PDF Viewer last was so fast... maybe in ...


11

A bit late to this, but finally managed to solve this "unknown option" issue after hours of tinkering with the setup options (even to the extent of reformatting Windows) but to no avail. Apparently the initexmf.exe file does not like being renamed. According to a bug report with this issue: #2515 basic-miktex installer fails if the executable is renamed, it ...


11

After the hints of Ulrike Fischer, I found the last registry key that TeXworks was reading from before hanging (Computer\HKEY_CURRENT_USER\Software\TUG\TeXworks). It seems to be a collection of settings, which I just removed entirely by deleting the parent registry key. Now TeXworks starts and works fine again. I had to reconfigure my settings, but this is o....


10

Please start the TeXLive manager and you should get: In the Status-block you could select only installed packages. (marked as 1) In the column "Local Rev" (marked as 2) you can see the actual version. The column remote rev will contain the actual version of the remote repository (you must first load it). If there is a higher number, then there was an update....


9

Very likely notepad puts a byte order marker (BOM) at the start of the file. The "character" is invisible, but present. See also: How to make notepad to save text in utf-8 without bom? For TeX files that are input after package inputenc is loaded, BOM can be disabled by: \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{FEFF}{}


9

Ulrike Fischer's comment is correct. In RStudio for Windows, I can do this: Sys.setenv(PATH = paste(Sys.getenv("PATH"), "C:\\RMathew\\PortableApps\\MikTeX\\miktex\\bin", sep=.Platform$path.sep)) which will let me use pdfLaTeX for that session. If you want RStudio to remember this command each time you start RStudio, you have to add the command to your ....


9

Save your *.tex file as *.txt, say foo.tex as foo.txt. Tell the proofreader to open it in Word, correct whatever and -- this is the important step -- save it again as *.txt, let's say as foo-corrected.txt. Just rename it into foo-corrected.tex and open it in your editor. Obviously the proofreader will see all the commands. But just tell him to ignore ...


9

You may want to use the plain-TeX directive \atop. It uses so-called infix notation. If you end up using \atop a lot, you may want to create a LaTeX-style macro. \documentclass{article} \newcommand\myatop[2]{\left[{{#1}\atop#2}\right]} % "wrapper macro" \begin{document} %% plain-TeX syntax $ \left[ {u \atop v} \right]$, $\displaystyle \left[ {u \atop v} \...


9

In case someone else comes across this problem, the solution is to install luaotfload: sudo tlmgr install luaotfload


8

USBTeX is no longer maintained and the link (http://www.exomatik.net/U-Latex/USBTeXEnglish) is broken, so if you still are looking for a portable LaTeX environment for Windows, you could try TexPortable, which you can obtain from here. Basically it's a combination of MiKTeX, Texmaker and SumatraPDF. If you're going to give it a try, please let me know if ...


8

For me this was also a problem with the PATH-variable. Go to environmental variables, search for PATH and add at the end: ;C:\Windows\system32. The semicolon is important as it separates the entries. You can test it by typing cmd into the console. If it works (and you had the same problem like me), tlmgr may now update properly. Restart the console after ...


8

A solution to your problem would be to add a script to your git workflow, that reformats your .bib-file. One such tool is biber in toolmode. Calling: $ biber --tool example.bib results in a nicely formated file called example_bibertool.bib: @ARTICLE{bib:farzaneh, AUTHOR = {Seyed Amir Farzaneh and Mehran Sohrabi}, BDSK-FILE-1 = {...


8

I have had good results using Adobe Acrobat's File→Save As Other...→Microsoft Word→Word Document to convert a PDF produced by Latex. This gives reviewers a Word (.docx) document with remarkably similar appearance to the PDF. There are minor inconsistencies (spacing, hyphenation, and font selection problems) and some formulas don't come out quite right. But ...


8

I just tested with a brand-new wx pro 64-bits and an advanced user install and had no problems. To be exact: I downloaded the exe, selected the unpack option and after it finished unpacking I double-clicked install-tl-advanced.bat, but clicking the advanced button also started up the main installer interface. I searched for this "0xc0000142" error. ...


Only top voted, non community-wiki answers of a minimum length are eligible