Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ifplatform]

The package `ifplatform` provides means to have switches for the operating systems `OS`, `Linux` and `Windows` in order to maintain package or template\document code according to platform specific settings.

1
vote
1answer
166 views

ifplatform.sty error after installing MiKTeX on Ubuntu Mate 16.04

I can't tell if this is Windows or *nix; you appear to be neither. The error above is what I receive even when I try to compile something as simple as this: \documentclass[11pt]{article} \...
1
vote
1answer
249 views

Asana-Math versus asana-math

I am using TexLive 2016 with LuaTeX on Linux, but I believe that my question is generally applicable to LaTeX on any platform. I cannot switch to XeTeX. Before coming here, I found Is there a way to ...
1
vote
2answers
129 views

How to make image insertion platform independent?

When I wrote my LaTeX file in windows, I have just given the name of the image without extension to add it anywhere like the following. \begin{figure}[h] \centering \includegraphics[scale=0.6]...
2
votes
1answer
3k views

shell escape is disabled

I am trying to use minted for code highlighting. Now to use this package I need to enable shell escape. So I have set the compiler options as follows: However, I am still getting the same error from ...
3
votes
1answer
99 views

Set draft depending on operating system

I'm working on two different operating systems - MacOS and Windows. While the main part of my work is done on OSX, I sometimes switch to windows for several reasons. Problem is: Windows and OSX don'...
6
votes
1answer
980 views

XeLaTeX and ifplatform/catchfile (loaded by “minted”): Errors on compilation [closed]

FOR THE RECORD I was unable to test any of the solutions provided, as I changed my main system last year. After that, no more problems arose. I suspect the old system had problems with the hard drive....
3
votes
1answer
153 views

LaTeX OS recognition [duplicate]

Let's say I want to create a document class. Is there a way to make LaTex choose between packages (or package options) depending on the OS I'm working on? More precisely, I want LaTeX to switch ...
19
votes
1answer
1k views

Is there a macro telling which OS we're using?

I got some LaTeX documents that I have to compile them under different TeX Live, such as MacTeX or TeX Live. But in different OS, the font seems different too, for example, while in Windows, I prefer ...