Hot answers tagged

39

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


28

Amazingly enough, TeXShop does in fact have such a facility. The problem is that long-time users of it like myself are probably unaware of it. It can be found under the Edit Menu -> Experiment This menu will open a window which you can copy a snippet of the currently open document. When you press the Typeset button on the window, it will show the result ...


22

With Emacs and AUCTeX, it is as simple as highlighting the portion of the text you want to compile and then hitting C-c C-r (or M-x TeX-command-region). The command tries to be 'smart' about it, so if you do C-c C-r RET C-c C-r RET (i.e., run the same command on the same section twice) it will first compile, then, second, open a viewer for resultant PDF. (...


19

Beginning with version 3.21, this feature is provided (by this very request!). From the release notes: The next feature was requested by Alan Munn about a year ago. Apologies for the delay. In the meantime, Mark Everitt wrote an ingenious script to provide this feature. The feature provided by that script is now built into TeXShop. The command ...


19

If you have an entry whose author field currently reads author = "Plinio el viejo", BibTeX and biblatex (biber) will interpret "el" as the "von" component of the person's full name, and therefore also "viejo" as the surname component and "Plinio" as the first-name component of the full name. Obviously, that's not what you want for this entry. To indicate ...


18

Based on this LaTeX website, there are following solutions for your problem. According the subsection "indirekte Eingabe von Umlauten" you can write \"A, \"O, \"U, \"a, \"o, \"u and \ss{} or {\"A}, {\"O}, {\"U}, {\"a}, {\"o}, {\"u} and {\ss} to get german letters. If you include the german or ngmerman (ngerman has the new hyphentation rules), you can write ...


16

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


16

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


15

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


15

According to About TeXShop (available here) "Auto completion is user configurable. To configure, open the file ˜/Library/TeXShop/Keyboard/autocompletion.plist with TeXShop. Read the comments at the top, edit appropriately to redefine Landweber’s choices or add your own, and save. Be sure to edit and save in UTF-8 format if you use Unicode ...


15

TeXShop doesn't do the BibTeX run by itself. First step: run LaTeX Here's how the window should appear Second step: choose BibTeX Choose BibTeX from the dropdown menu Third step: run BibTeX Click on the "Typeset" button (or hit Command-T) Then return to LaTeX and compile again. You can run BibTeX when you need it, you don't need it to be run at each ...


14

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


14

I just solved it. You just need to change the path of the files for the command according to the new organization in El Captain. I posted a screenshot. It works for me! Hope this helps!


13

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


13

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


13

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


13

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

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

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


12

The default language is the one chosen in the “Language & Text” System Preferences pane, where you can set the region to “British”. Or you can choose the language in the TeXShop Edit menu (“Show Spelling and Grammar”, that in the picture becomes “Hide”)


12

Kile has this feature. It is called QuickPreview. I've never used it before, but I tested it in a minimal example and it seems to work. I tested with my answer to another question: \documentclass[tikz,border=10pt]{standalone} \usepackage{circuitikz} \standaloneenv{circuitikz} \usetikzlibrary{fit} \begin{document} \tikzset{ pics/multimeter/.style={ ...


11

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


11

The aux file should have the command \@writefile but it has become corrupt so you need to delete it.


11

ctex bundle use Chinese fonts for Windows by default. You can use the fonts installed in Mac. % !TEX program = XeLaTeX % !TEX encoding = UTF-8 \documentclass[UTF8,nofonts]{ctexart} \setCJKmainfont[BoldFont=STHeiti,ItalicFont=STKaiti]{STSong} \setCJKsansfont[BoldFont=STHeiti]{STXihei} \setCJKmonofont{STFangsong} \begin{document} 文章内容。 \end{document} There ...


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

I can't answer for TeXshop, but for TeXworks adding Biber is easy if we are talking about the version which comes with MacTeX. This is added to the path, and so there is no need to worry about locating the executable. I have the very simple set up Notice that the only argument needed here is $basename, which will be filled in to contain the name of the file ...


10

To add cls package (like moderncv) in my OS distribution with texlive 2015, I just unzip package under /usr/local/texlive/2015basic/texmf-dist/tex/latex. Don't forget to run sudo texhash! Hope this help.


10

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


10

TexCount will do a word count for you and also break it down per section etc. Available both as a web-app as well as a download, and comes packaged with TeX Live. Can be invoked in the command line with texcount mytexfile.tex.


10

Searching on Google I found this. Edited: based on Sean's comment below I decided to insert here some caps from the original website to avoid broken links.


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