Tag Info

Hot answers tagged

29

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


28

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


24

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


19

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


15

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.


15

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


13

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


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


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

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

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

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


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


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

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

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

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

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


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

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

I had not heard of that color scheme before so I followed the links and coded up the solarized TeXShop Color Scheme script as an AppleScript. If you put this in ~/Library/Applications/Scripts/TeXShop/ it will appear as an item in the Scripts menu on the right-hand side of the menu bar. Although, for the preferences to take effect, TeXShop needs to be ...


7

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


7

Mostly what you describe is the standard layout without any package \documentclass[12pt,a4paper]{report} \begin{document} \tableofcontents \chapter{aaa} ... \chapter{aaa} ... \appendix \chapter{Formula} The contents... \chapter{something} The contents... \end{document} this doesn't introduce a separate "Appendices" cover page, the Appendix titles ...


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

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 insert soft tabs (I'm not sure when this change was made). They don't have any keys bound to them by default, but you can use the ...


7

One advantage that I have seen is that since TeXShop is a native Mac application, you get automatic spell checking available right in the editor. Also, TeXShop seems to have more options for using menus to insert LaTeX code but I don't find that that useful, but am sure that others do. I have used both and started with TeXWorks as it is available on both ...



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