Tag Info

Hot answers tagged

27

The first question you should ask is whether the package you are trying to install is already installed on your system. If you are using MacTeX as your distribution (which you probably are) then most packages are already available. Within TeXShop you can choose the "Show Help for Package" item from the Help menu and enter your package name. (Or make a ...


27

TeXShop is a much more mature application, with a large user base and active development. Some advantages: Macro editor that allows you to attach commands or menu items to arbitrary chunks of code Palettes of commonly used symbols and constructs Simple table input editor Macro to paste spreadsheet cells from Excel/Numbers etc. as LaTeX tabulars BibDesk ...


23

1. Built-in Short Cuts: When you pull down the menu items you see the keyboard shortcuts. Here is an example of the Source menu: 2. Command Completion: If you simply start typing the command you want hit esc you get: Hitting esc again: 3. Abbreviations: Besides command completion there are also abbreviations. All abbreviations for ...


18

I solved this is a mildly hacky way. First of all, I wrote a script called TeXShopBib.sh which looks like #!/bin/sh filestem=${1%.*} bibtype=`head -n20 "${filestem}.tex" | sed -n 's/\%[ ]*![ ]*BIB[ ]*TS-program[ ]*=[ ]*\([a-z]*\)/\1/p'` if [ -z $bibtype ]; then echo "No option detected in TeX file. Defaulting to BibTeX." bibtype="bibtex" else ...


14

TeXshop, like TeXworks, allows you to define some stuff by special comments at the beginning of a file. To define a master file, add % !TEX root = path/to/root.tex to the beginning of your file. This will cause root.tex to be compiled instead of the current file.


14

I will assume you are using MacTeX (The Mac specific distribution of TeXLive) Before answering your question, the listings package you mention is part of the TeXLive distribution. You don't actually have to install it, it is already there. Just include the line \usepackage{listings} in your preamble. If you have to install a package, there are two quick ...


12

This is a working but basic answer; it's somewhat involved. Also, I am not a programmer by any definition, nor an Os X expert. Surely there are better ways to achieve the same effect. At the end of the answer, there's a link where you can download a copy of the app described in the post. Background In Os X, any directory with an extension can be a ...


12

In the Prefs of TeXShop, you choose the font of the source (what you see on the screen) : And then \usepackage{fourier} or \usepackage{lmodern} or some other package in your preamble to set the font for your pdf.


12

This is a bug that was introduced in 2.45. Version 2.46 has now been released to fix it: From the update window in TeXShop: TeXShop 2.45 introduced a bug; users had to save the source file before typesetting. TeXShop 2.46 fixes that inadvertent bug and returns to the standard TeXShop behavior. So the solution is to check for updates in TeXShop ...


11

Save a new file ~/Library/TeXShop/Engines/Nomenclature.engine with following contents: #!/bin/sh bfname=$(dirname "$1")/"`basename "$1" .tex`" makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls Make this new file executable using chmod u+x ~/Library/TeXShop/Engines/Nomenclature.engine from within a shell or set the executable bit at the file ...


11

Many editors, including TexShop, provide the concept of modelines, "magic comments" in which one can specify various editor settings. This provides a per-document configuration of the editor. The following snippets sets the encoding to utf-8 for TexShop, Emacs and Vim: % !TEX encoding = UTF-8 Unicode % -*- coding: UTF-8; -*- % vim: set fenc=utf-8 It is ...


10

LuaLaTeX is your choice! Greek is possible without any adjustments. Hebrew, as it is a language from right to left, needs adjustments. Of course, you need to use \usepackage{fontspec} in the preamble (as is usual when using LuaLatex). Greek You need a font that supports all the accents. If your mainfont for latin text does not support them, you need to ...


10

Here is what I did to get gnuplot working on a Mac. (You need to use the Terminal for this.) Goto GNU Plot on Sourceforge and download the source code. This should unzip in a folder gnuplot-4.6.0 in your Downloads folder. Open a Terminal window and issue the following commands: (hit the return key after each; the last three commands will produce quite a ...


10

Unfortunately, it happens that Biber gets confused and that message means that the binaries it produces are not in good shape. The only method I know to solve the issue is to open the Terminal and issue rm -fr /var/folders/zE/zEWMdMuCGnyHENetv8k-CU+++TI/-Tmp-/par-User/cache-5a7f3069e2a4d51fd3557003fc55ec74c554c947 where the string is what goes from ...


10

You should have a file called XeTeX.engine ~/Library/TeXShop/Engines/XeTeX.engine You can open it with TextEdit and change the last line from xelatex "$1" to xelatex --shell-escape "$1" However this will always call XeLaTeX with the option. You can duplicate the file, giving the copy a name such as XeLaTeX-shellescape.engine and modify this one. ...


10

Update As of TeXShop version 3.21, TeXShop now accepts !BIB directives without the need of the script described in Mark Everitt's answer. You can simply put: % !BIB TS-program = biber or % !BIB program = biber (or bibtex as required). Original answer Mark Everitt's script is by far the most convenient way to switch between biber and bibtex in ...


9

You can't. LaTeX has to build the .aux file to store the table of content (ToC) and such, because when typesetting the ToC it can't know beforehand what sections will occur. LaTeX works sequentially. First run: collect all sections and such and store it in .aux file. Second run: Use .aux file to typeset the ToC. Actually it does both things at once: ...


9

The font can be easily installed via the script getnonfreefonts. It is available at tug.org: TUG getnonfreefonts EDIT: I tried the installation of getnonfreefonts on my Mac. In the follwoing explaniation I will try to explain my steps. First I have the following machine: iMac 27" Installed updated MacTeX 2011 Now the steps. I downloaded the ...


9

In addition to Ian Thompson's comment, if you are using TeXShop then you don't even have to bother with the command line, as TeXShop provides you with a graphical interface. Just switch to BibTeX in the pop-up menu after a first LaTeX compilation, then press typeset (this is equivalent to calling bibtex paperin the command line) exactly as for a LaTeX ...


9

I raised this issue on the TeX on OS X mailing list a few years ago, and received the following reply from Herb Schulz, who created the basic autocompletion file for TeXShop: Well, they will show up depending upon your input encoding. You are supposed to replace them by using the Next/Previous Mark commands to move and select them and replace them. When ...


9

The cool automation tool arara helps in situations like this. If you can afford to use it, here is what should be done. If you don't have arara installed already (It comes bundled with texlive), download it from github and install. It needs java. Now let us assume that your file is main.tex. Put the following just before the \documentclass{...}: % arara: ...


8

I don't know WinEdt, but TeXShop has both a LaTeX panel (with many subparts) which gives you access to many commonly used LaTeX elemnts, and a Matrix panel which provides a simple way to enter small tables and matrices. These are both found under the Window menu item. LaTeX Panel Matrix panel


8

This behaviour is normal for any TeX engine (as explained in Foo Bar's answer), but Tools for automating document compilation might automate the multiple runs of creating a LaTeX document when required. I'd suggest user friendly automation tool arara: the manual is very well written for newbies! In particular, I'd like to point out that, it is possible to ...


7

What you're talking about are often called soft tabs, and I'd like them too in TeXShop. But so far I haven't found them. The indent/unindent actions are under the Source menu in TeXShop's menubar. They insert hard tabs. They don't have any keys bound to them by default, but you can use the System Preferences to create some as in this article.


7

The easiest way to do this is to make yourself a Sweave-XeLaTeX engine file for TeXShop. To do this, do the following. Using the Go menu in the Finder, navigate to the TeXShop Engines folder by choosing Go and then entering ~/Library/TeXShop/Engines Make a Copy of the Sweave engine and rename it Sweave-XeLaTeX Open the engine in TeXShop and change the ...


7

It is generally better to install fonts in your system-wide texmf-local folder rather than your personal texmf folder. In fact, TeXLive now has a simple script installed for installing the non-free fonts such as classico. The really simple way Open a Terminal window and type the following: (you should be logged in to an account with administrator ...


7

Try disabling OS X system-wide Text Expansion in System Preferences -> Language & Text (video). The symbol (R) is substituted by default.


7

To get the order of compilations correct you should think about the informations the external tool needs to know. As an example: biber needs only to know all citations you used in your document. This information is stored on the first pdflatex run in a .bcf file. So the correct order for biber is: pdflatex % to create the bcf biber % to create the ...


7

(Robin's answer moved from the question area) Here a short abstract of "Latexmk For TeXShop.pdf" by Herbert Schulz (herbs2@mac.com). Reading this and following the explained steps solved my problem. I don't own the right of this text! If you own the rights of this text and aren't ok with the citation contact me, so i can delete it. thx. 1 What is ...


7

I quote from the Release Notes of version 3.18 Version 3.18 has only a single change: TeXShop contains an obsolete sync method called Search Sync, and a modern replacement by Jerome Laurens called SyncTeX. In recent versions of TeXShop, the obsolete Search Sync from the Preview Window to the Source Window randomly hangs, making TeXShop unresponsive ...



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