# Tag Info

22

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

22

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

20

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

16

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

8

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

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

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

8

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

8

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

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

Unfortunately no. This would be a very useful thing to have, but it doesn't exist at the moment. There's been some discussion of it on the TeX on MacOS mailing list, but nothing came of it on the development side. Here's a hacky kind of workaround: Make a biber engine At the top of your file put: %# !TEX TS-program = biber % !TEX TS-program ...

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

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

7

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

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

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

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

6

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

6

Short answer: you can't. Longer answer: TeXshop is not a X-11 application, it's a native Mac one. As such, it cannot be run remotely over a ssh session. It can be opened locally from the Terminal using open -a TeXshop Note also that TeXshop does not read command line parameters: TeXShop command line arguments

6

Another way to enter the characters is to enter them directly with the \XeTeXglyph macro or use their Unicode character code using the \char macro. For example, the heart symbol is Unicode 2665 so you can enter that using: \char"2665 It's also possible to use the font specific glyph index number. For a font like the C64 font, which doesn't have a huge ...

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