# Tag Info

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

20

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

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

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

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

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

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

12

It's because you are loading mathptmx, which also changes the math fonts. If you want to keep the mathptmx package, but with the original \mathcal symbols, use \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n} A complete example: \documentclass[12pt,a4paper]{report} \usepackage{mathptmx} \DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n} \begin{document} $\... 12 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 are ... 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 Add the following lines in your preamble \DeclareFieldFormat{labelnumberwidth}{} \setlength{\biblabelsep}{0pt} The first line is to print nothing in the label, the second to eliminate the spacing before the entries. MWE: \begin{filecontents*}{cvreferences.bib} @BOOK{book1, author = {John Doe}, title = {Title}, publisher = {Publisher}, ... 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 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 That will resolve the problem ;) : pdflatex paper.tex bibtex paper.aux pdflatex paper.tex evince paper.pdf 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. 10 The maneuver for going back and forth from the LaTeX file to the PDF file and conversely is Command+Shift+Click 10 Actually, Command+Click is sufficient to switch between source and pdf file with TeXShop. (This answer was meant as a comment, but "I must have 50 reputation to comment"…) 10 I had the same problem and it took me a while until I realized it was TeXShop causing all the trouble. Like you already mentioned, you need a reference to pygmentize within /Library/TeX/texbin, but it's sufficient to create a symlink instead of a copy: sudo ln -s "$(which pygmentize)" /Library/TeX/texbin/pygmentize

9

You could try detex document.tex | wc -w (detex does a decent, but not perfect, job at eliminating LaTeX commands, if you use such to write part of the text, the count will be off. And I don't remember offhand how it handles accents, i.e. l'H\^opital might give too many words).

9

(CW from comments) TeXworks is a multiplatform front-end to TeX/LaTeX; its current version is not able to print PDF files on any of the supported platforms. Whether the situation will change in the future is not known, but the issue doesn't seem to be high priority in the developer's intentions. Since TeXworks is largely inspired by TeXShop, on Mac OS X ...

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