Hot answers tagged

27

If either of these two cases (or both) apply:--- [portability problems] examplestyle.sty = a file as described in the original question: namely, a personal .sty file generally available and used by several on-going projects (e.g., in TEXMFHOME or the less convenient place MikTeX likes to put it); [long-term stability problems] use of packages that are under ...


27

As far I know, one nice true WYSIWYG editor that is BaKoMa, although include also a source editor. There are licenses since 55$ but there are a evaluation period, so you can test for free if the ratio quality/price is enough. Another shareware program,Scientific Workplace is a WYSIWYW (what you see is what you want, nearly to a WYSIWYG) that import/...


25

When you compile a document foo.tex with, say, pdflatex through Texmaker, what happens “internally” is that in foo.tex’s directory, pdflatex foo.tex (probably with a few options) is called, as if on the command line. But how does Windows know where pdflatex is? Odds are your document is not in the same directory as your *TeX binaries. The answer is the PATH. ...


23

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 ...


21

How about the menukeys package? \usepackage[os=win]{menukeys} .... \menu{{Open with}>{VLC media player}} Output:


21

Well, it depends on which distribution you use: 1) TeX Live 2012: Just update via Package Manager, arara is part of TeX Live 2012. 2) MikTeX: Under the assumption that MikTeX does not provide arara (I only use TeX Live) do a) Get the installer from BinTray, under the Downloads section (at the time of this writing, the current version is 3.0) b) Run 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

The paths to your LaTeX und PdfLaTeX are wrong. latexsym.sty is a package, which isn’t ever gonna compile anything, and pdfetex.exe is a compiler, but definitely not the one you’re looking for (see e.g. Glossary of TeX and LaTeX terms). If MiKTeX is in your PATH varible (which usually is the case if you installed it normally), you don’t need to specify the ...


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> + ...


16

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 ...


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 \...


15

In collaborative projects with source files being edited on a variety of platforms, editors, and locales, encoding issues can become a real PITA. In such setting, it is best to define one "right", mandatory encoding (UTF-8), communicate this clearly and stick to it. However, in many cases the collaborators, especially if they stem from the Windows or Mac ...


14

Add the following to your .emacs file: (set-default 'preview-scale-function 1.2) Adjust the value according to your needs.


13

In OneNote 2010, at least (which is the only version I have), you can enter at least some LaTeX directly in math mode. I say at least some because I am discovering it by experimentation rather than reading about it in OneNote documentation (if any such documentation exists). Here are a few examples (after first selecting the type tool and entering math ...


13

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.


12

Starting from TeXmaker 4.0 built on Qt5, with TeXmaker 4.0.1, save it as .tex extension otherwise it will pop up error due to Qt5 file dialog box. It is not saved as .tex automatically starting from new version(4.0) as latex file can have many extensions like .cls .sty .dtx etc.. Update: "It's not a bug, but the default behavior of the Qt5 file dialog" as ...


12

If you have the Surface Pro, you can install MiKTeX or TeX Live as per any other Windows computer. If you have the Surface RT, there is no precompiled TeX distribution available for ARM processors yet. If you'd like to try building TeX Live for ARM, you can check the build procedure.


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

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 ...


12

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

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.


12

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 ...


12

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 ...


11

The name of the DDE server for version Adobe Reader XI (i.e. version 11) must be AcroViewR11, cf. Big Changes in the DDE Naming Convention for Acrobat X. According to the error message you still use acroview. In the blog entry you can also read, that for Adobe Acrobat XI the DDE server would be AcroViewA11.


11

Do I need Ruby or not? There are two versions of ConTeXt in use, MkII and MkIV. MkII uses texexec, Ruby and pdfTeX (or XeTeX) and is the frozen stable version. MkIV does not need Ruby, it is launched using context and uses LuaTeX as backend. This is the current development version. If you don't have a good reason to use MkII I would advice to go for MkIV ...


11

I'll throw a Powershell script in the ring! The following code checks all TeX files in a pre-defined directory and --if for a certain TeX file no matching PDF is found -- runs pdflatex on it. If however a PDF file with the same name is found, the lastwritetime is checked. If the TeX file is newer than the PDF, pdflatex is run as well. $path = "C:\Users\Uwe\...


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

[ Just to answer the unanswered, converting comments into an answer ] This kind of problems can be resolved removing spaces from filenames. Rename your file from calculus 2.7.tex to calculus2.7.tex and you will have no problems. In fact, although recent versions of TeX compilers "tolerate" them, it is always a good practice not to have spaces in filenames....


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 ...


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